* lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9fba3563 12011-01-17 Paul Eggert <eggert@cs.ucla.edu>
6df4097e
PE
2
3 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
4 These changes make compilation easier to follow with Sun cc.
5 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
6 EMACS_INT values without provoking overflow diagnostics.
7 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
8 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
9 diagnostic with signed left shift.
9fba3563 10
410ed5c3
PE
11 * fileio.c (make_temp_name): Remove unreachable code.
12
97be3ce3
PE
13 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
14 Previously it was marked by preceding it with "return;", but
15 Sun cc complains about this.
16
9fba3563
PE
17 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
18 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
19 which fixed Bug#2370. Caught by Sun cc.
20
6dc1d2d3
MR
212011-01-15 Martin Rudalics <rudalics@gmx.at>
22
23 * window.c (inhibit_point_swap): New variable.
24 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
25 point this time.
26 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
27 of setting selected_window to nil (Bug#7728).
28
f853f599
TH
292011-01-11 Tassilo Horn <tassilo@member.fsf.org>
30
31 * image.c (imagemagick_load_image, Finit_image_library): Free
32 intermediate image after creating a MagickWand from it. Terminate
33 MagickWand environment after image loading.
34
2bc92a93
MA
352011-01-10 Michael Albinus <michael.albinus@gmx.de>
36
37 * dbusbind.c (Fdbus_register_service): Raise an error in case of
38 unexpected return values.
39 (Fdbus_register_method): Remove connection initialization.
40
412011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
42
43 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
44 used by Fdbus_register_service.
45 (QCdbus_request_name_replace_existing): Likewise.
46 (QCdbus_request_name_do_not_queue): Likewise.
47 (QCdbus_request_name_reply_primary_owner): Likewise.
48 (QCdbus_request_name_reply_in_queue): Likewise.
49 (QCdbus_request_name_reply_exists): Likewise.
50 (QCdbus_request_name_reply_already_owner): Likewise.
51 (Fdbus_register_service): New function.
52 (Fdbus_register_method): Use Fdbus_register_service to do the name
53 registration.
54 (syms_of_dbusbind): Add symbols dbus-register-service,
55 :allow-replacement, :replace-existing, :do-not-queue,
56 :primary-owner, :existing, :in-queue and :already-owner.
57
21a76236
CY
582011-01-09 Chong Yidong <cyd@stupidchicken.com>
59
60 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
61 when removing extra buttons.
62
3d91e302
CY
632011-01-08 Chong Yidong <cyd@stupidchicken.com>
64
65 * fns.c (Fyes_or_no_p): Doc fix.
66
0d23ffb5
AS
672011-01-08 Andreas Schwab <schwab@linux-m68k.org>
68
69 * fns.c (Fyes_or_no_p): Add usage.
70
9dc3366b
GM
712011-01-08 Glenn Morris <rgm@gnu.org>
72
d0981f82
GM
73 * makefile.w32-in ($(EMACS)):
74 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
75
9dc3366b
GM
76 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
77 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
78
466cbae9
AS
792011-01-07 Andreas Schwab <schwab@linux-m68k.org>
80
81 * image.c (imagemagick_load_image): Fix some resource leaks and
82 error handling.
83
8c51d2a2
CY
842011-01-07 Chong Yidong <cyd@stupidchicken.com>
85
86 * fns.c (Fyes_or_no_p): Accept format string args.
87
66b7b0fe
GM
882011-01-07 Glenn Morris <rgm@gnu.org>
89
90 * emacs.c (no_site_lisp): New int.
91 (USAGE1): Add --no-site-lisp, mention -Q uses it.
92 (main): Set no_site_lisp.
93 (standard_args): Add --no-site-lisp.
94 * lisp.h (no_site_lisp): New int.
95 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
96 directories to Vload_path.
97
2018939f
AS
982011-01-05 Andreas Schwab <schwab@linux-m68k.org>
99
100 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
101
6ed843e5
MA
1022011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
103
104 * dbusbind.c (Fdbus_register_method): Added optional parameter
105 dont_register_service. Updated docstring accordingly.
106
3f9b7090
GM
1072011-01-04 Glenn Morris <rgm@gnu.org>
108
109 * emacs.c (emacs_copyright): Update short copyright year to 2011.
110
d82bce4a
EZ
1112011-01-03 Eli Zaretskii <eliz@gnu.org>
112
113 * image.c (png_jmpbuf): Remove definition.
114 (my_png_error, png_load): Don't use png_jmpbuf.
115
7c420169
CY
1162011-01-02 Eli Zaretskii <eliz@gnu.org>
117
118 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
119
1202011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
121
122 * image.c <Qlibpng_version>: New variable.
123 (syms_of_image): Intern and staticpro it. Set its value to the
124 version of PNG library we were compiled with.
125 (my_png_error, png_load): Avoid GCC warnings about direct access
126 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
127 (png_jmpbuf): New macro.
128 (my_png_error, png_load): Use it instead of #ifdef'ing according
129 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 130
7c420169 1312011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
132
133 * .gdbinit (xgetptr): Fix the union+lsb case.
134 (xbacktrace): Fix the union case.
135
7c420169 1362011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
137
138 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
139 different from selected-window's.
140
7c420169 1412011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 142
71fe378d
EZ
143 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
144 equivalent of a menu item when the key sequence is given by the
145 `:keys' attribute. (Bug#7662)
146
2e4ab211
EZ
147 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
148 the basic faces are supported.
149
7c420169 1502011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
151
152 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
153
7c420169 1542011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
155
156 * xdisp.c (Fformat_mode_line): Fix last change.
157
7c420169 1582011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
159
160 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
161 faces (Bug#7587).
162
7c420169 1632011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
164
165 * fileio.c (Fexpand_file_name): One more doc fix.
166
3afff00e
CY
1672011-01-01 Chong Yidong <cyd@stupidchicken.com>
168
169 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
170 image or label in the container.
171 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
172 (xg_show_toolbar_item): Function deleted.
173 (xg_tool_item_stale_p): New function.
174 (update_frame_tool_bar): Calculate tool-bar style once per call.
175 Instead of hiding text labels, omit them. Don't use
176 xg_show_toolbar_item; create new GtkToolItems from scratch if
177 necessary, instead of trying to re-use them. This avoids an
178 annoying animation when changing tool-bars.
179
aeb7e951
JD
1802010-12-31 Jan Djärv <jan.h.d@swipnet.se>
181
182 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
183 title and buffer filename only for RepresentedFilename.
184 Handle bad UTF-8 in buffer name (Bug#7517).
185
5bbb4727
JD
1862010-12-30 Jan Djärv <jan.h.d@swipnet.se>
187
188 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
189
190 * nsfns.m (ns_set_name_iconic): Remove.
191 (ns_set_name_internal): New function (Bug#7517).
192 (Vicon_title_format): Extern declare.
193 (ns_set_name): Call ns_set_name_internal.
194 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
195 (x_implicitly_set_name): Ditto.
196 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
197 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
198
f1aab3ff
ŠN
1992010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
200
201 * window.c (syms_of_window): Add missing defsubr for
202 window-use-time.
203
365525b3
AS
2042010-12-28 Andreas Schwab <schwab@linux-m68k.org>
205
206 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
207 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
208
59fc5cf9
AS
2092010-12-27 Andreas Schwab <schwab@linux-m68k.org>
210
2f7c71a1
AS
211 * buffer.c: Remove unused declarations.
212 * buffer.h: Likewise.
213 * charset.h: Likewise.
214 * composite.h: Likewise.
215 * dispextern.h: Likewise.
216 * dispnew.c: Likewise.
217 * font.h: Likewise.
218 * fontset.c: Likewise.
219 * fontset.h: Likewise.
220 * intervals.h: Likewise.
221 * keymap.h: Likewise.
222 * lisp.h: Likewise.
223 * syntax.c: Likewise.
224 * syntax.h: Likewise.
225 * termhooks.h: Likewise.
226 * window.h: Likewise.
227 * xsettings.h: Likewise.
228 * xterm.c: Likewise.
229 * xterm.h: Likewise.
230
231 * chartab.c (sub_char_table_ref): Make static.
232 * dispnew.c (line_hash_code, required_matrix_height)
233 (required_matrix_width): Likewise.
234 * eval.c (interactive_p, apply_lambda): Likewise.
235 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
236 Likewise.
237 * font.c (QCadstyle, QCregistry, font_make_spec)
238 (font_parse_fcname, font_encode_char, font_at): Likewise.
239 * frame.c (x_frame_get_arg): Likewise.
240 * keymap.c (get_keyelt): Likewise.
241 * lread.c (read_filtered_event): Likewise.
242 * print.c (write_string_1): Likewise.
243 * window.c (delete_window, window_height, window_width)
244 (foreach_window): Likewise.
245 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
246 * xterm.c (x_scroll_bar_clear, xembed_set_info)
247 (xembed_send_message): Likewise.
248
249 * eval.c (run_hook_list_with_args): Delete.
250 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
251 * terminal.c (get_terminal_param): Likewise.
252 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
253
c4b607ed
AS
254 * scroll.c: Fix comment.
255
59fc5cf9
AS
256 * dispnew.c (add_window_display_history)
257 (add_frame_display_history, glyph_row_slice_p)
258 (find_glyph_row_slice, flush_stdout)
259 (check_matrix_pointer_lossage, matrix_row)
260 (check_matrix_invariants, check_window_matrix_pointers)
261 (check_matrix_pointers, window_to_frame_vpos)
262 (window_to_frame_hpos): Prototize.
263 * textprop.c (erase_properties): Likewise.
264
a65b85b5
SM
2652010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
266
17870c01
SM
267 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
268 (print_preprocess): Fix handling of uninterned symbols in last change.
269
a65b85b5
SM
270 * print.c (print, print_preprocess, print_object): Use a hash table
271 rather than a linear table for Vprint_number_table.
272
f13183cf
CY
2732010-12-20 Chong Yidong <cyd@stupidchicken.com>
274
275 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
276
94975270
CY
2772010-12-20 Chong Yidong <cyd@stupidchicken.com>
278
279 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
280 (parse_tool_bar_item): Use it to obtain image separators for
281 displays not using native tool-bar separators.
282
283 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
284 specially, since this is now done in parse_tool_bar_item.
285
ef1b0ba7
SM
2862010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
287
288 Minor clean up to silence some gcc warnings.
289 * window.c (Fset_window_buffer):
290 * xterm.c (x_set_frame_alpha): Restructure code to silence
291 compiler warning.
292 (handle_one_xevent): Remove unused var `p'.
293 (do_ewmh_fullscreen): Remove unused var `lval'.
294 (xembed_set_info): Remove unused var `atom'.
295 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
296 compiler warning.
297 * fontset.c (fontset_id_valid_p, dump_fontset):
298 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
299 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
300 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
301 label only when it's used.
302 * image.c (x_create_bitmap_from_xpm_data):
303 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
304 its callers.
305 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
306 `consumed_chars'.
307 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
308 (decode_coding_emacs_mule): Remove unused label `retry'.
309 (detect_eol): Add parens to silence compiler warning.
310 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
311 it's used to silence the compiler.
312 (make_number): Modernize k&r declaration.
313 (mark_char_table): Add parens to silence compiler warning.
314
4039c786
CY
3152010-12-17 Chong Yidong <cyd@stupidchicken.com>
316
317 * keyboard.c (parse_tool_bar_item): Allow menu separators in
318 tool-bar maps.
319 (menu_separator_name_p): New function, from gtkutil.c.
320 (separator_names): Move from gtkutil.c.
321
322 * keyboard.h (menu_separator_name_p): Add prototype.
323
324 * gtkutil.c (XG_BIN_CHILD): New macro.
325 (xg_get_menu_item_label, xg_update_menubar)
326 (xg_update_menu_item, xg_tool_bar_menu_proxy)
327 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
328 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
329 (create_menus, xg_update_submenu, update_frame_tool_bar):
330 Use menu_separator_name_p.
4039c786
CY
331
332 * nsmenu.m (name_is_separator): Function deleted.
333 (addItemWithWidgetValue): Use menu_separator_name_p.
334
335 * w32menu.c (name_is_separator): Function deleted.
336 (add_menu_item): Use menu_separator_name_p.
337
aa936e8e
JD
3382010-12-16 Jan Djärv <jan.h.d@swipnet.se>
339
340 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
341 same as the background, use the face forground as cursor.
342
f49d1f52 3432010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
344
345 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
346
f49d1f52 3472010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 348
f0559026
EZ
349 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
350 (face_before_or_after_it_pos, next_element_from_string)
351 (next_element_from_c_string, produce_stretch_glyph): Remove unused
352 calculations of maximum string length before calling
353 string_char_and_length and STRING_CHAR_AND_LENGTH.
354 (string_char_and_length): Update commentary: MAXLEN is no longer
355 needed.
356
f49d1f52 3572010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
358
359 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
360 as (Qsave_session arg).
361
362 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
363 (smc_die_CB): Make an event with arg Qt.
364 (Fhandle_save_session): If event has Qt as argument,
365 call Fkill_emacs (Bug#7552).
366
f49d1f52
SM
3672010-12-13 Chong Yidong <cyd@stupidchicken.com>
368
369 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
370
3712010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
372
373 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
374
f49d1f52 3752010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
376
377 * dispextern.h (struct it): New member overlay_strings_charpos.
378
379 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
380 charpos where we computed n_overlay_strings.
381 (next_overlay_string): Load overlay strings at recorded position,
382 which may not be the same as the iterator's charpos (Bug#7016).
383
f49d1f52 3842010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
385
386 * xdisp.c (try_scrolling): Avoid infloop if the first line is
387 obscured due to a vscroll (Bug#7537).
388
f49d1f52 3892010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
390
391 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
392
393 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
394 Use FRAME_TOOLBAR_HEIGHT.
395 (x_set_offset): Handle XNegative and YNegative in
396 f->size_hint_flags (Bug#7510).
397
39321b94
EZ
3982010-12-11 Eli Zaretskii <eliz@gnu.org>
399
400 * w32fns.c (Fx_show_tip): Call try_window with last argument
401 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
402 solved. Round up the tip height to an integral multiple of the
403 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
404 (Bug#7398)
405
ec1b9b17
GM
4062010-12-08 Glenn Morris <rgm@gnu.org>
407
408 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
409
3c2317e8
LMI
4102010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
411
412 * xml.c (parse_region): Ignore blank HTML nodes.
413 (make_dom): Return CDATA sections (like <style>foo</style>) as
414 text nodes.
415
bba3e508
SM
4162010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
417
418 * lread.c (read1): Allow newstyle unquote outside of backquote.
419 Disallow old-style backquotes inside new-style backquotes.
420 Don't count unquotes to figure out when we're "syntactically inside
421 but semantically outside of a backquote" any more.
422 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
423 to all contexts.
424
d23d8608
CY
4252010-12-05 Chong Yidong <cyd@stupidchicken.com>
426
427 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
428
d6a003a8
AS
4292010-12-04 Andreas Schwab <schwab@linux-m68k.org>
430
431 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
432 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
433 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
434
201ef780
AS
4352010-12-03 Andreas Schwab <schwab@linux-m68k.org>
436
437 * lisp.h (union Lisp_Object): Explicitly declare signedness of
438 bit-field.
439 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
440 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
441 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
442 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
443 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
444 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
445 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
446 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
447 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
448 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
449 * m/hp800.h: Remove file.
450 * m/mips.h: Remove file.
451
146490c3
JD
4522010-12-03 Jan Djärv <jan.h.d@swipnet.se>
453
454 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
455 with cursor color and draw a rectangle around the image (Bug#7412).
456
babc8f0d
AS
4572010-12-03 Andreas Schwab <schwab@linux-m68k.org>
458
459 * frame.c (x_set_font): Remove unused variable.
460
9583e9a0
JD
4612010-12-02 Jan Djärv <jan.h.d@swipnet.se>
462
dd723bbd
JD
463 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
464
9583e9a0
JD
465 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
466 drawing text under filled box cursor (Bug#7479).
467
07976ae3 4682010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
469
470 * charset.c (emacs_mule_charset): Make it an array of charset ID;
471 i.e. integer.
bba3e508 472 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
473 (init_charset_once): Likewise.
474
bba3e508
SM
475 * charset.h (emacs_mule_charset): Adjust the prototype.
476 Delete duplicated extern.
b84ae584
KH
477
478 * coding.c (emacs_mule_char): Adjust for the change of
479 emacs_mule_charset.
480
481 * lread.c (read_emacs_mule_char): Adjust for the change of
482 emacs_mule_charset.
483
07976ae3 4842010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
485
486 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
487 of w32api >= 3.15. (Bug#6989) (Bug#7452)
488
07976ae3 4892010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
490
491 * alloc.c (mark_terminals): Ensure that the image cache is marked
492 even if the terminal object was marked earlier (Bug#6301).
493
35f1de62
CY
4942010-11-21 Chong Yidong <cyd@stupidchicken.com>
495
496 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
497
07976ae3 4982010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
499
500 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
501 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
502 Use 23 as menubar height if 0. (Bug#7425).
503
8547874a
EZ
5042010-11-26 Eli Zaretskii <eliz@gnu.org>
505
228482b2
EZ
506 * xdisp.c (set_message_1): Force paragraph direction in echo area
507 be left-to-right.
508
8547874a
EZ
509 * keyboard.c (make_lispy_position): Put a meaningful value in yret
510 when the click is on the header or mode line.
511
1e2dddbe
EZ
5122010-11-25 Eli Zaretskii <eliz@gnu.org>
513
514 * xdisp.c (set_cursor_from_row): Don't forget to consider the
515 `cursor' property of the first character in overlay strings.
12365240 516 (Bug#7474) (Bug#7481)
1e2dddbe 517
50795d1f
JD
5182010-11-24 Jan Djärv <jan.h.d@swipnet.se>
519
520 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
521 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
522 (keyDown): Parse left and right keys separately (Bug#7458).
523 Compare Left key masks exactly (Bug#7458).
50795d1f 524
f8ab8c1f
EZ
5252010-11-23 Eli Zaretskii <eliz@gnu.org>
526
527 * intervals.c (temp_set_point_both): Define before calling, to
528 avoid GCC warnings.
529
2e8a4797
DN
5302010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
531
b29116ef
DN
532 * nsmenu.m: Use #include <config.h> instead of "config.h".
533
b932f8b1
DN
534 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
535 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
536 Move declarations ...
537 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
538 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
539 ... here.
540
42c8bc9b
DN
541 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
542 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
543 (gdb_pvec_type):
544 * print.c (print_output_debug_flag):
545 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
546 (safe_debug_print): New declaration.
547
2e8a4797
DN
548 * xterm.c:
549 * systty.h:
550 * sound.c: Include <sys/ioctl.h> unconditionally.
551
b609f591
YM
5522010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
553
554 * alloc.c (mark_maybe_object): Return early if given a Lisp
555 integer (Bug#6301).
556
731e263a
KB
5572010-11-21 Ken Brown <kbrown@cornell.edu>
558
559 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
560
b7d1e144
JD
5612010-11-21 Jan Djärv <jan.h.d@swipnet.se>
562
563 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
564 Define (Bug#7458).
565 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
566 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
567 NSRightControlKeyMask also (Bug#7458).
568 (keyDown): Ditto (Bug#7458).
569 (syms_of_nsterm): Defvar ns-right-command-modifier and
570 ns-right-control-modifier (Bug#7458).
571
b7982059
DN
5722010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
573
bee3419f
DN
574 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
575 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
576
b7982059
DN
577 * intervals.h (temp_set_point, temp_set_point_both):
578 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
579
01664ed1
KB
5802010-11-20 Ken Brown <kbrown@cornell.edu>
581
582 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
583
7c2d713b
EZ
5842010-11-20 Eli Zaretskii <eliz@gnu.org>
585
586 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
587 \xNNNNNN for hex-code display of glyphless characters.
588
d2bd5189
JD
5892010-11-20 Jan Djärv <jan.h.d@swipnet.se>
590
591 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
592 Set important to ! vert_only.
593 (xg_show_toolbar_item): Don't show label horizontally if
594 tool item isn't important.
595 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
596 xg_make_tool_item, or update important on existing tool item.
597
598 * keyboard.c (QCvert_only): New variable.
599 (parse_tool_bar_item): Check for QCvert_only.
600 (syms_of_keyboard): Initialize QCvert_only.
601
602 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
603
d9a95e67
EZ
6042010-11-20 Eli Zaretskii <eliz@gnu.org>
605
606 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
607 same in-line.
608
b6557553
AS
6092010-11-20 Andreas Schwab <schwab@linux-m68k.org>
610
611 * xfaces.c (lookup_face): Make static.
612 * dispnew.c (copy_row_except_pointers): Likewise.
613 * syntax.c (dec_bytepos): Likewise.
614 (inc_bytepos): Remove.
615 * dispextern.h (lookup_face): Remove declaration.
616
f48fe1f0
EZ
6172010-11-19 Eli Zaretskii <eliz@gnu.org>
618
619 * xdisp.c (set_cursor_from_row): Display cursor after all the
620 glyphs that come from an overlay. Don't overstep the last glyph
621 when skipping glyphs from an overlay. (Bug#6687)
622
654ef137
DN
6232010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
624
84dfc8a7
DN
625 * alloc.c (refill_memory_reserve): Move declaration ...
626 * lisp.h (refill_memory_reserve): ... here.
627
94fa3833
DN
628 * strftime.c (_strftime_copytm): Add declaration.
629
dde990a0
DN
630 * callproc.c (syms_of_callproc): Use intern_c_string.
631
50c77428
DN
632 Move declarations from .c files to .h files.
633 * process.c (timers_run):
634 * minibuf.c (quit_char):
635 * lread.c (read_emacs_mule_char):
636 * keyboard.c (minibuf_level, message_enable_multibyte)
637 (pending_malloc_warning):
638 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
639 (Qonly): Remove declarations.
640 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
641 (Vselect_active_regions):
642 * keyboard.h (timers_run): Add declarations.
643
654ef137
DN
644 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
645 (tm_diff): Convert definitions to standard C.
646 (extra_args_spec_iso): Remove, unused.
647
4a47c275 6482010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
649
650 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
651
652 * config.in (HAVE_G_TYPE_INIT): New symbol.
653
4a47c275 6542010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
655
656 * lread.c (Fload): Mention `load-in-progress' and
657 `load-file-name'. (Bug#7346)
658
86520d8c
EZ
659 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
660 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
661 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
662 subprocesses. Use buffer_free only ifdef subprocesses.
663
664 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
665 the subprocesses version, not in the non-subprocesses one.
666
794a4b6d
EZ
667 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
668
146d267b
EZ
6692010-11-17 Eli Zaretskii <eliz@gnu.org>
670
671 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
672 lines on text-mode terminals. (bug#7417)
673
fad0d565
SM
6742010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
675
676 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
677 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
678
6b4bb703
KH
6792010-11-17 Kenichi Handa <handa@m17n.org>
680
681 * coding.c (Fset_terminal_coding_system_internal): Fix previous
682 change (set charset-ID list instead of charset-symbol list).
683
9173a8fb
CY
6842010-11-16 Chong Yidong <cyd@stupidchicken.com>
685
686 * keyboard.c (make_lispy_position): For text area clicks, record Y
687 pixel position relative to the text area, excluding header line.
688 Also change X and Y to Lisp_Objects, not pointers; don't return
689 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
690 buffer_posn_from_coords counting from the start of the text area.
691 (Fposn_at_x_y, make_lispy_event): Callers changed.
692
693 * window.c (coordinates_in_window): Change X and Y to ints rather
694 than pointers; don't return coordinates via pointers.
695 (struct check_window_data): Change X and Y from pointers to ints.
696 (window_from_coordinates): Remove args WX and WY; don't return
697 coordinates via pointers.
698 (Fcoordinates_in_window_p, window_from_coordinates):
699 (check_window_containing, Fwindow_at): Callers changed.
700 (window_relative_x_coord): New function.
701
702 * window.h (window_from_coordinates, window_relative_x_coord):
703 Update prototypes.
704
705 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
706 the start of the text area.
707
708 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
709 call. Use window_relative_x_coord.
710 (note_mouse_highlight): Change window_from_coordinates call.
711
712 * w32term.c (w32_read_socket):
713 * msdos.c (dos_rawgetc):
714 * xterm.c (handle_one_xevent): Likewise.
715
d2762c86
DN
7162010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
717
718 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
719 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
720 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
721 Convert definitions to standard C.
722 * regex.c: Do not include <stdlib.h>, config.h does it.
723 Include unistd.h.
724 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
725 (regerror, regfree): Convert definitions to standard C.
726 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
727 (__mktime_internal): Convert definitions to standard C.
728
c2f0866a
DN
7292010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
730
42a7e7f1
DN
731 * w32proc.c:
732 * w32inevt.c:
733 * w32heap.c:
734 * w32.c: Remove config.h include guards.
735
67802943
DN
736 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
737 No code changes.
738
f0e1af46
DN
739 * process.c: Include <sys/ioctl.h> unconditionally,
740 keyboard.c already does it.
741
c2f0866a
DN
742 * keyboard.c (pending_malloc_warning): Add const to match
743 definition in alloc.c.
744 (Fset_input_interrupt_mode): Simplify #ifdefs.
745
92d3ab7e
DN
7462010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
747
12e610e8
DN
748 Clean up systty.h macros.
749 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
750 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
751 definition in all uses.
752 (EMACS_TTY_TABS_OK): Remove, it has a single user.
753 * sysdep.c (discard_tty_input, child_setup_tty)
754 (init_sys_modes, tabs_safe_p, reset_sys_modes):
755 * emacs.c (shut_down_emacs):
756 * callproc.c (child_setup):
757 * term.c (dissociate_if_controlling_tty): Inline removed macros.
758
92d3ab7e
DN
759 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
760
a3e6bad4
CY
7612010-11-14 Chong Yidong <cyd@stupidchicken.com>
762
763 * w32fns.c (Fx_create_frame):
764 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
765 resource here; it's now done at startup.
766
5a232ffb
J
7672010-11-14 Jan Djärv <jan.h.d@swipnet.se>
768
769 * xterm.c (set_wm_state): Add Qnil to final cons.
770
771 * xselect.c (x_send_client_event): Remove unused variables cons and
772 size.
773
24021b38
YM
7742010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
775
776 * keyboard.c (modify_event_symbol) : Add const to array elements of
777 arg NAME_TABLE.
778 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
779 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
780 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
781 Add const to array elements.
782 (scroll_bar_parts): Make static. Fix position of const.
783
784 * w32fns.c (lispy_function_keys): Add const to extern.
785
786 * w32inevt.c (lispy_function_keys): Likewise.
787
afa42fe3
CY
7882010-11-14 Chong Yidong <cyd@stupidchicken.com>
789
790 * xfns.c (Fx_create_frame): Don't check for the cursorColor
791 resource here; it's now done at startup.
792
53260a94
DN
7932010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
794
c865c575 795 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 796
c865c575 797 Fix compilation on Solaris.
ff2e8052
DN
798 * sysdep.c: Do not #include <term.h>.
799 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
800
53260a94
DN
801 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
802
933e29ff
J
8032010-11-13 Jan Djärv <jan.h.d@swipnet.se>
804
805 * xterm.c (set_wm_state): Don't put Atom in cons, call
806 make_fixnum_or_float on them first.
807 (x_term_init): Initialize Xatom_net_supporting_wm_check and
808 Xatom_net_supported correctly.
809
810 * xselect.c (x_send_client_event): Move CHECK_STRING ...
811 (Fx_send_client_event): to here.
812
a048073e
MR
8132010-11-13 Martin Rudalics <rudalics@gmx.at>
814
815 * window.c (Fwindow_use_time): New function.
816
0eb025fb
EZ
8172010-11-13 Eli Zaretskii <eliz@gnu.org>
818
819 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
820 zero-width characters.
821
822 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
823
824 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
825 box before drawing the glyphs inside it.
826
827 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
828
bba3e508
SM
829 * dispextern.h (enum glyphless_display_method):
830 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
831 All users changed.
0eb025fb 832
bba3e508
SM
833 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
834 Fix comments.
0eb025fb
EZ
835 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
836 whitespace in "[]", to simulate a box. Don't use uninitialized
837 variable `width'.
838
c869cc37
JD
8392010-11-11 Julien Danjou <julien@danjou.info>
840
2d9074ba
JD
841 * xsettings.c (init_xsettings): Use already fetch atoms.
842
843 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
844 from dpyinfo.
845
846 * xselect.c (Fx_send_client_event): Split and create
847 x_send_client_event.
848
849 * lisp.h: Do not EXFUN Fx_send_client_event.
850
851 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
852 from dpyinfo.
853 (wm_supports): Use atoms from dpyinfo.
854 (do_ewmh_fullscreen): Use atoms from dpyinfo.
855 (x_ewmh_activate_frame): Use atoms from dpyinfo.
856 (xembed_set_info): Use atoms from dpyinfo.
857 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
858 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
859 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
860 Get all atoms in one round-trip.
861 (set_wm_state): Use x_send_client_event rather than
862 Fx_send_client_event, using Atom directly.
863 (x_ewmh_activate_frame): Ditto.
864 (x_set_sticky): Pass atoms to set_wm_state.
865 (do_ewmh_fullscreen): Ditto.
866
867
868 * xterm.h (x_display_info): Add Xatom_net_supported,
869 Xatom_net_supporting_wm_check, Xatom_net_active_window,
870 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
871
c869cc37
JD
872 * xfns.c (Fx_show_tip): Fix typo in docstring.
873
1a4236ea
SM
8742010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
875
876 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
877 it's not negative.
878
3106121c
YM
8792010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
880
881 * font.c (font_filter_properties): Add const to array elements of
882 properties args.
883
884 * font.h (font_filter_properties): Likewise.
885
886 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
887 elements.
888
889 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
890
da1fec2b
MA
8912010-11-10 Michael Albinus <michael.albinus@gmx.de>
892
893 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
894 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
895 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
896 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
897 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
898
bd6bc222
GM
8992010-11-10 Glenn Morris <rgm@gnu.org>
900
901 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
902
c0098065
EZ
9032010-11-09 Eli Zaretskii <eliz@gnu.org>
904
bd6bc222 905 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 906
d607b96b 9072010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
908
909 * image.c (free_image): Don't garbage the frame here, since this
910 function can be called while redisplaying (Bug#7210).
911 (uncache_image): Garbage the frame here (Bug#6426).
912
d607b96b 9132010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 914
d607b96b
SM
915 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
916 parent is the root window. Check this after traversing window tree.
184765cc 917
d607b96b 918 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 919
d607b96b 920 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 921
d607b96b
SM
922 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
923 before traversing window tree (Bug#5721).
c2e124a9 924
27f92be7
J
9252010-11-07 Jan Djärv <jan.h.d@swipnet.se>
926
66b16767
J
927 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
928
25f38310
SM
929 * xdisp.c (note_mode_line_or_margin_highlight):
930 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 931
a971c0a7
EZ
9322010-11-06 Eli Zaretskii <eliz@gnu.org>
933
934 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
935 adjust width of tool-tip frame to the width of text, excluding the
936 stretch glyph at the beginning of R2L glyph rows.
937
938 * w32fns.c (Fx_show_tip): Likewise.
939
80417b95
JD
9402010-11-06 Jan Djärv <jan.h.d@swipnet.se>
941
942 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 943 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 944
28118eb6
EZ
9452010-11-05 Eli Zaretskii <eliz@gnu.org>
946
c1fc2d3a 947 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
948
949 * term.c: Remove static mouse_face_* variables. All users
950 changed.
951 (term_show_mouse_face, term_clear_mouse_face)
952 (fast_find_position, term_mouse_highlight): Functions deleted.
953 (tty_draw_row_with_mouse_face): New function.
954 (term_mouse_movement): Call note_mouse_highlight instead of
955 term_mouse_highlight.
956
bbf534ce
EZ
957 * nsterm.m (ns_update_window_begin, ns_update_window_end)
958 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
959 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
960 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
961 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
962 Replace Display_Info with Mouse_HLInfo everywhere where
963 mouse_face_* members were accessed for mouse highlight purposes.
964
965 * xterm.c (x_update_window_begin, x_update_window_end)
966 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
967 (handle_one_xevent, x_free_frame_resources, x_term_init):
968 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
969 members were accessed for mouse highlight purposes.
970
971 * w32term.c (x_update_window_begin, x_update_window_end)
972 (x_update_end, w32_read_socket, x_free_frame_resources)
973 (w32_initialize_display_info): Replace Display_Info with
974 Mouse_HLInfo everywhere where mouse_face_* members were accessed
975 for mouse highlight purposes.
976
977 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
978 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
979 unless the frame is on a window-system.
c1fc2d3a 980 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
981 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
982 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
983 (note_mode_line_or_margin_highlight, note_mouse_highlight)
984 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
985 Replace Display_Info with Mouse_HLInfo everywhere where
986 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 987 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
988 HAVE_WINDOW_SYSTEM conditional.
989 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
990 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
991 (try_window_id) [HAVE_GPM || MSDOS]:
992 Call x_clear_window_mouse_face.
d009ae66 993 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
994 systems. Call tty_draw_row_with_mouse_face for TTY systems.
995 (show_mouse_face): Call draw_row_with_mouse_face, instead of
996 calling draw_glyphs directly.
d009ae66
EZ
997 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
998 (cursor_in_mouse_face_p, rows_from_pos_range)
999 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1000 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1001 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1002 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1003 fragments.
1004 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1005 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1006 integer.
1007 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
1008 (x_consider_frame_title, tool_bar_lines_needed):
1009 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
1010 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1011 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1012 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1013 part.
d009ae66
EZ
1014
1015 * dispnew.c (mirror_make_current): Set Y coordinate of the
1016 mode-line and header-line rows.
c1fc2d3a
EZ
1017 (init_display): Setup initial frame's output_data for text
1018 terminal frames.
d009ae66 1019
c1fc2d3a
EZ
1020 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1021 its own definition on msdos.c.
d009ae66
EZ
1022
1023 * msdos.c (show_mouse_face, clear_mouse_face)
1024 (fast_find_position, IT_note_mode_line_highlight)
1025 (IT_note_mouse_highlight): Functions deleted.
1026 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1027 instead of IT_note_mouse_highlight.
1028 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
1029 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1030 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1031 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1032 where mouse_face_* members were accessed for mouse highlight
1033 purposes.
1034
1035 * msdos.h (initialize_msdos_display): Add prototype.
1036
1037 * frame.h (MOUSE_HL_INFO): New macro.
1038
1039 * lisp.h (Mouse_HLInfo): New data type.
1040
1041 * xterm.h (struct x_display_info):
1042 * w32term.h (struct w32_display_info):
1043 * nsterm.h (struct ns_display_info):
1044 * termchar.h (struct tty_display_info): Use it instead of
1045 mouse_face_* members.
1046
1047 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1048 1st argument.
1049 (frame_to_window_pixel_xy, note_mouse_highlight)
1050 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
1051 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
1052 HAVE_WINDOW_SYSTEM conditional.
1053 (draw_row_with_mouse_face): Declare prototype.
1054 (tty_draw_row_with_mouse_face): Declare prototype.
1055
6e8d7c47
EZ
10562010-11-05 Eli Zaretskii <eliz@gnu.org>
1057
bba3e508
SM
1058 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1059 Remove unused variables.
6e8d7c47 1060
f31ba3f0
AR
10612010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1062
1063 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
1064 logic pointed out by Eli Zaretskii.
1065
448e17d6
LMI
10662010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
1067
0c3a9a9f
GM
1068 * coding.c (coding-category-list): Refer to set-coding-system-priority
1069 instead of the obsolete set-coding-priority in the doc string.
448e17d6 1070
f31ba3f0 1071
3fdebbf9 10722010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
1073
1074 * nsfont.m (nsfont_draw): Correct previous patch to return
1075 correct value.
1076 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
1077 don't change the method signature, change the return.
1078
10792010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
1080
1081 * nsfont.m (nsfont_draw)
1082 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 1083 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 1084
17c0c952
JD
10852010-11-03 Julien Danjou <julien@danjou.info>
1086
1087 * image.c (gif_load): Add support for transparency and specified
1088 :background.
1089
b18fad6d
KH
10902010-11-01 Kenichi Handa <handa@m17n.org>
1091
1092 * dispextern.h (lookup_glyphless_char_display): Extern it.
1093
1094 * termhooks.h (struct terminal): New member charset_list.
1095
1096 * coding.c (Fset_terminal_coding_system_internal): Set the
1097 `charset_list' member of struct terminal.
1098
a8039db1 1099 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
1100 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1101
1102 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
1103 (lookup_glyphless_char_display): Set it->what at the end.
1104 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1105 (last_glyphless_glyph_merged_face_id): Make them non-static.
1106
a8039db1
JB
1107 * w32term.c (x_draw_glyphless_glyph_string_foreground):
1108 Fix the arg with_background for font->driver->draw.
65b6b59a 1109
a8039db1 11102010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 1111
a8039db1
JB
1112 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
1113 Surround chp by parentheses.
0269bd90 1114
a8039db1 11152010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
1116
1117 Implement various display methods for glyphless characters.
1118
1119 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
1120 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
1121 (Qzero_width): New variables.
1122 (THIN_SPACE_WIDTH): New macro.
1123 (lookup_glyphless_char_display): New funciton.
1124 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1125 (last_glyphless_glyph_merged_face_id): New variables.
1126 (get_next_display_element): Check glyphless characters.
1127 (redisplay_internal): Initialize last_glyphless_glyph_frame and
1128 last_glyphless_glyph_face_id.
1129 (fill_glyphless_glyph_string): New function.
1130 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
1131 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
1132 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1133 (x_produce_glyphs): If a suitable font is not found, produce a
1134 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
1135 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
1136 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
1137 Qzero_width.
1138 (Vglyphless_char_display): Declare it as a Lisp variable.
1139
1140 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
1141 (struct glyph): Change the size of the member "type" to 3.
1142 Add glyphless to the union slice and u.
b2cca856
KH
1143 (enum display_element_type): Add IT_GLYPHLESS.
1144 (enum glyphless_display_method): New enum.
1145 (struct it): New member glyphless_method.
1146 (Vglyphless_char_display): Extern it.
1147
1148 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
1149 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1150
a8039db1 1151 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
1152 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1153
1154 * nsterm.m (ns_draw_glyph_string): Handle the case
1155 GLYPHLESS_GLYPH (the detail is not yet implemented).
1156
c8c59954
GM
11572010-10-31 Glenn Morris <rgm@gnu.org>
1158
80696982
GM
1159 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
1160
c8c59954
GM
1161 * frame.c (syms_of_frame) <tool-bar-mode>:
1162 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
1163
46eadc7a
CY
11642010-10-31 Chong Yidong <cyd@stupidchicken.com>
1165
1166 * xterm.c (x_connection_closed): Print informative error message
1167 when aborting on GTK. This requires using shut_down_emacs
1168 directly instead of Fkill_emacs.
1169
ffe75e6b
EZ
11702010-10-29 Eli Zaretskii <eliz@gnu.org>
1171
1172 * emacs.c (main): Call syms_of_filelock unconditionally.
1173
1174 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
1175 clause, but keep part of it conditioned on CLASH_DETECTION.
1176
9d794026
GM
11772010-10-29 Glenn Morris <rgm@gnu.org>
1178
4f4f2973
GM
1179 * nsfns.m (Fx-display-save-under, Fx-open-connection)
1180 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
1181 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
1182 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
1183 Sync docs between X, W32, NS.
1184
9d794026
GM
1185 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
1186 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
1187
d46f6bbb
JB
11882010-10-26 Juanma Barranquero <lekktu@gmail.com>
1189
1190 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
1191 otherwise, bootstrapping on Windows fails to compile macroexp.el.
1192
2e35f1a2
EZ
11932010-10-26 Eli Zaretskii <eliz@gnu.org>
1194
1195 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 1196 zero or negative. (Bug#7281)
2e35f1a2 1197
8daaeda6
J
11982010-10-26 Jan Djärv <jan.h.d@swipnet.se>
1199
1200 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
1201
6a5c2175
GM
12022010-10-25 Glenn Morris <rgm@gnu.org>
1203
1204 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
1205
7c051dd8
GM
12062010-10-24 Glenn Morris <rgm@gnu.org>
1207
1208 * w32fns.c (Fx_synchronize, Fx_change_window_property)
1209 (Fx_window_property, Fx_file_dialog):
1210 * xfns.c (Fx_synchronize, Fx_change_window_property)
1211 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
1212
23c261f5
CY
12132010-10-24 Chong Yidong <cyd@stupidchicken.com>
1214
1215 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
1216
d414c713 12172010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
1218
1219 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
1220
1221 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
1222 Deprecate use as a boolean flag.
1223
947f5e01
JM
12242010-10-24 Jim Meyering <jim@meyering.net>
1225
1226 * emacs.c (argmatch): Don't treat "--" as "--chdir".
1227
65807d73
GM
12282010-10-24 Glenn Morris <rgm@gnu.org>
1229
f5f25615
GM
1230 * w16select.c (syms_of_win16select) <selection-coding-system>:
1231 <next-selection-coding-system>:
1232 * w32select.c (syms_of_w32select) <selection-coding-system>:
1233 <next-selection-coding-system>:
3646b86d
GM
1234 Sync docs with select.el.
1235
46710489
GM
1236 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
1237 Lisp version.
1238
ea883883
GM
1239 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1240 Sync doc with the xterm.c version.
1241
65807d73
GM
1242 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
1243 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
1244
f3d87560
GM
12452010-10-23 Glenn Morris <rgm@gnu.org>
1246
66c6abf0 1247 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 1248 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 1249 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 1250 <hourglass-delay>: Sync docs with Lisp.
f3d87560 1251
7b7e2c18
EZ
12522010-10-23 Eli Zaretskii <eliz@gnu.org>
1253
d1d6801e 1254 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
1255
1256 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
1257 (mouse_face_from_string_pos): New function, replaces
1258 fast_find_string_pos.
1259 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
1260 (note_mode_line_or_margin_highlight): Support bidi-reordered
1261 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
1262 (note_mouse_highlight): When bidi reordering is turned on in a
1263 buffer, call next-single-property-change and
ef1b0ba7
SM
1264 previous-single-property-change with last argument nil.
1265 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 1266 glyph that stands for no text beyond the line end.
1f382a02
EZ
1267 (row_containing_pos): Don't return too early when CHARPOS is in a
1268 bidi-reordered continued line. Return immediately when the first
1269 hit is found in a line that is not continued, or when an exact
1270 match for CHARPOS is found.
d1d6801e
EZ
1271 (rows_from_pos_range): New function.
1272 (mouse_face_from_buffer_pos): Use it instead of calling
1273 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
1274 function to support mouse highlight in bidi-reordered lines and
1275 not to assume that START_CHARPOS is always in mouse_face_beg_row.
1276 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
1277 that the former is always above the latter or identical to it.
1554d88e 1278 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
1279 (coords_in_mouse_face_p): New function, bidi-aware.
1280 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
1281 Call it instead of comparing with mouse-face members of dpyinfo.
1282 (note_mode_line_or_margin_highlight): Fix confusingly swapped
1283 usage of hpos and vpos.
544bbc31 1284
dee186b6
J
12852010-10-22 Jan Djärv <jan.h.d@swipnet.se>
1286
1287 * xrdb.c: Include keyboard.h for MOTIF.
1288
1289 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
1290 MOTIF (Bug#7263).
1291
1292 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
1293 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
1294 Make ANSI prototypes.
dee186b6 1295
5fb59edb
GM
12962010-10-22 Glenn Morris <rgm@gnu.org>
1297
1298 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
1299 Remove ccl and duplicate mouse.
1300
8b78d5e3
CY
13012010-10-21 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * insdel.c (prepare_to_modify_buffer): Don't set
1304 saved-region-selection if modification hooks are disabled.
1305
b8a47412
CY
13062010-10-19 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * cmds.c (Fdelete_char): Doc fix.
1309
ca3fa302 13102010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
1311
1312 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
1313
ca3fa302 13142010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
1315
1316 Fix incorrect font metrics when the same font is opened with
1317 different pixelsizes.
1318
1319 * xftfont.c: Include composite.h.
1320 (xftfont_shape): New function.
1321 (syms_of_xftfont): Set xftfont_driver.shape.
1322
c978536f
JD
13232010-10-18 Julien Danjou <julien@danjou.info>
1324
1325 * frame.c (Fframe_pointer_visible_p):
1326 Add `frame-pointer-visible-p' to get the pointer visibility.
1327
4b2d9ec2
LMI
13282010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
1329
1330 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
1331 non-"EAGAIN"-like error to signal to Emacs that the socket should
1332 be closed.
1333
9cf66cf2
EZ
13342010-10-15 Eli Zaretskii <eliz@gnu.org>
1335
c3911ead
EZ
1336 * unexcoff.c (make_hdr): Fix prototype according to changes in
1337 2010-10-03T13:59:56Z!dann@ics.uci.edu.
1338
9cf66cf2
EZ
1339 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
1340
be98da05
TH
13412010-10-15 Tassilo Horn <tassilo@member.fsf.org>
1342
1343 * Makefile.in (really-oldXMenu): Fix typo in variable name that
1344 made building the X menu fail.
cc98b256 1345 (really-oldXMenu): Fix my previous fix.
be98da05 1346
220d91b8 13472010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
1348
1349 Fix handling of font properties on Windows (bug#6303).
1350 * font.c (font_filter_properties): New function, refactored from
1351 ftfont_filter_properties.
1352 * font.h (font_filter_properties): Declare.
1353 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
1354 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
1355 (w32font_filter_properties): New function.
1356 (w32font_driver): Add w32font_filter_properties.
1357
220d91b8 13582010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 1359
c0943d3d 1360 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
1361 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
1362
24f981c9
JB
13632010-10-14 Juanma Barranquero <lekktu@gmail.com>
1364
1365 * w32fns.c (w32_wnd_proc, file_dialog_callback):
1366 * w32font.c (w32_generic_family):
1367 * w32inevt.c (key_event):
1368 * w32menu.c (fill_in_menu):
1369 * w32proc.c (reader_thread, w32_executable_type, compare_env)
1370 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
1371 * w32term.c (w32_read_socket): Make static.
1372
850690cc
JB
13732010-10-13 Juanma Barranquero <lekktu@gmail.com>
1374
1375 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
1376 prototypes; all callers changed.
1377
5e371708
JB
13782010-10-13 Juanma Barranquero <lekktu@gmail.com>
1379
1380 * makefile.w32-in (TLIB2): Rename from TLIBW32.
1381 (OBJ2): New macro.
1382 (WIN32OBJ, FONTOBJ): Remove.
1383 (OBJ1): Redistribute object files with OBJ2.
1384 (LIBS, $(TEMACS)): Use TLIB2.
1385 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
1386 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
1387
2e288d54
JB
13882010-10-13 Juanma Barranquero <lekktu@gmail.com>
1389
1390 * emacs.c (Vdynamic_library_alist)
1391 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
1392 Doc fix.
1393
1394 * lisp.h (Vdynamic_library_alist): Declare extern.
1395
1396 * image.c (Vimage_library_alist)
1397 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
1398 (lookup_image_type): Use Vdynamic_library_alist.
1399 (Finit_image_library): Doc fix.
1400
aba1381b
DN
14012010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
1402
1403 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
1404 (lispdir): Remove trailing /, update all uses.
1405
4c14013d 14062010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
1407
1408 * nsterm.m (Qleft): Declare.
1409 (ns_right_alternate_modifier): New variable
1410 (NSRightAlternateKeyMask): New define.
1411 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
1412 ns_right_alternate_modifier isn't Qleft.
1413 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
1414 as emacs modifier for NSRightAlternateKeyMask.
1415 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
1416
355cdaf3
LMI
14172010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
1418
1419 * gnutls.c (emacs_gnutls_write): If we're trying to write before
1420 gnutls is ready, return EAGAIN as the errno.
1421
4c620157
DN
14222010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
1423
edfd76ce
DN
1424 * vm-limit.c:
1425 * unexhp9k800.c:
1426 * unexelf.c:
1427 * unexaix.c:
1428 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
1429
a4daeecf
DN
1430 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
1431 (PROFILING_LDFLAGS): Remove, not needed anymore.
1432
2cb72a75 1433 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
1434 (CRT_DIR): Move near potential user.
1435 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 1436
4c620157
DN
1437 * sysdep.c (LPASS8): Remove, unused.
1438 (emacs_ospeed): Change from being a global to a local in the only
1439 user: init_baud_rate.
1440
b845653d
LMI
14412010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1442
1443 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 1444 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 1445 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 1446 gnutls_read. This allows us to actually read lots of data from
b845653d 1447 the GnuTLS stream.
2e6c74c5
LMI
1448 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
1449 According to the documentation, this is correct, and it seems to
1450 make things work.
b845653d 1451
3625b3e2
CY
14522010-10-09 Chong Yidong <cyd@stupidchicken.com>
1453
1454 * xterm.c (x_draw_relief_rect): Clear corner pixels.
1455
8b1c619f
MA
14562010-10-08 Michael Albinus <michael.albinus@gmx.de>
1457
1458 * keyboard.c: Revert last change; it was not intended to be
1459 synchronized with the trunk.
1460
93d50df8
KH
14612010-10-08 Kenichi Handa <handa@m17n.org>
1462
2b7c9342 1463 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 1464
4628bef1 14652010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
1466
1467 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
1468 (Fdbus_init_bus): ... here. (Bug#7113)
1469
4628bef1 14702010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
1471
1472 * buffer.c (before-change-functions, after-change-functions):
1473 Three-year overdue doc fix following 2007-08-13 change.
1474
4628bef1 14752010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
1476
1477 * coding.c (coding_inherit_eol_type): If parent doesn't specify
1478 eol-format, inherit from the system's default.
1479 (complement_process_encoding_system): Make a new coding system
1480 inherit the original eol-format.
1481
4628bef1 14822010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
1483
1484 * coding.c (complement_process_encoding_system): New function.
1485
1486 * coding.h (complement_process_encoding_system): Extern it.
1487
1488 * callproc.c (Fcall_process): Complement the coding system for
1489 encoding arguments.
1490 (Fcall_process_region): Complement the coding system for encoding
1491 the input to the process.
1492
1493 * process.c (Fstart_process): Complement the coding system for
1494 encoding arguments.
1495 (send_process): Complement the coding system for encoding what
1496 sent to the process.
1497
4628bef1 14982010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
1499
1500 * xfont.c (xfont_open): Fix setting of font->average_width from
1501 :avgwidth property (Bug#7123).
1502
4628bef1 15032010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
1504
1505 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
1506 is more portable.
1507
1508 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
1509 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
1510 has not defined SIGIO.
1511
389454fb
CY
15122010-10-08 Chong Yidong <cyd@stupidchicken.com>
1513
1514 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
1515 draw the outermost line using the black relief, for legibility.
1516 Omit drawing the four corner pixels.
1517
51b403bd
CY
15182010-10-04 Chong Yidong <cyd@stupidchicken.com>
1519
1520 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
1521 (read_key_sequence): Inline echo_prompt.
1522 (echo_dash): Add a dash only if key is continued (Bug#7137).
1523
3e6ae1a4
DN
15242010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
1525
1526 Remove O_RDONLY, O_WRONLY definitions, not needed.
1527 * unexcoff.c:
1528 * lread.c:
1529 * fileio.c:
1530 * doc.c:
1531 * callproc.c:
1532 * alloc.c:
1533 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
1534
c1ae068b
LMI
15352010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
1536
1537 * gnutls.h (GNUTLS_LOG2): Convenience macro.
1538
1539 * gnutls.c: Add property list symbol holders.
1540 (emacs_gnutls_handshake): Clarify how sockets are passed to
1541 GnuTLS.
1542 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
1543 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
1544 and keyfiles to be a list of file names. Default to "NORMAL" for
1545 the priority string. Improve logging.
1546
e2afe435
GM
15472010-10-03 Glenn Morris <rgm@gnu.org>
1548
1549 * fileio.c (Vdirectory_sep_char): Remove.
1550
dd5ecd6b
DN
15512010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
1552
b5437a05
DN
1553 * termhooks.h: Remove #ifdef CONSP.
1554
4777478a
DN
1555 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
1556
a3d5088d
DN
1557 Include <fcntl.h> unconditionally.
1558 * termcap.c:
1559 * sysdep.c:
1560 * lread.c:
1561 * keyboard.c:
1562 * filelock.c:
1563 * fileio.c:
1564 * doc.c:
1565 * callproc.c:
1566 * alloc.c: Remove include guards for <fcntl.h>, process.c already
1567 does it.
1568
82719735
DN
1569 * process.c: Do not include <sys/wait.h>, syswait.h does it.
1570
9de940b5
DN
1571 * sysdep.c (flush_pending_output): Remove code, does not do
1572 anything on any platform.
1573
57507bf8 1574 Remove unused code.
bba3e508
SM
1575 * sysdep.c (select_alarm, sys_select, read_input_waiting):
1576 Remove select emulation, all systems support select.
57507bf8
DN
1577 (set_exclusive_use): Remove, the only user is in an #if 0 block.
1578 * process.c (create_process): Remove #if 0 code.
1579
dd5ecd6b
DN
1580 Remove unused arguments for unexec.
1581 The third one is never used, and the last two are always passed as zero.
1582 * emacs.c (unexec): Add declaration.
1583 (Fdump_emacs): Only pass the first two arguments to unexec.
1584 Simplify #ifdef.
1585 * unexw32.c (unexec):
1586 * unexsol.c (unexec):
1587 * unexhp9k800.c (unexec):
1588 * unexcw.c (unexec): Remove the last 3 arguments, unused.
1589 * unexelf.c (unexec): Remove the last 3 arguments, unused.
1590 (find_section): Use const.
1591 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
1592 (unexec_error): Declare it NO_RETURN.
1593 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
1594 it as an argument, remove data_start and entry_address arguments, unused.
1595 (unexec): Remove bss_start, data_start and
1596 entry_address arguments.
1597 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
1598 it as an argument, remove data_start and entry_address arguments, unused.
1599 (unexec): Remove bss_start, data_start and
1600 entry_address arguments.
1601
74f1829d
JB
16022010-10-03 Juanma Barranquero <lekktu@gmail.com>
1603
7f467e14
JB
1604 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
1605
74f1829d
JB
1606 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
1607 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
1608 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
1609 Fix typos in docstrings.
1610 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
1611 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
1612
6926550f
CY
16132010-10-03 Chong Yidong <cyd@stupidchicken.com>
1614
1615 * keyboard.c (command_loop_1): Make sure the mark is really alive
1616 before using it (Bug#7044).
1617
54b65f7b
JB
16182010-10-02 Juanma Barranquero <lekktu@gmail.com>
1619
1620 * makefile.w32-in (tags): Rename target to full-tags.
1621
383ebd15
EZ
16222010-10-02 Eli Zaretskii <eliz@gnu.org>
1623
1624 * emacs.c (main): Remove !WINDOWSNT conditional.
1625 (Fkill_emacs): Don't mention exemption on MS-Windows.
1626
9c524fcb
GM
16272010-10-02 Glenn Morris <rgm@gnu.org>
1628
3226d6ca
GM
1629 * character.c (Fchar_bytes): Remove obsolete function.
1630 (syms_of_character): Remove Schar_bytes.
1631
9c524fcb
GM
1632 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
1633 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
1634 in batch-mode.
1635 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
1636 (kill-emacs-hook): Doc fix.
1637
1b217849
LMI
16382010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
1639
1640 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 1641 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
1642 renamed to reflect that these are the libxml functions.
1643
54cc6a83
EZ
16442010-10-01 Eli Zaretskii <eliz@gnu.org>
1645
0ebf79de
EZ
1646 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
1647 screen dimensions in tty->Wcm.
1648
54cc6a83
EZ
1649 * xdisp.c (set_cursor_from_row): When the row is truncated and
1650 point is outside the range of displayed characters, position the
1651 cursor inside the scroll margin. (Bug#6349)
1652
321401d1
DN
16532010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
1654
4cacd822
DN
1655 Do not include stdlib.h and string.h, config.h does it.
1656 * xfont.c:
1657 * w32term.c:
1658 * w32reg.c:
1659 * w32inevt.c:
1660 * w32heap.c:
1661 * w32console.c:
1662 * w16select.c:
1663 * unexsol.c:
1664 * term.c:
1665 * sound.c:
1666 * scroll.c (m):
1667 * gtkutil.c:
1668 * font.c:
1669 * filelock.c:
1670 * fileio.c:
1671 * dosfns.c:
1672 * dbusbind.c:
1673 * bidi.c:
1674 * callproc.c:
1675 * process.c:
1676 * msdos.c:
1677 * charset.c: Do not include stdlib.h and string.h, config.h does it.
1678
bba3e508
SM
1679 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
1680 defines it.
0781e7ab 1681
9bf58201
DN
1682 * process.c: Move #include <pty.h> earlier.
1683 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
1684 (pty_name): Move definition later.
1685
088dcc3e
DN
1686 * nsselect.m (syms_of_nsselect):
1687 * nsmenu.m (syms_of_nsmenu):
1688 * nsfns.m (syms_of_nsfns):
1689 * msdos.c (syms_of_msdos):
4cacd822 1690
088dcc3e
DN
1691 * image.c (syms_of_image):
1692 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
1693
321401d1
DN
1694 * point.h: Remove, unused.
1695
73077a9a
EZ
16962010-10-01 Eli Zaretskii <eliz@gnu.org>
1697
1698 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
1699 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
1700 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
1701
55e572ef
DN
17022010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1703
1704 * xml.c (parse_string): Use const.
1705
d4b6d95d
LMI
17062010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
1707
ef1b0ba7
SM
1708 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
1709 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
1710 the level to 8 to produce more useful backtraces for bug reports.
1711
e4b6db12
DN
17122010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1713
1714 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
1715
1becef93
JB
17162010-09-30 Juanma Barranquero <lekktu@gmail.com>
1717
1718 * w32console.c (vga_stdcolor_name): Remove unused function;
1719 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
1720
df7fcaff
LMI
17212010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
1722
bac5cef8
LMI
1723 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
1724 (Fgnutls_boot): Start the handshake.
1725 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
1726 (Fgnutls_boot): Remove some debugging messages.
1727 Change indentation throughout to use the Emacs style.
1728 (emacs_gnutls_handshake): Cast the fds to something that's
1729 possibly the expected length.
1730 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 1731
df7fcaff
LMI
1732 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
1733
1734 * process.c (make_process): Set the gnutls_p field to zero by
1735 default.
1736 (read_process_output): Always call the gnutls_read function if the
1737 stream is a gnutls stream.
1738 (send_process): Ditto for writes.
1739
1740 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
1741 or write anything until the state is GNUTLS_STAGE_READY.
1742 (Fgnutls_boot): Mark the stream as being a gnutls stream.
1743
d585695f
EZ
17442010-09-29 Eli Zaretskii <eliz@gnu.org>
1745
af7ef32d
EZ
1746 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
1747 NEUTRAL_DIR.
1748 (handle_invisible_prop, iterate_out_of_display_property)
1749 (next_element_from_buffer): If bidi_it.first_elt is set, call
1750 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
1751 (Bug#7128)
1752
d585695f
EZ
1753 * print.c (print_object): Fix format string and argument types for
1754 printing a Lisp_Misc_Marker.
1755
1756 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
1757 (load_overlay_strings, get_overlay_strings_1)
1758 (get_overlay_strings, forward_to_next_line_start)
1759 (back_to_previous_visible_line_start, reseat, reseat_to_string)
1760 (get_next_display_element, next_element_from_string)
1761 (next_element_from_c_string, next_element_from_buffer)
1762 (move_it_vertically_backward, move_it_by_lines, add_to_log)
1763 (message_dolog, message_log_check_duplicate, message2_nolog)
1764 (message3, message3_nolog, vmessage, set_message, set_message_1)
1765 (hscroll_window_tree, text_outside_line_unchanged_p)
1766 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
1767 (find_last_unchanged_at_beg_row)
1768 (find_first_unchanged_at_end_row, row_containing_pos)
1769 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
1770 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
1771 Use EMACS_INT for buffer and string positions.
d585695f
EZ
1772
1773 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
1774 (row_containing_pos): Adjust prototype.
1775
1776 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
1777 (message2_nolog, set_message): Adjust prototypes.
1778
a6f3211f
SM
17792010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1780
1781 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
1782 (Fgnutls_boot): Use SDATA.
1783 (Fgnutls_handshake): Remove unused var `max_log_level'.
1784
e0720500
MA
17852010-09-27 Michael Albinus <michael.albinus@gmx.de>
1786
11a5af7c 1787 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
1788 (Bug#7113)
1789
d8a4b27a
J
17902010-09-27 Jan Djärv <jan.h.d@swipnet.se>
1791
42d3022b
J
1792 * xgselect.c (xg_select): Clear file descriptors not set from
1793 rfds and wfds.
1794
d8a4b27a
J
1795 * process.c (wait_reading_process_output): Add missing FD_CLR
1796 for write_mask (must mirror connect_wait_mask).
1797
8ed70bf3
LMI
17982010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
1799
1800 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
1801 prefix.
1802 (Fgnutls_boot): Use changed process members. Use log level with a
1803 function parameter to set it. Bring back Emacs-level debugging
1804 messages at log level 1 and 2.
1805
1806 * process.c (make_process): Initialize gnutls_log_level.
1807
1808 * process.h: Add gnutls_log_level and rename x509_cred and
1809 anon_cred to have the gnutls_ prefix for consistency.
1810
1811 * gnutls.h (GNUTLS_LOG): Add convenience macro.
1812
bedf4aab
JB
18132010-09-27 Juanma Barranquero <lekktu@gmail.com>
1814
1815 * w32.c (g_b_init_get_sid_identifier_authority)
1816 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
1817 Remove, not used.
1818 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
1819 (init_winsock): Remove useless assignment.
1820 (open_process_token, get_token_information, lookup_account_sid)
1821 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
1822 (get_security_descriptor_owner, get_security_descriptor_group)
1823 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
1824 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
1825 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
1826 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
1827 (unc_volume_file_attributes, convert_from_time_t)
1828 (create_toolhelp32_snapshot, process32_first, process32_next)
1829 (open_thread_token, impersonate_self, revert_to_self)
1830 (get_process_memory_info, get_process_working_set_size)
1831 (global_memory_status, global_memory_status_ex, socket_to_fd)
1832 (shutdown_handler): Make static.
1833
08609ffd
MA
18342010-09-27 Michael Albinus <michael.albinus@gmx.de>
1835
1836 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
1837 (xd_pending_messages): Functions removed.
1838 (xd_read_queued_messages): Add parameters fd, *data, for_read in
1839 order to be compatible with add_read_fd. Determine bus from data,
1840 and call xd_read_message just for this bus.
1841 (xd_add_watch): Use xd_read_queued_messages as callback function.
1842 Add data.
1843
1844 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
1845
d2e9d0bb
LMI
18462010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
1847
ef1b0ba7 1848 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 1849 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 1850
4be9765d
KH
18512010-09-27 Kenichi Handa <handa@m17n.org>
1852
1853 These changes are to remove restriction on the number of glyphs in
1854 one composition.
1855
1856 * dispextern.h (struct glyph): Change the member "slice" to union.
1857 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 1858 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
1859
1860 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
1861 instead of glyph->slice.
1862 (marginal_area_string): Likewise.
1863
1864 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
1865 glyph->u.cmp.
1866 (append_composite_glyph): Likewise.
1867
1868 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
1869 glyph->u.cmp.
1870 (fill_gstring_glyph_string, x_get_glyph_overhangs)
1871 (append_composite_glyph): Likewise.
1872 (fill_image_glyph_string): Use glyph->slice.img instead of
1873 glyph->slice.
1874 (append_glyph, produce_image_glyph, append_stretch_glyph)
1875 (note_mouse_highlight): Likewise.
1876
3fad2ad2
J
18772010-09-26 Jan Djärv <jan.h.d@swipnet.se>
1878
bf05eed6
J
1879 * process.c (add_keyboard_wait_descriptor)
1880 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
1881 (wait_reading_process_output): Don't pass write_mask to select
1882 if SELECT_CANT_DO_WRITE_MASK is defined.
1883 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 1884
3fad2ad2
J
1885 * process.h (add_read_fd, delete_read_fd, add_write_fd)
1886 (delete_write_fd): Declare.
1887
1888 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
1889 (write_mask): New variable.
ef1b0ba7 1890 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 1891 (fd_callback_info): New variable.
70e31436
JB
1892 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
1893 New functions.
3fad2ad2
J
1894 (Fmake_network_process): FD_SET write_mask.
1895 (deactivate_process): FD_CLR write_mask.
1896 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
1897 check_connect removed. check_write is new. Remove references to gpm.
1898 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
1899 NON_BLOCKING_CONNECT) instead of Connecting.
1900 Loop over file descriptors and call callbacks in fd_callback_info
1901 if file descriptor is ready for I/O.
1902 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
1903 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
1904 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
1905 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
1906 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
1907 (init_process): Initialize write_mask and fd_callback_info.
1908
1909 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
1910
1911 * dbusbind.c: Include process.h.
1912 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
1913 (xd_read_message_1): New functions.
70e31436
JB
1914 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
1915 Handle watch for both read and write.
3fad2ad2
J
1916 (Fdbus_init_bus): Also register xd_toggle_watch.
1917 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1918 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
1919 to dbus_connection_flush.
70e31436 1920 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
1921 Call xd_read_message_1 until status is COMPLETE.
1922
dce4c2ac
DN
19232010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
1924
1925 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
1926 (init_tty): Reorder code to reduce the number of #ifdefs.
1927 No code changes.
dce4c2ac 1928
8af55556
TZ
19292010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
1930
1931 * process.h: Set up GnuTLS support.
1932
1933 * process.c (make_process, Fstart_process)
1934 (read_process_output, send_process): Set up GnuTLS support for
1935 process input/output file descriptors.
1936
1937 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
1938
1939 * gnutls.c: The source code for GnuTLS support in Emacs.
1940
1941 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
1942
1943 * config.in: Set up GnuTLS support.
1944
1945 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
1946 (obj, LIBES): Set up GnuTLS support.
1947
83e245c4
JB
19482010-09-26 Juanma Barranquero <lekktu@gmail.com>
1949
1950 * w32.c (get_emacs_configuration_options): Fix previous change.
1951
d24ec09a
CY
19522010-09-25 Chong Yidong <cyd@stupidchicken.com>
1953
1954 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
1955 alive before using it (Bug#6977).
1956
b7bdc47c
LMI
19572010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
1958
a952d5f3
LMI
1959 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
1960
1961 * dispextern.h: EMACS_INT/int fixup.
1962
1963 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
1964 fixup.
1965
b7bdc47c
LMI
1966 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
1967
41118bd3
EZ
19682010-09-25 Eli Zaretskii <eliz@gnu.org>
1969
2452438f
EZ
1970 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
1971 (Fselect_window, window_scroll_pixel_based)
1972 (window_scroll_line_based, Frecenter, Fset_window_configuration):
1973 Use EMACS_INT for buffer positions.
1974
1975 * textprop.c (validate_interval_range, interval_of)
1976 (property_change_between_p, Fadd_text_properties)
1977 (set_text_properties_1, Fremove_text_properties)
1978 (Fremove_list_of_text_properties, Ftext_property_any)
1979 (Ftext_property_not_all, copy_text_properties)
1980 (text_property_list, extend_property_ranges)
1981 (verify_interval_modification): Use EMACS_INT for buffer
1982 positions.
1983
f877c546
EZ
1984 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
1985 for buffer positions.
1986
1987 * process.c (read_process_output, send_process)
1988 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
1989 and string positions and size.
1990
da43f021
EZ
1991 * print.c (print_object, print_string, strout): Use EMACS_INT for
1992 string indices.
1993
1994 * minibuf.c (string_to_object): Use EMACS_INT for string position
1995 and size.
1996
1997 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
1998
1999 * lread.c <read_from_string_index, read_from_string_index_byte>
2000 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2001 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2002 buffer positions and string length.
2003
41118bd3
EZ
2004 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2005 EMACS_INT.
2006 (echo_truncate, adjust_point_for_property, read_char)
2007 (gen_help_event, make_lispy_event, modify_event_symbol)
2008 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2009 for buffer positions and string length.
2010
2011 * keyboard.h (gen_help_event): Adjust prototype.
2012
2013 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2014
2015 * commands.h <last_point_position>: Declare EMACS_INT.
2016
2017 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2018 (truncate_echo_area): Accept EMACS_INT argument.
2019
2020 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2021
2022 * lisp.h (truncate_echo_area): Adjust prototype.
2023
2024 * composite.c (composition_adjust_point): Return EMACS_INT.
2025
2026 * composite.h (composition_adjust_point): Adjust prototype.
2027
ba3033ee
JB
20282010-09-25 Juanma Barranquero <lekktu@gmail.com>
2029
2030 * process.c (Fmake_network_process): When arg :host is 'local,
2031 use address 127.0.0.1, not name "localhost". (Bug#6781)
2032
4f3a2f8d
EZ
20332010-09-24 Eli Zaretskii <eliz@gnu.org>
2034
5816888b
EZ
2035 * indent.c (Fcurrent_indentation, indented_beyond_p)
2036 (compute_motion): Use EMACS_INT for buffer position variables.
2037
2038 * lisp.h (indented_beyond_p): Adjust prototype.
2039
2040 * buffer.c (overlay_strings): Return EMACS_INT.
2041
2042 * buffer.h (overlay_strings): Adjust prototype.
2043
2044 * region-cache.c (pp_cache): Adjust format to arguments.
2045
2046 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
2047 (call_debugger): Use EMACS_INT for specpdl_size related variables.
2048 (verror): Use EMACS_INT for size of allocated buffer.
2049
ace1712c
EZ
2050 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
2051 positions.
2052
2053 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
2054 (set_cursor_from_row, find_first_unchanged_at_end_row):
2055 Use EMACS_INT for buffer positions.
ace1712c 2056
f5276b75 2057 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
2058
2059 * dispnew.c (increment_matrix_positions)
2060 (increment_row_positions, copy_glyph_row_contents)
2061 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
2062 positions.
2063
2064 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
2065 (increment_matrix_positions, increment_row_positions):
2066 Adjust prototypes.
ace1712c
EZ
2067
2068 * data.c (Faref, Faset): Use EMACS_INT for string length and
2069 positions.
2070
2071 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
2072 characters to insert.
2073
2074 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
2075 position and size.
2076
4f3a2f8d
EZ
2077 * syntax.c (scan_words, update_syntax_table)
2078 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
2079 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
2080 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
2081
2082 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
2083
2084 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
2085 positions.
2086
db063399
LMI
20872010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
2088
f0812d35
LMI
2089 * scroll.c (calculate_scrolling, line_ins_del)
2090 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
2091 conversion.
2092
f5c7fc27
LMI
2093 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
2094 (region_cache_backward, region_cache_forward)
2095 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
2096 conversion.
2097
db063399
LMI
2098 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2099
2100 * eval.c (verror): Fix EMACS_INT/int conversion.
2101
07914cd0 2102 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
2103 (print_preprocess, print_check_string_charset_prop)
2104 (print_object): Fix EMACS_INT/int conversion.
2105
2106 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2107
e6d4aefa
EZ
21082010-09-24 Eli Zaretskii <eliz@gnu.org>
2109
69481da7
EZ
2110 * callproc.c (Fcall_process): Use EMACS_INT for count of
2111 characters read from the subprocess.
2112
61bfec98
EZ
2113 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
2114 positions.
2115 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
2116 positions.
2117
145582a0
EZ
2118 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
2119 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
2120 length.
2121 (advance_to_char_boundary, Fset_buffer_multibyte)
2122 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
2123 (overlay_touches_p, record_overlay_string, overlay_strings)
2124 (recenter_overlay_lists, fix_start_end_in_overlays)
2125 (modify_overlay, Fmove_overlay, report_overlay_modification)
2126 (evaporate_overlays): Use EMACS_INT for buffer positions.
2127
bba3e508
SM
2128 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
2129 Adjust prototypes.
145582a0 2130
446470a9
EZ
2131 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
2132 positions.
2133
e6d4aefa
EZ
2134 * fns.c (Fcompare_strings, Fstring_lessp, concat)
2135 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
2136 (Fsubstring_no_properties, substring_both, Ffillarray)
2137 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
2138 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
2139 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
2140 (Fmd5): Use EMACS_INT for buffer and string positions and length
2141 variables and arguments.
2142
2143 * lisp.h (substring_both): Adjust prototype.
2144
eb652396
JB
21452010-09-24 Juanma Barranquero <lekktu@gmail.com>
2146
2147 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
2148 * w32fns.c (clipboard_sequence_fn): Don't declare.
2149 (globals_of_w32fns): Don't initialize it.
2150
266a86bd 21512010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
2152
2153 * syntax.c (back_comment): Detect the case where a 1-char comment
2154 starter is also the 2nd char of a 2-char comment ender.
2155
266a86bd 21562010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
2157
2158 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
2159
40283062
LMI
21602010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2161
db063399
LMI
2162 * eval.c (verror): EMACS_INT/int cleanup.
2163
faf8b5bc
LMI
2164 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
2165 unwind_protect more than 2GB worth of functions.
2166
2167 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
2168
40283062
LMI
2169 * lisp.h: Have oblookup take EMACS_INT to allow interning big
2170 string and avoid compiler warnings.
2171 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
2172 all users.
2173
2174 * lread.c (oblookup): EMACS_INT/int cleanup.
2175
2176 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
2177
fe3537c3
EZ
21782010-09-23 Eli Zaretskii <eliz@gnu.org>
2179
2180 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
2181
2182 * lisp.h (clip_to_bounds): Adjust prototype.
2183
2184 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
2185
0350982f
LMI
21862010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2187
84c9ce05
LMI
2188 * lisp.h: doprnt.c EMACS_INT/int cleanup.
2189
2190 * doprnt.c (doprnt): EMACS_INT/int cleanup.
2191
2192 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
2193 cleanup.
2194
0350982f
LMI
2195 * lisp.h: Change the definition of all marker.c functions that
2196 take and return buffer stuff to be EMACS_INT instead of int.
2197
2198 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
2199 (buf_charpos_to_bytepos, bytepos_to_charpos)
2200 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
2201 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
2202 for all buffer positions.
2203
c50bd0d2
CY
22042010-09-23 Chong Yidong <cyd@stupidchicken.com>
2205
2206 * intervals.c (traverse_intervals, rotate_right, rotate_left)
2207 (split_interval_right, find_interval, next_interval)
2208 (delete_node, delete_interval, interval_deletion_adjustment)
2209 (adjust_intervals_for_deletion, merge_interval_right)
2210 (merge_interval_left, graft_intervals_into_buffer)
2211 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
2212
2213 * intervals.h (traverse_intervals): Update prototype.
2214
14162469
EZ
22152010-09-23 Eli Zaretskii <eliz@gnu.org>
2216
c098fdb8
EZ
2217 * indent.c (compute_motion): Use EMACS_INT for arguments to
2218 region_cache_forward.
2219
bba3e508
SM
2220 * region-cache.c (struct boundary, struct region_cache):
2221 Use EMACS_INT for positions.
c098fdb8
EZ
2222 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
2223 (delete_cache_boundaries, set_cache_region)
2224 (invalidate_region_cache, know_region_cache)
bba3e508
SM
2225 (region_cache_forward, region_cache_backward, pp_cache):
2226 Use EMACS_INT for buffer positions.
c098fdb8
EZ
2227
2228 * region-cache.h (know_region_cache, invalidate_region_cache)
2229 (region_cache_forward, region_cache_backward): Adjust prototypes.
2230
2231 * search.c (string_match_1, fast_c_string_match_ignore_case)
2232 (looking_at_1, scan_buffer, scan_newline)
2233 (find_next_newline_no_quit, find_before_next_newline)
2234 (search_command, trivial_regexp_p, search_buffer, simple_search)
2235 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
2236 and string positions and length.
2237
caefdbe7
EZ
2238 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
2239 (find_before_next_newline): Adjust prototypes.
c098fdb8 2240
29cdc13e
EZ
2241 * editfns.c (transpose_markers, update_buffer_properties)
2242 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
2243 (get_pos_property, Fconstrain_to_field)
2244 (Fline_beginning_position, Fline_end_position, Fprevious_char)
2245 (Fchar_after, Fchar_before, Finsert_char)
2246 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
2247 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
2248 Use EMACS_INT for buffer and string position variables.
c098fdb8 2249 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
2250
2251 * lisp.h (clip_to_bounds): Adjust prototype.
2252
e79123aa
EZ
2253 * intervals.c (traverse_intervals, rotate_right, rotate_left)
2254 (balance_an_interval, split_interval_right, split_interval_left)
2255 (find_interval, next_interval, update_interval)
2256 (adjust_intervals_for_insertion, delete_node, delete_interval)
2257 (interval_deletion_adjustment, adjust_intervals_for_deletion)
2258 (offset_intervals, merge_interval_right, merge_interval_left)
2259 (graft_intervals_into_buffer, adjust_for_invis_intang)
2260 (move_if_not_intangible, get_local_map, copy_intervals)
2261 (copy_intervals_to_string, compare_string_intervals)
2262 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 2263 and for interval tree size.
e79123aa
EZ
2264
2265 * intervals.h (traverse_intervals, split_interval_right)
2266 (split_interval_left, find_interval, offset_intervals)
2267 (graft_intervals_into_buffer, copy_intervals)
2268 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
2269 (update_interval): Adjust prototypes.
2270
579c18d0
EZ
2271 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
2272 Use EMACS_INT for buffer position variables and arguments.
2273
2274 * composite.c (get_composition_id, find_composition)
2275 (run_composition_function, compose_text)
2276 (composition_gstring_width, autocmp_chars)
2277 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
2278 for buffer positions and string length variables and arguments.
2279
2280 * composite.h (get_composition_id, find_composition, compose_text)
2281 (composition_gstring_width): Adjust prototypes.
2282
2283 * editfns.c (Fformat): Use EMACS_INT for string size variables.
2284
bba3e508
SM
2285 * xdisp.c (store_mode_line_noprop, display_mode_element):
2286 Use EMACS_INT for string positions.
579c18d0
EZ
2287
2288 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
2289 position arguments.
2290
2291 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
2292
2293 * character.c (parse_str_as_multibyte, str_as_multibyte)
2294 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 2295 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
2296 (strwidth, lisp_string_width, multibyte_chars_in_text):
2297 Use EMACS_INT for string length variables and arguments.
14162469
EZ
2298
2299 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 2300 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
2301 (c_string_width, strwidth, lisp_string_width):
2302 Adjust prototypes.
14162469 2303
579c18d0
EZ
2304 * font.c (font_intern_prop): Use EMACS_INT for string length
2305 variables.
2306
2307 * font.c (font_intern_prop): Use EMACS_INT for string length
2308 variables.
2309
14162469
EZ
2310 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
2311 variables.
2312
2313 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
2314 (Fmake_string): Protect against too large strings.
2315 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
2316 (live_misc_p): Use ptrdiff_t instead of int for pointer
2317 differences.
2318 (string_bytes, check_sblock, check_string_free_list)
2319 (allocate_string_data, compact_small_strings, Fmake_string)
2320 (Fmake_bool_vector, make_string, make_unibyte_string)
2321 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
2322 (make_specified_string_string, Fmake_list, Fmake_vector):
2323 Use EMACS_INT for string length variables and arguments.
14162469
EZ
2324 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
2325 (Fpurecopy): Use EMACS_INT for string size.
2326 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
2327 for vector size.
2328
2329 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
2330 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
2331 (make_pure_string, string_bytes, check_point_in_composition):
2332 Adjust prototypes.
14162469 2333
c8a66ab8
EZ
23342010-09-22 Eli Zaretskii <eliz@gnu.org>
2335
2336 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2337 (check_translation): Use EMACS_INT for buffer positions and
2338 length.
2339
2340 * undo.c (record_marker_adjustment, record_delete)
2341 (record_change, record_point, record_insert)
2342 (record_property_change, Fprimitive_undo): Use EMACS_INT for
2343 buffer positions.
2344
2345 * lisp.h (record_marker_adjustment, record_delete)
2346 (record_change, record_point, record_insert)
2347 (record_property_change, Fprimitive_undo): Adjust prototypes.
2348
38c54d9d
JB
23492010-09-22 Juanma Barranquero <lekktu@gmail.com>
2350 Eli Zaretskii <eliz@gnu.org>
2351
2352 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
2353
413d18e7
EZ
23542010-09-22 Eli Zaretskii <eliz@gnu.org>
2355
2356 * minibuf.c (Fminibuffer_contents)
2357 (Fminibuffer_contents_no_properties)
2358 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
2359 positions.
2360
2361 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
2362 mark.
2363
2364 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
2365 (allocate_string_data): Accept EMACS_INT for string length.
2366
2367 * editfns.c (Ffield_string, Ffield_string_no_properties)
2368 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
2369 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
2370 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
2371 (Ffield_end): Use EMACS_INT for buffer positions.
2372
2373 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
2374 point with mark.
2375
2376 * lisp.h (allocate_string_data, make_uninit_string)
2377 (make_uninit_multibyte_string, make_buffer_string)
2378 (make_buffer_string_both): Adjust prototypes.
2379
4b9832a6
CY
23802010-09-22 Chong Yidong <cyd@stupidchicken.com>
2381
2382 * xml.c: Switch to GNU indentation.
2383 (make_dom): Change parse tree format to match xml.el.
2384 (Fxml_parse_html_string_internal): Rename from html-parse-string.
2385 (Fxml_parse_string_internal): Rename from xml-parse-string.
2386
86282aab
KH
23872010-09-22 Kenichi Handa <handa@m17n.org>
2388
2389 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
2390 only if we are not at a composition.
2391 (set_iterator_to_next): Give it->end_charpos to
2392 composition_compute_stop_pos.
2393 (set_iterator_to_next, next_element_from_buffer): Likewise.
2394
2395 * dispnew.c (buffer_posn_from_coords): Fix position when the
2396 current display element is a grapheme cluster in bidi-reordered
2397 region.
2398
840b985a
AR
23992010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
2400
2401 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
2402 the regions may overlap.
2403
5bc88f4b
JB
24042010-09-21 Juanma Barranquero <lekktu@gmail.com>
2405
2406 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
2407
92bc9a36
DN
24082010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2409
d19e096e
DN
2410 * emacs.c: Do not include sys/ioctl.h, not needed.
2411
92bc9a36
DN
2412 * doprnt.c: Do not include stdlib.h, config.h does it.
2413 Move #include before macro definition.
2414
15f844ac
DN
24152010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
2416
48e24408
DN
2417 * Makefile.in (temacs): Link using $(CC) not $(LD).
2418 (LD_FIRSTFLAG): Define using autoconf.
2419 (LD): Remove.
2420
65539506
DN
2421 Remove HAVE_TERMIOS definitions.
2422 * s/usg5-4-common.h (HAVE_TERMIOS):
2423 * s/template.h (HAVE_TERMIOS):
2424 * s/gnu-linux.h (HAVE_TERMIOS):
2425 * s/darwin.h (HAVE_TERMIOS):
2426 * s/cygwin.h (HAVE_TERMIOS):
2427 * s/bsd-common.h (HAVE_TERMIOS):
2428 * s/aix4-2.h (HAVE_TERMIOS):
2429 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
2430 defined on all non-MS platforms.
2431 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
2432
15f844ac
DN
2433 * xterm.c (xt_action_hook): Use const.
2434
7d701334
JB
24352010-09-20 Juanma Barranquero <lekktu@gmail.com>
2436
2437 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
2438 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
2439 (gethostname) [!HAVE_SOCKETS]: Remove.
2440 (SOCK_REPLACE_HANDLE): Remove macro.
2441 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
2442 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
2443 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
2444 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
2445
f3ec267a
EZ
24462010-09-18 Eli Zaretskii <eliz@gnu.org>
2447
2448 * deps.mk (xml.o): Add dependencies.
2449
93acd23d
JB
2450 * xdisp.c (Fcurrent_bidi_paragraph_direction):
2451 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
2452
2453 * bidi.c (bidi_paragraph_init): Accept an additional argument
2454 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
2455 search back until a paragraph with a strong directional character
2456 is found, and use that to determine paragraph's base direction.
2457
2458 * dispextern.h (bidi_paragraph_init): Update prototype.
2459
69e847be
EZ
24602010-09-17 Eli Zaretskii <eliz@gnu.org>
2461
2462 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2463 of w32api >= 3.15. (Bug#6989)
2464
283357a7
LMI
24652010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
2466
2467 * process.c (wait_reading_process_output): Don't message about
2468 accept-process-output unless the time limit really is zero.
2469
4ddb20d6
SM
24702010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2471
2472 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
2473 int/Lisp_Object mixup).
2474
e24ad6dd
J
24752010-09-17 Jan Djärv <jan.h.d@swipnet.se>
2476
2477 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
2478 not HELP.
2479
fb0cf781
J
24802010-09-17 Stephen Berman <stephen.berman@gmx.net>
2481
2482 * frame.c (Ftool_bar_pixel_width): New function to expose tool
2483 bar's pixel width to Lisp (Bug#7048).
2484
4ddb20d6
SM
24852010-09-14 Juanma Barranquero <lekktu@gmail.com>
2486
2487 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 2488
318a04c6
J
24892010-09-17 Jan Djärv <jan.h.d@swipnet.se>
2490
2491 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
2492 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
2493
78a21772
KH
24942010-09-17 Kenichi Handa <handa@m17n.org>
2495
2496 * ftfont.c (ftfont_check_otf): Fix previous change.
2497
fa3f6039
KH
24982010-09-14 Kenichi Handa <handa@m17n.org>
2499
2500 * ftfont.c (ftfont_check_otf): Fix the case of checking just
2501 existence of GSUB or GPOS.
2502
2b5491fa
JB
25032010-09-14 Juanma Barranquero <lekktu@gmail.com>
2504
2505 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
2506
c97c655f
LMI
25072010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
2508
ef1b0ba7 2509 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
2510 what it does.
2511 (parse_string): Return nil when the document can't be parsed.
2512
6664fc59 25132010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
2514
2515 * xterm.c (get_current_vm_state): New function.
2516 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
2517 want_fullscreen so set_wm_state calls are few (Bug#7013).
2518 (x_handle_net_wm_state): Move code to get_current_vm_state and
2519 call that function.
2520
6664fc59 25212010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
2522
2523 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
2524
6664fc59 25252010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
2526
2527 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
2528 we may use designation or locking-shift.
2529
6664fc59 25302010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
2531
2532 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
2533 sequence when the source is multibyte.
2534
1da70e99
AS
25352010-09-14 Andreas Schwab <schwab@linux-m68k.org>
2536
6664fc59
JB
2537 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
2538 Don't make first argument optional. Doc fix.
1da70e99 2539
26632d8d
LMI
25402010-09-14 Leo <sdl.web@gmail.com> (tiny change)
2541
2542 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
2543 parameters for the doc string.
2544
21fa8e37
LMI
25452010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
2546
2547 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
2548
5616cc54
SM
25492010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2550
2551 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
2552 (syms_of_fns): Don't defsubr Sy_or_n_p.
2553 * lisp.h: Don't declare Fy_or_n_p.
2554 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
2555
381408e2
LMI
25562010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2557
2558 * xml.c (Fxml_parse_buffer): New function to parse XML files.
2559
25602010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
2561
2562 * xml.c: New file.
2563 (Fhtml_parse_buffer): New function to interface to the libxml2
2564 html parsing function.
2565
733946e7
JB
25662010-09-05 Juanma Barranquero <lekktu@gmail.com>
2567
2568 * biditype.h: Regenerate.
2569
7574650a
AS
25702010-09-04 Andreas Schwab <schwab@linux-m68k.org>
2571
2572 * nsimage.m (ns_load_image): Check argument types.
2573
2574 * image.c: Remove all uses of gcpro.
2575 (xpm_load): Check all lisp types.
2576 (pbm_load): Likewise.
2577 (png_load): Likewise.
2578 (jpeg_load): Likewise.
2579 (tiff_load): Likewise.
2580 (gif_load): Likewise.
2581 (imagemagick_load_image): Likewise.
2582 (imagemagick_load): Likewise.
2583 (svg_load): Likewise.
2584 (gs_load): Likewise.
2585
6e6b8e25
EZ
25862010-09-04 Eli Zaretskii <eliz@gnu.org>
2587
bba3e508
SM
2588 * w32uniscribe.c (uniscribe_shape): Update commentary.
2589 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
2590 hold them in the logical order.
2591 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
2592 return glyph codes in the logical order.
2593
dbfe4532
AS
25942010-09-04 Andreas Schwab <schwab@linux-m68k.org>
2595
2596 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 2597 (imagemagick_load_image): Fix type mismatch.
5e5992c2 2598 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 2599
6d7cc563
JD
26002010-09-02 Jan Djärv <jan.h.d@swipnet.se>
2601
2602 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
2603
2604 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
2605
2606 * xselect.c: Remove declaration of cut-buffer objects and functions.
2607 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
2608 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
2609 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
2610 (Fx_rotate_cut_buffers_internal): Remove.
2611 (syms_of_xselect): Remove defsubr of above.
2612 Remove intern of QCUT_BUFFERn.
2613
8f4e9110
SM
26142010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
2615
2616 * cmds.c (Vblink_paren_function): Remove.
2617 (internal_self_insert): Make it insert N chars at a time.
2618 Don't call blink-paren-function.
2619 (Fself_insert_command): Adjust accordingly.
2620 (syms_of_cmds): Don't declare blink-paren-function.
2621
d419e1d9
KH
26222010-08-31 Kenichi Handa <handa@m17n.org>
2623
2624 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
2625 characters.
2626
2627 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
2628 (produce_glyphs): Don't set it->char_to_display here.
2629 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
2630 (produce_special_glyphs): Set temp_it.char_to_display before
2631 calling produce_glyphs.
2632
2633 * xdisp.c (get_next_display_element): Set it->char_to_display
2634 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
2635 characters.
2636 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
2637 calling PRODUCE_GLYPHS.
2638 (append_space_for_newline): Save and store it->char_to_display.
2639 Set it->char_to_display before calling PRODUCE_GLYPHS.
2640 (extend_face_to_end_of_line): Set it->char_to_display before
2641 calling PRODUCE_GLYPHS.
2642 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
2643 character to its byte value.
2644 (get_char_glyph_code): New function.
2645 (produce_stretch_glyph): Set it2.char_to_display too before
2646 calling x_produce_glyphs.
2647 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
2648 non-ASCII characters. Don't set it->char_to_display here.
2649 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 2650 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 2651
b819f760
SM
26522010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2653
2654 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
2655
07fa68a7
CY
26562010-08-31 Chong Yidong <cyd@stupidchicken.com>
2657
2658 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
2659
cd196f12
SM
26602010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
2661
2662 * marker.c (Fcopy_marker): Make the first arg optional.
2663
49a752bb
KH
26642010-08-30 Kenichi Handa <handa@m17n.org>
2665
2666 * composite.c (composition_update_it): Fix computing of
2667 cmp_it->width.
2668
769ae9e1
KH
26692010-08-29 Kenichi Handa <handa@m17n.org>
2670
9e69cb05 2671 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 2672 corresponding bytes.
9e69cb05 2673
4520b858
J
26742010-08-29 Jan Djärv <jan.h.d@swipnet.se>
2675
2676 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
2677
fe50eb41
KH
26782010-08-26 Kenichi Handa <handa@m17n.org>
2679
2680 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
2681 on calling composition_compute_stop_pos.
2682
f6aa6ec6
KH
26832010-08-25 Kenichi Handa <handa@m17n.org>
2684
9dfdbc0a
KH
2685 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
2686 :otf.
2687
f6aa6ec6
KH
2688 * composite.c (composition_compute_stop_pos): Don't break
2689 composition at PT.
2690 (composition_reseat_it): Likewise. Fix calculation of character
2691 position starting a composition.
2692 (Fcomposition_get_gstring): Don't limit the number of components
2693 for automatic composition.
2694
ff94e32c
KH
26952010-08-25 Kenichi Handa <handa@m17n.org>
2696
2697 * composite.c (composition_compute_stop_pos): In forward search,
2698 pay attention to the possibility that some character after ENDPOS
2699 will be composed with charactrs before ENDPOS.
2700
1c409d0b
CY
27012010-08-24 Chong Yidong <cyd@stupidchicken.com>
2702
2703 * keyboard.c (command_loop_1): Don't clobber primary selection
2704 during handle-switch-frame (Bug#6872).
2705
0c372655
MA
27062010-08-23 Michael Albinus <michael.albinus@gmx.de>
2707
2708 * dbusbind.c: Accept UNIX domain sockets as bus address.
2709 (Fdbus_close_bus): New function.
2710 (Vdbus_registered_buses): New variable.
2711 (xd_initialize): Implement string as bus address.
2712 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
2713 (Fdbus_get_unique_name, Fdbus_call_method)
2714 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2715 (Fdbus_method_error_internal, Fdbus_send_signal)
2716 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
2717 check. This is done in xd_initialize_bus. Adapt doc string, if
2718 necessary.
2719 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
2720 Vdbus_registered_buses.
2721 (Vdbus_registered_objects_table): Create hash.
2722
7133b7ee
JL
27232010-08-22 Juri Linkov <juri@jurta.org>
2724
2725 * keyboard.c (Fexecute_extended_command): Move reading a command name
2726 with `completing-read' to a new Elisp function `read-extended-command'.
2727 Call it to read a command to `function' (bug#5364, bug#5214).
2728
198a7a97
CY
27292010-08-22 Chong Yidong <cyd@stupidchicken.com>
2730
2731 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
2732
b0126eac 27332010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
2734
2735 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
2736 instead of SAFE_ALLOCA.
2737
b0126eac 27382010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
2739
2740 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
2741 (Bug#6214).
2742
b0126eac 27432010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
2744
2745 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
2746
b0126eac
CY
27472010-08-22 Jan Djärv <jan.h.d@swipnet.se>
2748
2749 * doc.c (Fsnarf_documentation): Initialize skip_file before
2750 build-files test.
2751
692f3ddc 27522010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 2753
692f3ddc
JB
2754 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
2755 New definitions.
b0126eac
CY
2756 (HAVE_TERMIO): Remove.
2757
5f2f0bc1
EZ
27582010-08-22 Eli Zaretskii <eliz@gnu.org>
2759
b613941b
EZ
2760 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
2761
a583bbef
EZ
2762 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
2763 for w32.
2764
2765 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
2766 it's done in nt/config.nt.
2767
2768 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
2769
5f2f0bc1
EZ
2770 * unexcoff.c (report_error, make_hdr, write_segment)
2771 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
2772 Convert argument lists and prototypes to ANSI C.
2773 (make_hdr, write_segment): Remove unused variables.
2774 (unexec): Remove commented-out line. Initialize `new' to shut up
2775 compiler warnings.
2776
a7ebc409
DN
27772010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
2778
2779 Simplify termio code.
2780 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
2781 HAVE_TERMIO code is obsolete.
2782 Replace HAVE_TERMIOS conditionals with !DOS_NT.
2783 * systty.h: Do not define HAVE_TCATTR.
2784 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
2785 Do not define EMACS_HAVE_TTY_PGRP. Only define
2786 EMACS_GET_TTY_PGRP for !DOS_NT.
2787 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
2788 sys/ioctl.h and termios.h, systty.h does it.
2789 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
2790 (init_baud_rate): Remove HAVE_TERMIO code.
2791 (child_setup_tty): Remove HAVE_TERMIO code.
2792 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
2793 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
2794 (new_ltchars, new_tchars): Remove, unused.
2795 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
2796 code. Remove special casing for __mips__, it was a no-op.
2797 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
2798 (init_sys_modes): Remove HPUX special case.
2799 * process.c: Include stdlib.h unconditionally. Do not include
2800 fcntl.h, systty.h does it. Remove conditional code for
2801 HAVE_SERIAL, it is always true.
2802 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
2803 always true when SIGNALS_VIA_CHARACTERS is true.
2804 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
2805 !WINDOWSNT means HAVE_TERMIOS.
2806 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
2807 conditional, which is true for all HAVE_TERMIOS systems.
2808 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
2809 instead of HAVE_TERMIOS.
2810 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
2811 EMACS_HAVE_TTY_PGRP.
2812 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
2813 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
2814 anyway.
2815
914f049b 28162010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
2817
2818 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
2819 mirroring pixel positions.
2820
d931da8c
DN
28212010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
2822
b5c76d0c
DN
2823 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
2824 write only.
2825 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
2826 malloc_sbrk_used, nothing uses them.
2827
74815588
DN
2828 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
2829 defined, unconditionally defined in lisp.h.
2830
f5817d1c
DN
2831 * term.c: Do not include <termios.h>, systty.h does it.
2832
d931da8c
DN
2833 * s/unixware.h (HAVE_TCATTR):
2834 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
2835 systty.h defines it when HAVE_TERMIOS is defined.
2836
ff2de6d2 28372010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 2838
b43c883c 2839 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 2840 terminals: add one-character offset for R2L lines.
b43c883c 2841
491a1546
EZ
2842 * emacs.c <emacs_version>: Add a comment regarding
2843 msdos/mainmake.v2's dependency on the syntax of this declaration.
2844
2396cbba
EZ
28452010-08-20 Eli Zaretskii <eliz@gnu.org>
2846
2847 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
2848 position for R2L lines by mirroring the pixel position wrt the
2849 text are box. Improve commentary.
2850
7df6150a
AS
28512010-08-20 Andreas Schwab <schwab@linux-m68k.org>
2852
2853 * image.c (imagemagick_clear_image): Remove debugging output.
2854
a2e5caf7
SM
28552010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2856
2857 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
2858 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
2859 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
2860 self-insert-face.
2861 (syms_of_cmds): Initialize the new vars.
2862
20d60baf
JR
28632010-08-19 Jason Rumney <jasonr@gnu.org>
2864
cc477da7
JR
2865 * w32menu.c (set_frame_menubar): Remove call to undefined function.
2866
20d60baf
JR
2867 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
2868
2c0ac867
J
28692010-08-19 Jan Djärv <jan.h.d@swipnet.se>
2870
2871 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
2872
93352106
EZ
28732010-08-18 Eli Zaretskii <eliz@gnu.org>
2874
2875 * xterm.c (x_draw_bar_cursor):
2876 * w32term.c (x_draw_bar_cursor): If the character under cursor is
2877 R2L, draw the bar cursor on its right rather than on its left.
2878
c785836d
SM
28792010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
2880
0193499f
SM
2881 * eval.c (Fdefmacro): Only obey one declaration.
2882
c785836d
SM
2883 * casefiddle.c (casify_region): Setup gl_state.
2884
9cb728a5
J
28852010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2886
2887 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
2888
e1e18511
J
28892010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2890
1d77b63e 2891 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 2892
64cb6c78
J
28932010-08-18 David De La Harpe Golden <david@harpegolden.net>
2894
2895 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
2896 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
2897 QPRIMARY => NXPrimaryPboard.
2898 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
2899 NXPrimaryPboard => QPRIMARY.
2900 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
2901 NXSecondaryPboard = SecondarySelection.
2902 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
2903
0c9b8993
GM
29042010-08-18 Joakim Verona <joakim@verona.se>
2905
2906 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
2907 defined:
2908 (imagemagick_image_p): New function to test for ImageMagic image.
2909 (imagemagick_load): New function to load ImageMagick image.
2910 (imagemagick_load_image): New function, helper for imagemagick_load.
2911 (imagemagick-types): New function.
2912 (Qimagemagick): New Lisp_object.
2913 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 2914
c3554f68
SM
29152010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
2916
2917 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
2918 is a string.
2919
1ff2e434
J
29202010-08-17 Jan Djärv <jan.h.d@swipnet.se>
2921
2922 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
2923 x_set_tool_bar_position handler.
2924
0cc56427
EZ
29252010-08-17 Eli Zaretskii <eliz@gnu.org>
2926
2927 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
2928 x_set_tool_bar_position handler, needed to support changes from
2929 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
2930
e45a249b
JD
29312010-08-16 Jan Djärv <jan.h.d@swipnet.se>
2932
921242c6
J
2933 * nsselect.m: include keyboard.h for QPRIMARY, remove its
2934 declaration (Bug#6863).
573d150b 2935 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 2936
e45a249b
JD
2937 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2938
2939 * keyboard.h (QPRIMARY): Declare (Bug#6864).
2940
7c23dd44
CY
29412010-08-16 Chong Yidong <cyd@stupidchicken.com>
2942
2943 * keyboard.c (command_loop_1): Avoid setting selection twice,
2944 since it's done in deactivate-mark as well.
2945 (Vselect_active_regions): Change default to t. Replace `lazy'
2946 with non-default value `only', meaning only set PRIMARY for
2947 temporarily active regions.
2948
2949 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
2950 select-active-regions.
2951
0005830c
J
29522010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2953
2954 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
2955 isn't a string.
2956
603dfc72
AS
29572010-08-15 Andreas Schwab <schwab@linux-m68k.org>
2958
2959 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
2960
c25ce9d0
J
29612010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2962
c3554f68
SM
2963 * keyboard.c (parse_tool_bar_item): malloc buf.
2964 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
2965 new_lbl (Bug#6855).
c25ce9d0 2966
5872c762
EZ
29672010-08-14 Eli Zaretskii <eliz@gnu.org>
2968
b236615c
EZ
2969 * xterm.c (x_draw_stretch_glyph_string):
2970 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
2971 the cursor on the right edge of the stretch glyph.
2972
c3554f68
SM
2973 * xdisp.c (window_box_right_offset, window_box_right):
2974 Fix commentary.
b236615c 2975
5872c762
EZ
2976 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
2977 direction when point is inside a run of whitespace characters.
2978
2979 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
2980
e66f9a1b
JR
29812010-08-14 Jason Rumney <jasonr@gnu.org>
2982
2983 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
2984
79d6f59e
CY
29852010-08-14 Chong Yidong <cyd@stupidchicken.com>
2986
2987 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
2988
1c9b4129
JR
29892010-08-13 Jason Rumney <jasonr@gnu.org>
2990
2991 * w32menu.c (simple_dialog_show): Use unicode message box if available.
2992 (MessageBoxW_Proc): New function typedef.
2993 (unicode-message-box): New function pointer.
2994 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
2995
2b4e6277
J
29962010-08-13 Jan Djärv <jan.h.d@swipnet.se>
2997
2998 * frame.h (Qtool_bar_position): Declare.
2999
3000 * xfns.c (Fx_create_frame): Call x_default_parameter for
3001 Qtool_bar_position.
3002
94c97d85
EZ
30032010-08-13 Eli Zaretskii <eliz@gnu.org>
3004
8ee81892
EZ
3005 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3006 (report_error, report_error_1): Ditto.
3007 (write_segment): Remove "#if 0" unused code.
3008 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3009 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3010 (start_of_text): Remove unused function (was used only if NO_REMAP
3011 was NOT defined).
3012
891ef8f7
EZ
3013 * msdos.c (IT_set_face): Fix format string to match argument
3014 types.
3015 (IT_write_glyphs, IT_note_mode_line_highlight)
3016 (IT_set_frame_parameters): Remove unused variables.
3017 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3018 (IT_set_terminal_modes): Disambiguate expression in if clause.
3019 (Fmsdos_remember_default_colors): Return Qnil.
3020 (IT_set_frame_parameters): Add parens to disambiguate boolean
3021 expression for logging the cursor type to termscript.
3022 (keyboard_layout_list, keypad_translate_map)
3023 (grey_key_translate_map): Add braces in inner initializers.
3024 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3025 (dos_rawgetc): Remove unused label.
3026 (XMenuActivate): Add braces to remove ambiguous `else'.
3027 (dos_ttraw): Always return a value.
3028 (spawnve): Declare.
3029 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3030
3031 * dosfns.h (x_set_title): Declare.
3032
3033 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
3034 Remove unused variables.
3035
3036 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
3037 variables.
3038 (init_dosfns): Declare get_lim_data.
3039 (system_process_attributes): Declare Fget_internal_run_time.
3040
38e41e0e
EZ
3041 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
3042 list to be consistent with menu.h.
3043
94c97d85
EZ
3044 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
3045 warnings due to mixing of "char *" and "const char *".
3046
c5683ceb
SM
30472010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3048
3049 Introduce a new comment style "c" flag.
3050 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
3051 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
3052 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
3053 (syntax_prefix_flag_p): New function.
3054 (Fstring_to_syntax): Understand new "c" flag.
3055 (Finternal_describe_syntax_value): Recognize new flag; use the
3056 SYNTAX_FLAGS_* macros.
3057 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
3058 comment style to accomodate the new styles.
3059 (back_comment, forw_comment, Fforward_comment, scan_lists)
3060 (scan_sexps_forward): Update code to obey the new comment style flag.
3061
3062 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
3063
3064 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
3065
7aee76f4
J
30662010-08-11 Jan Djärv <jan.h.d@swipnet.se>
3067
3a46642b
J
3068 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
3069 first.
94dff98f 3070 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
3071
3072 * gtkutil.h (xg_check_special_colors): Declare.
3073
3074 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
3075 (xg_create_frame_widgets): Connect theme name changes to
3076 style_changed_cb.
3077
42ca4633
J
3078 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
3079 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
3080 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 3081 string literal. file is const char*.
42ca4633
J
3082
3083 * xsmfns.c (NOSPLASH_OPT): Change to char[].
3084 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
3085 props. Free them at the end.
3086
3087 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
3088
c5683ceb
SM
3089 * xrdb.c (get_system_app): Make path const and use char *p for
3090 non-const char.
42ca4633
J
3091
3092 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 3093 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
3094 char *.
3095 (button_names): Is const char *.
3096 (xdialog_show): error_name and pane_string is const.
3097
3098 * process.h (synch_process_death): Is const char*.
3099
3100 * w32menu.c (w32_menu_show):
3101 * nsmenu.m (ns_menu_show): error parameter is const char **.
3102
3103 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
3104 is const char **.
3105
3106 * menu.c (Fx_popup_menu): error_name is const.
3107
3108 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
3109 with unsigned char and XtPointer with void *.
3110
3111 * gtkutil.h: Replace widget_value with struct _widget_value.
3112 (enum button_type, struct _widget_value): Remove and use the one from
3113 keyboard.h.
3114
3115 * gtkutil.c (get_utf8_string): Always return an allocated string.
3116 Parameter is const.
3117 (create_dialog, xg_create_one_menuitem, create_menus)
3118 (xg_item_label_same_p, xg_update_menu_item): Free result from
3119 get_utf8_string.
3120 (xg_separator_p, xg_item_label_same_p): label is const.
3121
3122 * font.h (font_open_by_name): Make name const.
3123
3124 * font.c (font_open_by_name): Make name const.
3125
3126 * floatfns.c (matherr): Use a const char* variable for x->name.
3127
3128 * emacs.c (main): Pass char[] to putenv instead of literal.
3129
3130 * callproc.c (synch_process_death): Make const.
3131 (Fcall_process): Make signame const.
3132
9c5bd55a
J
3133 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
3134 (addDisplayItemWithImage): Use const char*.
3135
3136 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
3137 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
3138
3139 * nsfont.m (ns_descriptor_to_entity): Use const char*.
3140
3141 * keyboard.h (_widget_value): name, value and key are const char*.
3142
7aee76f4
J
3143 * unexmacosx.c (unexec_error): Use const char *.
3144
09d93395
DN
31452010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
3146
3147 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 3148 (font_parse_name, font_open_by_name):
09d93395 3149 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 3150 (font_parse_name, font_open_by_name): Remove const.
09d93395 3151
671d409f
AS
31522010-08-09 Andreas Schwab <schwab@linux-m68k.org>
3153
3154 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
3155 definition.
3156
3157 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
3158 * m/amdx86-64.h: Likewise.
3159 * m/arm.h: Likewise.
3160 * m/hp800.h: Likewise.
3161 * m/ia64.h: Likewise.
3162 * m/ibmrs6000.h: Likewise.
3163 * m/ibms390.h: Likewise.
3164 * m/intel386.h: Likewise.
3165 * m/iris4d.h: Likewise.
3166 * m/m68k.h: Likewise.
3167 * m/macppc.h: Likewise.
3168 * m/mips.h: Likewise.
3169 * m/sh3.h: Likewise.
3170 * m/sparc.h: Likewise.
3171 * m/template.h: Likewise.
3172 * m/vax.h: Likewise.
3173 * m/xtensa.h: Likewise.
3174 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
3175 WORDS_BIG_ENDIAN.
3176 * lisp.h: Likewise.
3177 * md5.c: Likewise.
3178 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
3179
8ea90aa3
DN
31802010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
3181
3182 Use const char* instead of char*.
3183 Reduce the number of warnings with -Wwrite-strings.
3184 * xrdb.c (get_environ_db, get_system_name):
3185 * unexelf.c (find_section):
3186 * term.c (string_cost, string_cost_one_line, per_line_cost)
3187 (get_named_tty, init_tty):
3188 * sysdep.c (sys_subshell):
3189 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
3190 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
3191 * search.c (Freplace_match):
3192 * process.c (Fmake_network_process, send_process, init_process):
3193 * lread.c (Fload, init_lread):
3194 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
3195 * keyboard.c (parse_tool_bar_item, struct event_head):
3196 * gtkutil.h (xg_get_font_name):
3197 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
3198 (make_widget_for_menu_item, make_menu_item, create_menus)
3199 (xg_make_tool_item):
3200 * font.c (parse_matrix, font_parse_name):
3201 * floatfns.c (rounding_driver, float_error_fn_name):
3202 * filelock.c (get_boot_time_1, lock_file_1):
3203 * fileio.c (barf_or_query_if_file_exists, check_writable):
3204 * editfns.c (get_system_name, get_operating_system_release)
3205 (Fencode_time, Fset_time_zone_rule):
3206 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
3207 * buffer.c (defvar_per_buffer): Use const.
3208
7815fe19 32092010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 3210
692f3ddc 3211 * charset.c: Include <stdlib.h>.
7a84eee5
KH
3212 (struct charset_sort_data): New struct.
3213 (charset_compare): New function.
692f3ddc 3214 (Fsort_charsets): New function.
7a84eee5
KH
3215 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
3216
3217 * coding.c (decode_coding_iso_2022): Fix checking of dimension
3218 number in CTEXT extended segment.
3219
7815fe19 32202010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
3221
3222 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
3223 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
3224
7815fe19 32252010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
3226
3227 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
3228 (Fhash_table_size): Fix typos in docstrings.
3229 (Fmake_hash_table): Doc fix.
3230
7815fe19 32312010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
3232
3233 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
3234 Doc fix (bug#5625).
3235
7815fe19 32362010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
3237
3238 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
3239 the MSDOS definition.
3240
1b6d8cf0
DN
32412010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
3242
675e2c69
DN
3243 Use const char* instead of char*.
3244 * xterm.c (x_create_toolkit_scroll_bar):
3245 * xfont.c (xfont_list_pattern):
3246 * xfns.c (x_default_scroll_bar_color_parameter)
3247 (xic_create_fontsetname, x_default_font_parameter)
3248 (x_screen_planes):
3249 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
3250 (store_mode_line_string, decode_mode_spec, display_string):
3251 * menu.c (digest_single_submenu):
3252 * keymap.h (initial_define_key, initial_define_lispy_key):
3253 * keymap.c (initial_define_key, initial_define_lispy_key):
3254 * image.c (image_error, image_keyword):
3255 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
3256 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
3257 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
3258 (ftfont_list, ftfont_match):
3259 * frame.c (frame_parm_table):
3260 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3261 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3262 (font_add_log, font_deferred_log):
3263 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3264 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3265 (font_add_log, font_deferred_log):
3266 * emacs.c (argmatch):
3267 * dispextern.h (struct it):
3268 * coding.c (ENCODE_DESIGNATION):
3269 * charset.c (define_charset_internal): Use const.
3270
25717ca1
DN
3271 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
3272
c5683ceb
SM
3273 * xrdb.c: Remove include guard.
3274 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
3275 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
3276 realloc->xrealloc instead of using #defines.
3277
efb41e21
EZ
32782010-08-08 Eli Zaretskii <eliz@gnu.org>
3279
cd21226d 3280 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
3281 * editfns.c (Fline_beginning_position, Fline_end_position):
3282 State in the doc strings that start and end of line are in the
3283 logical order.
cd21226d 3284
efb41e21
EZ
3285 * xdisp.c (display_line): Move the handling of overlay arrow after
3286 the call to find_row_edges. (Bug#6699)
3287
746812d9
CY
32882010-08-07 Chong Yidong <cyd@stupidchicken.com>
3289
3290 * keyboard.c (command_loop_1):
3291 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
3292
9852377f
CY
32932010-08-07 Chong Yidong <cyd@stupidchicken.com>
3294
3295 * insdel.c (prepare_to_modify_buffer): Save active region text to
3296 Vsaved_region_selection.
3297
3298 * xselect.c (QPRIMARY): Move to keyboard.c.
3299
3300 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
3301 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
3302 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 3303
0e9c8657
JB
33042010-08-07 Juanma Barranquero <lekktu@gmail.com>
3305
3306 * alloc.c (lisp_malloc):
3307 * buffer.c (set_buffer_internal, set_buffer_internal_1):
3308 * charset.h (emacs_mule_charset):
3309 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
3310 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
3311 (bitch_at_user):
3312 * lisp.h (Fcheck_coding_system, Fget_text_property)
3313 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
3314 Remove duplicate declarations.
3315
648801d1
DN
33162010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
3317
32bc6709
DN
3318 * process.c: Simplify include logic.
3319
3ef1d108
DN
3320 * keyboard.h (quit_char): Add declaration.
3321 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
3322 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
3323 Add declarations.
3ef1d108
DN
3324 * sysdep.c:
3325 * w32.c: Remove the above declarations.
3326
97ec208f
DN
3327 Remove extern declarations in .c files, .h files have them.
3328 * xterm.c:
3329 * xdisp.c:
97ec208f
DN
3330 * msdos.c:
3331 * image.c:
3332 * gtkutil.c:
3333 * fileio.c:
3334 * eval.c: Remove declarations.
3335
94eed851
DN
3336 * frame.c (frame_params): Make const.
3337
36e053eb
DN
3338 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
3339
0e843971
DN
3340 * emacs.c (emacs_copyright, emacs_version): Make static.
3341 (Vinitial_window_system, Vauto_save_list_file_name)
3342 (Vinhibit_redisplay): Remove declarations.
3343 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
3344 for AIX.
3345
648801d1
DN
3346 Use const for some arrays and functions.
3347 * xterm.h (xg_set_icon_from_xpm_data):
3348 * xfns.c (xg_set_icon_from_xpm_data):
3349 * term.c (fkeys):
3350 * keyboard.c (lispy_accent_keys, lispy_function_keys)
3351 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
3352 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
3353 (frame.c frame_parms):
3354 * emacs-icon.h (gnu_xpm_bits):
3355 * callint.c (callint_argfuns): Use const.
3356
8646d999
J
33572010-08-06 Jan Djärv <jan.h.d@swipnet.se>
3358
3359 * sysdep.c: Move include term.h last of includes (Bug#6812).
3360
cb4545ad
EZ
33612010-08-06 Eli Zaretskii <eliz@gnu.org>
3362
3363 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
3364
3365 * msdos.c (IT_display_cursor): Log cursor position on termscript.
3366
3367 * .gdbinit (pgx): Display the avoid_cursor_p flag.
3368
da7e2be6
JB
33692010-08-06 Juanma Barranquero <lekktu@gmail.com>
3370
3371 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
3372
3d608a86
J
33732010-08-06 Jan Djärv <jan.h.d@swipnet.se>
3374
7908fb60
J
3375 * xterm.h (x_get_focus_frame): Declare.
3376
3377 * keyboard.h (poll_for_input_1): Unconditionally declare.
3378
4094bf36
J
3379 * nsterm.h (x_set_menu_bar_lines): Declare.
3380
3381 * window.c: Don't include menu.h, it depends on lots of other .h-files.
3382
3d608a86
J
3383 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
3384
3385 * window.c: Include menu.h.
3386
3387 * unexmacosx.c (print_region_list, print_regions)
3388 (build_region_list, find_emacs_zone_regions)
3389 (unexec_regions_merge, read_load_commands, dump_it)
3390 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
3391
3392 * term.c: Check HAVE_SYS_IOCTL_H.
3393
686b968e 3394 * sysdep.c: Check HAVE_TERM_H.
3d608a86 3395
686b968e 3396 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
3397
3398 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
3399 (ns_ring_bell, ns_defined_color, hide_hourglass)
3400 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
3401 Convert to ANSI C prototypes.
3402 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
3403 before code.
3404
3405 * nsterm.h : Include sysselect.h.
3406 (x_sync, x_get_focus_frame, x_set_mouse_position)
3407 (x_set_mouse_pixel_position, x_make_frame_visible)
3408 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
3409 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
3410 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
3411 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 3412 Declare.
3d608a86
J
3413
3414 * nsmenu.m (popup_activated, name_is_separator)
3415 (syms_of_nsmenu): Convert to ANSI C prototypes.
3416 (runMenuAt): Prototypes and move declarations before code.
3417
3418 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
3419
3420 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
3421 prototypes.
3422
3423 * nsfns.m (have_menus_p, ns_display_info_for_name)
3424 (x_set_cursor_type, ns_appkit_version_str)
3425 (ns_appkit_version_int, ns_do_applescript)
3426 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
3427 (syms_of_nsfns): Convert to ANSI C prototypes.
3428
3429 * menu.h (x_set_menu_bar_line): Declare.
3430 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
3431
3432 * lisp.h (fmod_float): Declare.
3433
3434 * image.c (xpm_scan, xpm_make_color_table_v)
3435 (xpm_put_color_table_v, xpm_get_color_table_v)
3436 (xpm_make_color_table_h, xpm_put_color_table_h)
3437 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
3438 (xpm_load): Convert to ANSI C prototypes.
3439
3440 * emacs.c: Include nsterm.h if HAVE_NS.
3441
3442 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
3443
fce70521
DN
34442010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
3445
3446 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
3447 subprocesses, only MSDOS does not define HAVE_SOCKETS.
3448 (socket_options): Use const char* for name.
3449
a11889ab
JB
34502010-08-06 Juanma Barranquero <lekktu@gmail.com>
3451
3452 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
3453
3454 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
3455 Don't declare xmalloc_widget_value and digest_single_submenu.
3456
3457 * w32font.c (Qlatin): Remove declaration.
3458
3459 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
3460
c95b508f 3461 * dired.c (compile_pattern): Restore declaration.
a11889ab 3462
6254cdda
DN
34632010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
3464
04bab72c
DN
3465 Remove extern declarations in .c files, .h files have them.
3466 * data.c:
3467 * dired.c:
3468 * editfns.c:
3469 * filelock.c:
3470 * fns.c:
3471 * font.c:
3472 * fontset.c:
3473 * frame.c:
3474 * fringe.c:
3475 * ftfont.c:
3476 * gtkutil.c:
3477 * indent.c:
3478 * keyboard.c:
3479 * keymap.c:
3480 * lread.c:
3481 * menu.c:
3482 * print.c:
3483 * search.c:
3484 * sound.c:
3485 * window.c:
3486 * xdisp.c:
3487 * xfaces.c:
3488 * xfns.c:
3489 * xfont.c:
3490 * xftfont.c:
3491 * xmenu.c:
3492 * xterm.c: Remove declarations.
3493
dff94ed5
DN
3494 Cleanup syssignal.h.
3495 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
3496 (main_thread): Move down to remove #ifdef.
3497 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
3498 Remove conditional definition following unconditional ones.
3499
99f3388e
DN
3500 * lisp.h: Remove HAVE_SHM code, unused.
3501 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
3502 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
3503 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
3504 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
3505 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
3506 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
3507 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
3508 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
3509 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
3510 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
3511 (Qwindow_scroll_functions, Vafter_load_alist)
3512 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
3513 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
3514 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
3515 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
3516 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
3517 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
3518 (initial_argv, last_nonmenu_event, load_in_progress)
3519 (noninteractive_need_newline, scroll_margin): Add declarations.
3520
bba3e508
SM
3521 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3522 Remove declarations, menu.h has them.
99f3388e
DN
3523 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
3524 (Vinput_method_function, Qinput_method_function)
3525 (Qevent_symbol_element_mask, last_event_timestamp):
3526 * dispextern.h (Voverflow_newline_into_fringe):
3527 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
3528 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
3529 (syms_of_w32font, syms_of_nsfont):
3530 * fontset.h (find_font_encoding, Qlatin):
3531 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
3532 (Vtool_bar_mode, set_frame_menubar):
3533 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
3534 * xterm.h (Qx_gtk_map_stock):
3535 * keymap.h (meta_prefix_char): Add declarations.
3536
9f5dd6f2
DN
3537 * term.c: Remove dead code.
3538
6254cdda
DN
3539 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
3540 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
3541 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
3542 which is what was there before BSD_PGRPS was removed.
3543
29cf3e20
EZ
35442010-08-05 Eli Zaretskii <eliz@gnu.org>
3545
3546 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
3547
3548 * unexcoff.c: Renamed from unexec.c.
3549
aaa0a19a
SM
35502010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
3551
3552 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
3553
8d1d9587
JB
35542010-08-03 Johan Bockgård <bojohan@gnu.org>
3555
3556 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 3557 (Bug#6744)
8d1d9587 3558
9a747ba6
JD
35592010-08-02 Jan Djärv <jan.h.d@swipnet.se>
3560
4d464ae4
JD
3561 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
3562 to TRUE if depth of screen is < 16.
3563
ac01763e
JD
3564 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
3565 USE_GTK_TOOLTIP.
e0d62a9b
JB
3566 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
3567 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 3568 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
3569 USE_GTK_TOOLTIP.
3570 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
3571
3572 * xterm.h (USE_GTK_TOOLTIP): New define.
3573 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
3574
9a747ba6
JD
3575 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
3576 to Control-D (Bug#6771).
3577
7b0815ba
JB
35782010-08-02 Juanma Barranquero <lekktu@gmail.com>
3579
3580 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
3581 Wording by Drew Adams <drew.adams@oracle.com>.
3582
aa1859f5
J
35832010-08-01 Jan Djärv <jan.h.d@swipnet.se>
3584
3585 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
3586 ttip_lbl.
3587
3588 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
3589 calling gtk_widget_queue_draw.
3590 (x_free_frame_resources): Call xg_free_frame_widgets.
3591
3592 * xfns.c (x_gtk_use_system_tooltips): New variable.
3593 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
3594 new gtkutil tooltip functions to show the tooltip.
3595 (Fx_hide_tip): Call xg_hide_tooltip.
3596 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
3597
3598 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
3599 (xg_show_tooltip, xg_hide_tooltip): Declare.
3600
3601 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
3602 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
3603 New functions.
aa1859f5
J
3604 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
3605 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
3606 Remove code that is commented out.
3607
76417ef4
SM
36082010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
3609
3610 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
3611
16041401
CY
36122010-07-31 Chong Yidong <cyd@stupidchicken.com>
3613
3614 * xselect.c (x_own_selection): Use list4.
3615
2c09a58f
DN
36162010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3617
3618 * buffer.c (Qwindow): Do not define, already defined in data.c.
3619 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
3620
59df9fdd 36212010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 3622
59df9fdd
JB
3623 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
3624 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
3625 * config.in: Undef HAVE_DIRENT_H.
1c97e857 3626 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 3627 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 3628
1b231651
DN
36292010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3630
3631 Rename s/usg5-4.h -> s/usg5-4-common.h.
3632 * s/usg5-4.h: Rename file to ...
3633 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
3634 * s/unixware.h:
3635 * s/sol2-6.h:
3636 * s/irix6-5.h: Update includes accordingly.
3637
bfeabdc3
JD
36382010-07-29 Jan Djärv <jan.h.d@swipnet.se>
3639
2ebf1083
J
3640 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
3641
bfeabdc3 3642 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
3643 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
3644 Remove toolbar_height.
3645 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
3646 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
3647 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
3648 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
3649
3650 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3651
3652 * xfns.c (x_set_tool_bar_position): New function.
3653 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
3654 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 3655 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
3656
3657 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
3658 and FRAME_TOOLBAR_LEFT_WIDTH.
3659
3660 * gtkutil.h (xg_change_toolbar_position): Declare.
3661
3662 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
3663 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3664 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
3665 (xg_create_frame_widgets): Create a hobox for placing widgets
3666 vertically. Use gtk_box_pack_start.
ef1b0ba7 3667 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
3668 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
3669 (xg_update_frame_menubar, free_frame_menubar): Change to
3670 xg_height_or_width_changed.
3671 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
3672 size correctly. Remove hardcoded 4, instead use handlebox size -
3673 toolbar size.
3674 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 3675 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
3676 (xg_pack_tool_bar): POS is a new parameter.
3677 Set orientation of tool bar based on pos.
3678 Only make handlebox_widget if NULL.
3679 Check if tool bar goes to vbox or hbox depending on pos.
3680 (xg_update_tool_bar_sizes): New function.
686b968e 3681 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
3682 height, call xg_update_tool_bar_sizes instead.
3683 (free_frame_tool_bar): Remove from hbox or vbox depending on
3684 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
3685 (xg_change_toolbar_position): New function.
3686
3687 * frame.h (struct frame): Add tool_bar_position.
3688 (Qbottom): Declare.
3689
3690 * frame.c (Qtool_bar_position): New variable.
3691 (make_frame): Set tool_bar_position to Qtop.
3692 (frame_parms): Add tool-bar-position.
3693 (x_report_frame_params): Store tool_bar_position.
3694 (x_set_fringe_width): Reset wm size hint after fringe changes.
3695
26469a38
DN
36962010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3697
3698 Make lisp_time_argument declaration work on all systems.
3699 * lisp.h (lisp_time_argument): Move declaration ...
3700 * systime.h (lisp_time_argument): ... here
3701 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
3702
8848b728
JD
37032010-07-29 Jan Djärv <jan.h.d@swipnet.se>
3704
3705 * vm-limit.c (POINTER): Add typedef for it.
3706 (start_of_data): Change return type from POINTER to char *.
3707
3708 * frame.h (Qtty_color_mode): Move declaration out of ifdef
3709 HAVE_WINDOW_SYSTEM.
3710
76fd1ee9
DN
37112010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3712
0441987e
DN
3713 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
3714 Remove reference to __osf__, unused.
3715
56a000c7
DN
3716 * mem-limits.h: Remove duplicated includes.
3717 (NULL): Remove definition, unused.
3718 (POINTER): Remove definition.
3719 (start_of_data): Use char* in prototype, as the function
3720 definition does.
3721
e6cba650
DN
3722 Remove extern declarations from .c files, and them to .h files.
3723 * keyboard.h (Qhelp_echo, waiting_for_input)
3724 (input_available_clear_time, ignore_mouse_drag_p)
3725 (Vdouble_click_time, real_this_command, Vthis_original_command):
3726 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
3727 (Voverriding_local_map_menu_flag):
3728 * lisp.h (Qinteractive_form, use_file_dialog)
3729 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
3730 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
3731 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3732 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
3733 (Qfunction, debug_on_next_call, Qfield)
3734 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
3735 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
3736 (Qfile_directory_p, Qinsert_file_contents)
3737 (Qcompletion_ignore_case, Qcompletion_ignore_case)
3738 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
3739 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
3740 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
3741 (Qminibuffer_prompt)
3742 (Vtemporary_file_directory,char_ins_del_vector, Qface):
3743 * xterm.h (gray_bitmap_width, gray_bitmap_height)
3744 (gray_bitmap_bits, xic_create_fontsetname):
3745 * coding.h (Vtranslation_table_for_input): Add extern declarations.
3746
3747 * xsmfns.c (Vuser_login_name):
3748 * xrdb.c (Vdouble_click_time):
3749 * xfaces.c (xic_create_fontsetname):
3750 * w32select.c (waiting_for_input):
3751 * print.c (minibuffer_auto_raise):
3752 * msdos.c (Qhelp_echo):
3753 * macros.c (real_this_command):
3754 * keymap.c (Voverriding_local_map):
3755 * xterm.c (poll_for_input_1, gray_bitmap_width)
3756 (gray_bitmap_height, gray_bitmap_bits;
3757 * xmenu.c ( Voverriding_local_map)
3758 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
3759 (use_file_dialog, Xt_app_con):
3760 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
3761 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
3762 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
3763 (Qtool_bar_lines, ignore_mouse_drag_p):
3764 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
3765 (Qrear_nonsticky, nconc2):
3766 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
3767 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
3768 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
3769 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
3770 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
3771 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
3772 (gc_in_progress):
3773 * doc.c (Voverriding_local_map, Qremap):
3774 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
3775 (Vcompletion_regexp_list):
3776 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
3777 (Qcompletion_ignore_case):
3778 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
3779 (Vhistory_length, Vthis_original_command, real_this_command)
3780 (Qface, Qminibuffer_prompt, history_delete_duplicates):
3781 * image.c (Qrisky_local_variable):
3782 * fontset.c (QCname):
3783 * fns.c (minibuffer_auto_raise, QCname):
3784 * dispnew.c (char_ins_del_cost):
3785 * composite.c (font_fill_lglyph_metrics):
3786 * cmds.c (Qface, Vtranslation_table_for_input):
3787 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
3788 * ccl.c (charset_unicode):
3789 * callproc.c (Vtemporary_file_directory):
3790 * buffer.c (emacs_strerror): Remove extern declarations.
3791
3792 * data.c (Qwindow): Make non-static, used from other files too.
3793 * frame.c (validate_x_resource_name): Remove shadow definition for i.
3794
76fd1ee9
DN
3795 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
3796 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
3797 * s/usg5-4.h (COFF):
3798 * s/template.h:
3799 * s/msdos.h (COFF, NO_REMAP):
3800 * s/ms-w32.h (NO_REMAP):
3801 * s/hpux10-20.h (NO_REMAP):
3802 * m/sparc.h (SEGMENT_MASK):
3803 * m/m68k.h (NO_REMAP):
3804 * m/intel386.h (SEGMENT_MASK):
3805 * m/arm.h (NO_REMAP):
3806 * m/alpha.h (COFF):
3807 * m/template.h: Remove references to unused defines.
3808
8a52f00a
JD
38092010-07-28 Jan Djärv <jan.h.d@swipnet.se>
3810
3811 * xsettings.c (Ftool_bar_get_system_style): Also check for
3812 Qtext_image_horiz.
3813
3814 * xdisp.c (Qtext_image_horiz): Define.
3815 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 3816 to documentation of tool-bar-style.
8a52f00a
JD
3817
3818 * lisp.h (Qtext_image_horiz): Declare.
3819
3820 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
3821 style text_image_horiz.
3822
89dc303e
DN
38232010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3824
60799703
DN
3825 * emacs.c (Fkill_emacs): Remove return statement.
3826
37254dc1
DN
3827 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
3828 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
3829 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
3830 Remove local extern declarations.
37254dc1 3831
71c7345a
DN
3832 * xmenu.c: Do not included lwlib.h, not needed.
3833
6ba577cb
DN
3834 * m/iris4d.h (XUINT, XSET): Remove, not needed.
3835
fdb183d6
DN
3836 * process.c: Move definitions earlier to minimize #ifdefs.
3837
3838 * xterm.h (x_get_customization_string, x_load_resources)
3839 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
3840 (x_check_errors, x_property_data_to_lisp, defined_color)
3841 (xic_set_xfontset, x_defined_color): Use const.
3842
3843 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
3844 (x_text_icon, x_check_errors, x_connection_closed): Use const.
3845
3846 * xselect.c (selection_data_to_lisp_data)
3847 (x_property_data_to_lisp):
3848 * xrdb.c (x_get_string_resource, file_p)
3849 (x_get_customization_string, magic_file_p, search_magic_path)
3850 (get_system_app, get_user_app, x_load_resources, x_get_resource)
3851 (x_get_string_resource): Use const.
3852
3853 * xfns.c: Include xlwmenu.h when USE_LUCID.
3854 (x_defined_color, xic_set_xfontset): Use const.
3855 (Fx_hide_tip): Remove local extern declaration.
3856
3857 * xfaces.c (Qmouse_face): Remove declaration.
3858 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 3859 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
3860
3861 * xdisp.c (do_mouse_tracking): Remove declaration.
3862 (add_to_log): Use const.
3863
3864 * minibuf.c (Qmouse_face): Remove declaration.
3865
3866 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
3867
3868 * keyboard.h (do_mouse_tracking): Add declaration.
3869
3870 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
3871 (QCdata, QCtype, Qcenter): Remove declarations.
3872
3873 * frame.c (x_get_resource_string, x_get_string_resource)
3874 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3875 (x_default_parameter): Use const.
3876
3877 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
3878 (QCheight, QCsize, QCname): Remove declarations.
3879
3880 * emacs.c (main): Remove local extern declaration.
3881
3882 * editfns.c (region_limit, syms_of_editfns): Remove local extern
3883 declarations.
3884
3885 * dispnew.c: Remove duplicate #include <unistd.h>.
3886 (update_window, update_frame_1, init_display): Remove local extern
3887 declarations.
3888
3889 * dispextern.h (add_to_log): Remove declaration.
3890 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3891 (x_frame_get_and_record_arg, x_default_parameter): Add const.
3892
3893 * dired.c (scmp): Add const.
3894 (directory_files_internal): Remove local extern declaration.
3895
3896 * data.c (Finteractive_form): Use const.
3897
3898 * composite.c (syms_of_composite): Remove local extern declarations.
3899
3900 * charset.c (add_to_log): Remove declaration.
3901
3902 * character.c (strwidth, parse_str_to_multibyte): Add const.
3903
3904 * character.h (strwidth, parse_str_to_multibyte): Likewise.
3905
3906 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
3907
89dc303e 3908 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
3909 (Lisp_Subr): Make doc and intspec constant.
3910 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
3911 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
3912 (QCheight, QCsize, QCname, QCwidth, QCforeground)
3913 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
3914 (display_arg): Add declarations.
89dc303e 3915
0ed082fe 39162010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
3917
3918 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
3919
0ed082fe
JB
3920 * window.c (Fwindow_height): Doc fix (bug#6518).
3921
39222010-07-27 Juanma Barranquero <lekktu@gmail.com>
3923
3924 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
3925
ccaf0336
DN
39262010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
3927
977105dc
DN
3928 * keyboard.c (Ftop_level, Fexit_recursive_edit)
3929 (Fabort_recursive_edit): Remove return statements in NO_RETURN
3930 functions.
3931
f5ada890
DN
3932 * frame.h (Qtty_color_mode): Add declaration.
3933
ccaf0336
DN
3934 * lisp.h (Ftop_level, Fexit_recursive_edit)
3935 (Fabort_recursive_edit): Mark as NO_RETURN.
3936
dfe3c90f
KH
39372010-07-26 Kenichi Handa <handa@m17n.org>
3938
3939 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 3940 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 3941
7d383292
JB
39422010-07-26 Juanma Barranquero <lekktu@gmail.com>
3943
3944 * lread.c (unreadpure, mapatoms_1): Make static.
3945
da31e629
JB
39462010-07-25 Juanma Barranquero <lekktu@gmail.com>
3947
3948 * terminfo.c (tparam): Fix prototype of tparm.
3949
7bfa6d77
AS
39502010-07-25 Andreas Schwab <schwab@linux-m68k.org>
3951
dcc19aac
AS
3952 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
3953 find start of text segment.
3954 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
3955 is defined.
3956
7bfa6d77
AS
3957 * callproc.c (set_initial_environment): Avoid unbalanced braces.
3958
63f9a672
KB
39592010-07-25 Ken Brown <kbrown@cornell.edu>
3960
3961 * vm-limit.c (check_memory_limits): Fix previous change;
3962 accidentally reverted an earlier change.
3963
24933075
KB
39642010-07-25 Ken Brown <kbrown@cornell.edu>
3965
3966 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
3967 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
3968
361358ea
JB
39692010-07-25 Juanma Barranquero <lekktu@gmail.com>
3970
3971 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
3972 * dired.c (opendir, readdir): Fix prototypes.
3973 * editfns.c (w32_get_internal_run_time): Fix prototypes.
3974 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
3975 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
3976 (telldir): Remove declaration.
3977 * ralloc.c (real_morecore, __morecore): Fix prototypes.
3978 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
3979 * syssignal.h (strsignal): Fix prototype.
3980 * term.c (tparam): Fix prototype.
3981 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
3982 (term_get_fkeys): Set inside "#ifndef DOS_NT".
3983 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
3984 and __morecore.
3985 * w32gui.h (XParseGeometry): Fix prototype.
3986 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
3987 * w32term.c (my_set_focus): Declare inside #if 0.
3988 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
3989 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
3990 (drain_message_queue, get_next_msg, post_msg, parse_button)
3991 (ClipboardSequence_Proc): Fix prototypes.
3992 (wait_for_sync): Remove declaration.
3993
630b9592
JB
39942010-07-24 Juanma Barranquero <lekktu@gmail.com>
3995
3996 * w32fns.c (w32_to_x_color): Remove, unused.
3997
6a0d6611
AS
39982010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3999
4000 * lisp.h: Remove leftover P_.
4001
4e8608ff
DN
40022010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4003
4004 * ecrt0.c, unexalpha.c: Remove files, unused.
4005
c8197983
AS
40062010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4007
4008 * cmds.c (internal_self_insert): Make static.
4009 * lisp.h (internal_self_insert): Remove declaration.
4010
97b372d7
JB
40112010-07-23 Juanma Barranquero <lekktu@gmail.com>
4012
33ac0414
JB
4013 * alloc.c (free_float):
4014 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4015 * frame.c (delete_frame_handler):
4016 * ralloc.c (reorder_bloc):
4017 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4018 Remove unused static functions.
4019
94da8397
JB
4020 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4021 it is called only from NS code.
4022
2e6c8532
JB
4023 * w32term.c (my_set_focus): #ifdef away; it is called only from
4024 "#ifdef 0" code.
4025
97b372d7
JB
4026 * w32fns.c (x_edge_detection):
4027 * xfaces.c (may_use_scalable_font_p):
4028 Remove obsolete static declarations.
4029
7c3320d8
JB
40302010-07-20 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4033 (emacs_blocked_realloc, uninterrupt_malloc):
4034 * fringe.c (w32_reset_fringes):
4035 * image.c (convert_mono_to_color_image, lookup_rgb_color)
4036 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
4037 * sound.c (be2hs, do_play_sound):
4038 * vm-limit.c (get_lim_data, ret_lim_data):
4039 * w32term.c (x_free_frame_resources):
4040 * xfaces.c (x_create_gc, x_free_gc):
4041 Convert definitions to standard C.
4042
d5273788
SM
40432010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
4044
4045 * eval.c (Feval, Ffuncall): Use the new names.
4046
4047 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
4048 (DEFUN): Add braces around the union initialisation and use ## to
4049 specify the right union alternative and avoid a cast.
4050
8d16a259
JB
40512010-07-18 Juanma Barranquero <lekktu@gmail.com>
4052
4053 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4054
3b8eff32
CY
40552010-07-17 Chong Yidong <cyd@stupidchicken.com>
4056
4057 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
4058
499322ce
J
40592010-07-17 Jan Djärv <jan.h.d@swipnet.se>
4060
4061 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
4062 is related to the menu bar (Bug#6499).
a628ad9d 4063 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 4064
f6003da5 40652010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
4066
4067 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
4068
4069 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
4070
4071 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
4072 i.e. don't put back ButtonRelease (Bug#6608).
4073
4074 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
4075 instead of Window. Call xg_event_is_for_menubar when
4076 USE_GTK (Bug#6499).
4077
4078 * gtkutil.h (xg_event_is_for_menubar): Declare.
4079
4080 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
4081
f6003da5 40822010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
4083
4084 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
4085 when it's the same as the old foreground. (Bug#6609)
4086
23243f29
J
40872010-07-16 Jan Djärv <jan.h.d@swipnet.se>
4088
4089 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
4090 widget is non-null (Bug#6645).
4091
2b23d2a6
AS
40922010-07-15 Andreas Schwab <schwab@linux-m68k.org>
4093
01b564ff
AS
4094 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
4095 Convert old-style definition.
4096
2b23d2a6
AS
4097 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
4098 timestamp argument.
4099
c4affd2c
EZ
41002010-07-15 Eli Zaretskii <eliz@gnu.org>
4101
4102 * fringe.c (update_window_fringes): Restore mistakenly reverted
4103 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
4104
cf28cebc
J
41052010-07-14 Jan Djärv <jan.h.d@swipnet.se>
4106
4107 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
4108 (SET_SAVED_KEY_EVENT): Remove (not used).
4109 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
4110 remove size parameter.
4111 (handle_one_xevent): Check popup_activated () for menu for Xt also.
4112 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
4113 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
4114 ButtonRelease.
6b2c4bd9
J
4115 (x_set_window_size_1): scroll_bar_actual_width is always
4116 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
4117
4118 * xdisp.c (pending_menu_activation): Remove extern declaration.
4119 (prepare_menu_bars): Remove setting of pending_menu_activation.
4120
4121 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
4122 (x_activate_menubar): Set popup_activated_flag for Xt also.
4123 Remove setting of pending_menu_activation.
cf28cebc
J
4124 (set_frame_menubar): Remove check of pending_menu_activation.
4125 Declare menubar_size before code. Correct spelling in comment.
4126
f6c1c771
KH
41272010-07-14 Kenichi Handa <handa@m17n.org>
4128
4129 * font.c (font_open_entity): Cancel previous change.
4130 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
4131
20477505
EZ
41322010-07-13 Eli Zaretskii <eliz@gnu.org>
4133
77defa9a
EZ
4134 Remove subprocesses #ifdefs.
4135 * process.c <inhibit_sentinels>: Move to the common part.
4136 (Fwaiting_for_user_input_p): Move to the common part; return nil
4137 if async subprocesses aren't supported.
4138 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
4139 MS-DOS. Remove "#ifdef subprocesses".
4140 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
4141 (gettimeofday): Remove "#ifdef subprocesses".
4142 (wait_without_blocking): Remove function.
4143 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
4144 Remove "#ifdef subprocesses".
4145 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
4146 compiled on MS-DOS.
4147 * callproc.c (Fcall_process) [!MSDOS]: Don't call
4148 wait_for_termination on MS-DOS.
4149 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
4150 initialization of inhibit_sentinels.
4151 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
4152 subprocesses" conditional.
4153 * callproc.c (Fcall_process) [!subprocesses]: Don't call
4154 wait_for_termination, since `buffer' cannot be an integer when
4155 async subprocesses are not supported
4156 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
4157 for ifdefing away the call to Fprocess_status.
4158
20477505
EZ
4159 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
4160 away the entire body of the function.
4161
b3ffc17c
DN
41622010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4163
01faa934
DN
4164 Remove subprocesses #ifdefs from term.c.
4165 * process.c (add_keyboard_wait_descriptor)
4166 (delete_keyboard_wait_descriptor): Move to common section, do
4167 nothing when subprocesses is not defined.
a628ad9d
JB
4168 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
4169 Remove subprocesses #ifdefs.
01faa934 4170
b3ffc17c
DN
4171 Convert maybe_fatal to standard C.
4172 * lisp.h (verror): Declare.
4173 * eval.c (verror): New function containing the code from ...
4174 (error): ... this. Call verror.
4175 * term.c (vfatal): New function containing the code from ...
4176 (fatal): ... this. Call vfatal.
4177 (maybe_fatal): Convert to standard C, use variable number of
4178 arguments. Declare as non-return.
4179 (init_tty): Fix maybe_fatal call.
4180
0521f580
DN
41812010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4182
4183 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
4184 (_scroll_bar_note_movement): Convert definitions to standard C.
4185 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
4186 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
4187
ebd15611
DN
41882010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4189
4190 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
4191 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
4192 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
4193 (xaw_jump_callback, xaw_scroll_callback)
4194 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
4195 (x_wm_set_size_hint, x_activate_timeout_atimer):
4196 Convert definitions to standard C.
ebd15611
DN
4197 * xmenu.c (menubar_id_to_frame, popup_get_selection)
4198 (popup_activate_callback, popup_deactivate_callback)
4199 (menu_highlight_callback, menubar_selection_callback)
4200 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
4201 (free_frame_menubar, popup_selection_callback, as)
4202 (create_and_show_popup_menu, dialog_selection_callback)
4203 (create_and_show_dialog):
4204 * xfns.c (hack_wm_protocols, x_window):
4205 * xfaces.c (x_update_menu_appearance):
4206 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
4207 (char_to_pixel_size, round_size_to_char, get_wm_shell)
4208 (set_frame_size, update_wm_hints, setup_frame_gcs)
4209 (update_various_frame_slots, update_from_various_frame_slots)
4210 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
4211 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
4212 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
4213
de06a2dd
AS
42142010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4215
a628ad9d 4216 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 4217
fc549af9
EZ
42182010-07-12 Eli Zaretskii <eliz@gnu.org>
4219
4220 * process.c (setup_process_coding_systems): Move to the part
4221 shared by non-subprocesses systems, and make its body empty when
4222 subprocesses is not defined.
4223 (close_process_descs): Move to the part shared by non-subprocesses
4224 systems.
1408902e
EZ
4225 (wait_reading_process_output) [!subprocesses]: Convert arg list to
4226 ANSI C.
fc549af9 4227
d5a3eaaf
AS
42282010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4229
4230 * editfns.c (transpose_markers): Convert old-style definition.
4231 * emacs.c (abort, shut_down_emacs, fixup_locale)
4232 (synchronize_system_time_locale)
4233 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
4234 * floatfns.c (extract_float, matherr, init_floatfns)
4235 (syms_of_floatfns): Likewise.
4236 * fns.c (make_hash_table): Likewise.
4237 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
4238 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
4239 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
4240 (ftfont_variation_glyphs): Likewise.
4241 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
4242 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
4243 * lread.c (read_filtered_event): Likewise.
4244 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
4245 * process.c (wait_reading_process_output): Likewise.
4246 * scroll.c (do_line_insertion_deletion_costs): Likewise.
4247 * search.c (search_buffer, boyer_moore): Likewise.
4248 * syntax.c (scan_sexps_forward): Likewise.
4249 * xdisp.c (try_scrolling): Likewise.
4250 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4251 (face_at_string_position): Likewise.
4252 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
4253 * xselect.c (x_get_window_property, receive_incremental_selection)
4254 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
4255 Likewise.
4256 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
4257
6f704c76
DN
42582010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4259
ded80a25
DN
4260 * callproc.c (child_setup): Remove subprocesses conditional.
4261 Remove code dealing with SET_EMACS_PRIORITY, unused.
4262
49d937f4 4263 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
4264 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
4265
4266 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
4267 (__do_global_dtors, __main): Use void in definition.
4268 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
4269 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
4270 the only users from ...
4271 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
4272 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
4273 (HAVE_VOLATILE): Remove, unused.
4274
6f704c76
DN
4275 Convert more function definitions to standard C.
4276 * xdisp.c (window_box_edges, handle_single_display_spec)
4277 (display_string): Convert definition to standard C.
4278 * scroll.c (do_direct_scrolling, scrolling_1):
4279 * dispnew.c (allocate_matrices_for_frame_redisplay)
4280 (mirrored_line_dance):
4281 * coding.c (code_convert_string):
4282 * charset.c (map_charset_chars):
4283 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
4284 (Fregister_ccl_program, Fregister_code_conversion_map):
4285 * keyboard.c (kbd_buffer_nr_stored): Likewise.
4286 (head_table): Make static and const.
4287
e6cfa7c3
AS
42882010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4289
4290 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
4291 (PROFILING_LDFLAGS): Set from substitution.
4292 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
4293 CFLAGS last.
4294
892dd565
KH
42952010-07-12 Kenichi Handa <handa@m17n.org>
4296
6f2cdcd1
KH
4297 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
4298 (shortlisp): Likewise.
4299
892dd565
KH
4300 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
4301
4302 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
4303 of FONT_ENTITY_INDEX.
4304 (Ffont_get): If KEY is :otf and the font-object doesn't have the
4305 property, get the property value dynamically.
4306 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 4307 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 4308 return value changed.
bba3e508 4309 (syms_of_font): Adjust for the above change.
892dd565 4310
ae96d47a
AS
43112010-07-11 Andreas Schwab <schwab@linux-m68k.org>
4312
c8fc18ee
AS
4313 * blockinput.h: Remove obsolete comment.
4314
89887d67
AS
4315 * lisp.h: Include <stddef.h>.
4316 (OFFSETOF): Don't define.
4317 (VECSIZE): Use offsetof instead of OFFSETOF.
4318 (PSEUDOVECSIZE): Likewise.
4319 * process.c (conv_sockaddr_to_lisp): Likewise.
4320 * alloc.c: Don't include <stddef.h>.
4321 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
4322
ae96d47a
AS
4323 * process.c: Remove obsolete comment.
4324
635c0aa1
CY
43252010-07-11 Chong Yidong <cyd@stupidchicken.com>
4326
4327 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
4328
a64df650
AS
43292010-07-11 Andreas Schwab <schwab@linux-m68k.org>
4330
8966b757
AS
4331 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
4332 index, rindex.
4333 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
4334 * editfns.c (Fuser_full_name, Fformat): Likewise.
4335 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
4336 * fileio.c (Ffile_symlink_p): Likewise.
4337 * filelock.c (current_lock_owner): Likewise.
4338 * font.c (font_parse_name, font_parse_family_registry): Likewise.
4339 * fontset.c (fontset_pattern_regexp): Likewise.
4340 * lread.c (read1): Likewise.
4341 * sysdep.c (init_system_name): Likewise.
4342 * xfns.c (select_visual): Likewise.
4343 * s/hpux10-20.h (index, rindex): Don't define.
4344 * s/ms-w32.h (index): Likewise.
4345 * s/usg5-4.h: Likewise.
4346
cf237e27
AS
4347 * callproc.c (relocate_fd): Use F_DUPFD if defined.
4348
a8fe7202
AS
4349 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
4350 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
4351 (egetenv): Likewise.
4352 * doprnt.c (doprnt): Likewise.
4353 * editfns.c (set_time_zone_rule, format2): Likewise.
4354 * emacs.c (decode_env_path): Likewise.
4355 * eval.c (signal_error, error): Likewise.
4356 * insdel.c (replace_range_2): Likewise.
4357 * keyboard.c (cmd_error_internal): Likewise.
4358 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
4359 * print.c (write_string, write_string_1, print_error_message):
4360 Likewise.
4361 * vm-limit.c (warn_function, memory_warnings): Likewise.
4362 * xdisp.c (message1, message1_nolog, message_with_string)
4363 (vmessage, message, message_nolog): Likewise.
4364 * emacs.c: Remove duplicate declaration.
4365 * keyboard.h: Likewise.
4366 * lisp.h: Update prototypes.
4367
bb8e180f
AS
4368 * eval.c: Fix indentation problem.
4369
83380e65
AS
4370 * keyboard.c: Include "process.h"
4371
a64df650
AS
4372 * eval.c: Remove obsolete noinline declaration.
4373 * fns.c: Likewise.
4374
6a8033e1
KR
43752010-07-11 Ken Raeburn <raeburn@raeburn.org>
4376
4377 * doprnt.c (doprnt): Take a va_list argument instead of count and
4378 pointer.
4379 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 4380 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
4381 changed to take a va_list argument.
4382 (message): New variadic wrapper.
4383 (message_nolog): Now a variadic function, calling vmessage.
4384 * lisp.h: Include stdarg.h for va_list.
4385 (doprnt, error, message, message_nolog): Decls updated.
4386
462aa963
EZ
43872010-07-11 Eli Zaretskii <eliz@gnu.org>
4388
4389 * process.c (syms_of_process) <delete-exited-processes>: Define
4390 even if !subprocesses.
4391 (delete_exited_processes): Ditto.
4392
4393 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
4394 (delete_exited_processes): Don't define.
4395
48104462
CY
43962010-07-10 Chong Yidong <cyd@stupidchicken.com>
4397
4398 * frame.c (make_frame): Initialize menu_bar_lines and
4399 tool_bar_lines members.
bba3e508
SM
4400 (make_initial_frame, make_terminal_frame):
4401 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
4402
4403 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
4404
f388c88a
EZ
44052010-07-10 Eli Zaretskii <eliz@gnu.org>
4406
4407 * process.c: Reshuffle #include's. Condition some of the global
4408 and static variables on `subprocesses'.
4409 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
4410 Leave only one implementation.
4411 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
4412 (kill_buffer_processes, Flist_system_processes)
4413 (Fprocess_attributes, init_process, syms_of_process): Unify the
4414 implementations for with subprocesses and without them.
4415
723f5a07
J
44162010-07-09 Jan Djärv <jan.h.d@swipnet.se>
4417
4418 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
4419 correct size for Motif.
4420 (free_frame_menubar): Call x_set_window_size to update frame size.
4421
4422 * xfns.c (x_window): Set borderWidth to 0 for pane and
4423 EmacsFrame. Frame size calculation is wrong otherwise.
4424
2536a4b7
MA
44252010-07-09 Michael Albinus <michael.albinus@gmx.de>
4426
4427 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
4428 allows to suppress errors when polling in Emacs' main loop.
4429 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
4430 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4431 (Fdbus_method_error_internal, Fdbus_send_signal)
4432 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
4433 (Fdbus_register_method): Use it. (Bug#6579)
4434
5842a27b
DN
44352010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
4436
4437 * alloc.c: Convert DEFUNs to standard C.
4438 * buffer.c:
4439 * bytecode.c:
4440 * callint.c:
4441 * callproc.c:
4442 * casefiddle.c:
4443 * casetab.c:
4444 * category.c:
4445 * character.c:
4446 * charset.c:
4447 * chartab.c:
4448 * cmds.c:
4449 * coding.c:
4450 * composite.c:
4451 * data.c:
4452 * dbusbind.c:
4453 * dired.c:
4454 * dispnew.c:
4455 * doc.c:
4456 * dosfns.c:
4457 * editfns.c:
4458 * emacs.c:
4459 * eval.c:
4460 * fileio.c:
4461 * filelock.c:
4462 * floatfns.c:
4463 * fns.c:
4464 * font.c:
4465 * fontset.c:
4466 * frame.c:
4467 * fringe.c:
4468 * image.c:
4469 * indent.c:
4470 * insdel.c:
4471 * keyboard.c:
4472 * keymap.c:
4473 * lread.c:
4474 * macros.c:
4475 * marker.c:
4476 * menu.c:
4477 * minibuf.c:
4478 * msdos.c:
4479 * nsfns.m:
4480 * nsmenu.m:
4481 * nsselect.m:
4482 * print.c:
4483 * process.c:
4484 * search.c:
4485 * sound.c:
4486 * syntax.c:
4487 * term.c:
4488 * terminal.c:
4489 * textprop.c:
4490 * undo.c:
4491 * w16select.c:
4492 * w32console.c:
4493 * w32fns.c:
4494 * w32font.c:
4495 * w32menu.c:
4496 * w32proc.c:
4497 * w32select.c:
4498 * window.c:
4499 * xdisp.c:
4500 * xfaces.c:
4501 * xfns.c:
4502 * xmenu.c:
4503 * xselect.c:
4504 * xsettings.c:
4505 * xsmfns.c: Likewise.
4506
d568829b
EZ
45072010-07-08 Eli Zaretskii <eliz@gnu.org>
4508
4509 * process.c (kbd_is_on_hold, hold_keyboard_input)
4510 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
4511
52214050
J
45122010-07-08 Jan Djärv <jan.h.d@swipnet.se>
4513
4514 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
4515 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
4516 unless USE_LUCID.
4517
313d9eb2
DN
45182010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
4519
a628ad9d
JB
4520 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
4521 declaration.
d8825aa3 4522
295d0d8f
DN
4523 Clean up include guards.
4524 * tparam.c: Remove include guards for config.h, string.h and code
4525 that assumes #ifndef emacs.
4526 * termcap.c:
4527 * unexalpha.c:
4528 * sysdep.c:
4529 * filemode.c:
4530 * filelock.c:
4531 * bidi.c: Likewise.
4532
49d9e6b0
DN
4533 Remove prefix-args.c
4534 * prefix-args.c: Remove file.
4535 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
4536 * Makefile.in (temacs${EXEEXT}): Remove references to
4537 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
4538 (mostlyclean): Remove reference to prefix-args.
4539 (prefix-args): Remove.
4540
313d9eb2
DN
4541 Simplify cstart_of_data, start_of_code and related code.
4542 * mem-limits.h: Remove !emacs and _LIBC conditional code.
4543 (start_of_data): Merge into start_of_data function.
4544 * sysdep.c (start_of_text): Remove. Move simplified versions of
4545 it in the only users: unexaix.c and unexec.c.
4546 (read_input_waiting): Remove local declaration of quit_char.
4547 (start, etext): Remove declarations.
4548 (start_of_data): Merge with the version in mem-limits.h and move
4549 to vm-limits.c.
4550 * vm-limit.c (start_of_data): Merged and simplified version of the
4551 code formerly in mem-limits.h and sysdep.c.
4552 * unexec.c (start): New declaration, moved from sysdep.c.
4553 (start_of_text): Simplified version of the code formerly in sysdep.c.
4554 * unexaix.c (start_of_text): Simplified version of the code
4555 formerly in sysdep.c.
4556 * m/alpha.h (HAVE_TEXT_START): Remove.
4557 (TEXT_START): Move ...
4558 * unexalpha.c (TEXT_START): ... here.
4559 * s/hpux10-20.h (TEXT_START): Remove.
4560 * s/darwin.h (TEXT_START):
4561 * m/mips.h (TEXT_START):
4562 * m/macppc.h (HAVE_TEXT_START):
4563 * m/m68k.h (TEXT_START):
4564 * m/iris4d.h (TEXT_START):
4565 * m/intel386.h (TEXT_START):
4566 * m/ibmrs6000.h (TEXT_START):
4567 * m/ia64.h (HAVE_TEXT_START):
4568 * s/msdos.h (TEXT_START): Likewise.
4569
72af86bd
AS
45702010-07-07 Andreas Schwab <schwab@linux-m68k.org>
4571
4572 * alloc.c (overrun_check_malloc, overrun_check_realloc)
4573 (overrun_check_free, xstrdup, allocate_string)
4574 (allocate_string_data, compact_small_strings, Fmake_string)
4575 (make_unibyte_string, make_multibyte_string)
4576 (make_string_from_bytes, make_specified_string, make_float)
4577 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
4578 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
4579 memcpy, memmove, memset, memcmp.
4580 * atimer.c (start_atimer, set_alarm): Likewise.
4581 * buffer.c (clone_per_buffer_values, report_overlay_modification)
4582 (mmap_realloc, init_buffer_once): Likewise.
4583 * callint.c (Fcall_interactively): Likewise.
4584 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
4585 (getenv_internal_1): Likewise.
4586 * casefiddle.c (casify_object): Likewise.
4587 * ccl.c (ccl_driver): Likewise.
4588 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
4589 * charset.c (load_charset_map_from_file)
4590 (load_charset_map_from_file, load_charset_map_from_vector)
4591 (Fdefine_charset_internal): Likewise.
4592 * cm.c (Wcm_clear): Likewise.
4593 * coding.c (decode_eol, decode_coding_object)
4594 (Fset_coding_system_priority, make_subsidiaries): Likewise.
4595 * data.c (Faset): Likewise.
4596 * dired.c (directory_files_internal, file_name_completion_stat):
4597 Likewise.
4598 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
4599 (clear_glyph_row, copy_row_except_pointers)
4600 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
4601 (save_current_matrix, restore_current_matrix)
4602 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
4603 (mirror_line_dance, scrolling_window): Likewise.
4604 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
4605 Likewise.
4606 * doprnt.c (doprnt): Likewise.
4607 * editfns.c (Fuser_full_name, make_buffer_string_both)
4608 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
4609 * emacs.c (sort_args): Likewise.
4610 * eval.c (Fapply, Ffuncall): Likewise.
4611 * fileio.c (Ffile_name_directory, make_temp_name)
4612 (Fexpand_file_name, search_embedded_absfilename)
4613 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
4614 (auto_save_error): Likewise.
4615 * fns.c (Fstring_equal, Fcopy_sequence, concat)
4616 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
4617 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
4618 (Fmake_hash_table): Likewise.
4619 * fringe.c (Fdefine_fringe_bitmap): Likewise.
4620 * ftfont.c (ftfont_text_extents): Likewise.
4621 * getloadavg.c (getloadavg): Likewise.
4622 * image.c (define_image_type, make_image, make_image_cache)
4623 (x_create_x_image_and_pixmap, xbm_image_p)
4624 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
4625 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
4626 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
4627 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
4628 (tiff_image_p, tiff_read_from_memory, gif_image_p)
4629 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
4630 Likewise.
4631 * indent.c (scan_for_column, compute_motion): Likewise.
4632 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
4633 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
4634 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
4635 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
4636 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
4637 (store_user_signal_events, menu_bar_items, tool_bar_items)
4638 (process_tool_bar_item, append_tool_bar_item)
4639 (read_char_minibuf_menu_prompt, read_key_sequence)
4640 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
4641 Likewise.
4642 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
4643 Likewise.
4644 * lisp.h (STRING_COPYIN): Likewise.
4645 * lread.c (Fload, read1, oblookup): Likewise.
4646 * msdos.c (Frecent_doskeys): Likewise.
4647 * nsfns.m (Fx_create_frame): Likewise.
4648 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
4649 Likewise.
4650 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
4651 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
4652 Likewise.
4653 * nsmenu.m (ns_update_menubar): Likewise.
4654 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
4655 * print.c (print_unwind, printchar, strout, print_string)
4656 (print_error_message): Likewise.
4657 * process.c (conv_lisp_to_sockaddr, set_socket_option)
4658 (Fmake_network_process, Fnetwork_interface_list)
4659 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
4660 (init_process): Likewise.
4661 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
4662 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
4663 Likewise.
4664 * scroll.c (do_scrolling, do_direct_scrolling)
4665 (scrolling_max_lines_saved): Likewise.
4666 * search.c (search_buffer, wordify, Freplace_match): Likewise.
4667 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
4668 * syntax.c (skip_chars, skip_syntaxes): Likewise.
4669 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
4670 (emacs_set_tty): Likewise.
4671 * term.c (encode_terminal_code, calculate_costs)
4672 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
4673 Likewise.
4674 * termcap.c (tgetst1, gobble_line): Likewise.
4675 * termhooks.h (EVENT_INIT): Likewise.
4676 * tparam.c (tparam1): Likewise.
4677 * unexalpha.c (unexec): Likewise.
4678 * unexec.c (write_segment): Likewise.
4679 * unexmacosx.c (unexec_write_zero): Likewise.
4680 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
4681 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
4682 * w32font.c (w32font_list_family, w32font_text_extents)
4683 (w32font_list_internal, w32font_match_internal)
4684 (w32font_open_internal, compute_metrics, Fx_select_font):
4685 Likewise.
4686 * w32menu.c (set_frame_menubar, add_menu_item)
4687 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
4688 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
4689 * w32uniscribe.c (uniscribe_list_family): Likewise.
4690 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
4691 * window.c (make_window, replace_window, set_window_buffer)
4692 (Fsplit_window): Likewise.
4693 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
4694 (add_to_log, message3, x_consider_frame_title)
4695 (append_space_for_newline, extend_face_to_end_of_line)
4696 (decode_mode_spec_coding, init_glyph_string): Likewise.
4697 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
4698 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
4699 (face_attr_equal_p, make_realized_face, make_face_cache)
4700 (free_realized_faces, lookup_named_face, smaller_face)
4701 (face_with_height, lookup_derived_face)
4702 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
4703 (Finternal_set_font_selection_order, realize_default_face)
4704 (compute_char_face, face_at_buffer_position)
4705 (face_for_overlay_string, face_at_string_position, merge_faces):
4706 Likewise.
4707 * xfns.c (xic_create_fontsetname, Fx_create_frame)
4708 (Fx_window_property, x_create_tip_frame)
4709 (Fx_backspace_delete_keys_p): Likewise.
4710 * xfont.c (xfont_list, xfont_match, xfont_list_family)
4711 (xfont_text_extents): Likewise.
4712 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
4713 * xrdb.c (magic_file_p, x_get_resource): Likewise.
4714 * xselect.c (x_queue_event, x_get_window_property)
4715 (receive_incremental_selection): Likewise.
4716 * xsmfns.c (x_session_check_input): Likewise.
4717 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
4718 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
4719 Likewise.
4720 * character.h (BCOPY_SHORT): Removed.
4721 * config.in: Regenerate.
4722 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
4723 * emacs.c (main) [PROFILING]: Don't declare
4724 dump_opcode_frequencies.
4725 * lisp.h (safe_bcopy): Remove declaration.
4726 (memset) [!HAVE_MEMSET]: Declare.
4727 (memcpy) [!HAVE_MEMCPY]: Likewise.
4728 (memmove) [!HAVE_MEMMOVE]: Likewise.
4729 (memcmp) [!HAVE_MEMCMP]: Likewise.
4730 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
4731 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
4732 Don't define.
4733 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
4734 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
4735 (BCOPY_DOWNWARD_SAFE): Don't define.
4736 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
4737 (memcpy) [!HAVE_MEMCPY]: Define.
4738 (memmove) [!HAVE_MEMMOVE]: Define.
4739 (memcmp) [!HAVE_MEMCMP]: Define.
4740
cb768704
J
47412010-07-07 Jan Djärv <jan.h.d@swipnet.se>
4742
4743 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
4744 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
4745 New functions.
cb768704
J
4746 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
4747 select on empty input mask.
4748 (init_process): Initialize kbd_is_on_hold to 0.
4749
4750 * process.h (hold_keyboard_input, unhold_keyboard_input)
4751 (kbd_on_hold_p): Declare.
4752
4753 * keyboard.c (input_available_signal): Declare.
4754 (kbd_buffer_nr_stored): New function.
4755 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
4756 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
4757 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
4758 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
4759 (tty_read_avail_input): If input is on hold, return.
4760 Don't read more that free slots in kbd_buffer (Bug#6571).
4761
3a8ce822
EZ
47622010-07-07 Eli Zaretskii <eliz@gnu.org>
4763
4764 * msdos.h:
4765 * msdos.c:
4766 * dosfns.c:
4767 * w16select.c: Convert function definitions to ANSI C.
4768
a628ad9d
JB
4769 * msdos.h (ctrl_break_func, install_ctrl_break_check):
4770 Remove unused prototypes.
3a8ce822 4771
cf84bb53
JB
47722010-07-07 Juanma Barranquero <lekktu@gmail.com>
4773
4774 * coding.c, sysdep.c: Convert some more functions to standard C.
4775
1a4990fb
JB
47762010-07-07 Juanma Barranquero <lekktu@gmail.com>
4777
4778 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
4779 (encode_coding_object): Use SPECPDL_INDEX.
4780 (syms_of_coding): Use DOS_NT.
4781
c0f2f16b
DN
47822010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
4783
48fb6855
DN
4784 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
4785
c0f2f16b
DN
4786 Make the function member of Lisp_Subr use standard C prototypes.
4787 * lisp.h (struct Lisp_Subr): Use a union for the function member.
4788 (DECL_ALIGN): Add a cast for the function.
4789 * eval.c (Feval, Ffuncall): Use the proper type for each type
4790 function call.
4791
67aecef9
CY
47922010-07-06 Chong Yidong <cyd@stupidchicken.com>
4793
4794 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
4795 fringe face id, so face-remapping-alist works (Bug#6091).
4796
b56ceb92
JB
47972010-07-06 Juanma Barranquero <lekktu@gmail.com>
4798
4799 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
4800 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
4801 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
4802
7af07b96
AS
48032010-07-06 Andreas Schwab <schwab@linux-m68k.org>
4804
4805 * xterm.c (x_get_keysym_name): Change type of parameter to int.
4806 * lisp.h: Declare x_get_keysym_name.
4807 * keyboard.c (modify_event_symbol): Don't declare
4808 x_get_keysym_name here.
4809
69e24e34
DN
48102010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
4811
4812 * ecrt0.c: Revert conversion to standard C.
4813
d3da34e0 48142010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
4815
4816 * vm-limit.c (memory_warnings):
4817 * keyboard.c (modify_event_symbol):
4818 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
4819 (round2, emacs_rint):
4820 * process.c (send_process, old_sigpipe): Convert function
4821 definitions and declarations to standard C.
4822
48232010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
4824
4825 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
4826 * xdisp.c: Convert function definitions to standard C.
4827
4828 * cm.c (cmputc): Arg C is now int, not char.
4829 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
4830
00be444c
J
48312010-07-05 James Cloos <cloos@jhcloos.com>
4832
4833 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
4834
4835 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
4836 _NET_WM_ICON_NAME atoms.
4837
4838 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
4839 and _NET_WM_ICON_NAME properties, too, matching what is
4840 done in the Gtk+ case.
4841
e4c8d29a
J
48422010-07-05 Jan Djärv <jan.h.d@swipnet.se>
4843
ff919460
J
4844 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
4845
e4c8d29a
J
4846 * xsmfns.c (SSDATA): New macro.
4847 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
4848 passed to strlen/strcpy/strcat.
bba3e508
SM
4849 (create_client_leader_window): Surround with #ifndef USE_GTK.
4850 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
4851
4852 * xsettings.c (something_changedCB, parse_settings)
4853 (apply_xft_settings): Reformat prototype.
4854 (something_changedCB, init_gconf): Remove unused variable i.
4855 (read_settings): Remove unused variable long_len.
4856
4857 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
4858 (xg_get_image_for_pixmap, create_dialog)
4859 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
4860 (menuitem_highlight_callback, make_menu_item)
4861 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
4862 (xg_create_scroll_bar, xg_update_scrollbar_pos)
4863 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
4864 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
4865 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
4866 (xg_tool_bar_item_expose_callback): Reformat prototype.
4867 (xg_update_menubar): GList *group => GSList *group.
4868 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
4869 before use.
4870 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
4871 to GTK_IMAGE (wimage).
4872
dd4c5104
DN
48732010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
4874
898b4c5c
DN
4875 * atimer.c: Use "" instead of <> for local includes for
4876 consistency with the rest of the code.
4877
dd4c5104
DN
4878 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
4879 * xrdb.c (get_system_name):
4880 * window.c (shrink_windows):
4881 * syntax.c (forw_comment):
4882 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
4883 (ins_del_costs):
4884 * mem-limits.h (start_of_data):
4885 * lread.c (readevalloop):
4886 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
4887 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
4888 * frame.c (x_get_focus_frame):
4889 * floatfns.c (fmod_float):
4890 * fileio.c (choose_write_coding_system):
4891 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
4892 (malloc_initialize_hook, sort_args, synchronize_locale):
4893 * doprnt.c (doprnt):
4894 * dired.c (compile_pattern):
4895 * data.c (fmod_float):
4896 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
4897 (map_char_table_for_charset):
4898 * charset.c (define_charset_internal):
4899 * alloc.c (Fgarbage_collect): Convert declarations or definitions
4900 to standard C.
4901
9a39b306 49022010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 4903 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
4904
4905 * lread.c (read1): Fix up last change to not mess up `c'.
4906
e6cb2cbb
JB
49072010-07-04 Juanma Barranquero <lekktu@gmail.com>
4908
4909 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
4910
438105ed
JB
49112010-07-04 Juanma Barranquero <lekktu@gmail.com>
4912
4913 Fix prototypes.
4914
e5447b22 4915 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 4916 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
4917 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
4918 arg, as required by internal_condition_case_1.
dcc7404b 4919 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
4920 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
4921 (analyse_first): Fix "const const".
e5447b22 4922 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 4923 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 4924 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 4925
971de7fb
DN
49262010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
4927
4928 * alloc.c: Convert function definitions to standard C.
4929 * atimer.c:
4930 * bidi.c:
4931 * bytecode.c:
4932 * callint.c:
4933 * callproc.c:
4934 * casefiddle.c:
4935 * casetab.c:
4936 * category.c:
4937 * ccl.c:
4938 * character.c:
4939 * charset.c:
4940 * chartab.c:
4941 * cmds.c:
4942 * coding.c:
4943 * composite.c:
4944 * data.c:
4945 * dbusbind.c:
4946 * dired.c:
4947 * dispnew.c:
4948 * doc.c:
4949 * doprnt.c:
4950 * ecrt0.c:
4951 * editfns.c:
4952 * fileio.c:
4953 * filelock.c:
4954 * filemode.c:
4955 * fns.c:
4956 * font.c:
4957 * fontset.c:
4958 * frame.c:
4959 * fringe.c:
4960 * ftfont.c:
4961 * ftxfont.c:
4962 * gtkutil.c:
4963 * indent.c:
4964 * insdel.c:
4965 * intervals.c:
4966 * keymap.c:
4967 * lread.c:
4968 * macros.c:
4969 * marker.c:
4970 * md5.c:
4971 * menu.c:
4972 * minibuf.c:
4973 * prefix-args.c:
4974 * print.c:
4975 * ralloc.c:
4976 * regex.c:
4977 * region-cache.c:
4978 * scroll.c:
4979 * search.c:
4980 * sound.c:
4981 * strftime.c:
4982 * syntax.c:
4983 * sysdep.c:
4984 * termcap.c:
4985 * terminal.c:
4986 * terminfo.c:
4987 * textprop.c:
4988 * tparam.c:
4989 * undo.c:
4990 * unexelf.c:
4991 * window.c:
4992 * xfaces.c:
4993 * xfns.c:
4994 * xfont.c:
4995 * xftfont.c:
4996 * xgselect.c:
4997 * xmenu.c:
4998 * xrdb.c:
4999 * xselect.c:
5000 * xsettings.c:
5001 * xsmfns.c:
5002 * xterm.c: Likewise.
5003
ae492bec
EZ
50042010-07-03 Eli Zaretskii <eliz@gnu.org>
5005
76ea4cc9
EZ
5006 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5007 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
5008 `reverse' is specified in the frame parameters.
5009 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
5010 internal-set-lisp-face-attribute. Initialize screen colors from
5011 initial_screen_colors[] when f->default_face_done_p is zero,
5012 instead of depending on being called with default-frame-alist as
5013 the alist argument.
5014
5015 * xfaces.c (update_face_from_frame_parameter): Move out of
5016 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5017 with HAVE_WINDOW_SYSTEM.
5018
1e6255ae
EZ
5019 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5020 to menu-bar-mode, if not set in the frame parameters or in
5021 default-frame-alist.
5022
ae492bec
EZ
5023 * w32console.c (sys_tputs): Adjust argument list to prototype in
5024 term.c.
5025
3a35a84c
JB
50262010-07-03 Juanma Barranquero <lekktu@gmail.com>
5027
5028 * lisp.h (memory_warnings): Fix prototype.
5029
5030 * cm.h (evalcost): Fix prototype.
5031
5032 * cm.c (evalcost): Fix arg type.
5033
c532d349
DN
50342010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5035
5036 * term.c (term_clear_mouse_face, Fidentity):
5037 * syssignal.h (signal_handler_t):
5038 * lisp.h (memory_warnings):
5039 * coding.h (preferred_coding_system):
5040 * cm.h (evalcost):
5041 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
5042
c0b36d46
EZ
50432010-07-02 Eli Zaretskii <eliz@gnu.org>
5044
5045 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
5046 from prototypes.
5047
5048 * msdos.h (load_pixmap): Don't define away.
5049
383e0970
J
50502010-07-02 Jan Djärv <jan.h.d@swipnet.se>
5051
f57e2426
J
5052 * lisp.h:
5053 * atimer.h: Remove define for P_.
5054
5055 * alloc.c: Remove __P and P_ from .c and .m files.
5056 * atimer.c:
5057 * buffer.c:
5058 * callint.c:
5059 * category.c:
5060 * charset.c:
5061 * chartab.c:
5062 * cm.c:
5063 * coding.c:
5064 * composite.c:
5065 * data.c:
5066 * dired.c:
5067 * dispnew.c:
5068 * doc.c:
5069 * editfns.c:
5070 * emacs.c:
5071 * eval.c:
5072 * fileio.c:
5073 * filelock.c:
5074 * fns.c:
5075 * font.c:
5076 * fontset.c:
5077 * frame.c:
5078 * ftfont.c:
5079 * ftxfont.c:
5080 * gmalloc.c:
5081 * gtkutil.c:
5082 * image.c:
5083 * indent.c:
5084 * intervals.c:
5085 * keyboard.c:
5086 * keymap.c:
5087 * lread.c:
5088 * marker.c:
5089 * menu.c:
5090 * minibuf.c:
5091 * print.c:
5092 * process.c:
5093 * scroll.c:
5094 * search.c:
5095 * sound.c:
5096 * strftime.c:
5097 * syntax.c:
5098 * sysdep.c:
5099 * term.c:
5100 * terminal.c:
5101 * textprop.c:
5102 * unexalpha.c:
5103 * w32console.c:
5104 * w32fns.c:
5105 * w32font.c:
5106 * w32menu.c:
5107 * w32term.c:
5108 * w32uniscribe.c:
5109 * window.c:
5110 * xdisp.c:
5111 * xfaces.c:
5112 * xfns.c:
5113 * xfont.c:
5114 * xftfont.c:
5115 * xmenu.c:
5116 * xselect.c:
5117 * xterm.c: Likewise.
5118
383e0970 5119 Remove P_ and __P macros.
f57e2426
J
5120 * atimer.h: Remove P_ and __P macros.
5121 * buffer.h:
383e0970
J
5122 * category.h:
5123 * ccl.h:
5124 * character.h:
5125 * charset.h:
5126 * cm.h:
5127 * coding.h:
5128 * composite.h:
5129 * dispextern.h:
5130 * disptab.h:
9e892c8d 5131 * dosfns.h:
383e0970
J
5132 * font.h:
5133 * fontset.h:
5134 * frame.h:
5135 * gtkutil.h:
5136 * indent.h:
5137 * intervals.h:
5138 * keyboard.h:
5139 * keymap.h:
5140 * lisp.h:
5141 * macros.h:
5142 * md5.h:
5143 * menu.h:
5144 * msdos.h:
5145 * nsterm.h:
5146 * puresize.h:
5147 * region-cache.h:
5148 * syntax.h:
5149 * syssignal.h:
5150 * systime.h:
5151 * termhooks.h:
9e892c8d 5152 * w32font.h:
383e0970
J
5153 * w32term.h:
5154 * widget.h:
5155 * window.h:
5156 * xgselect.h:
5157 * xsettings.h:
5158 * xterm.h: Likewise.
5159
98601119
DN
51602010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5161
d9170db5
DN
5162 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
5163
98601119
DN
5164 Cleanup old code.
5165 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
5166 * syssignal.h: Remove code for Lynx, not supported anymore.
5167 * vm-limit.c: Remove unused code the depends on emacs not being
5168 defined and NO_LIM_DATA being defined.
5169 * mem-limits.h: Remove dead code.
5170
1f984e12
J
51712010-07-01 Jan Djärv <jan.h.d@swipnet.se>
5172
c49d071a
J
5173 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
5174
9d5405ec
J
5175 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
5176 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
5177
7a18115b
J
5178 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
5179 parameters, they are already absolute.
5180
a628ad9d
JB
5181 * nsterm.m (x_set_window_size, initFrameFromEmacs):
5182 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 5183
a628ad9d 5184 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 5185
a628ad9d
JB
5186 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
5187 Update FRAME_TOOLBAR_HEIGHT.
581a8100 5188
a628ad9d
JB
5189 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
5190 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 5191
c1ef4455
CY
51922010-06-30 Chong Yidong <cyd@stupidchicken.com>
5193
bba3e508
SM
5194 * frame.c (get_future_frame_param, Fmake_terminal_frame):
5195 Don't check default-frame-alist.
c1ef4455 5196
ce8f5a9a
AS
51972010-06-30 Andreas Schwab <schwab@linux-m68k.org>
5198
5199 * process.c (create_process): Avoid using invalid file descriptors.
5200
5201 * callproc.c (child_setup): Avoid closing a file descriptor twice.
5202
bf935339
J
52032010-06-30 Jan Djärv <jan.h.d@swipnet.se>
5204
5205 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
5206 Improve documentation. Return font regardless of use_system_font.
5207 (syms_of_xsettings): Improve documentation for font-use-system-font.
5208
7c33a057
CY
52092010-07-10 Chong Yidong <cyd@stupidchicken.com>
5210
2ec1b5ee
CY
5211 * xfaces.c (realize_face): Garbage the frame if a face is removed
5212 (Bug#6593).
5213
52142010-07-05 Andreas Schwab <schwab@linux-m68k.org>
5215
5216 * keyboard.c: Remove duplicate <setjmp.h>.
5217 (read_key_sequence): Remove volatile qualifiers.
5218
52192010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5220
5221 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
5222 (struct glyph_row): New members left_fringe_offset and
5223 right_fringe_offset.
5224
5225 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
5226 specially.
5227 * w32term.c (w32_draw_fringe_bitmap): Likewise.
5228 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
5229
5230 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 5231 Take account of bitmap offset.
2ec1b5ee
CY
5232 (draw_window_fringes): Take account of window vscroll.
5233 (update_window_fringes): Likewise. Extend top-aligned top indicator
5234 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
5235 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
5236 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
5237
52382010-07-04 Juanma Barranquero <lekktu@gmail.com>
5239
5240 * w32fns.c (Qtooltip): Declare.
5241 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
5242
52432010-07-03 Jan Djärv <jan.h.d@swipnet.se>
5244
5245 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
5246 grab on just Press (Bug#6499).
5247
52482010-07-02 Chong Yidong <cyd@stupidchicken.com>
5249
5250 * frame.c (Qtooltip): New var.
5251 (delete_frame): Use it. Fix faulty if statement. Don't update
5252 mode line for tooltip frames. Suggested by Martin Rudalics.
5253
5254 * xfns.c (x_create_tip_frame):
5255 * w32fns.c (x_create_tip_frame): Use it.
5256
52572010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
5258
5259 * xftfont.c (xftfont_open): Check font width one by one also when
5260 spacing is dual.
5261
5262 * ftfont.c (ftfont_open): Ditto.
5263
6259c2ec
GM
52642010-06-30 Glenn Morris <rgm@gnu.org>
5265
a46007e9
GM
5266 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
5267
6259c2ec
GM
5268 * Makefile.in (CANNOT_DUMP): Update for configure name change.
5269
5270 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
5271 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
5272 * s/darwin.h (SYSTEM_MALLOC):
5273 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
5274
5d1d3d04
J
52752010-06-29 Jan Djärv <jan.h.d@swipnet.se>
5276
5277 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
5278 (ns_get_screen): Don't assign integer to f.
5279 (Fx_display_color_cells): Declarations before statements.
5280
e547b051
J
52812010-06-28 Jan Djärv <jan.h.d@swipnet.se>
5282
5fc8e5bc
J
5283 * xfns.c (x_default_font_parameter): Remove got_from_system
5284 (Bug#6526).
5285
e547b051 5286 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
5287 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
5288 New defines based on what configure finds.
e547b051
J
5289
5290 * xterm.c (XTflash): Use gtk_widget_get_window.
5291 (xg_scroll_callback): Use gtk_adjustment_get_upper and
5292 gtk_adjustment_get_page_size.
5293 (handle_one_xevent): Use gtk_widget_get_mapped.
5294 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
5295 messages.
5296
5297 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
5298
5299 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
5300 HAVE_GTK_FILE_SELECTION_NEW.
5301
bba3e508
SM
5302 * gtkutil.c (xg_display_open, xg_display_close):
5303 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
5304 (xg_display_open): Return type is void.
5305 (gtk_widget_set_has_window)
5306 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
5307 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
5308 (gtk_adjustment_set_page_increment)
5309 (gtk_adjustment_get_step_increment): #define these if not found
5310 by configure.
5311 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
5312 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
5313 Use gtk_widget_get_window.
e547b051
J
5314 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
5315 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
5316 (create_dialog): Use gtk_dialog_get_action_area and
5317 gtk_dialog_get_content_area.
5318 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
5319 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
5320 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
5321 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
5322 Use g_object_ref and g_object_unref.
5323 (xg_update_menu_item, xg_tool_bar_menu_proxy):
5324 Use gtk_widget_get_sensitive.
e547b051
J
5325 (xg_update_submenu): Use remove_submenu.
5326 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
5327 properties instead to get old x and y position.
5328 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
5329 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 5330 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
5331 (xg_get_tool_bar_widgets): New function.
5332 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
5333 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
5334 (toolbar_set_orientation): New #define based on if configure
5335 finds gtk_orientable_set_orientation.
5336 (xg_create_tool_bar): Call toolbar_set_orientation.
5337 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
5338 instead of gtk_box_pack_start_defaults.
5339
b9229673
CY
53402010-06-28 Chong Yidong <cyd@stupidchicken.com>
5341
5342 * cmds.c (Fdelete_backward_char): Move into Lisp.
5343
bbc803b0
DN
53442010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5345
5346 * s/freebsd.h (BSD4_2): Remove redundant definition.
5347 bsd-common.h defines it already.
5348
6431f2e6
CY
53492010-06-27 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
5352 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
5353 tool-bar-mode, which are now set using these X resources at
5354 startup, to determine the defaults (Bug#2249).
5355
5356 * w32fns.c (Fx_create_frame):
5357 * nsfns.m (Fx_create_frame): Likewise.
5358
5359 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
5360
8c079ebb
JB
53612010-06-24 Juanma Barranquero <lekktu@gmail.com>
5362
5363 * gtkutil.c (xg_update_scrollbar_pos):
5364 Avoid C99 mid-block variable declaration.
5365
e9b7ab96
JD
53662010-06-22 Jan Djärv <jan.h.d@swipnet.se>
5367
bc869eca
JD
5368 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
5369
2b7e356a 5370 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
5371
5372 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
5373 if height is less than scroll bar min size.
5374 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
5375
e9b7ab96
JD
5376 * xfns.c (x_default_font_parameter): Try to open font from system
5377 before using it (bug#6478). Rename got_from_gconf to got_from_system.
5378
a628ad9d 53792010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
5380
5381 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
5382
70c4cfbb
EZ
53832010-06-20 Eli Zaretskii <eliz@gnu.org>
5384
5385 * xdisp.c (try_scrolling): When scroll-conservatively is set to
5386 most-positive-fixnum, be extra accurate when scrolling window
5387 start, to avoid missing the cursor line.
5388
ad5a12b5
EZ
53892010-06-19 Eli Zaretskii <eliz@gnu.org>
5390
5391 * xdisp.c (try_scrolling): Compute the limit for searching point
5392 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
5393 of 10 screen lines.
5394 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
5395 and
5396 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
5397 for details.
5398
2a64315a 53992010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
5400
5401 * editfns.c (Fbyte_to_string): Pacify compiler.
5402
288cf4e9
SM
54032010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5404
5405 * lread.c (read1): Phase out old-style backquotes a bit more.
5406
6e6e5760
EZ
54072010-06-12 Eli Zaretskii <eliz@gnu.org>
5408
cbc4fd20
EZ
5409 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
5410 bidimirror.h.
5411
5412 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
5413
317fbf33
EZ
5414 * bidi.c (bidi_initialize): Remove explicit initialization of
5415 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 5416 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 5417 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
5418
5419 * biditype.h: New file.
5420
cbc4fd20
EZ
5421 * bidimirror.h: New file.
5422
6e6e5760
EZ
5423 * window.c (syms_of_window): Doc fix (bug#6409).
5424
4176cba2
RF
54252010-06-12 Romain Francoise <romain@orebokech.com>
5426
5427 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
5428 ediff-hook.
5429
cb4bfcb5
GM
54302010-06-10 Glenn Morris <rgm@gnu.org>
5431
64c60c2f
GM
5432 * editfns.c (Fbyte_to_string): Pacify compiler.
5433
cb4bfcb5
GM
5434 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
5435
2ec1b5ee
CY
54362010-06-26 Andreas Schwab <schwab@linux-m68k.org>
5437
5438 * alloc.c (Fmake_byte_code): Don't access undefined argument
5439 (Bug#6517).
5440
54412010-06-25 Chong Yidong <cyd@stupidchicken.com>
5442
5443 * xdisp.c (next_element_from_image): Ensure that after-strings are
5444 read the next time we hit handle_stop (Bug#1336).
5445
54462010-06-23 Andreas Schwab <schwab@linux-m68k.org>
5447
5448 * lread.c (read1): Signal error if #s is not followed by paren.
5449
54502010-06-19 Chong Yidong <cyd@stupidchicken.com>
5451
5452 * image.c (free_image): Mark frame as garbaged (Bug#6426).
5453
5454 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
5455
54562010-06-15 Glenn Morris <rgm@gnu.org>
5457
5458 * editfns.c (Fbyte_to_string): Pacify compiler.
5459
e454a4a3
SM
54602010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
5461
5462 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
5463 Check `object's type before accessing its guts.
5464
c1b1acc2
DN
54652010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
5466
5467 * s/usg5-4.h: Fix previous change.
5468 Suggested by Lawrence Mitchell <wence@gmx.li>
5469
657d4c0b
AS
54702010-06-08 Andreas Schwab <schwab@linux-m68k.org>
5471
5472 * minibuf.c (Fall_completions): Add more checks.
5473
9b27fd9f
JB
54742010-06-08 Juanma Barranquero <lekktu@gmail.com>
5475
5476 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
5477
a99ebb40
DN
54782010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
5479
d7c5d87d
DN
5480 * lread.c (X_OK): Remove, unused.
5481
0263a941
DN
5482 * dispnew.c: Remove obsolete comment.
5483
a99ebb40
DN
5484 Remove INCLUDED_FCNTL.
5485 * xterm.c (INCLUDED_FCNTL):
5486 * callproc.c (INCLUDED_FCNTL):
5487 * alloc.c (INCLUDED_FCNTL):
5488 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
5489 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
5490
13b5221f
MR
54912010-06-07 Martin Rudalics <rudalics@gmx.at>
5492
5493 * window.c (Fselect_window): Move `record_buffer' up to the
5494 beginning of this function, so the buffer gets recorded
5495 even if the selected window does not change.
5496 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
5497
5220357f
JB
54982010-06-07 Juanma Barranquero <lekktu@gmail.com>
5499
5500 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
5501 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
5502
3085237c
DN
55032010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
5504
5505 Remove BSTRING related code, all platforms define it.
5506 * s/usg5-4.h (BSTRING): Remove definition.
5507 * s/template.h (BSTRING):
5508 * s/msdos.h (BSTRING):
5509 * s/ms-w32.h (BSTRING):
5510 * s/hpux10-20.h (BSTRING):
5511 * s/gnu-linux.h (BSTRING):
5512 * s/darwin.h (BSTRING):
5513 * s/cygwin.h (BSTRING):
5514 * s/bsd-common.h (BSTRING):
5515 * s/aix4-2.h (BSTRING): Likewise.
5516 * sysdep.c: Remove code depending on BSTRING not being defined.
5517
409f2919
JB
55182010-06-05 Juanma Barranquero <lekktu@gmail.com>
5519
5520 Remove obsolete macro BASE_LEADING_CODE_P.
5521 * character.h (BASE_LEADING_CODE_P): Remove.
5522 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
5523 * buffer.c (Fset_buffer_multibyte):
5524 * indent.c (scan_for_column, compute_motion):
5525 * insdel.c (count_combining_before, count_combining_after):
5526 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
5527
087fc47a
JB
55282010-06-04 Juanma Barranquero <lekktu@gmail.com>
5529
5530 Turn `directory-sep-char' into a noop.
5531
5532 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
5533 (DIRECTORY_SEP): Define unconditionally.
5534
5535 * s/ms-w32.h (DIRECTORY_SEP): Remove.
5536
5537 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
5538 call dostounix_filename directly.
5539
5540 * fileio.c (CORRECT_DIR_SEPS): Remove.
5541 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
5542 (Fsubstitute_in_file_name): Use dostounix_filename instead.
5543 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
5544 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
5545
5546 * w32proc.c (CORRECT_DIR_SEPS): Remove.
5547 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
5548
0eb7675e
AS
55492010-06-03 Andreas Schwab <schwab@linux-m68k.org>
5550
a628ad9d
JB
5551 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
5552 (Bug#6346)
0eb7675e 5553
78edd3b7
JB
55542010-06-03 Juanma Barranquero <lekktu@gmail.com>
5555
5556 * ccl.c (Fccl_program_p): Fix typo in docstring.
5557
eb697db5
DN
55582010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
5559
5560 Move UNEXEC definition to autoconf.
5561 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
5562 * s/sol2-10.h (UNEXEC):
5563 * s/irix6-5.h (UNEXEC):
5564 * s/hpux10-20.h (UNEXEC):
5565 * s/gnu-linux.h (UNEXEC):
5566 * s/darwin.h (UNEXEC):
5567 * s/cygwin.h (UNEXEC):
5568 * s/bsd-common.h (UNEXEC):
5569 * s/aix4-2.h (UNEXEC):
5570 * m/alpha.h (UNEXEC): Likewise.
5571 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
5572
aa3830c4
JB
55732010-06-03 Juanma Barranquero <lekktu@gmail.com>
5574
5575 Remove obsolete pre-unicode2 macros.
5576 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
5577 * composite.c (composition_reseat_it):
5578 * data.c (Faset):
5579 * fns.c (Ffillarray):
5580 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
5581 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
5582
d234d13e
JL
55832010-06-03 Juri Linkov <juri@jurta.org>
5584
5585 * buffer.c (Fother_buffer): Add CHECK_FRAME.
5586 (Fswitch_to_buffer): Remove unused variable `err'.
5587
0d4bcf4d
GM
55882010-06-03 Glenn Morris <rgm@gnu.org>
5589
e23dc1e2
GM
5590 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
5591
05b09564
GM
5592 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
5593 now that AH_BOTTOM does it.
5594
824e2978
GM
5595 * m/hp800.h (HAVE_ALLOCA):
5596 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
5597
0d4bcf4d
GM
5598 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
5599 Remove NOT_C_CODE tests, it is always true now.
5600
c55d2abf
DN
56012010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
5602
08a494a3
DN
5603 Fix config.h includes.
5604 * xsettings.c:
5605 * xgselect.c:
5606 * nsterm.m:
5607 * nsselect.m:
5608 * nsimage.m:
5609 * nsfont.m:
5610 * nsfns.m:
5611 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
5612 other files do.
5613
75934b1d
DN
5614 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
5615
9f32a766
DN
5616 * s/sol2-6.h: Remove obsolete comments.
5617
c55d2abf
DN
5618 Remove unnecessary alloca.h includes.
5619 * keymap.c: Do not include alloca.h, config.h does that.
5620 * sysdep.c: Likewise. Do not define fwrite, not used.
5621
06ac62b4
SM
56222010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
5623
5624 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
5625 the HAVE_TERMIO where it belongs (bug#6149).
5626
1ab8293c
SM
56272010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
5628
5629 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
5630 of bug#6305).
5631
6dcfd253
EZ
56322010-05-30 Eli Zaretskii <eliz@gnu.org>
5633
5634 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
5635 state is always cached (bug#6306).
5636
6d26bbb2
EZ
56372010-05-29 Eli Zaretskii <eliz@gnu.org>
5638
06fa4a23
EZ
5639 Fix cursor motion in bidi-reordered continued lines.
5640 * xdisp.c (try_cursor_movement): Backup to non-continuation line
5641 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
5642 over continuation lines in bidi-reordered buffers.
5643 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
5644 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
5645
f5783df3
MA
56462010-05-28 Michael Albinus <michael.albinus@gmx.de>
5647
5648 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
5649
7d56b2dd
KH
56502010-05-28 Kenichi Handa <handa@m17n.org>
5651
5652 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
5653 Don't sheck SPEC if it is nil.
5654 (font_list_entities): Call font_delete_unmatched if
b925d231 5655 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 5656
e58d4ff7
GM
56572010-05-28 Glenn Morris <rgm@gnu.org>
5658
5659 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
5660
f1a5d776
CY
56612010-05-27 Chong Yidong <cyd@stupidchicken.com>
5662
5663 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
5664 whether to trash.
5665 (internal_delete_file, Frename_file): Callers changed.
5666 (delete_by_moving_to_trash): Doc fix.
5667 (Fdelete_directory_internal): Don't move to trash.
5668
5669 * callproc.c (delete_temp_file):
5670 * buffer.c (Fkill_buffer): Callers changed.
5671
5672 * lisp.h: Update prototype.
5673
f44a59e6
CY
56742010-05-27 Chong Yidong <cyd@stupidchicken.com>
5675
5676 * xdisp.c (redisplay_window): After redisplay, check if point is
5677 still valid before setting it (Bug#6177).
5678
81ac4f35
GM
56792010-05-27 Glenn Morris <rgm@gnu.org>
5680
5681 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
5682 Convert comments to Makefile format.
5683
5684 * Makefile.in (bootstrap-clean): No more Makefile.c.
5685
ccd89fb3
GM
56862010-05-26 Glenn Morris <rgm@gnu.org>
5687
90278cb6
GM
5688 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
5689 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
5690
ccd89fb3
GM
5691 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5692 Remove.
5693 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5694
b7050583
KH
56952010-05-26 Kenichi Handa <handa@m17n.org>
5696
5697 * composite.c (composition_compute_stop_pos): Fix condition for
5698 backward scanning.
5699
e5458003
GM
57002010-05-25 Glenn Morris <rgm@gnu.org>
5701
c345fe90
GM
5702 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5703 Move before TEMACS_LDFLAGS.
5704 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5705 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5706
2e0689ab
GM
5707 * Makefile.in (NOT_C_CODE): No longer define.
5708 (config.h): No longer include.
5709
8009a5e8
GM
5710 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
5711 variables it may reference.
5712
e5458003
GM
5713 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
5714 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
5715
10f72a37
KH
57162010-05-25 Kenichi Handa <handa@m17n.org>
5717
5718 * dispextern.h (struct composition_it): New members rule_idx and
5719 charpos.
5720
5721 * xdisp.c (set_iterator_to_next): While scanning backward, assume
5722 that the character positions of IT point the last character of the
5723 current grapheme cluster.
5724 (next_element_from_composition): Don't change character positions
5725 of IT.
5726 (append_composite_glyph): Set glyph->charpos to
5727 it->cmp_it.charpos.
5728
5729 * composite.c (autocmp_chars): Change the first argument to RULE,
5730 and try composition with RULE only.
5731 (composition_compute_stop_pos): Record the index number of the
5732 composition rule in CMP_IT->rule_idx.
5733 (composition_reseat_it): Call autocmp_chars repeatedly until the
5734 correct rule of the composition is found.
5735 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
5736 is at the last character of the current grapheme cluster when
5737 CMP_IT->reversed_p is nonzero.
5738
171eda53 57392010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 5740
171eda53
SM
5741 * editfns.c (Fbyte_to_string): New function.
5742
66a9f7f4
SM
57432010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
5744
5745 * process.c (Fmake_network_process): Set :host to nil if it's not used.
5746 Suggested by Masatake YAMATO <yamato@redhat.com>.
5747
d8c315d1
EZ
57482010-05-23 Eli Zaretskii <eliz@gnu.org>
5749
171eda53 5750 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 5751
f5b416d2 57522010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
5753
5754 * s/netbsd.h: If terminfo is found, use it in preference to
5755 termcap. (Bug#6190) [Backport from trunk]
5756
0416466c
EZ
57572010-05-19 Eli Zaretskii <eliz@gnu.org>
5758
11117830 5759 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
5760
5761 * dispextern.h (struct glyph_row): New members minpos and maxpos.
5762 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
5763 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
5764 and maxpos members instead of start.pos and end.pos, respectively.
5765
5766 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
5767 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
5768 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
5769 (try_window_reusing_current_matrix, try_window_id):
5770 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
5771 (init_from_display_pos, init_iterator): Use EMACS_INT for
5772 character and byte positions.
66a9f7f4 5773 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
5774 arguments for minimum and maximum buffer positions seen by
5775 display_line for this row. Don't use iterator to find the
5776 position following the maximum one; instead, increment the
11117830
EZ
5777 position found by display_line directly. Fix logic; eol_pos
5778 should be tested before the rest. Handle the case of characters
5779 delivered from display vector (bug#6036). Fix tests related to
5780 it->method. Handle the truncated_on_right_p rows.
5781 (RECORD_MAX_MIN_POS): New macro.
5782 (display_line): Use it to record the minimum and maximum buffer
5783 positions for glyphs in the row being assembled. Record the
5784 position of the newline that terminates the line. If word wrap is
5785 in effect, restore minimum and maximum positions seen up to the
5786 wrap point, when iterator returns to it.
5787 (try_window_reusing_current_matrix): Give up if in bidi-reordered
5788 row and cursor not already at point. Restore original pre-bidi
5789 code for unidirectional buffers.
d36fe237
EZ
5790
5791 * dispnew.c (increment_row_positions, check_matrix_invariants):
5792 Increment and check row->start.pos and row->end.pos, in addition
5793 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
5794
11117830
EZ
5795 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
5796 Display truncated_on_left_p and truncated_on_right_p flags.
5797 Formatting fixes.
5798 (pmtxrows): Display the ordinal number of each row. Don't display
5799 rows beyond the last one.
5800
5801 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
5802 it is not copied by bidi_copy_it.
5803
6e83d800
EZ
58042010-05-22 Eli Zaretskii <eliz@gnu.org>
5805
5806 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
5807 (Bug#6237)
5808
110683ad
CY
58092010-05-22 Chong Yidong <cyd@stupidchicken.com>
5810
5811 * image.c (Fimage_flush): Rename from image-refresh.
5812
98fe5161
CY
58132010-05-21 Chong Yidong <cyd@stupidchicken.com>
5814
5815 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
5816 just one window.
5817
5818 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
5819 (clear_image_cache): If the number of cached images is unusually
5820 large, decrease the cache eviction delay (Bug#6230).
5821
e8752c66
GM
58222010-05-21 Glenn Morris <rgm@gnu.org>
5823
66dbf213
GM
5824 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
5825 Move these rules to ns.mk.
5826 * ns.mk: New file.
5827
04384b2d
GM
5828 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
5829
e8752c66
GM
5830 * Makefile.in (CANNOT_DUMP): New, set by configure.
5831 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
5832
2e2bbddb
JL
58332010-05-20 Juri Linkov <juri@jurta.org>
5834
5835 * fileio.c (Fdelete_file): Change interative spec to use
5836 `read-file-name' like in `find-file-read-args' where the default
5837 value is `default-directory' instead of `buffer-file-name'.
5838 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
5839
31c4aaf6
KR
58402010-05-20 Kevin Ryde <user42@zip.com.au>
5841
5842 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
5843 (Voverriding_terminal_local_map, Vsystem_key_alist)
5844 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
5845
9d5cf9b6
GM
58462010-05-20 Glenn Morris <rgm@gnu.org>
5847
5848 * Makefile.in (DEPDIR): New constant.
5849 (DEPFLAGS): Set with configure, not cpp.
5850 (MKDEPDIR): New, set by configure.
5851 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
5852 (clean): Use $DEPDIR.
5853 (deps_frag): Include from configure.
5854 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
5855 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
5856
bba3e508
SM
5857 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
5858 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 5859
7f34aec3
GM
58602010-05-19 Glenn Morris <rgm@gnu.org>
5861
d494e8f2
GM
5862 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
5863
c1d0dcfd
GM
5864 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
5865 (GNULIB_VAR): Remove.
5866 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
5867
5868 * m/ibms390x.h (LINKER):
5869 * m/macppc.h (LINKER) [GNU_LINUX]:
5870 * s/aix4-2.h (ORDINARY_LINK):
5871 * s/cygwin.h (LINKER):
5872 * s/darwin.h (ORDINARY_LINK):
5873 * s/gnu.h (ORDINARY_LINK):
5874 * s/netbsd.h (LINKER):
5875 * s/usg5-4.h (ORDINARY_LINK):
5876 Move to configure.
5877
7f34aec3
GM
5878 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
5879
754790b6
CY
58802010-05-18 Chong Yidong <cyd@stupidchicken.com>
5881
5882 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
5883 prevent stack overflow if number of arguments is too large
5884 (Bug#6214).
5885
161e44d1
JB
58862010-05-18 Juanma Barranquero <lekktu@gmail.com>
5887
5888 * charset.c (load_charset_map_from_file): Don't call close after fclose.
5889
be4ff9da
GM
58902010-05-18 Glenn Morris <rgm@gnu.org>
5891
9539dc5d
GM
5892 * s/gnu-linux.h: Combine two conditionals.
5893
5894 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
5895 $(POST_ALLOC_OBJ).
5896
40dc6bf4
GM
5897 * Makefile.in (RALLOC_OBJ): New, set by configure.
5898 (rallocobj): Replace with the previous variable.
5899 (otherobj): Use $RALLOC_OBJ.
5900
5901 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
5902 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
5903
be4ff9da
GM
5904 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
5905 (gmallocobj, vmlimitobj): Replace with previous two variables.
5906 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
5907
16455a85
GM
59082010-05-17 Glenn Morris <rgm@gnu.org>
5909
5910 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
5911 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
5912
5fdb7468
GM
59132010-05-16 Glenn Morris <rgm@gnu.org>
5914
7ca1f3f9
GM
5915 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
5916
7541dad5
GM
5917 * Makefile.in (clean): Get rid of HAVE_NS conditional.
5918
da53fab9
GM
5919 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
5920 trailing "/".
5921
b02a6645
GM
5922 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
5923 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
5924
8877ca0f
GM
5925 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
5926 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
5927 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
5928 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
5929 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
5930
5fdb7468
GM
5931 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
5932 Remove ${STARTFLAGS}, nothing ever sets it.
5933
95adb4b1
DN
59342010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
5935
5936 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
5937
676b6304
GM
59382010-05-16 Glenn Morris <rgm@gnu.org>
5939
9beab9ce
GM
5940 * Makefile.in (LIBX_BASE): Always define.
5941
8a95f0e7
GM
5942 * Makefile.in (LIBX_OTHER): Move out of cpp section.
5943
676b6304
GM
5944 * Makefile.in (LIBXT): Always define.
5945
6e546d18
GM
59462010-05-15 Glenn Morris <rgm@gnu.org>
5947
4235ca47 5948 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 5949
6e546d18
GM
5950 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
5951 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
5952
8c5ff6dd
KR
59532010-05-15 Ken Raeburn <raeburn@raeburn.org>
5954
560bb7ae 5955 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
5956 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
5957
8b4eb796
KR
5958 * emacs.c (main): Initialize initial-environment and
5959 process-environment before generating from env, not after.
5960
8c5ff6dd
KR
5961 Handle --version reasonably in CANNOT_DUMP configuration.
5962 * emacs.c (emacs_version, emacs_copyright): New string variables.
5963 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
5964 (syms_of_emacs): Defvar them, and initialize them from the C
5965 string variables.
5966 (main): If initialization hasn't been done, print initial version
5967 info from the C strings, instead of starting an interactive session.
5968
dbd3f723
EZ
59692010-05-15 Eli Zaretskii <eliz@gnu.org>
5970
d20e1419
EZ
5971 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
5972 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
5973 (bidi_paragraph_init): Remove redundant assertion that we are at
5974 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
5975
5976 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
5977 (syms_of_xdisp): Defsubr it.
5978
d36fe237
EZ
5979 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
5980
dbd3f723
EZ
5981 * Makefile.in: Fix MSDOS-related comments.
5982
02be533b
GM
59832010-05-15 Glenn Morris <rgm@gnu.org>
5984
1a82cca9
GM
5985 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
5986 (really-lwlib, really-oldXMenu): Always define.
5987 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
5988
3df7b338
GM
5989 * Makefile.in: Simplify cpp conditional.
5990
2b5f541b
GM
5991 * Makefile.in (${ns_appdir}): Simplify using umask.
5992
02be533b
GM
5993 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
5994
4e2db1fe
SM
59952010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5996
5997 * eval.c (specbind): Remove left-over duplicate test.
5998 Disallow let-binding frame-local vars. Add comment.
5999
4b292a22
EZ
60002010-05-14 Eli Zaretskii <eliz@gnu.org>
6001
2fe72643 6002 Make the cache of bidi iterator states dynamically allocated.
1edbd309 6003 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
6004 (bidi_init_it): Call it.
6005 (bidi_cache_iterator_state): Enlarge the cache if needed.
6006
4e2db1fe 6007 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
6008 bidi_get_next_char_visually. All callers changed.
6009
82ebc97b
KH
60102010-05-14 Kenichi Handa <handa@m17n.org>
6011
6012 * dispextern.h (struct composition_it): New member reversed_p.
6013
6014 * composite.c (composition_compute_stop_pos): Search backward if
6015 ENDPOS < CHARPOS.
6016 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6017 Set CMP_IT->reversed_p.
b4b6e17e 6018 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 6019
4e2db1fe
SM
6020 * xdisp.c (set_iterator_to_next):
6021 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
6022 scanning backward. Call composition_compute_stop_pos if scan
6023 direction is changed.
6024 (next_element_from_buffer): Call composition_compute_stop_pos with
6025 negative ENDPOS if we are scanning backward.
6026 (next_element_from_composition): Pay attention to
6027 IT->cmp_it.reversed_p.
6028
0e5d7800
KH
60292010-05-14 Kenichi Handa <handa@m17n.org>
6030
560bb7ae 6031 * font.c (font_range): Return the range for the font found at first.
0e5d7800 6032
cb027b32
GM
60332010-05-14 Glenn Morris <rgm@gnu.org>
6034
177b0288
GM
6035 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
6036
fbc00890
GM
6037 * Makefile.in (mktime, X11, register): Move undefs to configure.
6038
f14d1dfd
GM
6039 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
6040 (MSDOS_X_OBJ): New variable.
6041 (MSDOS_SUPPORT_REAL): New constant.
6042 (MSDOS_SUPPORT): Set as a variable, not with cpp.
6043 (obj): Use MSDOS_X_OBJ.
6044 (lisp): Use MSDOS_SUPPORT as a variable.
6045
11842bd8
GM
6046 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
6047 (GPM_MOUSE_SUPPORT): Now it's a constant.
6048 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6049 not cpp.
6050
489d31a4 6051 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 6052 (ns_appresdir): Remove, unused.
e20f1f07 6053
489d31a4
GM
6054 * Makefile.in (SHELL): Move outside cpp section.
6055
cb027b32
GM
6056 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
6057
5a903aa9
GM
60582010-05-13 Glenn Morris <rgm@gnu.org>
6059
3369c79f
GM
6060 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
6061 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
6062
d5e982a6
GM
6063 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
6064 HAVE_WINDOW_SYSTEM must be too.
6065
6192e163
GM
6066 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
6067 (lisp): Remove WINNT_SUPPORT.
6068
472c5d6b
GM
6069 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
6070 Let configure set these variables (to empty) in this case as well.
6071
0116466b
GM
6072 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
6073 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
6074
5a903aa9
GM
6075 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
6076 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
6077 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
6078 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
6079 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 6080 the values output by configure.
5a903aa9
GM
6081 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
6082
1a0d7c06
GM
60832010-05-12 Glenn Morris <rgm@gnu.org>
6084
b5457f14
GM
6085 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
6086 (LINKER_WAS_SPECIFIED): Remove.
6087
1a0d7c06
GM
6088 * Makefile.in (LIB_GCC): Set using configure, not cpp.
6089 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
6090 * m/arm.h (LIB_GCC) [GNU_LINUX]:
6091 * s/cygwin.h (LIB_GCC):
6092 * s/freebsd.h (LIB_GCC):
6093 * s/gnu-linux.h (LIB_GCC):
6094 * s/msdos.h (LIB_GCC):
6095 * s/netbsd.h (LIB_GCC):
6096 Move to configure.
6097
d1ddd1d0 60982010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
6099
6100 * ftfont.c: Fix incorrect parentheses of #if condition for
6101 definining M17N_FLT_USE_NEW_FEATURE.
6102
acddf8ae
GM
61032010-05-11 Glenn Morris <rgm@gnu.org>
6104
6105 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
6106 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
6107
ae5e04fa
EZ
61082010-05-10 Eli Zaretskii <eliz@gnu.org>
6109
6110 * xdisp.c (init_iterator): Don't turn on bidi reordering in
6111 unibyte buffers. See
6112 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
6113
7490175b
GM
61142010-05-10 Glenn Morris <rgm@gnu.org>
6115
97efb629
GM
6116 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
6117 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
6118 (LIBES): Use LIBS_SYSTEM as a variable.
6119 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
6120 * s/aix4-2.h (LIBS_SYSTEM):
6121 * s/freebsd.h (LIBS_SYSTEM):
6122 * s/hpux10-20.h (LIBS_SYSTEM):
6123 * s/sol2-6.h (LIBS_SYSTEM):
6124 * s/unixware.h (LIBS_SYSTEM):
6125 Move to configure.
6126
7490175b
GM
6127 * s/aix4-2.h (MAIL_USE_LOCKF):
6128 * s/bsd-common.h (MAIL_USE_FLOCK):
6129 * s/darwin.h (MAIL_USE_FLOCK):
6130 * s/gnu-linux.h (MAIL_USE_FLOCK):
6131 * s/irix6-5.h (MAIL_USE_FLOCK):
6132 * s/template.h (MAIL_USE_FLOCK):
6133 Move to configure.
6134
0235128c 61352010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
6136
6137 * Version 23.2 released.
6138
0235128c 61392010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
6140
6141 * composite.c (autocmp_chars): Save point as marker before calling
6142 auto-composition-function (Bug#5984).
6143
6144 * lisp.h (restore_point_unwind): Add prototype.
6145
6146 * fileio.c (restore_point_unwind): Remove static attribute.
6147
0235128c 61482010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
6149
6150 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
6151 new feature of libotf and m17n-flt.
0235128c
SM
6152 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
6153 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
6154 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
6155 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
6156 that OUT is NULL. Use OTF_drive_gsub_with_log and
6157 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
6158 OTF_drive_gpos.
6159 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
6160 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
6161 Setup mflt_enable_new_feature and mflt_try_otf.
6162
4721152c
J
61632010-05-08 Jan Djärv <jan.h.d@swipnet.se>
6164
6165 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
6166
6167 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
6168 box and toolbar (Bug #6139).
6169 (xg_create_tool_bar): Remove comment (Bug #6139).
6170 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
6171 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
6172
ee0a16cf
JB
61732010-05-08 Juanma Barranquero <lekktu@gmail.com>
6174
6175 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
6176 Update dependencies.
6177
96d79611
EZ
61782010-05-08 Eli Zaretskii <eliz@gnu.org>
6179
6180 * fringe.c (update_window_fringes): Set up truncation bitmaps for
6181 R2L lines.
6182
40c17879
GM
61832010-05-08 Glenn Morris <rgm@gnu.org>
6184
7b42b29f
GM
6185 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
6186
40c17879
GM
6187 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
6188 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
6189 (termcapobj): Replace with TERMCAP_OBJ.
6190 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
6191 (LIBES): Use LIBS_TERMCAP as a variable.
6192
6193 * s/freebsd.h (osreldate.h): No longer include, since this file
6194 does not use __FreeBSD_version any more.
6195
6196 * s/aix4-2.h (TERMINFO):
6197 * s/cygwin.h (TERMINFO):
6198 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6199 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
6200 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6201 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6202 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
6203 * s/irix6-5.h (TERMINFO):
6204 * s/netbsd.h (LIBS_TERMCAP):
6205 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
6206 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
6207 * s/usg5-4.h (TERMINFO):
6208 Move to configure.
6209
94b612ad
SM
62102010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
6211
6212 * eval.c (unbind_to): Don't unbind a local binding into the global
6213 binding when the local binding disappeared. Inversely, don't unbind
6214 a global binding into a newly created local binding.
6215 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
6216 can specify the frame to use, when applicable. Adjust callers.
6217
15e12598 62182010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 6219 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
6220
6221 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
6222
f724825e
EZ
62232010-05-07 Eli Zaretskii <eliz@gnu.org>
6224
5cba3209
EZ
6225 * w32fns.c: Include w32.h.
6226 (Fw32_shell_execute): Decode the error message before passing it
6227 to `error'. (Bug#6126)
6228
d16bdfc3
EZ
6229 * msdos.c (dos_set_window_size):
6230 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
6231 instead of `XSYMBOL (foo)->value'.
6232
59d93e87
EZ
62332010-05-07 Eli Zaretskii <eliz@gnu.org>
6234
9fdec8bc
EZ
6235 Fix the MS-DOS build, broken by autoconfiscation.
6236
6237 * Makefile.in: Don't use Make-style comments past the "start of
6238 cpp stuff" line.
6239 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
6240
6241 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
6242 edited directly by msdos/sed1v2.inp).
f724825e 6243
2f86b22b
GM
62442010-05-07 Glenn Morris <rgm@gnu.org>
6245
6246 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
6247 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
6248 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
6249 move out of cpp section.
6250 * s/freebsd.h (LD_SWITCH_SYSTEM):
6251 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
6252 * s/netbsd.h (LD_SWITCH_SYSTEM):
6253 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
6254
49ebbd65
DN
62552010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
6256
6257 Define LIB_STANDARD and START_FILES using autoconf.
6258 * s/usg5-4.h (LIB_STANDARD):
6259 * s/netbsd.h (START_FILES):
6260 * s/irix6-5.h (LIB_STANDARD):
6261 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
6262 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6263 * s/freebsd.h (START_FILES):
6264 * s/darwin.h (START_FILES):
6265 * s/cygwin.h (START_FILES):
6266 * s/aix4-2.h (LIB_STANDARD):
6267 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
6268 * Makefile.in (STARTFILES): Rename to START_FILES, define using
6269 autoconf, not cpp.
6270
d43c06d6
DN
62712010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
6272
28823648
DN
6273 Remove NEED_BSDTTY and NEED_UNISTD_H.
6274 * s/hpux10-20.h (NEED_BSDTTY): Remove.
6275 * s/aix4-2.h (NEED_UNISTD_H): Remove.
6276 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
6277 <sys/ptyio.h> and <unistd.h>.
6278
aca00430
DN
6279 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
6280
d43c06d6
DN
6281 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
6282 * s/gnu.h (START_FILES): Remove empty definition.
6283
3e56b11d
JD
62842010-05-06 Jan Djärv <jan.h.d@swipnet.se>
6285
6286 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
6287
e3cf0cde
GM
62882010-05-06 Glenn Morris <rgm@gnu.org>
6289
6290 * Makefile.in (CPP, LN_S): Remove unused variables.
6291
774b9a60
SM
62922010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
6293
6294 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
6295
4ab92842
LM
62962010-05-05 Lawrence Mitchell <wence@gmx.li>
6297
6298 * m/sparc.h: Fix typo in earlier change.
6299
178f2507
SM
63002010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6301
6302 Misc tweaks.
6303 * eval.c (Fdefvaralias): Remove unintended nested if.
6304 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
6305
80f00217 63062010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
6307
6308 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
6309
ef03a4e6
DN
63102010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
6311
58eb6cf0
DN
6312 Remove BSD_PGRPS.
6313 * s/bsd-common.h (BSD_PGRPS): Remove undef.
6314 * s/gnu-linux.h (BSD_PGRPS): Remove.
6315 * term.c (dissociate_if_controlling_tty):
6316 * sysdep.c (narrow_foreground_group, widen_foreground_group)
6317 (init_sys_modes, reset_sys_modes):
6318 * emacs.c (main):
6319 * callproc.c (Fcall_process, child_setup): Remove code depending
6320 on BSD_PGRPS.
6321
ef03a4e6
DN
6322 Remove POSIX_SIGNALS.
6323 * s/usg5-4.h (POSIX_SIGNALS):
6324 * s/netbsd.h (POSIX_SIGNALS):
6325 * s/msdos.h (POSIX_SIGNALS):
6326 * s/ms-w32.h (POSIX_SIGNALS):
6327 * s/hpux11.h (POSIX_SIGNALS):
6328 * s/gnu.h (POSIX_SIGNALS):
6329 * s/gnu-linux.h (POSIX_SIGNALS):
6330 * s/freebsd.h (POSIX_SIGNALS):
6331 * s/darwin.h (POSIX_SIGNALS):
6332 * s/cygwin.h (POSIX_SIGNALS):
6333 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
6334 * s/unixware.h:
6335 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
6336 * process.c (create_process):
6337 * syssignal.h:
6338 * sysdep.c (wait_for_termination, init_signals):
6339 * process.c (create_process):
6340 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
6341 remove all code that assumes the contrary.
6342
49628785
GM
63432010-05-04 Glenn Morris <rgm@gnu.org>
6344
27a2cdfc
GM
6345 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
6346 variable.
6347 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6348 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
6349 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6350 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
6351 LD_SWITCH_SYSTEM_tmp.
6352 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
6353 New variables, set by configure.
6354
eb21eab5
GM
6355 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6356 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
6357 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6358 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
6359 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
6360
49628785
GM
6361 * s/aix4-2.h (C_SWITCH_SYSTEM):
6362 * m/alpha.h (C_SWITCH_MACHINE):
6363 Move to configure.in.
6364 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
6365 New variables, set by configure.
6366 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
6367 $c_switch_machine and $c_switch_system.
6368
7dff330b
DN
63692010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
6370
6371 * s/hpux10-20.h (LIB_STANDARD): New definition.
6372 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
6373 on it, not used anymore.
6374
53967e09
CY
63752010-05-03 Chong Yidong <cyd@stupidchicken.com>
6376
6377 * eval.c (internal_condition_case_n): Rename from
6378 internal_condition_case_2.
6379 (internal_condition_case_2): New function.
6380
6381 * xdisp.c (safe_call): Use internal_condition_case_n.
6382
6383 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
6384 (internal_delete_file, Frename_file): Callers changed.
6385
6386 * buffer.c (Fkill_buffer):
6387 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
6388
6389 * lisp.h: Update prototypes.
6390
3dee6fdb
GM
63912010-05-03 Glenn Morris <rgm@gnu.org>
6392
6393 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
6394 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
6395 (LIBXT): Set with configure, not cpp.
6396 (LIBX): Remove.
6397 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
6398
a101e0fb
DN
63992010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6400
6401 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
6402 The FreeBSD is not needed, the default works, Solaris version is
6403 not needed, and the remaining case is not supported by configure.
6404
f63d0028
JD
64052010-05-02 Jan Djärv <jan.h.d@swipnet.se>
6406
6407 * xsmfns.c (CHDIR_OPT): New define.
6408 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
6409 restarting emacs.
6410
6411 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
6412 shut_down_emacs.
6413
6414 * emacs.c (USAGE1): Mention --chdir.
6415 (main): Handle --chdir.
6416 (standard_args): Add --chdir.
6417 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
6418 #5552).
6419
e4814a9f
DN
64202010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
6421
cd03c74a
DN
6422 Remove LD_SWITCH_MACHINE.
6423 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
6424 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
6425
c3a398a1
DN
6426 Clean up IRIX code.
6427 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
6428 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
6429
87e7285c
DN
6430 Clean up AIX code.
6431 * m/ibmrs6000.inp: Remove file, unused.
6432 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
6433 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
6434 definition ...
6435 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
6436
80f00217
JB
6437 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
6438 unused.
e4814a9f 6439
59ca28de
EZ
64402010-05-01 Eli Zaretskii <eliz@gnu.org>
6441
197daef4
EZ
6442 Emulate POSIX_SIGNALS on MS-Windows.
6443
6444 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
6445 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
6446
6447 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
6448 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
6449 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
6450
80f00217
JB
6451 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
6452 New stubs.
197daef4 6453
af7c7572
EZ
6454 Miscellaneous fixes of bidi display.
6455
59ca28de
EZ
6456 * xdisp.c (find_row_end): New function, refactored from display_line.
6457 (display_line): Use it.
017ea819
EZ
6458 (extend_face_to_end_of_line): In almost-filled rows, extend only
6459 if the row is R2L and not continued.
166e930d 6460 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 6461 Preserve overlay and string info in row->end.
166e930d
EZ
6462 (insert_left_trunc_glyphs): Support addition of left truncation
6463 glyphs to R2L rows.
b47e0dcf 6464 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
6465 glyph between adjacent windows. Fix a crash when a display string
6466 is continued to the next line. Don't return zero if cursor was
6467 found by `cursor' property of a display string.
b47e0dcf
EZ
6468 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
6469 test for that explicitly.
59ca28de 6470
7acac9f4
GM
64712010-05-01 Glenn Morris <rgm@gnu.org>
6472
6473 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
6474 for clarity.
6475 (OTHER_OBJ): Remove.
6476 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
6477 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
6478
45841e65
KK
64792010-05-01 Karel Klíč <kklic@redhat.com>
6480
6481 * fileio.c (Ffile_selinux_context): Context functions may return null.
6482
afc61943
DN
64832010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
6484
80f00217 6485 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 6486
5a1bb006
GM
64872010-04-30 Glenn Morris <rgm@gnu.org>
6488
6489 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
6490 (OTHER_OBJ): Define as a separate variable, for clarity.
6491
210af043
J
64922010-04-30 Jan Djärv <jan.h.d@swipnet.se>
6493
6494 * xsettings.c: include limits.h and update file comment.
6495
0a7df391
GM
64962010-04-30 Glenn Morris <rgm@gnu.org>
6497
d5096f16
GM
6498 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
6499 Set with configure, not cpp.
6500 (LIBW): Remove, replace with $TOOLKIT_LIBW.
6501
7eb1ac33
GM
6502 * Makefile.in (mallocobj): Remove.
6503 (otherobj): Simplify using @OTHER_OBJ@.
6504
517d086b
GM
6505 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
6506 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
6507 Don't bother making nsgui.h dependency platform-specific.
6508
0a7df391
GM
6509 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
6510
d6d23852
SM
65112010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
6512
d2630aef
SM
6513 * process.c (read_process_output, exec_sentinel): Don't burp if the
6514 sentinel/filter kills the current buffer (bug#6060).
6515
f9dddf52 6516 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
6517 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
6518 Remove unused var `args'.
6519 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
6520 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
6521 * doc.c (store_function_docstring): Use XSETCAR.
6522
f1e3642a
GM
65232010-04-28 Glenn Morris <rgm@gnu.org>
6524
faf535f8
GM
6525 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
6526 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
6527
c40f9449
GM
6528 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
6529
658f86ca
GM
6530 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
6531 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
6532
bc0b5f61
GM
6533 * Makefile.in (FONT_OBJ): New, set by configure.
6534 (FONT_DRIVERS): Use $FONT_OBJ.
6535
294c50a0
GM
6536 * Makefile.in (LIBXMU): Set with configure, not cpp.
6537 * s/aix4-2.h (LIBXMU):
6538 * s/hpux10-20.h (LIBXMU):
6539 Remove definition, now set in configure.
6540
e6ec4e99
GM
6541 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
6542
f1e3642a
GM
6543 * m/amdx86-64.h [i386]: Move this test to configure.in.
6544
c6ea2936
GM
65452010-04-27 Glenn Morris <rgm@gnu.org>
6546
8fdac2c3
GM
6547 * Makefile.in (LIBXTR6): Set with configure, not cpp.
6548 * s/unixware.h (NEED_LIBW): Remove definition.
6549
986fb647
GM
6550 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
6551 (TOOLKIT_LIBW): New, set by configure.
6552 (@X_TOOLKIT_TYPE@): No longer define it.
6553
c6ea2936
GM
6554 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
6555 (MOTIF_LIBW): Set with configure, not cpp.
6556 * s/aix4-2.h (LIB_MOTIF):
6557 * s/gnu-linux.h (LIB_MOTIF):
6558 * s/unixware.h (LIB_MOTIF): Move to configure.in.
6559
aaa36002
DN
65602010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
6561
6562 Reduce CPP usage.
6563 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
6564 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
6565 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
6566 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 6567 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 6568
b678dd8b
GM
65692010-04-27 Glenn Morris <rgm@gnu.org>
6570
76cda504
GM
6571 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
6572 since the defaults (set by the system file) are fine in most cases.
6573 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
6574 * m/ibms390x.h (START_FILES, LIB_STANDARD):
6575 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
6576 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
6577 Remove definitions, since they are set correctly in s/gnu-linux.h.
6578 * s/freebsd.h (START_FILES, LIB_STANDARD):
6579 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6580 * s/hpux10-20.h (START_FILES):
6581 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
6582 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
6583
b678dd8b
GM
6584 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
6585 (MOTIF_LIBW): Use $LIBXP.
6586 (otherobj): Use $WIDGET_OBJ.
6587
9452ded1
DN
65882010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
6589
7e10844c
DN
6590 * Makefile.in (LIBS_MACHINE): Remove, unused.
6591
9452ded1
DN
6592 Use autoconf instead of cpp for LIB_MATH.
6593 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
6594 * s/cygwin.h (LIB_MATH): Likewise.
6595 * Makefile.in (LIB_MATH): Do not define with cpp.
6596 (LIBES): Use autoconf for LIB_MATH.
6597
fcebfc6a
KH
65982010-04-26 Kenichi Handa <handa@m17n.org>
6599
6600 * composite.c (Ffind_composition_internal): Fix the return value
6601 for an automatic composition.
6602
39e2ad1b
DN
66032010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
6604
6605 Remove all NO_ARG_ARRAY uses.
6606 * fns.c (concat2, concat3, nconc2):
6607 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
6608 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
6609 * m/xtensa.h (NO_ARG_ARRAY):
6610 * m/template.h (NO_ARG_ARRAY):
6611 * m/sparc.h (NO_ARG_ARRAY):
6612 * m/sh3.h (NO_ARG_ARRAY):
6613 * m/mips.h (NO_ARG_ARRAY):
6614 * m/macppc.h (NO_ARG_ARRAY):
6615 * m/iris4d.h (NO_ARG_ARRAY):
6616 * m/intel386.h (NO_ARG_ARRAY):
6617 * m/ibms390x.h (NO_ARG_ARRAY):
6618 * m/ibms390.h (NO_ARG_ARRAY):
6619 * m/ibmrs6000.h (NO_ARG_ARRAY):
6620 * m/ia64.h (NO_ARG_ARRAY):
6621 * m/hp800.h (NO_ARG_ARRAY):
6622 * m/arm.h (NO_ARG_ARRAY):
6623 * m/amdx86-64.h (NO_ARG_ARRAY):
6624 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
6625
adf4f59c
EZ
66262010-04-25 Eli Zaretskii <eliz@gnu.org>
6627
6bdf5d65
EZ
6628 * xdisp.c (display_line): Don't assume 2nd call to
6629 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
6630 (iterate_out_of_display_property): New function, body from pop_it.
6631 (pop_it): Use it.
adf4f59c 6632
dfbbda83
GM
66332010-04-24 Glenn Morris <rgm@gnu.org>
6634
6635 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
6636 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
6637 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
6638 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
6639
2d4018aa
EZ
66402010-04-24 Eli Zaretskii <eliz@gnu.org>
6641
a49884a6
EZ
6642 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
6643 use `get_next_display_element' and `set_iterator_to_next' to
6644 advance to the next character, when looking for the character that
6645 begins the next row.
6646
76db6fcc 6647 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
6648 definition of "struct Lisp_Symbol".
6649
70eab5c1
GM
66502010-04-24 Glenn Morris <rgm@gnu.org>
6651
6652 * Makefile.in (CRT_DIR): New variable, set by configure.
6653 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
6654 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
6655
1ad4cc3d
DN
66562010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6657
e769f484
DN
6658 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
6659
4196ff33
DN
6660 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
6661
879b0ee4
DN
6662 Remove redundant flags.
6663 * s/freebsd.h (C_SWITCH_SYSTEM):
6664 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
6665 * s/netbsd.h (C_SWITCH_SYSTEM):
6666 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
6667 of these.
6668
03cbbcb8
DN
6669 Simplify m/intel386.h.
6670 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
6671 user: ecrt0.c.
6672 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
6673 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
6674 the only user: s/unixware.h.
6675 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
6676 from m/intel386.h.
bba3e508
SM
6677 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
6678 Definitions moved here from m/intel386.h.
03cbbcb8 6679
1ad4cc3d
DN
6680 * m/mips.h: Remove #if 0 code.
6681
8785b888
EZ
66822010-04-23 Eli Zaretskii <eliz@gnu.org>
6683
728588cc
EZ
6684 Fix display of composed characters from L2R scripts in bidi buffers.
6685 * xdisp.c (set_iterator_to_next, next_element_from_composition):
6686 After advancing IT past the composition, resync the bidi iterator
6687 with IT's position. (Bug#5977)
6688
a63f80b4
DN
66892010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6690
6691 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
6692 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
6693
ff5dec5c
SM
66942010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
6695
6696 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
6697
8785b888
EZ
66982010-04-23 Eli Zaretskii <eliz@gnu.org>
6699
58ccf243 6700 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
6701 * xdisp.c (pop_it): When the stack is popped after displaying
6702 from a string, bidi-iterate to exit from the text portion covered
6703 by the `display' property or overlay. (Bug#5988, bug#5920)
6704
feeb1604
DN
67052010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6706
8e324eb6
DN
6707 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
6708 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
6709
809fcaba
DN
6710 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
6711 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
6712
ed710380
DN
6713 Simplify STARTFILES definition.
6714 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
6715 relying on Makefile.in to define it.
6716 * s/cygwin.h (START_FILES): Likewise.
6717 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
6718
feeb1604
DN
6719 Clean up Solaris code.
6720 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
6721 (LIB_MOTIF): Remove, configure takes care of this.
6722 (NOT_USING_MOTIF): Remove, unused.
6723 * xrdb.c: Remove #if 0-ed #include.
6724 (SYSV): Remove conditional for old SysV.
6725 * sysdep.c (closedir): Remove conditional code for Solaris,
6726 Solaris has closedir.
6727
a0d0b563
JD
67282010-04-22 Jan Djärv <jan.h.d@swipnet.se>
6729
6730 * xsettings.c (read_and_apply_settings): Check if current_font is
6731 NULL before strcmp (Bug#6001).
6732
56bae7c7
DN
67332010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
6734
6735 Clean up HP-UX files.
6736 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
6737 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
6738 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
6739 * s/hpux10-20.h: ... to the only user, here.
6740
372b7a95
EZ
67412010-04-21 Eli Zaretskii <eliz@gnu.org>
6742
6743 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
6744 use buffer-local values of paragraph-start and paragraph-separate.
6745 <paragraph_start_re, paragraph_separate_re>: Rename from
6746 fallback_paragraph_start_re and fallback_paragraph_separate_re.
6747 (Bug#5992)
6748
f904c0f9
JD
67492010-04-21 Jan Djärv <jan.h.d@swipnet.se>
6750
6751 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
6752 current_tool_bar_style are new.
6753 (store_config_changed_event): Rename from store_font_changed_event.
6754 (XSETTINGS_TOOL_BAR_STYLE): New define.
6755 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
6756 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
6757 HAVE_XFT.
6758 (something_changedCB): store_font_changed_event is now
c4cc8b9a 6759 store_config_changed_event.
bba3e508
SM
6760 (parse_settings): Rename from parse_xft_settings.
6761 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 6762 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
6763 (apply_xft_settings): Take current settings as parameter. Do not
6764 call read_(xft)_settings.
6765 (read_and_apply_settings): New function.
bba3e508
SM
6766 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
6767 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 6768 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
6769 Call read_and_apply_settings unconditionally.
6770 (xsettings_initialize): Call init_xsettings.
6771 (Ftool_bar_get_system_style): New function.
6772 (syms_of_xsettings): Define Qmonospace_font_name and
6773 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 6774 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 6775 dynamic-setting.
31a01b90 6776 Move misplaced HAVE_GCONF
f904c0f9
JD
6777
6778 * xsettings.h (Ftool_bar_get_system_style): Declare.
6779
6780 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
6781 Qtext, Qboth, Qboth_horiz are new.
6782 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
6783 Vtool_bar_style, tool_bar_max_label_size.
6784
6785 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
6786
6787 * keyboard.c: QClabel is new.
6788 (parse_tool_bar_item): Take out QClabel from tool bar items.
6789 Try to construct a label if ther is no QClabel.
6790 (syms_of_keyboard): Intern :label as QClabel.
6791
6792 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
6793 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
6794 New.
6795
6796 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
6797 dynamic-setting.el.
6798
6799 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
6800 (xg_make_tool_item, xg_show_toolbar_item): New function.
6801 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
6802 Call xg_make_tool_item to make a tool bar item.
6803 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
6804
6805 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
6806 into account for toolbars.
6807
c632dfda
JD
68082010-04-21 Jan Djärv <jan.h.d@swipnet.se>
6809
6810 * data.c (make_blv): Declarations before code (Bug#5993).
6811
10efe302
GM
68122010-04-21 Glenn Morris <rgm@gnu.org>
6813
6814 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
6815 Define using autoconf, not cpp.
6816 (LIBXSM): New variable, set by autoconf.
6817 (LIBXT): Use $LIBXSM.
6818
4285ac5a
DN
68192010-04-21 Dan Nicolaescu <local_user@dannlt>
6820
3ec759e7
DN
6821 Remove NOMULTIPLEJOBS, unused.
6822 * s/template.h (NOMULTIPLEJOBS):
6823 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
6824
4285ac5a
DN
6825 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
6826 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
6827 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
6828 detects -znocombreloc and passes it to the linker
6829 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
6830
2807228d
GM
68312010-04-21 Glenn Morris <rgm@gnu.org>
6832
6833 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
6834
574c05e2
KK
68352010-04-21 Karel Klíč <kklic@redhat.com>
6836
6837 * Makefile.in (LIBSELINUX_LIBS): New.
6838 (LIBES): Add $LIBSELINUX_LIBS.
6839 * eval.c, lisp.h (call7): New function.
6840 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
6841 (Ffile_selinux_context, Fset_file_selinux_context):
6842 New functions.
6843 (Fcopy_file): New parameter preserve-selinux-context.
6844 (Frename_file): Preserve selinux context when renaming by copy-file.
6845
91eac4bb 68462010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 6847 Eli Zaretskii <eliz@gnu.org>
91eac4bb 6848
50426a04
JB
6849 Don't depend on cm.c or termcap.c on Windows, use stubs.
6850 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
6851 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
6852 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
6853 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
6854 (sys_tputs, sys_tgetstr): New stubs.
6855 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
6856 (tputs, tgetstr): New; define to sys_*.
91eac4bb 6857
938efb77
JB
68582010-04-20 Juanma Barranquero <lekktu@gmail.com>
6859
6860 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
6861
b4bf28b7
SM
68622010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6863
8b1e1112
SM
6864 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
6865 Just signal a warning rather than an error when inside a let.
6866 (Fmake_variable_frame_local): Add the same test.
6867
933ac235
SM
6868 * font.c (syms_of_font): Make the style table vars read-only.
6869
b4bf28b7
SM
6870 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
6871 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
6872
6873 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
6874
93d68d0c
EZ
68752010-04-20 Eli Zaretskii <eliz@gnu.org>
6876
6877 Fix R2L paragraph display on TTY.
6878
6879 * xdisp.c (unproduce_glyphs): New function.
6880 (display_line): Use it when produced glyphs are discarded from R2L
6881 glyph rows.
6882 (append_composite_glyph): In R2L rows, prepend the glyph rather
6883 than appending it.
6884
6885 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
6886 rather than append it. Set up the resolved_level and bidi_type
6887 attributes of the appended glyph.
283ccc18
EZ
6888 (produce_special_glyphs): Mirror the backslash continuation
6889 character in R2L lines.
93d68d0c 6890
283ccc18 6891 Implement display of R2L paragraphs in GUI sessions.
26cdf528 6892
283ccc18
EZ
6893 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
6894 append_stretch_glyph.
bba3e508
SM
6895 (set_cursor_from_row) <cursor_x>: Remove unused variable.
6896 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
6897 (append_stretch_glyph): In reversed row, prepend the glyph rather
6898 than append it. Set resolved_level and bidi_type of the glyph.
6899 (extend_face_to_end_of_line): If the row is reversed, prepend a
6900 stretch glyph whose width is such that the rightmost glyph will be
6901 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
6902 TTY frames in testing whether a line needs face extension.
6903 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
6904 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
6905 region face.
bba3e508
SM
6906 (set_cursor_from_row, display_line):
6907 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 6908 row->continuation_lines_width.
283ccc18
EZ
6909 (next_element_from_buffer): Don't call bidi_paragraph_init if we
6910 are at ZV. Fixes a crash when reseated to ZV by
6911 try_window_reusing_current_matrix.
45903529
EZ
6912 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
6913 which happens with R2L glyph rows. Fixes a crash when inserting a
6914 character at end of an R2L line.
283ccc18
EZ
6915 (set_cursor_from_row): Don't be fooled by truncated rows: don't
6916 treat them as having zero-width characters. Improve comments.
6917 Don't reverse pos_before and pos_after for reversed glyph rows.
6918 Set cursor.x to negative value when the cursor might be on the
6919 left fringe.
6920 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
6921 left fringe, not the right one.
f951a506
EZ
6922 (notice_overwritten_cursor, draw_phys_cursor_glyph)
6923 (erase_phys_cursor): For reversed cursor_row, support cursor on
6924 the left fringe.
6925
283ccc18
EZ
6926 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
6927 of continuation indicators on the fringes.
6928 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
6929 left fringe.
6930
f951a506
EZ
6931 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
6932 draw cursor on the left fringe.
6933
6934 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
6935 cursor on the left fringe.
6936
f951a506
EZ
6937 * dispnew.c (update_text_area): Handle reversed desired rows when
6938 the cursor is on the left fringe.
6939 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
6940 below, not by 0, for when the cursor is on the left fringe.
6941
3bb49aaf
JD
69422010-04-20 Jan Djärv <jan.h.d@swipnet.se>
6943
6944 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
6945 widget is a scrollbar.
6946
c0be27fd
KH
69472010-04-20 Kenichi Handa <handa@m17n.org>
6948
6949 * charset.c (char_charset): Consider Vcharset_non_preferred_head
6950 only when the arg CHARSET_LIST is nil.
6951
ce5b453a
SM
69522010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6953
6954 Make variable forwarding explicit rather the using special values.
6955 Basically, this makes the structure of buffer-local values and object
6956 forwarding explicit in the type of Lisp_Symbols rather than use
6957 special Lisp_Objects for that. This tends to lead to slightly more
6958 verbose code, but is more C-like, simpler, and makes it easier to make
6959 sure we handled all cases, among other things by letting the compiler
6960 help us check it.
6961 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
6962 Removing forwarding objects.
6963 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
6964 (struct Lisp_Symbol): Make the various forms of variable-forwarding
6965 explicit rather than hiding them inside Lisp_Object "values".
6966 (XFWDTYPE): New macro.
6967 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
6968 (XBUFFER_LOCAL_VALUE): Remove.
6969 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
6970 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
6971 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
6972 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
6973 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
6974 Remove the Lisp_Misc_* header.
6975 (struct Lisp_Buffer_Local_Value): Redefine.
6976 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
6977 (struct Lisp_Misc_Any): Add filler to get the right size.
6978 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
6979 Lisp_Intfwd.
6980 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
6981 (DEFVAR_KBOARD): Allocate a forwarding object.
6982 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
6983 (let_shadows_global_binding_p): New function.
6984 (union Lisp_Val_Fwd): New type.
6985 (make_blv): New function.
6986 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
6987 (store_symval_forwarding, swap_in_global_binding, Fboundp)
6988 (swap_in_symval_forwarding, find_symbol_value, Fset)
6989 (let_shadows_buffer_binding_p, set_internal, default_value)
6990 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
6991 (Fkill_local_variable, Fmake_variable_frame_local)
6992 (Flocal_variable_p, Flocal_variable_if_set_p)
6993 (Fvariable_binding_locus):
6994 * xdisp.c (select_frame_for_redisplay):
6995 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
6996 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
6997 * frame.c (store_frame_param):
6998 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
6999 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7000 value structure.
7001 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7002 (clone_per_buffer_values): Only adjust markers into the current buffer.
7003 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7004 (Fbuffer_local_value, set_buffer_internal_1)
7005 (swap_out_buffer_local_variables):
7006 Adapt to the new symbol value structure.
7007 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7008 (defvar_per_buffer): Take a new arg for the fwd object.
7009 (buffer_lisp_local_variables): Return a proper alist (different fix
7010 for bug#4138).
7011 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7012 (Fgarbage_collect): Don't handle buffer_defaults specially.
7013 (mark_object): Handle new symbol value structure rather than the old
7014 special Lisp_Misc_* objects.
7015 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7016 * term.c (set_tty_color_mode):
7017 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7018 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7019 a buffer_local_flags.
7020 * print.c (print_object): Get rid of impossible forwarding objects.
7021
fd3998ff
EZ
70222010-04-19 Eli Zaretskii <eliz@gnu.org>
7023
7024 * bidi.c (bidi_get_type, bidi_get_category)
7025 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
7026 (bidi_type_of_next_char, bidi_level_of_next_char):
7027 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 7028
e42cd1a7
JB
70292010-04-19 Juanma Barranquero <lekktu@gmail.com>
7030
7031 * dired.c (Ffile_attributes): Fix typo in docstring.
7032
6e104790 70332010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
7034
7035 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
7036 NSInteger (Bug#5811).
7037
6e104790 70382010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
7039
7040 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
7041 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
7042
6e104790 70432010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
7044
7045 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
7046
6e104790
SM
70472010-04-19 Chong Yidong <cyd@stupidchicken.com>
7048
7049 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
7050 terminal frames (Bug#5837).
7051
37dcfea0
EZ
70522010-04-19 Eli Zaretskii <eliz@gnu.org>
7053
d1da276f
EZ
7054 * .gdbinit (xsubchartable): New command.
7055
37dcfea0
EZ
70562010-04-19 Eli Zaretskii <eliz@gnu.org>
7057
7058 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 7059 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
7060 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
7061 and
7062 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
7063
e9515805
SM
70642010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7065
7066 * alloc.c (Fpurecopy): Hash-cons if requested.
7067 (syms_of_alloc): Update purify-flag docstring.
7068
22aa44a8
JD
70692010-04-18 Jan Djärv <jan.h.d@swipnet.se>
7070
7071 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
7072 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
7073
ebb5722e
EZ
70742010-04-17 Eli Zaretskii <eliz@gnu.org>
7075
7076 Fix a crash when an NSM character is inserted at BEGV.
7077
7078 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
7079 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
7080 NEUTRAL_B or UNKNOWN_BT.
7081
0f4442ef
EZ
70822010-04-16 Eli Zaretskii <eliz@gnu.org>
7083
7084 * xdisp.c (set_cursor_from_row): Don't consider possibility of
7085 other rows with cursor unless they are different from this row and
7086 this row is part of a continued line. (Bug#5943)
7087
7d4e45f8
DN
70882010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
7089
7090 * s/freebsd.h: Restore osreldate.h include.
7091 Suggested by Naohiro Aota.
7092
5ba5ec85
J
70932010-04-16 Jan Djärv <jan.h.d@swipnet.se>
7094
7095 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
7096
20af301d
CY
70972010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
7098
7099 * s/cygwin.h: Avoid linking against static libgcc.
7100
a4b000fb
JL
71012010-04-15 Juri Linkov <juri@jurta.org>
7102
7103 * window.c: Add Qscroll_command.
7104 Remove Vscroll_preserve_screen_position_commands.
7105 (window_scroll_pixel_based, window_scroll_line_based): Check the
7106 `scroll-command' property on the last command instead of searching
7107 the last command in Vscroll_preserve_screen_position_commands.
7108 (syms_of_window): Initialize and staticpro `Qscroll_command'.
7109 Put Qscroll_command property on Qscroll_up and Qscroll_down.
7110 (scroll-preserve-screen-position): Doc fix.
7111 (Vscroll_preserve_screen_position_commands): Remove variable.
7112
bc319ba4
DN
71132010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7114
6bb24457
DN
7115 * xdisp.c (message): Do not use NO_ARG_ARRAY.
7116
19d4c244
DN
71172010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
7118
7119 Reduce cpp use in Makefile.in.
7120 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
7121 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
7122 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
7123 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
7124 (CRT0_COMPILE): Remove, inline it in the only user.
7125
32129746
JL
71262010-04-14 Juri Linkov <juri@jurta.org>
7127
7128 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
7129 `scroll-up-command' and `M-v' from `scroll-down' to
7130 `scroll-down-command'.
7131
9013a7f8
JL
71322010-04-14 Juri Linkov <juri@jurta.org>
7133
7134 * window.c (Vscroll_preserve_screen_position_commands): New variable
7135 with the default value as the list of Qscroll_down and Qscroll_up.
7136 (window_scroll_pixel_based, window_scroll_line_based): Search the
7137 last command in the list Vscroll_preserve_screen_position_commands
7138 instead of comparing with Qscroll_up and Qscroll_down.
7139
4bef8d26
JD
71402010-04-13 Jan Djärv <jan.h.d@swipnet.se>
7141
92848133
JD
7142 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
7143 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
7144 does that.
7145
4bef8d26
JD
7146 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
7147 to zero.
7148
58b963f7
SM
71492010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7150
84164a0d
SM
7151 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
7152
2b0a91e7
SM
7153 Try to solve the problem of spurious EOF chars in long lines of text
7154 sent to interactive subprocesses.
7155 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
7156 (system_process_attributes): Remove unused var `ttotal'.
7157 * process.c (send_process): Don't bother breaking long line with EOF
7158 chars when talking to ttys any more.
7159 (wait_reading_process_output): Output a warning when called in such
7160 a way that it could block without being interruptible.
7161
58b963f7
SM
7162 Try to detect file modification within the same second.
7163 * buffer.h (struct buffer): New field modtime_size.
7164 * buffer.c (reset_buffer): Initialize it.
7165 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
7166 (Fverify_visited_file_modtime): Check it.
7167 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
7168 (Fset_visited_file_modtime): Set (or clear) it.
7169
01f5787b
SM
71702010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7171
7172 * process.c (status_notify): Remove unused var `ro'.
7173
83725342
JD
71742010-04-12 Jan Djärv <jan.h.d@swipnet.se>
7175
7176 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
7177 more than one visual (Bug#5938).
7178
b9465836
DN
71792010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7180
50426a04
JB
7181 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
7182 Undefine.
b9465836 7183
8d9c8ece
DN
71842010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
7185
b1f52161
DN
7186 Remove C_SWITCH_SYSTEM_TEMACS.
7187 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
7188 (malloc, realloc, free): Use emacs, not temacs for conditional
7189 definition.
7190
7191 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
7192 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
7193
8d9c8ece
DN
7194 Use autoconf, not cpp for some variables.
7195 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
7196 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
7197 (ALL_CFLAGS): Use them as make variables.
7198 (really-lwlib, really-oldXMenu): Do not pass them.
7199
1ecb2d3f
JD
72002010-04-11 Jan Djärv <jan.h.d@swipnet.se>
7201
7202 * xmenu.c (apply_systemfont_to_dialog): New.
7203 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
7204
3a4fa2f2
SM
72052010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7206
97e53006
SM
7207 * process.c (exec_sentinel): Preserve current-buffer.
7208
3a4fa2f2
SM
7209 * process.c (read_process_output): Move the save-current-buffer to
7210 apply to both the filter and the non-filter branches.
7211
88df7221
DN
72122010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
7213
7214 * s/msdos.h (UNEXEC): New definition.
7215
5634ff85
YM
72162010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7217
6eff5c3d
YM
7218 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
7219 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
7220
7221 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
7222 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
7223 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
7224 TRY_WINDOW_CHECK_MARGINS.
7225
7226 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
7227 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
7228 width only when it is for padding.
5634ff85 7229
b13aef54
J
72302010-04-09 Jan Djärv <jan.h.d@swipnet.se>
7231
7232 * xfns.c (Fx_show_tip): Call try_window in a loop until
7233 fonts_changed_p is zero (Bug#2423).
7234
21d28484
EZ
72352010-04-08 Eli Zaretskii <eliz@gnu.org>
7236
7237 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
7238 the end of TEXT_AREA. (Bug#5856)
7239
0269ef77
JD
72402010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7241
7242 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
7243 HAVE_GCONF.
7244
5930fe97
EZ
72452010-04-08 Eli Zaretskii <eliz@gnu.org>
7246
7247 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
7248 prev.orig_type, for resolving type of NSM. (Bug#5858)
7249
99852628
JD
72502010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7251
7252 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
7253 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
7254 in current_font.
7255 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
7256 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
7257 New functions.
7258 (syms_of_xsettings): Initialize current_font.
7259 defsubr Sfont_get_system_normal_font.
99852628 7260
686b968e
JB
7261 * xsettings.h (Ffont_get_system_normal_font)
7262 (xsettings_get_system_normal_font): Declare.
99852628
JD
7263
7264 * xfns.c (extern xlwmenu_default_font): Remove.
7265 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
7266 to xlwmenu.c.
7267
7268 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
7269 menu items in UTF-8.
7270
7271 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
7272 (apply_systemfont_to_menu): New function.
bba3e508
SM
7273 (set_frame_menubar, create_and_show_popup_menu):
7274 Call apply_systemfont_to_menu.
99852628 7275
7fc874c4
J
72762010-04-07 Jan Djärv <jan.h.d@swipnet.se>
7277
7278 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
7279 FRAME_LINE_TO_PIXEL_Y.
7280
7281 * xterm.c (x_set_window_size_1): Don't add border_width/height to
7282 pixelwidth/height.
7283
863bf481
DN
72842010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
7285
5e5a3b92
DN
7286 Simplify code for HP machines.
7287 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
7288 for GNU_LINUX, not needed.
7289 (UNEXEC, NEED_BSDTTY): Move definitions...
7290 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
7291
863bf481
DN
7292 * m/iris4d.h (UNEXEC): Move definition ...
7293 * s/irix6-5.h (UNEXEC): ... here.
7294
3e6bec3b
JD
72952010-04-04 Jan Djärv <jan.h.d@swipnet.se>
7296
7297 * xfns.c (set_machine_and_pid_properties): New function.
7298 (Fx_create_frame): Call set_machine_and_pid_properties.
7299
2912322b
SM
73002010-04-03 Eli Zaretskii <eliz@gnu.org>
7301
bba3e508
SM
7302 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
7303 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
7304 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
7305
2912322b
SM
7306 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
7307 in this function. (Bug#5703)
7308
73092010-04-03 Chong Yidong <cyd@stupidchicken.com>
7310
7311 * nsterm.h: Fix last change.
7312
c435b432
DN
73132010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
7314
a568f507
DN
7315 * m/intel386.h (NO_REMAP): Move definition ...
7316 * s/msdos.h (NO_REMAP): ... here.
7317
4cd9f6c2
DN
7318 * m/vax.h (CRT0_DUMMIES): Remove, unused.
7319
c435b432
DN
7320 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
7321 used on those platforms.
7322
42a2c622
DN
73232010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
7324
7325 Remove extern errno declarations.
7326 * xterm.c:
7327 * xrdb.c:
7328 * w32term.c:
7329 * unexec.c:
7330 * unexaix.c:
7331 * sysdep.c:
7332 * process.c:
7333 * lread.c:
7334 * keyboard.c:
7335 * floatfns.c:
7336 * filelock.c:
7337 * fileio.c:
7338 * emacs.c (main):
7339 * ecrt0.c:
7340 * dispnew.c:
7341 * callproc.c:
7342 * buffer.c: Remove errno extern declarations.
7343 * s/netbsd.h (NEED_ERRNO): Remove.
7344
8224f93d
DN
73452010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
7346
7347 Remove all uses of LIBX11_SYSTEM.
7348 * Makefile.in (LIBX11_SYSTEM): Remove.
7349 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
7350 instead.
7351
814062c7
EZ
73522010-04-01 Eli Zaretskii <eliz@gnu.org>
7353
ed68db4d
EZ
7354 Remove support for DJGPP v1.x (bug#5813).
7355
7356 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
7357 * s/msdos.h:
7358 * unexec.c (make_hdr, copy_text_and_data):
7359 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 7360 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
7361 (IT_set_terminal_modes, __write, _rename, gethostname)
7362 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
7363 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
7364 the value of __DJGPP__.
ed68db4d
EZ
7365 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
7366 compatibility code.
8224f93d
DN
7367 * lread.c:
7368 * gmalloc.c (memalign):
7369 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
7370 * emacs.c (main):
7371 * dosfns.c (init_dosfns):
ed68db4d
EZ
7372 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
7373
52f4d8d5
EZ
73742010-04-01 Eli Zaretskii <eliz@gnu.org>
7375
814062c7
EZ
7376 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
7377 string with `cursor' property comes from an `after-string'
7378 overlay. (Bug#5816)
7379
0dc2e11d
GM
73802010-04-01 Glenn Morris <rgm@gnu.org>
7381
7382 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
7383 Define as Makefile variables.
7384 (LIBX): Use above variables rather than directly using autoconf.
7385
1d29df59
DN
73862010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
7387
7388 Clean up BSD_SYSTEM use.
7389 * xterm.c:
7390 * process.c:
7391 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
7392 for including <sys/ioctl.h>.
7393 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
7394 code is only used for MSDOS.
7395
1546c559
JL
73962010-03-31 Juri Linkov <juri@jurta.org>
7397
7398 * image.c: Add `Qextension_data'.
7399 (syms_of_image): Initialize and staticpro `Qextension_data'.
7400 (Fimage_metadata): Rename from `Fimage_extension_data'.
7401 (gif_load): Put GIF extension data to the property
7402 `Qextension_data'.
7403
6521c534
CY
74042010-03-31 Chong Yidong <cyd@stupidchicken.com>
7405
7406 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
7407 * nsterm.h: Fix prototype.
7408
52c30783
EZ
74092010-03-31 Eli Zaretskii <eliz@gnu.org>
7410
7411 * xdisp.c (highlight_trailing_whitespace): Support highlight of
7412 trailing whitespace in right-to-left rows.
7413
855a0da7
SM
74142010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7415
7416 Get rid of the direct_output optimizations.
7417 * keyboard.c (nonundocount): Remove extern declaration.
7418 (command_loop_1): Remove brittle optimisation for cheap and
7419 common operations.
7420 * xdisp.c (redisplay_internal): Don't bother checking
7421 redisplay_performed_directly_p any more.
7422 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
7423 any more.
7424 * dispnew.c (redisplay_performed_directly_p)
7425 (direct_output_for_insert, direct_output_forward_char):
7426 * dispextern.h (redisplay_performed_directly_p)
7427 (direct_output_for_insert, direct_output_forward_char): Remove.
7428 * cmds.c (nonundocount): Make it static.
7429
85738751 74302010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
7431
7432 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
7433
85738751 74342010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
7435
7436 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
7437 invisible (Bug#5766).
7438
85738751 74392010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 7440
855a0da7
SM
7441 * xdisp.c (x_consider_frame_title, update_window_cursor):
7442 Remove HAVE_NS conditionals.
194d44e7 7443 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
7444
7445 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
7446 filename for the title.
7447 (ns_set_doc_edited): Do nothing if the selected window is a
7448 minibuffer window.
7449
7450 * nsterm.h: Add prototypes for ns_set_name_as_filename and
7451 ns_set_doc_edited.
7452
7453 * nsterm.m: Remove unneeded prototype.
7454
85738751 74552010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
7456
7457 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
7458 in the DOC file. (Bug#5336)
7459
85738751 74602010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
7461
7462 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
7463
75d1428c
SM
74642010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7465
7466 * window.c (keys_of_window): Remove redundant/overridden bindings.
7467
82043cfb
EZ
74682010-03-30 Eli Zaretskii <eliz@gnu.org>
7469
7470 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
7471 Restore original behavior when the iterator is not bidi_p.
7472
b5dd0ae7
DN
74732010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
7474
7475 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
7476
bd924a5d
EZ
74772010-03-30 Eli Zaretskii <eliz@gnu.org>
7478
7479 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
7480 are outside the range of cached character positions.
7481
3580374b
JB
74822010-03-30 Juanma Barranquero <lekktu@gmail.com>
7483
7484 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
7485
a7b02820
EZ
74862010-03-30 Eli Zaretskii <eliz@gnu.org>
7487
7488 Initial support for bidirectional editing.
7489
7490 * Makefile.in (obj): Include bidi.o.
7491 (bidi.o): New target.
7492
7493 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
7494 ($(BLD)/bidi.$(O)): New target.
7495
7496 * bidi.c: New file.
7497
7498 * buffer.h (struct buffer): New members bidi_display_reordering
7499 and bidi_paragraph_direction.
7500
7501 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
7502 and bidi_paragraph_direction.
7503 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
7504 and bidi-paragraph-direction.
7505 (Fbuffer_swap_text): Swap the values of
7506 bidi_display_reordering and bidi_paragraph_direction.
7507
7508 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
7509 (bidi_type_t, bidi_dir_t): New types.
7510 (bidi_saved_info, bidi_stack, bidi_it): New structures.
7511 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
7512 prev_stop, base_level_stop, and eol_pos.
7513 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
7514 (IT_STACK_SIZE): Enlarge to 5.
7515 (struct glyph_row): New member reversed_p.
7516 <string_buffer_position>: Update prototype.
7517 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
7518 glyph_row if bidi_it.paragraph_dir == R2L.
7519 (struct glyph): New members resolved_level and bidi_type.
7520
7521 * dispnew.c (direct_output_forward_char): Give up if we need bidi
7522 processing or buffer's direction is right-to-left.
7523 (prepare_desired_row): Preserve the reversed_p flag.
7524 (row_equal_p): Compare the reversed_p attributes as well.
7525
bba3e508
SM
7526 * xdisp.c (init_iterator): Initialize it->bidi_p.
7527 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
7528 buffer's value of bidi_paragraph_direction.
7529 (reseat_1): Initialize bidi_it.first_elt.
7530 (set_iterator_to_next, next_element_from_buffer): Use the value of
7531 paragraph_embedding to determine the paragraph direction.
7532 (set_iterator_to_next): Under bidi reordering, call
7533 bidi_get_next_char_visually. Call bidi_paragraph_init if the
7534 new_paragraph flag is set in the bidi iterator.
7535 (next_element_from_buffer): If bidi_it.first_elt is set,
7536 initialize paragraph direction and find the first character to
7537 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
7538 prime the bidi iterator starting at the line's beginning.
7539 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
7540 non-linearity of the bidi iteration. Likewise for when we back up
7541 beyond the previous stop_charpos. When moving across stop_charpos,
7542 record it in prev_stop.
7543 (display_line): Set row->end and it->start for the next row to the
7544 next character in logical order. Always extend reversed_p rows to
7545 the end of line, even if they end at ZV. Copy the reversed_p flag
7546 to the next glyph row. Keep calling set_cursor_from_row for
7547 bidi-reordered rows even if we already have a possible candidate
7548 for cursor position. Set row_end after all the row's glyphs have
7549 been produced, by looping over the glyphs. Record the position
7550 after EOL in it->eol_pos, and use it to set end_pos of the last
7551 row produced for a continued line.
7552 <Qright_to_left, Qleft_to_right>: New variables.
7553 (syms_of_xdisp): Initialize and staticpro them.
7554 (string_buffer_position_lim): New function.
7555 (string_buffer_position): Most of code moved to
7556 string_buffer_position_lim. Last argument and return value are
7557 now EMACS_INT; all callers changed.
7558 (set_cursor_from_row): Rewritten to support bidirectional text and
7559 reversed glyph rows.
bba3e508
SM
7560 (text_outside_line_unchanged_p, try_window_id):
7561 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
7562 paragraph direction can be affected by the change.
7563 (append_glyph, append_composite_glyph)
7564 (produce_image_glyph, append_stretch_glyph): Set the
7565 resolved_level and bidi_type members of each glyph.
7566 (append_glyph): If the glyph row is reversed, prepend the glyph
7567 rather than appending it.
7568 (handle_stop_backwards): New function.
7569 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
7570 (reseat): call handle_stop_backwards to recompute prev_stop and
7571 base_level_stop for the new position.
7572 (handle_invisible_prop): Under bidi iteration, skip invisible text
7573 using bidi_get_next_char_visually. If we are `reseat'ed, init the
7574 paragraph direction. Update IT->prev_stop after skipping
7575 invisible text.
7576 (move_it_in_display_line_to): New variables prev_method
7577 and prev_pos. Compare for strict equality in
7578 BUFFER_POS_REACHED_P.
7579 (try_cursor_movement): Examine all the candidate rows that occlude
7580 point, to return the best match. If rows are bidi-reordered
7581 and point moved backwards, back up to the row that is not a
7582 continuation line, and start looking for a suitable row from
7583 there.
7584
7585 * term.c (append_glyph): Reverse glyphs by pre-pending them,
7586 rather than appending, if the glyph_row's reversed_p flag is set.
7587 Set the resolved_level and bidi_type members of each glyph.
7588
7589 * .gdbinit (pbiditype): New command.
7590 (pgx): Use it to display bidi level and type of the glyph.
7591 (pitx): Display some bidi information about the iterator.
7592 (prowlims, pmtxrows): New commands.
7593
32a8894e
DN
75942010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
7595
7596 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
7597 * s/usg5-4.h (LIBS_DEBUG):
7598 * s/irix6-5.h (C_DEBUG_SWITCH):
7599 * s/gnu-linux.h (LIBS_DEBUG):
7600 * s/darwin.h (LIBS_DEBUG):
7601 * s/bsd-common.h (LIBS_DEBUG):
7602 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
7603 * m/iris4d.h (LIBS_DEBUG):
7604 * m/hp800.h (LIBS_DEBUG): Remove definitions.
7605
7606 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
7607 (LIBS_DEBUG): Remove definition.
7608
649dbf36
CY
76092010-03-27 Chong Yidong <cyd@stupidchicken.com>
7610
7611 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
7612 Windows.
7613
cad4261f
YM
76142010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7615
7616 * process.c (Fmake_network_process): Don't call turn_on_atimers around
7617 `connect' (Bug#5723).
7618
cd591dbc
HE
76192010-03-25 Helmut Eller <eller.helmut@gmail.com>
7620
7621 * process.c (Fmake_network_process): Call `select' for interrupted
7622 `connect' rather than creating new socket (Bug#5173).
7623
e867cb5d 76242010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
7625
7626 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
7627
7628 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
7629
7630 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
7631
e867cb5d 76322010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
7633
7634 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
7635 XLoadQueryFont.
7636
e867cb5d 76372010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
7638
7639 * coding.c (decode_coding_ccl): Fix previous change for the
7640 multibyte case.
fb608df3
KH
7641 (encode_coding_ccl): Don't setup ccl program here. Fix for the
7642 case that the output buffer is fullfilled.
7643 (encode_coding): Setup ccl program here.
fbdc1721 7644
5845f0ed
DN
76452010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
7646
814fb708
DN
7647 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
7648
5845f0ed
DN
7649 Simplify LIBS_MACHINE definitions.
7650 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
7651 * m/iris4d.h (LIBS_MACHINE): Likewise.
7652 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
7653 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 7654 * s/netbsd.h: Remove commented out code.
5845f0ed 7655
b7064064
DN
76562010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
7657
df7734b2
DN
7658 Remove dead code dealing with POSIX_SIGNALS.
7659 * atimer.c (set_alarm): Remove dead code, all USG systems define
7660 POSIX_SIGNALS.
7661 * data.c (arith_error): Likewise.
7662 * keyboard.c (input_available_signal, handle_user_signal)
7663 (interrupt_signal): Likewise.
7664 * process.c (sigchld_handler): Likewise.
7665 (create_process): Remove if 0 code. Remove HPUX conditional when
7666 !defined (POSIX_SIGNALS), it cannot be true.
7667 * syssignal.h: Remove USG5_4 and USG conditionals when
7668 !POSIX_SIGNALS, they cannot be true.
7669
b7064064
DN
7670 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
7671 NO_SOCK_SIGIO, not used anymore.
7672
55da5ee3
DN
76732010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
7674
0be96e3a
DN
7675 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
7676 support vax on BSDs.
7677
55da5ee3
DN
7678 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
7679 * s/aix4-2.h (ORDINARY_LINK): ... here.
7680
c0282183
AS
76812010-03-21 Andreas Schwab <schwab@linux-m68k.org>
7682
82c3d67a
AS
7683 * Makefile.in (abs_builddir): Define.
7684 (bootstrap_exe): Use it.
7685 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 7686
3613edce
SM
76872010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7688
7689 * Makefile.in (bootstrap_exe): Use an absolute name.
7690
7f110ddc
DN
76912010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7692
22e87574
DN
7693 Remove support for old GNU/Linux using libc version 5.
7694 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
7695 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
7696
05a670e6
DN
7697 Consolidate redundant definitions in s/bsd-common.h.
7698 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7699 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7700 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
7701 doing it in all files that include this one.
7702 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7703 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7704 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7705 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7706 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7707 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7708 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7709 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7710 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7711
2968f561
DN
7712 Consolidate redundant definitions.
7713 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
7714 it's undefined in all files that include this one.
7715 (POSIX_SIGNALS): Define here instead of doing it in all files that
7716 include this one.
7717 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7718 (POSIX_SIGNALS): Do not define.
7719 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7720 (POSIX_SIGNALS): Do not define.
7721 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7722 (POSIX_SIGNALS): Do not define.
7723
15d25dc0
DN
7724 Remove support for old UNIX System V systems.
7725 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
7726 * s/usg-5-4-2.h: Remove.
7727
07e339e4
DN
7728 Remove support for Solaris on PPC and for old versions.
7729 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
7730 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
7731 that cancel each other.
7732 * s/sol2-3.h:
7733 * s/sol2-4.h:
7734 * s/sol2-5.h: Remove.
7735 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
7736 (NO_REMAP): Remove, unused.
7737 (UNEXEC): Move definition ...
7738 * s/aix4-2.h (UNEXEC): ... here.
7739
7f110ddc
DN
7740 * s/openbsd.h: Remove support for non-ELF and for systems that do
7741 not support shared libraries.
7742 * s/netbsd.h:
7743 * s/freebsd.h: Likewise.
7744
605f35cd
DN
77452010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7746
7747 Remove non-working support for lynxos 3.0.
7748 * s/lynxos.h: Remove file.
7749
7750 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
7751 COFF_BSD_SYMBOLS, nothing defines it anymore.
7752
aed71cf4
DN
77532010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7754
7755 Remove obsolete uses of HAVE_SHM.
7756 * emacs.c (standard_args):
7757 (Fdump_emacs):
7758 (syms_of_emacs): Remove code depending on HAVE_SHM.
7759
7760 * alloc.c: Remove HAVE_SHM dependent definition.
7761
7762 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
7763
aded53ff
GM
77642010-03-18 Glenn Morris <rgm@gnu.org>
7765
17284745
GM
7766 * emacs.c (USAGE4): Hard-code bug address.
7767 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
7768 (bug_reporting_address): Remove.
7769 (main): Don't call bug_reporting_address.
7770
aded53ff
GM
7771 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
7772 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
7773
303500aa
CY
77742010-03-15 Chong Yidong <cyd@stupidchicken.com>
7775
7776 * xfns.c (Fx_create_frame):
7777 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
7778 on left.
7779
cef3058f
CY
77802010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
7781
7782 * editfns.c (Fformat): Account for string precision when computing
7783 field width (Bug#5710).
7784
a647d59d
CY
77852010-03-12 Chong Yidong <cyd@stupidchicken.com>
7786
4fa42018
CY
7787 * xfns.c (Fx_create_frame): Set default to Qright.
7788
a647d59d
CY
7789 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
7790 all window systems.
7791
6da23aaa
EZ
77922010-03-12 Eli Zaretskii <eliz@gnu.org>
7793
a96f6398 7794 These changes remove termcap.c from the build on Posix platforms.
83d02def 7795 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
7796 (MSDOS_OBJ): ...to here.
7797 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
7798 now identical to when LIBS_TERMCAP is defined.
7799
7800 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
7801
7802 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
7803
a96f6398 7804 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 7805
288f9fc0
CY
78062010-03-10 Chong Yidong <cyd@stupidchicken.com>
7807
7808 * Branch for 23.2.
7809
d48cd3f4
SM
78102010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7811
7812 Cleanup setup of gl_state in various parts of the code.
7813 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
7814 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
7815 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
7816 (skip_chars):
7817 * regex.c (regex_compile): Use it.
7818 (re_compile_pattern): Don't set gl_state.current_syntax_table since
7819 it's now set in regex_compile when/if we need it.
7820
618db430
SM
78212010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
7822
c0335e02
SM
7823 Make it possible to C-g in a tight bytecode loop again (bug#5680).
7824 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
7825 (QUIT): Use it to consolidate code and remove redundancy.
7826 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
7827
254c06a8
SM
7828 * regex.c (regex_compile): Setup gl_state as well.
7829
618db430
SM
7830 * syntax.c (skip_chars): Setup gl_state (bug#3823).
7831 (in_classes): Use CONSP before XCAR/XCDR.
7832
233f0c9f
CY
78332010-03-03 Chong Yidong <cyd@stupidchicken.com>
7834
7835 * keymap.c (Fwhere_is_internal): Use Fequal to compare
7836 definitions, so that keyboard macros are correctly handled
7837 (Bug#5481).
7838
75f80e63
EZ
78392010-03-02 Eli Zaretskii <eliz@gnu.org>
7840
7841 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
7842 text that could be relocated inside the call to emacs_mule_char.
7843 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
7844 (CODING_DECODE_CHAR): Add a comment describing its purpose.
7845
dcfb9bc4
KH
78462010-03-02 Kenichi Handa <handa@m17n.org>
7847
fc9a17bc
KH
7848 * character.c (parse_str_as_multibyte): Fix handling of the
7849 multibyte form of raw-bytes.
7850 (str_as_multibyte): Likewise.
7851
dcfb9bc4
KH
7852 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
7853 form of raw-bytes.
7854
412c01b6
CY
78552010-02-28 Chong Yidong <cyd@stupidchicken.com>
7856
7857 * charset.c (load_charset_map_from_file)
7858 (load_charset_map_from_vector): Zero out allocated
7859 charset_map_entries before using them.
7860
df7e1ea0
AS
78612010-02-27 Andreas Schwab <schwab@linux-m68k.org>
7862
7863 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
7864
fe69a722
CY
78652010-02-27 Chong Yidong <cyd@stupidchicken.com>
7866
4ed28cf4
CY
7867 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
7868 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 7869
7379cfce
KH
78702010-02-26 Kenichi Handa <handa@m17n.org>
7871
f88cc4d6
KH
7872 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
7873
7379cfce
KH
7874 * xdisp.c (reseat_to_string): Fix previous change.
7875
cf2fdcfb
CY
78762010-02-26 David Reitter <david.reitter@gmail.com>
7877
7878 * nsfont.m (nsfont_draw): ns_antialias_text should be a
7879 Lisp_Object (Bug#4736).
7880
cc6c7c75
KH
78812010-02-25 Kenichi Handa <handa@m17n.org>
7882
7883 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
7884
32e737d7
JD
78852010-02-24 Jan Djärv <jan.h.d@swipnet.se>
7886
7887 * xterm.c (XTflash): Move declarations before statements.
7888
7889 * gtkutil.c (xg_get_gdk_display): Remove (unused).
7890 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
7891 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
7892 (xg_create_tool_bar): Remove unused variables.
7893 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 7894 (xg_create_frame_widgets): Remove variable grav.
32e737d7 7895
676cae9f
CY
78962010-02-21 Chong Yidong <cyd@stupidchicken.com>
7897
7898 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
7899
886cc2b8
SM
79002010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7901
7902 * term.c (fatal): Add a final \n if needed (bug#5596).
7903
ddb2d8e2
CY
79042010-02-18 Chong Yidong <cyd@stupidchicken.com>
7905
7906 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
7907
2a4f8d3d
GM
79082010-02-18 Glenn Morris <rgm@gnu.org>
7909
7910 * callint.c (Finteractive): Doc fix.
7911
ebaf11b6
KH
79122010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
7913
886cc2b8
SM
7914 * coding.c (record_conversion_result):
7915 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
7916 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
7917 memory allocation error.
7918
d0396581
KH
79192010-02-17 Kenichi Handa <handa@m17n.org>
7920
886cc2b8
SM
7921 * coding.c (decode_coding_ccl): Don't setup ccl program here.
7922 Fix for the case that the output buffer is fullfilled.
d0396581
KH
7923 (decode_coding): Setup ccl program here. Keep looping when the
7924 decoder stopped because the output buffer is
7925 fullfilled (bug#5534).
7926
7927 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
7928
98599f74
JD
79292010-02-13 Jan Djärv <jan.h.d@swipnet.se>
7930
471e4f04 7931 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 7932 bug #5571.
886cc2b8 7933 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 7934 overdrawn.
98599f74 7935
182659ae
JD
79362010-02-10 Jan Djärv <jan.h.d@swipnet.se>
7937
7938 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
7939 doing_interact here.
7940 (ice_connection_closed): New function.
7941 (x_session_check_input, smc_die_CB, ice_io_error_handler)
7942 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
7943 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
7944 returns I/O error.
7945 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
7946 bug #5512.
7947
9be32c4e 79482010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
7949
7950 * nsfont.m (nsfont_open): The system's value for the font descent
7951 is negative, so round it down to avoid clipping.
7952
a2f3eb19
CY
79532010-02-06 Chong Yidong <cyd@stupidchicken.com>
7954
7955 * charset.c (load_charset_map_from_file)
7956 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 7957 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 7958
3088147c
CY
79592010-02-05 Chong Yidong <cyd@stupidchicken.com>
7960
7961 * charset.c (load_charset_map_from_file): Allocate large
7962 charset_map_entries structure on the heap rather than the stack.
7963 (Bug#5526).
7964
b57d9029
KH
79652010-01-31 Kenichi Handa <handa@m17n.org>
7966
7967 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 7968 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 7969
c67d885b
CY
79702010-01-31 Chong Yidong <cyd@stupidchicken.com>
7971
7972 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
7973 <deactivated@gmail.com> (Bug#3605).
7974
8fab2362
CY
79752010-01-31 David De La Harpe Golden <david@harpegolden.net>
7976
7977 * fileio.c (Frename_file): Correctly rename symlinks to
7978 directories (Bug#5496).
7979
cb2a62f2
CY
79802010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
7981
7982 * nsterm.m (ns_ring_bell): Handle visible bell like X.
7983
944c7a26
AS
79842010-01-30 Andreas Schwab <schwab@linux-m68k.org>
7985
7986 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
7987
c024ac08
CY
79882010-01-29 Chong Yidong <cyd@stupidchicken.com>
7989
7990 * frame.c (DEFAULT_ROWS): Change default to 35.
7991
7992 * xfns.c (x_default_font_parameter): Change default XFT font to
7993 monospace-10 (Bug#3643).
7994
af93af83
EZ
79952010-01-29 Eli Zaretskii <eliz@gnu.org>
7996
7997 * w32inevt.c (key_event): Remove unnecessary comparison of
7998 event->uChar.AsciiChar with 128.
7999
ca0eb708
CY
80002010-01-28 Chong Yidong <cyd@stupidchicken.com>
8001
b242dbfc
CY
8002 * fileio.c (Frename_file): Fix last change (Bug#5487).
8003
ca0eb708
CY
8004 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8005
8006 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8007
45d45af5
JD
80082010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8009
8010 * xfns.c (Fx_create_frame): Remove window size matching code from
8011 2010-01-15.
a73f9c9d 8012 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 8013
7e233730
JR
80142010-01-27 Jason Rumney <jasonr@gnu.org>
8015
8016 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 8017 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 8018
86e893e3
KH
80192010-01-27 Kenichi Handa <handa@m17n.org>
8020
8021 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 8022 pattern string (Bug#4209).
86e893e3 8023
8719abec
CY
80242010-01-27 David De La Harpe Golden <david@harpegolden.net>
8025
8026 * fileio.c (Frename_file): Call copy-directory and
8027 delete-directory for directories, in order to handle cross-device
8028 renaming (Bug#3353).
8029
844794c8
JD
80302010-01-25 Jan Djärv <jan.h.d@swipnet.se>
8031
aa3e13b5 8032 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 8033 sizes 24 and 10. Bug #3643.
844794c8 8034
bd4b5750
SM
80352010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
8036
8dc1adf6 8037 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
8038 * keymap.c (shadow_lookup): Add `remap' arg.
8039 (describe_map, describe_vector): Update calls to shadow_lookup.
8040 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
8041 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
8042 perform remapping during shadow_lookup check of remapped_sequences.
8043
285d07e2
CY
80442010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
8045
8046 * image.c (png_load): Use png_sig_cmp instead of the obsolete
8047 png_check_sig, which has been removed in libpng 1.4.
8048
c6d09b8d
CY
80492010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8050
8051 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
8052 lacks this header file).
8053
3d782998
YM
80542010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8055
8056 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
8057 as in Emacs 22.
8058
2aff7c53
YM
80592010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8060
8061 * lisp.h (make_pure_string): String pointer arg now points to const.
8062
8063 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
8064 args now point to const.
8065
74327f7a
EZ
80662010-01-22 Eli Zaretskii <eliz@gnu.org>
8067
8068 * lread.c (Fload): Don't treat files without .elc extension as
8069 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
8070 them. (bug#5303)
8071
4d1e6632
KH
80722010-01-20 Kenichi Handa <handa@m17n.org>
8073
8074 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
8075 treat the source as actual byte sequence.
8076
1fdede8f
AM
80772010-01-19 Alan Mackenzie <acm@muc.de>
8078
8079 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 8080 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
8081 `signal_after_change_p' to `coherent_change_p', and make the
8082 invocation of `modify_region' conditional on it.
8083
67477f30
JD
80842010-01-19 Jan Djärv <jan.h.d@swipnet.se>
8085
8086 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
8087 for debug purpose.
8088 (syms_of_xsettings): Declare xft-settings.
8089
244b023e
CY
80902010-01-18 Chong Yidong <cyd@stupidchicken.com>
8091
8092 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
8093
617364fe
CY
80942010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
8095
8096 * xterm.c (event_handler_gdk): Block input (Bug#5037).
8097
4fe22cdf
CY
80982010-01-16 Chong Yidong <cyd@stupidchicken.com>
8099
8100 * emacs.c (standard_args): Adjust arg priorities to reflect how
8101 they are processed in startup.el.
8102
e118d2be
AS
81032010-01-16 Andreas Schwab <schwab@linux-m68k.org>
8104
8105 * Makefile.in (lisp, shortlisp): Update.
8106
523ae620
SM
81072010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
8108
8109 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
8110 code, link the new kboard into all_kboard before running Lisp code,
8111 and protect the new terminal with GCPRO (Bug#5365).
8112 (x_term_init): Remove unused var `atom'.
8113 (x_delete_display, x_delete_terminal): Remove unused var `i'.
8114
f0d13888
JD
81152010-01-15 Jan Djärv <jan.h.d@swipnet.se>
8116
8117 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
8118 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
8119 to find out usable size of the desktop. Don't make frames larger than
ac146f82 8120 this. Bug #3643.
f0d13888 8121
cc320f07
KH
81222010-01-15 Kenichi Handa <handa@m17n.org>
8123
8124 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
8125
7ffdf101
CY
81262010-01-15 Chong Yidong <cyd@stupidchicken.com>
8127
8128 * nsterm.m (Qnone): Define.
8129
8130 * nsfns.m (Qnone): Move definition to nsterm.m.
8131
d12bd917
KH
81322010-01-14 Kenichi Handa <handa@m17n.org>
8133
8134 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
8135 systems.
8136
d9a7c140
KH
81372010-01-14 Kenichi Handa <handa@m17n.org>
8138
8139 Make auto-composition work on all buffers even if they are
8140 fundamental mode.
8141
8142 * composite.c (Vauto_composition_mode): New variable.
8143 (composition_compute_stop_pos): Check Vauto_composition_mode
8144 instead of Vauto_composition_function.
8145 (composition_adjust_point, Ffind_composition_internal): Likewise.
8146 (syms_of_composite): Declare Lisp variable
8147 "auto-composition-mode" here.
8148
63286bb2
CY
81492010-01-13 Chong Yidong <cyd@stupidchicken.com>
8150
8151 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
8152 during call to vendor-specific-keysyms (Bug#5365).
8153
c2623ee7
YM
81542010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8155
8156 * keyboard.c (input_available_signal) [SYNC_INPUT]:
8157 Call SIGNAL_THREAD_CHECK (Bug#5333).
8158
8159 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
8160 Call SIGNAL_THREAD_CHECK.
8161
0b5397c2
SM
81622010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
8163
8164 Try to fix bug#5314. This is probably not the final word, tho.
8165 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
8166 recent-auto-save-p as a side-effect.
8167 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
8168 * buffer.c (Fkill_buffer, reset_buffer):
8169 * editfns.c (Fsubst_char_in_region):
8170 * fileio.c (Finsert_file_contents, Fdo_auto_save)
8171 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
8172
dc954cb2
KH
81732010-01-13 Kenichi Handa <handa@m17n.org>
8174
8175 Display buffer name, etc. in mode line by composing correctly.
8176
8177 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
8178 STRING is not nil.
0b5397c2 8179 (display_mode_element): Adjust for the change of
dc954cb2
KH
8180 decode_mode_spec and display_line.
8181 (decode_mode_spec): Change arg MULTIBYTE to STRING.
8182 (display_string): Handle the case that STRING is non-null and
8183 LISP_STRING is not nil.
8184
0b5397c2
SM
8185 * xterm.c (x_draw_composite_glyph_string_foreground):
8186 Pay attention to s->face->overstrike.
dc954cb2
KH
8187
8188 * composite.c (composition_reseat_it): Don't check PT if STRING is
8189 non nil.
8190
4a00eaca
YM
81912010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8192
8193 * keyboard.c (read_char): Don't apply previous change when current
8194 buffer is unchanged by command execution.
8195
60abb287
JD
81962010-01-12 Jan Djärv <jan.h.d@swipnet.se>
8197
8198 * keyboard.c (read_char): Return after executing from special map.
8199
893db5bc
GM
82002010-01-12 Glenn Morris <rgm@gnu.org>
8201
8202 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
8203 bug-gnu-emacs rather than emacs-pretest-bug.
8204
4d03ece0
CY
82052010-01-11 Chong Yidong <cyd@stupidchicken.com>
8206
8207 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
8208 initializing the Lisp variables that depend on them.
8209
1df47e38
YM
82102010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8211
8212 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
8213 Clear areas that will not be updated after change of menu bar lines.
8214 Clear the menu bar window's current matrix when the window gets empty.
8215
2f1c6384
CY
82162010-01-09 Chong Yidong <cyd@stupidchicken.com>
8217
e398c61c
CY
8218 * intervals.h, textprop.c (extend_property_ranges): Return value
8219 and args changed. Discard properties that begin at or after the
8220 new end (Bug#5306).
8221
8222 * editfns.c (Fformat): Caller changed.
8223
e5a29a10
CY
8224 * nsterm.m (ns_set_default_prefs): Delete function.
8225 (syms_of_nsterm): Initialize ns_command_modifier,
8226 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
8227 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
8228
2f1c6384
CY
8229 * xdisp.c (pos_visible_p): Check for invisible text at the correct
8230 position (Bug#4040).
8231
d427a9fa
EZ
82322010-01-09 Eli Zaretskii <eliz@gnu.org>
8233
8234 * editfns.c (Ffloat_time): Doc fix.
8235
21b9df2f
JD
82362010-01-09 Jan Djärv <jan.h.d@swipnet.se>
8237
8238 * xfns.c (Fx_create_frame): Don't create frame larger than display
8239 by default bug#3643.
8240
4b00d3b1
YM
82412010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8242
8243 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
8244 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
8245 windows above internal border.
8246
8247 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
8248 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
8249 windows above internal border.
8250
8251 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
8252 tool bar windows specially.
8253
8254 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
8255
8256 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
8257 specially.
8258 (XTflash): Take account of menu bar height.
8259
8260 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
8261 specially.
8262
5075d853
JD
82632010-01-08 Jan Djärv <jan.h.d@swipnet.se>
8264
ac146f82 8265 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
8266 also be true before we can return early (bug #5339).
8267
474217c8
CY
82682010-01-06 David Reitter <david.reitter@gmail.com>
8269
8270 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
8271 (Fns_display_usable_bounds): Rewrite, computing bounds properly
8272 (Bug#3233).
8273
c0e6d47d
JD
82742010-01-06 Jan Djärv <jan.h.d@swipnet.se>
8275
d0cf45b7
JD
8276 * font.c (font_open_entity): Enable chache and call cached_font_ok
8277 for the driver if defined.
8278 (QCuser_spec): New symbol.
8279 (font_spec_from_name): Save name as user-spec.
8280 (font_load_for_lface): Keep user-spec instead of name.
8281 (font_open_by_name): Save name as user-spec.
8282 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 8283 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
8284
8285 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
8286 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
8287 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
8288
8289 * font.h (struct font_driver): Add cached_font_ok.
8290
c0e6d47d
JD
8291 * xterm.c (x_clear_frame): Queue draw for scroll bars.
8292
7c583cd8
JD
82932010-01-05 Jan Djärv <jan.h.d@swipnet.se>
8294
8295 * xterm.c (x_new_font): Move code for setting rows/cols before
8296 resizing ...
ac146f82 8297 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
8298
8299 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
8300 (xg_frame_resized, xg_frame_set_char_size):
8301 Call xg_clear_under_internal_border.
7c583cd8 8302 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 8303
03f77f0a
CY
83042010-01-05 Chong Yidong <cyd@stupidchicken.com>
8305
8306 * keyboard.c (read_key_sequence): Catch keyboard switch after
8307 making a new tty frame (Bug#5095).
8308
2a1ef5be
KH
83092010-01-05 Kenichi Handa <handa@m17n.org>
8310
8311 * fontset.c (fontset_find_font): Fix getting the frame pointer.
8312
e3eb1dae
SM
83132010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
8314
8315 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
8316 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
8317 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
8318
777013f2
MA
83192010-01-03 Michael Albinus <michael.albinus@gmx.de>
8320
8321 * dbusbind.c (xd_add_watch): Improve debug message.
8322 (xd_remove_watch): Improve debug message. If DATA is the session
8323 bus, unset D-Bus session environment.
8324 (Fdbus_init_bus): Pass the bus as argument to
8325 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 8326
8932b1c2
CY
83272010-01-01 Chong Yidong <cyd@stupidchicken.com>
8328
87231e2c
CY
8329 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
8330
4801c5fa
CY
8331 * lread.c (syms_of_lread): Make it clearer that these are the
8332 names of loaded files (Bug#5068).
8333
8932b1c2
CY
8334 * eval.c (run_hook_with_args): Handle the case where the global
8335 value has the obsolete single-function form (Bug#5026).
8336
11e3c684
CY
83372009-12-27 Chong Yidong <cyd@stupidchicken.com>
8338
8339 * minibuf.c (Fall_completions): Minor optimization.
8340
5b28ce35
EZ
83412009-12-26 Eli Zaretskii <eliz@gnu.org>
8342
5ce6e4f4
JB
8343 * .gdbinit (pgx): Fix display of composite glyphs.
8344 Display cmp.from and cmp.to as well.
8345 (pitx): Fix last change.
5b28ce35 8346
bcffff46
KH
83472009-12-25 Kenichi Handa <handa@m17n.org>
8348
8349 * composite.h (composition_adjust_point): Update prototype.
8350
8351 * composite.c (composition_reseat_it): Don't make a composition
8352 spanning over point.
8353 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
8354 composable characters.
8355 (composition_adjust_point): New arg NEW_PT. Callers changed.
8356
8357 * keyboard.c (command_loop_1): Force redisplay if the last point
8358 was within a composition.
8359 (adjust_point_for_property): Don't adjust point for automatic
8360 composition when called after buffer modification.
8361
3f670e9a
EZ
83622009-12-19 Eli Zaretskii <eliz@gnu.org>
8363
5ce6e4f4
JB
8364 * .gdbinit (pitx): Don't use enum names, use their values.
8365 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
8366 (pgx): Don't use enum names, use their values.
8367 (pitmethod): New helper command.
8368 (pitx): Use it to display iteration method.
8369 (pgrowit): New command.
8370
ad903955
EZ
8371 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
8372
3f670e9a
EZ
8373 Update dependencies in Makefile.in.
8374
8375 * Makefile.in (alloc.o): Depend on termhooks.h.
8376 (atimer.o): Depend on blockinput.h.
8377 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
8378 and frame.h.
8379 (callint.o): Depend on systime.h, coding.h, and composite.h.
8380 (callproc.o): Depend on buffer.h.
8381 (casefiddle.o): Don't depend on charset.h.
8382 (casetab.o): Depend on character.h.
8383 (ccl.o): Depend on composite.h.
8384 (chartab.o): Depend on ccl.h.
8385 (cm.o): Depend on dispextern.h.
8386 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
8387 (coding.o): Don't depend on $(INTERVALS_H).
8388 (composite.o): Don't depend on dispextern.h explicitly (it's in
8389 $(INTERVALS_H)). Depend on ccl.h.
8390 (data.o): Depend on systime.h, coding.h, composite.h,
8391 dispextern.h, font.h, and ccl.h.
8392 (dired.o): Depend on composite.h.
8393 (dispnew.o): Depend on coding.h. Don't depend explicitly on
8394 composite.h (it's in $(INTERVALS_H)).
8395 (doc.o): Depend on systime.h, coding.h, and composite.h.
8396 (editfns.o): Don't depend explicitly on dispextern.h.
8397 (emacs.o): Depend on frame.h and coding.h.
8398 (eval.o): Depend on coding.h, composite.h, and xterm.h.
8399 (fileio.o): Depend on frame.h and commands.h. Don't depend
8400 explicitly on dispextern.h.
8401 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
8402 composite.h.
8403 (fns.o): Don't depend on termhooks.h.
8404 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
8405 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
8406 coding.h, $(INTERVALS_H), window.h, xterm.h.
8407 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
8408 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
8409 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
8410 fontset.h, ccl.h, and ftfont.h.
8411 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
8412 (gtkutil.o): Depend on dispextern.h and composite.h.
8413 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
8414 termhooks.h, and ccl.h.
8415 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
8416 (intervals.o): Depend on systime.h and coding.h.
8417 (keyboard.o): Depend on composite.h and coding.h.
8418 (keymap.o): Depend on coding.h and frame.h.
8419 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
8420 (macros.o): Depend on systime.h, coding.h, and composite.h.
8421 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
8422 and atimer.h.
8423 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
8424 dispextern.h explicitly.
0b5397c2
SM
8425 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
8426 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
8427 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
8428 (regex.o): Don't depend on charset.h.
8429 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
8430 (search.o): Don't depend explicitly on composite.h.
8431 (sound.o): Depend on atimer.h and systime.h.
8432 (syntax.o): Don't depend explicitly on composite.h.
8433 (sysdep.o): Depend on coding.h and composite.h.
8434 (term.o): Depend on xterm.h and buffer.h.
8435 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
8436 (textprop.o): Don't depend on dispextern.h explicitly.
8437 (undo.o): Depend on dispextern.h.
8438 (window.o): Depend on coding.h and termhooks.h. Don't depend on
8439 dispextern.h and composite.h explicitly.
8440 (xdisp.o): Depend on ccl.h.
8441 (xfaces.o): Depend on coding.h and ccl.h.
8442 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
8443 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
8444 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
8445 ftfont.h.
8446 (xgselect.o): New dependency.
8447 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
8448 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
8449 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
8450 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
8451 (xsmfns.o): Depend on frame.h and dispextern.h.
8452 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
8453 sysselect.h.
8454
7a6f7fea
AS
84552009-12-19 Andreas Schwab <schwab@linux-m68k.org>
8456
8457 * font.c (Fclear_font_cache): Pass correct cache argument to
8458 font_clear_cache.
8459
f4c21026
AS
84602009-12-16 Andreas Schwab <schwab@linux-m68k.org>
8461
8462 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
8463 twice.
8464
f7ab0997
CY
84652009-12-15 Chong Yidong <cyd@stupidchicken.com>
8466
8467 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
8468 calling file-remote-p. Reported by Jim Meyering.
8469
fa8e045a
MA
84702009-12-15 Michael Albinus <michael.albinus@gmx.de>
8471
8472 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 8473 avoid compiler warnings. (Bug #5217)
fa8e045a 8474
a63dba42
KH
84752009-12-14 Kenichi Handa <handa@m17n.org>
8476
8477 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
8478 in 8-bit encoding.
8479
5ce6e4f4 84802009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
8481
8482 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
8483 tooltip windows.
8484
223e5fc6
JD
84852009-12-13 Jan Djärv <jan.h.d@swipnet.se>
8486
36acb2a7
JD
8487 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
8488 Xatom_net_window_type.
8489
8490 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
8491 Xatom_net_window_type.
8492
b8f00677
JD
8493 * xterm.c (my_log_handler): New function.
8494 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 8495 so we can filter out buggy messages. (Bug #5120).
b8f00677 8496
e5f0bc9a
JD
8497 * xterm.c (xg_scroll_callback): Parameter list changed,
8498 use parameter GtkScrollType to determine scroll/line/page.
8499 Only allow dragging if a button < 4 is grabbed (bug #5177).
8500 (xg_end_scroll_callback): New function.
8501 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
8502 xg_create_scroll_bar.
8503
8504 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
8505 (scroll_end_callback): Remove.
8506 (xg_create_scroll_bar): Add parameter end_callback, bind it to
8507 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 8508 bug #5177.
e5f0bc9a
JD
8509 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
8510 bug #5177.
8511
8512 * gtkutil.h (XG_LAST_SB_DATA): Remove.
8513 (xg_create_scroll_bar): Add GCallback end_callback.
8514
223e5fc6
JD
8515 * xftfont.c (QClcdfilter): New variable.
8516 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
8517 (syms_of_xftfont): Initialize QClcdfilter.
8518
3c055b77
JD
85192009-12-12 Jan Djärv <jan.h.d@swipnet.se>
8520
8521 * xsettings.c (struct xsettings): Add member seen.
8522 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 8523 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
8524 (apply_xft_settings): Only update Xft settings with what member seen
8525 indicates as new.
8526
05fe33ff
EZ
85272009-12-12 Eli Zaretskii <eliz@gnu.org>
8528
c4cc8b9a 8529 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
8530 (struct glyph): Use EMACS_INT for charpos.
8531 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
8532 region_beg_charpos, region_end_charpos,
8533 redisplay_end_trigger_charpos, and also for
8534 iterator_stack_entry.end_charpos and
8535 iterator_stack_entry.stop_charpos.
8536
e8d7886a
JD
85372009-12-12 Jan Djärv <jan.h.d@swipnet.se>
8538
5ce6e4f4 8539 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
8540 (xg_create_scroll_bar): Call scroll_end_callback on button release
8541 event (bug #5177).
8542 (xg_event_is_for_scrollbar): != replaced with ==.
8543
d0db2ec8
KH
85442009-12-12 Kenichi Handa <handa@m17n.org>
8545
8546 * ftfont.c (struct ftfont_info): New member matrix.
8547 (ftfont_open): Setup xftfont_info->matrix.
8548 (MFLTFontFT): New member matrix.
8549 (FLOOR, CEIL, ROUND): New macros.
8550 (ftfont_get_metrics): Handle matrix transformation.
8551 (ftfont_shape_by_flt): New arg matrix. Callers changed.
8552
8553 * xftfont.c (struct xftfont_info): New member matrix.
8554 (xftfont_open): Setup xftfont_info->matrix.
8555
85562009-12-10 Kenichi Handa <handa@m17n.org>
8557
8558 * xdisp.c (append_space_for_newline): Consider face-remapping.
8559
2cc7b62f
AS
85602009-12-09 Andreas Schwab <schwab@linux-m68k.org>
8561
b87dd913
AS
8562 * xsettings.c: Include "keyboard.h".
8563
eba5eb94
AS
8564 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
8565
2cc7b62f
AS
8566 Fix implicit function declarations.
8567 * cmds.c: Include "frame.h".
8568 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
8569 * frame.h: Move declaration of delete_frame outside of
8570 HAVE_WINDOW_SYSTEM.
8571
a4ef73c8
CY
85722009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
8573
8574 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
8575
8576 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
8577 GTK builds.
8578
944a300c
AS
85792009-12-07 Andreas Schwab <schwab@linux-m68k.org>
8580
8581 * unexelf.c (unexec): Don't search for .data twice.
8582
022eef62
CY
85832009-12-05 Chong Yidong <cyd@stupidchicken.com>
8584
426ac949
CY
8585 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
8586 if push failed.
8587 (handle_line_prefix): Set avoid_cursor_p here. Check return value
8588 of push_display_prop (Bug#5000).
8589
022eef62
CY
8590 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
8591 value of font_list_entities (Bug#5085).
8592
be95bee9
JB
85932009-12-04 Juanma Barranquero <lekktu@gmail.com>
8594
8595 Fix `string-to-number' to deal consistently with integers and floats.
8596 * lread.c (isfloat_string): New argument ignore_trailing to accept all
8597 trailing characters, not just whitespace.
8598 (read1): Pass new arg 0 to keep old behavior.
8599 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
8600 trailing chars, as it is already done for integers. Doc fixes.
8601 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
8602
24c2d7ce
EZ
86032009-12-04 Eli Zaretskii <eliz@gnu.org>
8604
0b5397c2
SM
8605 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
8606 Delete unused enumeration value.
24c2d7ce 8607
7e694795
EZ
86082009-12-03 Eli Zaretskii <eliz@gnu.org>
8609
8610 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
8611
84b31826
SM
86122009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
8613
8614 * process.c (Fmake_network_process): Fix up the tests for
8615 "connectionless socket", so they DTRT for seqpacket sockets as well.
8616
f00c449b
SM
86172009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
8618
8619 * process.c (Qseqpacket): New symbol.
8620 (HAVE_SEQPACKET): New macro.
8621 (Fmake_network_process): Accept new :type `seqpacket'.
8622 (init_process): Add `seqpacket' feature when applicable.
8623 (syms_of_process): Initialize Qseqpacket.
8624
8096a0ff
YM
86252009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8626
8627 * font.c (font_load_for_lface, font_open_by_name): Don't store name
8628 if entity is Qnil.
8629
3e0de07f
SM
86302009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
8631
8632 * print.c (print_preprocess): Preprocess the key_and_value table of
8633 hashtables, even tho they're "hidden" (bug#5082).
8634
abeafb2a
JD
86352009-11-29 Jan Djärv <jan.h.d@swipnet.se>
8636
8637 * frame.c (frame_make_pointer_invisible)
8638 (frame_make_pointer_visible): Declare f before statements.
8639
4bf47195
EZ
86402009-11-28 Eli Zaretskii <eliz@gnu.org>
8641
8642 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
8643 omitted dependencies on lisp.h.
8644
c525b3f2
JD
86452009-11-27 Jan Djärv <jan.h.d@swipnet.se>
8646
ece2d4ed
JD
8647 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
8648 is NULL.
8649
8650 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
8651
8652 * frame.c (frame_make_pointer_invisible)
3e0de07f 8653 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
8654 frame.
8655
c525b3f2
JD
8656 * search.c (simple_search): Remove warning by making *p const.
8657
2f00e299
DN
86582009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
8659
8660 * xdisp.c (power_letter): Remove duplicate const.
8661
084b049b
JD
86622009-11-25 Jan Djärv <jan.h.d@swipnet.se>
8663
a1fadc6f
JD
8664 * term.c (delete_tty): Remove check for last terminal (bug#4970).
8665
5ce6e4f4 8666 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
8667 defaults (bug #5025).
8668
28259cac
SM
86692009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
8670
8671 * insdel.c (adjust_markers_for_delete): Move it in the
8672 right direction! (bug#4803)
8673
e8e14166
YM
86742009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8675
8676 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
8677
8678 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
8679
86677b58
GM
86802009-11-24 Glenn Morris <rgm@gnu.org>
8681
8682 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
8683
581e51e8
JD
86842009-11-23 Jan Djärv <jan.h.d@swipnet.se>
8685
cfc86c7a
JD
8686 * Makefile.in: Must create deps for ecrt0.o in its rule.
8687
581e51e8
JD
8688 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
8689 because that is what Gtk+ font dialog understands.
8690
8691 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
8692 of Fcopy_sequence.
8693 (font_open_by_name): Put name given into QCname for font-object returned.
8694
8695 * frame.c (x_set_font): Save original font name as frame parameter
8696 font-parameter.
8697
8698 * xsettings.c (set_default_xft_settings): New function.
8699 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
8700 is found.
8701
8b264ecb
AS
87022009-11-22 Andreas Schwab <schwab@linux-m68k.org>
8703
8704 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
8705 searching backwards through multibyte buffer.
8706
872870b2
JD
87072009-11-21 Jan Djärv <jan.h.d@swipnet.se>
8708
8709 * xterm.c: #include xgselect.h.
8710 (x_initialize): Call xgselect_initialize.
8711
8712 * xsettings.c (something_changedCB): C++ comments => C comments.
8713 (init_gconf): Do not deal with any GLib file descriptors, xg_select
8714 does that now.
8715
8716 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
8717 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
8718 (scroll_bar_button_cb): Remove.
5ce6e4f4 8719 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
8720 event.
8721 (xg_create_scroll_bar): Don't bind button-press-event and
8722 button-release-event.
8723
8724 * process.c: Include xgselect.h if defined (USE_GTK) ||
8725 defined (HAVE_GCONF).
8726 (wait_reading_process_output): Call xg_select for the same condition.
8727
8728 * xgselect.c (xg_select): New function to better integrate with
8729 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
8730
8731 * xgselect.h: New file, declare xg_select, xgselect_initialize.
8732
8733 * Makefile.in (XOBJ): Add xgselect.o.
8734
62a6e103
AS
87352009-11-21 Andreas Schwab <schwab@linux-m68k.org>
8736
0b5397c2
SM
8737 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
8738 Remove ignored second argument. All callers changed.
62a6e103
AS
8739 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
8740 (RE_STRING_CHAR_AND_LENGTH): Likewise.
8741 * xdisp.c (string_char_and_length): Likewise.
8742
b0ca0f33
DN
87432009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
8744
8745 * xterm.c (x_new_font):
8746 * print.c (print_object):
8747 * cmds.c (Fself_insert_command): Move declarations before statements.
8748
dd5a6279
CY
87492009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
8750
8751 * s/cygwin.h: Remove unneeded linker flags.
8752
4a8e097d
JD
87532009-11-20 Jan Djärv <jan.h.d@swipnet.se>
8754
0d1d0d26
JD
8755 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
8756
8757 * xsettings.h: Declare xsettings_get_system_font.
8758
8759 * xsettings.c (xsettings_get_system_font): New function.
8760 (init_gconf): No use initiating gconf unless we have Xft also.
8761 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
8762 HAVE_GCONF.
8763
4a8e097d
JD
8764 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
8765 add a blank entry so it doesn't collapse into nothing.
8766
8ab1650e
SM
87672009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8768
8769 * lread.c (Funintern): Comment out last change.
8770
82c602f0
RS
87712009-11-19 Richard Stallman <rms@gnu.org>
8772
8773 * lread.c (Funintern): Error if symbol is t or nil.
8774
87e32266
SM
87752009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8776
8777 * insdel.c (make_gap_larger): Don't make as many assumptions about the
8778 representation of Lisp integers.
8779 Reported by MJ Chan <mjchan.inbox@gmail.com>.
8780
1b9ac145
AS
87812009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8782
8783 * lisp.h: Remove declaration of Ffont_get_system_font.
8784 * xfns.c: Move include of "xsettings.h".
8785 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
8786
dfb3c4c6
JD
87872009-11-17 Jan Djärv <jan.h.d@swipnet.se>
8788
87e32266
SM
8789 * xsettings.c (something_changedCB, Ffont_get_system_font):
8790 Check use_system_font.
dfb3c4c6
JD
8791 (syms_of_xsettings): DEFVAR font-use-system-font.
8792
9370c1d8
AS
87932009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8794
25fe851a
AS
8795 * xfns.c (x_default_font_parameter): Remove dead assignment.
8796
9370c1d8
AS
8797 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
8798
637fa988
JD
87992009-11-17 Jan Djärv <jan.h.d@swipnet.se>
8800
87e32266 8801 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 8802 not have FC_LCD_*. #define them if not there.
a6eb20d8 8803
87e32266 8804 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 8805
637fa988
JD
8806 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
8807
8808 * xterm.c (handle_one_xevent): Call xft_settings_event for
8809 ClientMessage, PropertyNotify and DestroyNotify.
8810 (x_term_init): If we have XFT, get DPI from Xft.dpi.
8811 Call xsettings_initialize.
8812
8813 * xftfont.c (xftfont_fix_match): New function.
8814 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
8815 Call xftfont_fix_match after XftFontMatch.
8816
8817 * xfont.c (xfont_driver): Initialize all members.
8818
87e32266
SM
8819 * xfns.c (x_default_font_parameter):
8820 Try font from Ffont_get_system_font.
637fa988
JD
8821 Do not get font from x_default_parameter if we got one from
8822 Ffont_get_system_font.
87e32266 8823 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
8824
8825 * w32font.c (w32font_driver): Initialize all members.
8826
8827 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
8828
8829 * lisp.h: Declare syms_of_xsettings.
8830
87e32266
SM
8831 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
8832 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
8833
8834 * ftfont.c (ftfont_filter_properties): New function.
8835
8836 * frame.c (x_set_font): Remove unused variable lval.
8837
87e32266 8838 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
8839
8840 * font.c (font_put_extra): Don't return if val is nil, it means
8841 boolean option is off.
8842 (font_parse_fcname): Collect all extra properties in extra_props
8843 and call filter_properties for all drivers with extra_props and
8844 font as parameter.
87e32266
SM
8845 (font_open_entity): Do not use cache, it does not pick up new
8846 fontconfig settings like hinting.
637fa988
JD
8847 (font_load_for_lface): If spec had a name in it, store it in entity.
8848
a73f9c9d 8849 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
8850
8851 * config.in: HAVE_GCONF is new.
8852
8853 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
8854 xsettings.o is new.
8855
5a942932
KH
88562009-11-17 Kenichi Handa <handa@m17n.org>
8857
8858 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
8859 back to the default font in case that no suitable font is found.
8860
b7c7a4d1
SM
88612009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8862
8863 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
8864 Suggested by Chad Brown <yandros@mit.edu>.
8865 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
8866
072f1e39
JD
88672009-11-16 Jan Djärv <jan.h.d@swipnet.se>
8868
8869 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
8870
5d1e70a2
AS
88712009-11-14 Andreas Schwab <schwab@linux-m68k.org>
8872
87e32266 8873 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 8874
a53cfbe5
JD
88752009-11-14 Jan Djärv <jan.h.d@swipnet.se>
8876
473a99b7
JD
8877 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
8878 has a parent.
8879
a53cfbe5 8880 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 8881 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
8882
8883 * config.in: Generated (AUTO_DEPEND).
8884
f04bb9b2
MA
88852009-11-13 Michael Albinus <michael.albinus@gmx.de>
8886
b7c7a4d1 8887 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
8888 Vdbus_registered_functions_table, because it contains also
8889 properties. Fix docstring.
b7c7a4d1 8890 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 8891
8f11f7ec
SM
88922009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
8893
8894 * alloc.c (mark_object): Don't reprocess marked strings.
8895 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
8896 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
8897
8a605fe8
KH
88982009-11-13 Kenichi Handa <handa@m17n.org>
8899
8f11f7ec 8900 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
8901 semantics of Vword_combining_categories.
8902 (Vword_combining_categories): Describe the slight change of the
8903 semantics.
8904
241c4680
EZ
89052009-11-13 Eli Zaretskii <eliz@gnu.org>
8906
8907 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
8908
8909 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
8910
5d58e44c
SM
89112009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
8912
8913 * xdisp.c (syms_of_xdisp): Fix typo in last change.
8914
5e13f9d3
JB
89152009-11-12 Juanma Barranquero <lekktu@gmail.com>
8916
8917 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
8918
cf54c754
DR
89192009-11-11 David Reitter <david.reitter@gmail.com>
8920
8921 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
8922 variables to fix 2009-11-09 change.
8923
a4ada374
DN
89242009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
8925
91433552
DN
8926 * process.c (ifflag_def): Make flag_sym constant.
8927 (Fnetwork_interface_info): Use a constant pointer.
8928 (ifflag_table):
8929 * xfns.c (cursor_bits):
8930 * xdisp.c (power_letter):
8931 * termcap.c (speeds, esctab):
8932 * sysdep.c (baud_convert):
8933 * keyboard.c (lispy_accent_codes, modifier_names):
8934 * image.c (xbm_format, xpm_format, pbm_format, png_format)
8935 (jpeg_format, tiff_format, gif_format, svg_format)
8936 (interlace_start, interlace_increment, gs_format):
8937 * gtkutil.c (separator_names):
8938 * fringe.c (swap_nibble):
8939 * fns.c (base64_value_to_char, base64_char_to_value):
8940 * fileio.c (make_temp_name_tbl):
8941 * coding.c (suffixes): Make constant.
8942
f4265f6c
DN
8943 * frame.c (make_initial_frame):
8944 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
8945 build_string.
8946 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
8947
04420943
DN
8948 * s/freebsd.h:
8949 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
8950
0a5d24ae
DN
8951 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
8952 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
8953
a4ada374
DN
8954 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
8955 * xterm.c (syms_of_xterm):
8956 * xfaces.c (syms_of_xfaces):
8957 * xdisp.c (syms_of_xdisp):
8958 * lread.c (syms_of_lread):
8959 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
8960 build_string.
91433552 8961
a4ada374
DN
8962 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
8963
af98fc7f
SM
89642009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8965
8ab1650e 8966 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 8967
e90292a9
JD
89682009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8969
8970 * keyboard.h: Declare timer_check.
8971
8972 * keyboard.c (timer_check_2): New function that does what the old
8973 timer_check did.
8974 (timer_check): Call timer_check_2 until -1 or a non-zero time is
8975 returned, i.e. don't return -1 with timers pending.
8976
8977 * process.c: Remove extern declaration of timer_check.
8978
8979 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
8980 even if timer_check returned -1.
8981
af98fc7f
SM
8982 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
8983 xg_dialog_data.
e90292a9
JD
8984 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
8985 the event loop.
8986 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
8987 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
8988 Destroy the dialog after xg_dialog_run.
8989
045b83c0
SM
89902009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8991
8992 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
8993
1fb99a3a
JD
89942009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8995
8996 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
8997
04e452cb
JB
89982009-11-09 Juanma Barranquero <lekktu@gmail.com>
8999
9000 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9001
ef7417fd
SM
90022009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9003
9004 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9005 w32menu.c, and nsmenu.m.
9006 Simplify the obsolete case where position is nil.
9007 (cleanup_popup_menu): New function, moved from nsmenu.m.
9008 (struct skp): Remove slot `notreal'.
9009 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9010 adjust callers.
9011 (single_menu_item): Adjust call to parse_menu_item.
9012 (syms_of_menu): Defsubr x-popup-menu.
9013 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9014 (keymap_panes): Don't export any more.
9015 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9016 (xmenu_show): Declare.
9017 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9018 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9019 * keyboard.h (parse_menu_item): Update declaration.
9020 * xmenu.c (Fx_popup_menu): Remove.
9021 (syms_of_xmenu): Don't defsubr x-popup-menu.
9022 * w32menu.c (Fx_popup_menu): Remove.
9023 (syms_of_w32menu): Don't defsubr x-popup-menu.
9024 * nsmenu.m (cleanup_popup_menu): Remove.
9025 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9026 moved to menu.c's Fx_popup_menu.
9027 (Fx_popup_menu): Remove.
9028 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9029 menu_items (it's done in menu.c already).
9030
424d6179
SM
90312009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
9032
9033 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
9034 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
9035
c0df13a6 90362009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
9037
9038 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 9039 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
9040 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
9041 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
9042
2de9f71c
SM
90432009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9044
9045 Let integers use up 2 tags to give them one extra bit and thus double
9046 their range.
9047 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
9048 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
9049 New macros.
9050 (enum Lisp_Type): Use them. Give explicit values.
9051 (Lisp_Type_Limit): Remove.
9052 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
9053 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
9054 Pay attention to USE_2_TAGS_FOR_INTS.
9055 (INTEGERP): Use LISP_INT_TAG_P.
9056 * fns.c (internal_equal): Simplify the default case.
9057 (sxhash): Use case_Lisp_Int.
9058 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
9059 any more.
9060 (Ftype_of): Use case_Lisp_Int.
9061 (store_symval_forwarding): Take into account the fact that Ints can
9062 now have more than one tag.
9063 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 9064 (buffer_slot_type_mismatch):
2de9f71c
SM
9065 * xfaces.c (face_attr_equal_p):
9066 * print.c (print_object):
9067 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
9068 Use case_Lisp_Int.
9069
323637a2
EZ
90702009-11-06 Eli Zaretskii <eliz@gnu.org>
9071
7ac65b38
EZ
9072 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
9073
323637a2
EZ
9074 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
9075 warning.
9076
e511451f
JD
90772009-11-06 Jan Djärv <jan.h.d@swipnet.se>
9078
9079 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
9080
9081 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
9082
9083 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
9084 ButtonPressRelease and MotionNotify (bug#4870).
9085
5e2327cf
DN
90862009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
9087
5adc433e
DN
9088 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
9089
d67b4f80
DN
9090 * xterm.c (syms_of_xterm):
9091 * xselect.c (syms_of_xselect):
9092 * xmenu.c (syms_of_xmenu):
9093 * xfns.c (syms_of_xfns):
9094 * xfaces.c (syms_of_xfaces):
9095 * xdisp.c (syms_of_xdisp):
9096 * window.c (syms_of_window):
9097 * w32fns.c (syms_of_w32fns):
9098 * undo.c (syms_of_undo):
9099 * textprop.c (syms_of_textprop):
9100 * terminal.c (syms_of_terminal):
9101 * syntax.c (syms_of_syntax):
9102 * sound.c (syms_of_sound):
9103 * search.c (syms_of_search):
9104 * print.c (syms_of_print):
9105 * minibuf.c (syms_of_minibuf):
9106 * macros.c (syms_of_macros):
9107 * keymap.c (syms_of_keymap, initial_define_key)
9108 (initial_define_lispy_key):
9109 * keyboard.c (syms_of_keyboard):
9110 * insdel.c (syms_of_insdel):
9111 * image.c (syms_of_image):
9112 * fringe.c (syms_of_fringe):
9113 * frame.c (syms_of_frame):
9114 * fontset.c (syms_of_fontset):
9115 * fns.c (syms_of_fns):
9116 * fns.c (syms_of_fns):
9117 * fileio.c (syms_of_fileio):
9118 * fileio.c (syms_of_fileio):
9119 * eval.c (syms_of_eval):
9120 * doc.c (syms_of_doc):
9121 * dispnew.c (syms_of_display):
9122 * dired.c (syms_of_dired):
9123 * dbusbind.c (syms_of_dbusbind):
9124 * data.c (syms_of_data):
9125 * composite.c (syms_of_composite):
9126 * coding.c (syms_of_coding):
9127 * cmds.c (syms_of_cmds):
9128 * charset.c (define_charset_internal, syms_of_character):
9129 * ccl.c (syms_of_ccl):
9130 * category.c (syms_of_category, init_category_once):
9131 * casetab.c (syms_of_casetab):
9132 * casefiddle.c (syms_of_casefiddle):
9133 * callint.c (syms_of_callint):
9134 * bytecode.c (syms_of_bytecode):
9135 * buffer.c (keys_of_buffer, syms_of_buffer):
9136 * alloc.c (syms_of_alloc):
9137 * process.c (syms_of_process, init_process):
9138 * lread.c (syms_of_lread, init_obarray):
9139 * font.c (build_style_table):
9140 * emacs.c (syms_of_emacs, main): Replace calls to intern with
9141 intern_c_string, calls to make_pure_string with
9142 make_pure_c_string. Use pure_cons instead of Fcons.
9143
5e2327cf
DN
9144 * process.c (socket_options): Make it const.
9145 (set_socket_option, init_process): Use a const pointer.
9146
9147 * lread.c (intern_c_string): New function.
9148 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9149 (defvar_int): Uset it. Make the name const char*.
9150
9151 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9152 (defvar_int): Update prototypes.
9153 (DEFUN, EXFUN): Support for prototypes is now required.
9154 (intern_c_string): New prototype.
9155 (struct Lisp_Subr): Make symbol_name constant.
9156
9157 * font.c (struct table_entry): Remove unused member. Make NAMES
9158 constant.
9159 (weight_table, slant_table, width_table): Make constant.
9160
9161 * emacs.c (struct standard_args): Make name and longname constant.
9162
9163 * character.h (DEFSYM): Use intern_c_string.
9164
a56eaaef
DN
91652009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9166
9167 * alloc.c (make_pure_c_string): New function.
9168
9169 * eval.c (Fautoload): Purecopy all arguments.
9170
f6a07420
KH
91712009-11-05 Kenichi Handa <handa@m17n.org>
9172
9173 * fileio.c (Finsert_file_contents): Be sure set coding-system of
9174 the buffer in case of replace.
9175
5d28d4b1
DN
91762009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
9177
9178 * puresize.h (BASE_PURESIZE): Increase to 1620000.
9179
b349d111
SM
91802009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
9181
d528b1ce
SM
9182 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
9183 when applicable (bug#4851).
9184
b349d111
SM
9185 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
9186 (P_): Support for prototypes is now required.
9187
c38eb027
CY
91882009-10-31 Chong Yidong <cyd@stupidchicken.com>
9189
9190 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
9191 (Bug#4827).
9192
0405f8d9
EZ
91932009-10-30 Eli Zaretskii <eliz@gnu.org>
9194
d528b1ce 9195 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 9196
ca0a881a
DN
91972009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
9198
9199 * puresize.h (BASE_PURESIZE): Increase to 1470000.
9200
d528b1ce
SM
9201 * lread.c (Fload): Purecopy the file name when building
9202 Vpreloaded_file_list.
ca0a881a 9203
47e0e0e4
JR
92042009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
9205
9206 * w32fns.c (syms_of_w32fns): Change default value of
9207 w32-scroll-lock-modifier to nil. (Bug#2827)
9208
057bce6f
JB
92092009-10-26 Juanma Barranquero <lekktu@gmail.com>
9210
782a943e 9211 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 9212
242bc74c
AS
92132009-10-26 Andreas Schwab <schwab@redhat.com>
9214
9215 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
9216
522d013a
JB
92172009-10-26 Juanma Barranquero <lekktu@gmail.com>
9218
9219 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
9220 For delta < 0, skip check that only makes sense when the mini-window
9221 is going to be enlarged. (Bug#4534)
9222
18060980
CY
92232009-10-25 Chong Yidong <cyd@stupidchicken.com>
9224
9225 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
9226 string in menu maps (Bug#4471).
9227
fec8f0fe
CY
92282009-10-24 Chong Yidong <cyd@stupidchicken.com>
9229
9230 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
9231 FRAME_NS_VIEW on terminal frames (Bug#4765).
9232
10d66ec0
AS
92332009-10-24 Andreas Schwab <schwab@linux-m68k.org>
9234
1cae01f7
AS
9235 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
9236 DBUS_TYPE_UINTnn separately to get proper sign extension.
9237
58a12889
AS
9238 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
9239 can properly handle unsigned types.
d528b1ce 9240 (make_uid, make_gid): Remove.
58a12889 9241
987c9327
AS
9242 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
9243 types again.
9244
522d013a 9245 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
9246 (system_process_attributes): Likewise.
9247
905a9ed3
DN
92482009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
9249
9250 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
9251
9252 * eval.c (Fautoload): Purecopy the filename. Simplify.
9253
9254 * category.c (Fdefine_category): Purecopy docstring.
9255
a599b3e8
AS
92562009-10-23 Andreas Schwab <schwab@linux-m68k.org>
9257
7b792fc9
AS
9258 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
9259
a599b3e8
AS
9260 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
9261
b35ac83e
CY
92622009-10-23 Chong Yidong <cyd@stupidchicken.com>
9263
9264 * window.c (Fwindow_edges, Fwindow_pixel_edges)
9265 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
9266 (Bug#4775).
9267
e8903e00
SM
92682009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
9271 (init_fileio_once):
9272 * lisp.h (init_fileio_once): Remove.
9273 * emacs.c (main): Don't call init_fileio_once.
9274
8f43cbf3
DN
92752009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
9276
9277 * puresize.h (BASE_PURESIZE): Increase to 1430000.
9278
26898943
AS
92792009-10-21 Andreas Schwab <schwab@linux-m68k.org>
9280
9281 * doprnt.c (doprnt): Fix overflow check.
9282
5c646d5a
JD
92832009-10-21 Jan Djärv <jan.h.d@swipnet.se>
9284
3132a7ea
JD
9285 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
9286
5c646d5a
JD
9287 * xterm.h (x_wait_for_event): Declare it.
9288
9289 * xterm.c (pending_event_wait): New variable.
9290 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
9291 see pending_event_wait.eventtype.
9292 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
9293 (x_new_font): Call change_frame_size with new rows/columns before we
9294 try to resize the frame.
5c646d5a 9295 (x_wait_for_event): New function.
d528b1ce
SM
9296 (x_set_window_size_1): Don't change gravity unless change_gravity
9297 is set.
5c646d5a
JD
9298 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
9299 don't change frame size, instead wait for the ConfigureNotify.
9300 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
9301 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
9302 (x_initialize): Initialize pending_event_wait.
9303
9304 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
9305 size.
9306
9307 * widget.c (EmacsFrameSetValues): Add comment.
9308 (EmacsFrameSetCharSize): Just call x_set_window_size.
9309
9310 * gtkutil.c (xg_frame_set_char_size): Flush events and call
9311 x_wait_for_event.
d528b1ce 9312 (flush_and_sync): Remove again.
5c646d5a
JD
9313 (xg_get_font_name): Suggest monospace if no previous font is known.
9314
e9c1637d
SM
93152009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
9316
9317 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 9318 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 9319
5a72cccb
YM
93202009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9321
9322 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
9323 processing pending events when event is filtered for input method.
ab04798f 9324 (Bug#3681)
5a72cccb 9325
2629aa37
JB
93262009-10-20 Juanma Barranquero <lekktu@gmail.com>
9327
9328 * fns.c: Add #endif accidentally removed in previous change.
9329
c3417a74
DN
93302009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
9331
9332 * fns.c: Remove code for unsupported system: MAC_OS.
9333 * image.c: Likewise. Include setjmp.h.
9334
9685cef2
JD
93352009-10-19 Jan Djärv <jan.h.d@swipnet.se>
9336
9337 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
9338 pixel -1 (bug #4742).
9339
d7306fe6
DN
93402009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
9341
019d2c4c
DN
9342 * process.c (create_pty): Remove conditionals for no longer
9343 supported systems: UNIPLUS and RTU.
9344
ee6bacd4
DN
9345 * xterm.c:
9346 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
9347
d7306fe6
DN
9348 * alloc.c: Do not define struct catchtag.
9349 * eval.c: Move struct catchtag definition ...
9350 * lisp.h: ... here.
9351
9352 * image.c: Move png.h #include earlier to avoid warnings.
9353
9354 * xterm.c:
9355 * xsmfns.c:
9356 * xselect.c:
9357 * xrdb.c:
9358 * xmenu.c:
9359 * xftfont.c:
9360 * xfont.c:
9361 * xfns.c:
9362 * xfaces.c:
9363 * xdisp.c:
9364 * window.c:
9365 * widget.c:
9366 * w32xfns.c:
9367 * w32uniscribe.c:
9368 * w32term.c:
9369 * w32select.c:
9370 * w32reg.c:
9371 * w32proc.c:
9372 * w32menu.c:
9373 * w32inevt.c:
9374 * w32heap.c:
9375 * w32font.c:
9376 * w32fns.c:
9377 * w32console.c:
9378 * w32.c:
9379 * w16select.c:
9380 * vm-limit.c:
9381 * unexsol.c:
9382 * unexec.c:
9383 * unexcw.c:
9384 * unexaix.c:
9385 * undo.c:
9386 * tparam.c:
9387 * textprop.c:
9388 * terminfo.c:
9389 * terminal.c:
9390 * termcap.c:
9391 * term.c:
9392 * syntax.c:
9393 * sound.c:
9394 * sheap.c:
9395 * search.c:
9396 * scroll.c:
9397 * region-cache.c:
9398 * regex.c:
9399 * ralloc.c:
9400 * process.c:
9401 * print.c:
b024548b
DN
9402 * nsterm.m:
9403 * nsselect.m:
9404 * nsmenu.m:
9405 * nsimage.m:
9406 * nsfont.m:
9407 * nsfns.m:
d7306fe6
DN
9408 * msdos.c:
9409 * minibuf.c:
9410 * menu.c:
9411 * marker.c:
9412 * macros.c:
9413 * keymap.c:
9414 * keyboard.c:
9415 * intervals.c:
9416 * insdel.c:
9417 * indent.c:
9418 * gtkutil.c:
9419 * ftxfont.c:
9420 * ftfont.c:
9421 * fringe.c:
9422 * frame.c:
9423 * fontset.c:
9424 * font.c:
9425 * fns.c:
9426 * floatfns.c:
9427 * filelock.c:
9428 * fileio.c:
9429 * emacs.c:
9430 * editfns.c:
9431 * dosfns.c:
9432 * doprnt.c:
9433 * doc.c:
9434 * dispnew.c:
9435 * dired.c:
9436 * dbusbind.c:
9437 * data.c:
9438 * composite.c:
9439 * coding.c:
9440 * cmds.c:
9441 * cm.c:
9442 * chartab.c:
9443 * charset.c:
9444 * character.c:
9445 * ccl.c:
9446 * category.c:
9447 * casetab.c:
9448 * casefiddle.c:
9449 * callproc.c:
9450 * callint.c:
9451 * bytecode.c:
9452 * buffer.c:
9453 * atimer.c: Include setjmp.h. (Bug#4643)
9454
fd5f21e6
SM
94552009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9456
4c0354d7
SM
9457 Remove leftover table unibyte_to_multibyte_table.
9458 * character.c (unibyte_to_multibyte_table): Remove.
9459 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
9460 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
9461 * character.h (UNIBYTE_TO_CHAR): New macro.
9462 (MAKE_CHAR_MULTIBYTE): Use it.
9463 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
9464 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
9465 (message_dolog, set_message_1):
9466 * search.c (Freplace_match):
9467 * editfns.c (Fcompare_buffer_substrings):
9468 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
9469 (concat):
9470 * insdel.c (copy_text, count_size_as_multibyte):
9471 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
9472 * term.c (produce_glyphs):
9473 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
9474 * regex.c (RE_CHAR_TO_MULTIBYTE):
9475 * cmds.c (internal_self_insert):
9476 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
9477
fd5f21e6
SM
9478 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
9479
4418646e
DN
94802009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
9481
9482 * puresize.h (BASE_PURESIZE): Increase to 1310000.
9483
35f5c1d2
JB
94842009-10-16 Juanma Barranquero <lekktu@gmail.com>
9485
9486 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
9487
a0cd8f6b
AR
94882009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9489
9490 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
9491 still needed under Tiger.
9492
9493 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
9494
9495 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
9496 __Apple__.
9497
9498 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
9499
01a8d3fa
KH
95002009-10-15 Kenichi Handa <handa@m17n.org>
9501
9502 * print.c (print_object): Escape a symbol like "2E10" too.
9503
bf6c75c9 95042009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
9505
9506 Cleanups and changes for 64-bit compile under Snow Leopard.
9507 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
9508
9509 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
9510
c5959062 9511 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
9512 (ns_findfonts, nsfont_list_family): Use long format in printf, and
9513 cast argument.
9514 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 9515 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
9516
9517 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
9518
9519 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
9520 where appropriate.
9521
9522 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
9523 where appropriate.
6e4780c5
JB
9524 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
9525 Use stringWithUTF8String.
bf6c75c9
AR
9526 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
9527
6e4780c5
JB
9528 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
9529 Add formal protocol mention to inheritance.
bf6c75c9
AR
9530 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
9531
6e4780c5
JB
9532 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
9533 Fix printf format.
bf6c75c9
AR
9534 (ns_query_color): Use CGFloat where appropriate.
9535 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 9536 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
9537 argument.
9538
3d87f118
AR
9539 * config.in (NS_HAVE_NSINTEGER): Drop.
9540
a95c8102
AR
9541 * dbusbind.c (dbus-method-return-internal)
9542 (dbus-method-error-internal): Use long format in printf, and cast
9543 argument.
9544
9545 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
9546 in printf, and cast argument.
9547
6873acca 9548 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
9549 cast argument.
9550
9ec6f100
GM
95512009-10-11 Glenn Morris <rgm@gnu.org>
9552
9553 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
9554
5be883cd
JD
95552009-10-08 Jan Djärv <jan.h.d@swipnet.se>
9556
9557 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
9558 menu bar with a small width so it doesn't enlarge the frame.
9559
d7a39b51
JB
95602009-10-08 Juanma Barranquero <lekktu@gmail.com>
9561
9562 * fontset.c (Fset_fontset_font): Fix typos in error messages.
9563
0c2b6f8e
GM
95642009-10-06 Glenn Morris <rgm@gnu.org>
9565
9566 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
9567 SOME_MACHINE_LISP (this enters indirectly via DOC).
9568
e02131a2
EZ
95692009-10-05 Eli Zaretskii <eliz@gnu.org>
9570
9571 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
9572
b4744254
EZ
95732009-10-04 Eli Zaretskii <eliz@gnu.org>
9574
9575 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
9576 Doc fix.
9577
dbf64827
JB
95782009-10-03 Martin Rudalics <rudalics@gmx.at>
9579
9580 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
9581
e9a0aef8
MA
95822009-10-02 Michael Albinus <michael.albinus@gmx.de>
9583
d528b1ce 9584 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
9585 used anymore outside fileio.c.
9586
9587 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
9588
64eb2b56
JB
95892009-10-01 Juanma Barranquero <lekktu@gmail.com>
9590
9591 * lisp.h (Qdelete_directory_internal):
9592 Declare, instead of Qdelete_directory.
9593
9594 * w32fns.c (Fsystem_move_file_to_trash): Use it.
9595
9d28c33e
SM
95962009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
9597
9598 * eval.c (Fcalled_interactively_p): Add `kind' argument.
9599
9d8f3bd9
MA
96002009-10-01 Michael Albinus <michael.albinus@gmx.de>
9601
9d28c33e 9602 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
9603 Fdelete_directory. It is not a command anymore. It has no file
9604 name handler.
9605
9694740b
SM
96062009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
9607
9608 * xdisp.c (get_next_display_element): Use an enum in last change.
9609
748e162f
KH
96102009-09-28 Kenichi Handa <handa@m17n.org>
9611
9694740b 9612 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
9613 unibyte_display_via_language_environment in handling
9614 Vnobreak_char_display.
9615
17efd58d
AR
96162009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9617
9618 * nsterm.h (ns_app_name): New extern variable.
9619
9620 * nsterm.m (ns_app_name): New variable.
9621 (ns_term_init): Set and use it.
9622 (ns_term_shutdown): Use it.
9623
9624 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
9625 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
9626
9627 * nsfns.m (ns_set_name_iconic, ns_set_name)
9628 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
9629 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
9630
9694740b
SM
9631 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
9632 Remove double-casting in client_data comparison.
31c2d412 9633
3208cb35
YM
96342009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9635
9636 * keyboard.c (make_lispy_event): Remember last wheel direction.
9637 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
9638
b7d552d6
GM
96392009-09-26 Glenn Morris <rgm@gnu.org>
9640
9641 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
9642 internal.elc. Add term/pc-win.elc.
9643 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
9644 term/x-win.elc.
9645 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
9646 term/w32-win.elc.
9647 (NS_SUPPORT): New.
9648 (lisp): Add NS_SUPPORT.
9649 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
9650
4ff670a8
DR
96512009-09-25 David Reitter <david.reitter@gmail.com>
9652
9653 * nsmenu.m (EmacsMenu-clear): Recognize application menu
9654 on Mac OS X 10.6+ (bug#4513).
9655
feabfb6c
JB
96562009-09-24 Juanma Barranquero <lekktu@gmail.com>
9657
9658 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
9659 some parts of Emacs code (like font selection) don't grok them.
9660 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 9661
de59072a
AS
96622009-09-24 Andreas Schwab <schwab@redhat.com>
9663
9664 * coding.c (decode_coding_iso_2022): Fix operator precedence.
9665
a489517b
JB
96662009-09-24 Juanma Barranquero <lekktu@gmail.com>
9667
9668 * dired.c (Fdirectory_files): Fix typo in docstring.
9669
0592970c
AR
96702009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9671
9672 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
9673 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
9674 (EmacsScroller-setPosition:portion:whole:): Remove -display call
9675 under GNUstep.
9676 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
9677
9678 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
9679 glyph advancement.
9680
48e8a88b
AR
96812009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9682
9683 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 9684 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
9685
9686 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
9687 deleted (bug #4492).
9688
e14f0a78
AR
9689 * nsfont.m (Vns_reg_to_script): New lisp variable.
9690 (syms_of_nsfont): Declare it.
9691 (ns_registry_to_script): New function.
9692 (ns_get_req_script): Call it.
9693 (ns_findfonts): Don't give up on non-unicode registry.
9694
9695 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
9696
5b650faa
SM
96972009-09-20 Tom Tromey <tromey@redhat.com>
9698
9699 * eval.c (find_handler_clause): Make stack-trace-on-error work in
9700 batch mode (bug#4228).
9701
a489517b 97022009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
9703
9704 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 9705 carefully. (Bug #4339)
0bae4e09 9706
fcfe06f3
CY
97072009-09-18 Chong Yidong <cyd@stupidchicken.com>
9708
d798ba87 9709 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 9710
31642728
AR
97112009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9712
9713 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
9714 (main) [HAVE_NS]: Don't process --no-init-file option.
9715 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
9716
9717 * nsterm.h (ns_no_defaults): Remove.
9718
9719 * nsterm.m (ns_no_defaults): Remove.
9720 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
9721 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
9722 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
9723 don't update the NSWindow itself.
bba3e508
SM
9724 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
9725 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
9726
9727 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
9728 ns_use_qd_smoothing.
9729
9730 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
9731 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 9732 (x-close-connection): Drop PSFlush() under OS X.
a489517b 9733 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 9734
8686ac71
JB
97352009-09-17 Juanma Barranquero <lekktu@gmail.com>
9736
9737 * emacs.c (inhibit_x_resources): New variable.
9738 (main) [HAVE_NS]: Don't process --quick command line option.
9739 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
9740
9741 * lisp.h (inhibit_x_resources): Declare it extern.
9742
9743 * w32reg.c (x_get_string_resource):
9744 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
9745
e227ba05
EZ
97462009-09-17 Eli Zaretskii <eliz@gnu.org>
9747
362654a6
JB
9748 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
9749 Add lisp/term/internal.elc.
e227ba05 9750
742d40e8
SM
97512009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9752
9753 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
9754 (bug#4461).
9755
005bd5a2
DN
97562009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
9757
9758 * puresize.h (BASE_PURESIZE): Increase to 1290000.
9759
9760 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
9761 (OBJECTS_MACHINE): Remove, unused.
9762
f9af9719
SM
97632009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
9764
9765 * frame.c (x_get_resource_string): Remove unused.
9766
0307c7d2
JD
97672009-09-15 Jan Djärv <jan.h.d@swipnet.se>
9768
9769 * xterm.c (x_new_font): Call change_frame_size before calling
9770 x_set_window_size, in case frame size won't change.
9771
9772 * frame.c (x_set_font): Remove dead code.
9773
428b13d6
SM
97742009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
9775
9776 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
9777
5766c380
SM
97782009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9779
9780 * lread.c (Fload): Don't output a message after loading an obsolete
9781 package any more (done in Lisp now).
9782
2fd0161b
CY
97832009-09-12 Chong Yidong <cyd@stupidchicken.com>
9784
9785 * fns.c (syms_of_fns): Doc fix (Bug#4227).
9786
bc5e75b6
SM
97872009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9788
9789 * keymap.c (Fwhere_is_internal): Use nconc2.
9790
c31c985e
AM
97912009-09-11 Alan Mackenzie <acm@muc.de>
9792
9793 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
9794 batch mode.
9795
78012bd2
AS
97962009-09-11 Andreas Schwab <schwab@linux-m68k.org>
9797
9798 * xdisp.c (display_mode_element): Detect cycles.
9799
9d889332
SM
98002009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9801
9802 * keymap.c (where_is_internal): Don't erroneously return nil right after
9803 filling the cache.
9804 (where_is_internal_1): Fix up typo.
9805
7ab5d780
GM
98062009-09-11 Glenn Morris <rgm@gnu.org>
9807
9808 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
9809 share a common doc-string.
9810
5238a749
SM
98112009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9812
66d77eda
SM
9813 * keymap.c (get_keymap): Return the actual keymap symbol rather than
9814 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
9815
5238a749
SM
9816 * keymap.c (QCadvertised_binding): New constant.
9817 (syms_of_keymap): Initialize it.
9818 (Fwhere_is_internal): Try and use bindings from :advertised-binding
9819 if applicable.
9820
19f48442
SM
98212009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
9822
50d4ba39
SM
9823 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
9824 (parse_menu_item): Streamline since bindings are recomputed all the
9825 time anyway. Don't bother checking Vdefine_key_rebound_commands any
9826 more and don't support lmenu's menu-alias any more either.
9827
a88a5372
SM
9828 * keymap.c (where_is_internal_data): Make noindirect a boolean.
9829 (where_is_internal): Strip it down to only traverse the keymaps.
9830 Move the cache handling from Fwhere_is_internal to here.
9831 (Fwhere_is_internal): Move the handling of remapping and the choice of
9832 the best binding from where_is_internal to here.
9833 Unify the cached/noncached paths, so remapping is also handled
9834 correctly when the cache is used, and so the cache can be used to
9835 speed up remap-handling when applicable.
9836 Give preference to non-remapped bindings.
9837 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
9838 non-remapped bindings.
9839 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
9840 command remapping.
9841
19f48442
SM
9842 * xdisp.c (display_mode_element): Move list length limit from 50 to
9843 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
9844
599498c3 98452009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
9846
9847 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
9848
f9b7b5ac
SM
98492009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
9850
a53af587
JB
9851 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
9852 (Bug#4334)
9853
f9b7b5ac
SM
9854 * keymap.c (where_is_internal): Filter out shadowed remappings.
9855 Assume that where_is_internal returns unshadowed bindings to simplify
9856 the code and get rid of the gotos. Use ASIZE.
9857
04f4b72d
JD
98582009-09-04 Jan Djärv <jan.h.d@swipnet.se>
9859
4da146f2
JD
9860 * xterm.c (x_focus_changed): If we get a focusout and pointer
9861 is invisible, make it visible.
9862
04f4b72d
JD
9863 * xterm.h: Remove condition for declaration of
9864 x_*_window_to_frame.
9865
7cef7ce3
SM
98662009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
9867
9868 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
9869 initial terminal as well.
9870
a54fa5b7
JD
98712009-09-02 Jan Djärv <jan.h.d@swipnet.se>
9872
9873 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 9874 x_menubar_window_to_frame.
a54fa5b7 9875
50426a04 9876 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
9877 (XTmouse_position): Do not return valid positions
9878 for clicks in the menubar and the toolbar for Gtk+.
9879
9880 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
9881 if the widget for the event has the same top level as a frame,
9882 return the frame.
9883 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
9884 internal windows, bug #4122.
9885 (x_non_menubar_window_to_frame): Remove.
9886
5a021dd0
GM
98872009-09-02 Glenn Morris <rgm@gnu.org>
9888
9889 * buffer.c (default-major-mode): Move most of the doc from here...
9890 (major-mode): ... to here.
9891
548fe2f3
NR
98922009-08-30 Nick Roberts <nickrob@snap.net.nz>
9893
9894 * process.c (wait_reading_process_output): Keep the descriptor
9895 when pty is used by a non-child process, e.g., in I/O buffer of
9896 GDB this allows inferior to be restarted.
9897
e0840eef
EZ
98982009-08-29 Eli Zaretskii <eliz@gnu.org>
9899
9900 * xdisp.c (redisplay_internal): Remove redundant test and collapse
9901 both branches into one.
9902
82e98df4
SM
99032009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9904
9905 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
9906 (main): Use enable-multibyte-characters rather than
9907 default-enable-multibyte-characters. Output a warning message when
9908 running a unibyte session.
9909
890617cb
YM
99102009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9911
9912 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
9913 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
9914 (copy_data_segment): Also copy __program_vars section.
9915 (copy_dyld_info) [LC_DYLD_INFO]: New function.
9916 (dump_it) [LC_DYLD_INFO]: Use it.
9917
9918 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
9919
e7adeadc
EZ
99202009-08-28 Eli Zaretskii <eliz@gnu.org>
9921
9922 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
9923 $(SRC)/buildobj.h.
ef1b0ba7 9924 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
9925 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
9926 $(SRC)/buildobj.h.
9927 (clean): Add buildobj.h.
9928
3ed8bbdc
TZ
99292009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
9930
9931 * print.c (print_object): Set escapeflag to 1 when printing
9932 hashtable keys and values.
9933
155a6764
SM
99342009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
9935
9936 * lread.c (read_integer): Use doubles (and potentially return a float
9937 number) as we do in string-to-number.
9938 (read1): Use strtol to read integers, signal errors on strtol's
9939 overflow and use floats if strtol's output is too large for
9940 Elisp integers.
9941
877610de
EZ
99422009-08-27 Eli Zaretskii <eliz@gnu.org>
9943
9944 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
9945 (make-buildobj-SH): Fix last change.
9946 (SRC): Move to before where it's first used.
9947
ef73e7be
KH
99482009-08-27 Kenichi Handa <handa@m17n.org>
9949
550c8289
KH
9950 * process.c (send_process): Use encode_coding_object instead of
9951 encode_coding_string to perform eol-conversion even if the string
9952 is unibyte.
9953
60afa08d
KH
9954 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
9955 character.
9956
ef73e7be 9957 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 9958 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 9959
7b3a82d7
DN
99602009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
9961
5654bf63
DN
9962 * callproc.c (Fcall_process): Remove always true #if.
9963
7b3a82d7
DN
9964 * lisp.h: Replace #if 0 code for checking with text pointing to
9965 the --enable-checking configure flag.
9966
9967 * emacs.c (main): Mention the --enable-profiling configure flag
9968 instead of using CFLAGS.
9969
878bde49
KR
99702009-08-26 Ken Raeburn <raeburn@raeburn.org>
9971
9972 * Makefile.in (buildobj.h): New target.
9973 (doc.o): Depend on it.
9974 (temacs${EXEEXT}): Don't generate buildobj.lst.
9975 (mostlyclean): Delete buildobj.h, not buildobj.lst.
9976 * makefile.w32-in ($(SRC)/buildobj.h): New target.
9977 ($(BLD)/doc.$(O)): Depend on it.
9978 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
9979 provided by Eli Zaretskii.)
9980 ($(TEMACS)): Don't generate buildobj.lst.
9981 * doc.c: Include buildobj.h.
9982 (buildobj): New static variable.
9983 (Fsnarf_documentation): Use it, instead of opening and reading
9984 buildobj.lst.
9985
1574224c
MA
99862009-08-25 Michael Albinus <michael.albinus@gmx.de>
9987
9988 * dbusbind.c (Fdbus_call_method)
9989 (Fdbus_call_method_asynchronously): Use English numeric format for
9990 timeout values in doc string.
9991
d9da2f45
KH
99922009-08-25 Kenichi Handa <handa@m17n.org>
9993
ef73e7be
KH
9994 * alloc.c (mark_char_table): New function.
9995 (mark_object): Use mark_char_table for a char-table.
9996
d9da2f45
KH
9997 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
9998 (CHAR_TABLE_REF): Use it.
9999
c8edcc01
KR
100002009-08-23 Ken Raeburn <raeburn@raeburn.org>
10001
10002 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10003 before invoking the newly build emacs to check for load-path
10004 shadowing.
10005
7763401b
GM
100062009-08-22 Glenn Morris <rgm@gnu.org>
10007
10008 * Makefile.in (bootstrap_exe): New variable.
10009 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10010 Use ${bootstrap_exe}.
10011
729eadda
EZ
100122009-08-22 Eli Zaretskii <eliz@gnu.org>
10013
10014 * coding.h (encode_coding_string): Don't encode unibyte strings.
10015 (Bug#4047)
10016
eb4c6ace
MA
100172009-08-22 Michael Albinus <michael.albinus@gmx.de>
10018
10019 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10020
10021 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10022 intended as hotfix only.
10023 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10024
36e34d1b
AR
100252009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10026
10027 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
10028 change, and clean up loose ends in the code left by it.
10029 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
10030 yet another X11 format (rgb:r/g/b) for compatibility.
10031 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10032 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
10033
f983eb8a
SM
100342009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10035
10036 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
10037
3f56d3c6
MA
100382009-08-20 Michael Albinus <michael.albinus@gmx.de>
10039
10040 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
10041 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
10042 (xd_initialize, xd_pending_messages): Check, whether
10043 $DBUS_SESSION_BUS_ADDRESS is set.
10044
fb641d68
YM
100452009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10046
10047 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
10048
10049 * nsterm.m (ns_get_color): Remove incompatible color formats again.
10050
cf59a374
GM
100512009-08-20 Glenn Morris <rgm@gnu.org>
10052
10053 * emacs.c (system-type): Doc fix.
10054
1373f3be
SM
100552009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
10056
10057 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
10058 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
10059
058ed861
MA
100602009-08-18 Michael Albinus <michael.albinus@gmx.de>
10061
1373f3be
SM
10062 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
10063 New functions.
058ed861
MA
10064 (xd_initialize): Revert change from 2009-08-16.
10065
563a866e 100662009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
10067
10068 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 10069 font-group vector, return nil.
5fc05db0 10070
e42bdf01
CY
100712009-08-17 Chong Yidong <cyd@stupidchicken.com>
10072
10073 * process.c (status_notify): Don't perform redisplay.
10074 (Fdelete_process, list_processes_1, process_send_signal):
10075 Expliticly perform redisplay.
10076 (wait_reading_process_output): Always check process status, but
10077 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
10078
4230ab74
KR
100792009-08-17 Ken Raeburn <raeburn@raeburn.org>
10080
1373f3be 10081 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
10082 (XFLOAT_INIT): New macro for storing a float value.
10083 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
10084 * fns.c (sxhash): Copy out the value of a float in order to
10085 examine its bytes.
10086 * dbusbind.c (xd_append_arg): Likewise.
10087
4230ab74
KR
10088 * emacs.c (main): Don't call syms_of_data twice.
10089
a0645cdd
MA
100902009-08-16 Michael Albinus <michael.albinus@gmx.de>
10091
10092 * dbusbind.c (xd_initialize): Add connection file descriptor to
10093 input_wait_mask, in order to let select() detect, whether a new
10094 message has been arrived.
ca4f31ea 10095 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 10096
485db0ba
MA
100972009-08-15 Michael Albinus <michael.albinus@gmx.de>
10098
1373f3be
SM
10099 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
10100 New functions.
485db0ba
MA
10101
10102 * lisp.h (xd_pending_messages): Declare.
10103
10104 * keyboard.c (readable_events): Call xd_pending_messages.
10105
b5b98ff4
CY
101062009-08-15 Chong Yidong <cyd@stupidchicken.com>
10107
1373f3be 10108 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 10109
f8354c6e
CY
10110 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
10111
b5b98ff4
CY
10112 * buffer.c (set_buffer_internal_1)
10113 (swap_out_buffer_local_variables): Check for unbound local
10114 variables (Bug#4138).
10115
8b9fc636
EZ
101162009-08-14 Eli Zaretskii <eliz@gnu.org>
10117
10118 * process.c (create_pty): Fix last change.
10119
ce959360
CY
101202009-08-13 Chong Yidong <cyd@stupidchicken.com>
10121
10122 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
10123 (xbm_load_image): Caller changed.
64b807c9 10124 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 10125
c7baf7e9
NR
101262009-08-13 Nick Roberts <nickrob@snap.net.nz>
10127
10128 * process.c (create_pty): New function.
10129 (Fstart_process): Use it to allow Emacs to just associate a pty
10130 with the buffer. See associated change in gdb-mi.el.
10131 (list_processes_1): Deal with no program name.
10132 (start_process_unwind): Use pid == -2 to mean no process.
10133
1ac9108a
SM
101342009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
10135
10136 * cmds.c (nonundocount): New global variable.
10137 (keys_of_cmds): Initialize it.
10138 (Fself_insert_command): Use it to combine upto 20 sequential chars
10139 into a single undo entry, just like the Qself_insert_command code in
10140 keyboard.c does.
10141 Call frame_make_pointer_invisible, also like the Qself_insert_command
10142 code in keyboard.c does.
10143 * keyboard.c (command_loop_1): Use the new global nonundocount rather
10144 than its own local replacement for it.
10145
e267324c
KR
101462009-08-10 Ken Raeburn <raeburn@raeburn.org>
10147
1ac9108a 10148 * fns.c (concat): Don't re-set string length to its current value.
77437343 10149
1ac9108a
SM
10150 * coding.h (decode_coding_string, encode_coding_string):
10151 Use SBYTES macro.
f0bed503 10152
1ac9108a 10153 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
10154 (doprnt): Merge with doprnt1, discarding lispstrings code.
10155 * lisp.h (doprnt_lisp): Don't declare.
10156
416e006d
JL
101572009-08-07 Juri Linkov <juri@jurta.org>
10158
10159 * puresize.h (BASE_PURESIZE): Increase to 1270000.
10160
6f7d5780
DN
101612009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10162
10163 * print.c (syms_of_print): Undo previous change.
10164
f19a0f5b
TZ
101652009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
10166
10167 * lread.c (read1, syms_of_lread): Read hashtables back from the
10168 readable format.
10169
10170 * print.c (print_preprocess, print_object): Print hashtables fully
10171 and readably.
10172 (syms_of_print): Provide 'hashtable-print-readable.
10173
b9173dc2
AR
101742009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10175
10176 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
10177 no family set.
10178 (nsfont_open): Handle case when entity has no family.
10179
1586503c
AR
101802009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10181
10182 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
10183 element, not a list, for match case.
10184
087048cd
KH
101852009-07-28 Kenichi Handa <handa@m17n.org>
10186
10187 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
10188 rigidly.
10189
10190 * xfont.c (xfont_list_pattern): Don't ignore the return value of
10191 font_parse_xlfd. Check font properties more rigidly.
10192
780c2506
DN
101932009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10194
31fd7c5c
JB
10195 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
10196 bsd-common.h.
780c2506 10197
a8c0cc18
KH
101982009-07-27 Kenichi Handa <handa@m17n.org>
10199
10200 * xfaces.c (face_with_height): Call font_clear_prop.
10201
4fbe2306
CY
102022009-07-26 Chong Yidong <cyd@stupidchicken.com>
10203
111d9af3
CY
10204 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
10205
10206 * xterm.c (x_term_init): Use Qx.
10207
4fbe2306
CY
10208 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
10209
1ac9108a 10210 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
10211 (ns_get_color): Revert 2009-07-16 change.
10212
beb0b7f9
EZ
102132009-07-25 Eli Zaretskii <eliz@gnu.org>
10214
10215 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 10216 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 10217
2baf5e76
KR
102182009-07-25 Ken Raeburn <raeburn@raeburn.org>
10219
1ac9108a
SM
10220 * coding.h (decode_coding_string, encode_coding_string):
10221 Use SCHARS macro.
8890e5f5 10222
2baf5e76 10223 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 10224 (load_depth): Delete.
2baf5e76
KR
10225 (Qload_in_progress): New variable.
10226 (load_unwind): Don't reference load_depth or load_in_progress.
10227 (Fload): Likewise; specbind Qload_in_progress instead.
10228 (init_lread): Don't initialize load_depth.
10229 (syms_of_lread): Initialize and protect Qload_in_progress.
10230
1395c6f5
AR
102312009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10232
10233 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
10234
4e2f36cf
AR
102352009-07-23 Yavor Doganov <yavor@gnu.org>
10236
10237 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
10238
5dd9a6f7
AR
102392009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10240
10241 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
10242 Bugs 3792, 3720, 2402.
10243 (ns_lookup_indexed_color): Check for bad index.
10244 (ns_index_color): Init unused slot to 0.
10245 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
10246 Bug 3714, possibly 3082.
5dd9a6f7 10247
c902b920
JR
102482009-07-22 Jason Rumney <jasonr@gnu.org>
10249
1ac9108a
SM
10250 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
10251 Position IME window at cursor (Bug#2570).
c902b920
JR
10252 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
10253 (globals_of_w32fns): Dynamically load functions required above.
10254
10255 * w32term.c (w32_draw_window_cursor): Send message to reposition
10256 any IME window.
10257
090101cf
CY
102582009-07-21 Chong Yidong <cyd@stupidchicken.com>
10259
10260 * fileio.c: Revert 2009-07-16 changes.
10261 (Vauto_save_include_big_deletions): New variable.
10262 (Fdo_auto_save): Disable auto-save only if
10263 auto-save-include-big-deletions is nil.
10264
e6583e3d
CY
102652009-07-21 Chong Yidong <cyd@stupidchicken.com>
10266
10267 * xdisp.c (move_it_to): For continued lines ending in a tab, take
10268 the overflowed pixels into account (Bug#3879).
10269
ece435a5
KR
102702009-07-21 Ken Raeburn <raeburn@raeburn.org>
10271
10272 * lread.c (load_depth): New variable.
10273 (Fload, load_unwind, init_lread): Set it to the load recursion
10274 depth; set load_in_progress as a simple boolean based on the
10275 current load_depth. (Bug#3892)
10276
40b2d973
AR
102772009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10278
10279 * nsfont.m (ns_has_attribute): Remove.
10280 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
10281
10be7e0d
JL
102822009-07-18 Juri Linkov <juri@jurta.org>
10283
10284 * process.c (Fset_process_query_on_exit_flag): Mention killing
10285 a buffer in docstring.
10286
fa055055
KH
102872009-07-17 Kenichi Handa <handa@m17n.org>
10288
10289 * casetab.c (shuffle): Fix the logic of setting up the cycle.
10290
042f7b69
YM
102912009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10292
10293 * nsfns.m (Fns_set_alpha): Remove function.
10294 (syms_of_nsfns): Don't defsubr it.
10295
10296 * nsterm.m (ns_get_color): Remove incompatible color formats.
10297 (ns_color_to_lisp): Generate #rrggbb color format string.
10298
4be941e3
RS
102992009-07-16 Richard Stallman <rms@gnu.org>
10300
10301 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
10302 (Fset_buffer_auto_saved): Handle save_length = -2.
10303
4e6b227d
CY
103042009-07-16 Chong Yidong <cyd@stupidchicken.com>
10305
10306 * xterm.c (Qx_gtk_map_stock): New var.
10307
10308 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
10309 of calling intern each time.
10310
a1856973
YM
103112009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10312
10313 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
10314 does tiling.
10315
10316 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
10317
497e54d8
KH
103182009-07-14 Kenichi Handa <handa@m17n.org>
10319
72d36834
KH
10320 * font.c (font_vconcat_entity_vectors): New function.
10321 (struct font_sort_data): New member font_driver_preference.
10322 (font_compare): Check font_driver_preference.
10323 (font_sort_entities): The format of the first argument changed.
10324 (font_delete_unmatched): Likewise.
10325 (font_list_entities): The return type changed.
10326 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
10327 (font_find_for_lface): Adjuste for the above changes.
10328 Don't suppress the checking of C even if the repertory supports it.
10329 (Flist_fonts): Adjust for the above changes.
72d36834 10330
1ac9108a
SM
10331 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
10332 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
10333 Reject a font who has adstyle property that is different from a
10334 langname derived from registry property.
1ac9108a 10335 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 10336
b6046155
EZ
103372009-07-13 Eli Zaretskii <eliz@gnu.org>
10338
10339 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
10340 local copy of dirfilename.
10341
fb6b6049
KH
103422009-07-13 Kenichi Handa <handa@m17n.org>
10343
e2402a5e
KH
10344 * chartab.c (sub_char_table_ref_and_range): Fix the range check
10345 against max_char.
10346
fb6b6049
KH
10347 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
10348 calling XSYMBOL (sym).
10349
65156807
EZ
103502009-07-11 Eli Zaretskii <eliz@gnu.org>
10351
1ac9108a
SM
10352 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
10353 New function.
10354 (directory_files_internal) [WINDOWSNT]:
10355 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
10356 the filesystem of the directory is fast or slow.
10357
10358 * w32.c (logon_network_drive): Don't assume PATH is an absolute
10359 file name.
10360 (is_slow_fs): New function.
10361 (stat): Use it to determine whether to issue more system calls to
10362 get accurate file attributes, when w32-get-true-file-attributes is
10363 `local'.
10364
e0ab5fcf
JD
103652009-07-10 Jan Djärv <jan.h.d@swipnet.se>
10366
10367 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 10368 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
10369 parameter font-parameter as default to the font dialog.
10370
784ceded
KH
103712009-07-10 Kenichi Handa <handa@m17n.org>
10372
10373 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
10374
fb8edc0b
EZ
103752009-07-09 Eli Zaretskii <eliz@gnu.org>
10376
1ac9108a 10377 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 10378
fb8edc0b
EZ
10379 * w32.c (stat): Treat UNC file names as residing on remote
10380 drives. (Bug#3542)
10381
635c75b1
KH
103822009-07-09 Kenichi Handa <handa@m17n.org>
10383
10384 * fontset.c (fontset_find_font): Fix previous change.
10385
c1d5ce94
MA
103862009-07-08 Michael Albinus <michael.albinus@gmx.de>
10387
10388 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
10389 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
10390 error flag.
10391
edb61b39
KH
103922009-07-08 Kenichi Handa <handa@m17n.org>
10393
374bf7e4
KH
10394 * fontset.c (fontset_find_font): Fix the logic of handling
10395 charset_matched.
10396 (font_for_char): Delete unused var.
10397 (generate_ascii_font_name): Delete it.
10398
edb61b39
KH
10399 * coding.h (JIS_TO_SJIS2): Fix the code range check.
10400
10401 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
10402 (encode_coding_sjis): Fix the code range check.
10403
0f3f018c
CY
104042009-07-07 Chong Yidong <cyd@stupidchicken.com>
10405
10406 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
10407 (Fexpand_file_name): Copy string data properly (Bug#3772).
10408
fcaf6f3a
JD
104092009-07-07 Jan Djärv <jan.h.d@swipnet.se>
10410
10411 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
10412 first MapNotify.
10413
6809ca75
KH
104142009-07-07 Kenichi Handa <handa@m17n.org>
10415
10416 * character.h (unibyte_has_multibyte_table): Delete extern.
10417 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
10418
10419 * charset.c (Fset_charset_priority): Update charset_unibyte.
10420 (syms_of_charset): Initialize charset_unibyte.
10421
10422 * character.c (unibyte_has_multibyte_table): Delete it.
10423 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
10424 charset_unibyte.
10425 (multibyte_char_to_unibyte_safe): Likewise.
10426 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
10427
1ac9108a 10428 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
10429 (x_produce_glyphs): Likewise.
10430
10431 * .gdbinit (xcharset): Fix the treating $arg0.
10432
ad9e2d54
EZ
104332009-07-04 Eli Zaretskii <eliz@gnu.org>
10434
10435 Emulation of `getloadavg' on MS-Windows.
50426a04 10436 * w32.c: Include float.h.
ad9e2d54
EZ
10437 (g_b_init_get_native_system_info, g_b_init_get_system_times)
10438 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
10439 (get_native_system_info, get_system_times): New functions.
10440 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
10441 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
10442 (globals_of_w32): Initialize g_b_init_get_native_system_info,
10443 g_b_init_get_system_times, and num_of_processors.
10444
0a3472c7
JR
104452009-07-03 Jason Rumney <jasonr@gnu.org>
10446
10447 * w32term.c (w32_initialize): Use standard types.
10448
80904120
EZ
104492009-07-03 Eli Zaretskii <eliz@gnu.org>
10450
10451 * dired.c (Ffile_attributes): Decode user and group names by the
10452 locale's encoding. (Bug#3443)
10453
6978862d
DN
104542009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
10455
f8d23104
DN
10456 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
10457 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
10458
10459 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
10460
10461 * term.c (init_tty): Remove spurious #ifdef.
10462
6978862d
DN
10463 * m/mips.h: Mention this file is also used for netbsd.
10464 * m/pmax.h: Remove file.
10465
e044e4fc
JD
104662009-07-03 Jan Djärv <jan.h.d@swipnet.se>
10467
10468 * xterm.h (struct x_display_info): Add invisible_cursor.
10469 (struct x_output): Add current_cursor.
10470
10471 * xterm.c (XTtoggle_invisible_pointer): New function.
10472 (x_define_frame_cursor): Don't define cursor if invisible or the
10473 same as before. Set current_cursor.
10474 (x_create_terminal): Set toggle_invisible_pointer_hook.
10475
10476 * xfns.c (make_invisible_cursor): New function.
10477 (x_set_mouse_color): Call make_invisible_cursor.
10478 Set current_cursor.
10479 (x_window): Set current_cursor.
10480
10481 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
10482
10483 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
10484 inserting a character.
10485 (read_avail_input): Call frame_make_pointer_visible.
10486
10487 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
10488 (frame_make_pointer_invisible, frame_make_pointer_visible):
10489 New functions.
e044e4fc
JD
10490 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
10491
10492 * frame.h: Declare frame_make_pointer_invisible and
10493 frame_make_pointer_visible.
10494 (struct frame): Add pointer_invisible.
10495
574c8efa
JD
104962009-07-02 Jan Djärv <jan.h.d@swipnet.se>
10497
7b507248
JD
10498 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
10499 frame isn't visible.
10500 (xg_frame_resized): If width/height is -1, get size of window
10501 from X server.
10502
10503 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
10504 for MapNotify.
10505
835bdaa7 10506 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 10507 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 10508 (flush_and_sync): Reintroduce.
574c8efa 10509
3f1c6666 105102009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 10511
31fd7c5c 10512 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
10513
10514 * xterm.c (x_handle_net_wm_state): Also look for sticky.
10515 (x_term_init): Initialize Xatom_net_wm_state_sticky.
10516
10517 * frame.h: Declare Qsticky.
10518
cad9ef74
JD
10519 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
10520
10521 * nsfns.m (ns_frame_parm_handlers): Ditto.
10522
10523 * frame.c: Declare Qsticky.
10524 (frame_parms): Add sticky.
10525
10526 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
10527
10528 * xterm.h: Declare x_set_sticky.
10529
10530 * xterm.c (x_set_sticky): New function.
10531
69b16610
JD
10532 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
10533 (xg_tool_bar_menu_proxy): Attach enter/leave events to
10534 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
10535
10536 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
10537
10538 * frame.c: Qmaximized is new.
10539 (x_set_frame_parameters): Do not handle fullscreen specially.
10540 Only set width and height if explicitly set.
10541 (x_set_fullscreen): Handle Qmaximized.
10542 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
10543 (syms_of_frame): Initialize Qmaximized.
10544
1ac9108a
SM
10545 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
10546 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
10547
10548 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
10549 for Expose event. Add call to x_check_fullscreen for MapNotify event.
10550 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
10551 set gravity to NorthWestGravity when USE_GTK.
10552 (set_wm_state): New function.
31fd7c5c 10553 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
10554 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
10555 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 10556 or the case when no window manager is running. That means remove calls
3f1c6666
JD
10557 to x_real_positions and x_fullscreen_adjust.
10558
10559 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
10560 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
10561 flush_and_sync.
10562 (xg_height_changed): New function.
10563 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
10564 and gtk_window_set_policy. Set frame gravity after parsing the
10565 geometry string.
3f1c6666
JD
10566 (xg_update_frame_menubar, free_frame_menubar)
10567 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10568 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
10569 Remove calls to xg_frame_set_char_size.
10570
fd503d99
KH
105712009-07-01 Kenichi Handa <handa@m17n.org>
10572
10573 * keyboard.c (decode_keyboard_code): New function.
10574 (tty_read_avail_input): Decode the input bytes if necessary.
10575
1ac9108a
SM
10576 * coding.c (setup_coding_system):
10577 Initialize coding->carryover_bytes to 0.
fd503d99
KH
10578 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
10579 use Qno_conversion.
10580
24ed93fb
YM
105812009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10582
10583 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
10584
99061dfc
CY
105852009-06-30 Chong Yidong <cyd@stupidchicken.com>
10586
1ac9108a 10587 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 10588
ff90fbde
JR
105892009-06-30 Jason Rumney <jasonr@gnu.org>
10590
10591 * w32term.c (w32_initialize): Use GetModuleHandle for library that
10592 is already loaded.
10593 Set user model ID if supported (bug#1849).
10594
5f445726
JM
105952009-06-29 Jim Meyering <meyering@redhat.com>
10596
10597 Remove useless if-before-xfree test.
10598 * nsfont.m (nsfont_close): Remove useless test.
10599 * term.c (delete_tty): Likewise.
10600 * w32.c (system_process_attributes): Likewise.
10601 * w32font.c (w32font_close): Likewise.
10602 * xfaces.c (x_free_gc): Likewise.
10603 * xselect.c (buffer): Likewise.
10604
b9607587
AS
106052009-06-28 Andreas Schwab <schwab@linux-m68k.org>
10606
10607 * process.c (send_process): Keep decoded string in a local
10608 variable and protect it from GC. (Bug#3521)
10609
89ba96f4
EZ
106102009-06-28 Eli Zaretskii <eliz@gnu.org>
10611
10612 * term.c (create_tty_output) [MSDOS]: #ifdef away.
10613 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
10614
098a1589
CY
106152009-06-28 Chong Yidong <cyd@stupidchicken.com>
10616
485422be
CY
10617 * xdisp.c (start_display, handle_face_prop)
10618 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
10619 (redisplay_window, try_window_id, produce_image_glyph):
10620 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 10621
098a1589
CY
10622 * xterm.c (x_update_window_begin, x_new_focus_frame)
10623 (x_scroll_bar_handle_click, handle_one_xevent)
10624 (handle_one_xevent, XTread_socket, x_focus_on_frame)
10625 (x_make_frame_visible, x_make_frame_invisible)
10626 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
10627 code chunks that are now obsolete.
10628
78c38319
MA
106292009-06-28 Michael Albinus <michael.albinus@gmx.de>
10630
10631 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
10632 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
10633 for hours, when optimzation is enabled.
10634 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
10635 (xd_read_message): Make them static.
10636
4189ed40
CY
106372009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
10638
10639 * term.c (turn_on_face): Allow simultaneously bold and dim
10640 terminal faces (Bug#3530).
10641
cd9b5e16
CY
106422009-06-27 Chong Yidong <cyd@stupidchicken.com>
10643
4e23bedb
CY
10644 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
10645
cd9b5e16
CY
10646 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
10647 truncation glyphs (Bug#3686).
10648
07cc3c35
GM
106492009-06-27 Glenn Morris <rgm@gnu.org>
10650
10651 * m/pmax.h: Restore file, with only netbsd portions.
10652
31fd7c5c 106532009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 10654
cd9b5e16 10655 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 10656
42d4a64f
KH
106572009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
10658
10659 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
10660 the arg FORCE_SYMBOL.
10661
930fe55b 106622009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
10663
10664 * fontset.c (fontset_find_font): When a usable rfont_def is found
10665 in a fallback font-group, make it the first element of the group.
10666
57ebc3fd
CY
106672009-06-24 Chong Yidong <cyd@stupidchicken.com>
10668
10669 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
10670
f084f942
KH
106712009-06-24 Kenichi Handa <handa@m17n.org>
10672
10673 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
10674 set for C.
10675 (fontset_font): Record the availability of a font for C both in
10676 the realized fontsets of the current one and the default one.
10677
2f686c87
DN
106782009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
10679
10680 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
10681 conditional, it is always defined on AIX.
10682
666e158e
MB
106832009-06-23 Miles Bader <miles@gnu.org>
10684
10685 * window.c (Vrecenter_redisplay): New variable.
10686 (syms_of_window): Initialize it.
10687 (Qtty): New extern declaration.
10688 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
10689
c6da7cd2
JM
106902009-06-23 Jim Meyering <meyering@redhat.com>
10691
1ac9108a
SM
10692 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
10693 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 10694 pointer dereferences are guaranteed to be valid.
c6da7cd2 10695
678dca3d
KH
106962009-06-23 Kenichi Handa <handa@m17n.org>
10697
74d75424
KH
10698 * emacs.c (main): Call init_font ().
10699
10700 * font.h (Vfont_log): Extern it.
10701 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
10702
10703 * font.c (font_sort_entities, font_list_entities)
10704 (font_matching_entity, font_open_entity)
10705 (font_close_object): Change font_add_log to FONT_ADD_LOG.
10706 (Vfont_log): Delete static.
10707 (font_log_env_checked): Delete this variable.
10708 (font_add_log): Don't check font_log_env_checked.
10709 (font_deferred_log): Check Vfont_log.
10710 (init_font): New function.
10711
678dca3d
KH
10712 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
10713
10714 * w32font.c: Change font_add_log to FONT_ADD_LOG.
10715
10716 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
10717
10718 * xfont.c: Change font_add_log to FONT_ADD_LOG.
10719
10720 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
10721 (face_for_char): Don't call font_deferred_log here.
10722 (font_for_char): Likewise.
10723
8a668709
CY
107242009-06-22 Chong Yidong <cyd@stupidchicken.com>
10725
9a01ee33
CY
10726 * w32term.c (x_draw_glyph_string): Use the glyph string's width
10727 rather than its background_width for drawing the overline and
10728 underline (Bug#489).
10729
10730 * xterm.c (x_draw_glyph_string): Use the glyph string's width
10731 rather than its background_width for drawing the overline and
10732 underline (Bug#489).
ec7c9926
CY
10733 (xg_default_icon_file): New variable.
10734 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
10735 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 10736
8a668709
CY
10737 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
10738 (load_overlay_strings): Remove externs.
10739 (fast_find_position): Function deleted.
10740 (mouse_face_from_buffer_pos): New function, based on
10741 fast_find_position. Correctly handle before-strings,
10742 display-strings, and after-strings (Bug#1220).
10743 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
10744
4d4c02d8
CY
107452009-06-21 Chong Yidong <cyd@stupidchicken.com>
10746
1ac9108a 10747 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
10748 (move_it_in_display_line_to, move_it_in_display_line_to)
10749 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
10750
70243478
CY
107512009-06-21 Chong Yidong <cyd@stupidchicken.com>
10752
10753 * Branch for 23.1.
10754
13087e59
JR
107552009-06-21 Jason Rumney <jasonr@gnu.org>
10756
10757 * w32term.c (keyboard_codepage): New static variable.
10758 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
10759 (w32_read_socket) [WM_CHAR]: Use it to decode character
10760 input (bug#3237).
10761 (w32_initialize): Initialize it.
10762 (codepage_for_locale): New function.
10763
4735b74e
KR
107642009-06-20 Ken Raeburn <raeburn@raeburn.org>
10765
10766 * process.c (status_message): Pass Faset index argument as a lisp
10767 object, so as to work with USE_LISP_UNION_TYPE.
10768
0e727afa
YM
107692009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10770
10771 * coding.c (Ffind_coding_systems_region_internal):
10772 Cache checked characters.
10773
cf299835
KH
107742009-06-18 Kenichi Handa <handa@m17n.org>
10775
1ac9108a 10776 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 10777
90f20d94
AS
107782009-06-18 Andreas Schwab <aschwab@redhat.com>
10779
10780 * xdisp.c (redisplay_internal): Check that the frame is still
10781 live after redisplay of its windows.
10782 (redisplay_windows): Check that the window is still live.
10783
7f1faf1c
KH
107842009-06-17 Andreas Schwab <schwab@linux-m68k.org>
10785
10786 * coding.c (detect_coding_utf_16): Fix previous change.
10787
cc13543e
KH
107882009-06-16 Kenichi Handa <handa@m17n.org>
10789
10790 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
10791 UTF-16 by checking the dispersion of Eth and Oth bytes.
10792
977b85f4
AS
107932009-06-15 Andreas Schwab <schwab@linux-m68k.org>
10794
10795 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
10796
66bd43d1
KH
107972009-06-15 Kenichi Handa <handa@m17n.org>
10798
10799 * process.c (status_message): Fix previous change. Be sure to
10800 decode a localized string.
10801
cb5ca9c5
YM
108022009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10803
10804 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
10805 add comment explaining why.
10806
ec7709ba 108072009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 10808
ec7709ba 10809 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 10810
4b7f335c
AR
108112009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
10812
10813 * nsfont.m (ns_attribute_value): Remove.
10814 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
10815 (ns_has_attribute): Shrink the normal range.
10816 (ns_findfonts): Don't worry about requested spec in determining
10817 need for synthItal.
e41820ee 10818 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 10819
73b26103
SZ
108202009-06-14 Seiji Zenitani <zenitani@mac.com>
10821
10822 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
10823
5753e4da
KH
108242009-06-11 Kenichi Handa <handa@m17n.org>
10825
10826 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10827 overhang for the static composition case.
10828
3561b671
KH
108292009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10830
5753e4da
KH
10831 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10832 overhang for the automatic composition case.
10833
3561b671
KH
10834 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
10835 composition case.
10836
852bbd41
CY
108372009-06-10 Chong Yidong <cyd@stupidchicken.com>
10838
10839 * xdisp.c (get_next_display_element): When handling wrap-prefix
10840 and line-prefix, treat \n as a control character (bug#3502).
10841
9903d1e6
KH
108422009-06-10 Kenichi Handa <handa@m17n.org>
10843
10844 * font.c (font_parse_family_registry): Fix for one-char foundry.
10845 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
10846
0bcbaaaa
CY
108472009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
10848
10849 * process.c (status_message): Fix handling of multibyte signal
10850 string (Bug#3499).
10851
40aa3f13
JM
108522009-06-09 Jim Meyering <meyering@redhat.com>
10853
1f80c7e2
CY
10854 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
10855 color name is missing.
40aa3f13 10856
72d51285
KH
108572009-06-09 Kenichi Handa <handa@m17n.org>
10858
10859 * charset.c (Fmap_charset_chars): In docstring, state clearly that
10860 FROM-CODE and TO-CODE are codepoints of CHARSET.
10861
c1d04d84
AR
108622009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10863
10864 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
10865
108662009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10867
10868 Changes to support :script/:lang/:otf in NS font driver.
10869 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
10870 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
10871 indicate not part of font driver interface, and change callers.
10872 (ns_get_family): Remove pointless null check.
10873 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
10874 ns_spec_to_descriptor, ns_descriptor_to_entity.
10875 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
10876 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
10877 (ns_spec_to_descriptor, ns_descriptor_to_entity)
10878 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
10879 (ns_get_req_script, ns_accumulate_script_ranges)
10880 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
10881 New functions.
10882 (nsfont_list, nsfont_match): Use ns_findfonts.
10883 (nsfont_open): Use font descriptor instead of traits.
10884 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
10885 (dump_glyphstring): Rename to ns_dump_glyphstring.
10886
c7eb9816
AR
10887 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
10888
c1d04d84
AR
10889 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
10890
10891 * fontset.c (fontset_from_font): Remove NS-specific code.
10892
ec7709ba 108932009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
10894
10895 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
10896 nonactive windows.
10897
31fd7c5c 108982009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 10899
1ac9108a 10900 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 10901
68852c13 109022009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
10903
10904 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
10905
6756cd1d
CY
109062009-06-07 Chong Yidong <cyd@stupidchicken.com>
10907
10908 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
10909 account for the overflowing of newlines into the last glyph on the
10910 display line (Bug#3482).
10911
28bf482a
DR
109122009-06-05 David Reitter <david.reitter@gmail.com>
10913
ec7709ba
JB
10914 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
10915 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
10916 Fns_selection_exists_p, Fns_selection_owner_p.
10917
fdb55376
JR
109182009-06-03 Jason Rumney <jasonr@gnu.org>
10919
10920 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
10921 available. (Bug#3379)
10922
05129fbe
KH
109232009-05-29 Kenichi Handa <handa@m17n.org>
10924
1ac9108a
SM
10925 * coding.c (get_translation_table):
10926 Check Venable_character_translation.
05129fbe 10927
ec7709ba 109282009-05-26 David Reitter <david.reitter@gmail.com>
15891144 10929
ec7709ba
JB
10930 * nsterm.m (ns_raise_frame): Only raise frame if visible.
10931 (x_make_frame_visible): Move frame to front rather than calling
15891144 10932 ns_raise_frame().
ec7709ba 10933 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 10934 isn't key window.
ec7709ba 10935 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
10936 drawRect may be called by NSView even if the frame is hidden.
10937
ec7709ba
JB
10938 * nsfns.m (Fx_create_frame): Follow other ports in
10939 determining visibility; default to t. Ensure async_visible is set.
15891144 10940
21f73755
EZ
109412009-05-23 Eli Zaretskii <eliz@gnu.org>
10942
10943 * dired.c (Ffile_attributes): Doc fix.
10944
34001e41
CY
109452009-05-22 Chong Yidong <cyd@stupidchicken.com>
10946
10947 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
10948
46306a17
SM
109492009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
10950
10951 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
10952 and xfont_scratch_props.
10953 (syms_of_xfont): Do it here instead.
10954 (xfont_find_ccl_program): Delete, unused.
10955 (xfont_open): Delete unused var `i'.
10956
ef6e0694
KH
109572009-05-21 Kenichi Handa <handa@m17n.org>
10958
10959 * fontset.c (Qlatin): Don't make it static.
10960
46306a17
SM
10961 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
10962 New functions.
ef6e0694
KH
10963 (xfont_scripts_cache, xfont_scratch_props): New variables.
10964 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
10965 (xfont_list_pattern): Argument changed. Callers changed.
10966 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
10967 (xfont_list): Don't reject a font spec with :script property.
10968 (xfont_has_char): Fix setting of encoding.
10969 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
10970 xfont_scratch_props.
10971
109722009-05-19 Kenichi Handa <handa@m17n.org>
10973
46306a17 10974 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
10975 Callers changed.
10976
109772009-05-18 Kenichi Handa <handa@m17n.org>
10978
10979 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
10980
ac71ced7
SM
109812009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10982
10983 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
10984 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
10985
1c6d1051
YM
109862009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10987
10988 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
10989 (x_delete_terminal): Dissociate resource database from display and
10990 then call XrmDestroyDatabase before closing display.
10991
9b9b779c
AR
109922009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10993
10994 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
10995 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
10996 whether selected frame is viable before raising it (based on patch
10997 by David Reitter), and improve commentary.
10998 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 10999
cccd42d5
KH
110002009-05-15 Kenichi Handa <handa@m17n.org>
11001
11002 * font.c (Ffont_spec): Check arguments.
11003
337fbd17
CY
110042009-05-14 Chong Yidong <cyd@stupidchicken.com>
11005
11006 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11007 weight when testing attributes (Bug#3282).
11008
47a6002f
JD
110092009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11010
11011 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11012 what we expect to get in the next ConfigureNotify event.
11013
9cb363db
YM
11014 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11015 before Xft one (Bug#1696).
11016
b9126609
CY
110172009-05-07 David Reitter <david.reitter@gmail.com>
11018
11019 * nsfns.m (Fx_display_planes): Compute bitplanes using
11020 NSBitsPerPixelFromDepth (Bug#3207).
11021
27a69fd9
CY
110222009-05-10 Chong Yidong <cyd@stupidchicken.com>
11023
11024 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11025
00f37552
TTN
110262009-05-10 Ulrich Mueller <ulm@gentoo.org>
11027
11028 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11029
2d82a920
DR
110302009-05-07 David Reitter <david.reitter@gmail.com>
11031
ec7709ba
JB
11032 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11033 Respect mouse face background.
2d82a920 11034
46b0d52d
DR
110352009-05-07 David Reitter <david.reitter@gmail.com>
11036
ec7709ba
JB
11037 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
11038 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
11039 in ns_update_begin and ns_update_end.
11040
ce1b23bb
SM
110412009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11042
5996e1b7
SM
11043 * nsfns.m (ns_get_screen): Rewrite.
11044 Don't presume selected-frame is of type `ns'.
11045
ba98e3a0
SM
11046 * font.c (font_update_drivers): Sanity fallback to avoid disabling
11047 all drivers.
11048
ce1b23bb
SM
11049 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
11050
bcda200f
YM
110512009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11052
11053 * keyboard.h (add_user_signal): Fix typo in extern.
11054
11055 * lisp.h (add_user_signal): Remove extern.
11056
11057 * unexelf.c (unexec): Consider a section to precede the .bss section
11058 if its addresses overlap that of .bss.
11059 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
11060 instead of dumping process.
11061
864660a2
SM
110622009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11063
11064 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
11065
50da4e56
SM
110662009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
11067
11068 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
11069
51520a1a
DN
110702009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
11071
11072 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
11073 any statements.
11074
409ea3a1
AS
110752009-05-02 Andreas Schwab <schwab@linux-m68k.org>
11076
59c4c60f
AS
11077 * process.c (read_process_output): Make sure the current buffer is
11078 always restored.
11079
409ea3a1
AS
11080 * coding.c (record_conversion_result): Don't modify
11081 Vlast_code_conversion_error for successful result.
11082 (alloc_destination): Don't clobber conversion result. (Bug#1650)
11083
56f00ed2
KH
110842009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11085
11086 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 11087 (load_charset_map): Remove unnecessary code.
56f00ed2 11088
4491c9d2
DR
110892009-04-30 David Reitter <david.reitter@gmail.com>
11090
35f5b128 11091 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
11092 through f24.
11093
6970f632
CY
110942009-04-30 Chong Yidong <cyd@stupidchicken.com>
11095
11096 * xfaces.c (face_at_buffer_position): New arg base_face_id.
11097
11098 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
11099 face_at_buffer_position.
11100 (face_before_or_after_it_pos, get_next_display_element)
11101 (note_mouse_highlight): Update face_at_buffer_position call.
11102
11103 * term.c (term_mouse_highlight):
11104 * msdos.c (IT_note_mouse_highlight):
11105 * fontset.c (Finternal_char_font):
35f5b128 11106 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
11107
11108 * dispextern.h (face_at_buffer_position): Update prototype.
11109
0c616f63
KH
111102009-04-30 Kenichi Handa <handa@m17n.org>
11111
35f5b128 11112 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 11113
ad3aaf33
AS
111142009-04-29 Andreas Schwab <schwab@linux-m68k.org>
11115
11116 * callproc.c (Fcall_process): Fix GC protection. Make sure
11117 current buffer is always restored.
11118
c3c963a0
YM
111192009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11120
11121 * atimer.c (init_atimer): Also clear stopped_atimers.
11122
11123 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
11124
7e3386cb
YM
11125 * process.c (create_process): Clean up merger residues of
11126 2008-07-17 change.
11127
91f68422
CY
111282009-04-29 Ulrich Mueller <ulm@gentoo.org>
11129
11130 * lread.c (Vread_circle): New variable.
11131 (read1): Disable recursive read if Vread_circle is nil.
11132
24b34550
KH
111332009-04-29 Kenichi Handa <handa@m17n.org>
11134
11135 * fontset.h (set_default_ascii_font): Delete extern.
11136
11137 * fontset.c (set_default_ascii_font): Delete this unused function.
11138
11139 * frame.c (x_set_font): When ARG is a font-object, check if the
11140 font-object matches with the ASCII font-spec of the frame's
9c358bda 11141 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 11142
77bf07e1
AS
111432009-04-28 Andreas Schwab <schwab@linux-m68k.org>
11144
11145 * fns.c (Flocale_info): Protect vector from GC during decoding.
11146
11147 * process.c (Fstart_process): Protect argv strings from GC during
11148 encoding.
11149
2c55aacf
AS
111502009-04-27 Andreas Schwab <schwab@linux-m68k.org>
11151
11152 * sysdep.c: Include <ctype.h>.
11153
b892d3c9
DR
111542009-04-27 David Reitter <david.reitter@gmail.com>
11155
35f5b128 11156 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
11157 Remove commented-out code.
11158
9d0644c4
JB
111592009-04-26 Johan Bockgård <bojohan@gnu.org>
11160
11161 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11162
b7053016
JR
111632009-04-25 Jason Rumney <jasonr@gnu.org>
11164
11165 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
11166
4e8231f3
YM
111672009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11168
11169 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
11170 Swap bytes in short integer if fringe bitmap width > 8.
11171
493dcf2c
KH
111722009-04-23 Kenichi Handa <handa@m17n.org>
11173
11174 * xfaces.c (Fx_list_fonts): If a font size is specified in
11175 PATTERN, set it in returned scalable fonts.
11176
401e9e57
CY
111772009-04-22 Chong Yidong <cyd@stupidchicken.com>
11178
708e05dc
CY
11179 * keyboard.c (Fset_input_meta_mode): Doc fix.
11180
11181 * dispnew.c (Fsend_string_to_terminal): Doc fix.
11182
1ac9108a 11183 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
11184
11185 * coding.c (Fterminal_coding_system): Doc fix.
11186
11187 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
11188 (Fx_display_pixel_height, Fx_display_planes)
11189 (Fx_display_color_cells, Fx_server_max_request_size)
11190 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11191 (Fx_display_mm_height, Fx_display_mm_width)
11192 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
11193 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
11194 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
11195 (check_x_display_info): Handle terminal objects instead of
11196 terminal ids.
11197
401e9e57
CY
11198 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
11199 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
11200 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
11201 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 11202
df80c7f0
KH
112032009-04-21 Kenichi Handa <handa@m17n.org>
11204
5a8f12af 11205 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 11206 (font_score): Check AVGWIDTH too.
908567ef 11207
df80c7f0
KH
11208 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
11209 worst case.
1ac9108a
SM
11210 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
11211 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 11212
705af33f
JR
112132009-04-19 Jason Rumney <jasonr@gnu.org>
11214
11215 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 11216 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
11217
11218 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
11219 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
11220 get_phys_cursor_geometry.
11221
b71ac3dd 11222 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
11223 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
11224 using get_phys_cursor_geometry.
11225
11226 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
11227 correctly calculated.
11228
dc2933eb
JD
112292009-04-19 Jan Djärv <jan.h.d@swipnet.se>
11230
1ac9108a
SM
11231 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
11232 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
11233 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
11234 is deprecated.
11235
973e7849
AS
112362009-04-18 Andreas Schwab <schwab@linux-m68k.org>
11237
11238 * font.c (font_put_frame_data): Use xfree instead of free.
11239
314d66f4
JB
112402009-04-17 Juanma Barranquero <lekktu@gmail.com>
11241
11242 * w32font.c (Qja, Qko): Remove declarations.
11243 (syms_of_w32font): Don't DEFSYM them.
11244
cf702558
CY
112452009-04-17 Chong Yidong <cyd@stupidchicken.com>
11246
11247 * font.c (Qja, Qko): Move definitions here from ftfont.c.
11248
11249 * font.h (Qja, Qko): Extern them.
11250
11251 * ftfont.c (Qja, Qko): Remove declarations.
11252
11253 * xfont.c (Qja, Qko): Remove declarations.
11254
b50504f5
KH
112552009-04-17 Kenichi Handa <handa@m17n.org>
11256
bde25748
KH
11257 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
11258 string from a vector to handle Latin-1 characters correctly.
11259
b50504f5
KH
11260 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
11261 entity even if the cache hits.
11262
f4646fff
AS
112632009-04-16 Andreas Schwab <schwab@linux-m68k.org>
11264
11265 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 11266 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 11267
e7deaab0
AS
11268 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
11269 * lisp.h: Adjust prototypes.
11270
0a0e7d49
CY
112712009-04-16 Chong Yidong <cyd@stupidchicken.com>
11272
11273 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
11274 change (Bug#3003).
11275
3c908a57
KH
112762009-04-16 Kenichi Handa <handa@m17n.org>
11277
1ac9108a 11278 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
11279
11280 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
11281 adstyle.
11282
11283 * ftfont.c (Qja, Qko): Don't make them static.
11284 (enum ftfont_cache_for): New enum.
11285 (fc_charset_table): Undo the previous change.
11286 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
11287 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
11288 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
11289 non-scarable font, try to get AVERAGE_WIDTH.
11290 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
11291 Change ft_face_cache from a list of a hash-table. Don't check
11292 `ja' and `ko' adstyle here.
11293 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
11294 FTFONT_CACHE_FOR_CHARET.
11295 (ftfont_get_charset): Undo the previous change.
1ac9108a 11296 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
11297 (ftfont_close): Likewise.
11298 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
11299
11300 * font.c (font_sort_entites): Change the meaning of the arg
11301 BEST-ONLY. Don't optimize for VEC of lenght 1.
11302 (font_select_entity): Just return the value of font_sort_entites.
11303
11304 * xfaces.c (merge_face_vectors): Reflect font properties in
11305 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
11306 font_clear_prop if a face attribute doesn't change.
11307
3c908a57
KH
11308 * charset.h (charset_ksc5601): Extern it.
11309
11310 * charset.c (charset_ksc5601): New variable.
11311 (Fdefine_charset_internal): Set charset_ksc5601.
11312 (init_charset_once): Initialize charset_ksc5601 to -1.
11313
d65859c3
DN
113142009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
11315
11316 * fileio.c (history_delete_duplicates): Remove unused declaration.
11317
11318 * callint.c (history_delete_duplicates): New declaration.
11319 (Fcall_interactively): Remove command history duplicates when
11320 history_delete_duplicates is true.
11321
3ba010e5
EZ
113222009-04-14 Eli Zaretskii <eliz@gnu.org>
11323
11324 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
11325
06f19b91
KH
113262009-04-14 Kenichi Handa <handa@m17n.org>
11327
11328 * font.c (Ffont_info): Fix docstring. Fix the second element of
11329 the returned value (bug#2949).
11330
2cce8bfc
CY
113312009-04-14 Chong Yidong <cyd@stupidchicken.com>
11332
11333 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
11334
d156542d
KH
113352009-04-14 Kenichi Handa <handa@m17n.org>
11336
11337 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
11338 encoding charset is ascii_compatible.
11339
11340 * charset.c (Fdefine_charset_internal): Make charset
11341 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
11342 code_offset is 0, and covers all ASCII characters.
11343
86fa089e
SM
113442009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
11345
11346 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
11347 (ns_string_to_pasteboard_internal):
11348 * nsmenu.m (process_dialog):
11349 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
11350 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
11351 * lisp.h (Fx_load_color_file): Declare.
11352
a8a3728b
KH
113532009-04-13 Kenichi Handa <handa@m17n.org>
11354
1ac9108a 11355 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
11356 (font_select_entity): Suppress the code to optimize for the same
11357 kind of fonts.
11358 (font_load_for_lface): Get a font that supports at least ASCII
11359 characters.
11360
11361 * ftfont.c (Qja, Qko): New variables.
11362 (fc_charset_table): Delete uniquifier data for iso8859-1.
11363 (ftfont_get_latin1_charset): New function.
11364 (get_adstyle_property): New function.
11365 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
11366 bitmap fonts.
11367 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
11368 Delete iso-8859-1 range from the charset of fonts whose adstyle is
11369 `ko' or `ja'.
11370 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 11371 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
11372 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
11373 property.
11374 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
11375 (syms_of_ftfont): DEFSYM Qja and Qko.
11376
483670b5
KH
113772009-04-09 Kenichi Handa <handa@m17n.org>
11378
12b55765
KH
11379 * charset.c (map_charset_chars): For a charset of `superset'
11380 method, fix calculation of code range.
11381
483670b5
KH
11382 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
11383 from the list of extra properties.
11384 (font_clear_prop): Be sure to delete `:name' font property.
11385
57d3b93b
KH
113862009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11387
b4b2c2ca
YM
11388 * dispnew.c (redraw_overlapping_rows): Fix detection of
11389 overlapping for topmost and bottommost rows.
11390
1ac9108a 11391 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 11392
472c3609
JR
113932009-04-06 Jason Rumney <jasonr@gnu.org>
11394
11395 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
11396
ab193662
KH
113972009-04-06 Kenichi Handa <handa@m17n.org>
11398
11399 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
11400
11401 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
11402
0c26f026
KH
114032009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11404
11405 * ftfont.c (ftfont_open): Fix checking of the return value of
11406 FT_Load_Char. Fix setting font->underline_thickness.
11407
e173bbce
CY
114082009-04-04 Chong Yidong <cyd@stupidchicken.com>
11409
11410 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
11411 (Fterminal_parameters, Fterminal_parameter)
11412 (Fset_terminal_parameter): In doc string, refer to terminal
11413 objects rather than terminal ids.
11414
693a2698
EZ
114152009-04-04 Eli Zaretskii <eliz@gnu.org>
11416
11417 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
11418 ret_lim_data. (Bug#2867)
11419
d5221487
CY
114202009-04-03 Chong Yidong <cyd@stupidchicken.com>
11421
11422 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
11423 so they don't get wider than the window, matching 2006-01-23
11424 change to the partner function in xdisp.c (Bug#2800).
11425
223509a3
KH
114262009-04-03 Kenichi Handa <handa@m17n.org>
11427
11428 * print.c (print_object): Make each lowest sub_char_table start a
11429 new line (Bug#2866).
11430
74fcd0b1
KH
114312009-04-02 Kenichi Handa <handa@m17n.org>
11432
11433 * fontset.c (fontset_font): Record no-font when a fontset
11434 explicitly tells not to try another font-specs.
11435
c542407d
SM
114362009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
11437
11438 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
11439
e3869731
KH
114402009-03-30 Kenichi Handa <handa@m17n.org>
11441
d8d2f142
KH
11442 * fontset.c (fontset_from_font): Specify only registry in a
11443 font-spec for all characters supported by that registry.
11444
e3869731
KH
11445 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
11446 even if HAVE_M17N_FLT is not defined.
11447
5da5f805
CY
114482009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
11449
11450 * ftfont.c: Conditionalize prototyping and use of
11451 ftfont_variation_glyphs.
11452
ab226c50
SM
114532009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11454
9628fed7
SM
11455 * frame.c (delete_frame): Work around compiler bug.
11456
11457 * editfns.c (general_insert_function): Adjust to insdel.c changes.
11458 * insdel.c (prepare_to_modify_buffer, signal_before_change):
11459 Some more EMACS_INT.
11460 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
11461
11462 * xdisp.c (dump_glyph): Fix typo.
11463
ae19ba7c
SM
11464 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
11465 (adjust_markers_gap_motion, adjust_markers_for_delete)
11466 (adjust_markers_for_insert, adjust_point)
11467 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
11468 (make_gap, copy_text, count_size_as_multibyte, insert)
11469 (insert_and_inherit, insert_before_markers)
11470 (insert_before_markers_and_inherit, insert_1)
11471 (count_combining_before, count_combining_after, insert_1_both)
11472 (insert_from_string, insert_from_string_before_markers)
11473 (insert_from_string_1, insert_from_gap, insert_from_buffer)
11474 (insert_from_buffer_1, adjust_after_replace)
11475 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
11476 (replace_range_2, del_range, del_range_1, del_range_byte)
11477 (del_range_both, del_range_2, modify_region)
11478 (prepare_to_modify_buffer, signal_before_change)
11479 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
11480 for buffer positions and sizes.
11481 * lisp.h: Adjust prototypes accordingly.
11482
11483 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
11484 (non_regular_inserted, non_regular_nbytes, read_non_regular)
11485 (Finsert_file_contents): Use EMACS_INT for buffer positions.
11486
ab226c50
SM
11487 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
11488
46dfb8fb
JD
114892009-03-27 Jan Djärv <jan.h.d@swipnet.se>
11490
11491 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
11492 lines and columns so we keep the same pixel height and width.
11493
11494 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
11495 the property _NET_WM_STATE has changed.
46dfb8fb
JD
11496 (x_handle_net_wm_state): New function to update frame parameter
11497 fullscreen.
11498 (x_term_init): Initialize atoms for _NET_WM_STATE.
11499
11500 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
11501
d347e494
SM
115022009-03-27 Kevin Ryde <user42@zip.com.au>
11503
11504 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
11505 Gpm_GetEvent as an error that justifies closing the filedescriptor.
11506 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
11507 (Fgpm_mouse_stop): Pass that new parameter.
11508 * termhooks.h (close_gpm): Adjust prototype.
11509
84db11d6
SM
115102009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11511
c95a5008
SM
11512 * lisp.h (Fx_focus_frame): Declare.
11513
84db11d6
SM
11514 * callint.c (Fcall_interactively): For '^' just delegate the work to
11515 handle-shift-selection.
11516 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
11517
0a1958d6
CY
115182009-03-24 Chong Yidong <cyd@stupidchicken.com>
11519
0bfdff23
CY
11520 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
11521
0a1958d6
CY
11522 * data.c (Qinteractive_form): New variable.
11523 (Finteractive_form): Use it.
11524
11525 * eval.c (Fcommandp): Use Qinteractive_form.
11526
58aec0d6
JR
115272009-03-24 Jason Rumney <jasonr@gnu.org>
11528
11529 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
11530 Calculate total size precisely. Decode environment variables
11531 before substituting. (Bug#38)
11532
553dd618
KH
115332009-03-24 Kenichi Handa <handa@m17n.org>
11534
11535 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 11536 encoding (Bug#2722).
553dd618 11537
c39ea606
JD
115382009-03-23 Jan Djärv <jan.h.d@swipnet.se>
11539
11540 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
11541 that gdpy is set.
11542
bc9b2b5e
AM
115432009-03-22 Alan Mackenzie <acm@muc.de>
11544
11545 * callint.c (Finteractive): Clarify the doc string - even
11546 promptless elements need \n separators.
11547
9f995a76
JR
115482009-03-22 Jason Rumney <jasonr@gnu.org>
11549
11550 * w32term.c (syms_of_w32term): Doc fix for
11551 x-use-underline-position-properties.
11552
22749e9a
EZ
115532009-03-21 Eli Zaretskii <eliz@gnu.org>
11554
11555 * w32.c (getpwuid): Change argument type to unsigned.
11556 (struct w32_id): Change type of `rid' member to unsigned.
11557 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
11558 argument ID to unsigned. All callers changed.
11559 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
11560
e00553bf
EZ
115612009-03-20 Eli Zaretskii <eliz@gnu.org>
11562
11563 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
11564 negative, produce a float value.
11565
11566 * dired.c (make_uid, make_gid): New functions.
11567 (Ffile_attributes): Use them to avoid negative UID and GID.
11568
f761d6b6
JB
115692009-03-20 Juanma Barranquero <lekktu@gmail.com>
11570
11571 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
11572 (syms_of_keyboard) <command-hook-internal, input-method-function>:
11573 Fix typos in docstrings.
11574
d507f8d7
KH
115752009-03-19 Kenichi Handa <handa@m17n.org>
11576
11577 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
11578 changed, use font_load_for_lface to get a new font object.
11579 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
11580
11581 * frame.c (x_set_font): Handle the case that ARG is a cons.
11582
c68845e0
GM
115832009-03-19 Glenn Morris <rgm@gnu.org>
11584
11585 * fileio.c (Fsubstitute_in_file_name): Doc fix.
11586
bfa49dd1
CY
115872009-03-19 Chong Yidong <cyd@stupidchicken.com>
11588
11589 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
11590
8458d4c1
KH
115912009-03-19 Kenichi Handa <handa@m17n.org>
11592
11593 * charset.c (load_charset_map_from_file): When a mapfile can't be
11594 loaded, signal an error.
11595
78e7d1fe
EZ
115962009-03-18 Eli Zaretskii <eliz@gnu.org>
11597
11598 * dired.c (Ffile_attributes): Make sure UID and GID are always
11599 positive, even if the value is too large for a positive EMACS_INT.
11600 Doc fix.
11601
11602 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
11603
5da9fdfa
YM
116042009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11605
11606 * xmenu.c (xdialog_show): Move Fredisplay call ...
11607 (Fx_popup_dialog): ... here.
11608
7519c40d
SM
116092009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
11610
11611 * dired.c (file_name_completion): Disable the first optimization just
11612 installed, since it is not implemented correctly.
11613
2cd298e2
SM
116142009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 11617 only if the entry can affect bestmatch.
2cd298e2
SM
11618 Stop the search early, as Ftry_completion already does.
11619
48d37adf
CY
116202009-03-17 Chong Yidong <cyd@stupidchicken.com>
11621
e10c9c93 11622 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 11623
9286b16a
CY
116242009-03-15 Chong Yidong <cyd@stupidchicken.com>
11625
11626 * keyboard.c (parse_menu_item): Don't display remappings as menu
11627 equivalent bindings (Bug#788).
11628
f7b146dc
JR
116292009-03-15 Jason Rumney <jasonr@gnu.org>
11630
11631 * w32term.h (WM_EMACS_PAINT): New message.
11632 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
11633 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
11634 before passing to lisp thread. (Bug#950)
11635
f761d6b6 116362009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 11637
d93f9575
CY
11638 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
11639 variable as it was never reset.
11640 (ns_term_init): Remove initialization of Lisp-settable defaults
11641 and ns_expand_space.
11642 (-setPanelFromDefaultValues): Remove ns_expand_space.
11643 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
11644 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
11645 i.e. no additional spacing, similar to Carbon port.
11646
d93f9575
CY
11647 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
11648 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 11649
305018ec
JD
116502009-03-14 Jan Djärv <jan.h.d@swipnet.se>
11651
11652 * sound.c (alsa_configure): Remove call to deprecated
11653 snd_pcm_sw_params_set_xfer_align.
11654
f761d6b6 116552009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
11656
11657 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
11658 after clicking in a detached tool bar.
11659 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
11660
46e722a9
SM
116612009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
11662
348db3dd
SM
11663 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
11664 int/Lisp_Object mixup).
46e722a9 11665
a3d16f39
KH
116662009-03-13 Kenichi Handa <handa@m17n.org>
11667
11668 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 11669 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
11670 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
11671 (set_fontset_font): Change ARG to a vector. Handle range_list in
11672 ARG correctly.
11673 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 11674 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
11675 the above change.
11676 (fontset_from_font): Fix previous change.
fe24f56a 11677 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
11678 entry. If FONTSET is the default fontset, don't set the extra
11679 slot of the returning char-table.
11680
b066e6b6
JB
116812009-03-12 Juanma Barranquero <lekktu@gmail.com>
11682
11683 * nsfns.m (Fx_close_connection): Doc fix.
11684 (Fns_do_applescript): Reflow docstring.
11685 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
11686 (Fx_display_pixel_width, Fx_display_pixel_height)
11687 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
11688 Fix typos in docstrings.
11689 (Fns_set_alpha): Fix typos in error messages.
11690
d472514e 116912009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 11692
d472514e 11693 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
11694 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
11695 were used for such events.
11696
d472514e
JB
11697 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
11698 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 11699
d472514e 11700 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
11701 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
11702
fb930676
KH
117032009-03-11 Kenichi Handa <handa@m17n.org>
11704
ff85581a
KH
11705 * font.h (font_open_by_spec): Extern it.
11706
c50b7e98
KH
11707 * font.c (font_open_by_spec): New function.
11708 (font_open_by_name): Use font_open_by_spec.
11709
fb930676
KH
11710 * frame.c (x_set_font): When ARG is a font-object, don't alter the
11711 fontset of the frame.
11712
11713 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
11714 modify the default font of frames that use this fontset.
11715 (num_auto_fontsets): New variable.
11716 (fontset_from_font): Use num_auto_fontsets to decide a fontset
11717 name. Be sure to set FONTSET_ASCII to the correct font name.
11718 (update_auto_fontset_alist): New function.
11719
df4e8455
JB
117202009-03-11 Juanma Barranquero <lekktu@gmail.com>
11721
11722 * makefile.w32-in: Update dependencies.
11723
0a375797
AR
117242009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11725
11726 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
11727
61313fa3
SM
117282009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11729
11730 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
11731
b55103fb
CY
117322009-03-10 Chong Yidong <cyd@stupidchicken.com>
11733
11734 * lread.c (Feval_buffer): Doc fix.
11735
dde2559c
KH
117362009-03-09 Kenichi Handa <handa@m17n.org>
11737
11738 * charset.c (Qfile_name_handler_alist): Extern it.
11739 (load_charset_map_from_file): Temporarily bind
11740 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
11741
df4e8455 117422009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 11743
47f588bb
GM
11744 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
11745 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 11746
4ddf94bd
AR
117472009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11748
4c9bdfc2
AR
11749 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
11750 (x_set_window_size): Change back to calculated method of setting
11751 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
11752 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
11753 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
11754
fe41ae9e
AR
11755 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
11756
4c9bdfc2
AR
11757 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
11758 accelerator in parens under GNUstep.
11759
825d0875
KH
117602009-03-06 Kenichi Handa <handa@m17n.org>
11761
11762 These changes are to detect incorrect composition sequence without
f3b3be74 11763 looking ahead the source. (Bug#2370)
825d0875
KH
11764
11765 * coding.h: Include "composite.h".
11766 (enum compisition_state): New enum.
11767 (struct compisition_status): New struct.
11768 (struct iso_2022_spec): New member cmp_status.
11769 (struct emacs_mule_spec): New struct.
11770 (struct coding_system): New members ctext_extended_segment_len and
11771 embedded_utf_8. Change the union member
11772 spec.emacs_mule_full_support to spec.emacs_mule.
11773
11774 * coding.c (CODING_ISO_CMP_STATUS): New macro.
11775 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 11776 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
11777 (ADD_COMPOSITION_DATA): New arg nbytes.
11778 (emacs_mule_char): New arg cmp_status.
11779 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
11780 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
11781 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
11782 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
11783 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
11784 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
11785 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
11786 (EMACS_MULE_COMPOSITION_END): New macro.
11787 (emacs_mule_finish_composition): New function.
11788 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
11789 (decode_coding_emacs_mule): Avoid long looking ahead while
11790 handling composition.
11791 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
11792 (ENCODE_COMPOSITION_RULE): New macro.
11793 (finish_composition): New function.
11794 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
11795 (DECODE_COMPOSITION_START): New implementation.
11796 (DECODE_COMPOSITION_END): Likewise.
11797 (STORE_COMPOSITION_RULE): New macro.
11798 (decode_coding_iso_2022): Avoid long looking ahead while handling
11799 composition, CTEXT extended segment, and embedded UTF-8.
11800 (setup_coding_system): For a coding of type iso-2022, reset
11801 CODING_ISO_EXTSEGMENT_LEN (coding) and
11802 CODING_ISO_EMBEDDED_UTF_8 (coding).
11803 (get_translation): Delete arguments last_block, from_nchars,
11804 to_nchars. Callers changed.
11805 (produce_chars): Don't modify charbuf. Adjusted for the change of
11806 get_translation.
98a326f7 11807 (produce_composition): Adjust for the new annotation sequence.
825d0875 11808 (handle_composition_annotation): Likewise.
98a326f7 11809 (consume_chars): Adjust for the change of get_translation.
825d0875 11810
ccbc4452
AR
118112009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
11812
4ddf94bd 11813 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 11814
988a7ddb
KH
118152009-03-05 Kenichi Handa <handa@m17n.org>
11816
11817 * font.c (font_select_entity): New function.
11818 (font_find_for_lface): Use font_select_entity to select a font.
11819
11820 * fontset.c (fontset_find_font): If a font found without
a8a3728b 11821 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
11822 font with C restriction.
11823
98a326f7 118242009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 11825
be1bce46 11826 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 11827
10ea2b82
JR
118282009-03-04 Jason Rumney <jasonr@gnu.org>
11829
2c93b248 11830 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 11831 characters that have already been read. (Bug#2569)
2c93b248 11832
10ea2b82
JR
11833 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
11834 Log an error message if check_image_size failed.
11835 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 11836 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 11837
71a0c011
EZ
118382009-03-02 Eli Zaretskii <eliz@gnu.org>
11839
11840 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
11841 when decoding process output.
11842
2f63bba8
RS
118432009-03-01 Richard M Stallman <rms@gnu.org>
11844
11845 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
11846
11847 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
11848
0a9564cb
EZ
118492009-02-28 Eli Zaretskii <eliz@gnu.org>
11850
11851 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
11852 (decode_coding_emacs_mule, decode_coding_iso_2022)
11853 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11854 (decode_coding_raw_text, decode_coding_charset)
11855 (setup_coding_system, decode_eol, decode_coding, consume_chars):
11856 Honor inhibit-eol-conversion. (Bug #2186)
11857
449148b3
JR
118582009-02-28 Jason Rumney <jasonr@gnu.org>
11859
11860 * coding.c (detect_coding_charset): If not checking latin extra,
11861 fail on characters between 0x80 and 0xA0. (Bug#2354)
11862
a4aee864
EZ
118632009-02-28 Eli Zaretskii <eliz@gnu.org>
11864
11865 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 11866 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 11867
d88bee5a
GM
118682009-02-27 Glenn Morris <rgm@gnu.org>
11869
11870 * callint.c (Finteractive): Doc fix.
11871
a808f22d
KH
118722009-02-27 Kenichi Handa <handa@m17n.org>
11873
11874 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
11875
caf8d60c
CY
118762009-02-27 Chong Yidong <cyd@stupidchicken.com>
11877
11878 * font.c (font_style_to_value): Set value for unknown symbols to
11879 100 instead of 255.
b61137ea
CY
11880 (weight_table, slant_table, width_table): Treat "unspecified" as
11881 the default value.
caf8d60c 11882
1a0de25c
JB
118832009-02-26 Juanma Barranquero <lekktu@gmail.com>
11884
11885 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
11886
8fc45744
JB
118872009-02-25 Juanma Barranquero <lekktu@gmail.com>
11888
107bd7d1
JB
11889 * lread.c (Fload): Stop checking Vloads_in_progress and signal
11890 error as soon as a recursive load is detected.
8fc45744 11891
f097e223
AR
118922009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11893
11894 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
11895 before caching.
11896
8810a12f
KH
118972009-02-24 Kenichi Handa <handa@m17n.org>
11898
11899 * fontset.c (fontset_find_font): Fix the condition for checking
11900 unavailable font.
11901
2c7d1565
GM
119022009-02-24 Glenn Morris <rgm@gnu.org>
11903
11904 * xfaces.c (Finternal_set_font_selection_order): Remove leading
11905 whitespace that confuses documentation.
11906
a20878b6
MB
119072009-02-23 Miles Bader <miles@gnu.org>
11908
11909 * process.c (Flist_system_processes, Fprocess_attributes)
11910 (syms_of_process): Rename `system-process-attributes' to
11911 `process-attributes'.
11912
b3b58c01
AS
119132009-02-22 Andreas Schwab <schwab@linux-m68k.org>
11914
1b3b981b
AS
11915 * coding.h (struct coding_system): Make safe_charsets a pointer to
11916 unsigned char.
11917 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
11918 being 255.
11919 (SAFE_CHARSET_P): Likewise.
11920 (setup_iso_safe_charsets): Properly setup safe_charsets.
11921 (Fdefine_coding_system_internal): Likewise.
11922 (setup_coding_system): Likewise. Remove unneeded casts.
11923 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
11924 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
11925 Remove unneeded casts.
1b3b981b 11926
b3b58c01
AS
11927 * insdel.c (del_range_2): Don't modify gap contents when called
11928 from decode_coding_object. (Bug#1809)
11929
0b6f228c
CY
119302009-02-21 Chong Yidong <cyd@stupidchicken.com>
11931
11932 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
11933 Qfont_object.
11934 (Ftype_of): Recognize font objects.
11935
11936 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
11937
bba3e508
SM
11938 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
11939 Definitions moved to data.c.
0b6f228c 11940
52f8870b
AR
119412009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11942
11943 * nsterm.m (x_make_frame_invisible): Unset async_visible,
11944 async_iconified. Based on a patch by Christian Lynbech
11945 <christian.lynbech@tieto.com>.
11946 (EmacsView-windowDidMiniaturize:): Unset async_visible.
11947
7087d5e9
GM
119482009-02-20 Glenn Morris <rgm@gnu.org>
11949
11950 * syntax.c (Fskip_chars_forward): Fix doc typo.
11951
41d2ceef
CY
119522009-02-20 Chong Yidong <cyd@stupidchicken.com>
11953
11954 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
11955
1a3b7ca6
CY
119562009-02-19 Chong Yidong <cyd@stupidchicken.com>
11957
11958 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
11959
73cce38d
KH
119602009-02-19 Kenichi Handa <handa@m17n.org>
11961
11962 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 11963 Don't overflow coding->carryover. (Bug#2370)
73cce38d 11964
a51092ee
DN
119652009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
11966
11967 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
11968
c423ecca
KH
119692009-02-18 Kenichi Handa <handa@m17n.org>
11970
11971 * font.c (font_check_otf_features): Fix handling of `nil' element.
11972 (Ffont_spec): Describe :lang and :otf in the docstring.
11973
4c1958f4
AS
119742009-02-16 Andreas Schwab <schwab@suse.de>
11975
11976 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
11977 string.
11978
5704f39a
KH
119792009-02-16 Kenichi Handa <handa@m17n.org>
11980
11981 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 11982 (Bug#1723)
5704f39a 11983
8f0085aa
CY
119842009-02-14 Chong Yidong <cyd@stupidchicken.com>
11985
a057d86a 11986 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
11987
11988 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
11989 (handle_line_prefix): Suppress wrapping of wrap prefixes.
11990
aff01dd9
EZ
119912009-02-14 Eli Zaretskii <eliz@gnu.org>
11992
11993 * msdos.c (MAX_SCREEN_BUF): New macro.
11994 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
11995 Encode the entire run of glyphs sharing the same face, instead of
11996 doing that one glyph at a time (fixes a bug with displaying
11997 double-size characters).
11998
ba301db3
AR
119992009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12000
12001 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12002
12003 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12004 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 12005 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
12006
12007 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 12008 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 12009
51d861de
SM
120102009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12011
ac146f82 12012 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
12013 invisible areas.
12014
7fed8996
JR
120152009-02-12 Jason Rumney <jasonr@gnu.org>
12016
631ea4fb
JR
12017 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12018 (add_font_entity_to_list): Call check_face_name even when family
12019 is unspecified.
12020
cb4a3e42
JR
12021 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12022 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 12023 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 12024
7fed8996 12025 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 12026 raster fonts. (Bug#2219)
7fed8996 12027
895416e3
KH
120282009-02-12 Kenichi Handa <handa@m17n.org>
12029
12030 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12031 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12032 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 12033 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12034 (find_automatic_composition): While looking forward and backward,
12035 check static composition. Fix where to stop looking forward.
12036 (composition_adjust_point): Fix checking of static composition.
12037 (Fcomposition_get_gstring): Pay attention to
1dacf998 12038 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12039
12040 * lisp.h (fast_looking_at): Extern it.
12041
12042 * search.c (fast_looking_at): New function.
12043
51d861de 12044 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
12045 <struct glyph>.u.cmp.to.
12046 (append_composite_glyph): Likewise.
12047
51d861de 12048 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
12049 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
12050 composition.
51d861de 12051 (append_composite_glyph): Adjust for the change of
895416e3
KH
12052 <strcut glyph>.u.cmp.to.
12053
8510724d
JB
120542009-02-11 Juanma Barranquero <lekktu@gmail.com>
12055
12056 * casetab.c (init_casetab_once):
12057 * coding.c (ALLOC_CONVERSION_WORK_AREA):
12058 * font.c (font_update_lface):
12059 * fontset.c (Fnew_fontset):
12060 * ftfont.c (ftfont_drive_otf):
12061 * xfont.c (xfont_open):
12062 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
12063
294fa707
SM
120642009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12065
12066 * fileio.c (Fwrite_region): !NILP -> CONSP.
12067
b5bfebec
AS
120682009-02-10 Andreas Schwab <schwab@suse.de>
12069
12070 * process.c (send_process): Properly relocate pointer into data
adab88bd 12071 when using encoded data. (Bug#2272)
b5bfebec 12072
cb84a2be
KH
120732009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
12074
12075 * coding.c (detect_coding_charset): Fix previous change.
12076
89e09428
JR
120772009-02-08 Jason Rumney <jasonr@gnu.org>
12078
12079 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 12080 disappeared while hourglass was displayed. (Bug #2193)
89e09428 12081
4470a277
AS
120822009-02-07 Andreas Schwab <schwab@suse.de>
12083
12084 * unexelf.c (unexec): Fix error message.
12085
3175b12a
AR
120862009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
12087
12088 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 12089 when modal window is active. (Bug #2152)
3175b12a
AR
12090 (applicationShouldTerminate:): Remove now-unneeded while loop
12091 around NSRunAlertPanel.
12092
12093 * nsmenu.m (popupSession): New file-global variable.
12094 (pop_down_menu): End the popupSession before closing dialog.
12095 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
12096 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
12097 don't query NSApp for events (just sleep instead).
12098
8434d0b8
EZ
120992009-02-07 Eli Zaretskii <eliz@gnu.org>
12100
51d861de
SM
12101 * coding.c (syms_of_coding) <translation-table-for-input>:
12102 Modify doc string to discourage use for character code unification.
8434d0b8 12103
aa82edfd
CY
121042009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12105
12106 * atimer.c (run_timers): Update pending_atimers.
12107
2d283c7c
CY
121082009-02-06 Chong Yidong <cyd@stupidchicken.com>
12109
eb306cab
CY
12110 * image.c (svg_load_image): Fix last change.
12111
2d283c7c
CY
12112 * xfns.c (Fx_create_frame): Signal an error if no font is
12113 found (Bug#2147).
12114
4d8e170e
JB
121152009-02-05 Juanma Barranquero <lekktu@gmail.com>
12116
12117 * character.c (syms_of_character) <script-representative-chars>:
12118 Fix typo in docstring.
12119
c96169a0
AR
121202009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12121
12122 * nsmenu.m (pop_down_menu): New function.
12123 (ns_popup_dialog): Call it on unwind.
12124 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
12125 call timer_check() (Bug#2154).
12126 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
12127 handling_signal is set.
12128 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
12129
31fd7c5c 12130 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
12131
12132 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
12133
12134 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
12135
51d861de
SM
12136 * keyboard.c (poll_for_input_1, handle_async_input):
12137 Set handling_signal under HAVE_NS.
c96169a0 12138
aacd8ba1
GM
121392009-02-04 Glenn Morris <rgm@gnu.org>
12140
12141 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
12142
4cb75c4b
KH
121432009-02-04 Kenichi Handa <handa@m17n.org>
12144
12145 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
12146
12147 * charset.c (Fchar_charset): New optional arg restriction.
12148
12149 * coding.h (coding_system_charset_list): Extern it.
12150
12151 * coding.c (coding_system_charset_list): New function.
12152
12153 * composite.c: Include coding.h and termhooks.h.
12154 (composition_gstring_p): Fix for the terminal case.
12155 (composition_gstring_width): Likewise.
12156 (fill_gstring_body): Likewise.
12157 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
12158 the frame.
12159 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
12160 is within a composition.
867d4bb3 12161 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
12162
12163 * term.c (encode_terminal_code): Fix handling of composition.
12164 (produce_composite_glyph): For static composition, get pixel_width
12165 from struct composition.
12166
826ba17e
AS
121672009-02-02 Andreas Schwab <schwab@suse.de>
12168
12169 * unexelf.c (unexec): Handle unaligned bss offset.
12170
8ad093db
AR
121712009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12172
12173 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
12174 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 12175
8ad093db
AR
12176 * keyboard.c (handle_interrupt): Don't call
12177 quit_throw_to_read_char() under NS.
d0a76a6e 12178
8ad093db
AR
12179 * blockinput.h: Remove NS-specific code.
12180
4d18a7a2
DN
121812009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
12182
db878925
DN
12183 * dispnew.c (window_change_signal): Don't try to get the size of a
12184 suspended tty frame.
12185 * term.c (Fresume_tty): Resize if the size has changed while the
12186 tty was suspended.
12187
4d18a7a2
DN
12188 * alloc.c (mark_stack): Properly conditionalize previous change.
12189
8984df7c
JB
121902009-01-30 Juanma Barranquero <lekktu@gmail.com>
12191
12192 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
12193 * w32term.c (w32_read_socket) [SYNC_INPUT]:
12194 Remove; this code is not used on Windows.
12195
75f4f1ac
EZ
121962009-01-30 Eli Zaretskii <eliz@gnu.org>
12197
12198 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
12199 EOLs that also has stray ^M characters.
12200
07a1e794
JB
122012009-01-30 Juanma Barranquero <lekktu@gmail.com>
12202
12203 * atimer.c (run_timers, alarm_signal_handler):
12204 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
12205 * w32inevt.c (w32_console_read_socket):
12206 * w32term.c (w32_read_socket):
12207 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
12208
a8b11cc9
CY
122092009-01-30 Chong Yidong <cyd@stupidchicken.com>
12210
12211 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
12212 Initialize it as a relative filename pattern.
12213 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
12214 (Fcall_process_region): Simplify temp file creation using
12215 temporary-file-directory.
12216
c279587b
EZ
122172009-01-29 Eli Zaretskii <eliz@gnu.org>
12218
12219 * msdos.c: Rename pending_signals to msdos_pending_signals.
12220 (sig_suspender, sigprocmask): Adjust.
12221
a8fe3242
CY
122222009-01-29 Chong Yidong <cyd@stupidchicken.com>
12223
12224 * keyboard.c (pending_signals): New var.
12225 (poll_for_input, input_available_signal, init_keyboard): Set it.
12226 (process_pending_signals): New function.
12227
12228 * lisp.h (QUIT): Check pending_signals instead of
12229 interrupt_input_pending. Use process_pending_signals.
12230
51d861de 12231 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 12232
51d861de 12233 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
12234
12235 * sysdep.c (emacs_write): Use process_pending_signals.
12236
12237 * xterm.c (XTread_socket): Update pending_signals.
12238
12239 * w32term.c (w32_read_socket): Update pending_signals.
12240
12241 * w32inevt.c (w32_console_read_socket): Update pending_signals.
12242
6570a1c4
KH
122432009-01-29 Kenichi Handa <handa@m17n.org>
12244
12245 * xftfont.c (xftfont_has_char): New function.
12246 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
12247
d72a4afa
AR
122482009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12249
12250 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
12251 under GNUstep.
12252 (ns_query_color): New declaration.
12253
12254 * nsterm.m (ns_confirm_quit): New variable.
12255 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
12256 (EmacsApp-applicationShouldTerminate:): Use it.
12257 (EmacsPrefsController): Let user set it.
12258 (ns_query_color): New function.
12259 (ns_defined_color): Use it.
12260 (ns_initialize): Drop.
12261 (ns_term_init): Add two lines from ns_initialize(), and set
12262 input_interrupt_mode to nil.
12263
12264 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 12265 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 12266
9fe78804
KH
122672009-01-28 Kenichi Handa <handa@m17n.org>
12268
12269 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
12270 (fontset_get_font_group): Remember that no font-group is specified
12271 for C.
9fe78804 12272
fa57de36
CY
122732009-01-27 Chong Yidong <cyd@stupidchicken.com>
12274
930600e9
CY
12275 * fns.c (concat): Check for string overflow (bug#1787).
12276
fa57de36
CY
12277 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
12278 Quadruple undo limits (bug#1501).
12279
7179ce7b
KH
122802009-01-27 Kenichi Handa <handa@m17n.org>
12281
12282 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
12283 directly use GT_Get_Char_index.
12284
12285 * xftfont.c (struct xftfont_info): New member `index'.
12286
12287 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 12288 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 12289
5be8fcc0
CY
122902009-01-26 Kenichi Handa <handa@m17n.org>
12291
12292 * fontset.c (fontset_find_font): Fix handling of non-cons return
12293 value of fontset_get_font_group.
12294 (fontset_font): Revert last change.
12295
19ae3e61
JR
122962009-01-26 Jason Rumney <jasonr@gnu.org>
12297
12298 * w32font.c (w32font_list_internal): Return quickly if registry is
12299 unknown. Simplify final return.
12300 (add_font_entity_to_list): Break complex logic down into more
12301 manageable chunks. Move unknown registry check to
12302 w32font_list_internal.
12303
8612b71a
AR
123042009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
12305
12306 Changes to remove Feval calls from GUI under NS.
12307
d8038940
JB
12308 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
12309 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
12310 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
12311
12312 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
12313 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
12314 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
12315 instead of NON_ASCII_KEYSTROKE_EVENT.
12316 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
12317 (EmacsApp-applicationShouldTerminate:): Query user.
12318 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
12319 instead of Feval.
12320
12321 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
12322
12323 * keyboard.c (kbd_buffer_get_event): Check for it.
12324 (keys_of_keyboard): Define lispy keys for
12325 ns-put/unput-working-text.
12326
12327 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
12328 versions.
12329 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
12330
6288ae55
CY
123312009-01-25 Chong Yidong <cyd@stupidchicken.com>
12332
12333 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 12334 setting current_buffer directly. (Bug#2044)
6288ae55 12335
289e7f8f
CY
123362009-01-24 Chong Yidong <cyd@stupidchicken.com>
12337
5ce87308 12338 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 12339 any work. (Bug#1952, bug#1990).
5ce87308 12340
64cc3cf6 12341 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 12342
b3243e6f
AR
123432009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12344
12345 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
12346 (ns_no_defaults): New declaration.
12347 (main): Use it.
e0d2e69a 12348
d900b2af 12349 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 12350
d900b2af 12351 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 12352
d900b2af
AR
12353 * nsterm.m (ns_no_defaults): New variable.
12354 (ns_initialize): Don't read defaults when ns_no_defaults.
12355 (EmacsView-readSelectionFromPasteboard:)
12356 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 12357 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
12358 (ns_dumpglyphs_stretch): New function.
12359 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 12360 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 12361
e0d2e69a
AR
12362 * nsimage.m (setPixmapData:): Set to ignore image DPI.
12363
3ac71f5d
CY
123642009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
12365
12366 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
12367 call for Sparc64.
12368
3fe53a83
AR
123692009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12370
12371 * nsfns.m:
12372 * nsgui.h:
12373 * nsmenu.m:
12374 * nsselect.m:
12375 * nsterm.h:
12376 * nsterm.m: Remove '23' comments that indicated code added during
12377 update from emacs-20 -> emacs-23.
12378
10f87c6f 123792009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
12380
12381 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 12382 ns_alternate_modifier. (Bug#1217)
a3b53a85 12383
c7cef62d
AR
12384 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
12385 Display all shortcuts, including those w/o super modifier.
12386
575fb8bd
AR
12387 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
12388
918b848b
CY
123892009-01-22 Chong Yidong <cyd@stupidchicken.com>
12390
12391 * fileio.c (Vwrite_region_post_annotation_function)
12392 (Vwrite_region_annotation_buffers): New vars.
12393 (build_annotations_unwind): Just reset
12394 Vwrite_region_annotation_buffers.
12395 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
12396 Call write-region-post-annotation-function.
12397 (build_annotations): Add to Vwrite_region_annotation_buffers if
12398 buffer changes.
12399
a39e2539
AR
124002009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12401
12402 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
12403 Tiger.
51d861de
SM
12404 * nsfns.m (ns_do_applescript):
12405 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 12406
35ed44db
AR
124072009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12408
12409 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
12410
cbe0b5bf
AR
124112009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12412
12413 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 12414
6049d3a0
AR
12415 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
12416
12417 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
12418 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
12419 handle Ctrl-tab. (Bug#1841)
12420 (ns_get_color): Use unsigned long long for scanned hex string value.
12421 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 12422 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 12423 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 12424 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 12425 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 12426 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 12427 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 12428
d3810c21 12429 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 12430 DPI. (Bug#1316)
d3810c21
AR
12431 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
12432 values in onTiger section.
4c7077c3 12433
e301e634
CY
124342009-01-19 Chong Yidong <cyd@stupidchicken.com>
12435
7f82490b
CY
12436 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
12437 Check return value of font_spec_from_name.
64cc3cf6 12438 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
12439
12440 * font.c (font_spec_from_name): Return Qnil if font name could not
12441 be parsed.
12442 (font_parse_name): Treat a `?' character as part of an XLFD.
12443
e301e634
CY
12444 * fns.c (Fsubstring): Doc fix.
12445
1c0db158
KH
124462009-01-19 Kenichi Handa <handa@m17n.org>
12447
51d861de 12448 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
12449 (ftfont_list): Likewise.
12450
acf20901
JB
124512009-01-18 Juanma Barranquero <lekktu@gmail.com>
12452
fff4e459
JB
12453 * dbusbind.c (Fdbus_register_signal):
12454 * process.c (conv_sockaddr_to_lisp):
12455 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
12456
acf20901
JB
12457 * callproc.c (Fgetenv_internal): Doc fix.
12458
e7abcdfb
CY
124592009-01-16 Chong Yidong <cyd@stupidchicken.com>
12460
12461 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
12462 it is not even used.
12463
b60861e6
GM
124642009-01-16 Glenn Morris <rgm@gnu.org>
12465
12466 * font.c (Ffont_variation_glyphs): Silence compiler.
12467
8db52afe
JB
124682009-01-15 Juanma Barranquero <lekktu@gmail.com>
12469
12470 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
12471 Reported by David Robinow <drobinow@gmail.com>.
12472
4cddb209
KH
124732009-01-15 Kenichi Handa <handa@m17n.org>
12474
51d861de 12475 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 12476
f247f67b
JR
124772009-01-14 Jason Rumney <jasonr@gnu.org>
12478
12479 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 12480 never a fontset. (Bug#1562)
f247f67b 12481
f56a4450
KH
124822009-01-14 Kenichi Handa <handa@m17n.org>
12483
12484 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 12485 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 12486
4e99855e
CY
124872009-01-13 Chong Yidong <cyd@stupidchicken.com>
12488
12489 * font.c (font_clear_prop): If clearing the family, clear the font
12490 width index too.
12491
fff4e459 12492 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 12493
24f01470
JB
124942009-01-12 Juanma Barranquero <lekktu@gmail.com>
12495
12496 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
12497 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
12498 functions, use sizeof.
12499
a41240a3
MR
125002009-01-12 Martin Rudalics <rudalics@gmx.at>
12501
12502 * keyboard.c (read_char): Fix case where last_nonmenu_event
12503 returned a bad value with submenus. (Bug#447)
12504
944636b8
CY
125052009-01-12 Chong Yidong <cyd@stupidchicken.com>
12506
12507 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
12508 family, clear the font width index too.
12509
0dad7c6f
JR
125102009-01-11 Jason Rumney <jasonr@gnu.org>
12511
12512 * keyboard.c (cmd_error_internal): Exit when errors occur before
12513 frame creation and not in daemon mode. (Bug#1836)
12514
7c2363af
CY
125152009-01-10 Chong Yidong <cyd@stupidchicken.com>
12516
12517 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
12518 of a display vector, backtrack.
12519 (try_window_reusing_current_matrix): Check glyph type before
12520 referencing charpos member.
12521
97b1b294
EZ
125222009-01-10 Eli Zaretskii <eliz@gnu.org>
12523
12524 Fix Bug #876:
12525
12526 * coding.c (inhibit_null_byte_detection): New variable.
12527 (detect_coding, detect_coding_system): Don't pay attention to null
12528 bytes if inhibit_null_byte_detection is non-zero.
51d861de 12529 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
12530 <inhibit-iso-escape-detection>: Doc fix.
12531
4624b6e3
JR
125322009-01-09 Jason Rumney <jasonr@gnu.org>
12533
12534 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 12535 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
12536 Only report Unicode Plane 2 fonts as unicode-sip.
12537
323b840c
CY
125382009-01-09 Chong Yidong <cyd@stupidchicken.com>
12539
51d861de
SM
12540 * xfaces.c (Fx_font_family_list): Delete function.
12541 Move compatibility version to faces.el.
323b840c 12542
51d861de 12543 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 12544
eba7400d
MR
125452009-01-09 Martin Rudalics <rudalics@gmx.at>
12546
12547 * frame.c (x_set_frame_parameters): Remember requested value for
12548 fullscreen before it's reset by the parameter handler.
12549
4b09796d
GM
125502009-01-09 Glenn Morris <rgm@gnu.org>
12551
12552 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 12553 (last_command_event): ... and update all users.
4b09796d
GM
12554 (last_input_char): For clarity, rename to...
12555 (last_input_event): ... and update all users.
12556 (last-command-char, last-input-char): Move to subr.el as aliases.
12557 * cmds.c, commands.h: Update for last_command_char rename.
12558
14ccea62
CY
125592009-01-08 Chong Yidong <cyd@stupidchicken.com>
12560
51d861de 12561 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 12562
5f004711
JR
125632009-01-08 Jason Rumney <jasonr@gnu.org>
12564
12565 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
12566 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
12567 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
12568 Don't declare.
fff4e459 12569 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
12570 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
12571
b71f6f73
KH
125722009-01-07 Kenichi Handa <handa@m17n.org>
12573
50b06221 12574 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 12575 remember the coding system used for decoding in
50b06221
KH
12576 coding_system (Bug#1039).
12577
b71f6f73 12578 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 12579 breaking the loop. (Bug#870)
b71f6f73
KH
12580 (decode_coding_utf_16, decode_coding_emacs_mule)
12581 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12582 (decode_coding_charset): Likewise.
12583
56f668f7
MR
125842009-01-05 Martin Rudalics <rudalics@gmx.at>
12585
12586 * frame.c (x_set_frame_parameters): Make sure height (width) get
12587 applied when fullwidth (fullheight) is set. (Bug#1522)
12588
5da9424d
JB
125892009-01-04 Juanma Barranquero <lekktu@gmail.com>
12590
12591 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
12592 (utc_base): Declare as ULONGLONG, not long double.
12593 (convert_time_raw): Delete.
12594 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
12595 (initialize_utc_base): New function.
12596 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
12597 (convert_from_time_t): Use initialize_utc_base; compute result with
12598 64-bit arithmetic.
12599 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
12600
c4605e09
EZ
126012009-01-03 Eli Zaretskii <eliz@gnu.org>
12602
9acef61c 12603 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
12604 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
12605 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
12606 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
12607 [!subprocesses]: Define.
12608 (syms_of_process) [!subprocesses]: Intern and staticpro them.
12609 (Flist_system_processes, Fsystem_process_attributes)
12610 [!subprocesses]: Call list_system_processes and
12611 system_process_attributes instead of returning Qnil.
12612
9acef61c
JB
12613 * dosfns.c (system_process_attributes, list_system_processes):
12614 New functions.
c4605e09
EZ
12615
12616 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
12617
12618 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
12619 Don't use the default (no-op) implementation.
12620
8b7d0a16
JR
126212009-01-03 Jason Rumney <jasonr@gnu.org>
12622
a6d46bc1
JR
12623 * keyboard.c (parse_modifiers_uncached): Wheel events are
12624 clicks (bug#687).
12625
8b7d0a16
JR
12626 * w32term.c (x_query_colors, x_query_color): New functions.
12627
12628 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
12629 (svg_load_image): Cast returned pointers from dynamically loaded
12630 functions. Eliminate W32 specific code.
12631
bfe11752
DN
126322009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
12633
89e2438a
DN
12634 * nsfns.m (x_set_foreground_color, x_set_background_color)
12635 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
12636 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
12637 x_ prefix instead of ns_. Update references.
12638 (syms_of_nsfns): Add a FIXME comment.
12639
12640 * nsterm.m (x_set_cursor_type): New prototype.
12641 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
12642
bfe11752
DN
12643 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
12644 for Solaris instead of incorrectly providing Qutime and Qcutime.
12645
031da700
EZ
126462009-01-02 Eli Zaretskii <eliz@gnu.org>
12647
12648 * w32.c (process_times): Compute sum of utime and stime.
12649 (system_process_attributes): Add Qtime to the alist.
12650
12651 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
12652 and add them to the alist.
12653
12654 * process.c (top level) <Qtime, Qctime>: New variables.
12655 (syms_of_process): staticpro them.
12656 (Fsystem_process_attributes): Add their documentation to the doc
12657 string.
12658
12659 * process.h: Declare Qtime and Qctime.
12660
df23bf08
JR
126612009-01-02 Jason Rumney <jasonr@gnu.org>
12662
9acef61c 12663 * image.c (Qgobject): New symbol.
df23bf08
JR
12664 (syms_of_image): Initialize it.
12665 (init_svg_functions): Load some functions from gobject library.
12666
5bbdf7aa
DN
126672009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
12668
12669 * frame.c (make_terminal_frame): Remove redundant code and useless
12670 block.
12671
63136da6
AS
126722009-01-01 Andreas Schwab <schwab@suse.de>
12673
12674 * process.c (conv_sockaddr_to_lisp): Add workaround for
12675 getsockname bug on BSD.
12676
9ef69046
CY
126772009-01-01 Chong Yidong <cyd@stupidchicken.com>
12678
d6fafbe0
CY
12679 * xfns.c (x_create_tip_frame): Set border width of the X window.
12680
51d861de 12681 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 12682
f9c34147
JR
126832009-01-01 Jason Rumney <jasonr@gnu.org>
12684
9acef61c 12685 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
12686 Don't block input, as per earlier xterm.c changes.
12687
f5497e45
AR
126882008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
12689
12690 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
12691 (ns_appkit_version_int): New function.
12692 (x-server-version): Use ns_appkit_version_int and follow 21+
12693 convention of returning 3 integers.
12694
c19cab20
KH
126952008-12-30 Kenichi Handa <handa@m17n.org>
12696
12697 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
12698 (CHAR_SURROGATE_PAIR_P): New macro.
12699
12700 * font.h (struct font_driver): New member get_variation_glyphs.
12701
9acef61c 12702 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
12703 (Ffont_variation_glyphs): New function.
12704 (syms_of_font): Defsubr it.
12705
12706 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
12707 ftfont_variation_glyphs.
12708 (setup_otf_gstring): New function.
12709 (ftfont_drive_otf): Use it.
12710 (ftfont_shape_by_flt): Handle variation selector.
12711 (ftfont_variation_glyphs): New function.
12712
28cd591f
MR
127132008-12-30 Martin Rudalics <rudalics@gmx.at>
12714
12715 * frame.c (Vemacs_iconified): Remove.
12716
7f714baf
JR
127172008-12-30 Jason Rumney <jasonr@gnu.org>
12718
12719 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 12720 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 12721
9d2d22ab
CY
127222008-12-30 Chong Yidong <cyd@stupidchicken.com>
12723
12724 * indent.c (Fvertical_motion): Don't advance iterator if we have
12725 reseated to the desired position.
12726
12727 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
12728 checking for pos match.
12729
545312c2
KH
127302008-12-30 Kenichi Handa <handa@m17n.org>
12731
1ede3eb6
KH
12732 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
12733 just get the low 8-bit of the code.
12734
545312c2
KH
12735 * font.c (font_intern_prop): Validate str as multibyte.
12736
bd7bbf29
DN
127372008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
12738
31e0750e
DN
12739 * dispextern.h (struct face): Move lface and hash from the middle
12740 of bitfields.
12741
bd7bbf29
DN
12742 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
12743
b5672e7c
DN
127442008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
12745
12746 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
12747 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
12748 instead of intervals.h.
12749
d704470f
AS
127502008-12-26 Andreas Schwab <schwab@suse.de>
12751
12752 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
12753 cons.
12754
54b33868
MR
127552008-12-26 Martin Rudalics <rudalics@gmx.at>
12756
12757 * textprop.c (Qminibuffer_prompt): New variable.
12758 (syms_of_textprop): Initialize it.
12759 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
12760 in minibuffer-prompt face. (Bug#1662)
12761
40b615d6
JR
127622008-12-25 Jason Rumney <jasonr@gnu.org>
12763
12764 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
12765
baae5c2d
JR
127662008-12-24 Jason Rumney <jasonr@gnu.org>
12767
12768 * ralloc.c (r_alloc_reset_variable): New function.
12769
12770 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 12771 record of what points where. (Bug#716)
baae5c2d 12772
a9051c88
DN
127732008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
12774
12775 * minibuf.c (read_minibuf): Follow the non-interactive case when
12776 running as a daemon, before detaching.
12777
8b146312
AS
127782008-12-22 Andreas Schwab <schwab@suse.de>
12779
12780 * buffer.c (init_buffer): Use realloc instead of xrealloc.
12781 * gtkutil.c (free_widget_value): Use xfree instead of free.
12782
56f2de10
MR
127832008-12-22 Martin Rudalics <rudalics@gmx.at>
12784
12785 * frame.c (delete_frame): New function derived from
12786 Fdelete_frame to handle Qnoelisp value for FORCE argument.
12787 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
12788 (Fdelete_frame): Call delete_frame. Remove line from doc-string
12789 saying that FORCE non-nil doesn't run `delete-frame-functions'.
12790 * frame.h: Extern delete_frame.
12791 * window.c (window_loop):
12792 * terminal.c (delete_terminal):
12793 * xterm.c (x_connection_closed):
12794 * xfns.c (Fx_hide_tip):
9acef61c 12795 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 12796
1fc200d6
JR
127972008-12-21 Jason Rumney <jasonr@gnu.org>
12798
12799 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
12800 when character maps to .notdef character.
12801
5e252df2
SM
128022008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
12803
12804 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
12805
99b72cc4
JR
128062008-12-20 Jason Rumney <jasonr@gnu.org>
12807
12808 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 12809 a graphical frame on Windows. (Bug#1325)
99b72cc4 12810
acc49a52
JD
128112008-12-20 Jan Djärv <jan.h.d@swipnet.se>
12812
12813 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
12814
6ea15123
CY
128152008-12-20 Chong Yidong <cyd@stupidchicken.com>
12816
12817 * minibuf.c (Fread_buffer): Doc fix.
12818
b2dab6c8
JR
128192008-12-20 Jason Rumney <jasonr@gnu.org>
12820
54ea0c87 12821 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 12822 server name in UNC paths. (Bug#719)
54ea0c87 12823
b2dab6c8 12824 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 12825 charbuf. (Bug#1035)
b2dab6c8 12826
6d1921be
DN
128272008-12-19 Daniel Engeler <engeler@gmail.com>
12828
12829 * sysdep.c (serial_configure): Fix typo.
12830
53934c98
DN
128312008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12832
12833 * sysdep.c: Include alloca.h.
f4f634e8
DN
12834 (system_process_attributes): Add implementation for Solaris.
12835
12836 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 12837
06e111a6
DN
128382008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12839
12840 Reorganize implementation of Flist_system_processes and
12841 Fsystem_process_attributes. No functional changes.
12842 * process.c: Don't #include pwd.h, grp.h and limits.h.
12843 (Flist_system_processes): Just call list_system_processes.
12844 (Fsystem_process_attributes): Just call system_process_attributes.
12845 (procfs_list_system_processes, time_from_jiffies)
12846 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
12847 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
12848
12849 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
12850 (list_system_processes): Rename from
12851 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
12852 Provide a do nothing implementation.
12853 (system_process_attributes): Rename from
12854 procfs_list_system_processes.
12855 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 12856 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
12857
12858 * w32.c (list_system_processes): Rename from
12859 w32_list_system_processes.
12860 (system_process_attributes): Rename from
12861 w32_system_process_attributes.
12862
12863 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
12864
12865 * process.h (w32_list_system_processes)
12866 (w32_system_process_attributes): Remove.
362654a6
JB
12867 (list_system_processes, system_process_attributes):
12868 New prototypes.
06e111a6 12869
6a705b23
KH
128702008-12-19 Kenichi Handa <handa@m17n.org>
12871
12872 * xfont.c (xfont_decode_coding_xlfd): New function.
12873 (xfont_encode_coding_xlfd): New function.
12874 (xfont_list_pattern): Decode XLFD by iso-8859-1.
12875 (xfont_list): Decode and encode XLFD by iso-8859-1.
12876 (xfont_match): Likewise.
12877 (xfont_list_family): Likewise.
12878 (xfont_open): Likewise.
12879
d66c0241 12880 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
12881 names are utf-8.
12882
d66c0241 12883 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
12884 names are utf-8.
12885
5a130941
JD
128862008-12-18 Jan Djärv <jan.h.d@swipnet.se>
12887
12888 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
12889 changed.
bfd20325
JD
12890 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
12891 clicked on a detached tool bar button.
5a130941 12892
fd95644b
DN
128932008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
12894
12895 * emacs.c (main): Print and error and exit when no data is read
12896 from the pipe.
12897
e6eee6ae
JR
128982008-12-17 Jason Rumney <jasonr@gnu.org>
12899
12900 * w32font.c (w32font_has_char): Always return -1.
12901
a35dd56b
KH
129022008-12-16 Kenichi Handa <handa@m17n.org>
12903
12904 * font.c (font_open_entity): Fix previous change.
12905
0e3635c2
DN
129062008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
12907
12908 * process.c: Include <limits.h>.
12909
d4835507 129102008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
12911
12912 * font.c (font_update_drivers): Fix mistake in reconstructing the
12913 driver list.
12914
129152008-12-16 Chong Yidong <cyd@stupidchicken.com>
12916
12917 * font.c (font_clear_cache): Fix format of font cache data.
12918
e2cbc401
CY
129192008-12-15 Chong Yidong <cyd@stupidchicken.com>
12920
12921 * xftfont.c (xftfont_open): Free Xft font pattern if
12922 XftFontOpenPattern fails.
12923
12924 * xterm.c (x_free_frame_resources): Remove extraneous call to
12925 free_frame_faces.
12926
b131d535
CY
129272008-12-13 Chong Yidong <cyd@stupidchicken.com>
12928
12929 * xterm.c (x_delete_display): Move xim_close_dpy call to
12930 x_delete_terminal.
12931 (x_delete_terminal): Call xim_close_dpy.
12932
e6df5336
JR
129332008-12-13 Jason Rumney <jasonr@gnu.org>
12934
12935 * w32font.c (intern_font_name): New function.
12936 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
12937 (w32font_open_internal, Fx_select_font): Decode font name.
12938 (fill_in_logfont, list_all_matching_fonts): Encode font name.
12939
12940 * w32font.h (intern_font_name): Declare new function.
12941
12942 * w32uniscribe.c (add_opentype_font_name_to_list):
12943 Use intern_font_name.
12944
20d68145
CY
129452008-12-13 Chong Yidong <cyd@stupidchicken.com>
12946
9f2554de
CY
12947 * frame.c (Fdelete_frame): Call free_font_driver_list.
12948
3d9bec9a
CY
12949 * font.c (free_font_driver_list): Implement missing function.
12950
20d68145
CY
12951 * w32term.c (w32_term_init): Don't initialize the image cache
12952 here; it will be done in init_frame_faces.
12953
12954 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
12955 (struct x_display_info): Remove unused member null_pixel.
12956 New member xim_callback_data.
20d68145
CY
12957
12958 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
12959 (xim_initialize): Save pointer to callback function data.
12960 (xim_close_dpy): Free callback function data. Call XCloseIM,
12961 reverting 2008-11-04 change by David Smith.
12962 (x_term_init): Don't initialize the image cache here; it will be
12963 done in init_frame_faces. Remove ancient "null_pixel" cruft.
12964 (x_delete_display): Free x_dnd_atoms member.
12965
96f9306b
KH
129662008-12-13 Kenichi Handa <handa@m17n.org>
12967
ef1b0ba7 12968 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 12969 Argument type changed. Handle a font-spec too.
96f9306b 12970 (font_score): Check Vface_font_rescale_alist.
6dec9044 12971 (font_open_entity): Likewise. (Bug#1547)
96f9306b 12972
ef1b0ba7 12973 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 12974
8d5b4964
CY
129752008-12-13 Chong Yidong <cyd@stupidchicken.com>
12976
12977 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
12978
e6df5336
JR
129792008-12-12 Jason Rumney <jasonr@gnu.org>
12980
bba3e508
SM
12981 * w32fns.c (x_display_info_for_name, Fx_open_connection):
12982 Set Vwindow_system_version to the real w32 major version.
e6df5336 12983
97c6058a
DN
129842008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
12985
12986 * term.c (init_tty): Move setting the terminal name before the
12987 potential user: maybe_fatal.
12988
ec4e88d7
CY
129892008-12-11 Chong Yidong <cyd@stupidchicken.com>
12990
ef1b0ba7 12991 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 12992 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 12993
b4233ec9
JR
129942008-12-11 Jason Rumney <jasonr@gnu.org>
12995
8ec71e23 12996 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 12997 SYMBOL_CHARSET. (Bug#547)
8ec71e23 12998
b4233ec9 12999 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 13000 size for surrogates. (Bug#1096, bug#872)
b4233ec9 13001
011a0143
JB
130022008-12-11 Juanma Barranquero <lekktu@gmail.com>
13003
13004 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13005
3c309f34
JB
130062008-12-11 Juanma Barranquero <lekktu@gmail.com>
13007
13008 * process.c (Fsystem_process_attributes, syms_of_process):
13009 Fix typo in name of Ssystem_process_attributes.
13010 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13011
fedc6ab5
JB
130122008-12-11 Juanma Barranquero <lekktu@gmail.com>
13013
13014 * syntax.c (Fmodify_syntax_entry): Doc fix.
13015
ba3de0e8
JB
130162008-12-10 Juanma Barranquero <lekktu@gmail.com>
13017
13018 * font.c (Ffont_spec): Move usage to end of docstring.
13019
174f1c74
JR
130202008-12-10 Jason Rumney <jasonr@gnu.org>
13021
13022 * w32font.c (Qcham): New symbol.
13023 (font_supported_scripts): Add cham, and comments for other new
13024 scripts in bitfield from OpenType spec.
9d32f818
JR
13025 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13026 contain characters beyond the bmp.
174f1c74 13027
7b649478
KH
130282008-12-10 Kenichi Handa <handa@m17n.org>
13029
13030 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 13031 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
13032 Qunicode_sip.
13033
2133e2d1
JB
130342008-12-10 Juanma Barranquero <lekktu@gmail.com>
13035
13036 * coding.c (QCdefault_char): Rename from QCdefalut_char.
13037 (Fcoding_system_put): Use QCdefault_char.
13038 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
13039
9af886ee
CY
130402008-12-09 Chong Yidong <cyd@stupidchicken.com>
13041
74d819eb
CY
13042 * xftfont.c (syms_of_xftfont): Fix typo.
13043
4ccfa1c0 13044 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 13045
7c19d3ae
DN
130462008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
13047
13048 * emacs.c (main): Close daemon_pipe on exec.
13049
567826bb
CY
130502008-12-08 Chong Yidong <cyd@stupidchicken.com>
13051
13052 * termchar.h (struct tty): New members termcap_term_buffer and
13053 termcap_strings_buffer.
13054
13055 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 13056 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
13057 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
13058 All callers changed.
13059 (init_tty): Store termcap data and string buffers in new struct
13060 tty members termcap_term_buffer and termcap_strings_buffer.
13061 (delete_tty): Free them.
4ccfa1c0 13062 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 13063
aa96c42b
SZ
130642008-12-07 Seiji Zenitani <zenitani@mac.com>
13065
13066 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 13067 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 13068
b7e1d896
CY
130692008-12-06 Chong Yidong <cyd@stupidchicken.com>
13070
13071 * coding.c (make_conversion_work_buffer): Disable buffer
13072 modification hooks in the work buffer.
13073
b5ec91a5
EZ
130742008-12-05 Eli Zaretskii <eliz@gnu.org>
13075
13076 * process.c (procfs_system_process_attributes): If `nread' has a
13077 negative value, assign zero to it.
13078
a5d2a52b
CY
130792008-12-05 Chong Yidong <cyd@stupidchicken.com>
13080
68c5540b 13081 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 13082
7bf1bb21
KH
130832008-12-05 Kenichi Handa <handa@m17n.org>
13084
13085 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
13086 second character is a combining character.
13087
2fdc7d00
EZ
130882008-12-05 Eli Zaretskii <eliz@gnu.org>
13089
13090 * process.c (procfs_system_process_attributes): Don't use cmd,
13091 cmdsize, and q without initializing them first.
13092
bf6bfba8
JR
130932008-12-04 Jason Rumney <jasonr@gnu.org>
13094
13095 * w32font.c (w32font_draw): Initialize orig_clip before getting
13096 it, and delete it when finished.
13097
a3b1a468
DN
130982008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
13099
13100 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
13101 case when running as a daemon before detaching.
13102
8b8be8eb
JB
131032008-12-03 Juanma Barranquero <lekktu@gmail.com>
13104
805f2638 13105 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 13106
b1bde622
KH
131072008-12-03 Kenichi Handa <handa@m17n.org>
13108
e500c47d
KH
13109 * font.c (font_at): Set `multibyte' at first.
13110
ca516334
KH
13111 * coding.c (decode_coding_charset): Check type of an element of
13112 vector VALIDS.
7bf1bb21 13113 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 13114
4ccfa1c0 13115 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
13116 (font_for_char): Likewise.
13117
1e5ecd37
CY
131182008-12-03 Chong Yidong <cyd@stupidchicken.com>
13119
d5b01609 13120 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
13121 (font_update_lface): Handle fonts with corrupted size specs,
13122 i.e. non-int and non-float.
d5b01609 13123
11e3a6e4 13124 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 13125 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 13126 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 13127
ab06788b
CY
13128 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
13129
1e5ecd37 13130 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 13131 underline_minimum_offset for underline position.
1e5ecd37 13132
63c125ab
DN
131332008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
13134
13135 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
13136
13137 * character.c (c_string_width): Specify the type for LEN.
13138
3a8406e1
KH
131392008-12-03 Kenichi Handa <handa@m17n.org>
13140
4ccfa1c0 13141 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 13142 (decode_coding_utf_8): Likewise.
4ccfa1c0 13143 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 13144 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 13145
651df7d9
CY
131462008-12-02 Chong Yidong <cyd@stupidchicken.com>
13147
13148 * keyboard.c (make_lispy_position): Only use PT if the selected
13149 window is current.
13150
1f625c6c
AS
131512008-12-02 Andreas Schwab <schwab@suse.de>
13152
f7741ce9
AS
13153 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
13154
1f625c6c
AS
13155 * doprnt.c (doprnt1): Fix size of charbuf.
13156
92bc2678
CY
131572008-12-02 Chong Yidong <cyd@stupidchicken.com>
13158
13159 * keyboard.c (timer_check): Revert last change.
13160
93b9e8cc
JB
131612008-12-02 Juanma Barranquero <lekktu@gmail.com>
13162
13163 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
13164
fd7a37d5
JB
131652008-12-01 Juanma Barranquero <lekktu@gmail.com>
13166
13167 * makefile.w32-in: Update dependencies.
13168 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
13169
c115043b
AS
131702008-12-01 Andreas Schwab <schwab@suse.de>
13171
13172 * font.c (register_font_driver): Use xmalloc.
13173 (font_put_frame_data): Likewise.
13174
f5668d2a
CY
131752008-12-01 Chong Yidong <cyd@stupidchicken.com>
13176
860d96be
CY
13177 * xfaces.c (realize_x_face): Make abort condition clearer.
13178
f5668d2a
CY
13179 * gtkutil.c (update_frame_tool_bar): Initialize variable.
13180
379c17e7
CY
131812008-11-30 Chong Yidong <cyd@stupidchicken.com>
13182
13183 * keyboard.c (timer_check): After a timer runs, ensure that the
13184 selected window's buffer is current.
13185
35f36d65
JB
131862008-11-30 Juanma Barranquero <lekktu@gmail.com>
13187
f952c61c
JB
13188 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
13189 It was accidentally restored by the Unicode merge.
13190
35f36d65
JB
13191 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
13192
b23077df
JB
131932008-11-29 Juanma Barranquero <lekktu@gmail.com>
13194
13195 * w32proc.c: Include "coding.h".
13196 (Fw32_short_file_name): Encode filename passed to Windows API.
13197 (Fw32_long_file_name): Encode filename passed to Windows API and
13198 decode back the result. (Bug#1433)
13199
b8ebe9dd
KH
132002008-11-29 Kenichi Handa <handa@m17n.org>
13201
8cc53f96
KH
13202 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
13203 not before accessing it.
13204
b8ebe9dd
KH
13205 * charset.c (Fdefine_charset_internal): After calculating
13206 min_char, max_char, and fastmap, copy the charset structure again.
13207 (encode_char): Fix the previous change.
13208
59bc82c0
SZ
132092008-11-28 Seiji Zenitani <zenitani@mac.com>
13210
13211 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
13212
13213 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
13214
13215 * nsterm.m (x_set_frame_alpha): New function.
13216
32247e3d
EZ
132172008-11-27 Eli Zaretskii <eliz@gnu.org>
13218
13219 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
13220
b003e5ff
JB
132212008-11-27 Juanma Barranquero <lekktu@gmail.com>
13222
13223 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
13224 pointer to check_face_name.
13225
708550f5
KH
132262008-11-27 Kenichi Handa <handa@m17n.org>
13227
13228 * category.h (SET_CATEGORY_SET): Call set_category_set.
13229 (set_category_set): Extern it.
13230
13231 * category.c (hash_get_category_set): New function.
bba3e508 13232 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
13233 char_table_ref_and_range. Call hash_get_category_set to get a
13234 category set to store in the table.
13235
13236 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
13237 Funify_charset.
13238
2ae37cf0 13239 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
13240 (DECODE_CHAR): Check if the decoder vector is ready.
13241 (ENCODE_CHAR): Check if the encoder char-table is ready.
13242 (maybe_unify_char): Extern it.
13243
13244 * charset.c (Vchar_unified_charset_table): Delete it.
13245 (inhibit_load_charset_map): New variable.
13246 (temp_charset_work): New variable.
13247 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
13248 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
13249 New macros.
bba3e508
SM
13250 (load_charset_map): Meaning of control_flag changed.
13251 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
13252 temp_charset_work.
13253 (load_charset): New argument control_flag.
13254 (map_charset_for_dump): New function.
13255 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
13256 map_charset_for_dump.
13257 (Fdefine_charset_internal): If the charset method is MAP, load
13258 mapping tables by calling load_charset.
13259 (Funify_charset): Don't load a mapping table but directly set
13260 Vchar_unify_table.
13261 (maybe_unify_char): New function.
13262 (decode_char): Don't handle the deleted method MAP_DEFERRED.
13263 Handle the case of inhibit_load_charset_map being nonzero.
13264 (encode_char): Don't handle the deleted method MAP_DEFERRED.
13265 Handle the case of inhibit_load_charset_map being nonzero.
13266 (Fclear_charset_maps): Just free temp_charset_work.
13267 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
13268 variable.
13269
bba3e508 13270 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
13271 change of char_table_ref_and_range.
13272 (char_table_ref_and_range): Change the meaning of argument FROM
13273 and TO. Now the caller must provide initial values for *FROM
13274 and *TO.
13275
bba3e508 13276 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
13277 char_table_ref_and_range.
13278 (fontset_get_font_group): Likewise.
13279 (Ffontset_info): Likewise.
13280
bba3e508 13281 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
13282 char_table_ref_and_range. For char-table, put boundary between
13283 non-ASCII and 8-bit characters.
13284
13285 * print.c (print_object): For bool-vector, delete unnecessary
13286 check of ASCII_BYTE_P.
13287
9196133b
JR
132882008-11-26 Jason Rumney <jasonr@gnu.org>
13289
13290 * w32font.c (w32font_open_internal): Don't include external
9acef61c 13291 leading in font height. (Bug#879)
9196133b 13292
9f688acf
GM
132932008-11-26 Glenn Morris <rgm@gnu.org>
13294
13295 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
13296 redefinition with ifdef. (Bug#1383)
13297
90d19aff
AR
132982008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13299
13300 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
13301
4ccfa1c0 133022008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
13303
13304 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
13305 New EmacsView methods.
13306 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
13307 Fixes bug #1048,1357,1414.
13308
133092008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13310
13311 Fix bug #1362.
13312 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
13313 is not an indexed color.
13314 * nsterm.m (free_indexed_color): Add argument checking.
13315 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
13316
e7d5ecb3
CY
133172008-11-24 Chong Yidong <cyd@stupidchicken.com>
13318
13319 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
13320 Document confirm-after-completion value for
13321 minibuffer-completion-confirm.
13322
c285743c
JR
133232008-11-24 Jason Rumney <jasonr@gnu.org>
13324
13325 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
13326 warning.
13327
b0857706
JR
133282008-11-23 Jason Rumney <jasonr@gnu.org>
13329
13330 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
13331 restored before returning.
13332
13333 * w32font.c (check_face_name): New function.
13334 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 13335 fonts. (Bug#642)
b0857706 13336
ee50ff07
MR
133372008-11-22 Martin Rudalics <rudalics@gmx.at>
13338
13339 * buffer.c (Fswitch_to_buffer): Reword and mention new option
13340 confirm-nonexistent-file-or-buffer in doc-string.
13341
b8ff72fa
SM
133422008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
13343
13344 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
13345 Fix copy/paste typo. Add checks.
13346
cee53ed4
KH
133472008-11-21 Kenichi Handa <handa@m17n.org>
13348
13349 * coding.c (detect_coding_iso_2022): Reject invalid composition
13350 sequence.
13351 (DECODE_COMPOSITION_START): If the current source is the last
13352 block, and the current composition doesn't end, regard this
13353 sequence as invalid.
13354 (decode_coding_iso_2022): Handle invalid composition sequence.
13355
f6ef1e65
MR
133562008-11-20 Martin Rudalics <rudalics@gmx.at>
13357
13358 * window.c (coordinates_in_window): Don't return
13359 ON_VERTICAL_BORDER for the rightmost position of a mode/header
13360 line when the window is not the rightmost one. (Bug#1372)
13361
e08b1705
MR
133622008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
13363
13364 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
13365
ad98e89f
EZ
133662008-11-15 Eli Zaretskii <eliz@gnu.org>
13367
13368 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
13369 and bright_bg if noninteractive is non-zero.
13370
fb098a4b
CY
133712008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13372
13373 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
13374 x_draw_glyph_string_background.
13375
13376 * w32term.c (x_draw_glyph_string): Likewise.
13377
ce952b6e
CY
133782008-11-15 Chong Yidong <cyd@stupidchicken.com>
13379
13380 * xterm.c (x_draw_glyph_string): Stop drawing the background of
13381 the next glyph string once past the overhang width.
13382
13383 * nsterm.m (ns_draw_glyph_string): Likewise.
13384
13385 * w32term.c (x_draw_glyph_string): Likewise.
13386
26ea7079
CY
133872008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
13388
13389 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
13390 double file close.
13391
1c33c906
MR
133922008-11-14 Martin Rudalics <rudalics@gmx.at>
13393
13394 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
13395 dedicated status of window before attempting to display another
13396 buffer in it.
13397
8fc29035
JB
133982008-11-14 Juanma Barranquero <lekktu@gmail.com>
13399
13400 * msdos.c (Fmsdos_long_file_names):
13401 (syms_of_msdos) <dos-unsupported-char-glyph>:
13402 * dosfns.c (Fint86): Fix typos in docstrings.
13403
55fb4286
EZ
134042008-11-14 Eli Zaretskii <eliz@gnu.org>
13405
13406 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
13407
3fda0315
KY
134082008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
13409
13410 * puresize.h (BASE_PURESIZE): Increase to 1260000.
13411
7e849c17
CY
134122008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
13413
13414 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
13415
13416 * frame.h: Negative alpha means "don't touch".
13417
13418 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
13419
13420 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
13421
b9fd67bd
DN
134222008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
13423
13424 * hftctl.c:
13425 * chpdef.h:
13426 * acldef.h: Remove files used only for systems no longer supported.
13427
13428 * Makefile.in: Fix .o alphabetical ordering.
13429 (hftctl.o): Remove dependency, file removed.
13430 (keymap.o, print.o): Depend on charset.h.
13431
d5998e03
KH
134322008-11-10 Kenichi Handa <handa@m17n.org>
13433
2ae37cf0 13434 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 13435
be70e183
CY
134362008-11-08 Chong Yidong <cyd@stupidchicken.com>
13437
13438 * dired.c (file_name_completion): If completion_ignore_case is
13439 enabled, ignore case when checking completion-regexp-list.
13440
7cf94eac
EZ
134412008-11-08 Eli Zaretskii <eliz@gnu.org>
13442
13443 * vm-limit.c (get_lim_data): Fix last change.
13444
ee107a89
KH
134452008-11-08 Kenichi Handa <handa@m17n.org>
13446
13447 * character.c (Fget_byte): New function.
13448 (syms_of_character): Defsubr Fget_byte.
13449
5fd15622
CY
134502008-11-07 Chong Yidong <cyd@stupidchicken.com>
13451
13452 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
13453 cursor position is valid after scrolling.
13454
13d62fad
JB
134552008-11-06 Juanma Barranquero <lekktu@gmail.com>
13456
13457 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
13458
a1dd2936
GM
134592008-11-06 Glenn Morris <rgm@gnu.org>
13460
13461 * xterm.c (handle_one_xevent): Don't let popup menus cause
13462 mouse-autoselect-window related window switching. (Bug#1261)
13463
860cd236
CY
134642008-11-04 David Smith <davidsmith@acm.org> (tiny change)
13465
13466 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
13467
653a3150
AS
134682008-11-04 Andreas Schwab <schwab@suse.de>
13469
13470 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
13471
870f5cac
CY
134722008-11-03 Chong Yidong <cyd@stupidchicken.com>
13473
13474 * xfns.c (Fx_wm_set_size_hint): New function.
13475
1e02f3cb
MR
134762008-11-03 Martin Rudalics <rudalics@gmx.at>
13477
13478 * textprop.c (Fprevious_single_char_property_change): Return 0
13479 when there's no change in a string. (Bug#1301)
13480
e630dfc6
MR
134812008-11-02 Martin Rudalics <rudalics@gmx.at>
13482
13483 * frame.c (do_switch_frame): New argument NORECORD passed to
13484 Fselect_window.
13485 (Fselect_frame): New argument NORECORD passed to
13486 do_switch_frame.
13487 (Fset_frame_selected_window): New argument NORECORD passed to
13488 Fselect_frame.
13489 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
13490 in call of do_switch_frame.
13491 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
13492 Handle NORECORD argument in call of Fselect_frame.
13493 * lisp.h (do_switch_frame, Fselect_frame)
13494 (Fset_frame_selected_window): Adjust declarations.
13495 * window.c (select_frame_norecord): New function.
13496 (run_window_configuration_change_hook): Use it and call
13497 Fselect_frame with NORECORD set.
13498 (Fselect_window): Pass NORECORD to Fselect_frame.
13499 (Fset_window_configuration): Handle NORECORD argument in call of
13500 do_switch_frame.
13501 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
13502 Fset_frame_selected_window.
13503 * keyboard.c (command_loop_1): Handle NORECORD in call of
13504 Fselect_frame (currently ifdefd).
13505
9020b223
GM
135062008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
13507
13508 * emacs.c (USAGE2): Untabify.
13509
793ffee8
SM
135102008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
13511
13512 * composite.c (fill_gstring_header): Fix copy/paste typo.
13513
ab6d1131
MR
135142008-10-31 Martin Rudalics <rudalics@gmx.at>
13515
13516 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
13517 (Fother_window): Rename argument and rewrite doc-string.
13518 (select_window_norecord): Fix return value. (Bug#1276)
13519
601a9cf1
JB
135202008-10-30 Juanma Barranquero <lekktu@gmail.com>
13521
13522 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
13523 new frames overriding foreground for tooltips. Based on similar patch
13524 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
13525
813b0652
CY
135262008-10-29 Chong Yidong <cyd@stupidchicken.com>
13527
13528 * emacs.c (Fdaemon_initialized): Initialize nfd.
13529
4414f58f
MR
135302008-10-29 Martin Rudalics <rudalics@gmx.at>
13531
13532 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
13533 (Fwindow_text_height): Clarify doc-strings.
13534 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
13535 doc-string of window-scroll-functions.
13536
ecdcaa09
RS
135372008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
13538
13539 * category.c (syms_of_category): Fix typo in docstring.
13540
23fe745a
JB
135412008-10-28 Juanma Barranquero <lekktu@gmail.com>
13542
13543 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
13544 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
13545 Fix typos in docstrings.
13546
ff808935
DN
135472008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
13548
13549 * emacs.c (daemon_pipe): Make non-static.
13550 (IS_DAEMON): Move definition ...
13551 * lisp.h (IS_DAEMON): ... here.
13552 (daemon_pipe): Declare.
13553 (is_daemon): Remove.
13554 * dispnew.c (init_display): Use IS_DAEMON.
13555
fc012771
SM
135562008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
13557
13558 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
13559 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
13560
13561 * emacs.c (is_daemon): Remove.
13562 (main): Don't set is_daemon.
13563 (IS_DAEMON): New macro.
13564 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 13565 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
13566 parent exits.
13567 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
13568
d8bdbe6f
CY
135692008-10-27 Chong Yidong <cyd@stupidchicken.com>
13570
d1a072bf
CY
13571 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
13572 over-sized glyph, draw it with the default glyph width.
13573
e2e325aa
CY
13574 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13575 glyph, draw it with the default glyph width.
13576
13577 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13578 glyph, draw it with the default glyph width.
13579
d8bdbe6f
CY
13580 * xdisp.c (try_scrolling): When computing the distance from the
13581 scroll margin to PT, try moving some distance past the window
13582 bottom before giving up.
13583
7bfac547
MR
135842008-10-27 Martin Rudalics <rudalics@gmx.at>
13585
13586 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
13587 (Fset_window_buffer): Explain in doc-string that a window can be
13588 "strongly" dedicated to its buffer.
13589
4ff029f6
DN
135902008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
13591
13592 * emacs.c (daemon_name): New variable.
13593 (main): Deal with --daemon=SERVER_NAME.
13594 (Fdaemonp): Return a name if one was passed to --daemon.
13595
5790ef40
DN
135962008-10-26 Romain Francoise <romain@orebokech.com>
13597
f9bd0df9 13598 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
13599 (main): Create a pipe before forking, make the parent exit only after
13600 the child has closed its end of the pipe. Move closing the
13601 descriptors ...
13602 (Fdaemon_initialized): ... here. New function.
13603
f5385255
SM
136042008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
13605
4d632321
SM
13606 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
13607 the previous unoptimized table.
13608
f5385255
SM
13609 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
13610 the distinction between non-nil and non-t value of `dedicated'.
13611
6c56a0f3
CY
136122008-10-25 Chong Yidong <cyd@stupidchicken.com>
13613
13614 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 13615 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 13616
fec89261
MR
136172008-10-25 Martin Rudalics <rudalics@gmx.at>
13618
13619 * window.c (Fget_buffer_window, Fdelete_windows_on)
13620 (Freplace_buffer_in_windows): Make buffer argument optional and
13621 rename to buffer_or_name.
13622
34fcddd0
CY
136232008-10-24 Chong Yidong <cyd@stupidchicken.com>
13624
f5385255
SM
13625 * xdisp.c (handle_single_display_spec, handle_display_prop):
13626 Undo 2005-05-16 change.
34fcddd0
CY
13627 (handle_stop): Pop iterator if it's loaded with an empty string.
13628 (get_overlay_strings_1): Don't save iterator if it's loaded with
13629 an empty string (bug#1201).
13630
064766f2
KH
136312008-10-24 Kenichi Handa <handa@m17n.org>
13632
13633 * ftfont.c (ftfont_otf_features): Fix previous change.
13634 (ftfont_otf_capability): Check FeatureList.FeatureCount before
13635 calling ftfont_otf_features.
13636
f9bd0df9 136372008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
13638
13639 * font.c (font_match_p): Fix for the case that a vector of
13640 characters is in script-representative-chars.
13641
1dae9197
MA
136422008-10-24 Michael Albinus <michael.albinus@gmx.de>
13643
13644 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 13645 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
13646 (xd_read_queued_messages): Catch Qdbus_error from the macros.
13647 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 13648 macro. (Bug#1186)
1dae9197 13649
f9bd0df9 136502008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
13651
13652 * s/sol2-10.h: New file.
13653
878a4584
JB
136542008-10-23 Juanma Barranquero <lekktu@gmail.com>
13655
13656 * xdisp.c (fill_glyph_string): Fix typo in source (though the
13657 poor beast has survived 9+ years and the jump from xterm.c!).
13658
cd265ca6
MR
136592008-10-23 Martin Rudalics <rudalics@gmx.at>
13660
13661 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
13662 Reword doc-string.
f5385255 13663 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 13664
472a4dc9
JB
136652008-10-23 Juanma Barranquero <lekktu@gmail.com>
13666
13667 * character.c (syms_of_character) <script-representative-chars>:
13668 <unicode-category-table>: Doc fixes.
13669
159bd5a2
NF
136702008-10-23 Noah Friedman <friedman@splode.com>
13671
13672 * coding.c (make_conversion_work_buffer): Check that
13673 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
13674 Fget_buffer_create.
13675
49f9c344
KH
136762008-10-23 Kenichi Handa <handa@m17n.org>
13677
13678 * font.c (font_add_log): Check the values of extra properties.
13679
12bb3111
MR
136802008-10-22 Martin Rudalics <rudalics@gmx.at>
13681
13682 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13683 Reword doc-string.
13684 (Fset_window_parameter): Use NILP.
13685 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 13686 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 13687
bbeb4e99
JB
136882008-10-22 Juanma Barranquero <lekktu@gmail.com>
13689
13690 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
13691
136922008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
13693
13694 * nsfns.m (ns_appkit_version): New function.
13695 (x-server-version): Use it.
13696 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
13697 (x-server-vendor): Don't check_ns().
13698
13699 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
13700
a9b555d3
JB
137012008-10-22 Juanma Barranquero <lekktu@gmail.com>
13702
13703 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
13704 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
13705
4626499f
KH
137062008-10-22 Kenichi Handa <handa@m17n.org>
13707
e3681952
KH
13708 * syntax.c (scan_words): Call word_boundary_p instead of comparing
13709 scripts.
13710
4626499f
KH
13711 * category.c (word_boundary_p): Check scripts instead of charset.
13712 Handle nil value in word-separating-categories and
13713 word-combining-categories.
13714 (syms_of_category): Fix docstrings of word-separating-categories
13715 and word-combining-categories.
13716
1560f91a
EZ
137172008-10-21 Eli Zaretskii <eliz@gnu.org>
13718
13719 * coding.c (Fencode_coding_region, Fdecode_coding_region)
13720 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
13721
f4668441
MR
137222008-10-21 Martin Rudalics <rudalics@gmx.at>
13723
13724 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
13725 Rename arg "buffer" to "buffer_or_name".
13726 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
13727 it optional.
13728 (no_switch_window): Remove since the return value is not used.
a9b555d3 13729 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
13730 Consider window as dedicated when Fwindow_dedicated_p returns a
13731 non-nil value.
13732 * lisp.h: Remove prototype for no_switch_window.
13733
fd75ddb2
JD
137342008-10-21 Jan Djärv <jan.h.d@swipnet.se>
13735
13736 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 13737 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 13738
07295713
KH
137392008-10-21 Kenichi Handa <handa@m17n.org>
13740
13741 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
13742 check Vlatin_extra_code_table.
13743
712adc82
EZ
137442008-10-20 Eli Zaretskii <eliz@gnu.org>
13745
13746 * fileio.c (Fset_file_modes): Doc fix.
13747
f549eb0b
MA
137482008-10-19 Michael Albinus <michael.albinus@gmx.de>
13749
13750 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
13751 in arrays.
13752
aac0c6e3
MR
137532008-10-19 Martin Rudalics <rudalics@gmx.at>
13754
13755 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13756 Mention kill-buffer in doc-string.
13757 (Fset_window_buffer): Reinsert tem check removed in last commit.
13758 (Fenlarge_window, Fshrink_window): Have argument names and
13759 doc-string follow Elisp manual more closely.
13760
137612008-10-18 Eli Zaretskii <eliz@gnu.org>
13762
13763 * fileio.c (Fset_file_modes): Doc fix.
13764
137652008-10-18 Martin Rudalics <rudalics@gmx.at>
13766
13767 * window.c (Fwindow_width, Fset_window_start)
13768 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
13769 (Fdelete_windows_on, Freplace_buffer_in_windows):
13770 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
13771 (Fwindow_dedicated_p): Make window argument optional.
13772 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
13773 (Fset_window_buffer): Respect any non-nil dedicated value for
13774 window. Rename "buffer" argument to "buffer_or_name".
13775
137762008-10-18 Ulrich Mueller <ulm@gentoo.org>
13777
13778 * m/sh3.h: New file, machine description for SuperH.
13779
137802008-10-17 Martin Rudalics <rudalics@gmx.at>
13781
13782 * window.c (Fsplit_window): Rename arg horflag to horizontal.
13783
137842008-10-17 Kenichi Handa <handa@m17n.org>
13785
13786 * ftfont.c (ftfont_otf_features): Fix indexing
13787 gsub_gpos->FeatureList.Feature. Check the validity of indices.
13788
137892008-10-16 Magnus Henoch <mange@freemail.hu>
13790
13791 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
13792 (Fdbus_call_method_asynchronously): Ditto.
13793 This change makes C-h f display the argument list.
13794
137952008-10-16 Chong Yidong <cyd@stupidchicken.com>
13796
13797 * fileio.c (Fexpand_file_name): Doc fix.
13798
13799 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
13800 of :foreground and :background equivalent to unspecified (20.x
13801 compatibility).
13802
138032008-10-15 Eli Zaretskii <eliz@gnu.org>
13804
13805 * buffer.c (syms_of_buffer): Doc fix.
13806
138072008-10-14 Kenichi Handa <handa@m17n.org>
13808
13809 * font.c (font_clear_prop): When clearing font width, clear the
13810 average width field too.
13811
138122008-10-12 Andreas Schwab <schwab@suse.de>
13813
13814 * ftfont.c (ftfont_shape_by_flt): Make static.
13815 * ftfont.h (ftfont_shape_by_flt): Don't declare.
13816
13817 * font.c: Don't include <m17n-flt.h>.
13818
138192008-10-10 Eli Zaretskii <eliz@gnu.org>
13820
13821 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
13822
138232008-10-09 Eli Zaretskii <eliz@gnu.org>
13824
13825 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
13826 away code.
13827
138282008-10-09 Chong Yidong <cyd@stupidchicken.com>
13829
13830 * dispnew.c (update_text_area): Avoid looping due to large glyph
13831 overhangs (bug#1070).
13832
138332008-10-09 Kenichi Handa <handa@m17n.org>
13834
13835 * fontset.c (face_for_char): If face->fontset is negative, just
13836 return ascii_face.
13837
f5385255
SM
13838 * font.c (font_delete_unmatched): Fix previous change.
13839 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
13840
138412008-10-09 Martin Rudalics <rudalics@gmx.at>
13842
13843 * frame.c (Fraise_frame): On text-only terminals select frame in
13844 order to make it visible. (Bug#1061)
13845
138462008-10-08 Chong Yidong <cyd@stupidchicken.com>
13847
13848 * fontset.c (fontset_find_font): Check frame validity.
13849
138502008-10-07 Chong Yidong <cyd@stupidchicken.com>
13851
a9b555d3 13852 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
13853 (xg_display_close): Allow Emacs to close all displays (bug#985).
13854
138552008-10-06 Andreas Schwab <schwab@suse.de>
13856
f5385255 13857 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
13858
138592008-10-06 Chong Yidong <cyd@stupidchicken.com>
13860
f5385255 13861 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 13862
a9b555d3 13863 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
13864
13865 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
13866 during initialization.
13867
138682008-10-04 Eli Zaretskii <eliz@gnu.org>
13869
13870 * xdisp.c (redisplay_internal): If frame switched, redisplay the
13871 whole thing on MSDOS frames as well as on a TTY.
13872
13873 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
13874 well as for TTY.
13875 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
13876 well as on a TTY.
13877
13878 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
13879 as well as for TTY.
13880
13881 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
13882
13883 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
13884 MSDOS frames as well.
13885
138862008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13887
13888 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
13889 correct arguments.
b71ac3dd 13890 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
13891
138922008-10-03 Glenn Morris <rgm@gnu.org>
13893
13894 * emacs.c (USAGE1): Add --daemon.
13895
138962008-10-02 Eli Zaretskii <eliz@gnu.org>
13897
13898 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
13899 100, so it's in percents as advertised.
13900
139012008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13902
13903 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
13904 (ns_output.current_cursor, ns_output.desired_cursor)
13905 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
13906 (FRAME_NEW_CURSOR_COLOR): Remove.
13907
13908 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 13909 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
13910 enumeration (HOLLOW_BOX_CURSOR, etc.).
13911
13912 * nsterm.m (ns_frame_rehighlight): Remove commented code.
13913 (draw_window_cursor): Simplify code.
f5385255
SM
13914 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
13915 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 13916 updates manually.
a9b555d3
JB
13917 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
13918 Use core Emacs cursor types.
aac0c6e3 13919
b8ff72fa 13920 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
13921
139222008-10-02 Martin Rudalics <rudalics@gmx.at>
13923
13924 * process.c (Faccept_process_output): Fix doc-string.
13925
139262008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
13927
13928 * gmalloc.c (__sbrk): Also define for uClibc.
13929
13930 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
13931 for uClibc.
13932
139332008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13934
13935 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
13936 styles.
13937 (nsfont_open): Reenable the cache.
13938
139392008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13940
13941 * font.c (font_matching_entity): Reflect ATTRS in font selection.
13942 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
13943
139442008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
13945
13946 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
13947 a suspended terminal.
13948
139492008-09-30 Michael Albinus <michael.albinus@gmx.de>
13950
13951 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
13952
139532008-09-30 Eli Zaretskii <eliz@gnu.org>
13954
13955 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
13956
139572008-09-30 Chong Yidong <cyd@stupidchicken.com>
13958
13959 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
13960 in a continued line coincides with a line beginning.
13961
139622008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13963
13964 * nsfont.m (nsfont_trait_distance): Fix bug.
13965 (nsfont_list): Return a list rather than a vector (syncs with Handa
13966 changes of 2008-05-14).
13967 (nsfont_open): Improve logging.
13968
139692008-09-29 Andreas Schwab <schwab@suse.de>
13970
13971 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13972
139732008-09-28 Martin Rudalics <rudalics@gmx.at>
13974
13975 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
13976 name as char-resolve-modifiers.
13977 Reported by: Markus Triska <markus.triska@gmx.at>
13978
139792008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13980
13981 * dispnew.c (init_display): Return earlier when running as a daemon.
13982
139832008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13984
13985 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
13986
139872008-09-27 Eli Zaretskii <eliz@gnu.org>
13988
13989 * composite.c (Fcomposition_get_gstring)
13990 (Fcompose_region_internal, Fcompose_string_internal)
13991 (Ffind_composition_internal): Doc fix.
13992 (syms_of_composite) <compose-chars-after-function>: Doc fix.
13993 (syms_of_composite) <auto-composition-function>: Doc fix.
13994 (syms_of_composite) <composition-function-table>: Doc fix.
13995
139962008-09-25 Chong Yidong <cyd@stupidchicken.com>
13997
13998 * search.c (wordify): New argument for lax word-ends.
13999 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14000
140012008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14002
14003 * lisp.h (is_daemon): Declare.
14004 * dispnew.c (init_display): Do not try to initialize the terminal
14005 when running as a daemon.
14006
140072008-09-22 Chong Yidong <cyd@stupidchicken.com>
14008
14009 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14010 x_display_pixel_height.
14011
140122008-09-22 Martin Rudalics <rudalics@gmx.at>
14013
14014 * undo.c (record_point): Don't call Fundo_boundary for first
14015 change. (Bug#731)
14016
140172008-09-22 Juanma Barranquero <lekktu@gmail.com>
14018
14019 * emacs.c (Fdaemonp): Doc fix.
14020
140212008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14022
14023 * emacs.c (main): Place #ifdef in the proper place.
14024
140252008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14026
14027 * emacs.c (standard_args): Add --daemon.
14028 (main): Disconnect from the terminal when --daemon is passed.
14029 (is_daemon): New variable.
14030 (Fdaemonp): New function.
14031 (syms_of_emacs): Defsubr it.
14032
140332008-09-20 Chong Yidong <cyd@stupidchicken.com>
14034
14035 * xdisp.c (get_next_display_element): Handle string display
14036 correctly when checking for the end of a box run.
14037
140382008-09-20 Glenn Morris <rgm@gnu.org>
14039
14040 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
14041 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
14042 (Frename_file): Avoid copying to trash if a rename involves
14043 a delete. (Bug#964).
14044
140452008-09-20 Eli Zaretskii <eliz@gnu.org>
14046
14047 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
14048 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
14049 frames as well as termcap frames.
14050 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
14051 get_named_tty.
14052
140532008-09-19 Eli Zaretskii <eliz@gnu.org>
14054
14055 * process.c (procfs_system_process_attributes): Fix cmdline in
14056 case /proc/PID/cmdline is empty.
14057
14058 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
14059 x_display_pixel_height.
14060
140612008-09-19 Juanma Barranquero <lekktu@gmail.com>
14062
14063 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
14064
14065 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
14066 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
14067
140682008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
14069
14070 * dispextern.h (struct it): Move line_wrap away from the middle of
14071 bitfields. Move voffset in struct iterator_stack_entry after the
14072 bitfields. Move tab_width near after another short.
14073
140742008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
14075
14076 * frame.h (struct frame): Move alpha from the middle of bitfields.
14077
14078 * window.h (struct window): Move frozen_window_start_p after the
14079 rest of the bitfields to reduce padding.
14080
140812008-09-18 Chong Yidong <cyd@stupidchicken.com>
14082
14083 * xterm.h (x_display_info): Remove `height' and `width' members.
14084
14085 * nsterm.h (ns_display_info): Remove `height' and `width' members.
14086
14087 * w32term.h (w32_display_info): Remove `height', `width',
14088 `height_in', and `width_in' members.
14089
b8ff72fa
SM
14090 * xterm.c (x_display_pixel_height, x_display_pixel_width):
14091 New functions.
aac0c6e3
MR
14092 (x_calc_absolute_position): Use them.
14093 (x_term_init): Omit removed `height' and `width' members.
14094
b8ff72fa
SM
14095 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14096 New functions.
aac0c6e3
MR
14097 (w32_read_socket, x_calc_absolute_position): Use them.
14098 (w32_initialize_display_info, w32_term_init): Omit removed members
14099 of w32_display_info.
14100
b8ff72fa
SM
14101 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
14102 New functions.
14103 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 14104
b8ff72fa
SM
14105 * xterm.c (x_display_pixel_height, x_display_pixel_width):
14106 New functions.
aac0c6e3
MR
14107 (x_calc_absolute_position): Use them.
14108 (x_term_init): Omit removed `height' and `width' members.
14109
14110 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
14111 (compute_tip_xy):
14112 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
14113 * xmenu.c (menu_position_func): Use x_display_pixel_height and
14114 x_display_pixel_width.
14115
141162008-09-18 Kenichi Handa <handa@m17n.org>
14117
14118 * composite.c (fill_gstring_header): Don't check FROM and TO here.
14119 (composition_compute_stop_pos): Fix handling of static composition.
14120 (Fcomposition_get_gstring): Check FROM and TO at first.
14121
141222008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
14123
46e722a9 14124 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
14125 mixup (YAILOM).
14126
141272008-09-17 Chong Yidong <cyd@stupidchicken.com>
14128
14129 * indent.c (Fvertical_motion): Use position reported by iterator
14130 instead of PT for determining screen motion (bug#943).
14131
141322008-09-17 Romain Francoise <romain@orebokech.com>
14133
14134 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
14135
141362008-09-17 Kenichi Handa <handa@m17n.org>
14137
14138 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
14139
14140 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
14141 if necessary.
14142
141432008-09-16 Kenichi Handa <handa@m17n.org>
14144
14145 * coding.c (make_conversion_work_buffer): Avoid calling
14146 Fget_buffer_create if it is not necessary.
14147
141482008-09-15 Martin Rudalics <rudalics@gmx.at>
14149
14150 * window.c (Fselect_window): Don't update window_select_count and
14151 use_time when norecord is not nil.
14152
141532008-09-14 Kenichi Handa <handa@m17n.org>
14154
14155 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
14156 specpdl_ptr.
14157
141582008-09-12 Kenichi Handa <handa@m17n.org>
14159
14160 * indent.c (scan_for_column): Don't handle automatic composition
14161 if the current buffer is not associated with a window.
14162
14163 * composite.c (composition_reseat_it): If the current buffer is
14164 not associated with a window, ignore the automatic composition.
14165 (find_automatic_composition): Likewise.
14166
141672008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
14168
14169 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
14170 (Fgpm_mouse_stop): Use it.
14171 * termhooks.h (close_gpm): Declare.
14172 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
14173 connection if Gpm_GetEvent fails.
14174
14175 * window.c (set_window_buffer): Always preserve current-buffer.
14176
141772008-09-12 Glenn Morris <rgm@gnu.org>
14178
14179 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
14180
141812008-09-11 Glenn Morris <rgm@gnu.org>
14182
14183 * charset.c (charset-map-path): Doc fix.
14184
141852008-09-10 Kenichi Handa <handa@m17n.org>
14186
14187 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
14188
14189 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
14190 compose a grapheme cluster with the preceding base glyph.
14191
14192 * composite.c (composition_compute_stop_pos): Fix previous change.
14193 Reset cmp_it->id to -1 at first.
14194
141952008-09-10 Glenn Morris <rgm@gnu.org>
14196
14197 * Makefile.in (character.o, chartab.o): Fix config.h typo.
14198
141992008-09-09 Chong Yidong <cyd@stupidchicken.com>
14200
14201 * keyboard.c (read_key_sequence): Reapply translation maps when
14202 switching keyboards.
14203
142042008-09-09 Kenichi Handa <handa@m17n.org>
14205
14206 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
14207 characters.
14208
14209 * composite.c (FORWARD_CHAR): Fix calculation
14210 of (POSITION).pos_byte.
14211 (composition_compute_stop_pos): Limit the search of composition to
14212 at most 500 characters ahead. If we reach the limit or find a
14213 newline, set cmp_it->ch to -2 and return 0.
14214 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
14215
142162008-09-08 Kenichi Handa <handa@m17n.org>
14217
14218 * indent.c (Fvertical_motion): Be sure to set
14219 it_overshoot_expected if it.cmp_it.id is non-negative.
14220
142212008-09-07 Andreas Schwab <schwab@suse.de>
14222
14223 * callproc.c (Fcall_process): Don't hold references to string data
14224 across garbage collection. Move initialisation of new_argv down
14225 to avoid compiler bug.
14226
142272008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
14228
14229 * process.c (Fsystem_process_attributes): Doc fix.
14230
142312008-09-07 Chong Yidong <cyd@stupidchicken.com>
14232
14233 * callproc.c (Fcall_process): Canonicalize current directory name.
14234
14235 * xdisp.c (move_it_to): When moving by vpos, ensure that the
14236 iterator advances to the next line if the current line ends in a
14237 continued tab.
14238
142392008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
14240
14241 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
14242 member to point to cmp_from.
14243
14244 * xdisp.c: Doc fix for references to gidx data member.
14245
142462008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14247
14248 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
14249
142502008-09-07 Kenichi Handa <handa@m17n.org>
14251
14252 * composite.c (FORWARD_CHAR): Check STOP after
14253 incrementing (POSITION).pos.
14254
142552008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
14256
14257 * process.c (Fsystem_process_attributes): Doc fix.
14258
142592008-09-06 Chong Yidong <cyd@stupidchicken.com>
14260
14261 * keyboard.c (Ftop_level): Doc fix.
14262
142632008-09-06 Eli Zaretskii <eliz@gnu.org>
14264
14265 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
14266 minibuffer, don't let lower part of menu invade the echo area.
14267
14268 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
14269 "char *q" to access menu text and advance through it. Revert the
14270 change that displayed ">" instead of ASCII character 0x10.
14271
142722008-09-05 Eli Zaretskii <eliz@gnu.org>
14273
14274 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
14275 toggle boxes and radio buttons on MS-DOS as well.
14276
142772008-09-05 Kenichi Handa <handa@m17n.org>
14278
14279 * composite.c (autocmp_chars): Check lookback count.
14280 (composition_compute_stop_pos): Set cmp_it->lookback.
14281 (composition_reseat_it): Check lookback count.
14282 (struct position_record): New struct.
14283 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
14284 (find_automatic_composition): New function.
14285 (composition_adjust_point): Use find_automatic_composition.
14286
14287 * dispextern.h (struct composition_it): New member lookback.
14288
142892008-09-02 Chong Yidong <cyd@stupidchicken.com>
14290
14291 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
14292 if moving by a single line.
14293
142942008-09-02 Andreas Schwab <schwab@suse.de>
14295
14296 * xterm.c (x_delete_display): Fix merge error.
14297
14298 * fileio.c (Fexpand_file_name): Remove unused variables.
14299
143002008-09-02 Eli Zaretskii <eliz@gnu.org>
14301
14302 * fileio.c (Fexpand_file_name): Copy argument `name' into local
14303 storage on all platforms, not just on DOS_NT.
14304
143052008-09-02 Jason Rumney <jasonr@gnu.org>
14306
b8ff72fa
SM
14307 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
14308 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
14309
143102008-09-01 Chong Yidong <cyd@stupidchicken.com>
14311
14312 * xfaces.c (Finternal_set_alternative_font_family_alist)
14313 (Finternal_set_alternative_font_registry_alist): Properly copy
14314 entire alist structure.
14315
143162008-09-01 Kenichi Handa <handa@m17n.org>
14317
d66c0241 14318 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 14319 representative chars of the script is a vector.
d66c0241
JB
14320 (ftfont_list): Handle the case where the representative chars of
14321 the script is a vector.
aac0c6e3
MR
14322
14323 * character.c (syms_of_character): Docstring of
14324 script-representative-chars fixed.
14325
143262008-08-31 Eli Zaretskii <eliz@gnu.org>
14327
14328 * msdos.c (BUILD_CHAR_GLYPH): New macro.
14329 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
14330 the menu. Allocate larger buffer for `text', to account for
14331 possible ^C characters.
14332
143332008-08-31 Martin Rudalics <rudalics@gmx.at>
14334
14335 * xdisp.c (prepare_menu_bars): Don't call
14336 Vwindow_size_change_functions with arg Qt.
14337
143382008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
14339
14340 * font.h (font_range):
14341 * fileio.c (report_file_error):
46e722a9
SM
14342 * composite.c (composition_update_it): Yet another int/Lisp_Object
14343 mixup (YAILOM).
aac0c6e3
MR
14344
143452008-08-30 Glenn Morris <rgm@gnu.org>
14346
14347 * data.c (Fmake_variable_frame_local): Doc fix.
14348
14349 * frame.c (Fmodify_frame_parameters): Doc fix.
14350
143512008-08-30 Eli Zaretskii <eliz@gnu.org>
14352
14353 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
14354 needed by GetTokenInformation.
14355 (w32_system_process_attributes): Check return values of all system
14356 APIs.
14357
14358 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
14359 only when the state changes.
14360 (IT_update_begin, IT_update_end): Add termscript trace.
14361
14362 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
14363 clipboard is unavailable. Set dst to NULL if it doesn't point to
14364 malloc'ed data.
14365 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
14366 passing random values to xfree.
14367
14368 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 14369 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
14370
143712008-08-29 Jason Rumney <jasonr@gnu.org>
14372
14373 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
14374
143752008-08-29 Eli Zaretskii <eliz@gnu.org>
14376
14377 * composite.c (fill_gstring_body): Avoid compiler warnings.
14378
14379 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
14380 LGLYPH_SET_CODE to avoid compiler warnings.
14381
2ae37cf0 14382 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
14383
14384 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
14385
14386 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
14387 LGLYPH_SET_CODE.
14388
143892008-08-29 Kenichi Handa <handa@m17n.org>
14390
14391 * fileio.c (report_file_error): Don't downcase the first character
14392 of errstring if it is still unibyte.
14393
143942008-08-29 Kenichi Handa <handa@m17n.org>
14395
14396 These changes are to re-implement the automatic composition so
14397 that it doesn't use text properties.
14398
14399 * Makefile.in (ftfont.o): Depend on composite.h.
14400 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
14401
14402 * character.h (Vunicode_category_table): Extern it.
14403
14404 * character.c (Vunicode_category_table): New variable.
14405 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
14406
14407 * chartab.c (optimize_sub_char_table): Perform more greedy
14408 optimization.
14409
b8ff72fa
SM
14410 * composite.h (enum composition_method):
14411 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
14412 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
14413 (Vcomposition_function_table): Extern it.
14414 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
14415 (composition_gstring_put_cache, composition_gstring_from_id)
14416 (composition_gstring_p, composition_gstring_width)
14417 (composition_compute_stop_pos, composition_reseat_it)
14418 (composition_update_it, composition_adjust_point): Extern them.
14419 (Fcomposition_get_gstring): EXFUN it.
14420
d66c0241 14421 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
14422 (Vcomposition_function_table)
14423 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
14424 (gstring_hash_table, gstring_work, gstring_work_headers):
14425 New variables.
aac0c6e3
MR
14426 (gstring_lookup_cache, composition_gstring_put_cache)
14427 (composition_gstring_from_id, composition_gstring_p)
14428 (composition_gstring_width, fill_gstring_header)
14429 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
14430 (composition_reseat_it, composition_update_it)
b8ff72fa 14431 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
14432 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
14433 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 14434 Defsubr composition_get_gstring.
aac0c6e3
MR
14435
14436 * dispextern.h (struct glyph): New union u.cmp. Delete the member
14437 cmp_id.
14438 (struct glyph_string): Delete the member gidx. New members
14439 cmp_id, cmp_from, and cmp_to.
14440 (enum it_method): Delete GET_FROM_COMPOSITION.
14441 (struct composition_it): New struct.
14442 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
14443 Delete c, len, cmp_id, cmp_len in u.comp.
14444
14445 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 14446 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 14447 (enum lglyph_indices): Likewise.
b8ff72fa 14448 (font_range): Adjust extern.
aac0c6e3
MR
14449 (font_fill_lglyph_metrics): Extern it.
14450
14451 * font.c (QCf): New variable.
14452 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14453 (font_prepare_composition): Delete this function.
14454 (font_range): Type and arguments changed.
14455 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
14456 (font_fill_lglyph_metrics): New function.
b8ff72fa 14457 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 14458 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
14459 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
14460 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
14461
14462 * fontset.h (font_for_char): Extern it.
14463
14464 * fontset.c (font_for_char): New function.
14465
14466 * ftfont.c: Include composite.h.
14467 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 14468 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
14469
14470 * indent.c: Include composite.h and dispextern.h.
14471 (check_composition): Delete this function.
14472 (scan_for_column): Handle composition by
14473 composition_compute_stop_pos, composition_reseat_it, and
14474 composition_update_it.
14475 (compute_motion): Likewise.
14476 (Fvertical_motion): Fix checking of composition.
14477
14478 * keyboard.c (adjust_point_for_property): Check composition by
14479 composition_adjust_point.
14480
b8ff72fa 14481 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
14482 struct glyph_string.
14483
b8ff72fa
SM
14484 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
14485 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
14486 struct glyph.
14487 (produce_composite_glyph): Likewise.
14488
b8ff72fa
SM
14489 * w32term.c (x_draw_composite_glyph_string_foreground):
14490 Adjust for the change of struct glyph_string.
aac0c6e3
MR
14491 (x_draw_glyph_string): Likewise.
14492
14493 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
14494 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14495
14496 * xdisp.c: Include font.h.
14497 (it_props): Delete the entry for Qauto_composed.
14498 (init_iterator): Initialize it->cmp_it.id to -1.
14499 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 14500 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
14501 (handle_auto_composed_prop): Delete it.
14502 (handle_composition_prop): Handle only static composition.
14503 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
14504 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 14505 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
14506 (pop_it): Likewise.
14507 (get_next_element): Delete next_element_from_composition.
14508 (CHAR_COMPOSED_P): New macro.
14509 (get_next_display_element): For automatic composition, get a face
14510 from the font in the glyph-string.
14511 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 14512 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
14513 (next_element_from_string): Check if the character at the current
14514 position is composed by CHAR_COMPOSED_P.
14515 (next_element_from_buffer): Likewise.
d66c0241
JB
14516 (next_element_from_composition): Adjust for the change of struct it.
14517 Update it->cmp_it.
b8ff72fa
SM
14518 (dump_glyph): Adjust for the change of struct glyph.
14519 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
14520 it and struct glyph. Don't handle automatic composition here.
14521 (fill_gstring_glyph_string): New function.
14522 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 14523 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
14524 (BUILD_GSTRING_GLYPH_STRING): New macro.
14525 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
14526 automatic composition.
b8ff72fa 14527 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 14528 struct glyph.
b8ff72fa 14529 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 14530
b8ff72fa 14531 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
14532 the change of struct glyph_string.
14533 (x_draw_glyph_string): Likewise.
14534
145352008-08-29 Glenn Morris <rgm@gnu.org>
14536
14537 * buffer.c (word-wrap): Doc fix.
14538 * xdisp.c (truncate-partial-width-windows): Doc fix.
14539 Increase default to 50.
14540
145412008-08-29 Chong Yidong <cyd@stupidchicken.com>
14542
14543 * xdisp.c (update_tool_bar_unwind): New function.
14544 (update_tool_bar): Temporarily set selected frame before building
14545 tool-bar items.
14546
145472008-08-28 Michael Albinus <michael.albinus@gmx.de>
14548
14549 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
14550 snprintf, respectively.
14551 (xd_append_arg): Convert strings with Fstring_make_unibyte.
14552
145532008-08-28 Chong Yidong <cyd@stupidchicken.com>
14554
14555 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
14556 LDFLAGS to GNUstep CC invocation.
14557
145582008-08-27 Chong Yidong <cyd@stupidchicken.com>
14559
14560 * indent.c (Fvertical_motion): Revert last change. Handle the
14561 general case where we are moving forward, and PT spans multiple
14562 screen lines.
14563
14564 * eval.c (find_handler_clause): Temporarily increase
14565 max-lisp-eval-depth while printing the backtrace buffer, to
14566 guarantee that help-mode code can run.
14567
145682008-08-27 Eli Zaretskii <eliz@gnu.org>
14569
14570 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
14571 colors under -rv.
14572 (IT_set_frame_parameters): Don't swap foreground and background
14573 colors if `(reverse . t)' is present in the frame properties.
14574 (internal_terminal_init): Call init_frame_faces only for the
14575 initial frame.
14576
145772008-08-27 Andreas Schwab <schwab@suse.de>
14578
14579 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
14580
145812008-08-27 Andreas Schwab <schwab@suse.de>
14582
14583 * search.c (search_buffer): Set char_base to zero only at the end.
14584
145852008-08-27 Kenichi Handa <handa@m17n.org>
14586
b8ff72fa 14587 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
14588
145892008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
14590
14591 * xterm.c (x_term_init): Temporarily hide the partially
14592 initialized terminal while calling vendor-specific-keysyms.
14593
145942008-08-26 Eli Zaretskii <eliz@gnu.org>
14595
14596 * msdos.c (internal_terminal_init): Most initializations done only
14597 once, especially initial_screen_colors[] and termscript open.
14598
145992008-08-26 Chong Yidong <cyd@stupidchicken.com>
14600
14601 * eval.c (Fcondition_case): Doc fix.
14602
14603 * widgetprv.h (EmacsFramePart): Change font member to the new font
14604 struct.
14605
14606 * widget.c: Include character.h and font.h for XSETFONT.
14607 (setup_frame_gcs): Compute X font id from font struct, just once.
14608
146092008-08-26 Eli Zaretskii <eliz@gnu.org>
14610
14611 * term.c (get_named_tty): Fix last change.
14612
146132008-08-26 Chong Yidong <cyd@stupidchicken.com>
14614
14615 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 14616 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
14617
146182008-08-25 Eli Zaretskii <eliz@gnu.org>
14619
14620 * frame.c (do_switch_frame): Mark previously displayed frame as
14621 obscured for FRAME_MSDOS_P frames as well.
14622
146232008-08-24 Eli Zaretskii <eliz@gnu.org>
14624
14625 * frame.c (make_terminal_frame): Initialize f->terminal,
14626 f->terminal->reference_count, and scroll bars on MS-DOS as well.
14627 Set the top frame to newly created frame.
14628 (Fmake_terminal_frame): Reuse the_only_display_info.
14629
14630 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
14631 estimating available memory.
14632
b97439ce 146332008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
14634
14635 * nsterm.m (ns_draw_window_cursor): Don't call
14636 NSDisableScreenUpdates and NSEnableScreenUpdates on
14637 non-NS_IMPL_COCOA systems.
14638
146392008-08-23 Andreas Schwab <schwab@suse.de>
14640
14641 * process.c (procfs_system_process_attributes): Fix use of
14642 uninitialized variables.
14643
146442008-08-23 Eli Zaretskii <eliz@gnu.org>
14645
14646 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
14647
14648 * dispnew.c (init_display): Remove MS-DOS specific conditions for
14649 calling tty-set-up-initial-frame-faces.
14650
b8ff72fa
SM
14651 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
14652 Allow MSDOS frames along with X frames.
aac0c6e3
MR
14653
14654 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
14655 addition to output_termcap.
14656
14657 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
14658
14659 * termchar.h (FRAME_TTY): Support output_msdos_raw.
14660 (struct tty_display_info) [MSDOS]: Add fields related to mouse
14661 highlight.
14662
14663 * process.c [!subprocesses]: Define QCname.
14664 (syms_of_process): Intern and staticpro it.
14665
14666 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
14667 Adjust for changes in encoding/decoding routines.
14668 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
14669 encode_coding and decode_coding.
14670
b8ff72fa 14671 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
14672
14673 * dosfns.c: Include frame.h before termhooks.h.
14674 (dos_cleanup): Use CURTTY ()->termscript instead of a global
14675 variable termscript.
14676
14677 * s/msdos.h (USER_FULL_NAME): Define.
14678 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
14679
14680 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
14681 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
14682 pw->pw_gecos.
14683
14684 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
14685 SELECTED_FRAME as additional (1st) argument.
14686 (tty_read_avail_input): Handle output_msdos_raw in
14687 addition to output_termcap.
14688
14689 * msdos.c: Include frame.h before termhooks.h.
14690 (mouse_on, mouse_off, mouse_moveto, mouse_init)
14691 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
14692 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
14693 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
14694 (IT_set_terminal_modes, IT_reset_terminal_modes)
14695 (IT_set_frame_parameters): Use tty->termscript instead of a global
14696 variable termscript.
14697 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
14698 global variable terminal_coding. Don't refer to
14699 Vnonascii_translation_table.
14700 (internal_terminal_init): Set Vwindow_system in current_kboard.
14701 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
14702 Announce date and time of session start, if termscript is open.
14703 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
14704 term.c:init_tty). Open termscript only of not already open.
14705 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
14706 here instead of dos_ttraw. Don't initialize display if this is an
14707 initial tty. Don't set FRAME_FONT.
14708 (Vwindow_system_version): Bump to 23.
14709 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
14710 is available, set up mouse_position_hook.
14711 (dos_ttraw, IT_set_terminal_modes): If called with initial
14712 terminal, do nothing.
14713 (IT_set_frame_parameters): Handle the Qtty_type frame
14714 parameter by calling internal_terminal_init.
14715 (dos_set_window_size, show_mouse_face)
14716 (clear_mouse_face, IT_note_mode_line_highlight)
14717 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
14718 (dos_rawgetc): Use tty_display_info instead of x_display_info.
14719 (initialize_msdos_display): New function.
14720 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
14721 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
14722 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
14723 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 14724 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
14725 (request_sigio, unrequest_sigio): Don't define, now defined on
14726 sysdep.c.
14727 (IT_write_glyphs): Rewrite to use encode_terminal_code.
14728
14729 * term.c [MSDOS]: Include msdos.h.
14730 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
14731 conditional to DOS_NT. Allow only one call to this function in a
14732 session. Don't allocate a new struct tty_display_info; instead,
14733 reuse the_only_display_info. Call get_tty_size to get screen
14734 dimensions. Call init_baud_rate to set bad_rate.
14735 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
14736 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 14737 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
14738 (get_tty_terminal, get_named_tty, Ftty_type)
14739 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
14740 output_termcap.
b8ff72fa
SM
14741 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
14742 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 14743 only when subprocesses are supported.
aac0c6e3
MR
14744
14745 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
14746 f->output_data.x.
14747 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
14748 terminal devices.
14749
5582fbc7 14750 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
14751 x_output.
14752 (FRAME_FONT): Use output_data.tty.
14753 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
14754 (struct x_display_info): Rename from display_info. Update all users in
14755 msdos.c.
aac0c6e3 14756 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 14757 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
14758 (dos_ttraw): Update prototype.
14759
14760 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
14761 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
14762
147632008-08-23 Jason Rumney <jasonr@gnu.org>
14764
14765 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
14766 (fn_TIFFSetDirectory): New library function used.
14767 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
14768 (tiff_load): Use :index to select among multiple images. Set count
14769 property when multiple images exist.
14770 (gif_format): Use :index, not :image.
14771
147722008-08-23 Chong Yidong <cyd@stupidchicken.com>
14773
14774 * xdisp.c (try_scrolling): Check INT_MAX instead of
14775 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
14776 to obtain INT_MAX.
14777
147782008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
14779
14780 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
14781
147822008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
14783
14784 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
14785 GNUstep library location.
14786
147872008-08-21 Chong Yidong <cyd@stupidchicken.com>
14788
14789 * xfaces.c (x_update_menu_appearance): Check validity of menu font
14790 before using it.
14791
14792 * puresize.h (BASE_PURESIZE): Increase to 1250000.
14793
147942008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14795
14796 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
14797 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
14798 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
14799 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
14800 (EmacsApp-cursor_blink_handler): Remove declaration.
14801 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
14802 match 01 Feb 2008 changes in xterm.c.
14803 (ns_read_socket): Add cast to avoid warning.
14804 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
14805 GNUstep.
14806
148072008-08-20 Chong Yidong <cyd@stupidchicken.com>
14808
14809 * xselect.c (x_get_foreign_selection): Return nil if desired
14810 selection could not be obtained, instead of signalling an error.
14811
148122008-08-20 David Reitter <david.reitter@gmail.com>
14813
14814 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
14815 * nsterm.m: Remove ns-specific code for cursor blinking.
14816 (ns_draw_window_cursor): Clear cursor properly rather than
14817 redrawing the area. Respect width of bar cursors.
14818 These changes enable the use of generic blink-cursor-mode and
14819 generic cursor types in NS and support smooth cursor movements (do
14820 not blink off after command).
14821 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
14822 Nextstep, too.
14823
148242008-08-19 Kenichi Handa <handa@m17n.org>
14825
14826 * font.c (Vfont_log_deferred): New variable.
14827 (font_add_log): Check Vfont_log_deferred.
14828 (font_deferred_log): New function.
14829
14830 * font.h (font_deferred_log): Extern it.
14831
14832 * fontset.c (reorder_font_vector): Use encoding charset of fonts
14833 for sorting.
14834 (face_for_char): Use deferred log.
14835
148362008-08-18 Kenichi Handa <handa@m17n.org>
14837
14838 * fontset.c (face_for_char): Add font log.
14839
14840 * font.c (font_add_log): Add the font properties :script, :lang,
14841 and :otf in the log.
14842
148432008-08-17 Chong Yidong <cyd@stupidchicken.com>
14844
14845 * xdisp.c: Remove dead code.
14846 (handle_invisible_prop, next_overlay_string): Defer call to
14847 setup_for_ellipsis.
14848 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
14849
148502008-08-15 Chong Yidong <cyd@stupidchicken.com>
14851
14852 * xfaces.c (lookup_derived_face): Properly handle possible zero
14853 return value of get_lface_attributes.
14854 (merge_faces): Don't tell lookup_derived_face to signal an error
14855 if face is not found.
14856
14857 * dired.c (Fdirectory_files): Doc fix.
14858
14859 * process.c (make_process): Initialize kill_without_query struct
14860 member.
14861
148622008-08-15 Eli Zaretskii <eliz@gnu.org>
14863
14864 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
14865 Alternative calculation of totphys for Visual Studio 6.
14866
14867 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
14868
14869 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
14870 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
14871 All users changed.
14872 (stat): Only root directory passed to GetDriveType. Allow RAM
14873 disk as well as local fixed disk when w32-get-true-file-attributes
14874 is set to `local'.
14875 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
14876 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
14877 (w32_cached_id, w32_add_to_cache): New functions.
14878 (get_name_and_id): Look account names in the cache before calling
14879 lookup_account_sid.
14880 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
14881 New initialization flags.
14882 (globals_of_w32): Initialize them to zero.
14883 (w32_system_process_attributes): Use w32_cached_id and
14884 w32_add_to_cache.
14885
148862008-08-14 Lawrence Mitchell <wence@gmx.li>
14887
14888 * lread.c (Fread_char, Fread_char_exclusive): If no character
14889 event is read before timeout is reached, return nil, rather than
14890 converting to a number.
14891
148922008-08-14 Chong Yidong <cyd@stupidchicken.com>
14893
14894 * fns.c (use_dialog_box): Doc fix.
14895
14896 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
14897 on OS X.
14898
148992008-08-13 Chong Yidong <cyd@stupidchicken.com>
14900
14901 * frame.c (Qns_parse_geometry): New var.
14902 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
14903
149042008-08-11 Chong Yidong <cyd@stupidchicken.com>
14905
14906 * xdisp.c (x_produce_glyphs): Handle the case when font has no
14907 space character in calculating tabs.
14908
149092008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
14910
14911 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
14912
149132008-08-10 Glenn Morris <rgm@gnu.org>
14914
14915 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
14916 silence gcc "limited range of data type" warnings in some
14917 make_fixnum_or_float calls.
14918
149192008-08-09 Eli Zaretskii <eliz@gnu.org>
14920
14921 * w32.c (w32_system_process_attributes): If the process does not
14922 exist, return nil.
14923
14924 * w32.c: Include thelp32.h, psapi.h and coding.h.
14925 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
14926 declarations.
14927 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
14928 (Process32Next_Proc): New typedefs.
14929 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
14930 (g_b_init_process32_next, g_b_init_open_thread_token)
14931 (g_b_init_impersonate_self, g_b_init_revert_to_self)
14932 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
14933 (g_b_init_get_process_working_set_size)
14934 (g_b_init_global_memory_status_ex): New static variables.
14935 (globals_of_w32): Initialize them.
14936 (create_toolhelp32_snapshot, process32_first, process32_next)
14937 (open_thread_token, impersonate_self, revert_to_self)
14938 (get_process_memory_info, get_process_working_set_size)
14939 (global_memory_status, global_memory_status_ex): New wrapper
14940 functions.
14941 (w32_list_system_processes, w32_system_process_attributes)
14942 (enable_privilege, restore_privilege, ltime, process_times):
14943 New functions.
14944 (convert_time_raw): New function.
14945 (convert_time): Remove conversion of FILETIME into time in 100
14946 nsec units, call convert_time_raw instead.
14947
14948 * process.h (w32_list_system_processes, w32_system_process_attributes):
14949 Add prototypes.
14950 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
14951 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
14952 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
14953 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
14954
14955 * process.c (Fsystem_process_attributes): Doc fix.
14956
149572008-08-08 Chong Yidong <cyd@stupidchicken.com>
14958
14959 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
14960 a continued multi-char glyph; if so, advance to the actual glyph.
14961
149622008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
14963
14964 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
14965
14966 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
14967 (.m.o): Use it.
14968 * config.in: Regenerate.
14969
149702008-08-07 Chong Yidong <cyd@stupidchicken.com>
14971
14972 * xdisp.c (redisplay_window): Revert last change.
14973 (try_window): Check bottom scroll margin too.
14974
149752008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14976
14977 * config.in: Regenerate.
14978
14979 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
14980 -list-load-path-shadows'.
14981 (nsgui.h): Reduce number of things depending on it.
14982
149832008-08-06 Chong Yidong <cyd@stupidchicken.com>
14984
14985 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
14986 instead of window-end which does the wrong thing at eob.
14987 (try_cursor_movement): Minor optimization.
14988 (redisplay_window): If scroll margin is defined, don't assume
14989 window doesn't need scrolling.
14990
149912008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14992
14993 * config.in: Regenerate.
14994
14995 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
14996 (mostlyclean): Don't delete *.d under NS.
14997
14998 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
14999
150002008-08-06 Kenichi Handa <handa@m17n.org>
15001
15002 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15003
150042008-08-06 Andreas Schwab <schwab@suse.de>
15005
15006 * config.in: Regenerate.
15007
150082008-08-05 Chong Yidong <cyd@stupidchicken.com>
15009
15010 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15011 forcing a window start.
15012
15013 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15014 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15015
150162008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15017
15018 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15019 argument.
15020
150212008-08-05 Juanma Barranquero <lekktu@gmail.com>
15022
15023 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15024 <scroll-down-aggressively, before-change-functions>:
15025 <after-change-functions>: Reflow docstrings.
15026
150272008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 15028 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
15029
15030 Dock menu customization, based on a patch by Ken Raeburn, plus some
15031 other fixes.
15032 * nsmenu.m (dockMenu): New variable.
15033 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
15034
15035 * nsterm.h (dockMenu): Declare.
15036
15037 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
15038 (ns_term_init): Initialize dockMenu.
15039 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
15040 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
15041 left.
15042
15043 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
15044
150452008-08-04 Chong Yidong <cyd@stupidchicken.com>
15046
15047 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
15048
15049 * config.in: Regenerate.
15050
150512008-08-04 Seiji Zenitani <zenitani@mac.com>
15052
15053 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
15054
150552008-08-04 Chong Yidong <cyd@stupidchicken.com>
15056
15057 * nsterm.h (find_and_call_menu_selection): Fix prototype.
15058
150592008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15060
15061 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
15062
15063 * keyboard.h: Comment an #endif.
15064
15065 * lisp.h (have_menus_p): Adjust comment.
15066
15067 * menu.c (find_and_return_menu_selection): Fix comparison with
15068 client_data.
15069
15070 * nsmenu.m (popup_activated_flag): New variable.
15071 (popup_activated): New function.
15072 (menu-or-popup-active-p): New exported lisp definition.
15073 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
15074 when popup done.
15075 (ns_popup_dialog): Set popup_activated_flag.
15076
15077 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
15078 version for GNUstep (handled by conditional typedef in nsterm.m).
15079 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
15080 in rgb.txt).
15081
15082 * process.c (init_process): Use DARWIN_OS, not DARWIN.
15083
15084 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
15085
15086 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
15087
15088 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
15089 shortcircuit if popup_activated like GTK and X toolkit.
15090
15091 * m/inter386.h: Change DARWIN to DARWIN_OS.
15092
15093 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
15094 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
15095 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
15096 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
15097
150982008-08-03 Chong Yidong <cyd@stupidchicken.com>
15099
15100 * nsterm.m (windowDidResize): Remove stopModal call.
15101
151022008-08-03 Andreas Schwab <schwab@suse.de>
15103
15104 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
15105 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
15106
151072008-08-02 Chong Yidong <cyd@stupidchicken.com>
15108
15109 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
15110 Don't use uninitialized pointer variable when using getrlimit.
15111
151122008-08-02 Jason Rumney <jasonr@gnu.org>
15113
15114 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
15115
151162008-08-02 Eli Zaretskii <eliz@gnu.org>
15117
15118 * alloc.c (NSTATICS): Bump to 0x640.
15119
15120 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
15121
15122 * lisp.h: Add prototype for directory_files_internal.
15123
15124 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
15125 New functions.
15126 (syms_of_process): Defsubr them. Add initializations for various
15127 Q* symbols used in procfs_system_process_attributes.
15128 (procfs_list_system_processes, procfs_system_process_attributes)
15129 [HAVE_PROCFS]: New functions.
15130 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
15131 (procfs_get_total_memory): New functions.
15132
151332008-08-01 Juanma Barranquero <lekktu@gmail.com>
15134
15135 * xfaces.c (Fx_load_color_file): Fix previous change;
15136 it is #ifdef WINDOWSNT, not WINDOWS_NT.
15137
151382008-08-01 Michael Albinus <michael.albinus@gmx.de>
15139
15140 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
15141
151422008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15143
15144 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
15145
151462008-08-01 Chong Yidong <cyd@stupidchicken.com>
15147
15148 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
15149
15150 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
15151 define NSApplicationDelegateReplySuccess.
15152 (EmacsView -converstationIdentifier): Use long instead of
15153 NSInteger for GNUstep, since it doesn't have NSInteger.
15154
15155 * xmenu.c: Revert last change.
15156
15157 * keyboard.h: Fix last change.
15158
151592008-08-01 Juanma Barranquero <lekktu@gmail.com>
15160
15161 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
15162 on Windows.
15163
151642008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15165
15166 Warning clearing and clean-up in NS port.
15167 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
15168 Add prototypes.
15169 * nsgui.h (FACE_DEFAULT): Remove, unused.
15170 (XGCValues): Change colors to unsigned long.
15171 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
15172 nsterm.m.
15173 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
15174 (ns_list_fonts): Remove, unused.
15175 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
15176 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
15177 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
15178 (nsfont_draw): Compare face colors to 0, not nil.
15179 * nsmenu.m (struct widget_value): Drop unneeded declaration.
15180 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
15181 (-addSubmenuWithTitle:): Use NSMenuItem class.
15182 (ns_popup_menu): Use NO, not NULL, for enabled setting.
15183 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
15184 (ns_clip_to_row): Make gc arg a BOOL.
15185 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
15186 ns_clip_to_row() call.
15187 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
15188 used). Cast FRAME_FONT assignments.
15189 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
15190 (ns_string_to_lispmod): Change arg to const char.
15191 (ns_term_init): Use NSMenuItem class.
15192 (EmacsApp -openFile:): Move to different section of file.
15193 (EmacsApp -application:openFiles:): Don't return a value, call
15194 -replyToOpenOrPrint:.
15195 (EmacsView -keyDown:): Fix up cast.
15196 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
15197 (EmacsView -menuDown:): Cast tag in call to
15198 find_and_call_menu_selection().
15199 (ns_list_fonts): Remove, unused.
15200 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
15201 (ns_fontname_to_xlfd): Make static.
15202 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
15203 Remove prototypes (now in keyboard.h).
15204 (next_menubar_widget_id): Remove, unused.
15205 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
15206 Remove prototypes (now in keyboard.h).
15207 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
15208
152092008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
15210
15211 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
15212 (floatfns.o): Depend on syssignal.h.
15213 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
15214
15215 * systty.h: Fix previous change that removed BSD_TERMIOS.
15216 Add comments to #ifdefs.
15217
152182008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15219
15220 * w32fns.c (w32-load-color-file): Remove.
15221 (x-open-connection): Use renamed Fx_load_color_file.
15222 * xfaces.c (x-load-color-file): Add.
15223 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
15224 Emacs.clr.
15225 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
15226
152272008-07-31 Michael Albinus <michael.albinus@gmx.de>
15228
15229 * dbusbind.c (Fdbus_call_method_asynchronously)
15230 (Fdbus_method_error_internal): New defuns.
15231 (xd_read_message): Handle also reply messages.
15232 (Vdbus_registered_functions_table): Extend docstring.
15233
152342008-07-31 Juanma Barranquero <lekktu@gmail.com>
15235
15236 * keyboard.c (gobble_input): Fix previous change.
15237
152382008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
15239
15240 * bitmaps/README:
15241 * xfns.c:
15242 * termcap.c:
15243 * term.c:
15244 * syswait.h:
15245 * systty.h:
15246 * systime.h:
15247 * syssignal.h:
15248 * sysdep.c:
15249 * process.h:
15250 * process.c:
15251 * print.c:
15252 * ndir.h:
15253 * lread.c:
15254 * keyboard.c:
15255 * getpagesize.h:
15256 * floatfns.c:
15257 * fileio.c:
15258 * emacs.c:
15259 * doc.c:
15260 * dispnew.c:
15261 * dired.c:
15262 * data.c:
15263 * callproc.c:
15264 * buffer.c:
15265 * README:
15266 * Makefile.in:
15267 * s/template.h:
15268 * s/msdos.h:
15269 * m/vax.h: Remove VMS support.
15270 * s/vms.h:
15271 * vlimit.h:
15272 * uaf.h:
15273 * temacs.opt:
15274 * param.h:
15275 * ioctl.h: Remove file.
15276
152772008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
15278
15279 * s/ms-w32.h (MULTI_KBOARD): Remove.
15280 * xterm.c:
15281 * xselect.c:
15282 * xfns.c:
15283 * window.c:
15284 * w32term.c:
15285 * w32fns.c:
15286 * terminal.c:
15287 * termhooks.h:
15288 * term.c:
15289 * sysdep.c:
15290 * keyboard.h:
15291 * keyboard.c:
15292 * frame.h:
15293 * frame.c:
15294 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
15295 * config.in: Regenerate.
15296
152972008-07-30 Jason Rumney <jasonr@gnu.org>
15298
15299 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
15300
15301 * w32font.c (w32font_encode_char): Leave as unicode if in range.
15302 (w32font_open_internal): Get unicode version of textmetrics.
15303 Don't enable or disable glyph indices here.
15304 (w32font_open): Disable use of glyph indices.
15305
15306 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
15307
153082008-07-30 Chong Yidong <cyd@stupidchicken.com>
15309
15310 * minibuf.c (Vread_buffer_function): Doc fix.
15311
153122008-07-30 John Paul Wallington <jpw@pobox.com>
15313
15314 * minibuf.c (read_buffer_completion_ignore_case): New var.
15315 (Fread_buffer): Use it.
15316
153172008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
15318
15319 * systty.h (sensemode): Remove empty #if. Remove reference to
15320 BSD_TERMIOS, unused.
15321
15322 * sysdep.c: Remove reference to DGUX.
15323 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
15324
15325 * config.in: Regenerate.
15326
153272008-07-30 Jason Rumney <jasonr@gnu.org>
15328
15329 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
15330
153312008-07-29 Jason Rumney <jasonr@gnu.org>
15332
15333 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
15334 is populated.
15335 (uniscribe_encode_char): Always use uniscribe.
15336 Avoid using context if cache is populated.
15337
153382008-07-29 Jan Djärv <jan.h.d@swipnet.se>
15339
15340 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
15341 open menu.
15342
15343 * gtkutil.c (menu_nav_ended): Remove.
15344 (create_menus): Remove signal connect for menu_nav_ended.
15345
153462008-07-28 Chong Yidong <cyd@stupidchicken.com>
15347
15348 * xdisp.c (redisplay_window): Check return value of
15349 compute_window_start_on_continuation_line before forcing a window
15350 start.
15351
153522008-07-28 Jason Rumney <jasonr@gnu.org>
15353
15354 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
15355
15356 * w32term.c (w32_enable_unicode_output, cleartype_active):
15357 Remove obsolete display options.
15358 (x_draw_glyph_string_background): Don't use old cleartype_active
15359 workaround.
15360 (w32_initialize): Remove cleartype_active initialization.
15361 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
15362
153632008-07-28 Andreas Schwab <schwab@suse.de>
15364
15365 * lisp.h (init_weak_hash_tables, syms_of_font)
15366 (xd_read_queued_messages, syms_of_dbusbind): Declare.
15367 (remove_hash_entry): Don't declare.
15368 * eval.c (maybe_call_debugger): Make static and move before use.
15369 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
15370 * xdisp.c: Include "gtkutil.h" if USE_GTK.
15371 * xterm.h (x_set_frame_alpha): Declare.
15372
153732008-07-28 Jan Djärv <jan.h.d@swipnet.se>
15374
15375 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
15376 (create_menus): Connect selection-done to menu_nav_ended.
15377
153782008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15379
15380 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
15381 Set Vx_resource_name to a fallback. Replace read of 'buffered'
15382 parameter with read of 'alpha' one.
15383 (Qns_frame_parameter): Remove.
5582fbc7 15384 * nsselect.m (selection-coding-system)
aac0c6e3
MR
15385 (next-selection-coding-system, Vselection_coding_system)
15386 (Vnext_selection_coding_system): Drop.
15387
153882008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15389
15390 * nsfns.m (do-applescript, do_applescript): Rename to
15391 ns-do-applescript, ns_do_applescript, and move within file.
15392
153932008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
15394
15395 Remove support for Mac Carbon.
15396 * mactoolbox.c:
15397 * macterm.h:
15398 * macterm.c:
15399 * macselect.c:
15400 * macmenu.c:
15401 * macgui.h:
15402 * macfns.c:
15403 * mac.c: Remove file.
15404 * s/darwin.h:
15405 * m/intel386.h:
15406 * xfaces.c:
15407 * xdisp.c:
15408 * window.c:
15409 * tparam.c:
15410 * termhooks.h:
15411 * termcap.c:
15412 * term.c:
15413 * syssignal.h:
15414 * sysselect.h:
15415 * sysdep.c:
15416 * process.c:
15417 * lread.c:
15418 * lisp.h:
15419 * keyboard.c:
15420 * image.c:
15421 * fringe.c:
15422 * frame.h:
15423 * frame.c:
15424 * fontset.c:
15425 * font.h:
15426 * font.c:
15427 * fns.c:
15428 * fileio.c:
15429 * emacs.c:
15430 * dispnew.c:
15431 * dispextern.h:
15432 * config.in:
15433 * atimer.c:
2ae37cf0 15434 * Makefile.in: Remove code for Carbon.
aac0c6e3 15435
f0131492 154362008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
15437
15438 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
15439
154402008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15441
15442 * macterm.h (kCGBitmapByteOrder32Host): New define for
15443 non-universal SDKs.
15444
15445 * image.c (mac_create_cg_image_from_image, image_load_image_io)
15446 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
15447
15448 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
15449 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
15450
154512008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
15452
15453 * w32inevt.c: Include dispextern.h.
15454
154552008-07-26 Andreas Schwab <schwab@suse.de>
15456
15457 * print.c (print_object): Fix off-by-one in last change.
15458
154592008-07-25 Juanma Barranquero <lekktu@gmail.com>
15460
15461 * term.c (syms_of_term): Don't initialize default_orig_pair,
15462 default_set_foreground and default_set_background on Windows.
15463
154642008-07-25 Jason Rumney <jasonr@gnu.org>
15465
15466 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
15467 ScriptItemize. Clean up return value checking. Remove unused
15468 variables.
15469 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
15470 shaping engine.
15471
15472 * w32font.c (w32font_has_char): Handle the case where we can't
15473 determine the script for a character.
15474
154752008-07-25 Chong Yidong <cyd@stupidchicken.com>
15476
15477 * term.c (syms_of_term): Initialize default_orig_pair,
15478 default_set_foreground, and default_set_background.
15479
15480 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15481 clash (bug#86).
15482 (getloadavg): Callers changed.
15483
15484 * image.c (svg_load_image): Fix last change.
15485 (svg_load_image): Use rsvg_handle_get_dimensions to check that
15486 image size is valid. Use g_object_unref instead of deprecated
15487 rsvg_handle_free to free rsvg handle.
15488 (x_from_xcolors): Don't initialize pixmap (silence compiler).
15489
154902008-07-25 Jason Rumney <jasonr@gnu.org>
15491
15492 * w32font.c (w32font_encode_char): Encode characters outside BMP as
15493 surrogates before looking up glyph index.
15494 (w32font_text_extents): Encode as surrogates if falling back to
15495 functions that need UTF-16 wide chars.
15496
15497 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
15498 BMP as surrogates before looking up glyph index.
15499
155002008-07-25 Chong Yidong <cyd@stupidchicken.com>
15501
15502 * image.c (svg_load_image): Check for failure in return value of
15503 rsvg_handle_get_pixbuf. Free rsvg handle when done.
15504
155052008-07-25 Jason Rumney <jasonr@gnu.org>
15506
15507 * w32font.c (Fx_select_font): Reverse sense of second arg.
15508
155092008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
15510
15511 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
15512 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
15513
15514 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
15515 (PURESIZE): Use it.
15516
155172008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
15518
15519 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
15520 * m/alpha.h (TEXT_END):
15521 * m/ibmrs6000.h (TEXT_END):
15522 * m/macppc.h (TEXT_END):
15523 * s/darwin.h (TEXT_END):
15524 * s/msdos.h (TEXT_END): Remove, unused.
15525 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
15526 * s/cygwin.h: Remove comment.
15527
15528 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
15529 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
15530 * m/intel386.h (DOT_GLOBAL_START):
15531 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
15532 (USG): Remove, file not used on USG platforms.
15533
15534 * Makefile.in (HAVE_X11): Remove empty #else.
15535
155362008-07-24 Andreas Schwab <schwab@suse.de>
15537
15538 * fileio.c (Finsert_file_contents): Properly adjust undo list
15539 after format conversion.
15540
155412008-07-24 Jan Djärv <jan.h.d@swipnet.se>
15542
15543 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
15544 (menu_nav_ended): Remove.
15545 (create_menus): Remove signal connect for menu_nav_ended.
15546 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
15547 create_menus.
15548 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
15549
155502008-07-23 Jason Rumney <jasonr@gnu.org>
15551
15552 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
15553 with opened font.
15554 (w32font_open): Set font type to gdi.
15555
15556 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
15557
155582008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
15559
15560 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
15561 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
15562 defines it.
15563 * unexec.c (ADDR_CORRECT): Define unconditionally.
15564
15565 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
15566
15567 * unexec.c: Remove code depending on !COFF and USG, the file is
15568 not used for such systems.
15569
15570 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
15571 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
15572 (LD_SWITCH_SYSTEM_1): Remove, update users.
15573
15574 * s/darwin.h (DATA_END):
15575 * m/intel386.h (DATA_END):
15576 * m/ibmrs6000.h (DATA_END):
15577 * m/alpha.h (DATA_END): Remove, unused.
15578
15579 * config.in: Regenerate.
15580 * s/ms-w32.h (subprocesses): Define unconditionally.
15581 * s/template.h (subprocesses): Update comment.
15582 * s/vms.h (subprocesses):
15583 * s/usg5-4.h (subprocesses):
15584 * s/hpux10-20.h (subprocesses):
15585 * s/gnu-linux.h (subprocesses):
15586 * s/cygwin.h (subprocesses):
15587 * s/bsd-common.h (subprocesses):
15588 * s/aix4-2.h (subprocesses):
15589 * s/darwin.h (subprocesses): Do not define, defined by default now.
15590
15591 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
15592 Remove all references.
15593 (temacs): Add GNUstep specific ld flags.
15594
15595 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
15596 similarly to what X does.
15597
155982008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15599
15600 * nsfns.m (x-list-fonts): Remove.
15601 (syms_of_nsfns): Drop the x-list-fonts declaration.
15602 * nsterm.m: Get rid of remaining "//" comments.
15603
156042008-07-22 Chong Yidong <cyd@stupidchicken.com>
15605
15606 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
15607
15608 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
15609 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
15610 (Fns_own_selection_internal, Fx_disown_selection_internal)
15611 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
15612
15613 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
15614 ... */' style of docstrings. Doc fixes.
15615
156162008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
15617
15618 * terminfo.c (UP, BC, PC): Undo previous change.
15619
15620 * nsfns.m: Rename ns prefixed functions/variables to the
15621 corresponding x versions. Update references.
15622
156232008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
15624
15625 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
15626
156272008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
15628
15629 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
15630 Remove forwarding functions.
15631 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
15632 non-static.
15633 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
15634 non-static.
15635 (ns_frame_parm_handlers): Use the new names.
15636 (syms_of_nsfns): Move to the end of file.
15637
15638 * nsterm.m (syms_of_nsterm): Move to the end of file.
15639
15640 * dispnew.c (init_display): Remove code for X10.
15641
156422008-07-22 Jason Rumney <jasonr@gnu.org>
15643
15644 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
15645 bare drive.
15646
156472008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15648
15649 * nsterm.m (syms_of_nsterm): Remove debugging println.
15650
156512008-07-22 David Reitter <david.reitter@gmail.com>
15652
15653 * nsfns.m (do_applescript, F_do_applescript): NS version of the
15654 Carbon implementation of the same functionality: execute arbitrary
15655 AppleScript code.
15656
156572008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15658
15659 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
15660 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
15661 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15662 (Fx_display_mm_height, Fx_display_mm_width)
15663 (Fx_display_backing_store, Fx_display_visual_class)
15664 (Fx_display_save_under, Fx_open_connection)
15665 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
15666 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
15667 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15668 (Fx_display_pixel_width, Fx_display_pixel_height)
15669 (Fx_display_usable_bounds, Fx_display_planes)
15670 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
15671 ... */' style of docstrings.
15672
156732008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
15674
15675 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
15676 on this platform.
15677 (mips):
15678 * m/iris4d.h (mips): Do not define.
15679 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
15680
15681 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
15682
15683 * image.c:
15684 * nsfns.m:
15685 * nsselect.m:
15686 * nsterm.h:
15687 * nsterm.m: Rename ns prefixed functions/variables to the
15688 corresponding x versions. Update references.
15689
15690 * m/ibms390x.h (NO_REMAP): Do not undefine.
15691
15692 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
15693
156942008-07-21 Chong Yidong <cyd@stupidchicken.com>
15695
15696 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
15697 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
15698 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
15699 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
15700 (Fns_display_mm_height, Fns_display_mm_width)
15701 (Fns_display_backing_store, Fns_display_visual_class)
15702 (Fns_display_save_under, Fns_open_connection)
15703 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
15704 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
15705 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15706 (Fns_display_pixel_width, Fns_display_pixel_height)
15707 (Fns_display_usable_bounds, Fx_display_planes)
15708 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
15709
157102008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
15711
15712 * print.c (print_object): Check print_depth before searching for
15713 circularities.
15714
157152008-07-21 Michael Albinus <michael.albinus@gmx.de>
15716
15717 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
15718 only sprintf.
15719
157202008-07-21 Kenichi Handa <handa@m17n.org>
15721
15722 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
15723
157242008-07-20 Andreas Schwab <schwab@suse.de>
15725
15726 * syntax.c (find_start_pos, find_start_value)
15727 (find_start_value_byte, find_start_begv, find_defun_start)
15728 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
15729
157302008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
15731
15732 * s/sol2-3.h: Insert contents of s/sol2.h.
15733 (LD_SWITCH_SYSTEM): Remove redundant definition.
15734 * s/sol2.h: Remove, unused.
15735
157362008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15737
15738 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
15739
157402008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15741
15742 * Makefile.in (ns_appdir): Fix typo in find command.
15743
157442008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
15745
15746 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
15747
15748 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
15749 added not supported anymore.
15750
15751 * s/usg5-4-2.h (LIBS_SYSTEM):
15752 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
15753
15754 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15755 * s/lynxos.h (GETPGRP_NO_ARG):
15756 * s/hpux10-20.h (NO_SIOCTL_H):
15757 * s/gnu.h (GETPGRP_NO_ARG):
15758 * s/gnu-linux.h (NO_SIOCTL_H):
15759 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15760 * s/cygwin.h (GETPGRP_NO_ARG):
15761 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
15762 (C_DEBUG_SWITCH): Remove duplicate definition.
15763
15764 * m/ibms390.h: Remove boilerplate comments.
15765
15766 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
15767
15768 * process.c (HAVE_SERIAL): Consolidate ifdefs.
15769 (wait_reading_process_output): Remove code for SunOS, platform not
15770 supported anymore. Use SOLARIS2 instead of sun.
15771
157722008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15773
15774 * font.c (font_open_by_name): Under NS, default lface height to zero.
15775 (font_open_for_lface): Under NS, set size based on frame fontsize.
15776 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
15777 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
15778
157792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15780
15781 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
15782 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
15783 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
15784 YES/NO.
15785 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
15786 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
15787 * Makefile.in (clean): Clear out build destination dir.
15788
157892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15790
15791 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
15792 xterm, xselect.
15793 * lisp.h: Remove declaration of hash_remove.
15794 * nsgui.h: Remove redefinitions of hash_remove.
15795 * fns.c (hash_remove): Rename to hash_remove_from_table.
15796
157972008-07-19 Seiji Zenitani <zenitani@mac.com>
15798
15799 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
15800 strdup() the family UTF8String before modifying it.
15801
158022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15803
15804 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
15805 NS_FACE_BACKGROUND with 0 instead of nil.
15806 * nsfont.m (nsfont_draw): Same.
15807
158082008-07-19 Chong Yidong <cyd@stupidchicken.com>
15809
15810 * nsfns.m (ns_set_background_color): Fix crash.
15811
158122008-07-18 Chong Yidong <cyd@stupidchicken.com>
15813
15814 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
15815
158162008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
15817
15818 * puresize.h (BASE_PURESIZE): Increase to 1240000.
15819
158202008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15821
15822 * gtkutil.c: Include <config.h> instead of "config.h".
15823
15824 * lisp.h (Foverlay_buffer): Add EXFUN.
15825
15826 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
15827 child process to complete child_setup. Undo 2005-09-21 change.
15828
15829 * s/darwin.h: Mention setsid after vfork.
15830
158312008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15832
15833 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
15834 Depend on macgui.h.
15835
15836 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
15837 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
15838
15839 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
15840 and f19.
15841 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
15842
15843 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
15844 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
15845 Remove enumerators.
15846
15847 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
15848 Check if FACE_FROM_ID returns NULL.
15849
158502008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
15851
15852 * w32inevt.c (change_frame_size): Remove extern declaration.
15853 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
15854 change_frame_size.
15855
158562008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15857
15858 * getloadavg.c: Revert last change (2008-07-15).
15859
158602008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15861
15862 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 15863 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
15864 from configure.
15865
158662008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
15867
15868 * s/sol2.h:
15869 * s/sol2-4.h: Reorganize conditionals.
15870
15871 * ecrt0.c: Remove code depending on m68000, not used anymore.
15872
15873 * fns.c (hash_remove): Make static.
15874 * lisp.h (hash_remove): Don't prototype.
15875
15876 * m/ibmrs6000.h:
15877 * m/ibms390x.h:
15878 * m/macppc.h: Remove boilerplate comments.
15879
15880 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
15881 Solaris, which does not need them.
15882
15883 * m/vax.h: Remove comments about unsupported systems.
15884
15885 * s/darwin.h: Reorganize ifdefs.
15886
158872008-07-17 Andreas Schwab <schwab@suse.de>
15888
15889 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
15890
158912008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
15892
15893 Use SDATA. Follow coding convention of placing operators at
15894 beginning of next line rather than end of previous line, and placing
15895 spaces around infix operators.
15896
15897 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
15898 in case it was defined already.
15899 USE @GNUSTEP_MAKEFILES@ rather than envvars.
15900 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
15901 ns_default.
15902 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
15903 Lisp_Objects.
15904 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
15905 (ns_defined_color, ns_color_to_lisp): Declare.
15906 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
15907 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
15908 it's accepted even with USE_LISP_UNION_TYPE.
15909 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
15910 (update_frame_tool_bar): Remove apparently obsolete tests for
15911 non-integerness of f->tool_bar_lines.
15912 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
15913 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
15914 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
15915 (nsfont_open): Don't confuse NULL for Qnil.
15916 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
15917 * menu.h (find_and_call_menu_selection):
15918 * menu.c (find_and_call_menu_selection): Use just int for vector size.
15919 (find_and_return_menu_selection): Always return something.
15920 * frame.h: Include dispextern.h for Display_Info.
15921 (display_x_get_resource): Declare.
15922
159232008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
15924
15925 * syntax.c: Remove stdio.h include accidentally introduced in
15926 Emacs.app commit.
15927 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
15928 NS_IMPL_COCOA.
15929 * keyboard.c (handle_async_input, input_available_signal): Remove
15930 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
15931
159322008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15933
15934 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
15935 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
15936 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
15937 Use SDATA.
15938
15939 * keymap.c: Remove all NS-specific code.
15940 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
15941 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
15942 where_is_preferred_modifier, return a different value depending on how
15943 preferred is the binding.
15944 (where_is_internal): Adjust accordingly.
15945 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
15946 Adjust to new preferred_sequence_p.
15947 (syms_of_keymap): Declare `where-is-preferred-modifier'.
15948 * keyboard.c (parse_solitary_modifier): Not static any more.
15949 * keyboard.h (parse_solitary_modifier): Declare.
15950
159512008-07-16 Andreas Schwab <schwab@suse.de>
15952
15953 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
15954 of easymenu.
15955
159562008-07-16 Chong Yidong <cyd@stupidchicken.com>
15957
15958 * xdisp.c (move_it_in_display_line): Account for word wrap, so
15959 that we don't move off the line.
15960
159612008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15962
15963 * keyboard.c (Qsuper): Remove.
15964 (parse_menu_item): Don't call where_is_internal specially for NS.
15965
159662008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15967
15968 * s/gnu-linux.h: Remove boilerplate comments.
15969
15970 * m/alpha.h (__ELF__): Consolidate conditions.
15971
15972 * m/m68k.h (linux): Use GNU_LINUX instead.
15973 Remove boilerplate comments.
15974
15975 * m/intel386.h: Undo refactoring from previous change.
15976 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
15977 too, remove dead code.
15978 (linux): Use GNU_LINUX instead.
15979
159802008-07-16 Jason Rumney <jasonr@gnu.org>
15981
15982 * w32gui.h: Repeat 26 June changes lost by last change.
15983
159842008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15985
15986 * systty.h: Remove code for Aix on 386, unsupported platform.
15987
15988 * s/ms-w32.h: Remove boilerplate comments.
15989 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
15990
15991 * s/gnu-linux.h (TERM): Remove support.
15992 (HAVE_SYSVIPC): Remove, unused.
15993 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
15994 for this system.
15995
15996 * process.c: Remove support for IRIS, unused.
15997 Remove support for TERM, not relevant anymore.
15998
15999 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16000 used with the definition.
16001
16002 * s/aix4-2.h (static): Do not undef.
16003
16004 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16005 only used on Aix.
16006 (HAVE_SYSVIPC): Remove, unused.
16007
16008 * m/hp800.h (CANNOT_DUMP): Do not undef.
16009
16010 * m/alpha.h: Fix comment.
16011
16012 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16013 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16014 used by this configuration.
16015 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16016 * unexec.c: Remove code depending on HPUX and
16017 USG_SHARED_LIBRARIES, not used with this file. Remove code
16018 depending on IRIS, unused. Remove if 0-ed code.
16019
16020 * s/template.h: Remove comments about static.
16021
16022 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16023 Remove if 0-ed code.
16024 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16025 were the same as the default.
16026 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16027 Remove boilerplate comments.
16028 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16029 (HAVE_SYSVIPC): Remove, unused.
16030 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16031
16032 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16033 Remove boilerplate comments.
16034 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16035 Remove boilerplate comments.
16036 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16037 Remove boilerplate comments.
16038 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
16039
16040 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
16041 USG systems which do not use DATA_SEG_BITS.
16042 Refactor code. Remove boilerplate comments.
16043
16044 * m/ibms390.h:
16045 * m/m68k.h:
16046 * s/bsd-common.h:
16047 * s/cygwin.h:
16048 * s/darwin.h:
16049 * s/freebsd.h:
16050 * s/gnu.h:
16051 * s/msdos.h: Remove boilerplate comments.
16052
16053 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 16054 do not use this file.
aac0c6e3
MR
16055 (IRIS_4D): Remove, unused.
16056
16057 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 16058 do not use this file.
aac0c6e3
MR
16059 (SIGN_EXTEND_CHAR):
16060 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
16061 * unexmips.c: Remove file, unused.
16062
16063 * editfns.c (Fuser_full_name): Replace the only use of
16064 USER_FULL_NAME with its value.
16065 * config.in: Regenerate.
16066
160672008-07-16 David Reitter <david.reitter@gmail.com>
16068
16069 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
16070 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
16071
160722008-07-16 Glenn Morris <rgm@gnu.org>
16073
16074 * emacs.c (system-type): Doc fix.
16075
160762008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
16077
16078 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
16079 If the cache doesn't work, let's fix it, rather than work around it.
16080
160812008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16082
16083 * Makefile.in: Correct additions for nsfont.o in last commit.
16084 * nsfont.m: New file (forgot last commit).
16085
160862008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
16087
bba3e508
SM
16088 * callproc.c (set_initial_environment):
16089 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
16090 batch-compiling for bootstrap).
16091
160922008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 16093 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 16094
c4cc8b9a
JB
16095 * frame.c (make_initial_frame): Call init_frame_faces(f) in
16096 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
16097
160982008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16099
16100 Changes and additions for NeXTstep windowing system (Cocoa and
16101 GNUstep) support.
16102
16103 * Makefile.in:
16104 * config.in: Support defines and build commands for NS port.
16105 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
16106 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
16107 * dispextern.h: Include nsgui.h and add needed typedefs under NS
16108 windowing.
16109 (struct face): Add synth_ital field.
16110 * dispnew.c: Include nsterm.h when compiling under NS windowing.
16111 (init_display): Initialize Vinitial_window_system to "ns" when so
16112 compiled.
16113 * emacs.c: Include GSConfig.h when compiling under GNUstep.
16114 (display_arg): Use under NS.
16115 (main): Under NS, allocate autorelease pool and handle command line
16116 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
16117 (standard_args): Add NS-specific args.
16118 (shut_down_emacs): Shut down NS terminal if compiled under NS.
16119 * font.c (DEFAULT_ENCODING): New variable.
16120 (font_find_for_lface): Use it.
16121 (syms_of_font): Load syms_of_nsfont under NS.
16122 * font.h: Declare nsfont_driver when compiled under NS.
16123 * fontset.c: When compiling under NS, include nsterm.h.
16124 (fontset_from_font): Autoconstruct fontset under NS.
16125 * frame.c (various): Under NS, include nsterm.h, add Qns window system
16126 symbol, document and use it.
16127 (do_switch_frame): When for_deletion under Cocoa, add
16128 Fraise_frame(Qnil).
16129 (x_set_frame_parameters): Ensure font attribute changes are picked up.
16130 (x_get_arg): Allow "yes" and "no" as boolean values.
16131 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
16132 Qright under Cocoa.
16133 (focus-follows-mouse): Default to 0 under NS.
16134 * frame.h (enum output_method): Add output_ns.
16135 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
16136 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
16137 (FRAME_WINDOW_P): NS-specific definition.
16138 * fringe.c (max_used_fringe_bitmap): Make public.
16139 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
16140 (getloadavg): Use NeXT code under descendant OS's.
16141 * image.c (includes and header section, x_create_bitmap_from_data)
16142 (x_create_bitmap_from_file, free_bitmap_record, image_background)
16143 (image_background_transparent, x_clear_image_1)
16144 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
16145 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
16146 (x_to_xcolors, x_from_xcolors, x_disable_image)
16147 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
16148 other GUIs, including XPM support using code originally written for
16149 Carbon GUI.
16150 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
16151 using NS API.
16152 (image_ascent): Use font metrics macros instead of direct struct field
16153 access.
16154 * keyboard.c (includes): Add nsterm.h when compiling under NS.
16155 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
16156 Also, handle NS as GTK for menu bar purposes.
16157 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
16158 toolkit where they differ.
16159 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
16160 use cachelist, still needed under NS.
16161 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
16162 (struct widget_value): Define it here for menu.c.
16163 * keymap.c (includes): Include modifier internals.
16164 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
16165 NS.
16166 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
16167 support for preferring sequences using certain modifiers, specified by
16168 the FIRSTONLY argument.
16169 * lisp.h (hash_remove): Rename to avoid name clash when compiling
16170 under NS GNUstep implementation.
16171 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
16172 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
16173 * menu.c: Include nsterm.h under NS.
16174 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
16175 (free_menubar_widget_tree_value, update_submenu_strings)
16176 (find_and_call_menu_selection): Treat NS as X and NT.
16177 (find_and_return_menu_selection): New function, used for popup menus.
16178 * nsgui.h:
16179 * nsterm.h:
16180 * nsfns.m:
16181 * nsimage.m:
16182 * nsmenu.m:
16183 * nsselect.m:
16184 * nsterm.m: New files.
16185 * process.c (wait_reading_process_output): Under NS, call ns_select()
16186 instead of plain select().
16187 * syntax.c (char_quoted): Under NS, avoid a crash when called near
16188 beginning of buffer.
16189 * sysselect.h (init_process): Rename when compiling under Cocoa to
16190 avoid name conflict.
16191 * termhooks.h (display_info): Add ns_display_info to union.
16192 * terminal.c (Fterminal_live_p): Add ns to terminal types.
16193 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
16194 COCOA environment.
16195 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
16196 unexec() signature. (Note, this will dump, but the resulting file
16197 crashes; unexosx is used instead; keeping around for reference and
16198 possible aid in getting dump working under GNUstep.)
16199 * w32gui.h (button_type, widget_value): Remove definitions (now in
16200 keyboard.h).
16201 * window.c: Include nsterm.h when compiling under NS.
16202 * xdisp.c (includes): Include nsterm.h when compiling under NS.
16203 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
16204 other GUI windowing systems.
16205 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
16206 GTK.
16207 (x_consider_frame_title): Under NS, set icon type and frame
16208 modified-state indicator; use ns_set_name_as_filename() when using
16209 formatted title.
16210 (update_window_cursor): Make public when compiling under NS.
16211 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
16212 (hourglass_atimer, Vhourglass_delay
16213 * xfaces.c (header section, init_frame_faces, clear_font_table)
16214 (defined_color, unload_color, x_face_list_fonts)
16215 (prepare_face_for_display): Add NS support parallel to other GUIs.
16216 Emulate GCs like other non-X GUIs.
16217 (split_font_name): Don't lowercase font name under NS.
16218 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
16219 under NS.
16220 * s/darwin.h: Add support for compilation under NS.
16221
162222008-07-15 Jason Rumney <jasonr@gnu.org>
16223
16224 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
16225 (w32_show_hourglass): Rename from show_hourglass.
16226 (w32_hide_hourglass): Rename from hide_hourglass.
16227 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
16228 (Vhourglass_delay): Declare extern.
16229 (hourglass_started): Remove.
16230
16231 * xdisp.c (Vhourglass_delay): Remove static.
16232 (hourglass_started, start_hourglass, cancel_hourglass):
16233 Don't include these versions on WINDOWSNT.
16234
162352008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16236
16237 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
16238 variables (formerly in xfns.c).
16239 (show_hourglass, hide_hourglass): New prototypes (same).
16240 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
16241 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
16242 in xfns.c).
16243 (syms_of_xdisp): Declare/initialize display-hourglass,
16244 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
16245 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
16246 formerly in xfns.c.
16247 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16248 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16249 (start_hourglass, cancel_hourglass): Remove.
16250 (show_hourglass, hide_hourglass): Remove prototypes and static
16251 modifiers.
16252 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
16253 hourglass_atimer, hourglass_shown_p declaration/initialization.
16254 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16255 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16256 (start_hourglass, cancel_hourglass): Remove.
16257 (show_hourglass, hide_hourglass): Remove prototypes and static
16258 modifiers.
16259 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
16260 hourglass_atimer, hourglass_shown_p declaration/initialization.
16261 * w32fns.c (display_hourglass_p, Vhourglass_delay)
16262 (DEFAULT_HOURGLASS_DELAY): Remove.
16263 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
16264 hourglass_shown_p declaration/initialization.
16265
162662008-07-14 Jason Rumney <jasonr@gnu.org>
16267
16268 * w32fns.c (w32_get_arg): Remove wrapper function.
16269 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
16270 directly.
16271 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
16272
162732008-07-14 Kenichi Handa <handa@m17n.org>
16274
16275 * xfont.c (xfont_open): Add workaround for X's bug.
16276
162772008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16278
16279 * fontset.c: Include <stdio.h> unconditionally.
16280
162812008-07-13 Michael Albinus <michael.albinus@gmx.de>
16282
16283 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
16284 for filtering.
16285
162862008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
16287
16288 * s/vms.h: Use __GNUC__ instead of _GNUC_.
16289
16290 * m/macppc.h:
16291 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
16292
c4cc8b9a 16293 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
16294 (SPECIAL_EMACS_INT):
16295 * m/ia64.h (SPECIAL_EMACS_INT):
16296 * m/amdx86-64.h (SPECIAL_EMACS_INT):
16297 * s/gnu.h (NLIST_STRUCT):
16298 * s/aix4-2.h (X11R5_INHIBIT_I18N):
16299 * s/gnu-linux.h (LINUX):
16300 * s/msdos.h (HAVE_FACES):
16301 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
16302
16303 * systty.h:
16304 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
16305 anymore.
16306
163072008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
16308
16309 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
16310 always defined as int.
16311
16312 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
16313 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
16314 * s/gnu-linux.h (HAVE_WAIT_HEADER):
16315 * s/freebsd.h (HAVE_WAIT_HEADER):
16316 * s/bsd-common.h (HAVE_UNION_WAIT):
16317 * s/aix4-2.h (HAVE_WAIT_HEADER):
16318 * m/mips.h (HAVE_UNION_WAIT):
16319 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
16320 (COFF, static): Do not define, they are undefined later in the file.
16321
16322 * process.c (update_status): Don't use a union.
16323 (status_convert):
16324 (sigchld_handler): Use int instead of WAITTYPE.
16325
163262008-07-12 Chong Yidong <cyd@stupidchicken.com>
16327
16328 * indent.c (Fvertical_motion): Restore hscroll before moving to
16329 goal column.
16330
163312008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
16332
16333 * lisp.h: Remove left over code.
16334
163352008-07-11 Andreas Schwab <schwab@suse.de>
16336
16337 * lisp.h: Fix logic in last change.
16338
16339 * menu.h: New file.
16340 * menu.c: Include it.
16341 * xmenu.c: Likewise.
16342 * Makefile.in: Update dependencies.
16343
163442008-07-11 Kenichi Handa <handa@m17n.org>
16345
16346 * fontset.c (fontset_from_font): Cancel the previous change.
16347
163482008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
16349
16350 * lisp.h:
16351 * w32heap.c:
16352 * emacs.c:
16353 * alloc.c: Replace all references of NO_UNION_TYPE with
16354 USE_LISP_UNION_TYPE.
16355
16356 * m/xtensa.h (NO_UNION_TYPE):
16357 * m/vax.h (NO_UNION_TYPE):
16358 * m/template.h (NO_UNION_TYPE):
16359 * m/sparc.h (NO_UNION_TYPE):
16360 * m/mips.h (NO_UNION_TYPE):
16361 * m/macppc.h (NO_UNION_TYPE):
16362 * m/m68k.h (NO_UNION_TYPE):
16363 * m/iris4d.h (NO_UNION_TYPE):
16364 * m/intel386.h (NO_UNION_TYPE):
16365 * m/ibms390x.h (NO_UNION_TYPE):
16366 * m/ibms390.h (NO_UNION_TYPE):
16367 * m/ibmrs6000.h (NO_UNION_TYPE):
16368 * m/ia64.h (NO_UNION_TYPE):
16369 * m/hp800.h (NO_UNION_TYPE):
16370 * m/arm.h (NO_UNION_TYPE):
16371 * m/amdx86-64.h (NO_UNION_TYPE):
16372 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
16373 defining it the same.
16374
163752008-07-10 Chong Yidong <cyd@stupidchicken.com>
16376
16377 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
16378
163792008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
16380
16381 * fileio.c:
50426a04 16382 * sysdep.c:
aac0c6e3
MR
16383 * systty.h:
16384 * m/ibmrs6000.h:
16385 * m/iris4d.h:
16386 * s/aix4-2.h:
16387 * s/freebsd.h:
16388 * s/gnu-linux.h:
16389 * s/hpux10-20.h:
16390 * s/hpux11.h:
16391 * s/netbsd.h:
16392 * s/sol2-3.h:
16393 * s/sol2-4.h:
16394 * s/sol2.h:
16395 * s/usg5-4.h:
16396 * s/vms.h: Remove references to unused variables.
16397
163982008-07-10 Andreas Schwab <schwab@suse.de>
16399
16400 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
16401 pattern before matching the generic family.
16402
164032008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
16404
16405 * unexec.c:
16406 * s/vms.h:
16407 * s/usg5-4-2.h:
16408 * s/sol2-5.h:
16409 * s/freebsd.h:
16410 * s/darwin.h: Remove dead code.
16411
16412 * m/template.h:
16413 * m/sparc.h:
16414 * m/mips.h:
16415 * m/m68k.h:
16416 * m/iris4d.h:
16417 * m/intel386.h:
16418 * m/ibms390x.h:
16419 * m/ibms390.h:
16420 * m/ia64.h:
16421 * m/hp800.h:
16422 * m/arm.h:
16423 * m/amdx86-64.h: Remove dead code and references to unused
16424 and compiler defined symbols.
16425
16426 * unexmips.c:
16427 * unexelf.c: Remove references to desupported systems.
16428
16429 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
16430
16431 * m/powermac.h: Remove boilerplate comments.
16432 (NO_REMAP): Remove unused definition.
16433
16434 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
16435 define them.
16436
164372008-07-10 Kenichi Handa <handa@m17n.org>
16438
16439 * xfont.c (xfont_open): Log the reason of failure.
16440
164412008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
16442
16443 * fontset.c (fontset_get_font_group):
16444 * font.c (font_check_otf): Specify argument types.
16445
164462008-07-09 Kenichi Handa <handa@m17n.org>
16447
16448 * coding.c (detect_coding_utf_8): Set detect_info->found only when
16449 non-ASCII char is found.
16450
16451 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
16452 (reorder_font_vector): Change the arg preferred_family to font.
16453 Prefer the spec matching with font.
16454 (fontset_get_font_group): New function.
16455 (fontset_find_font): Change the format of an element of a realized
16456 fontset. Use fontset_get_font_group.
16457 (fontset_font): Try the current fontset, the default fontset, the
16458 fallbacks of the current fontset, and the fallbacks of the default
16459 fontset in this order.
16460 (face_for_char): Delete the shortcut to use the current font.
16461 (fontset_from_font): Don't set fonts for Latin in the fontset.
16462
16463 * font.h (font_make_object, font_match_p): Adjust prototypes.
16464
16465 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
16466
16467 * font.c (font_make_object): New arg entity and pixelsize.
16468 (font_check_otf_features, font_check_otf): New functions.
16469 (font_match_p): Check :lang, :script, and :otf properties.
16470
16471 * xfont.c (xfont_open): Adjust it for the change of
16472 font_make_object.
16473 (xfont_text_extents): Fix initial setting of metrics.
16474
16475 * ftfont.c (struct ftfont_info): New member index, delete member
16476 fc_charset_idx. Make the member order compatible with struct
16477 xftfont_info.
16478 (fc_charset_table): Change charset names to registry names.
16479 (ftfont_pattern_entity): Delete the args registry and
16480 fc_charset_idx. Change the value of :font-entity property
16481 to (FONTNAME . INDEX). Always set :registry property to
16482 `iso10646-1'.
16483 (struct ftfont_cache_data): New struct.
16484 (ftfont_lookup_cache): New arg for_face.
16485 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
16486 (ftfont_driver): Set the member otf_capability.
16487 (ftfont_get_charset): Adjust it for the change of
16488 fc_charset_table.
16489 (OTF_TAG_SYM): New macro.
16490 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
16491 for the change of fc_charset_table.
16492 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
16493 ftfont_pattern_entity. Add FC_INDEX to objset.
16494 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
16495 and ftfont_pattern_entity.
16496 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
16497 font_make_object, struct ftfont_info.
16498 (ftfont_has_char): Use ftfont_get_fc_charset.
16499 (ftfont_otf_features, ftfont_otf_capability): New functions.
16500 (ftfont_shape): Use ftfont_get_otf.
16501 (ftfont_text_extents): Fix initial setting of metrics.
16502
16503 * xftfont.c (struct xftfont_info): New member ft_size. Make the
16504 member order compatible with struct ftfont_info.
bba3e508
SM
16505 (xftfont_open): Add FC_CHARSET to the pattern.
16506 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
16507 properties if appropriate.
16508 (xftfont_close): Unlock the face.
16509 (xftfont_anchor_point, xftfont_shape): Deleted.
16510 (syms_of_xftfont): Don't set members anchor_point and shape of
16511 xftfont_driver.
16512
16513 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
16514 font_make_object.
16515
16516 * w32font.c (w32font_open): Adjust it for the change of
16517 font_make_object.
16518 (w32font_open_internal): Don't set properties of font_object here.
16519
165202008-07-08 Chong Yidong <cyd@stupidchicken.com>
16521
16522 * macfns.c (x_create_tip_frame):
16523 * w32fns.c (x_create_tip_frame):
16524 * xfns.c (x_create_tip_frame): Pass parameter argument to
16525 face-set-after-frame-default.
16526
16527 * xfaces.c (Finternal_merge_in_global_face): Save merged
16528 attributes for the default face back into the face vector.
16529
165302008-07-08 Andreas Schwab <schwab@suse.de>
16531
16532 * fontset.h: Declare fontset_from_font. Don't declare
16533 new_fontset_from_font and fontset_from_font_name.
16534 * xterm.c: Include "fontset.h".
16535 * Makefile.in (xterm.o): Update dependencies.
16536
165372008-07-08 Glenn Morris <rgm@gnu.org>
16538
16539 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
16540 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
16541
165422008-07-07 Chong Yidong <cyd@stupidchicken.com>
16543
16544 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
16545 (x_set_frame_parameters): Don't bind it.
16546
165472008-07-07 Juanma Barranquero <lekktu@gmail.com>
16548
16549 * w32fns.c (map_w32_filename): Declare extern.
16550
165512008-07-07 Jason Rumney <jasonr@gnu.org>
16552
16553 * w32term.c (WS_EX_LAYERED): Define if not already.
16554
165552008-07-06 Chong Yidong <cyd@stupidchicken.com>
16556
16557 * xfaces.c (set_font_frame_param): Don't try to set the font
16558 parameter if it is still unspecified in the lface.
16559
165602008-07-05 Chong Yidong <cyd@stupidchicken.com>
16561
16562 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
16563 face if it didn't already exist.
16564
16565 * xdisp.c (try_window_id): Give up if word-wrapping is on.
16566
165672008-07-05 Andreas Schwab <schwab@suse.de>
16568
16569 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
16570
165712008-07-05 Chong Yidong <cyd@stupidchicken.com>
16572
16573 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
16574 word-wrapping.
16575 (IT_DISPLAYING_WHITESPACE): New macro.
16576 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
16577 when word-wrapping. Simplify word-wrapping logic. Use correct
16578 pixel positions when saving copies of the iterator.
16579 (display_line): Use proper wrap point if the last character on a
16580 line was preceded by whitespace.
16581
165822008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
16583
16584 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
16585
165862008-07-04 Kenichi Handa <handa@m17n.org>
16587
16588 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
16589
16590 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
16591
165922008-07-02 Jason Rumney <jasonr@gnu.org>
16593
16594 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 16595 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
16596
16597 * xdisp.c (next_element_from_display_vector): Move assignment out
16598 of if statement.
16599
166002008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
16601
16602 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
16603
16604 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
16605 (syms_of_fileio): Initialize and export them.
16606 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
16607
16608 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
16609 (Fsystem_move_file_to_trash): New function.
16610 (syms_of_w32fns): Export it to lisp.
16611
166122008-07-01 Jason Rumney <jasonr@gnu.org>
16613
16614 * w32font.c (w32font_text_extents): Don't count overhang as part
16615 of width.
16616
166172008-06-30 Miles Bader <miles@gnu.org>
16618
16619 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
16620 Add `avoid_cursor_p' field.
16621
16622 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
16623 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
16624 (append_glyph, append_composite_glyph, produce_image_glyph)
16625 (append_stretch_glyph): Initialize avoid_cursor_p.
16626 (get_it_property): Rename from `get_line_height_property'.
16627 (x_produce_glyphs): Use get_it_property.
16628 (handle_line_prefix, push_display_prop): New functions.
16629 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
16630 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
16631 New variables.
16632 (syms_of_xdisp): Initialize them.
16633
166342008-06-30 Kenichi Handa <handa@m17n.org>
16635
16636 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
16637 XftDefaultSubstitute (they are called in XftFontMatch).
16638 (xftfont_open): Fix args to ftfont_font_format.
16639
16640 * ftfont.c (fc_charset_table): New member lang.
16641 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 16642 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
16643 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
16644 (ftfont_open): Fix args to ftfont_font_format.
16645 (ftfont_font_format): New arg filename.
16646
166472008-06-30 Chong Yidong <cyd@stupidchicken.com>
16648
16649 * xfaces.c (Finternal_merge_in_global_face): If default face was
16650 modified, realize it again. Update the font face attribute.
16651
166522008-06-29 Jason Rumney <jasonr@gnu.org>
16653
16654 * w32term.c (x_set_frame_alpha): Fix logic.
16655
166562008-06-29 Kenichi Handa <handa@m17n.org>
16657
16658 * fontset.c (Finternal_char_font): Return font-object instead of
16659 font-name.
16660
16661 * composite.c (get_composition_id): Fix the width calculation for TAB.
16662
166632008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
16664
16665 * indent.c (Fvertical_motion): Properly handle float column arg.
16666
166672008-06-28 Jason Rumney <jasonr@gnu.org>
16668
16669 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
16670 (pfnSetLayeredWindowAttributes): New function pointer.
16671 (w32_initialize): Initialize it when supported.
16672 (x_set_frame_alpha): New function.
16673
16674 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
16675 (w32_frame_parm_handlers): Set alpha handler.
16676
16677 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
16678
166792008-06-27 Jason Rumney <jasonr@gnu.org>
16680
16681 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
16682 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
16683 (w32_to_x_charset, x_to_w32_charset)
16684 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16685 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16686 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16687 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16688 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16689 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16690 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
16691 (Qw32_charset_unicode): Remove.
16692 (syms_of_w32fns): Update for above changes.
16693
16694 * w32font.c (w32_to_x_charset, x_to_w32_charset)
16695 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16696 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16697 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16698 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16699 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16700 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16701 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
16702 (syms_of_w32font): Update for above changes.
16703
167042008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
16705
16706 * s/usg5-4.h: Fix previous change: keep the correct branch of a
16707 removed #if.
16708 (USG_SHARED_LIBRARIES): Remove duplicate definition.
16709
167102008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 16711 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
16712
16713 * makefile.w32-in (LOCAL_FLAGS):
16714 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
16715
16716 * sysdep.c (_spawnlp, _getpid):
16717 Declare with explicit _cdecl instead of _CRTAPI1.
16718
16719 * editfns.c (Fget_internal_run_time):
16720 Check for WINDOWSNT with #ifdef, not #if.
16721
167222008-06-26 Jason Rumney <jasonr@gnu.org>
16723
16724 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
16725
16726 * w32term.c (x_draw_glyph_string_foreground)
16727 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
16728 Use FONT_HANDLE macro.
16729 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
16730
16731 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16732 (uniscribe_encode_char): Use FONT_HANDLE macro.
16733
16734 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
16735 (w32font_text_extents): Use precast w32_font.
16736 (w32font_close): Free cached metrics.
16737 (w32font_open_internal): Allocate space for name on stack.
16738
167392008-06-26 Chong Yidong <cyd@stupidchicken.com>
16740
16741 * xdisp.c (extend_face_to_end_of_line): Fix last change.
16742
167432008-06-26 Jason Rumney <jasonr@gnu.org>
16744
16745 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
16746 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
16747
167482008-06-26 Juanma Barranquero <lekktu@gmail.com>
16749
16750 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
16751
167522008-06-26 Jason Rumney <jasonr@gnu.org>
16753
16754 * w32bdf.c, w32bdf.h: Remove obsolete files.
16755
16756 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
16757
16758 * w32gui.h: Don't include w32bdf.h.
16759 (XCharStruct, enum w32_char_font_type, W32FontStruct):
16760 Remove obsolete font support.
16761
16762 * w32font.h (struct w32font_info): Remove compat_w32_font.
16763 Add hfont member.
16764 (FONT_COMPAT): Remove obsolete macro.
16765
16766 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
16767 (w32font_encode_char, w32font_text_extents): Use new hfont member.
16768 (w32font_open_internal): Remove compat code. Set new hfont member.
16769 (Fx_select_font): Use new hfont member.
16770
16771 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16772 (uniscribe_encode_char): Use new hfont member.
16773
16774 * w32term.c (x_draw_glyph_string_foreground)
16775 (x_draw_composite_glyph_string_foreground): Use new hfont member.
16776 (x_draw_glyph_string): Use metrics in w32font_info.
16777
167782008-06-26 Kenichi Handa <handa@m17n.org>
16779
16780 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
16781
167822008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
16783
16784 * unexnext.c:
16785 * m/ews4800.h:
16786 * m/hp9000s300.h:
16787 * m/ibm370aix.h:
16788 * m/mips-siemens.h:
16789 * m/ncr386.h:
16790 * m/next.h:
16791 * m/pmax.h:
16792 * m/powerpcle.h:
16793 * m/tandem-s2.h:
16794 * s/386bsd.h:
16795 * s/bsd386.h:
16796 * s/bsd4-1.h:
16797 * s/bsd4-2.h:
16798 * s/bsdos2-1.h:
16799 * s/bsdos2.h:
16800 * s/bsdos3.h:
16801 * s/bsdos4.h:
16802 * s/nextstep.h:
16803 * s/ultrix4-3.h:
16804 * s/usg5-0.h:
16805 * s/usg5-2-2.h:
16806 * s/usg5-2.h:
16807 * s/usg5-4-3.h:
16808 * s/ux4800.h:
16809 * s/uxpds.h:
16810 * s/uxpv.h: Remove support for obsolete systems.
16811 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 16812 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
16813 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
16814 Remove, insert contents in s/aix4-2.h.
16815 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
16816 * s/bsd4-3.h: Rename to ...
16817 * s/bsd-common.h: ... this.
16818 * data.c:
16819 * doc.c:
16820 * ecrt0.c:
16821 * emacs.c:
16822 * fileio.c:
16823 * floatfns.c:
16824 * keyboard.c:
16825 * mem-limits.h:
16826 * print.c:
16827 * process.c:
16828 * sysdep.c:
16829 * syssignal.h:
16830 * systty.h:
16831 * syswait.h:
16832 * term.c:
16833 * unexec.c:
16834 * unexelf.c:
16835 * unexhp9k800.c:
16836 * m/hp800.h:
16837 * m/ibmrs6000.h:
16838 * m/mips.h:
16839 * m/vax.h:
16840 * s/darwin.h:
16841 * s/freebsd.h:
16842 * s/gnu.h:
16843 * s/ms-w32.h:
16844 * s/msdos.h:
16845 * s/netbsd.h:
16846 * s/template.h: Remove references to obsolete variables.
16847
16848 * Makefile.in: Add dependencies for all unexec files.
16849 (admindir): Remove unused variable.
16850 (UNEXEC_SRC): Remove references.
16851
168522008-06-25 Chong Yidong <cyd@stupidchicken.com>
16853
16854 * xfns.c (x_default_font_parameter): If Xft is available, first
16855 try Monospace-12 for the default font.
16856
168572008-06-25 Jason Rumney <jasonr@gnu.org>
16858
16859 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
16860
168612008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
16862
16863 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
16864
16865 * buffer.c (syms_of_buffer): Remove default-word-wrap.
16866
168672008-06-25 Juanma Barranquero <lekktu@gmail.com>
16868
16869 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
16870 <scroll-conservatively>: Fix typo in docstring.
16871
16872 * xselect.c (Fx_send_client_event): Doc fix.
16873
168742008-06-25 Kenichi Handa <handa@m17n.org>
16875
16876 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
16877
16878 * font.c (font_parse_fcname): Remove unused variables.
16879 (font_sort_entites): Delete the arg SPEC. Caller changed.
16880 Fix for the case of ! best_only.
16881 (font_delete_unmatched): Check DPI and AVGWIDTH too.
16882
16883 * lisp.h (Fstring_to_unibyte): EXFUN it.
16884
16885 * character.h (str_to_unibyte): Extern it.
16886
16887 * character.c (str_to_unibyte): New function.
16888
16889 * fns.c (Fstring_to_unibyte): New function.
16890 (syms_of_fns): Defsubr it.
16891
168922008-06-24 Kenichi Handa <handa@m17n.org>
16893
16894 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
16895 DPI too.
16896 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
16897
168982008-06-24 Andreas Schwab <schwab@suse.de>
16899
16900 * Makefile.in (${lispsource}loaddefs.el): Rename from
16901 ../lisp/loaddefs.el.
16902 (bootstrap-clean): Do what distclean does but don't remove
16903 Makefile.
16904 (distclean): Depend on bootstrap-clean and remove Makefile.
16905
169062008-06-24 Chong Yidong <cyd@stupidchicken.com>
16907
16908 * buffer.h (struct buffer): New member word_wrap.
16909
16910 * buffer.c (syms_of_buffer): New variables default-word-wrap and
16911 word-wrap.
16912 (init_buffer_once): Initialize them.
16913
16914 * dispextern.h (struct it): Replace bool truncate_lines_p with a
16915 line_wrap enum possessing three possible values.
16916
16917 * termopts.h: Replace truncate_partial_width_windows with
16918 Vtruncate_partial_width_windows.
16919
16920 * dispnew.c (direct_output_for_insert): Avoid direct output when
16921 inserting a space with word wrap on.
16922
16923 * indent.c (compute_motion): Obey integer values of
16924 truncate-partial-width-windows.
16925
16926 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
16927 replacing truncate_partial_width_windows.
16928 (init_iterator): If Vtruncate_partial_width_windows is an integer,
16929 truncate only if the window width is below that integer.
16930 (start_display, resize_mini_window, produce_stretch_glyph)
16931 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
16932 (back_to_previous_visible_line_start, reseat_1):
16933 Reset string_from_display_prop_p.
aac0c6e3
MR
16934 (display_line): Extend default face to end of line when wrapping.
16935
169362008-06-24 Kim F. Storm <storm@cua.dk>
16937
16938 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
16939 to wrap continued lines at word boundaries.
16940
169412008-06-24 Jason Rumney <jasonr@gnu.org>
16942
16943 * font.c (Ffont_face_attributes): Multiply pixel size before point
16944 conversion to avoid multiplying rounding error.
16945
169462008-06-23 Jason Rumney <jasonr@gnu.org>
16947
16948 * w32term.c (x_draw_glyph_string_background)
16949 (x_draw_glyph_string): Remove old bdf font code.
16950
16951 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
16952
169532008-06-22 Kenichi Handa <handa@m17n.org>
16954
16955 * font.c (font_find_for_lface): Try the adstyle specified in
16956 the property of LFACE_FONT of LFACE (if any).
16957
169582008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16959 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16960
16961 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
16962
169632008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
16964
16965 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
16966 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
16967 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
16968 (witness-emacs): Remove.
16969 (lisp, shortlisp): Move loaddefs.el earlier.
16970 (mostlyclean): Forget about witness-emacs.
16971
169722008-06-22 Glenn Morris <rgm@gnu.org>
16973
16974 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
16975 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
16976
169772008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16978
16979 * Makefile.in (PRECOMP): Remove.
16980 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
16981 (witness-emacs): Run `compile-first'.
16982 (.el.elc): Use the new compile-onefile target.
16983
169842008-06-21 Kenichi Handa <handa@m17n.org>
16985
16986 * xftfont.c (xftfont_open): Handle QCembolden only when
16987 FC_EMBOLDEN is defined.
16988
169892008-06-21 Andreas Schwab <schwab@suse.de>
16990
16991 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
16992 (.el.elc): Likewise.
16993
169942008-06-21 Miles Bader <miles@gnu.org>
16995
16996 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
16997 build dir, not the lisp source dir.
16998
169992008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17000
17001 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17002 (bootstrapclean): Remove.
17003 (.el.elc): New rule.
17004 (PRECOMP): New var.
17005 (../lisp/subdirs.el): Remove.
17006 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17007 (witness-emacs): New target.
17008 (mostlyclean): Remove witness-emacs as well.
17009 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17010 Add witness-emacs dependency.
17011
170122008-06-20 Chong Yidong <cyd@stupidchicken.com>
17013
17014 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17015 defined by the font.
17016
170172008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17018
17019 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17020 (bootstrap-clean): New target that keeps TAGS around.
17021 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17022 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17023
170242008-06-20 Jason Rumney <jasonr@gnu.org>
17025
17026 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17027 Remove obsolete font code.
17028
17029 * w32font.c (font_matches_spec): Use csb bitfield from font signature
17030 to determine language support.
17031
170322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17033
17034 * sysdep.c (cfsetspeed): New fun extracted from the code.
17035 (cfmakeraw): Move before first use.
17036
170372008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
17038
17039 * sysdep.c (cfmakeraw): Provide fallback implementation.
17040 (serial_configure): Provide fallback implementation of cfsetspeed.
17041
170422008-06-20 Kenichi Handa <handa@m17n.org>
17043
17044 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
17045 the pattern.
17046
17047 * fontset.c (fontset_from_font): Copy font_spec before changing
17048 the elements.
17049
17050 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
17051
170522008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17053
17054 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
17055 for explicit `font' parameters.
17056
17057 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
17058
170592008-06-19 Kenichi Handa <handa@m17n.org>
17060
17061 * frame.c: Include <ctype.h>.
17062 (x_set_font_backend): Allow spacing characters in the X resource
17063 for FontBackend.
17064
170652008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
17066
17067 * w32fns.c, xfns.c (Qfont_param): New var.
17068 (syms_of_w32fns): Initialize it.
17069 (x_default_font_parameter): Record explicit `font' into
17070 `font-parameter'.
17071
170722008-06-18 Kenichi Handa <handa@m17n.org>
17073
17074 * font.c (font_parse_xlfd): Fix previous change.
17075 (font_parse_fcname): Don't use :fc-unknown-spec.
17076 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
17077 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
17078 (font_add_log): Prepend the driver name to the resulting fonts.
17079
17080 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
17081 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
17082 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
17083
17084 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
17085 (QCembolden): New variables.
17086 (syms_of_xftfont): DEFSYM them.
17087 (xftfont_open): Call XftFontMatch. Don't trust the result of
17088 XftTextExtents8 if the pixel_size is less than 5.
17089
170902008-06-18 Andreas Schwab <schwab@suse.de>
17091
17092 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
17093 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
17094
170952008-06-18 Jason Rumney <jasonr@gnu.org>
17096
17097 * w32font.c (w32font_list, w32font_match): Add logging.
17098
17099 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
17100
171012008-06-17 Chong Yidong <cyd@stupidchicken.com>
17102
17103 * font.c (font_parse_fcname): Store divider characters for
17104 unknown-spec list. For known key symbols, intern using correct
17105 symbol name.
17106
171072008-06-17 Kenichi Handa <handa@m17n.org>
17108
17109 * xfaces.c (realize_default_face): If the frame is not on window
17110 system, set the fontset of face to nil.
17111
171122008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
17113
17114 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
17115
171162008-06-16 Juanma Barranquero <lekktu@gmail.com>
17117
17118 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
17119 (build_font_name_from_vector): Delete externs.
17120
17121 * xfaces.c (struct font_name): Don't declare.
17122
171232008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
17124
17125 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
17126
171272008-06-16 Chong Yidong <cyd@stupidchicken.com>
17128
17129 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
17130
171312008-06-16 Juanma Barranquero <lekktu@gmail.com>
17132
17133 * font.c (Ffont_spec): Fix usage in docstring.
17134 (Ffont_face_attributes): Doc fix.
17135
171362008-06-16 Andreas Schwab <schwab@suse.de>
17137
17138 * font.c (Ffont_face_attributes): Fix definition.
17139
171402008-06-16 Jason Rumney <jasonr@gnu.org>
17141
17142 * font.h (font_style_symbolic_from_value): Remove.
17143
17144 * font.c (font_style_symbolic_from_value): Remove.
17145 (font_style_symbolic): Revert to pre 2008-06-13 version.
17146
17147 * w32font.c (w32_to_fc_weight): New function.
17148 (w32font_full_name, logfont_to_fcname): Use it.
17149
171502008-06-16 Kenichi Handa <handa@m17n.org>
17151
17152 * font.c (font_check_object): Delete it.
17153 (font_clear_cache): Check if a font-object is alive.
17154 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
17155 font-object to nil.
17156 (font_close_object): Don't check FONT_CLOSE_OBJECT.
17157 (font_at): Don't call font_check_object.
17158 (Ffont_get): Return a symbol for :weight, :slant, and :width.
17159
171602008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
17161
17162 * puresize.h (BASE_PURESIZE): Increase to 1230000.
17163
171642008-06-16 Chong Yidong <cyd@stupidchicken.com>
17165
17166 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
17167
171682008-06-15 Chong Yidong <cyd@stupidchicken.com>
17169
17170 * font.c (font_parse_fcname): Only one decimal point.
17171 (font_unparse_fcname): Handle data in family and foundry indices
17172 as symbols, not strings.
17173 (font_unparse_gtkname, Ffont_face_attributes): New functions.
17174
17175 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
17176
17177 * font.h (font_unparse_gtkname): Add prototype.
17178
171792008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
17180
17181 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
17182
171832008-06-15 Andreas Schwab <schwab@suse.de>
17184
17185 * font.c (font_update_drivers): Fix crash when no drivers match.
17186
171872008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
17188
17189 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
17190 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
17191
171922008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
17193
17194 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
17195
171962008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
17197
17198 * process.c (Fserial_process_configure, Fprocess_send_eof):
17199 Use EQ to compare Lisp_Objects.
17200
172012008-06-13 Jason Rumney <jasonr@gnu.org>
17202
17203 * w32fns.c (Fw32_select_font): Remove old font API function.
17204
17205 * w32font.c (logfont_to_fcname): New function.
17206 (Fx_select_font): New font dialog function compatible with
17207 GTK/fontconfig version.
17208
17209 * font.c (font_style_symbolic_from_value): New function.
17210 (font_style_symbolic): Use it.
17211
17212 * font.h (font_style_symbolic_from_value): Declare new function.
17213
172142008-06-13 Juanma Barranquero <lekktu@gmail.com>
17215
17216 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
17217 <font-width-table>: Fix typos in docstrings.
17218
172192008-06-13 Daniel Engeler <engeler@gmail.com>
17220
17221 These changes add serial port access.
17222 * process.c: Add HAVE_SERIAL.
17223 (Fdelete_process, Fprocess_status, Fset_process_buffer)
17224 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
17225 (list_processes_1, select_wrapper, Fstop_process)
17226 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
17227 (status_notify): Modify to handle serial processes.
17228 [HAVE_SERIAL] (Fserial_process_configure)
17229 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
17230 New functions.
17231 * process.h (struct Lisp_Process): Add `type'.
17232 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
17233 New functions.
17234 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
17235 serial ports.
b71ac3dd 17236 (serial_open, serial_configure): New functions.
aac0c6e3
MR
17237 * w32.h: Add FILE_SERIAL.
17238 (struct _child_process): Add ovl_read, ovl_write.
17239
172402008-06-13 Kenichi Handa <handa@m17n.org>
17241
17242 * dispextern.h (enum lface_attribute_index): New member
17243 LFACE_FOUNDRY_INDEX.
17244
17245 * font.c (font_score): Delete arg alternate_families. Check only
17246 weight, slant, width, and size. Ignore the difference of alias
17247 style symbols.
17248 (font_sort_entites): Adjust for the above change. Reflect the
17249 order of font-driver to scores.
17250 (font_list_entities): Don't check alternate_familes here.
17251 (font_clear_prop): Handle foundry.
17252 (font_update_lface): Don't parse "foundry-family" form here.
17253 Handle FONT_FOUNDRY_INDEX.
17254 (font_find_for_lface): Likewise. Handle alternate families here.
17255 If registry is nil, try iso8859-1 and ascii-0.
17256 (font_open_for_lface): Pay attention to size in ENTITY.
17257 (font_open_by_name): Simplify by calling font_load_for_lface.
17258 (free_font_driver_list): Delete it.
17259 (font_update_drivers): Preserve the order of backends.
17260 (syms_of_font): Setting of sort_shift_bits adjusted for the change
17261 of font_score and font_sort_entites.
17262 (font_update_sort_order): Likewise.
17263
17264 * xfaces.c (LFACE_FOUNDRY): New macro.
17265 (check_lface_attrs): Check foundry.
17266 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
17267 (merge_face_vectors): Check foundry.
17268 (merge_face_ref): Likewise.
17269 (Finternal_set_lisp_face_attribute): Likewise.
17270 (x_update_menu_appearance): Likewise.
17271 (Finternal_get_lisp_face_attribute): Likewise.
17272 (lface_hash): Likewise.
17273 (lface_same_font_attributes_p): Likewise.
17274 (x_supports_face_attributes_p): Likewise.
17275 (tty_supports_face_attributes_p): Likewise.
17276 (Finternal_set_alternative_font_family_alist): Intern strings.
17277 (Finternal_set_alternative_font_registry_alist): Downcase strings.
17278 (realize_default_face): Set LFACE_FOUNDRY (lface).
17279
17280 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
17281 font-driver at first.
17282
17283 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
17284
172852008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17286
17287 * lread.c (Fload): Use xfree, not free on saved_doc_string.
17288
172892008-06-12 Jim Meyering <meyering@redhat.com>
17290
17291 Make unexec_free handle NULL the same way free does.
17292 * unexmacosx.c (unexec_free): Ignore a NULL argument.
17293
172942008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17295
17296 * character.h (CHAR_TO_BYTE_SAFE): New macro.
17297 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
17298 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
17299 (WEAK_ALIAS): Simplify.
17300 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
17301 when searching a unibyte buffer.
17302
173032008-06-12 Chong Yidong <cyd@stupidchicken.com>
17304
17305 * xfns.c (Fx_select_font): Rename from x-font-dialog.
17306
173072008-06-12 Juanma Barranquero <lekktu@gmail.com>
17308
17309 * w32font.c: Include ctype.h.
17310
173112008-06-11 Jason Rumney <jasonr@gnu.org>
17312
17313 * w32font.c (w32font_encode_char): Detect missing glyphs that are
17314 misreported as space.
17315 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
17316 as aliases for registry iso10646-1.
17317
173182008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17319
17320 * buffer.c (clone_per_buffer_values): Skip `name'.
17321
173222008-06-11 Chong Yidong <cyd@stupidchicken.com>
17323
17324 * font.c (font_parse_fcname): Fix last change; accept decimal
17325 points in font size.
17326
173272008-06-10 Jason Rumney <jasonr@gnu.org>
17328
17329 * w32uniscribe.c (add_opentype_font_name_to_list):
17330 Skip non unicode fonts.
17331
173322008-06-10 Chong Yidong <cyd@stupidchicken.com>
17333
17334 * xfns.c (Fx_font_dialog): New function.
17335
17336 * gtkutil.c (xg_dialog_response_cb): Rename from
17337 xg_file_response_callback.
17338 (pop_down_dialog): Rename from pop_down_file_dialog.
17339 (xg_get_file_name): Callers changed.
17340 (xg_get_font_name): New function.
17341
17342 * gtkutil.h (xg_get_font_name): Insert prototype.
17343
173442008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
17345
17346 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
17347 x_underline_minimum_display_offset.
17348 (syms_of_xdisp): Declare it here rather than in xterm.c.
17349 * dispextern.h (underline_minimum_offset): Declare it.
17350 * w32term.c (x_draw_glyph_string): Use it.
17351 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
17352 (syms_of_xterm): Don't declare it any more.
17353 (x_draw_glyph_string): Adjust to the new name.
17354
8719abec 173552008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
17356
17357 * xterm.c (x_underline_minimum_display_offset): New var.
17358 (x_draw_glyph_string): Use it.
17359 (syms_of_xterm): Declare it.
17360
173612008-06-10 Chong Yidong <cyd@stupidchicken.com>
17362
17363 * font.c (font_parse_fcname): Accept GTK-style font names too.
17364
173652008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
17366
17367 * dired.c (file_name_completion): Don't return t if the match is exact
17368 but with different capitalization.
17369 * minibuf.c (Ftry_completion): Simplify.
17370
17371 * window.c (Vwindow_point_insertion_type): New var.
17372 (set_window_buffer): Use it.
17373 (syms_of_window): Init and export it to Lisp.
17374
173752008-06-10 Kenichi Handa <handa@m17n.org>
17376
17377 * font.h (font_intern_prop): Prototype adjusted.
17378
17379 * font.c (font_intern_prop): New arg force_symbol.
17380 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
17381 Adjust for the change of font_intern_prop.
17382
17383 * ftfont.c (ftfont_pattern_entity):
17384 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
17385 (w32_registry):
17386 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
17387 the change of font_intern_prop.
17388
173892008-06-09 Juanma Barranquero <lekktu@gmail.com>
17390
17391 * w32menu.c (digest_single_submenu): Declare extern.
17392
173932008-06-09 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32term.c (x_make_frame_visible): Use alternate restore flags.
17396
17397 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
17398 (parse_single_submenu): Remove.
17399 (digest_single_submenu): Remove.
17400 (syms_of_w32menu): Don't initialise variables that have moved
17401 to menu.c.
17402 (set_frame_menubar): Sync with version in xmenu.c.
17403 (w32_menu_show): Sync with xmenu_show in xmenu.c.
17404
17405 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
17406 Make static again.
17407
174082008-06-09 Jason Rumney <jasonr@gnu.org>
17409
17410 Changes to w32 files related to the move of common menu code
17411 to menu.c on 2008-06-08 by Chong Yidong.
17412
17413 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
17414 defs to w32gui.h.
17415 (single_keymap_panes, push_menu_item, push_menu_pane):
17416 Make globally visible.
17417
17418 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
17419 (local_free, malloc_widget_value, free_widget_value)
17420 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
17421 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
17422 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
17423 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
17424 (menu_items, menu_items_allocated, menu_items_used)
17425 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
17426 (init_menu_items, finish_menu_items, discard_menu_items)
17427 (grow_menu_items, push_submenu_start, push_submenu_end)
17428 (push_left_right_boundary, push_menu_pane, push_menu_item)
17429 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
17430 (free_menubar_widget_tree_value, parse_single_submenu)
17431 (update_submenu_strings): Remove functions.
17432 (xmalloc_widget_value): Remove and declare extern.
17433
17434 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
17435 (OBJ1): Build it.
17436
17437 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
17438 (local_heap, local_alloc, local_free, malloc_widget_value)
17439 (free_widget_value): Define here.
17440
174412008-06-09 Kenichi Handa <handa@m17n.org>
17442
17443 * font.h (Qascii_0): Extern it.
17444
17445 * font.c (Qascii_0): New variable.
17446 (syms_of_font): DEFSYM it.
17447 (font_open_by_name): If the registry "iso8859-1" fails, try also
17448 "ascii-0".
17449
17450 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
17451
174522008-06-08 Kenichi Handa <handa@m17n.org>
17453
17454 * .gdbinit (xfont): New command.
17455
174562008-06-08 Andreas Schwab <schwab@suse.de>
17457
17458 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
17459 * Makefile.in (menu.o): Update dependencies.
17460
17461 * Makefile.in (obj): Always add menu.o.
17462 * emacs.c (main): Always call syms_of_menu.
17463 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
17464
174652008-06-08 Chong Yidong <cyd@stupidchicken.com>
17466
17467 * Makefile.in: Compile menu.c.
17468
17469 * lisp.h: Declare syms_of_menu.
17470
17471 * emacs.c (main): Call syms_of_menu.
17472
17473 * keyboard.h: Relocate platform-independent menu definitions from
17474 xmenu.c.
17475
17476 * menu.c: New file. Relocate platform-independent menu
17477 definitions from xmenu.c. Suggested by Adrian Robert.
17478
17479 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 17480 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
17481 (menu_items_used, menu_items_n_panes)
17482 (menu_items_submenu_depth): Move to keyboard.h.
17483 (init_menu_items, finish_menu_items, unuse_menu_items)
17484 (discard_menu_items, restore_menu_items, save_menu_items)
17485 (grow_menu_items, push_submenu_start, push_submenu_end)
17486 (push_left_right_boundary, push_menu_pane, push_menu_item)
17487 (keymap_panes, single_keymap_panes, single_menu_item)
17488 (list_of_panes, list_of_items, find_and_call_menu_selection)
17489 (xmalloc_widget_value, free_menubar_widget_value_tree)
17490 (parse_single_submenu, digest_single_submenu)
17491 (update_submenu_strings): Move to menu.c.
17492
174932008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
17494
17495 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
17496
174972008-06-06 Miles Bader <miles@gnu.org>
17498
17499 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
17500 face, not frame default.
17501
175022008-06-05 Martin Rudalics <rudalics@gmx.at>
17503
17504 * window.c (pop_up_windows, pop_up_frames)
17505 (display_buffer_reuse_frames, Vpop_up_frame_function)
17506 (Vdisplay_buffer_function, Veven_window_heights)
17507 (Vspecial_display_buffer_names, Vspecial_display_regexps)
17508 (Vspecial_display_function, Vsame_window_buffer_names)
17509 (Vsame_window_regexps, split_height_threshold)
17510 (Vsplit_window_preferred_function): Move those vars to window.el.
17511 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
17512 (Fdisplay_buffer): Move those functions to window.el.
17513 (syms_of_window): Remove corresponding declarations.
17514 (display_buffer): New function.
17515 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
17516 * dispnew.c (Flast_nonminibuf_frame): New function.
17517 * buffer.c (Fpop_to_buffer): Move to window.el.
17518
175192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
17520
17521 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
17522
175232008-06-05 Kenichi Handa <handa@m17n.org>
17524
17525 * coding.c (detect_coding): Fix previous change.
17526 (detect_coding_system): Likewise.
17527
175282008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
17529
17530 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
17531
17532 * keymap.c (Vminibuffer_local_filename_must_match_map):
17533 Rename from Vminibuffer_local_must_match_filename_map.
17534 (syms_of_keymap):
17535 * minibuf.c (Fcompleting_read): Adjust accordingly.
17536 * commands.h: Rename declaration as well.
17537
175382008-06-05 Kenichi Handa <handa@m17n.org>
17539
17540 * font.c (Ffont_spec): Don't use font_parse_family_registry for
17541 family name.
17542 (Ffont_put): Likewise.
17543
17544 * fontset.c (fontset_find_font): Call font_open_for_lface with the
17545 current font-spec.
17546
17547 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
17548 is unspecified.
17549
17550 * xfaces.c (realize_x_face): If the font-related face attributes
17551 are the same as those of default face, realize a new fontset from
17552 default->fontset.
17553 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
17554
175552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
17556
17557 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
17558 (move_it_in_display_line): New wrapper.
17559
17560 * window.c (window_scroll_pixel_based_preserve_x)
17561 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
17562 (window_scroll_pixel_based, window_scroll_line_based):
17563 Use them to preserve column positions.
17564 (syms_of_window): Initialize them.
17565
17566 * indent.c (Fvertical_motion): Extend first arg to allow passing an
17567 (HPOS . VPOS) pair.
17568
17569 * dispextern.h (move_it_in_display_line): Declare.
17570
175712008-06-05 Juanma Barranquero <lekktu@gmail.com>
17572
17573 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
17574 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
17575 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
17576
175772008-06-04 Juanma Barranquero <lekktu@gmail.com>
17578
17579 * window.c (Fset_window_parameter): Doc fix.
17580 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
17581
175822008-06-04 Joakim Verona <joakim@verona.se>
17583
17584 * window.h (struct window): Add new member window_parameters.
17585
17586 * window.c (Fwindow_parameters, Fwindow_parameter)
17587 (Fset_window_parameter): New defuns.
17588 (syms_of_window): Defsubr the new defuns.
17589 (make_window): Initialize window_parameters to nil.
17590
175912008-06-04 John Paul Wallington <jpw@pobox.com>
17592
17593 * eval.c (Fdefmacro): Doc fix.
17594
175952008-06-04 Kenichi Handa <handa@m17n.org>
17596
17597 * coding.c (detect_coding): Fix handling of coding->head_ascii.
17598 Be sure to call setup_coding_system when we find a proper coding system.
17599 (detect_coding_system): Fix handling of coding->head_ascii.
17600
176012008-06-03 Andreas Schwab <schwab@suse.de>
17602
17603 * font.c (font_prop_validate_spacing): Fix last change.
17604
176052008-06-03 Kenichi Handa <handa@m17n.org>
17606
17607 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
17608 (font_parse_fcname): Fix handling of unknown key.
17609
17610 * xfont.c (xfont_list): Try an alias.
17611
17612 * charset.c (char_charset): Return NULL if the arg charset_list is
17613 specified and C doesn't belong to any of them.
17614
176152008-06-02 Chip Coldwell <coldwell@redhat.com>
17616
17617 * font.c (font_pixel_size): Don't take cdr of an integer.
17618
176192008-06-02 Jim Meyering <meyering@redhat.com>
17620
17621 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
17622 * alloc.c (xfree): Return right away for a NULL arg.
17623 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
17624 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
17625 * mac.c (create_apple_event_from_event_ref): Likewise.
17626 (create_apple_event_from_drag_ref, cfstring_create_normalized):
17627 Likewise.
17628 * doprnt.c (doprnt1): Likewise.
17629 * frame.c (frame): Likewise.
17630 * keyboard.c (wipe_kboard): Likewise.
17631 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
17632 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
17633 * term.c (tty_default_color_capabilities, maybe_fatal)
17634 (delete_tty): Likewise.
17635 * w16select.c (string): Likewise.
17636 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
17637 * w32bdf.c (w32_free_bdf_font): Likewise.
17638 * w32fns.c (w32_unload_font): Likewise.
17639 * w32font.c (w32font_close): Likewise.
17640 * window.c (size_window): Likewise.
17641 * xselect.c (receive_incremental_selection): Likewise.
17642 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
17643 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
17644 * w32.c (stat): Likewise.
17645
17646 Remove useless if-before-free tests.
17647 * editfns.c (Fset_time_zone_rule): Likewise.
17648 * lread.c (nosuffix): Likewise.
17649 * ralloc.c (get_bloc): Likewise.
17650 * regex.c (reg_free): Likewise.
17651 * xftfont.c (xftfont_open, xftfont_close): Likewise.
17652 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
17653 * xsmfns.c (smc_save_yourself_CB): Likewise.
17654
176552008-06-02 Kenichi Handa <handa@m17n.org>
17656
17657 * font.c (font_find_for_lface): Handle float font size.
17658 (font_open_for_lface): Likewise.
17659
17660 * xfaces.c (x_supports_face_attributes_p): Check face->font before
17661 comparing the properties.
17662
176632008-06-01 Jason Rumney <jasonr@gnu.org>
17664
17665 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
17666 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
17667 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
17668 Don't add empty script list.
17669 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
17670
176712008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
17672
17673 * Makefile.in (dot, dotdot): Remove, update users.
17674 ".." has been used elsewhere in the file for a long time.
17675 (LIBXT_STATIC): Remove conditional based on unused variable.
17676
176772008-06-01 Miles Bader <miles@gnu.org>
17678
17679 * xfaces.c (Vface_remapping_alist): New variable.
17680 (syms_of_xfaces): Initialize it.
17681 (enum named_merge_point_kind): New type.
17682 (struct named_merge_point): Add `named_merge_point_kind' field.
17683 (push_named_merge_point): Make cycle detection respect different
17684 named-merge-point kinds.
17685 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
17686 Remove face-name alias resolution.
17687 (lface_from_face_name): New definition using
17688 `lface_from_face_name_no_resolve'.
17689 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
17690 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
17691 (get_lface_attributes): New definition that layers face-remapping on
17692 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
17693 (lookup_basic_face): New function.
17694 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
17695 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
17696 `get_lface_attributes'.
17697 (face_at_buffer_position): Use `lookup_basic_face' to lookup
17698 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
17699 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
17700
17701 * xdisp.c (init_iterator): Pass base_face_id through
17702 `lookup_basic_face' when we actually use it as a face-id.
17703 (handle_single_display_prop): Use `lookup_basic_face' to lookup
17704 DEFAULT_FACE_ID.
17705
17706 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
17707 lookup the initial face-id.
17708
17709 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
17710
177112008-06-01 Juanma Barranquero <lekktu@gmail.com>
17712
17713 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
17714 (Fremove_text_properties): Fix typos in docstrings.
17715
177162008-05-31 Kenichi Handa <handa@m17n.org>
17717
17718 * font.c (font_list_entities): Fix the car part of data to be
17719 stored in the cache.
17720
17721 * ftfont.c (ftfont_font_format): Don't use strcasestr.
17722
177232008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
17724
17725 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
17726 Add a `test' argument so another predicate than `equal' can be used.
17727 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
17728 (map_char_table): Remove unused vars `c' and `i'.
17729 * lisp.h (Foptimize_char_table): Adjust declaration.
17730 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
17731
177322008-05-30 Kenichi Handa <handa@m17n.org>
17733
17734 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
17735 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
17736 defined.
17737
177382008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
17739
17740 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17741 (Fmake_variable_frame_local): Disallow mixing buffer-local and
17742 frame-local settings for the same variable.
17743
177442008-05-30 Kenichi Handa <handa@m17n.org>
17745
17746 * fontset.c (Ffont_info): Move to font.c.
17747 (syms_of_fontset): Delete defsubr of Sfont_info.
17748
17749 * font.c (font_style_to_value, font_score): Delete casting of the
17750 args to xstcasecmp.
17751 (register_font_driver): Increment num_font_drivers only when
17752 registering the driver globally.
17753 (Ffont_info): Move from fontset.c. Handle a font object too.
17754 (syms_of_font): Defsubr Sfont_info.
17755
177562008-05-29 Kenichi Handa <handa@m17n.org>
17757
17758 * coding.h (enum define_coding_utf8_arg_index): New enum.
17759 (enum coding_attr_index): Change coding_attr_utf_16_bom to
17760 coding_attr_utf_bom.
17761 (enum utf_bom_type): Rename from utf_16_bom_type.
17762 (struct utf_16_spec): Adjust for the above change.
17763 (struct coding_system): Add utf_8_bom in `spec' union.
17764
17765 * coding.c (CODING_UTF_8_BOM): New macro.
17766 (enum coding_category): Delete coding_category_utf_8, add
17767 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
17768 coding_category_utf_8_sig.
17769 (CATEGORY_MASK_UTF_8): Delete it.
17770 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
17771 (CATEGORY_MASK_UTF_8_SIG): New macros.
17772 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
17773 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
17774 CATEGORY_MASK_UTF_8_SIG.
17775 (CATEGORY_MASK_UTF_8): New macro.
17776 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
17777 (detect_coding_utf_8): Check BOM.
17778 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
17779 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
17780 (encode_coding_utf_16): Likewise.
17781 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
17782 (detect_coding, detect_coding_system): Handle utf-8-auto.
17783 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
17784 (syms_of_coding): Fix setting up of Vcoding_category_table.
17785
177862008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
17787
17788 * process.c (Faccept_process_output): If `millisec' is non-nil,
17789 `seconds' default to 0.
17790 (wait_reading_process_output): Also return non-nil if we read output
17791 from a non-running process.
17792
177932008-05-29 Jason Rumney <jasonr@gnu.org>
17794
17795 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
17796 `raster' specified.
17797 (add_font_entity_to_list): Allow non-opentype truetype fonts back
17798 in the uniscribe backend, but disallow any font that has no
17799 unicode subrange support.
17800
178012008-05-29 Juanma Barranquero <lekktu@gmail.com>
17802
17803 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
17804 Fix typos in docstrings.
17805
178062008-05-29 Kenichi Handa <handa@m17n.org>
17807
17808 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
17809 (Fx_family_fonts): Set frame correctly.
17810
178112008-05-28 Jason Rumney <jasonr@gnu.org>
17812
17813 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
17814
178152008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
17816
17817 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
17818 calling build_annotations.
17819
178202008-05-28 Juanma Barranquero <lekktu@gmail.com>
17821
17822 * coding.c (Fdecode_coding_region, Fencode_coding_region)
17823 (Fencode_coding_string):
17824 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
17825 <latin-extra-code-table>: Fix typos in docstrings.
17826 (syms_of_coding) <coding-system-alist>: Doc fix.
17827 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
17828
178292008-05-28 Kenichi Handa <handa@m17n.org>
17830
17831 * fontset.c (Ffont_info): Don't call font_close_object.
17832
17833 * font.c (font_parse_family_registry): Use Ffont_put to validate
17834 foundry and family.
17835 (font_delete_unmatched): Don't check spacing.
17836 (font_list_entities): Add spacing to the spec to list fonts.
17837
17838 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
17839 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
17840
17841 * coding.c (encode_coding_raw_text): Fix previous change.
17842 (encode_coding_object): When the dst_object is a buffer and is
17843 different from src_object, move gap to PT.
17844
178452008-05-27 Chong Yidong <cyd@stupidchicken.com>
17846
17847 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
17848
178492008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17850
17851 * coding.c (encode_coding_raw_text): Set coding->produced_char for
17852 all branches. Compute it differently.
17853
17854 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
17855
178562008-05-27 Juanma Barranquero <lekktu@gmail.com>
17857
17858 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
17859 into "else if () ... else ...".
17860
178612008-05-27 Jason Rumney <jasonr@gnu.org>
17862
17863 * w32font.c (w32font_open_internal): Determine if glyph indices
17864 are likely to work here.
17865
178662008-05-27 Chong Yidong <cyd@stupidchicken.com>
17867
17868 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
17869 draw overlap glyphs with appropriate highlighting.
17870
178712008-05-27 Kenichi Handa <handa@m17n.org>
17872
17873 * xfont.c (xfont_open): Fix calculation of font->average_width.
17874
178752008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17876
17877 * casefiddle.c (casify_object): Try to guess better whether the
17878 argument is a byte or a char.
17879
178802008-05-26 Andreas Schwab <schwab@suse.de>
17881
17882 * xselect.c (x_reply_selection_request): Properly handle format == 32.
17883 Always send multiples of format size.
17884
17885 * xterm.c (x_set_frame_alpha): Fix type mismatch.
17886
178872008-05-26 Jason Rumney <jasonr@gnu.org>
17888
17889 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
17890 (compute_metrics): Don't set failure if we just cleared the cache.
17891 (w32_weight_table): Remove unused variable.
17892 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
17893 backwards compatibility.
17894
178952008-05-25 Kenichi Handa <handa@m17n.org>
17896
17897 * w32term.c (x_draw_glyph_string):
17898 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
17899
17900 * xfaces.c: Delete unused function prototypes.
17901 (xstrlwr, font_frame): Delete them.
17902 (clear_face_cache): Delete unused variable.
17903
17904 * xftfont.c (xftfont_open): Delete unused variable.
17905 If underline_thickness is not 1, adjust underline_position.
17906
17907 * ftxfont.c (ftxfont_open): Delete unused variable.
17908
17909 * fontset.c (face_for_char): Optimize for the case of no charset
17910 property.
17911
17912 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
17913 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
17914 (otf_open, font_otf_capability, generate_otf_features)
17915 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17916 Comment out by surrounding "#if 0" and "#endif" for the moment.
17917 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
17918 (syms_of_font): Codes for accessing above commented out.
17919
179202008-05-24 Eli Zaretskii <eliz@gnu.org>
17921
17922 * w32proc.c: Include dispextern.h.
17923
17924 * w32.c: Include dispextern.h.
17925
179262008-05-23 Juanma Barranquero <lekktu@gmail.com>
17927
17928 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
17929 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
17930 Fix typos in docstrings.
17931
179322008-05-23 Jason Rumney <jasonr@gnu.org>
17933
17934 * xsmfns.c: Remove includes that are already included by config.h.
17935
179362008-05-23 Kenichi Handa <handa@m17n.org>
17937
17938 * charset.c (Qemacs, charset_emacs): New variables.
17939 (char_charset): Fix for non-Unicode characters.
17940 (syms_of_charset): Define charset_emacs.
17941
17942 * w32term.c (x_draw_glyph_string): Be sure to update
17943 s->underline_thickness and s->underline_position. Be sure to draw
17944 underline within the current line area.
17945
17946 * xterm.c (x_draw_glyph_string): Be sure to update
17947 s->underline_thickness and s->underline_position. Be sure to draw
17948 underline within the current line area.
17949
17950 * fontset.c: Delete unused variables and add casting for char *
17951 throughout the file.
17952 (fontset_font): Try the fallback fonts of the current fontset
17953 before consulting the default fontset.
17954
17955 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
17956
17957 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
17958
179592008-05-22 Jason Rumney <jasonr@gnu.org>
17960
17961 * font.c: Don't include strings.h.
17962
17963 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
17964
17965 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
17966 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
17967 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
17968 to call xstrcasecmp.
17969
17970 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
17971
17972 * fontset.c (fs_query_fontset): Use xstrcasecmp.
17973
17974 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
17975
17976 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
17977
179782008-05-22 Kenichi Handa <handa@m17n.org>
17979
17980 * puresize.h (BASE_PURESIZE): Increase to 1220000.
17981
17982 * font.c (font_prop_validate_style): Adjust for the format
17983 change of font_style_table.
17984
17985 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
17986 two args.
17987
17988 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
17989 two args.
17990
179912008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
17992
17993 * minibuf.c (keys_of_minibuf): Delete.
17994 * lisp.h (keys_of_minibuf): Delete.
17995 * emacs.c (main): Don't call keys_of_minibuf.
17996
179972008-05-22 Kenichi Handa <handa@m17n.org>
17998
17999 * ftfont.c (ftfont_resolve_generic_family): Rename from
18000 ftfont_list_generic_family. Return a single family for each
18001 generic family.
18002 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18003 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18004 Call font_add_log.
18005 (ftfont_match): Call font_add_log.
18006
18007 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18008 (FONT_DEBUG): Define it.
18009 (font_add_log): Extern it.
18010 (font_assert): Rename from xassert.
18011
18012 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18013 (xfont_list_family): Call font_add_log.
18014 (xfont_match): Likewise.
18015 (memq_no_quit): Delete.
18016
18017 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18018 call of Ffont_xlfd_name.
18019
18020 * xfaces.c (struct table_entry, slant_table, weight_table)
18021 (swidth_table): Move to font.c.
18022
18023 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18024 xassert are changed to font_assert. Delete many unused variables.
18025 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18026 New variables.
18027 (struct table_entry): Move from xfaces.c and modified.
18028 (weight_table, slant_table, width_table): Move from xfaces.c and
18029 contents adjusted for the change of struct table_entry.
18030 (font_style_to_value, font_style_symbolic): Adjust for the
18031 format change of font_style_table.
18032 (font_parse_family_registry): Don't overwrite existing foundry and
18033 family of font_spec.
18034 (font_score): Fix calculation of diff for sizes.
18035 (font_sort_entites): Call font_add_log.
18036 (font_delete_unmatched): Return a newly created list.
18037 (font_list_entities): Fix previous change. Call font_add_log.
18038 (font_matching_entity, font_open_entity, font_close_entity):
18039 Call font_add_log.
18040 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
18041 (Finternal_set_font_style_table): Delete.
18042 (BUILD_STYLE_TABLE): New macro.
18043 (build_style_table): New function.
18044 (Vfont_log, font_log_env_checked): New variables.
18045 (font_add_log): New function.
18046 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
18047 Declare Lisp variables "font-weight-table", "font-slant-table",
18048 "font-width-table", and "font-log". Initialize font_style_table.
18049
180502008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
18051
18052 * xterm.c (x_set_frame_alpha): Move declarations before statements.
18053
180542008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18055 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18056
18057 * frame.c (Qalpha): Add a new frame parameter `alpha'.
18058 (Vframe_alpha_lower_limit): New variable.
18059 (x_set_alpha): New function.
18060
18061 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
18062
18063 * xfns.c (x-create-frame, Qalpha):
18064 Initialize the frame parameter `alpha'.
18065 * xterm.c (OPAQUE, OPACITY): New.
18066 (x_set_frame_alpha): New function.
18067 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
18068
18069 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
18070 * w32fns.c (w32_frame_parm_handlers): Likewise.
18071
180722008-05-20 Jason Rumney <jasonr@gnu.org>
18073
18074 * w32font.c (add_font_entity_to_list): Don't add non-opentype
18075 truetype fonts to opentype list.
18076
180772008-05-20 Juanma Barranquero <lekktu@gmail.com>
18078
18079 * fontset.c (Ffontset_info): Doc fix.
18080 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
18081 <ignore-relative-composition>: Fix typos in docstrings.
18082
18083 * font.c (syms-of-font) <font-encoding-alist>:
18084 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
18085 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
18086 (Ffont_otf_alternates): Doc fixes.
18087
180882008-05-20 Kenichi Handa <handa@m17n.org>
18089
18090 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
18091 font.h through out the file.
18092 (FONT_DRIVERS): Rename from FONTOBJ.
18093 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
18094 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
18095
18096 * emacs.c (main): Call syms_of_font unconditionally.
18097
18098 * font.h (find_font_encoding): Extern it.
18099
18100 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
18101 fontset.c.
194d44e7 18102 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
18103 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
18104 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
18105 only when HAVE_WINDOW_SYSTEM is defined.
18106 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
18107 when HAVE_WINDOW_SYSTEM is defined.
18108
18109 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
18110 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
18111
18112 * xfaces.c: Include font.h unconditionally.
18113 (merge_face_ref, merge_face_vectors)
18114 (Finternal_set_lisp_face_attribute): Cancel the previous change.
18115
181162008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
18117
18118 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
18119 indirect_variable.
18120 * eval.c (lisp_indirect_variable): New fun.
18121 (Fuser_variable_p): Use it.
18122
181232008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18124
18125 * lisp.h (indirect_variable):
18126 * data.c (indirect_variable, let_shadows_buffer_binding_p):
18127 Use Lisp_Symbol pointers rather than Lisp_Object.
18128 Adjust callers.
18129 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
18130 To this end, change calling-convention.
18131
18132 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
18133 if some non-hidden buffers are selected by string&pred.
18134
181352008-05-19 Chong Yidong <cyd@stupidchicken.com>
18136
18137 * process.c (wait_reading_process_output): Always check status
18138 when in batch mode.
18139
181402008-05-19 Kenichi Handa <handa@m17n.org>
18141
18142 * font.c (font_list_entities): Fix handling of cache.
18143 (font_matching_entity): Likewise.
18144
18145 * ftfont.c (cs_iso8859_1): Delete.
18146 (ft_face_cache): New variable.
18147 (struct ftfont_info): New member fc_charset_idx.
18148 (ftfont_build_basic_charsets): Delete.
18149 (fc_charset_table): New variable.
18150 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
18151 . FC_CHARSET_IDX) as :font-entity property in the font entity.
18152 Callers changed.
18153 (ftfont_lookup_cache, ftfont_get_charset): New functions.
18154 (ftfont_spec_pattern): New argument fc_charset_idx.
18155 Check registry more rigidly. Change callers.
18156 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
18157 change of :font-entity property of the font.
18158
18159 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
18160 property of the font.
18161
181622008-05-18 Juanma Barranquero <lekktu@gmail.com>
18163
18164 * coding.c (Fcoding_system_p): Rename argument to match docstring.
18165 (Funencodable_char_position, Fcheck_coding_systems_region)
18166 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
18167 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
18168 (Ffind_operation_coding_system, Fset_coding_system_priority)
18169 (Fcoding_system_eol_type): Doc fixes.
18170
181712008-05-17 Glenn Morris <rgm@gnu.org>
18172
18173 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
18174
181752008-05-16 Eli Zaretskii <eliz@gnu.org>
18176
18177 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
18178 and st_gid.
18179
18180 * frame.c (Fdelete_frame): Don't call font_update_drivers if
18181 HAVE_WINDOW_SYSTEM is not defined.
18182
18183 * xfaces.c (merge_face_ref, merge_face_vectors)
18184 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
18185 HAVE_WINDOW_SYSTEM is defined.
18186 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
18187
181882008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
18189
18190 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
18191
181922008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18193
18194 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
18195
181962008-05-15 Kenichi Handa <handa@m17n.org>
18197
18198 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
18199 preference.
18200
182012008-05-15 Glenn Morris <rgm@gnu.org>
18202
18203 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
18204
182052008-05-15 Chong Yidong <cyd@stupidchicken.com>
18206
18207 * fns.c (init_fns): Don't initialize weak_hash_tables here.
18208 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
18209
18210 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
18211
182122008-05-15 Kenichi Handa <handa@m17n.org>
18213
18214 * ftfont.c (ftfont_list): Downcase family name to check generic
18215 families.
18216
18217 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
18218 font-spec for QCfont value.
18219
18220 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
18221 buffer. Check the return value of it.
18222
182232008-05-14 Jason Rumney <jasonr@gnu.org>
18224
18225 * w32term.c (w32_get_glyph_overhangs): Remove.
18226 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
18227
182282008-05-14 Kenichi Handa <handa@m17n.org>
18229
18230 * font.c (font_prop_validate): Make nil a valid value.
18231 (font_clear_cache): Check if the cached vector of entities is nil
18232 or not.
18233
182342008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18235
18236 * emacs.c (main_thread): Conditionalize on
18237 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18238 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
18239
18240 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
18241 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
18242 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18243
182442008-05-14 Kenichi Handa <handa@m17n.org>
18245
18246 * coding.c (detect_coding_iso_2022): Ignore a coding category that
18247 has no corresponding coding system.
18248
182492008-05-14 Jason Rumney <jasonr@gnu.org>
18250
18251 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
18252
18253 * w32font.h (w32font_open_internal): Update declaration.
18254
18255 * w32font.c (w32font_open_internal): Change last argument from
18256 w32font_info struct to font object. Fill in font object from
18257 font_entity. Get Outline metrics if possible. Use them to
18258 calculate underline position and thickness. Use xlfd name as name
18259 property. Don't set codepage.
18260 (w32font_open): Pass font_object to w32font_open_internal. Don't
18261 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
18262 (w32font_draw): Use s->font.
18263 (clear_cached_metrics): Don't clear non-existent blocks.
18264
18265 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
18266 font was not found.
18267 (x_draw_glyph_string): Use underline position and thickness from font.
18268
18269 * w32uniscribe.c (uniscribe_open): Pass font_object to
18270 w32font_open_internal.
18271
182722008-05-14 Kenichi Handa <handa@m17n.org>
18273
18274 These changes are to delete all legacy font-handling codes, and
18275 make Emacs use only font-backends.
18276
18277 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
18278 (frame.o, image.o, print.o): Depend on $(FONTSRC).
18279
18280 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
18281
18282 * charset.h (Vcharset_non_preferred_head)
18283 (Vcurrent_iso639_language): Extern them.
18284
18285 * charset.c (Vcharset_non_preferred_head): New variable.
18286 (Vcurrent_iso639_language): New variable.
18287 (syms_of_charset): Declare it as a Lisp variable.
18288 (char_charset): Don't check non preferred charsets. As a last
18289 resort, return charset_unicode.
18290 (Fset_charset_priority): Update Vcharset_non_preferred_head.
18291
18292 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
18293 conditionals. Don't check enable_font_backend. Delete all codes
18294 used only when USE_FONT_BACKEND is not defined.
18295
18296 * dispextern.h (struct glyph_string): Change type of `font' to
18297 `struct font *'.
18298 (struct glyph_string): New member underline_position and
18299 underline_thickness.
18300 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
18301 (struct face): Change type of `font' to `struct font *'.
18302 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
18303 (per_char_metric, encode_char): Delete externs.
18304 (calc_pixel_width_or_height): Adjust the prototype.
18305
18306 * emacs.c (enable_font_backend): Delete extern.
18307 (main): Don't set enable_font_backend. Don't check the command
18308 line argument "-disable-font-backend".
18309
18310 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
18311 (enum font_property_index): New members FONT_DPI_INDEX,
18312 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
18313 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
18314 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
18315 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
18316 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
18317 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
18318 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
18319 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
18320 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 18321 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
18322 (struct font): Many members from old "struct font_info" moved to
18323 here. Members font and entity deleted.
18324 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
18325 the new font-related objects.
18326 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
18327 (CHECK_FONT_GET_OBJECT): Likewise.
18328 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 18329 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
18330 (struct font_driver): New members case_sensitive anc check.
18331 Type of the member list and open changed.
aac0c6e3
MR
18332 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
18333 (font_symbolic_width, font_find_object, font_get_spec)
18334 (font_set_lface_from_name): Delete extern.
18335 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
18336
18337 * font.c: Include <strings.h>.
18338 (enable_font_backend): Delete it.
18339 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
18340 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 18341 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
18342 (null_string): Delete it.
18343 (null_vector): Make it static.
18344 (font_family_alist): Delete it.
18345 (Qnormal): Extern it.
18346 (QCextra, QClanguage): Delete it.
18347 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
18348 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 18349 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 18350 the string. Callers changed.
bba3e508 18351 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
18352 objects.
18353 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
18354 (font_style_to_value, font_style_symbolic): New function.
18355 (build_font_family_alist): Delete it.
18356 (font_registry_charsets): Use Fassoc_string instead of
18357 assq_no_quit.
18358 (font_prop_validate_symbol): Don't return null_string.
bba3e508 18359 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
18360 style-related values in a font vector.
18361 (font_property_table): Delete entries for QClanguage and
18362 QCantialias, add entries for QCavgwidth.
18363 (get_font_prop_index): Delete the 2nd argument FROM.
18364 (font_prop_validate): Arguments changed.
bba3e508 18365 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
18366 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
18367 (font_parse_fcname, font_unparse_fcname)
18368 (font_prepare_composition): Likewise.
ef1b0ba7 18369 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 18370 (otf_open): Delete the 1st arg entity.
bba3e508 18371 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
18372 (font_score): New arg alternate_families. Adjusted for the change
18373 of font-related objects.
18374 (font_sort_entites): New arg best_only.
18375 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
18376 Delete them.
18377 (font_match_p): Check alternate families.
18378 (font_find_object): Delete it.
18379 (font_check_object): New function.
bba3e508 18380 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
18381 (font_delete_unmatched): New arg.
18382 (font_list_entities): Call font_driver->list with a spec that
18383 doesn't specify style-related properties.
18384 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 18385 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
18386 (font_close_object, font_has_char, font_encode_char)
18387 (font_get_name, font_get_spec): Likewise.
18388 (font_spec_from_name, font_clear_prop, font_update_lface):
18389 New functions.
18390 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
18391 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 18392 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
18393 (font_range): New function.
18394 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 18395 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 18396 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 18397 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
18398 (Finternal_set_font_style_table): Arguments changed.
18399 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 18400 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
18401 change of font-related objects.
18402 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
18403
18404 * fontset.h (struct font_info): Delete it. Most members go to
18405 struct font.
ef1b0ba7 18406 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
18407 (enum FONT_SPEC_INDEX): Delete it.
18408 (font_info, list_fonts_func, load_font_func, query_font_func)
18409 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
18410 (get_font_repertory_func, new_fontset_from_font_name):
18411 Delete externs.
aac0c6e3
MR
18412 (fontset_from_font_name): Extern it.
18413 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
18414 (FONT_INFO_FROM_FACE): Deleted.
18415 (face_for_font): Adjust prototype.
18416
18417 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
18418 conditionals. Don't check enable_font_backend. Delete all codes
18419 used only when USE_FONT_BACKEND is not defined.
18420 (get_font_info_func, list_font_func, load_font_func)
18421 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
18422 (get_font_repertory_func): Delete them.
18423 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
18424 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
18425 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
18426 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
18427 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
18428 (fontset_compare_rfontdef): New function.
18429 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
18430 rfont-defs by qsort. Adjusted for the change of font-group vector.
18431 (load_font_get_repertory): Deleted.
18432 (fontset_find_font): Use new macros to ref/set elements of
18433 font-def and rfont-def.
18434 (fontset_font): Fix the timing of remembering that no font for C.
18435 (free_face_fontset): Do nothing if the face has no fontset.
18436 (face_suitable_for_char_p): Use new macros to ref/set elements of
18437 rfont-def.
18438 (face_for_char): Likewise. Call face_for_char with font_object.
18439 (fs_load_font): Delete. Delete #pragma surrounding it.
18440 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 18441 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
18442 font-spec.
18443 (Fset_fontset_font): Likewise. Use new macros to set elements of
18444 font-def.
18445 (Fnew_fontset): Use font_unparse_xlfd to generate
18446 FONTSET_ASCII (fontset).
18447 (new_fontset_from_font_name): Deleted.
ef1b0ba7 18448 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
18449 a fontset is already created for the font. FIx updating of
18450 Vfontset_alias_alist.
18451 (fontset_ascii_font): Deleted.
bba3e508 18452 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
18453 (Finternal_char_font): Likewise.
18454 (Ffontset_info): Likewise.
18455 (syms_of_fontset): Don't check load_font_func.
18456
18457 * fns.c (internal_equal): Handle PREV_FONT.
18458
18459 * frame.h: Delete USE_FONT_BACKEND conditional.
18460
18461 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
18462 conditionals. Don't check enable_font_backend. Delete all codes
18463 used only when USE_FONT_BACKEND is not defined.
18464 (x_set_font): Call x_new_font, not x_new_fontset2.
18465 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
18466 already set for the frame.
18467
bba3e508
SM
18468 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
18469 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
18470 of intern_downcase. Use FONT_SET_STYLE to set a style-related
18471 font property. If a font is scalable, set avgwidth property to 0.
18472 Set font-entity property by font_put_extra.
18473 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 18474 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
18475 (ftfont_spec_pattern): New function.
18476 (ftfont_list): Return a list, not vector.
18477 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
18478 (ftfont_list_family): Don't downcase names.
18479 (ftfont_free_entity): Deleted.
18480 (ftfont_open): Return a font-object. Adjusted for the change of
18481 struct font. Get underline_thickness and underline_position from
18482 font property. Don't update dpyinfo->smallest_font_height and
18483 dpyinfo->smallest_char_width.
18484 (ftfont_close): Don't free `struct font'.
bba3e508 18485 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
18486 (ftfont_encode_char, ftfont_text_extents): Likewise.
18487
18488 * ftxfont.c (ftxfont_list): Return a list, not vector.
18489 (ftxfont_open): Return a font-object. Adjusted for the change of
18490 struct font. Get underline_thickness and underline_position from
18491 font property. Don't update dpyinfo->smallest_font_height and
18492 dpyinfo->smallest_char_width.
18493 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 18494 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 18495
bba3e508
SM
18496 * image.c (image_ascent): Don't include "charset.h".
18497 Include "character.h" and "font.h".
aac0c6e3
MR
18498
18499 * lisp.h (enum pvec_type): New member PREV_FONT.
18500 (Fassoc_string): EXFUN it.
18501
18502 * print.c: Include font.h.
18503 (print_object): Handle font-related objects.
18504
18505 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
18506 conditionals. Don't check enable_font_backend. Delete all codes
18507 used only when USE_FONT_BACKEND is not defined.
18508 (handle_auto_composed_prop): Do nothing if it->f is not on a
18509 window system. Check how many following characters can be
18510 displayed by the same font.
18511 (calc_pixel_width_or_height): Type of the 4th arg is changed to
18512 'struct font *'.
18513 (get_char_face_and_encoding): Assign the whole encoding task to
18514 the `encode-char' method of a font driver.
bba3e508 18515 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
18516 face' and `struct glyph_string'.
18517 (fill_glyph_string): Likewise.
18518 (get_per_char_metric): Arguments changed.
bba3e508 18519 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
18520 and `struct glyph_string'.
18521 (produce_stretch_glyph, calc_line_height_property)
18522 (x_produce_glyphs): Likewise.
18523
18524 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
18525 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
18526 used only when USE_FONT_BACKEND is not defined.
18527 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
18528 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
18529 (Qp): Extern them.
18530 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
18531 Deleted.
18532 (struct font_name): Deleted.
18533 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
18534 (compare_fonts_by_sort_order): New function.
18535 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
18536 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
18537 Deleted.
18538 (Fx_family_fonts): Use font_list_entities, and sort fonts by
18539 compare_fonts_by_sort_order.
18540 (Fx_font_family_list): Call Ffont_family_list.
18541 (face_numeric_value, face_numeric_weight, face_numeric_slant)
18542 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
18543 (face_symbolic_slant, face_symbolic_swidth)
18544 (split_font_name_into_vector, build_font_name_from_vector)
18545 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
18546 (font_rescale_ratio, split_font_name, build_font_name)
18547 (free_font_names, sort_fonts, x_face_list_fonts)
18548 (face_font_available_p, sorted_font_list, cmp_font_names)
18549 (font_list_1, concat_font_list, font_list, remove_duplicates):
18550 Deleted.
18551 (Fx_list_fonts): Use Ffont_list.
18552 (LFACE_AVGWIDTH): Deleted.
18553 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
18554 by FONTP.
18555 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
18556 (set_lface_from_font_name): Delete it.
ef1b0ba7 18557 (set_lface_from_font): Rename from
aac0c6e3
MR
18558 set_lface_from_font_and_fontset. Caller changed. Don't set
18559 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
18560 for face.
18561 (merge_face_vectors): Copy font-spec if necessary.
18562 Clear properties of the font-spec if necessary.
18563 (merge_face_ref): Clear properties of the font-spec if necessary.
18564 (Finternal_set_lisp_face_attribute): Likewise.
18565 (set_font_frame_param): Use font_load_for_lface to load a
18566 font-object, and call Fmodify_frame_parameters with it.
18567 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
18568 font name by Ffont_xlfd_name.
18569 (Finternal_lisp_face_attribute_values): Don't check QCweight,
18570 QCslant, and QCwidth.
18571 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
18572 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
18573 Compare fonts by EQ.
18574 (lookup_non_ascii_face): Deleted.
18575 (face_for_font): The 2nd argument changed.
18576 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
18577 Check atomic font properties by case insensitive.
18578 (realize_non_ascii_face): Set face->overstrike correctly.
18579 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
18580 (dump_realized_face): Get font name from
18581 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
18582
18583 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
18584 conditionals. Don't check enable_font_backend. Delete all codes
18585 used only when USE_FONT_BACKEND is not defined.
18586 (xic_create_xfontset): Original code deleted and renamed from
18587 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
18588 (x_make_gc): Don't set GCFont in GCs.
18589 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
18590 opened by "fixed".
18591 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
18592 find_ccl_program_func, query_font_func, set_frame_fontset_func,
18593 get_font_repertory_func.
18594
18595 * xfont.c: Include <stdlib.h> and "ccl.h".
18596 (struct xfont_info): New structure.
18597 (xfont_query_font): Deleted.
ef1b0ba7 18598 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 18599 moved from xterm.c.
bba3e508 18600 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 18601 (compare_font_names): New function.
ef1b0ba7
SM
18602 (xfont_list_pattern): Sort font names case insensitively.
18603 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
18604 (xfont_list): Return a list, not vector.
18605 (xfont_match): If the font doesn't have QCname property, generate
18606 a name from the other font properties.
18607 (xfont_open): Return a font-object. Adjusted for the change of
18608 struct font. Get underline_thickness and underline_position from
18609 font property. Don't update dpyinfo->smallest_font_height and
18610 dpyinfo->smallest_char_width.
18611 (xfont_close): Don't free struct font.
bba3e508 18612 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 18613 (xfont_done_face): Deleted.
bba3e508 18614 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
18615 (xfont_encode_char, xfont_draw): Likewise.
18616 (xfont_check): New function.
18617
bba3e508 18618 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 18619 callback function.
bba3e508
SM
18620 (xftfont_match): Adjust for the format change of font-entity.
18621 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
18622 font-object. Adjusted for the change of struct font. Return a
18623 font-object. Don't update dpyinfo->smallest_font_height and
18624 dpyinfo->smallest_char_width.
18625 (xftfont_close): Block input while calling XftFontClose.
18626 (xftfont_prepare_face): Don't block input while calling
18627 xftfont_get_colors. Adjusted for the change of struct font.
18628 (xftfont_shape): Return value of error case fixed.
18629
18630 * xrdb.c (x_load_resources): Don't setup a fontset resource.
18631
18632 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
18633 conditionals.
18634 (FONT_WIDTH): Return (f)->max_width.
18635 (struct x_display_info): Delete member `font'.
18636 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
18637 (x_find_ccl_program, x_get_font_repertory): Delete externs.
18638 (struct x_output): Change type of `font' to `struct font *'.
18639
18640 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
18641 conditionals. Don't check enable_font_backend. Delete all codes
18642 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
18643 (x_per_char_metric, x_encode_char): Deleted.
18644 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 18645 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
18646 `struct face'.
18647 (x_draw_glyph_string_foreground)
18648 (x_draw_composite_glyph_string_foreground): Likewise.
18649 (x_draw_glyph_string): Likewise. Use font->underline_position and
18650 font->underline_thickness.
ef1b0ba7 18651 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
18652 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
18653 (x_check_font): Call `check' method of a font driver.
18654 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
18655 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 18656 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 18657 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
18658 redisplay_interface'.
18659
18660 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
18661 conditionals. Don't check enable_font_backend. Delete all codes
18662 used only when USE_FONT_BACKEND is not defined. Surround non-used
18663 code by "#ifdef OLD_FONT" and "endif".
18664 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
18665
18666 * w32font.h (struct w32font_info): New member.
18667 (FONT_COMPAT): New macro.
18668 (w32font_open_internal): Prototype adjusted.
18669
18670 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
18671 OLD_FONT" and "endif".
18672
18673 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
18674 conditionals. Don't check enable_font_backend. Delete all codes
18675 used only when USE_FONT_BACKEND is not defined.
18676 (w32font_open): Return a font-object. Make a font-object by
18677 font_make_object. Adjusted for the change of struct w32font_info.
18678 (w32font_close): Don't free struct font. Adjusted for the change
18679 of struct w32font_info.
18680 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 18681 Adjust for the change of struct w32font_info.
aac0c6e3
MR
18682 (w32font_draw): Likewise.
18683 (w32font_list_internal): Return a list, not vector.
18684 (w32font_open_internal): Change the 4th arg to font-object.
18685 Adjusted for the change of struct w32font_info and font-object format.
18686 (add_font_name_to_list): Don't downcase names.
18687 (w32_enumfont_pattern_entity): Make a font-entity by
18688 font_make_entity. Adjusted for the format change of font-entity.
18689 Use FONT_SET_STYLE to set a style-related font property. If a
18690 font is scalable, set avgwidth property to 0. Set font-entity
18691 property by font_put_extra.
bba3e508 18692 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
18693 (w32_weight_table, w32_decode_weight): New variables.
18694 (w32_encode_weight): New function.
bba3e508 18695 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
18696 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
18697 weight value.
bba3e508 18698 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
18699
18700 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
18701 conditionals. Don't check enable_font_backend. Surround non-used
18702 code by "#ifdef OLD_FONT" and "endif".
18703 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 18704 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
18705
18706 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
18707 conditionals. Don't check enable_font_backend. Delete all codes
18708 used only when USE_FONT_BACKEND is not defined. Surround non-used
18709 code by "#ifdef OLD_FONT" and "endif".
18710
18711 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
18712 (uniscribe_open): Return value changed to font-object.
18713 Adjusted for the format change of font-object.
bba3e508 18714 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 18715 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 18716 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
18717 font_driver.
18718
187192008-05-13 Chong Yidong <cyd@stupidchicken.com>
18720
18721 * dispnew.c (update_frame_1): Check if tty output is still valid
18722 before flushing it.
18723
187242008-05-13 Jan Djärv <jan.h.d@swipnet.se>
18725
18726 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
18727 to Gtk+ menus.
18728
187292008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
18730
18731 * dired.c (file_name_completion): Tweak the code so as to always do it
18732 in a single pass. Tighten the scope of some variables.
18733
18734 * dired.c (Qdefault_directory): New var.
18735 (file_name_completion): Use it instead of Fexpand_file_name.
18736 (syms_of_dired): Initialize it.
18737
187382008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
18739
18740 * fileio.c (double_dollars): Remove dead code.
18741
187422008-05-10 Eli Zaretskii <eliz@gnu.org>
18743
18744 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
18745 Mention w32-get-true-file-attributes in doc string.
18746
18747 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
18748
187492008-05-09 Glenn Morris <rgm@gnu.org>
18750
18751 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
18752 2008-04-23.
18753
187542008-05-09 Eli Zaretskii <eliz@gnu.org>
18755
18756 Support for reporting owner and group of each file on MS-Windows:
18757 * dired.c (stat_uname, stat_gname): New functions, with special
18758 implementation for w32.
18759 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
18760
18761 * w32.c: Rename the_passwd_* to dflt_passwd_*.
18762 (dflt_group_name): New static variable.
18763 (dflt_group): Rename from the_group.
18764 (init_user_info): Init dflt_group fields. Get user's group name
18765 from LookupAccountSid.
18766 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
18767 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
18768 New initialization states.
18769 (globals_of_w32): Initialize them to zero. Initialize the default
18770 group name to "None".
18771 (GetFileSecurity_Name): New global var, the name of the function
18772 to call for GetFileSecurity.
18773 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
18774 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
18775 (get_file_security, get_security_descriptor_owner)
18776 (get_security_descriptor_group, is_valid_sid)
18777 (get_file_security_desc, get_rid, get_name_and_id)
18778 (get_file_owner_and_group): New functions.
18779 (stat): Use get_file_security_desc and get_file_owner_and_group to
18780 report the owner and primary group of each file. Don't ignore the
18781 high 32 bits of file's size, now that st_size is 64-bit wide.
18782 Fix test when to get true file attributes.
18783 (init_user_info): Use get_rid instead of equivalent inline code.
18784 (fstat): Don't ignore the high 32 bits of file's size.
18785
187862008-05-09 Chong Yidong <cyd@stupidchicken.com>
18787
18788 * image.c (png_load): Use correct bit-depth for setting background
18789 color.
18790
187912008-05-08 Eli Zaretskii <eliz@gnu.org>
18792
18793 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
18794 epa-hook.elc.
18795
187962008-05-08 Juanma Barranquero <lekktu@gmail.com>
18797
18798 * font.c (Ffont_match_p): Don't use `iff' in docstring.
18799
188002008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
18801
18802 * macfns.c (Fx_create_frame): Make a copy of frame parameters
18803 because the original parameters are in pure storage now.
18804 (mac_window): Remove unused params. Update callers.
18805
188062008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
18807
18808 * lread.c (substitute_object_recurse): Use lower-level primitives.
18809 Don't signal errors when traversing sub-char-tables.
18810 Don't loop over all the possible characters when traversing char-tables.
18811
18812 * print.c (print_preprocess): Add sub-char-tables to the print-table,
18813 just like we do in print.c.
18814
188152008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
18816
18817 * minibuf.c (Ftry_completion): Remove code left over from when we used
18818 scmp instead of Fcompare_strings.
18819
188202008-05-04 Juanma Barranquero <lekktu@gmail.com>
18821
18822 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
18823
188242008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18825
18826 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
18827 Create bitmap context in native byte order.
18828
18829 * macterm.c (XDrawLine)
18830 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
18831 context in native byte order.
18832
188332008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18834
18835 * config.in: Regenerate.
18836
18837 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
18838 New definitions for Image I/O support.
18839 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
18840 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
18841 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18842 (mac_data_provider_release_data, image_load_image_io)
18843 [USE_MAC_IMAGE_IO]: New functions.
18844 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
18845 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
18846 (init_image_func_pointer) [MAC_OSX]: Remove function.
18847 (image_load_quartz2d) [MAC_OSX]: Check availability of
18848 CGImageCreateWithPNGDataProvider at compile time.
18849 Use lowercase `false' for boolean constant.
18850 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
18851 Use image_load_image_io.
18852 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
18853 Don't check MyCGImageCreateWithPNGDataProvider.
18854 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
18855 Don't call init_image_func_pointer.
18856
18857 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
18858
18859 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
18860 Make variable non-static.
18861 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
18862 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18863
18864 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
18865 (RED_FROM_ULONG): Mask off higher bits.
18866 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
18867
18868 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
18869 Include AvailabilityMacros.h.
18870 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
18871 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
18872
188732008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
18874
18875 * chartab.c (Fset_char_table_range): If range is t, really set all
18876 chars to that value.
18877
188782008-05-03 Eli Zaretskii <eliz@gnu.org>
18879
18880 * dired.c (Ffile_attributes): Don't allow the device number become
18881 negative.
18882
188832008-05-02 Daiki Ueno <ueno@unixuser.org>
18884
18885 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
18886
188872008-05-02 Juri Linkov <juri@jurta.org>
18888
18889 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
18890 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
18891 DEFAULT argument as a list of default values in docstrings.
18892
188932008-05-01 Chong Yidong <cyd@stupidchicken.com>
18894
18895 * puresize.h (BASE_PURESIZE): Increase to 1210000.
18896
188972008-05-01 Martin Rudalics <rudalics@gmx.at>
18898
18899 * dispnew.c (change_frame_size_1): Preserve small windows when
18900 shrinking frames by calling set_window_height|width with third
18901 arg 2.
18902
18903 * window.h (struct window): Replace field too_small_ok by field
18904 resize_proportionally.
18905
18906 * window.c (make_window): Initialize resize_proportionally.
18907 (enlarge_window): Temporarily set resize_proportionally to make
18908 sure that shrink_windows does scale the window proportionally.
18909 (shrink_windows): When window has resize_proportionally set try
18910 to shrink it proportionally by stealing from other windows.
18911 (struct saved_window, Fset_window_configuration)
18912 (compare_window_configurations): Handle resize_proportionally.
18913 (WINDOW_TOTAL_SIZE): New macro.
18914 (window_min_size, shrink_windows, size_window): Use it.
18915 (check_min_window_sizes): Remove. Invalid values of
18916 window-min-height|width are handled by window_min_size_2 now.
18917 (size_window, Fsplit_window, enlarge_window)
18918 (adjust_window_trailing_edge, grow_mini_window): Don't call
18919 check_min_window_sizes.
18920 (window_min_size_2, window_min_size_1, window_min_size):
18921 New argument safe_p for retrieving "safe" minimum sizes.
18922 (Fdisplay_buffer, Fsplit_window, enlarge_window)
18923 (adjust_window_trailing_edge, grow_mini_window):
18924 Adjust arguments of window_min_size... functions.
18925 (shrink_windows): Argument min_size removed. New argument
18926 safe_p allows shrinking windows to their safe minimum sizes.
18927 Calculate minimum size and decide whether a window shall be
18928 deleted for each window individually.
18929 (size_window): When nodelete_p equals 2, tell shrink_windows to
18930 delete windows only if their new minimum size is no more safe.
18931 (shrink_window_lowest_first): Call window_min_size_1 to make
18932 sure to preserve modeline of bottom-most window when resizing
18933 the minibuffer.
18934 (Fset_window_configuration, Fcurrent_window_configuration)
18935 (compare_window_configurations): Do not handle
18936 window-min-height|width any more.
18937 (syms_of_window): Clarify window-min-height|width doc-strings.
18938
189392008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
18940
18941 * dired.c (file_name_completion): Fix up the encoding/decoding issue
18942 some more. Copy some of the code from Ftry_completions.
18943 Remove special case code that dates back to initial revision when the
18944 slash was only added when necessary and that can't trigger nowadays.
18945
189462008-04-27 Kenichi Handa <handa@m17n.org>
18947
18948 * font.c (font_prop_validate): Signal `error' instead of `font'.
18949
189502008-04-29 Jason Rumney <jasonr@gnu.org>
18951
18952 * w32fns.c (Fw32_battery_status): New defun.
18953 (syms_of_w32fns): Defsubr it.
18954
189552008-04-28 Andreas Schwab <schwab@suse.de>
18956
18957 * dired.c (file_name_completion): Fix another mixing of encoded
18958 and decoded names.
18959
189602008-04-28 Juanma Barranquero <lekktu@gmail.com>
18961
18962 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
18963
189642008-04-27 Juanma Barranquero <lekktu@gmail.com>
18965
18966 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
18967
189682008-04-27 Andreas Schwab <schwab@suse.de>
18969
18970 * dired.c (file_name_completion): Fix inappropriate mixing of
18971 encoded and decoded names.
18972
18973 * xterm.c (XTread_socket): Fix use of uninitialized variable.
18974
18975 * puresize.h (BASE_PURESIZE): Increase to 1200000.
18976
189772008-04-26 Eli Zaretskii <eliz@gnu.org>
18978
18979 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
18980 2008-03-31, it's not needed anymore with `struct stat' definition
18981 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
18982 for the same reasons.
18983
189842008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
18985
18986 * m/sparc.h: Additional redefinitions for GNU/Linux.
18987
189882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18989
18990 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
18991 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
18992 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
18993 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
18994 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18995 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
18996 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18997 Likewise.
18998
18999 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19000 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19001 (mac_ax_number_of_characters): Add externs.
19002 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19003 [USE_MAC_TSM]: Likewise.
19004 (mac_handle_text_input_event) [MAC_OSX]:
19005 Handle kEventTextInputOffsetToPos for no active input area case.
19006 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19007 (mac_handle_document_access_event)
19008 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19009 (install_application_handler) [MAC_OSX]: Register handlers for
19010 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19011 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19012 Register mac_handle_document_access_event.
19013
19014 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19015 Make functions non-static.
19016
190172008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19018
19019 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19020 (read_file_name_completion_ignore_case, insert_default_directory)
19021 (Qdefault_directory): Move to minibuffer.el.
19022 (Fread_file_name): Call the new `read-file-name' instead.
19023
190242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19025
19026 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19027 Make function non-static.
19028 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19029 Remove function.
19030 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19031 Move to mactoolbox.c.
19032 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19033
19034 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
19035 (mac_rect_make): New macro.
19036
19037 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
19038 instead of float.
19039 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19040 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
19041 (XSetBackground) [USE_CG_DRAWING]: Likewise.
19042 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
19043 CGRectMake.
19044 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19045 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
19046 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
19047 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19048 instead of WindowRef in argument type.
19049 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
19050 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
19051 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
19052 instead of DISPLAY. All uses changed.
19053 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
19054 (x_calc_absolute_position): Simplify so as not to use
19055 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
19056
19057 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19058 instead of WindowRef in argument type.
19059 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
19060 [TARGET_API_MAC_CARBON]: Remove externs.
19061 (create_apple_event, mac_event_parameters_to_lisp)
19062 [TARGET_API_MAC_CARBON]: Add externs.
19063
19064 * mactoolbox.c (Vmac_ts_script_language_on_focus)
19065 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
19066 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
19067 is clicked.
19068 (x_activate_menubar): Remove extern for saved_menu_event_location.
19069 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19070 Move from mac.c.
19071
190722008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19073
19074 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
19075 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
19076
190772008-04-23 Jason Rumney <jasonr@gnu.org>
19078
19079 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
19080 attributes only for local files.
19081
19082 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
19083 default to Qlocal.
19084
190852008-04-22 Juri Linkov <juri@jurta.org>
19086
19087 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
19088 read-buffer-to-switch instead of using the letter "B".
19089
190902008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
19091
19092 * fileio.c (Qdefault_directory): New variable.
19093 (Fread_file_name): Use it to pass `dir' to the completion functions.
19094
190952008-04-20 Chong Yidong <cyd@stupidchicken.com>
19096
19097 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
19098
190992008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
19100
19101 * keyboard.c (Vpre_help_message): Remove.
19102 (show_help_echo): Remove default C code.
19103
19104 * dired.c (directory_files_internal, file_name_completion):
19105 Only call ENCODE_FILE if the string is indeed decoded.
19106
191072008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
19108
19109 * Makefile.in (TOOLKIT_DEFINES): Remove.
19110 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
19111
191122008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19113
19114 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
19115 (mactoolbox.o): New target.
19116
19117 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
19118 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
19119
19120 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
19121 Use mac_set_frame_window_background instead of XSetWindowBackground.
19122 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
19123 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
19124 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
19125 instead of SetWindowTitleWithCFString.
19126 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
19127 Move function to mactoolbox.c.
19128 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
19129 Use mac_set_window_modified instead of SetWindowModified.
19130 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
19131 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
19132 (Fx_focus_frame): Use mac_front_non_floating_window instead of
19133 FrontNonFloatingWindow. Use mac_activate_window instead of
19134 ActivateWindow. Use mac_active_non_floating_window instead of
19135 ActiveNonFloatingWindow.
19136 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
19137 Use mac_show_hourglass and mac_hide_hourglass.
19138 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
19139 instead of GetGlobalMouse.
19140 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
19141 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
19142 Use mac_bring_window_to_front instead of BringToFront.
19143 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
19144 mactoolbox.c.
19145 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
19146 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
19147 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
19148 mactoolbox.c.
19149
19150 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
19151 (XtPointer): Move typedef from macmenu.c.
19152 (enum button_type): Move enum from macmenu.c.
19153 (widget_value): Move typedef from macmenu.c.
19154 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
19155 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19156 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19157 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19158 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19159 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19160 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19161 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
19162 (Selection): Move typedef from macselect.c.
19163 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
19164 macterm.c.
19165 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
19166 (mac_is_window_collapsed, mac_bring_window_to_front)
19167 (mac_send_window_behind, mac_hide_window, mac_show_window)
19168 (mac_collapse_window, mac_front_non_floating_window)
19169 (mac_active_non_floating_window, mac_activate_window)
19170 (mac_move_window_structure, mac_move_window, mac_size_window)
19171 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
19172
19173 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
19174 (enum mac_menu_kind): Move enum to mactoolbox.c.
19175 (min_menu_id): Move variable to mactoolbox.c.
19176 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
19177 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
19178 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19179 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19180 [TARGET_API_MAC_CARBON]: Likewise.
19181 (XtPointer): Move typedef to macgui.h.
19182 (enum button_type): Move enum to macgui.h.
19183 (widget_value): Move typedef to macgui.h.
19184 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19185 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19186 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19187 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19188 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19189 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19190 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
19191 (popup_activated_flag): Make variable non-static.
19192 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
19193 (add_menu_item, fill_menu, dispose_menus):
19194 Move functions to mactoolbox.c.
19195 (restore_show_help_function, menu_target_item_handler)
19196 (install_menu_target_item_handler, mac_handle_dialog_event)
19197 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
19198 [TARGET_API_MAC_CARBON]: Likewise.
19199 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
19200 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19201 (find_and_call_menu_selection, name_is_separator): Make function
19202 non-static.
19203 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
19204 to mactoolbox.c.
19205 (set_frame_menubar): Don't call install_menu_quit_handler.
19206 (menu_item_selection): New variable.
19207 (mac_menu_show): Use create_and_show_popup_menu.
19208 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
19209 selection but set variable menu_item_selection. All uses changed.
19210 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
19211 Call install_menu_quit_handler. Move to mactoolbox.c.
19212
19213 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
19214 (Selection): Move typedef to macgui.h.
19215 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
19216 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
19217 Make variables non-static.
19218 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19219 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
19220 Make functions non-static.
19221 (Vmac_service_selection) [MAC_OSX]: Likewise.
19222 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
19223 (mac_valid_selection_target_p, mac_clear_selection)
19224 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19225 (mac_put_selection_value, mac_selection_has_target_p)
19226 (mac_get_selection_value, mac_get_selection_target_list)
19227 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
19228 Move functions to mactoolbox.c.
19229 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
19230 Likewise.
19231 (copy_scrap_flavor_data, mac_handle_service_event)
19232 (install_service_handler) [MAC_OSX]: Likewise.
19233 (syms_of_macselect) <Vmac_dnd_known_types>:
19234 Use mac_dnd_default_known_types.
19235
19236 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
19237 Move to mactoolbox.c.
19238 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
19239 (Fx_selection_owner_p): Add EXFUN.
19240 (install_window_handler, remove_window_handler, XSetWindowBackground):
19241 Remove externs.
19242 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
19243 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
19244 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
19245 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
19246 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
19247 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
19248 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
19249 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
19250 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
19251 (create_and_show_popup_menu, mac_get_selection_from_symbol)
19252 (mac_valid_selection_target_p, mac_clear_selection)
19253 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19254 (mac_put_selection_value, mac_selection_has_target_p)
19255 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
19256 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
19257 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
19258 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19259 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
19260 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19261 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
19262 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19263 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19264
19265 * mactoolbox.c: New file.
19266
192672008-04-18 Jason Rumney <jasonr@gnu.org>
19268
19269 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
19270
192712008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
19272
19273 * character.c (Fmultibyte_char_to_unibyte):
19274 Return latin1 chars unchanged.
19275
19276 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
19277 relocated if it points to `name'.
19278
192792008-04-17 Kenichi Handa <handa@m17n.org>
19280
19281 * data.c (Faset): Allow setting a multibyte character in an
19282 ASCII-only unibyte string.
19283
19284 * lisp.h (STRING_SET_MULTIBYTE): New macro.
19285
192862008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
19287
19288 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
19289 done in config.h.
19290
192912008-04-16 Juanma Barranquero <lekktu@gmail.com>
19292
19293 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
19294 (Fchar_direction): Add usage in the docstring.
19295
192962008-04-15 Chong Yidong <cyd@stupidchicken.com>
19297
19298 * keyboard.c (read_key_sequence): Remove always-true checks.
19299
193002008-04-14 Jason Rumney <jasonr@gnu.org>
19301
19302 * w32font.c (w32font_open_internal): Set max_bounds.descent in
19303 compatibility struct, for better underline positioning.
19304
193052008-04-13 David Hansen <david.hansen@gmx.net>
19306
19307 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
19308 string.
19309
193102008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
19311
19312 * m/hp800.h (XUINT, XSET): Remove.
19313
193142008-04-12 Juanma Barranquero <lekktu@gmail.com>
19315
19316 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
19317 previous change.
19318
193192008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
19320
19321 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
19322 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
19323
193242008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
19325
19326 * keymap.h (map_keymap_canonical): Declare.
19327 * xmenu.c (single_keymap_panes): Use it.
19328
193292008-04-11 Glenn Morris <rgm@gnu.org>
19330
19331 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
19332 set the target's value to that of the alias.
19333
193342008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
19335
19336 * term.c (set_tty_color_mode): Left over typo.
19337
193382008-04-10 Michael Albinus <michael.albinus@gmx.de>
19339
19340 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
19341 only after check for file name handler functions. Signal, when
19342 native functionality is not supported.
19343 (syms_of_fileio): Declare it unconditionally.
19344
193452008-04-10 Jason Rumney <jasonr@gnu.org>
19346
19347 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
19348 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
19349
19350 * w32.c (logon_network_drive): Also logon to remote drives that
19351 are mapped to drive letters.
19352
193532008-04-10 Glenn Morris <rgm@gnu.org>
19354
19355 * xdisp.c (truncate-partial-width-windows): Doc fix.
19356
193572008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
19358
19359 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
19360 Move functions to minibuffer.el.
19361 (syms_of_fileio): Don't declare them.
19362
193632008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
19364
19365 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
19366 (syms_of_minibuf): Remove its initialization.
19367
19368 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
19369
193702008-04-09 Juanma Barranquero <lekktu@gmail.com>
19371
19372 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
19373
193742008-04-09 Jason Rumney <jasonr@gnu.org>
19375
19376 * makefile.w32-in (distclean): Delete makefile too.
19377 (maintainer-clean): New target.
19378
19379 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
19380
19381 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
19382 for new font backend and composite cases.
19383
193842008-04-09 Jan Djärv <jan.h.d@swipnet.se>
19385
19386 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
19387 Most of the code moved to run_timers.
19388 (do_pending_atimers): Call run_timers.
19389 (run_timers): New function.
19390
19391 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
19392 run atimers.
19393
19394 * process.c (wait_reading_process_output): The same as above.
19395
193962008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
19397
19398 * minibuf.c (last_exact_completion): Remove variable.
19399 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
19400 (complete_and_exit_1, complete_and_exit_2)
19401 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
19402 (Fdisplay_completion_list, display_completion_list_1)
19403 (Fminibuffer_completion_help, Fself_insert_and_exit)
19404 (Fexit_minibuffer, Fminibuffer_message): Move functions to
19405 minibuffer.el.
19406 (syms_of_minibuf): Remove corresponding initializations.
19407
19408 * keyboard.c (Qdeactivate_mark): New var.
19409 (command_loop_1): Use it to call `deactivate-mark'.
19410 (syms_of_keyboard): Initialize it.
19411
19412 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
19413 to another frame.
19414 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
19415 Don't call set_tty_color_mode.
19416 (store_frame_param): Reset previous_frame rather than call
19417 set_tty_color_mode.
19418 * term.c (set_tty_color_mode): Rewrite.
19419 * dispextern.h (set_tty_color_mode): New type.
19420 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
19421
194222008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
19423
19424 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
19425 for generic chars, which do not exist any more in emacs-unicode.
19426
194272008-04-08 Michael Albinus <michael.albinus@gmx.de>
19428
19429 * coding.c (detect_coding_emacs_mule)
19430 (Ffind_operation_coding_system): Fix typo.
19431
194322008-04-08 Jason Rumney <jasonr@gnu.org>
19433
19434 * w32uniscribe.c (SNAME): Extract only symbol name.
19435
19436 * w32font.h (struct w32_metric_cache): New struct.
19437 (w32font_info): Use it.
19438 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
19439 (CACHE_BLOCKSIZE): New constants.
19440
19441 * w32font.c (Qja, Qko, Qzh): New symbols.
19442 (syms_of_w32font): Initialise them.
19443 (font_matches_spec): Use them to filter by language.
19444 (recompute_cached_metrics): Remove function.
19445 (compute_metrics, clear_cached_metrics): New functions.
19446 (w32font_encode_char): Use them to manage metric cache.
19447 (w32font_text_extents): Cache metrics for all glyphs on demand.
19448 Delay converting glyph indices to WORD until needed.
19449 (w32font_open_internal): Initialize metric cache to empty.
19450 (registry_to_w32_charset): Charset should always be a symbol.
19451 (fill_in_logfont, list_all_matching_fonts): Family should
19452 always be a symbol.
19453
194542008-04-06 Jason Rumney <jasonr@gnu.org>
19455
19456 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
19457 Give up if glyph indices not supported. Use uniscribe obtained
19458 ABC widths for individual metrics. Map glyph clusters back to
19459 characters using fClusterStart flag. Return number of glyphs
19460 produced, not chars processed.
19461 (uniscribe_shape): Map char at FROM to current glyph.
19462
194632008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19464
19465 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
19466 Use SetMenuItemHierarchicalMenu.
19467
194682008-04-05 Jason Rumney <jasonr@gnu.org>
19469
19470 * image.c (pbm_load): Allow color values up to 65535.
19471 Throw an error if max_color_idx is outside the supported range.
19472 Report an error when image size is invalid.
19473 Read two bytes at a time when raw images have max_color_idx above 255.
19474
aac0c6e3
MR
194752008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
19476
19477 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
19478 append "CCL: Quitted" when the CCL program is quitted.
19479 (setup_ccl_program): Initialize ccl->quit_silently to zero.
19480
19481 * ccl.h (struct ccl_program): New member quit_silently.
19482
194832008-04-05 Chong Yidong <cyd@stupidchicken.com>
19484
19485 * search.c (compile_pattern_1): Treat non-nil and non-string of
19486 search-spaces-regexp as nil.
19487
19488 * minibuf.c (Fassoc_string): Tweak docstring.
19489
194902008-04-05 Eli Zaretskii <eliz@gnu.org>
19491
19492 * dired.c (Ffile_attributes): Support inode numbers wider than 32
19493 bits. Remove ugly WINDOWSNT-specific kludge introduced on
19494 2008-03-14 to force inode be positive.
19495
19496 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
19497 _S_* ones, since we now use our own sys/stat.h.
19498 (stat, fstat): Don't mangle the inode number.
19499 (init_user_info): Don't restrict UID and GID to 0-60000 range.
19500
195012008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
19502
19503 * frame.h (struct frame): Give one more bit to `visible' since we use
19504 values larger than 1 to indicate obscured frames on ttys.
19505
19506 * keymap.c (Qkeymap_canonicalize): New var.
19507 (Fmap_keymap_internal): New fun.
19508 (describe_map): Use keymap-canonicalize.
19509
19510 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
19511 (Fundo_boundary): Set them.
19512 (syms_of_undo): Initialize them.
19513 (record_point): Use them instead of last_point_position*.
19514 (last_undo_buffer): Change type.
19515
195162008-04-04 Jason Rumney <jasonr@gnu.org>
19517
19518 * w32font.c (w32font_text_extents): Use font's ascent and descent.
19519 (recompute_cached_metrics): Don't set ascent and descent per char.
19520
19521 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
19522 (uniscribe_check_otf): Add GC protection before consing.
19523 Rearrange loop for counting features.
19524
195252008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
19526
19527 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
19528 buffer with byte-size of source buffer.
19529
195302008-04-03 Chong Yidong <cyd@stupidchicken.com>
19531
19532 * callint.c (Fcall_interactively): Handle temporary region even
19533 when shift-select-mode is off.
19534
195352008-04-03 Jason Rumney <jasonr@gnu.org>
19536
19537 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
19538
195392008-04-03 Kenichi Handa <handa@m17n.org>
19540
19541 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
19542 (CATEGORY_MASK_UTF_16): Likewise.
19543 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
19544 binary file.
19545 (detect_coding): Add null-byte detection for a binary file.
19546 (detect_coding_system): Likewise.
19547
195482008-04-03 Jason Rumney <jasonr@gnu.org>
19549
19550 * w32uniscribe.c: New file.
19551
19552 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
19553
19554 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
19555
19556 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
19557 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
19558 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
19559 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
19560 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
19561 (Qphonetic): New symbols.
19562 (syms_of_w32font): Initialize them.
19563 (font_supported_scripts): Use them.
19564 (w32font_list_family): List all charsets.
19565 (w32font_text_extents, recompute_cached_metrics): Fix metric
19566 calculations.
19567 (w32_enumfont_pattern_entity): Make full_type a DWORD.
19568 Give opentype fonts their own format.
19569 (font_matches_spec): New arguments backend and logfont.
19570 Handle :otf spec for uniscribe backend.
19571 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
19572 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
19573
19574 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
19575 font backend.
19576 (globals_of_w32fns): Initialize uniscribe font backend.
19577
19578 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
19579 dependencies.
19580 (w32uniscribe.$(O)): New file to build.
19581 (FONT_OBJ): Include w32uniscribe.$(O).
19582 (LIBS): Add uniscribe libraries.
19583
19584 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
19585
195862008-04-02 Chong Yidong <cyd@stupidchicken.com>
19587
19588 * callint.c (Vshift_select_mode): New var.
19589 (Finteractive): Document new ^ spec.
19590 (Fcall_interactively): Call handle-shift-selection if the ^ spec
19591 is present.
19592
19593 * keyboard.c (Vthis_command_keys_shift_translated): New var.
19594 (command_loop_1): Avoid running the direct display versions of
19595 forward-char and backward-char if shift-selection may occur.
19596 (read_key_sequence): Set Vthis_command_keys_shift_translated if
19597 shift-translation takes place.
19598
19599 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
19600 avoid clobbering by define-minor-mode.
19601
19602 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
19603 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
19604
19605 * syntax.c (Fforward_word): Add ^ interactive spec.
19606
19607 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
19608 (Fscroll_right): Add ^ interactive spec.
19609
196102008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
19611
19612 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
19613
19614 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
19615
19616 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
19617
196182008-03-31 Juri Linkov <juri@jurta.org>
19619
19620 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
19621
196222008-03-30 Jan Djärv <jan.h.d@swipnet.se>
19623
19624 * gtkutil.c (xg_set_geometry): Fix indentation.
19625 (xg_resize_outer_widget): Remove.
19626 (x_wm_size_hint_off): Fix indentation.
19627 (xg_frame_set_char_size): Call flush_and_sync after
19628 gtk_window_resize.
19629 (x_wm_set_size_hint): Pass NULL as geometry window to
19630 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
19631 Add menu bar and tool bar height to base height.
19632 (xg_update_frame_menubar, free_frame_menubar)
19633 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
19634 (update_frame_tool_bar, free_frame_tool_bar):
19635 Change xg_resize_outer_widget to xg_frame_set_char_size.
19636
196372008-03-30 Michael Albinus <michael.albinus@gmx.de>
19638
19639 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
19640 (Fdbus_call_method): New parameter TIMEOUT.
19641 (dbus-send-signal): Optimize UNGCPRO call.
19642
196432008-03-29 Juri Linkov <juri@jurta.org>
19644
19645 * window.c (Fdisplay_buffer): Move call to
19646 Vsplit_window_preferred_function out of conditions that check
19647 if window is eligible for vertical splitting.
19648 When Vsplit_window_preferred_function is non-nil, call it and use
19649 its non-nil return value as window. Otherwise, continue doing
19650 vertical splitting using Fsplit_window with arg horflag=nil.
19651 (syms_of_window) <Vsplit_window_preferred_function>: Change the
19652 default value from `split-window' to nil.
19653
196542008-03-29 Juri Linkov <juri@jurta.org>
19655
19656 * callint.c (Fcall_interactively): Revert 2008-03-16 change
19657 for interactive code letters 'b' and 'B'.
19658
196592008-03-29 Eli Zaretskii <eliz@gnu.org>
19660
19661 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
19662 multibyte string.
19663
196642008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
19665
19666 * keyboard.c (pending_funcalls): New var.
19667 (timer_check): Run it.
19668 (syms_of_keyboard): Initialize it.
19669 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
19670 (Vdelete_terminal_functions): New vars.
19671 (syms_of_terminal): Initialize them.
19672 (Fdelete_terminal): Run delete-terminal-functions.
19673 * xdisp.c (safe_eval): Rewrite.
19674 (safe_call2): New fun.
19675 * frame.c (Qdelete_frame_functions): New var.
19676 (syms_of_frame): Initialize it.
19677 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
19678 * lisp.h (safe_call2, pending_funcalls): Declare.
19679
196802008-03-28 Andreas Schwab <schwab@suse.de>
19681
19682 * indent.c (Fmove_to_column): Move declaration before statements.
19683
196842008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
19685
19686 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
19687 (struct frame): Use bit fields for boolean vars.
19688
19689 * process.c (server_accept_connection): Simplify naming.
19690 (emacs_get_tty_pgrp): Use SDATA.
19691
19692 * coding.c (decode_coding_object): Fix last change.
19693
196942008-03-27 Jason Rumney <jasonr@gnu.org>
19695
19696 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
19697
196982008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
19699
19700 * charset.c (Fdefine_charset_internal): Change the way of
19701 registering charsets in Vcharset_order_list.
19702 (syms_of_charset): Make the charset `eight-bit' supplementary.
19703
197042008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
19705
19706 * regex.c (EXTEND_BUFFER): Change order of pointer addition
19707 operations, to avoid having the difference between pointers
19708 overflow.
19709
197102008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
19711
19712 * indent.c (check_display_width): New fun.
19713 (scan_for_column): Use it.
19714
19715 * data.c (syms_of_data): Mark most-positive-fixnum and
19716 most-negative-fixnum as constants.
19717
19718 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
19719
19720 * indent.c (scan_for_column): Extract from current_column_1.
19721 Merge with the same code from Fmove_to_column.
19722 (current_column_1, Fmove_to_column): Use it.
19723
197242008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
19725
19726 * keymap.c (map_keymap_internal): New fun.
19727 (map_keymap): Use it.
19728 (Fmap_keymap_internal): New fun.
19729 (Fmap_keymap): Remove left-out test from before make_save_value.
19730
19731 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
19732
19733 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
19734 Use XCAR/XCDR.
19735
19736 * process.h (struct Lisp_Process): Remove filter_multibyte.
19737 * process.c (QCfilter_multibyte): Remove.
19738 (setup_process_coding_systems): Don't use filter_multibyte.
19739 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
19740 (read_process_output): Don't adjust multibyteness to filter_multibyte.
19741 (Fset_process_filter_multibyte): Change the coding-system to
19742 approximate the previous behavior.
19743 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
19744 coding-system.
19745
19746 * coding.c (decode_coding_object): When not decoding into a buffer,
19747 obey the coding system's preference of (uni|multi)byte.
19748
197492008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
19750
19751 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
19752 every char is changed and has a different byte-length.
19753 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
19754 Fix int -> EMACS_INT.
19755
197562008-03-23 David Hansen <david.hansen@gmx.net>
19757
19758 * dbusbind.c (xd_read_message): Remove extra copying of message
19759 strings. Check for NULL `interface' or `member'.
19760
197612008-03-22 Eli Zaretskii <eliz@gnu.org>
19762
19763 * w32.c (readdir): If FindFirstFile/FindNextFile return in
19764 cFileName a file name that includes `?' characters, use the 8+3
19765 alias in cAlternateFileName instead.
19766
197672008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
19768
19769 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
19770
197712008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
19772
19773 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
19774 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
19775 work on current_buffer only instead (that was already the case
19776 for some of the code anyway).
19777 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
19778 (temp_set_point, temp_set_point_both): Use EMACS_INT.
19779 (SET_PT, SET_PT_BOTH): Adjust.
19780 * intervals.h (set_point, temp_set_point, set_point_both)
19781 (temp_set_point_both): Remove redundant declarations.
19782
197832008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
19784
19785 * fileio.c (Finsert_file_contents):
19786 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
19787 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
19788 when buffer != current_buffer anyway.
19789
197902008-03-20 Andreas Schwab <schwab@suse.de>
19791
19792 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
19793 as default.
19794
197952008-03-19 Jason Rumney <jasonr@gnu.org>
19796
19797 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
19798 (syms_of_w32fns): Initialize them.
19799 (HOURGLASS_ID): New constant.
19800 (x_window_to_frame): Don't check hourglass_window.
19801 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
19802 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
19803 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
19804 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
19805 Only change the cursor if hourglass is not active.
19806 (Fx_create_frame): Initialize frame's current_cursor.
19807 (hourglass_atimer): Remove.
19808 (hourglass_started): New function.
19809 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
19810 (show_hourglass): Adapt to w32, changing argument to frame.
19811
19812 * w32term.h (struct w32_output): Remove hourglass_window.
19813 Add current_cursor.
19814
19815 * eval.c (call_debugger, Fsignal):
19816 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
19817 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
19818 (Fexecute_extended_command, cancel_hourglass_unwind):
19819 * minibuf.c (read_minibuf):
19820 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
19821
198222008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
19823
19824 * window.c (run_funs): New fun.
19825 (run_window_configuration_change_hook): Use it to run the buffer-local
19826 and the global part of the hook.
19827
19828 * xdisp.c (format_mode_line_unwind_data): Add window argument.
19829 (unwind_format_mode_line): Restore selected window.
19830 (x_consider_frame_title, Fformat_mode_line): Set selected window.
19831
198322008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
19833
19834 * editfns.c (Fchar_equal): Check they are valid characters.
19835
19836 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
19837
198382008-03-17 Andreas Schwab <schwab@suse.de>
19839
19840 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
19841 against a charset.
19842
19843 * lisp.h (Fbuffer_list): Declare.
19844
198452008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 19846
aac0c6e3
MR
19847 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
19848 handlebox_widget is != 0.
19849
198502008-03-16 Juri Linkov <juri@jurta.org>
19851
19852 * callint.c (Fcall_interactively): For interactive code letters
19853 'b' and 'B' put the buffer list into the list of default "future"
19854 values of the minibuffer.
19855
198562008-03-16 Andreas Schwab <schwab@suse.de>
19857
19858 * keyboard.c (read_key_sequence): Fix downcasing of letters with
19859 modifiers.
19860
19861 * regex.c (re_match_2_internal): Correct matching of a charset
19862 against latin-1 characters.
19863
198642008-03-16 Kenichi Handa <handa@m17n.org>
19865
19866 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
19867 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
19868 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
19869 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
19870 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
19871 CHAR_STRING_ADVANCE.
19872 (produce_chars): Fix for the case that the source and the
19873 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
19874 instead of CHAR_STRING_ADVANCE.
19875 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
19876 STRING_CHAR_ADVANCE.
19877
198782008-03-15 Andreas Schwab <schwab@suse.de>
19879
19880 * regex.c (re_match_2_internal): Correct matching of eight bit
19881 characters in unibyte strings.
19882
198832008-03-15 Martin Rudalics <rudalics@gmx.at>
19884
19885 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
19886 at end of range when it coincides with the end of the buffer.
19887
198882008-03-14 Eli Zaretskii <eliz@gnu.org>
19889
19890 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
19891
19892 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
19893
198942008-03-14 Jason Rumney <jasonr@gnu.org>
19895
19896 * editfns.c (initial_tz): New variable.
19897 (syms_of_editfns): Initialize it.
19898 (Fset_time_zone_rule): Set it when first called.
19899 Use it when TZSTRING is nil.
19900
19901 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
19902 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
19903 (monitor_from_point_fn, get_monitor_info_fn): New globals.
19904 (globals_of_w32fns): Initialize them.
19905 (compute_tip_xy): Use them to position tooltips.
19906
199072008-03-14 Glenn Morris <rgm@gnu.org>
19908
19909 * emacs.c (main): Revert previous change.
19910 (standard_args): Revert -internal-script back to -scriptload,
19911 and remove the long-option form.
19912
199132008-03-13 Glenn Morris <rgm@gnu.org>
19914
19915 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
19916 Remove option -enable-font-backend.
19917
199182008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
19919
19920 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
19921
199222008-03-11 Jan Djärv <jan.h.d@swipnet.se>
19923
19924 * xterm.c (x_connection_closed): For GTK: If this is the last
19925 terminal just exit without closing the display.
19926
199272008-03-11 Jason Rumney <jasonr@gnu.org>
19928
19929 * w32font.c (w32font_full_name): Use floor to round.
19930
f0131492 199312008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
19932
19933 * sound.c (alsa_configure): Declare vol at beginning of block.
19934
19935 * fontset.c (Ffontset_info): Remove extra semicolon.
19936
199372008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
19938
19939 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
19940 size of resulting string.
19941
199422008-03-10 Jason Rumney <jasonr@gnu.org>
19943
19944 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
19945
199462008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19947
19948 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
19949 Don't pretend as if characters with display property haven't been
19950 consumed for string-replacing-string case.
19951
199522008-03-08 Kim F. Storm <storm@cua.dk>
19953
19954 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
19955 (get_next_display_element, next_element_from_string)
19956 (next_element_from_ellipsis, next_element_from_buffer): Use it.
19957
199582008-03-08 Andreas Schwab <schwab@suse.de>
19959
19960 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
19961
199622008-03-06 Jason Rumney <jasonr@gnu.org>
19963
19964 * w32font.c (w32_registry): Take font_type argument. Use ANSI
19965 when charset not specified. Only translate ANSI to unicode when
19966 font_type is truetype.
19967 (w32font_coverage_ok): New function.
19968 (add_font_entity_to_list): Use it to filter unsuitable fonts.
19969
199702008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
19971
19972 * lread.c (Fread_char): Resolve modifiers.
19973 (Fread_char_exclusive): Likewise.
19974
19975 * character.c (char_resolve_modifier_mask): New function.
19976 (char_string): Use char_resolve_modifier_mask.
19977 (Fchar_resolve_modifiers): New function.
19978 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
19979 function.
19980
199812008-03-04 Jason Rumney <jasonr@gnu.org>
19982
19983 * makefile.w32-in: Always include w32font.c in the build.
19984 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
19985
199862008-03-04 Andreas Schwab <schwab@suse.de>
19987
19988 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
19989 (versionclean): Likewise.
19990
199912008-03-04 Juanma Barranquero <lekktu@gmail.com>
19992
19993 * .cvsignore: Add oo.
19994
199952008-03-03 Andreas Schwab <schwab@suse.de>
19996
19997 * coding.c (decode_coding_object): Inhibit gap shrinking while
19998 decoding in place.
19999
200002008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20001
20002 * w32term.c: Remove unused include "gnu.h".
20003 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20004
20005 * gnu.h: Rename to ...
20006 * emacs-icon.h: ... this.
20007 * xterm.c: Use emacs-icon.h instead of gnu.h.
20008 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20009
200102008-03-03 Juanma Barranquero <lekktu@gmail.com>
20011
20012 * w32font.c: Include math.h.
20013
200142008-03-03 Jason Rumney <jasonr@gnu.org>
20015
20016 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20017 Compute options separately.
20018 (w32font_open_internal): Set glyph_idx before caching metrics.
20019
20020 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20021 Define if system headers don't.
20022 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20023 (w32font_encode_char): Don't declare here.
20024
20025 * w32font.c (Quniscribe, QCformat): New symbols.
20026 (syms_of_w32font): Define them.
20027 (w32font_has_char): Indicate uncertainty.
20028 (w32font_encode_char): Encode as glyph point. Make static.
20029 (recompute_cached_metrics): New function.
20030 (w32font_open_internal): Use it. Set font to use glyph points
20031 initially. Set format based on type of font.
20032 (w32font_text_extents, w32font_draw): Optionally use glyph points.
20033 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
20034 on it. Set format based on information available here.
20035 (add_font_entity_to_list): Identify backend based on opentype_only.
20036
200372008-03-02 Andreas Schwab <schwab@suse.de>
20038
20039 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
20040
20041 * coding.c (decode_coding_big5, produce_chars):
20042 Fix typos in last change.
20043
200442008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
20045
20046 * gnu.h: New icon.
20047
200482008-03-02 Kenichi Handa <handa@m17n.org>
20049
20050 * coding.c (decode_coding_utf_8): When eol-type of CODING is
20051 `dos', don't decode '\r' if that is the last in the source.
20052 (decode_coding_utf_16, decode_coding_emacs_mule)
20053 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20054 (decode_coding_raw_text, decode_coding_charset): Likewise.
20055 (produce_chars): Don't decode EOL here. Use EMACS_INT.
20056
200572008-03-01 Jason Rumney <jasonr@gnu.org>
20058
20059 * w32font.c (w32font_full_name): Report point size for scalable fonts.
20060
200612008-03-01 Kim F. Storm <storm@cua.dk>
20062
20063 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
20064
200652008-03-01 Jason Rumney <jasonr@gnu.org>
20066
20067 * w32font.c (w32font_full_name): New function.
20068 (w32font_open_internal): Use it.
20069
200702008-03-01 Kim F. Storm <storm@cua.dk>
20071
20072 * dispnew.c (line_draw_cost): Fix invalid glyph check.
20073
200742008-03-01 Jason Rumney <jasonr@gnu.org>
20075
20076 * font.c (font_unparse_fcname): Increase len when style is a symbol.
20077
200782008-03-01 Jan Djärv <jan.h.d@swipnet.se>
20079
20080 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
20081 xg_frame_resized when the event is for the edit widget.
20082
ef1b0ba7 20083 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
20084
20085 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
20086 set_char_size.
ef1b0ba7 20087 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
20088 operations on widgets here. Just set frame size if needed.
20089 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
20090 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
20091 (x_wm_set_size_hint): Set size hints on the edit widget only, not
20092 the whole frame.
20093 (xg_create_tool_bar): Move attachment of the tool bar to
20094 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
20095 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
20096
200972008-03-01 Jason Rumney <jasonr@gnu.org>
20098
20099 * w32fns.c (w32_msg_pump): Disable debug code.
20100
201012008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20102
20103 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
20104
201052008-02-29 Chong Yidong <cyd@stupidchicken.com>
20106
20107 * xdisp.c (next_overlay_string): Don't set
20108 overlay_strings_at_end_processed_p if we're currently reading from
20109 a display string.
20110
201112008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
20112
20113 * xdisp.c (get_overlay_strings_1): Fix typo.
20114
201152008-02-29 Chong Yidong <cyd@stupidchicken.com>
20116
20117 * xdisp.c (get_overlay_strings_1): Add missing argument type.
20118
201192008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
20120
20121 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
20122
20123 * xdisp.c (display_mode_element): Cancel the previous change.
20124 (decode_mode_spec): Likewise.
20125 (handle_auto_composed_prop): Don't make composition if it->string
20126 is a string.
20127
201282008-02-27 Kim F. Storm <storm@cua.dk>
20129
20130 * lisp.h (GLYPH): Change type from int to struct with separate char
20131 and face_id members.
20132 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
20133 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
20134 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
20135 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
20136 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
20137 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
20138 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
20139 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
20140 handle new Lisp glyph code encoding, either an integer or a cons.
20141
20142 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
20143 (GLYPH_ALIAS): Delete.
20144 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
20145 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
20146 (GLYPH_FROM_CHAR): Replace macro by ...
20147 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
20148
20149 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
20150 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
20151 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
20152 (GLYPH_INVALID_P): New macro.
20153 (spec_glyph_lookup_face): Update prototype.
20154
20155 * dispnew.c (line_draw_cost): Adapt to new glyph type.
20156 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
20157 new glyph code encoding.
20158 (spec_glyph_lookup_face): No return value; update passed glyph instead.
20159 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
20160
20161 * xdisp.c (get_next_display_element, next_element_from_display_vector):
20162 Adapt to new glyph type and new glyph code encoding.
20163
20164 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
20165
20166 * indent.c (current_column, current_column_1, Fmove_to_column)
20167 (compute_motion): Adapt to new glyph code encoding.
20168
20169 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
20170
201712008-02-27 Chong Yidong <cyd@stupidchicken.com>
20172
20173 * process.c (wait_reading_process_output): Check for window
20174 changes caused by timers.
20175 Suggested by Johan Bockgård.
20176
201772008-02-27 Glenn Morris <rgm@gnu.org>
20178
20179 * emacs.c (USAGE1): Add `--disable-font-backend'.
20180
201812008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
20182
20183 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
20184 is made to the buffer.
20185
201862008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
20187
20188 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
20189 (face_at_string_position):
20190 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
20191 (face_at_string_position):
20192 * xdisp.c (display_string, next_overlay_change):
20193 * buffer.h (overlays_at):
20194 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
20195 Update callers.
20196
201972008-02-26 Chong Yidong <cyd@stupidchicken.com>
20198
20199 * editfns.c (Fformat): Doc fix.
20200
202012008-02-26 Juanma Barranquero <lekktu@gmail.com>
20202
20203 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
20204 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
20205 (Ffont_otf_alternates, Fquery_font): Doc fixes.
20206
202072008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
20208
20209 * buffer.c (Fbuffer_swap_text): New function.
20210 (syms_of_buffer): Defsubr it.
20211
202122008-02-25 Chong Yidong <cyd@stupidchicken.com>
20213
20214 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
20215
202162008-02-25 Jason Rumney <jasonr@gnu.org>
20217
20218 * w32font.c (w32font_draw): Draw one character at a time when padding.
20219
202202008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
20221
20222 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
20223 Handle a nil arg. Use run_window_configuration_change_hook.
20224 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
20225 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
20226 Use run_window_configuration_change_hook.
20227
202282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
20229
20230 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
20231 1-pixel width.
20232
202332008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
20234
20235 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
20236 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
20237 if the glyph in the font is zero pixel with.
20238
20239 * dispextern.h (struct glyph_string): New member padding_p.
20240
20241 * w32font.c (w32font_draw): Pay attention to s->padding_p.
20242
20243 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
20244
20245 * xfont.c (xfont_draw): Pay attention to s->padding_p.
20246
20247 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
20248
20249 * font.c: If the font driver doesn't have `shape' function, return Qnil.
20250
202512008-02-25 Jason Rumney <jasonr@gnu.org>
20252
20253 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
20254
202552008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
20256
20257 Allow fine-grained image-cache flushing.
20258 * dispextern.h (struct image): Add `dependencies' field.
20259 (clear_image_caches): Change arg to Lisp_Object.
20260 * image.c (make_image): Initialize `dependencies' field.
20261 (clear_image_cache): Change arg to allow fine-grained flushing.
20262 Perform the flush even if image-cache-eviction-delay is nil.
20263 (clear_image_caches): Change arg to Lisp_Object.
20264 (Fclear_image_cache): Expand meaning of the argument.
20265 (mark_image): Mark `dependencies' field.
20266 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
20267 (lface_hash): Use XHASH rather than XFASTINT.
20268 (face_at_buffer_position): Fix int -> EMACS_INT position.
20269 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
20270 (select_frame_for_redisplay): Remove code duplication.
20271 (redisplay_internal): Adapt arg to call to clear_image_caches.
20272
202732008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
20274
20275 * s/vms4-0.h:
20276 * s/vms4-2.h:
20277 * s/vms4-4.h:
20278 * s/vms5-5.h: Remove, unused.
20279
20280 * s/irix5-2.h:
20281 * s/irix6-0.h:
20282 * s/riscos5.h:
20283 * s/mach-bsd4-3.h:
20284 * m/mips4.h: Remove files for obsolete systems.
20285
20286 * Makefile.in:
20287 * filelock.c:
20288 * unexmips.c:
20289 * m/hp9000s300.h:
20290 * m/iris4d.h:
20291 * s/aix3-1.h:
20292 * s/hpux.h:
20293 * s/msdos.h:
20294 * s/usg5-0.h:
20295 * s/usg5-2-2.h:
20296 * s/usg5-2.h:
20297 * s/usg5-3.h: Remove references to obsolete variables.
20298
20299 * s/irix5-0.h: Remove, move all the contents ...
20300 * s/irix6-5.h: ... here. Simplify.
20301 * config.in: Regenerate.
20302
203032008-02-24 Jason Rumney <jasonr@gnu.org>
20304
20305 * w32term.c (x_draw_glyph_string_background): Clear the background
20306 manually when cleartype is in use.
20307 (x_draw_glyph_string_foreground): Draw text transparently when
20308 cleartype is in use.
20309
20310 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
20311 a font into it unless we have to.
20312
203132008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
20314
20315 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
20316 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 20317
aac0c6e3
MR
203182008-02-18 Jason Rumney <jasonr@gnu.org>
20319
20320 * w32fns.c (Fw32_shell_execute): Encode parameters.
20321
203222008-02-09 Eli Zaretskii <eliz@gnu.org>
20323
20324 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
20325
203262008-02-05 Juanma Barranquero <lekktu@gmail.com>
20327
20328 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
20329
203302008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
20331
20332 * xterm.c (x_set_offset): Don't change the gravity if
20333 CHANGE_GRAVITY is -1.
20334
203352008-02-23 Chong Yidong <cyd@stupidchicken.com>
20336
20337 * fileio.c (auto_save_error_occurred): New var.
20338 (auto_save_error): Set it.
20339 (Fdo_auto_save): Don't overwrite the error message if an auto-save
20340 error occurred.
20341
203422008-02-23 Eli Zaretskii <eliz@gnu.org>
20343
20344 * w32.c (globals_of_w32): Add initializations for
20345 g_b_init_get_sid_sub_authority and
20346 g_b_init_get_sid_sub_authority_count.
20347
203482008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
20349
20350 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
20351 (font_parse_xlfd): Use them for sanity check.
20352 (Finternal_set_font_style_table): Make sure the table is bijective.
20353
20354 Consolidate the image_cache to the terminal struct.
20355 * termhooks.h (P_): Remove redundant def.
20356 (struct terminal): New field `image_cache'.
20357 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
20358 of FRAME_X_IMAGE_CACHE.
20359 * xterm.h (struct x_display_info): Remove image_cache field.
20360 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
20361 * w32term.h (struct w32_display_info): Remove image_cache field.
20362 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
20363 * macterm.h (struct mac_display_info): Remove image_cache field.
20364 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
20365 * xterm.c (x_term_init):
20366 * w32term.c (w32_term_init):
20367 * macterm.c (mac_term_init): Set the image_cache in the terminal.
20368 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
20369 Remove declarations.
20370 (clear_image_caches, mark_image_cache): New declarations.
20371 * xfaces.c (clear_face_cache):
20372 * xdisp.c (redisplay_internal): Use clear_image_caches.
20373 * image.c (clear_image_cache): Don't check that a frame is on
20374 a window-system before checking if it shares the same cache.
20375 (clear_image_caches): New function.
20376 (Fclear_image_cache): Use it.
20377 (mark_image): Move from allo.c.
20378 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
20379 * alloc.c (mark_image, mark_image_cache): Move to image.c.
20380 (mark_object): Don't call mark_image_cache for frames.
20381 (mark_terminals): Call mark_image_cache.
20382
20383 * lisp.h (Fdelete_terminal): Declare.
20384
20385 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
20386 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
20387 wrong_type_argument.
20388
203892008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
20390
20391 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
20392 malayalam.el, and tamil.el. Add sinhala.el.
20393
203942008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
20395
20396 * xterm.c (x_connection_closed): Consolidate identical tests.
20397 (x_delete_terminal): Don't crash if called via x_connection_closed.
20398
203992008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
20400
20401 * xdisp.c (decode_mode_spec): New arg string.
20402 (display_mode_element): Adjust for the above change.
20403
204042008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
20405
20406 * callint.c (Fcall_interactively): Use AREF.
20407
204082008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
20409
20410 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
20411
204122008-02-18 Jan Djärv <jan.h.d@swipnet.se>
20413
20414 * xfns.c (Fx_show_tip): Set string to " " if empty.
20415
204162008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
20417
20418 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
20419 with Qt.
20420
204212008-02-17 Kenichi Handa <handa@m17n.org>
20422
20423 * ftfont.c (ftfont_shape): Return Lispy number.
20424
20425 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
20426 for GCs.
20427 (Finternal_set_font_selection_order): Call font_update_sort_order
20428 only when enable_font_backend is set.
20429 (realize_x_face): Set face->font_info to that of default face only
20430 when enable_font_backend is set.
20431
20432 * xdisp.c (handle_composition_prop): Set it->c to the fist
20433 character of the composed region.
20434 (fill_composite_glyph_string): Set base_face->font_info to
20435 s->font_info. Get a face for ascii from base_face->ascii_face.
20436 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
20437 with a face already decided.
20438 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
20439 non-negative.
20440 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
20441 call font_prepare_composition unconditionally.
20442
20443 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
20444
20445 * xterm.h (struct x_display_info): New member font.
20446
20447 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
20448 (x_set_mouse_face_gc, x_new_font): Likewise.
20449 (x_term_init): Setup display_info->font.
20450 (x_delete_terminal): Free display_info->font.
20451
20452 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
20453
20454 * ftxfont.c (ftxfont_default_fid): Delete it.
20455 (ftxfont_open): Set xfont->fid to 0.
20456 (ftxfont_end_for_frame): Clear data specific to the frame and the
20457 font-driver.
20458
20459 * xftfont.c (xftfont_default_fid): Delete it.
20460 (xftfont_open): Set xfont->fid to 0.
20461
20462 * fontset.c (FONTSET_OBJLIST): New macro.
20463 (fontset_find_font): Update font-object list of the fontset.
20464 (free_realized_fontset): New function.
20465 (free_face_fontset): Call free_realized_fontset.
20466 (Ffont_info): Call font_close_object only when enable_font_backend
20467 is set.
20468
20469 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
20470 [HAVE_NTGUI]: Include w32term.h.
20471 [MAC_OS]: Include macterm.ch.
20472 (font_otf_ValueRecord): Use make_number.
20473 (font_finish_cache): Fix handling of reference count.
20474 (font_clear_cache): Update num_fonts.
20475 (font_open_entity): Update smallest_char_width and
20476 smallest_font_height of the frame.
20477 (font_close_object): Update num_fonts.
20478 (Fclear_font_cache): Fix finding the target cache data.
20479
204802008-02-16 Glenn Morris <rgm@gnu.org>
20481
20482 * fontset.c (Finternal_char_font): Fix compilation warning.
20483
204842008-02-16 Eli Zaretskii <eliz@gnu.org>
20485
20486 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
20487 instead of char arrays. Enlarge the size of array passed to
20488 get_token_information.
20489
20490 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
20491 warnings.
20492
204932008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
20494
20495 * .gdbinit: Don't set `args', it breaks gdb --args.
20496
204972008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
20498
20499 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
20500 within a narrowed buffer.
20501
205022008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
20503
20504 * coding.c (decode_coding_object, encode_coding_object):
20505 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
20506
205072008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
20508
20509 * coding.c (coding_set_destination): Use BEG_BYTE rather than
20510 hardcoding 1.
20511 (detect_coding_system):
20512 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
20513 (string_char_to_byte, string_byte_to_char, insert_from_gap):
20514 * insdel.c (insert_from_gap):
20515 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
20516 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
20517 (string_to_multibyte):
20518 * character.c (chars_in_text, multibyte_chars_in_text):
20519 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
20520
20521 * character.h (FETCH_STRING_CHAR_ADVANCE)
20522 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
20523 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
20524 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
20525
20526 * casefiddle.c (casify_region): Only call after-change and composition
20527 functions on the part of the region that was changed.
20528
20529 * keyboard.c (read_avail_input):
20530 * frame.c (Fdelete_frame): Call Fdelete_terminal.
20531
205322008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
20533
20534 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
20535 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
20536
205372008-02-11 Juanma Barranquero <lekktu@gmail.com>
20538
20539 * w32menu.c (push_submenu_start, push_submenu_end)
20540 (push_left_right_boundary, push_menu_pane, push_menu_item):
20541 * keyboard.c (read_key_sequence): Don't pass args with side effects
20542 to AREF, it fails when compiling with -DENABLE_CHECKING.
20543
205442008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
20545
20546 * Makefile.in (${lispsource}international/charprop.el):
20547 Delete this target.
20548
20549 * search.c (boyer_moore): Fix incorrect synching of the trunk and
20550 emacs-unicode-2.
20551
205522008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
20553
20554 * terminal.c (Fdelete_terminal): Clean up the `force' path.
20555
205562008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
20557
20558 * frame.c (Qnoelisp): New symbol.
20559 (syms_of_frame): Initialize it.
20560 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
20561 harmless Elisp code, from a strong `force' from x_connection_closed.
20562 * frame.h (Qnoelisp): Declare.
20563 * xterm.c (x_connection_closed): Pass `noelisp'.
20564
20565 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
20566 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
20567 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
20568 rather than `int' for the type of `type'.
20569
205702008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
20571
20572 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
20573
20574 * Makefile.in (GNUC): Remove support for gcc-1.x.
20575
205762008-02-10 Richard Stallman <rms@gnu.org>
20577
20578 * lisp.h (ASET): Use AREF, not ASLOT.
20579
205802008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
20581
20582 * lisp.h (ASET): Check bounds.
20583
205842008-02-10 Glenn Morris <rgm@gnu.org>
20585
20586 * buffer.c (mode-name): Doc fix.
20587
205882008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
20589
20590 * Makefile.in:
20591 * emacs.c:
20592 * gmalloc.c:
20593 * keyboard.c:
20594 * lisp.h:
20595 * m/ibm370aix.h:
20596 * process.c:
20597 * regex.c:
20598 * s/hpux.h:
20599 * sysdep.c:
20600 * sysselect.h:
20601 * systty.h:
20602 * unexec.c:
20603 * w32term.c:
20604 * xsmfns.c:
20605 * xterm.c: Remove code that deals with obsolete variables.
20606
20607 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
20608
20609 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
20610 nothing else needs it anymore.
20611
206122008-02-09 Eli Zaretskii <eliz@gnu.org>
20613
20614 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
20615 instead of unibyte_char_to_multibyte.
20616
206172008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
20618
20619 * s/gnu-linux.h: Remove commented out code.
20620
20621 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
20622
20623 * Makefile.in: Update what RMS says about using autoconf.
20624 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
20625 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
20626 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
20627 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
20628
206292008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
20630
20631 * keymap.c (Fkey_description): Move side effect outside of macro call.
20632
20633 * xfaces.c (Finternal_make_lisp_face):
20634 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
20635
20636 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
20637 (syms_of_fontset): Use ASET.
20638
20639 * fns.c (concat): Move side effect outside of macro call.
20640 (hash_clear): Use ASET.
20641
206422008-02-08 Richard Stallman <rms@gnu.org>
20643
20644 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
20645 If FORCE, and frame has a surrogate minibuffer for another frame,
20646 delete the other frame first.
20647
206482008-02-07 Timo Savola <timo.savola@iki.fi>
20649
20650 * xterm.c (x_detect_focus_change): Handle embed client message.
20651 (handle_one_xevent): Ditto.
20652 (handle_one_xevent): If embedded and we get a button press/release,
20653 request focus.
20654 (xembed_set_info, xembed_send_message): New functions.
20655 (x_make_frame_visible): Call xembed_set_info if embedded.
20656 (x_make_frame_invisible): Call xembed_set_info if embedded.
20657 (x_term_init): Initialize Xatom_XEMBED.
20658 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
20659 (x_iconify_frame): Ditto.
20660
20661 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
20662 (enum xembed_info, enum xembed_message, enum xembed_focus)
20663 (enum xembed_modifier, enum xembed_accelerator): New.
20664 (xembed_set_info, xembed_send_message): Declare.
20665 (FRAME_X_EMBEDDED_P): New.
20666
20667 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
20668 gtk_plug_new.
20669
20670 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
20671 window ID of a frame.
20672 (x_window): Reparent frame if embedded.
20673 (Fx_create_frame): Don't set border width if embedded.
20674
20675 * emacs.c (USAGE3): Add --parent-id.
20676 (standard_args): Ditto.
20677
206782008-02-07 Jan Djärv <jan.h.d@swipnet.se>
20679
20680 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
20681
206822008-02-07 Jim Meyering <meyering@redhat.com>
20683
20684 Use "do...while (0)", not "if (1)...else" in macro definitions.
20685 The latter provokes a warning from gcc about the empty else, when
20686 followed by ";". Also, without that trailing semicolon, it would
20687 silently swallow up any following statement.
20688 * syntax.h (SETUP_SYNTAX_TABLE)
20689 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
20690 * buffer.h (DECODE_POSITION): Likewise.
20691 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
20692 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
20693 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
20694 (FETCH_CHAR_ADVANCE): Likewise.
20695 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
20696
206972008-02-07 Jim Meyering <meyering@redhat.com>
20698
20699 * lread.c [lint]: Don't include <sys/inode.h>.
20700
207012008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
20702
20703 * xselect.c (x_handle_dnd_message):
20704 * xmenu.c (digest_single_submenu, xmenu_show):
20705 * xdisp.c (with_echo_area_buffer_unwind_data)
20706 (format_mode_line_unwind_data, unwind_format_mode_line)
20707 (display_menu_bar):
20708 * eval.c (Ffetch_bytecode):
20709 * doc.c (store_function_docstring):
20710 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
20711 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
20712 * buffer.c (add_overlay_mod_hooklist): Use ASET.
20713
207142008-02-07 Kenichi Handa <handa@m17n.org>
20715
20716 * ftxfont.c (ftxfont_open): Don't set
20717 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
20718
20719 * ftfont.c (ftfont_open): Fix previous change.
20720
207212008-02-06 Jason Rumney <jasonr@gnu.org>
20722
20723 * w32font.c (w32font_text_extents): Fill in lbearing metric.
20724 Use cached metrics for ASCII characters.
20725 (w32font_open_internal): Don't set font's owning_frame.
20726 Cache metrics for ASCII characters.
20727
20728 * w32font.h (struct w32font_info): Add ascii_metrics.
20729 Remove owning_frame.
20730
207312008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
20732
20733 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
20734 to negative value.
20735
20736 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
20737
20738 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
20739
20740 * charset.c (syms_of_charset): Set QCtest and Qeq.
20741
207422008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
20743
20744 * process.c (Fstart_process):
20745 * callproc.c (Fcall_process): Handle the case where
20746 Funhandled_file_name_directory returns nil.
20747
20748 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
20749 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
20750 * font.c (check_gstring): Use them and AREF to access the vector before
20751 we know it's really a gstring.
20752 (Ffont_shape_text): Fix typo.
46e722a9 20753 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
20754
20755 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
20756 Declare.
20757
20758 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
20759
207602008-02-05 Jason Rumney <jasonr@gnu.org>
20761
20762 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
20763 Set smallest_font_height and smallest_char_width in display info.
20764
207652008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
20766
20767 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
20768
207692008-02-05 Miles Bader <miles@gnu.org>
20770
20771 * xfaces.c (get_lface_attributes, merge_named_face)
20772 (lookup_named_face, lookup_derived_face, realize_named_face):
20773 Revert 2008-02-01 change by cyd@stupidchicken.com.
20774
207752008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
20776
20777 * fontset.c (Ffontset_info): Handle the case of inhibitting the
20778 fallback fonts.
20779 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
20780
207812008-02-04 Jason Rumney <jasonr@gnu.org>
20782
20783 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
20784 set full_name.
20785 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
20786
207872008-02-03 Jason Rumney <jasonr@gnu.org>
20788
20789 * makefile.w32-in (OBJ1): Include font.o here.
20790 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
20791
207922008-02-02 Jason Rumney <jasonr@gnu.org>
20793
20794 * makefile.w32-in (temacs): Bump EMHEAP to 21.
20795
207962008-02-01 Jason Rumney <jasonr@gnu.org>
20797
20798 * s/cygwin.h: Define VIRT_ADDR_VARIES.
20799
20800 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
20801
208022008-02-01 Andreas Schwab <schwab@suse.de>
20803
20804 * Makefile.in (shortlisp, lisp): Update for rename of
20805 ../lisp/language/myanmar.el.
20806
208072008-02-01 Chong Yidong <cyd@stupidchicken.com>
20808
20809 * xfaces.c (get_lface_attributes): Delete function.
20810 (merge_named_face, lookup_named_face, lookup_derived_face)
20811 (realize_named_face): Call lface_from_face_name directly, and use
20812 the fact that merge_face_vectors does not alter its FROM argument.
20813
208142008-02-01 Jason Rumney <jasonr@gnu.org>
20815
20816 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
20817 input in the default locale. Handle non-Unicode multibyte input.
20818
208192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20820
20821 * fontset.c (reorder_font_vector): Exclude nil elements from the
20822 font group. Don't try multiple fonts.
20823 (fontset_font): Adjust for the above change.
20824 (Finternal_char_font): Return nil if the found font doesn't
20825 contain the character ch.
20826
20827 * Makefile.in (lisp, shortlisp): Add cham.el.
20828
208292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20830
20831 * font.h (FONTP): Make it return 1 also for a font-object.
20832
20833 * .gdbinit (xfontset): New function.
20834
20835 * font.c (font_find_for_lface): Check if the character C is
20836 supported or not only for the first font.
20837
20838 * fontset.c (reorder_font_vector): Fix typo.
20839 (fontset_find_font): Don't add a font-spec specifying a script.
20840 Use 0 (not Qt) for the indication of empty font-group. Change the
20841 format of RFONT-DEF. Return Qt if no font in the font-group
20842 support the character.
20843 (fontset_font): Adjust for the above change. If no font was
20844 found the character, remember that.
20845 (face_for_char): Adjust for the change of RFONT-DEF.
20846 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
20847 no font for the target.
20848 (Finternal_char_font): Adjust for the change of RFONT-DEF.
20849
208502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20851
20852 * font.c (font_load_for_face): Handle the case that the font in
20853 face->lface is a string.
20854
208552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20856
20857 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
20858
208592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20860
20861 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
20862 Fix previous change. If the frame is not on a window system,
20863 signal an error.
20864
208652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20866
bba3e508
SM
20867 * coding.c (decode_coding_object, encode_coding_object):
20868 Adjust marker positions after conversion.
aac0c6e3
MR
20869
20870 * lisp.h (struct Lisp_Marker): New member need_adjustment.
20871
208722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20873
20874 * font.c (font_find_for_lface): Fix the handling of the return
20875 value of font_has_char.
20876 (Ffont_shape_text): Fix previous change.
20877
20878 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
20879 (fontset_ref_and_range): Delete it.
20880 (fontset_find_font): Call char_table_ref_and_range instead of
20881 FONTSET_REF_AND_RANGE.
20882 (make_fontset): Don't setup font groups of Latin here.
20883 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
20884 (new_fontset_from_font): Make the specified font the default for
20885 all Latin characters.
20886
208872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20888
20889 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
20890 is on a window system before accessing the fontset of the frame.
20891
208922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20893
20894 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
20895
20896 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
20897 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
20898
20899 * font.c (Ffont_shape_text): If the font driver doesn't have a
20900 shaper function, make zero-width glyphs to have at least one-pixel
20901 width. Fix setting of `to' field of glyphs.
20902
209032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20904
20905 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
20906 glyphs.
20907
20908 * font.h (struct font_driver): Improve docstring of member `shape'.
20909
209102008-02-01 Kenichi Handa <handa@m17n.org>
20911
20912 * composite.c (syms_of_composite): Fix docstring of
20913 auto-composition-function.
20914
20915 * font.h (LGLYPH_SIZE): New macro.
20916
20917 * font.c (Ffont_fill_gstring): Stop filling when a character not
20918 supported by the font is found.
20919 (Ffont_shape_text): When a shape callback function returns nil,
20920 try at most two more times with larger gstring.
20921 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
20922
20923 * xdisp.c (handle_auto_composed_prop): Change the argument to
20924 auto-composition-function.
20925
20926 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
20927 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
20928 Lispy glyph and store it in the lgstring.
20929
20930 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
20931
20932 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
20933
209342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20935
20936 * font.c (Ffont_shape_text): Avoid unnecessary composition.
20937
20938 * fontset.c (Vfont_encoding_charset_alist): New variable.
20939 (syms_of_fontset): DEFVAR it.
20940 (reorder_font_vector, fontset_find_font): Optimize for the case of
20941 no need of reordering.
20942 (face_for_char): Map the charset property by
20943 Vfont_encoding_charset_alist.
20944
209452008-02-01 Jason Rumney <jasonr@gnu.org>
20946
20947 * w32font.c (logfonts_match): Don't check adstyle here.
20948 (font_matches_spec): Check here against physical font instead.
20949 (add_font_entity_to_list): Avoid some substitutions.
20950
20951 * font.c (font_parse_fcname): Default weight and slant to normal.
20952 (font_score): Prefer normal fonts if weight or slant unspecified.
20953 (font_score) [WINDOWSNT]: Scale weight difference down to closer
20954 match freetype scores.
20955
209562008-02-01 Jason Rumney <jasonr@gnu.org>
20957
20958 * w32font.c (w32font_text_extents): Don't use the frame stored in the
20959 font, as it may have been deleted.
20960 (w32_enumfont_pattern_entity): Map generic family to adstyle using
20961 most common hyphenless variation.
20962 (logfonts_match): Check generic family.
20963 (font_matches_spec): Don't check generic family here.
20964 (fill_in_logfont): Set generic family based on adstyle.
20965
20966 * w32font.h (w32font_get_cache): Update declaration.
20967
209682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20969
20970 * ftfont.c (ftfont_get_cache): Adjust the argument type.
20971
20972 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
20973 If none of the new drivers are available, call font_update_drivers
20974 with the old drivers.
20975
20976 * w32font.c (w32font_get_cache): Adjust the argument type.
20977
20978 * xfont.c (xfont_get_cache): Adjust the argument type.
20979
20980 * font.h (struct font_driver): Change argument type of get_cache.
20981
20982 * xftfont.c (xftfont_start_for_frame): Delete prototype.
20983
20984 * font.c (Ffont_get): Fix arguments to Fassoc.
20985 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
20986 (font_clear_cache): New function.
20987 (font_list_entities, font_matching_entity): Use font_get_cache.
20988 (font_update_drivers): Call font_clear_cache when finishing a driver.
20989
20990 * fontset.c (fontset_find_font): Fix previous change.
20991
209922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20993
20994 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
20995 dpyinfo->font_table.
20996 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
20997 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
20998
20999 * font.c (font_at): Handle the case that the arg C is negative.
21000 Handle the unibyte case.
21001 (Ffont_at): Call font_at with the arg C -1.
21002
21003 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21004 the position here, and call font_at with the arg C -1.
21005 Don't check the range of the existing composition at the point.
21006
210072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21008
21009 * fontset.c (fontset_add): New args charset_id and family.
21010 Change caller.
21011 (load_font_get_repertory, fontset_find_font): Assume that
21012 font_spec is always a font-spec object.
21013 (Fset_fontset_font): Always store a font-spec object in a fontset.
21014
21015 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21016 instead of get_property_and_range.
21017
210182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21019
21020 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21021 (xftfont_open): Don't keep locking face.
21022 (xftfont_close): Don't unlock face.
21023 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21024
21025 * fontset.c (fontset_find_font): Don't prefer a font of
21026 supplementary charset.
21027
210282008-02-01 Kenichi Handa <handa@m17n.org>
21029
21030 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21031 script, langsys_tag to langsys, new member script.
21032 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 21033 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
21034 listing to the script specified in that property. Fix arg to
21035 OTF_check_features.
21036
210372008-02-01 Jason Rumney <jasonr@gnu.org>
21038
21039 * w32font.h: New file.
21040
21041 * w32font.c: Include it.
21042 (struct w32font_info): Add owning_frame field. Move to w32font.h.
21043 (w32font_open): Set owning_frame.
21044 (w32font_text_extents): Use owning_frame.
21045 (struct font_callback_data): Add opentype_only field.
21046 (add_font_entity_to_list): Use it to filter fonts.
21047 Don't check against full name.
21048 (w32font_list_internal): New function.
21049 (w32font_list): Use it.
21050 (w32font_match_internal): New function.
21051 (w32font_match): Use it.
21052 (w32font_open_internal): New function.
21053 (w32font_open): Use it.
21054 (w32font_get_cache, w32font_close, w32font_has_char)
21055 (w32font_encode_char, w32font_text_extents, w32font_draw):
21056 Make non-static.
21057
21058 * makefile.w32-in (w32font.o): Depend on w32font.h.
21059
210602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21061
21062 * charset.c (Fdefine_charset_internal): Record a supplementary
21063 charset at the tail of Vcharset_order_list.
21064
21065 * font.c (Ffont_shape_text): Fix the return value.
21066
21067 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
21068
21069 * xdisp.c (handle_auto_composed_prop): Fix previous change.
21070
210712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21072
21073 * ftfont.c (struct OpenTypeSpec): New struct.
21074 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
21075 (ftfont_get_open_type_spec): New function.
21076 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
21077
21078 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
21079
210802008-02-01 Jason Rumney <jasonr@gnu.org>
21081
21082 * w32font.c (add_font_entity_to_list): Compare only the beginning
21083 of full name.
21084
210852008-02-01 Kenichi Handa <handa@m17n.org>
21086
21087 * xdisp.c (handle_auto_composed_prop): Simplify the code.
21088 Never return HANDLED_RECOMPUTE_PROPS.
21089
210902008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * font.c (font_gstring_produce): Delete it.
21093
21094 * composite.h (COMPOSITION_METHOD):
21095 Handle COMPOSITION_WITH_GLYPH_STRING.
21096
210972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21098
21099 * xfont.c (Qx): Delete.
21100 (syms_of_xfont): Don't initialize Qx.
21101
21102 * composite.h (enum composition_method):
21103 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
21104
211052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21106
21107 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
21108 (choose_face_font): Accept new form of font-spec.
21109
21110 * frame.h (font_driver_list): Declare it unconditionally.
21111 (struct frame): Define members font_driver_list and font_data_list
21112 unconditionally.
21113
21114 * fontset.c: Include "font.h" unconditionally.
21115 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
21116 (Fset_fontset_font): Accept a font-spec object.
21117
21118 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
21119 PIXEL_SIZE part a wild card.
21120
21121 * dispextern.h (struct glyph_string): Define members clip and
21122 num_clips unconditionally.
21123 (struct face): Define members font_info and extra unconditionally.
21124
21125 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
21126 ftfont_info only when HAVE_LIBOTF is defined.
21127
211282008-02-01 Andreas Schwab <schwab@suse.de>
21129
21130 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
21131 and end.
21132
211332008-02-01 Jason Rumney <jasonr@gnu.org>
21134
21135 * w32font.c (w32font_driver): Add new fields.
21136
211372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21138
21139 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
21140 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
21141 (LIBES): Add @M17N_FLT_CFLAGS@.
21142
21143 * composite.c (compose_text): Don't treat the new style
21144 composition specially.
21145
21146 * emacs.c (main): Call syms_of_font unconditionally.
21147
21148 * font.h (FONT_ENTITY_NOT_LOADABLE)
21149 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
21150 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
21151 (struct font_driver): New member shape.
21152 (font_registry_charsets): Extern it.
21153 (font_find_for_lface, font_prepare_composition): Adjust prototype.
21154 (font_otf_capability, font_drive_otf): Delete their externs.
21155
21156 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
21157 (font_charset_alist, font_registry_charsets): Move from xfont.c
21158 and rename.
21159 (font_prop_validate_otf): New function.
21160 (font_property_table): Register it for QCotf.
21161 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
21162 (font_drive_otf): Delete.
21163 (font_prepare_composition): New arg F. Adjust for the change of
21164 lispy gstring.
21165 (font_find_for_lface): New arg C.
21166 (font_load_for_face): Adjust for the change of font_find_for_lface.
21167 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
21168 lispy gstring.
21169 (Ffont_shape_text): New function.
21170 (Fopen_font): If the font size is not given, use 12-pixel.
21171 (Ffont_at): New arg STRING.
40b1a3a9 21172 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
21173 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
21174 conditionally.
21175
21176 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
21177 fonts of the same font-spec. Change the format of RFONT-DEF.
21178 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
21179 Adjust for the change of RFONT-DEF.
21180 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
21181
21182 * ftfont.h: New file.
21183
21184 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
21185 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21186 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21187 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
21188 font_otf_capability and font_drive_otf, set ftfont_shape.
21189 (ftfont_list): Adjust for the change of :otf property value.
21190 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
21191 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
21192 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
21193 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21194 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
21195 (otf_gstring, gstring, m17n_flt_initialized): New variables.
21196
21197 * w32term.c (x_draw_composite_glyph_string_foreground):
21198 Adjust for the change of lispy gstring.
21199
21200 * xdisp.c (handle_composition_prop): Adjust for the change of
21201 lispy gstring. Call a function for auto-composition with the
21202 third arg it->window.
21203 (fill_composite_glyph_string): Adjust for the change of lispy string.
21204 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
21205
21206 * xfaces.c (set_font_frame_param): Adjust for the change of
21207 font_find_for_lface.
21208
21209 * xfont.c (x_font_charset_alist): Move to font.c and rename.
21210 (xfont_registry_charsets): Likewise. Change caller.
21211 (syms_of_xfont): Don't handle x_font_charset_alist.
21212
21213 * xftfont.c: Include "ftfont.h".
21214 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21215 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21216 (xftfont_close) [HAVE_LIBOTF]: Close otf.
21217 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21218 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
21219 Set xftfont_driver.shape to xftfont_shape.
21220
21221 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21222 the change of lispy gstring.
21223
212242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21225
21226 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
21227
212282008-02-01 Jason Rumney <jasonr@gnu.org>
21229
21230 * w32font.c (w32font_draw): Fill background manually.
21231
212322008-02-01 Jason Rumney <jasonr@gnu.org>
21233
21234 * font.c (Qfontp): Remove unused symbol.
21235 (QCantialias): New symbol.
21236 (syms_of_font): Define it.
21237 (font_property_table): Set a validator for QCantialias.
21238
21239 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
21240 Define if not already.
21241 (QCfamily): Share with xfaces.c.
21242 (Qstandard, Qsubpixel, Qnatural): New symbols.
21243 (syms_of_w32font): Define them. Don't define QCfamily here.
21244 (w32_antialias_type, lispy_antialias_type): New functions.
21245 (w32_enumfont_pattern_entity): New arg requested_font.
21246 Set antialias parameter if non-default was requested.
21247 (fill_in_logfont): Fill in lfQuality if :antialias specified.
21248
212492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21250
21251 * lread.c (read1): Undo the previous change.
21252
212532008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
21254
21255 * frame.c (Fdelete_frame): Call font_update_drivers only when
21256 USE_FONT_BACKEND is defined.
21257
212582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21259
21260 * font.h (struct font_bitmap): New member bits_per_pixel.
21261 (struct font_driver): New members start_for_frame and end_for_frame.
21262 (struct font_data_list): New struct.
21263 (font_put_frame_data, font_get_frame_data): Extern them.
21264
21265 * frame.h (struct frame): New member font_data_list.
21266
21267 * font.c (font_update_drivers): Call driver->start_for_frame and
21268 driver->end_for_frame at proper timings.
21269 (font_put_frame_data, font_get_frame_data): New functions.
21270 (Ffont_spec): Add usage in the docstring.
21271
21272 * frame.c (make_frame): Initialize f->font_data_list to NULL.
21273 (Fdelete_frame): Call font_update_drivers.
21274
21275 * xftfont.c (struct xftface_info): Delete the member xft_draw.
21276 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
21277 (xftfont_get_xft_draw): New function.
21278 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
21279 (xftfont_end_for_frame): New function.
21280 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
21281
21282 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
21283 Change argument. Cache GCs in the per-frame data.
21284 (struct ftxfont_frame_data): New struct.
21285 (ftxfont_draw_bitmap): New arg gc_fore and flush.
21286 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
21287 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
21288 (ftxfont_end_for_frame): New function.
21289 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
21290
21291 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
21292
212932008-02-01 Kenichi Handa <handa@m17n.org>
21294
21295 * xselect.c (Vselection_coding_system)
21296 (Vnext_selection_coding_system): Delete them.
21297 (syms_of_xselect): Don't declare selection-coding-system and
21298 next-selection-coding-system. They are declared in select.el.
21299
213002008-02-01 Jason Rumney <jasonr@gnu.org>
21301
21302 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
21303
21304 * w32fns.c: Include imm.h.
21305 (get_composition_string_fn, get_ime_context_fn): New optional
21306 system functions.
21307 (globals_of_w32fns): Load them from imm32.dll.
21308 (ignore_ime_char): New flag.
21309 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
21310 WM_IME_ENDCOMPOSITION messages.
21311
21312 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
21313 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
21314
213152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21316
21317 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
21318 (READCHAR_REPORT_MULTIBYTE): New macro.
21319 (readchar): New 2nd arg MULTIBYTE.
21320 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
21321 Make symbol's name multibyte according to the multibyteness of the
21322 source.
21323
213242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21325
21326 * xfaces.c (face_for_overlay_string): Call lookup_face with
21327 correct arguments (fix of synching with the trunk).
21328
213292008-02-01 Kenichi Handa <handa@m17n.org>
21330
21331 * font.c (font_prop_validate_symbol, font_prop_validate_style)
21332 (font_prop_validate_non_neg, font_prop_validate_spacing):
21333 Delete argument prop_index.
21334 (font_property_table): Change arguments to validater. Change Callers.
21335 (font_lispy_object): Delete.
21336 (font_at): Use font_find_object instead fo font_lispy_object.
21337
213382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21339
21340 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
21341 and file names.
21342
213432008-02-01 Jason Rumney <jasonr@gnu.org>
21344
21345 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
21346 (font_matches_spec): Remove debug output.
21347 (add_font_entity_to_list): Avoid using substituted fonts.
21348
213492008-02-01 Jason Rumney <jasonr@gnu.org>
21350
21351 * doc.c (Fsnarf_documentation):
21352 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
21353
213542008-02-01 Miles Bader <miles@gnu.org>
21355
21356 * dispextern.h (struct glyph_row): Only define "clip" field if
21357 HAVE_WINDOW_SYSTEM is defined.
21358
213592008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21360
21361 Fix up multi-tty merge.
21362
21363 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
21364 and indentation.
21365
21366 * xfaces.c (free_realized_face, clear_face_gcs):
21367 Include font_done_for_face in the input_blocked section, just in case.
21368
21369 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
21370 (get_char_face_and_encoding): Undo last change and remove the *other*
21371 duplicate definition (i.e. keep the one that's better scoped and that
21372 includes code for the font-backend).
21373
21374 * terminal.c (create_terminal): Default keyboard_coding to
21375 `no-conversion' and terminal_coding to `undecided'.
21376
21377 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
21378
21379 * fontset.c (free_realized_fontsets): Check that the table entry does
21380 contain a fontset before trying to compare it to `base'.
21381
21382 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
21383 syms_of_charset, and syms_of_coding earlier because init_window_once
21384 now needs Vcoding_system_hash_table to be setup.
21385
21386 * coding.h (default_buffer_file_coding): Remove.
21387
21388 * coding.c (default_buffer_file_coding): Remove.
21389 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
21390 than ->symbol, and use the terminal-local coding system.
21391 (syms_of_coding): Don't setup the coding-systems that are not
21392 terminal-local.
21393 (Fdefine_coding_system_internal): Use XCAR/XCDR.
21394
21395 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
21396 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
21397
21398 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
21399 in chartab.c and were re-added here by mistake.
21400 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
21401
21402 * doc.c (Fsnarf_documentation):
21403 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
21404 src to etc.
21405
21406 * ChangeLog.10: Add mistakenly removed entry.
21407
214082008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
21409
21410 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
21411
214122008-02-01 Miles Bader <miles@gnu.org>
21413
21414 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
21415 Add extra args to FACE_FOR_CHAR.
21416
214172008-02-01 Kenichi Handa <handa@m17n.org>
21418
21419 * keymap.c (where_is_internal_1): If key is a cons, store the copy
21420 in sequence.
21421
21422 * chartab.c (map_sub_char_table, map_char_table): If the range
21423 contains just one character, call the function with that character
21424 even if the depth is not 3.
21425
214262008-02-01 Jason Rumney <jasonr@gnu.org>
21427
21428 * w32font.c (w32font_text_extents): Calculate metrics for the
21429 whole string.
21430
214312008-02-01 Jason Rumney <jasonr@gnu.org>
21432
21433 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
21434
214352008-02-01 Jason Rumney <jasonr@gnu.org>
21436
bba3e508
SM
21437 * w32term.c (x_set_glyph_string_clipping):
21438 Use get_glyph_string_clip_rects.
aac0c6e3
MR
21439 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
21440 Adjust for the change of struct glyph_string.
21441
21442 * w32font.c (w32font_draw): Do clipping here.
21443
214442008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * xftfont.c (xftfont_draw): Adjust for the change of struct
21447 glyph_string.
21448
bba3e508
SM
21449 * xterm.c (x_set_glyph_string_clipping):
21450 Use get_glyph_string_clip_rects.
aac0c6e3
MR
21451 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
21452 Adjust for the change of struct glyph_string.
21453
21454 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
21455 the resulting clip(s}.
21456 (expose_overlaps): Add arg r. Change callers. Set it to
21457 row->clip temporarily.
21458 (expose_window): Redraw rows overlapping the exposed area.
21459
21460 * dispextern.h (struct glyph_row): New member clip.
21461 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
21462 clip_height, new member clip, and num_clips.
21463
214642008-02-01 Kenichi Handa <handa@m17n.org>
21465
21466 * data.c (Fchar_or_string_p): Fix docstring.
21467
214682008-02-01 Kenichi Handa <handa@m17n.org>
21469
21470 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
21471 create a temporary XftDraw object.
21472
214732008-02-01 Kenichi Handa <handa@m17n.org>
21474
21475 * font.c (Ffontp): Fix docstring.
21476
21477 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
21478 strong evidence of ISO-2022.
21479
214802008-02-01 Kenichi Handa <handa@m17n.org>
21481
21482 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
21483 SYNTAX_ENTRY_FOLLOW_PARENT.
21484
214852008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21486
21487 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
21488 its type.
21489 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21490 Update to the new type of weak_hash_tables and next_weak.
21491
21492 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
21493 a plain C pointer to Lisp_Hash_Table.
21494
21495 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
21496 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
21497 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
21498 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
21499 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
21500 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
21501 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
21502 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
21503 (GC_EQ): Remove since they've been identical to their non-GC_
21504 alter-egos ever since the markbit was eradicated.
21505
21506 * alloc.c:
21507 * buffer.c:
21508 * buffer.h:
21509 * data.c:
21510 * fileio.c:
21511 * filelock.c:
21512 * fns.c:
21513 * frame.h:
21514 * lisp.h:
21515 * macterm.c:
21516 * print.c:
21517 * process.c:
21518 * w32fns.c:
21519 * w32menu.c:
21520 * w32term.c:
21521 * xfns.c:
21522 * xmenu.c:
21523 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
21524
215252008-02-01 Kenichi Handa <handa@m17n.org>
21526
21527 * chartab.c (map_sub_char_table): Make it work for the top-level
21528 char-table. Fix handling of parent char-table.
21529 (map_char_table): Adjust for the above change.
21530
215312008-02-01 Jason Rumney <jasonr@gnu.org>
21532
21533 * w32font.c (Qgdi): Rename from Qw32.
21534
215352008-02-01 Jason Rumney <jasonr@gnu.org>
21536
21537 * w32bdf.c (get_quoted_string): Make function static.
21538
215392008-02-01 Kenichi Handa <handa@m17n.org>
21540
21541 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
21542 bigger ascent and descent than those of the font, use them as
21543 font's ascent and descent.
21544
215452008-02-01 Kenichi Handa <handa@m17n.org>
21546
21547 * Makefile.in (${lispsource}international/charprop.el): Move this
21548 target within "#ifdef HAVE_UNIDATA" and "#endif".
21549
215502008-02-01 Kenichi Handa <handa@m17n.org>
21551
21552 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
21553 (shortlisp): Add ../lisp/language/tai-viet.el.
21554
215552008-02-01 Ulrich Mueller <ulm@gentoo.org>
21556
21557 * Makefile.in (${lispsource}international/charprop.el): Depend on
21558 temacs${EXEEXT}.
21559
215602008-02-01 Jason Rumney <jasonr@gnu.org>
21561
21562 * w32font.c (w32font_close): Delete the GDI font object.
21563
21564 * w32menu.c: Include character.h.
21565
21566 * w32proc.c: Likewise.
21567
21568 * w32select.c: Likewise.
21569
21570 * makefile.w32-in (w32proc.o): Depend on character.h.
21571
215722008-02-01 Jason Rumney <jasonr@gnu.org>
21573
21574 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
21575
21576 * w32menu.c (syms_of_w32menu): Likewise.
21577
21578 * w32proc.c (syms_of_ntproc): Likewise.
21579
21580 * w32select.c (syms_of_w32select): Likewise.
21581
21582 * w32term.c (syms_of_w32term): Likewise.
21583
215842008-02-01 Jason Rumney <jasonr@gnu.org>
21585
21586 * w32font.c (w32font_draw): Delete brush after using it.
21587
215882008-02-01 Jason Rumney <jasonr@gnu.org>
21589
21590 * w32font.c (w32font_open): Don't set font_idx.
21591 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
21592 to font settings.
21593 (w32font_draw): Fill background explicitly.
21594
215952008-02-01 Jason Rumney <jasonr@gnu.org>
21596
21597 * w32term.c (w32_initialize): Don't call w32font_initialize.
21598
21599 * w32font.c (w32font_info): Remove subranges.
21600 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
21601 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
21602 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
21603 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
21604 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
21605 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
21606 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
21607 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
21608 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
21609 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
21610 New symbols.
21611 (font_callback_data): New struct.
21612 (w32font_list, w32font_match): Use it.
21613 (w32font_open): Don't populate subranges.
21614 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
21615 (w32font_encode_char): Always return unicode code-point as-is.
21616 (w32font_text_extents): Supply a transformation matrix to
21617 GetGlyphOutline. Never look up by glyph index. Avoid looping
21618 twice. Use unicode version of GetTexExtentPoint32 instead of
21619 glyph index version.
21620 (set_fonts_frame): Remove.
21621 (w32_enumfont_pattern_entity): Add frame parameter, use it to
21622 set frame parameter. Use backward compatible fake foundries.
21623 Save generic family in extra slot under QCfamily. Make width slot
21624 constant. Save QCspacing value. Save list of scripts instead of
21625 binary subranges.
21626 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
21627 (add_font_entity_to_list): Use font_callback_data struct.
21628 Filter unwanted fonts.
aac0c6e3
MR
21629 (add_one_font_entity_to_list): Use font_callback_data struct.
21630 (w32_registry): Default to iso10646_1.
21631 (fill_in_logfont): Use dpi from extra slot. Don't bother with
21632 string font registries. Don't fill in font name if it is a generic
21633 family name, fill family instead. Use spacing, family and script
21634 extra info to fill pitch, family and charset fields.
21635 (list_all_matching_fonts): Use font_callback_data struct.
21636 (unicode_range_for_char): Remove.
21637 (font_supported_scripts): New function.
21638 (w32font_initialize): Remove.
21639 (syms_of_w32font): Update which symbols are defined.
21640
216412008-02-01 Jason Rumney <jasonr@gnu.org>
21642
21643 * font.c (font_pixel_size): Reverse assq_no_quit args.
21644
21645 * w32term.h (FONT_WIDTH): Report max width, not average.
21646 (FONT_MAX_WIDTH): Remove.
21647 (FONT_AVG_WIDTH): New macro.
21648
21649 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
21650 redefinition of FONT_WIDTH.
21651
21652 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
21653 (w32_cache_char_metrics): Use FONT_WIDTH.
21654
21655 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
21656
216572008-02-01 Jason Rumney <jasonr@gnu.org>
21658
21659 * w32font.c (w32font_open): Make lfHeight negative.
21660
21661 * w32fns.c (x_default_font_parameter): Use new style font name.
21662 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
21663
216642008-02-01 Jason Rumney <jasonr@gnu.org>
21665
21666 * w32font.c (QCsubranges): New symbol.
21667 (w32font_open, w32font_has_char): Get subranges from subproperty
21668 of extra.
21669 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
21670 (syms_of_w32font): Define :subranges symbol.
21671
21672 * font.c (font_put_extra): Expose externally.
21673
21674 * font.h (font_put_extra): Move declaration from font.c.
21675
21676 * font.c (Ffont_get): Use font driver to determine otf capability.
21677 (adjust_anchor): Check if driver defines anchor_point before using.
21678
21679 * w32font.c (w32font_open): Handle size, height and pixel_size better.
21680 (w32font_draw): Use options.
21681 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
21682 Fix detection of truetype fonts.
21683 (registry_to_w32_charset): Handle charsets other than iso8859-1
21684 expressed as lisp symbols.
21685 (w32_registry): Express charset as lisp symbol.
21686 (fill_in_logfont): Reverse pixel and point height logic.
21687 Don't set width here. Set quality to default.
21688
21689 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
21690 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
21691
21692 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21693 Remove redundant loop and allocation.
21694
21695 * makefile.w32-in (font.o, w32font.o): New objects.
21696 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
21697 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
21698
21699 * xdisp.c (fill_composite_glyph_string): Make the first arg to
21700 STORE_XCHARB a valid l-value.
21701
21702 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
21703 calculations for non-Truetype fonts.
21704 (x_draw_glyph_string): Sync with xterm.c.
21705 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21706 Remove redundant code.
21707 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
21708
21709 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
21710 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
21711
21712 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
21713 (x_to_w32_charset, w32_to_x_charset): Expose externally.
21714
21715 * w32font.c: New file for w32 font backend.
21716
217172008-02-01 Kenichi Handa <handa@m17n.org>
21718
21719 * term.c: Don't include "buffer.h" twice.
21720
217212008-02-01 Kenichi Handa <handa@m17n.org>
21722
21723 * character.c (Funibyte_string): New function.
21724 (syms_of_character): Defsubr it.
21725
217262008-02-01 Jason Rumney <jasonr@gnu.org>
21727
21728 * w32term.c [USE_FONT_BACKEND]:
21729 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
21730 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
21731 (x_draw_glyph_string, x_draw_glyph_string_foreground)
21732 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
21733 (x_free_frame_resources): Sync with xterm.c.
21734
217352008-02-01 Andreas Schwab <schwab@suse.de>
21736
21737 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
21738 char-table size.
21739
217402008-02-01 Kenichi Handa <handa@m17n.org>
21741
21742 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
21743
217442008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
21747 font_otf_gpos, add font_drive_otf.
21748
21749 * fontset.c (fontset_find_font): Pay attention to font size
21750 specified for a font.
21751 (reorder_font_vector): Check contents of font_def.
21752
21753 * font.c (struct otf_list): Delete it.
21754 (otf_list): Make it a lisp variable.
21755 (otf_open): Use lispy otf_list.
21756 (generate_otf_features): Rename from parse_gsub_gpos_spec.
21757 (check_otf_features): New function.
21758 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21759 New functions.
21760 (font_drive_otf): New function merging font_otf_gsub and
21761 font_otf_gpos.
21762 (font_open_for_lface): New arg spec. Change argument order.
21763 (font_load_for_face): Adjust for the change of font_open_for_lface.
21764 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
21765 Ffont_otf_gpos.
21766 (syms_of_font): Staticpro otf_list. Delete defsubr of
21767 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
21768
21769 * xfaces.c (set_font_frame_param): Adjust for the change of
21770 font_open_for_lface.
21771
21772 * font.h (font_open_for_lface): Adjust prototype.
21773 (struct font_driver): Delete members otf_gsub and otf_gpos, add
21774 member otf_drive.
21775 (font_otf_gsub, font_otf_gpos): Delete externs.
21776 (font_drive_otf): Extern it.
21777
217782008-02-01 Kenichi Handa <handa@m17n.org>
21779
21780 * font.c (font_at): If the window W is not on a window system,
21781 return Qnil.
21782
21783 * coding.c (produce_chars, encode_coding): Don't call
21784 insert_from_gap if no characters to produce.
21785
217862008-02-01 Kenichi Handa <handa@m17n.org>
21787
21788 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
21789 Fclear_face_cache.
21790
21791 * xfaces.c (face_for_font): Check also face->font==font->font.font.
21792
217932008-02-01 Miles Bader <miles@gnu.org>
21794
21795 * emacs.c (main): Change default value of `enable_font_backend' to 1.
21796 Parse "--disable-font-backend" option.
21797 (standard_args): Add "--disable-font-backend" option.
21798
217992008-02-01 Kenichi Handa <handa@m17n.org>
21800
21801 * fontset.c (fontset_find_font): New function.
21802 (fontset_font): Use fontset_find_font.
21803 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
21804 Register the specified font for all Latin characters.
21805 (new_fontset_from_font): Register the specified font for all Latin
21806 characters.
21807 (dump_fontset): For a realized fontset, include the base fontset
21808 name in the returned vector.
21809
218102008-02-01 Kenichi Handa <handa@m17n.org>
21811
21812 * character.h (CHAR_STRING): Cast C to unsigned on calling
21813 char_string.
21814
21815 * character.c (char_string): Type of arg C changed to unsigned.
21816 Signal an error if C is an invalid character code.
21817
21818 * editfns.c (general_insert_function, Fchar_to_string):
21819 Use CHARACTERP, not INTEGERP.
21820
218212008-02-01 Kenichi Handa <handa@m17n.org>
21822
21823 * character.h (MIN_MULTIBYTE_LEADING_CODE)
21824 (MAX_MULTIBYTE_LEADING_CODE): New macros.
21825
21826 * regex.c (analyse_first): Fix for multibyte characters in "case
21827 charset:" and "case categoryspec:".
21828
218292008-02-01 Andreas Schwab <schwab@suse.de>
21830
21831 * Makefile.in (LIBES): Move standard libraries to the end.
21832
218332008-02-01 Kenichi Handa <handa@m17n.org>
21834
21835 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
21836 nonzero, don't shrink the buffer nextb.
21837
21838 * buffer.h (struct buffer_text): New member inhibit_shrinking.
21839
21840 * coding.c (coding_alloc_by_making_gap): New arg offset.
21841 (alloc_destination): Call coding_alloc_by_making_gap with the arg
21842 offset.
21843 (decode_coding_iso_2022): Update coding->safe_charsets.
21844 (decode_coding_gap): Temporarily set
21845 current_buffer->text->inhibit_shrinking to 1.
21846
218472008-02-01 Kenichi Handa <handa@m17n.org>
21848
bba3e508
SM
21849 * xterm.c (x_draw_composite_glyph_string_foreground):
21850 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
21851
218522008-02-01 Juanma Barranquero <lekktu@gmail.com>
21853
21854 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
21855
218562008-02-01 Kenichi Handa <handa@m17n.org>
21857
21858 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
21859 target_multibyte instead of multibyte.
21860 (re_match_2_internal): Call bcmp_translate with target_multibyte.
21861 (bcmp_translate): Change the argument name from multibyte to
21862 target_multibyte.
21863
218642008-02-01 Kenichi Handa <handa@m17n.org>
21865
21866 These changes are to compile a regexp into a pattern that can be
21867 used both for multibyte and unibyte targets.
21868
21869 * Makefile.in (search.o): Depend on charset.h.
21870
21871 * character.c (multibyte_char_to_unibyte_safe): New function.
21872
21873 * search.c: Include "charset.h".
21874 (compile_pattern_1): Delete argument multibyte. Don't set
21875 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
21876 (compile_pattern): Don't compare cp->buf.target_multibyte.
21877 Compare cp->buf.charset_unibyte.
21878 (compile_pattern): Set cp->buf.target_multibyte.
21879
21880 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
21881
21882 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
21883
21884 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
21885 multibyte. Change callers.
21886 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
21887 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
21888 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
21889 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
21890 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
21891 (regex_compile): Make the compiled pattern usable both for
21892 multibyte and unibyte targets.
21893 (analyse_first): Make the fastmap usable both for multibyte and
21894 unibyte targets.
21895 (TRANSLATE_VIA_MULTIBYTE): Delete.
21896 (re_match_2_internal): Pay attention to the case that the
21897 multibyteness of bufp and target may be different.
21898
218992008-02-01 Kenichi Handa <handa@m17n.org>
21900
21901 * xdisp.c (x_produce_glyphs): When a font is not found, make the
21902 empty box occupy at least one column width.
21903
219042008-02-01 Miles Bader <miles@gnu.org>
21905
21906 * Makefile.in: Remove redundant HAVE_XFT clause.
21907
219082008-02-01 Kenichi Handa <handa@m17n.org>
21909
21910 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
21911
219122008-02-01 Kenichi Handa <handa@m17n.org>
21913
21914 * fontset.c (Finternal_char_font): Fix for the case of POSITION
21915 being nil.
21916
219172008-02-01 Kenichi Handa <handa@m17n.org>
21918
21919 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
21920
219212008-02-01 Kenichi Handa <handa@m17n.org>
21922
21923 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
21924
219252008-02-01 Kenichi Handa <handa@m17n.org>
21926
21927 * search.c (simple_search): Fix previous change.
21928
219292008-02-01 Kenichi Handa <handa@m17n.org>
21930
21931 * xftfont.c (ftfont_font_format): Extern declaration.
21932
21933 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
21934
21935 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
21936 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
21937
21938 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
21939 (ftfont_font_format): Fix previous change.
21940
21941 * font.h (Ffont_xlfd_name): EXFUN it.
21942
21943 * font.c (font_parse_xlfd): Fix the array size of `f'.
21944 (register_font_driver): Use EQ to compare driver->type.
21945
21946 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
21947 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
21948 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
21949
219502008-02-01 Kenichi Handa <handa@m17n.org>
21951
21952 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
21953 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
21954
219552008-02-01 Kenichi Handa <handa@m17n.org>
21956
21957 * xfont.c (xfont_open): Set font->format.
21958
21959 * xftfont.c (xftfont_open): Set font->format.
21960
21961 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
21962 (ftfont_list): Include FC_FONTFORMAT in FcObject.
21963 (ftfont_open): Set font->format.
21964 (ftfont_font_format): New function.
21965
21966 * font.h (struct font): New member format.
21967
21968 * font.c (Qopentype): New variable.
21969 (syms_of_font): Defsym it.
21970 (Fquery_font): Change the format of the last element of the return
21971 value.
21972
219732008-02-01 Kenichi Handa <handa@m17n.org>
21974
21975 * xfns.c (xic_create_xfontset): Try the default fontset name as a
21976 last resort.
21977
219782008-02-01 Kenichi Handa <handa@m17n.org>
21979
21980 * coding.c (detect_coding_charset): Fix detection of multi-byte
21981 charset.
21982
219832008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
21984
21985 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
21986
219872008-02-01 Kenichi Handa <handa@m17n.org>
21988
21989 * xdisp.c (get_next_display_element): Set it->face_id for the
21990 first component of a composition.
21991 (x_produce_glyphs): Check if the font is changed or not for composition.
21992
219932008-02-01 Kenichi Handa <handa@m17n.org>
21994
21995 * fontset.c (Qlatin): New variable.
21996 (syms_of_fontset): Define it as a lisp symbol.
21997 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
21998
219992008-02-01 Kenichi Handa <handa@m17n.org>
22000
22001 * font.c (font_unparse_fcname): Pay attention to the case that
22002 some of font property is a null string.
22003
220042008-02-01 Kenichi Handa <handa@m17n.org>
22005
22006 * term.c: Include "composite.h".
22007 (encode_terminal_code): Output all components of composition.
22008 Check the size of encode_terminal_src.
22009 (produce_glyphs): For composition, call produce_composite_glyph.
22010 (append_composite_glyph, produce_composite_glyph): New functions.
22011
22012 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22013 is not found, get font_info from the current ascii face.
22014
220152008-02-01 Kenichi Handa <handa@m17n.org>
22016
22017 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22018 buffer-file-name to Qnil before calling insert_from_buffer.
22019
22020 * font.c (font_unparse_fcname): Pay attention to the case that
22021 foundry is a null string.
22022
220232008-02-01 Kenichi Handa <handa@m17n.org>
22024
22025 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22026
22027 * font.c (Qunicode_sip): New variable.
22028 (syms_of_font): Declare it as a Lisp symbol.
22029
22030 * font.h (Qunicode_sip): Extern it.
22031
220322008-02-01 Kenichi Handa <handa@m17n.org>
22033
22034 * composite.c (get_composition_id): Pay attention to TAB component.
22035
22036 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
22037 TAB. Adjust for the change of s->char2b which always points to
22038 the first element of allocated memory.
22039
22040 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
22041
22042 * xdisp.c (handle_composition_prop): Set it->c to the first
22043 non-TAB component.
22044 (fill_composite_glyph_string): Change argument.
22045 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
22046 (x_produce_glyphs): Fix handling of left/right padding.
22047
220482008-02-01 Kenichi Handa <handa@m17n.org>
22049
22050 * coding.c (detect_coding_system): Fix for handling off
22051 inhibit_iso_escape_detection. Fix for the case that no coding
22052 system is defined for a specific coding category.
22053
220542008-02-01 Kenichi Handa <handa@m17n.org>
22055
22056 * font.c (font_matching_entity): Delete unused local var.
22057
22058 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
22059 opening a font.
22060
22061 * fileio.c (Finsert_file_contents): On recovering a file, assume
22062 Unix-like eol.
22063 (choose_write_coding_system): On auto-saving a file, force
22064 Unix-like eol.
22065
22066 * coding.c (setup_coding_system): Fix setting of
22067 coding->common_flags based on eol_type.
22068 (coding_inherit_eol_type): If PARENT is not nil, be sure to
22069 inherit from it.
22070
220712008-02-01 Kenichi Handa <handa@m17n.org>
22072
22073 * alloc.c (NSTATICS): Increas to 0x600.
22074
220752008-02-01 Kenichi Handa <handa@m17n.org>
22076
22077 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
22078 (ftfont_list): Don't check :name property.
22079 (ftfont_match): New function.
22080 (ftfont_pattern_entity): If the pattern doesn't contain
22081 FC_SPACING, don't assume FC_MONO.
22082
22083 * font.h (struct font_driver): New member `match'.
22084 (font_update_drivers): Adjust prototype.
22085
22086 * font.c (font_parse_fcname, font_parse_name): Don't change :name
22087 property of FONT.
bba3e508
SM
22088 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
22089 Define them unconditionally.
aac0c6e3
MR
22090 (font_matching_entity): New function.
22091 (font_open_by_name): Try font_matching_entity if exact match is
22092 not found.
22093 (font_update_drivers): Delete the arg FONT. Return a list of
22094 actually used backends. Don't free faces, font caches here.
22095 Don't store data in frame parameters. Don't call x_set_font.
22096 (Ffont_spec): Store :name property as is.
22097 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
22098 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
22099 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
22100 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
22101 Call font->driver->otf_gsub instead of font_otf_gsub.
22102
22103 * frame.c (x_set_font_backend): Do more works that were done in
22104 font_update_drivers before.
22105
22106 * xfont.c (xfont_match): New function.
22107 (xfont_driver): Set xfont_driver.match to xfont_match.
22108 (xfont_draw): Set font in GC if necessary.
22109
22110 * ftxfont.c (ftxfont_match): New function.
22111 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
22112
22113 * xftfont.c (xftfont_match): New function.
22114 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
22115
221162008-02-01 Kenichi Handa <handa@m17n.org>
22117
22118 * font.h (struct font): New member scalable.
22119 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
22120 (font_otf_gsub): Adjust prototype.
22121
22122 * font.c (font_otf_capability): Fix handling of the default langsys.
22123 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
22124 Check the contents of SPEC.
22125 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
22126 (check_gstring): New function.
22127 (REPLACEMENT_CHARACTER): New macro.
22128 (font_otf_gsub): New arg alternate_subst. Be sure to set all
22129 glyph codes of GSTRING.
22130 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
22131 (font_prepare_composition): Set cmp->glyph_len.
22132 (font_open_entity): Set font->scalable.
22133 (Ffont_get): Handle :otf property.
bba3e508
SM
22134 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
22135 New functions.
aac0c6e3
MR
22136 (Fquery_font): Use font->font.full_name.
22137 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
22138 Sfont_otf_alternates.
22139
22140 * ftfont.c (ftfont_open): Set font->font.full_name and
22141 font->font.name properly. Fix calculation of font->font.height
22142 and font->min_width.
22143
22144 * ftxfont.c (ftxfont_create_gcs): New function.
22145 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
22146 (ftxfont_draw_backgrond): Fix filling region.
22147 (ftxfont_default_fid): New function.
22148 (ftxfont_open): Set xfont->fid to the return value of
22149 ftxfont_default_fid.
22150 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
22151 (ftxfont_done_face): Free only GCs that are created by
22152 ftxfont_create_gcs.
22153 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
22154
22155 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
22156 Clip to src->width, etc (not src->clip_XXX).
22157
22158 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
22159 FontBackend frame parameter.
22160
221612008-02-01 Kenichi Handa <handa@m17n.org>
22162
22163 * font.h (struct font_driver_list): New member `on'.
22164 (Fclear_font_cache): EXFUN it.
22165 (font_update_drivers): Extern it.
22166
22167 * font.c (font_unparse_fcname): Fix typo (swidth->width).
22168 (font_list_entities): Check driver_list->on.
40b1a3a9 22169 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
22170 (font_update_drivers): New function.
22171 (Fclear_font_cache): Check driver_list->on.
22172
22173 * frame.h (Qfont_backend): Extern it.
22174 (x_set_font_backend): Extern it.
22175
22176 * frame.c (Qfont_backend): New variable.
22177 (frame_parms): New element for font-backend.
22178 (x_set_font_backend): New function.
22179
22180 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
22181 FontBackend frame parameter.
22182 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
22183 x_set_font_backend.
22184
22185 * xfont.c (xfont_list): Don't try listing by :name property if the
22186 name is not for XLFD.
22187
221882008-02-01 Kenichi Handa <handa@m17n.org>
22189
22190 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
22191 (LGLYPH_SET_TO): New macros.
22192 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
22193 element of G is vector or not.
22194 (font_at): Extern it.
22195
22196 * font.c: Include window.h.
22197 (font_lispy_object): New function.
22198 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
22199 end of valid glyph.
22200 (font_close_object): Fix getting (struct font *).
22201 (font_at): New function.
22202 (Ffont_get): If FONT is a font-object, get entity from it.
22203 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
22204 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
22205 Fix range check.
aac0c6e3
MR
22206 (Ffont_at): New function.
22207 (syms_of_font): Defsubr Sfont_at.
22208
22209 * xdisp.c (it_props): Move the entry for Qauto_composed to just
22210 before the entry for Qcomposition.
22211 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
22212 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
22213 the font in gstring.
22214 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
22215 LGLYPH_FORM (g) to detect the end of valid glyph.
22216 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
22217 we are composing with gstring.
22218
22219 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
22220 Check if adjustment is vector or not.
22221
22222 * Makefile.in (font.o): Make it depends on window.h.
22223
222242008-02-01 Kenichi Handa <handa@m17n.org>
22225
22226 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
22227 adjustment is vector or not.
22228
222292008-02-01 Miles Bader <miles@gnu.org>
22230
22231 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
22232
222332008-02-01 Kenichi Handa <handa@m17n.org>
22234
22235 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 22236 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
22237 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
22238
22239 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
22240 (DEVICE_DELTA): Fix typo.
22241 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
22242 LGLYPH format.
22243
22244 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22245 the change of LGLYPH format.
22246
222472008-02-01 Kenichi Handa <handa@m17n.org>
22248
22249 * ftfont.c (ftfont_list): Fix typo.
22250 (ftfont_build_basic_charsets): Don't include letters with diacritics.
22251
222522008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22253
22254 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
22255
22256 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
22257 xftface_info is non-NULL.
22258
222592008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22260
22261 * ftfont.c (ftfont_list): Move misplaced #endif.
22262
222632008-02-01 Kenichi Handa <handa@m17n.org>
22264
22265 * ftfont.c (ftfont_list): Pay attention to the case that
22266 FC_CAPABILITY is not defined.
22267
222682008-02-01 Kenichi Handa <handa@m17n.org>
22269
22270 * xftfont.c (xftfont_open): Set charset related members to -1.
22271
22272 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
22273 QCname.
22274 (ftfont_open): Set charset related members to -1.
22275
22276 * fontset.c (Votf_script_alist): New variable.
22277 (syms_of_fontset): Initialize it.
22278 (fontset_font): Delete unused variable.
22279
22280 * fontset.h (Votf_script_alist): Extern it.
22281
22282 * font.c (font_find_for_lface): Optimize code.
22283
22284 * font.h (font_close_object, font_merge_old_spec): Extern them.
22285
222862008-02-01 Kenichi Handa <handa@m17n.org>
22287
22288 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
22289 (syms_of_font): Initialize them.
22290 (font_pixel_size): Allow float value in dpi.
22291 (font_prop_validate_type): Delete.
22292 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
22293 Change caller.
22294 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
22295 (font_prop_validate_extra): Delete.
22296 (font_prop_validate_spacing): New function.
22297 (font_property_table): Add elements for all known properties.
bba3e508
SM
22298 (get_font_prop_index): Rename from check_font_prop_name.
22299 New argument FROM. Change caller.
aac0c6e3
MR
22300 (font_prop_validate): Validate all known properties.
22301 (font_put_extra): Delete argument force. Change caller.
22302 (font_expand_wildcards): Make it static. Fix the way of shrinking
22303 the possible range.
22304 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
22305 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
22306 Change caller.
22307 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
22308 (font_parse_fcname): Delete argument merge. Fix parsing of point
22309 size. Don't validate properties values here. Change caller.
22310 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
22311 (font_open_by_name): Delete unused variable.
22312 (Ffont_spec): Likewise. Validate property values.
22313 (Ffont_match_p): New function.
22314
22315 * font.h (QCscalable): Extern it.
22316 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
22317
22318 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
22319
22320 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
22321 (xfont_list_pattern): New function.
22322 (xfont_list): Use xfont_list_pattern.
22323
223242008-02-01 Kenichi Handa <handa@m17n.org>
22325
22326 * font.h (Flist_fonts): EXFUN it.
22327
223282008-02-01 Jason Rumney <jasonr@gnu.org>
22329
22330 * w32term.c (w32_initialize): Add back smoothing_type and
22331 smoothing_enabled definitions.
22332
223332008-02-01 Kenichi Handa <handa@m17n.org>
22334
22335 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
22336 s->face->font on determining underline position.
22337
223382008-02-01 Kenichi Handa <handa@m17n.org>
22339
22340 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
22341 (font_has_char): Accept font-object too.
22342 (font_find_for_lface): Try at first with a size specified in face.
22343
223442008-02-01 Kenichi Handa <handa@m17n.org>
22345
22346 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
22347 font_open_by_name.
22348
223492008-02-01 Kenichi Handa <handa@m17n.org>
22350
22351 * font.h (QCspacing, QCdpi): Extern them.
22352 (enum font_spacing): New enum.
22353 (FONT_PIXEL_SIZE_QUANTUM): New macro.
22354
22355 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
22356 (QCspacing, QCdpi): New variables.
22357 (syms_of_font): Initialize them.
22358 (font_pixel_size): New function.
22359 (font_put_extra): New function.
22360 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
22361 in FONT_EXTRA.
22362 (font_parse_fcname): Handle enumerated values (e.g. bold).
22363 Fix handling font size. Add QCname property that contains only
22364 unknown properties.
22365 (font_score): Change argument. Change caller. Pay attention to
22366 FONT_PIXEL_SIZE_QUANTUM.
22367 (font_sort_entites, font_list_entities, font_find_for_lface)
22368 (font_open_for_lface, font_open_by_name): Fix handling of font size.
22369 (Ffont_spec): Add QCname property that contains only unknown properties.
22370
bba3e508
SM
22371 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
22372 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
22373 listed font. Don't include scalable in pattern. Pay attention to
22374 FONT_PIXEL_SIZE_QUANTUM.
22375
223762008-02-01 Kenichi Handa <handa@m17n.org>
22377
22378 * font.c (font_parse_fcname): Fix parsing of point-size.
22379 (font_unparse_fcname): Produce symbolic names for style properties.
22380 (font_list_entities): Handle float size correctly.
22381 (font_open_by_name): Prefer `normal' property values if the name
22382 doesn't specify them.
22383
22384 * fontset.c (Finternal_char_font): Use font_get_name, not
22385 Ffont_xlfd_name.
22386
22387 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
22388 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
22389 pattern. Don't force scalable.
22390
22391 * xftfont.c (xftfont_open): For generating a name, start from
22392 96-byte buffer.
22393
223942008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22395
22396 * frame.h (x_new_fontset2): Fix prototype.
22397
223982008-02-01 Kenichi Handa <handa@m17n.org>
22399
22400 * font.h (struct font_driver): Delete member parse_name.
22401 (font_match_p, font_get_spec, font_parse_fcname)
22402 (font_unparse_fcname): Extern them.
22403 (font_get_name): Adjust prototype.
22404
22405 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
22406 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
22407 (font_expand_wildcards): Fix handling ENCODING field.
22408 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
22409 (font_parse_fcname): New function.
22410 (font_unparse_fcname): New function.
22411 (font_parse_name): New function.
22412 (font_match_p): New function.
22413 (font_get_name): Change return value to Lisp string.
22414 (font_get_spec): New function.
22415 (Qunspecified, Qignore_defface): Don't extern them.
22416 (font_find_for_lface): Assume that LFACE is fully specified.
22417 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
22418 object, use it for FACE.
22419 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
22420 driver->parse_name.
22421 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
22422
22423 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
22424 prototype.
22425
22426 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
22427 argument F. Don't call Fnew_fontset. Instead, directly call
22428 make_fontset.
22429
22430 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
22431
22432 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
22433 of x_new_fontset2.
22434
22435 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
22436 (Qsans__serif): New variables.
22437 (ftfont_generic_family_list): New variable.
22438 (syms_of_ftfont): Initialize the above variables.
22439 (ftfont_pattern_entity): Delete argument NAME.
22440 (ftfont_list_generic_family): New function.
22441 (ftfont_parse_name): Delete this function.
22442 (ftfont_list): Try generic family only when FcFontList found no font.
22443 (ftfont_list_family): Fix args to FcObjectSetBuild.
22444
22445 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
22446 object in attrs[LFACE_FONT_INDEX].
22447 (set_lface_from_font_name): Cancel all changes for font-backend.
22448 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
22449 function.
22450 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
22451 font object in QCfont attribute.
22452 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
22453 (realize_default_face) [USE_FONT_BACKEND]: Call
22454 set_lface_from_font_and_fontset.
22455
22456 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
22457 "fixed", and signal error here if no suitable font was found.
22458
22459 * xfont.c (xfont_parse_name): Delete this function.
22460
22461 * xftfont.c (xftfont_open): Change coding style of error
22462 handling. Generate fontconfig's fontname pattern.
22463
22464 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
22465 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
22466
22467 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
22468 Both args FONTSET and FONT_OBJECT must be existing ones.
22469
224702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22471
22472 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
22473
224742008-02-01 Kenichi Handa <handa@m17n.org>
22475
22476 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
22477
22478 * font.h (struct font): Fix typo.
22479
22480 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
22481 XLFD_XXX_INDEX.
22482 (enum xlfd_field_mask): New enum.
ef1b0ba7 22483 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
22484 are followed by non-digits, return a symbol.
22485 (font_expand_wildcards): New function.
22486 (font_parse_xlfd): Fix wildcard handling.
22487 (Ffont_spec): If :name is specified, reflect the info in the other
22488 properties.
22489
22490 * ftfont.c (ftfont_pattern_entity): Fix typo.
22491 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
22492 locale.
22493
224942008-02-01 Kenichi Handa <handa@m17n.org>
22495
22496 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
22497
22498 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
22499 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
22500 registry doesn't specify encoding part.
22501 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
22502 (font_open_by_name): At first try parsing the name.
22503 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
22504 as Lisp symbols.
22505
22506 * fontset.c (reorder_font_vector): Pay attention to the case that
22507 the 3rd element of font_def is nil.
22508 (fontset_font): For the default fontset, append one more fontset
22509 elements for a script-based font specification. Don't add script
22510 attribute on finding a font.
22511 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
22512 font name.
22513 (fontset_ascii_font): If a font can't be opened, return nil.
22514
22515 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
22516 (ftfont_pattern_entity): New function.
22517 (ftfont_get_cache): Assume that freetype_font_cache is already
22518 initialized.
22519 (ftfont_list): Handle the case that a file is specified in font
22520 name. Use ftfont_pattern_entity to generate entities.
22521 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
22522 (syms_of_ftfont): Initialize freetype_font_cache.
22523
22524 * xftfont.c (xftfont_open): Make the font name fontconfig's
22525 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
22526 (xftfont_close): Free font->font.name if not NULL.
22527
22528 * xfont.c (xfont_list): If script is specified for a font, return
22529 null_vector.
22530 (xfont_list_family): Declare argument type.
22531
22532 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
22533 name, set LFACE_FONT (lface) to nil.
22534
22535 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
22536 return Qnil.
22537
225382008-02-01 Kenichi Handa <handa@m17n.org>
22539
22540 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
22541 (standard_args): Add "-enable-font-backend".
22542
225432008-02-01 Kenichi Handa <handa@m17n.org>
22544
22545 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
22546 (struct xftdraw_list, xftdraw_list): Delete them.
22547 (register_xftdraw, check_xftdraw): Delete them.
22548 (xftfont_prepare_face): Don't call register_xftdraw.
22549 (xftfont_done_face): Don't call check_xftdraw.
22550 (xftfont_draw): Get background color only when with_background is
22551 nonzero.
22552
22553 * xfont.c (xfont_encode_char): Fix calculation of char2b.
22554
225552008-02-01 Kenichi Handa <handa@m17n.org>
22556
22557 These changes are for the new font handling codes.
22558
22559 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
22560 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
22561 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
22562 (FONTSRC, FONTOBJ): New variables.
22563 (obj): Add $(FONTOBJ).
22564 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
22565 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
22566 @LIBOTF_LIBS@.
22567 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
22568 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
22569
22570 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
22571
22572 * character.h (Vscript_representative_chars): Extern it.
22573
22574 * character.c (Vscript_representative_chars): New variable.
22575 (syms_of_character): Declare it as a Lisp variable.
22576
22577 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
22578 enable_font_backend is nonzero, accept the composition method
22579 COMPOSITION_WITH_GLYPH_STRING.
22580
22581 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
22582 enumeration COMPOSITION_WITH_GLYPH_STRING.
22583
22584 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
22585 members clip_x, clip_y, clip_width, and clip_height.
22586 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
22587
22588 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
22589 --enable-font-backend. Call syms_of_font.
22590
22591 * fns.c (assoc_no_quit): New function.
22592
22593 * fontset.h (FONT_INFO_FROM_FACE): New macro.
22594 (face_for_font, new_fontset_from_font)
22595 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
22596
22597 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
22598 (fontset_font, fontset_ascii, face_for_char)
22599 (make_fontset_for_ascii_face, Ffont_info)
22600 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
22601 is nonzero, use font-backend mechanism.
22602 (find_font_encoding): Make it non-static.
22603 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
22604 New functions.
22605
22606 * frame.h (struct frame): New members resx and resy.
22607 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
22608 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
22609
22610 * frame.c [USE_FONT_BACKEND]: Include "font.h".
22611 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
22612
22613 * lisp.h (assoc_no_quit): Extern it.
22614
22615 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
22616 Through out the file, use FONT_INFO_FROM_FACE instead of
22617 FONT_INFO_FROM_ID, use get_per_char_metric instead of
22618 rif->per_char_metric.
22619 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
22620 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
22621 (get_glyph_face_and_encoding, fill_composite_glyph_string)
22622 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22623 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
22624 nonzero, use font-backend mechanism.
22625 (get_per_char_metric): New function.
22626
22627 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
22628 (set_lface_from_font_name)
22629 (set_font_frame_param, free_realized_face)
22630 (prepare_face_for_display, clear_face_gcs)
22631 (Finternal_set_font_selection_order, realize_x_face)
22632 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
22633 font-backend mechanism.
22634 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
22635 (load_face_font) [USE_FONT_BACKEND]: Abort.
22636 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
22637 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
22638
22639 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
22640 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
22641 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
22642 nonzero, register all available font drivers.
22643 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
22644 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
22645
22646 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
22647 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
22648 (x_set_glyph_string_clipping_exactly)
22649 (x_compute_glyph_string_overhangs)
22650 (x_draw_glyph_string_foreground)
22651 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
22652 (x_free_frame_resources) [USE_FONT_BACKEND]: If
22653 enable_font_backend is nonzero, use font-backend mechanism.
22654 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
22655
226562008-02-01 Kenichi Handa <handa@m17n.org>
22657
22658 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
22659 system_eol_type.
22660 (syms_of_coding): Initialize system_eol_type.
22661
22662 * process.c (Fset_process_coding_system): Inherit system's eol
22663 format if necessary.
22664
226652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22666
22667 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
22668
226692008-02-01 Kenichi Handa <handa@m17n.org>
22670
22671 * coding.c (decode_eol): Pay attention to buffer relocation in
22672 del_range_2.
22673 (decode_coding): Call decode_eol before restoring undo_list.
22674
226752008-02-01 Kenichi Handa <handa@m17n.org>
22676
22677 * charset.c (Fdefine_charset_internal): Fix setting of
22678 emacs_mule_bytes.
22679
226802008-02-01 Kenichi Handa <handa@m17n.org>
22681
22682 * keyboard.c (read_char): Check if C is a character or not before
22683 looking up Vkeyboard_translate_table.
22684
226852008-02-01 Kenichi Handa <handa@m17n.org>
22686
bba3e508
SM
22687 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
22688 Fix condition to terminate the loop.
aac0c6e3
MR
22689
226902008-02-01 Kenichi Handa <handa@m17n.org>
22691
22692 * coding.c (produce_composition): Compare charbuf[i] instead of
22693 args[i] against 0.
22694 (Fterminal_coding_system): Use EQ to compare Lisp objects.
22695
226962008-02-01 Kenichi Handa <handa@m17n.org>
22697
22698 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
22699 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
22700 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
22701 detect_coding.
22702 (emacs_mule_char): Handle old style (Emacs 20) component character
22703 of a composition.
22704 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
22705 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
22706 composition rule.
22707 (decode_coding_emacs_mule): Handle invalid bytes correctly.
22708
227092008-02-01 Kenichi Handa <handa@m17n.org>
22710
22711 * coding.c (encode_coding_ccl): Allocate destination dynamically
22712 when necessary.
22713
227142008-02-01 Kenichi Handa <handa@m17n.org>
22715
22716 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
22717 the loop. When quitted, show a proper error message.
22718
227192008-02-01 Kenichi Handa <handa@m17n.org>
22720
bba3e508
SM
22721 * xterm.c (x_set_glyph_string_clipping_exactly):
22722 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
22723
22724 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
22725 character sequence.
22726 (Fccl_execute_on_string): Use ASET, not XSET.
22727
227282008-02-01 Kenichi Handa <handa@m17n.org>
22729
22730 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
22731
227322008-02-01 Kenichi Handa <handa@m17n.org>
22733
22734 * coding.c (decode_coding): Fix the condition of terminating the
22735 decoding loop.
22736
227372008-02-01 Kenichi Handa <handa@m17n.org>
22738
22739 * data.c (Faset): On setting a character bigger than 255 in a
22740 unibyte string, signal an error instead of make the string multibyte.
22741
227422008-02-01 Kenichi Handa <handa@m17n.org>
22743
22744 * charset.c (map_charset_chars): Fix for ascii-compatible charset
22745 made by a mapping table.
22746
227472008-02-01 Kenichi Handa <handa@m17n.org>
22748
22749 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
22750 not.
22751 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
22752 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
22753
bba3e508
SM
22754 * xterm.c (x_draw_composite_glyph_string_foreground):
22755 Check s->face is NULL or not.
aac0c6e3
MR
22756
227572008-02-01 Kenichi Handa <handa@m17n.org>
22758
22759 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
22760 (x_draw_glyph_string): Fix drawing of right_overhang and
22761 left_overhang around/on cursor.
22762
22763 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
22764
227652008-02-01 Kenichi Handa <handa@m17n.org>
22766
22767 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
22768
227692008-02-01 Kenichi Handa <handa@m17n.org>
22770
22771 * coding.c (Fdefine_coding_system_internal)
22772 (Fdefine_coding_system_alias): Avoid a duplicated element in
22773 Vcoding_system_alist.
22774
227752008-02-01 Kenichi Handa <handa@m17n.org>
22776
22777 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
22778
22779 * coding.c (Qcoding_system_define_form): New variable.
22780 (syms_of_coding): Intern and staticpro it.
22781 (Fcoding_system_p): Check Qcoding_system_define_form.
22782 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
22783
22784 * coding.h (CODING_SYSTEM_P): If ID is not available, call
22785 Fcoding_system_p.
22786 (CHECK_CODING_SYSTEM): If ID is not available, call
22787 Fcheck_coding_system.
22788 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
22789 Try also Fcheck_coding_system.
22790
227912008-02-01 Kenichi Handa <handa@m17n.org>
22792
22793 * coding.c (code_conversion_restore): GCPRO arg.
22794
227952008-02-01 Kenichi Handa <handa@m17n.org>
22796
22797 * character.c (lisp_string_width): Check multibyteness of STRING.
22798
227992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22800
22801 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
22802 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
22803 (decode_mac_font_name): Use decode_coding_c_string instead of
22804 decode_coding.
bba3e508
SM
22805 (x_load_font): Initialize fontp->fontset to -1.
22806 Set fontp->encoding_type.
aac0c6e3
MR
22807
228082008-02-01 Kenichi Handa <handa@m17n.org>
22809
22810 * search.c (search_buffer): Give up BM search on case-fold-search
22811 if one of a target character has a case-equivalence of different
3b59c351 22812 byte length even if that target character is an ASCII.
aac0c6e3
MR
22813 (simple_search): Fix calculation of byte length of matched text.
22814 (boyer_moore): Fix handling of case-equivalent multibyte characters.
22815
228162008-02-01 Kenichi Handa <handa@m17n.org>
22817
22818 * coding.c (decode_coding): Fix handling of invalid bytes.
22819
228202008-02-01 Kenichi Handa <handa@m17n.org>
22821
22822 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
22823 Unicode characters.
22824
228252008-02-01 Kenichi Handa <handa@m17n.org>
22826
22827 * coding.c (encode_coding_object): If a pre-write-conversion
22828 function makes a new buffer, kill it.
22829
228302008-02-01 Kenichi Handa <handa@m17n.org>
22831
22832 * coding.c (QCascii_compatible_p): New variable.
22833 (syms_of_coding): Initialize it.
22834 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
22835 calling string_char.
22836 (record_conversion_result): Add `default:' case.
22837 (coding_charset_list): Delete unused variable `coding_type'.
22838 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
22839 property in the plist of the coding system.
22840 (Fcoding_system_put): Check QCascii_compatible_p.
22841
228422008-02-01 Miles Bader <miles@gnu.org>
22843
22844 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
22845 removed calculation of frame `f', as it's now used.
22846
228472008-02-01 Kenichi Handa <handa@m17n.org>
22848
22849 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
22850 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
22851 (UNIDATA): New variable.
22852 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
22853 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
22854 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
22855
228562008-02-01 Kenichi Handa <handa@m17n.org>
22857
22858 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
22859 (admindir): New variable.
22860 ($(lispsource)international/charprop.el): New target.
22861
228622008-02-01 Miles Bader <miles@gnu.org>
22863
22864 * character.c (chars-in-region): Remove obsolete function.
22865 (syms_of_character): Remove its initialization.
22866
228672008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
22868
22869 * w32select.c (validate_coding_system)
22870 (setup_windows_coding_system): New functions.
bba3e508
SM
22871 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
22872 Use setup_windows_coding_system.
22873 (setup_config, Fw32_get_clipboard_data):
22874 Use validate_coding_system.
aac0c6e3
MR
22875 (Fx_selection_exists): Move call to setup_config to a place
22876 where signals are allowed.
22877
22878 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
22879 (Fcheck_coding_system): Add declarations.
22880
228812008-02-01 Kenichi Handa <handa@m17n.org>
22882
22883 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
22884
228852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22886
22887 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
22888 string as the second argument for x_new_fontset.
22889
228902008-02-01 Kenichi Handa <handa@m17n.org>
22891
22892 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
22893 (encode_coding_object): Use safe_call instead of call2.
22894
228952008-02-01 Kenichi Handa <handa@m17n.org>
22896
22897 * fontset.c (Fset_fontset_font): Check family element of a given vector.
22898
22899 * Makefile.in (lisp): Include charprop.el.
22900
229012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22902
22903 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
22904 Not sure if it's unnecessary.
22905
229062008-02-01 Steven Tamm <steventamm@mac.com>
22907
22908 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
22909 some possibly unnecessary fontset checking code that crashed
22910 when creating a new frame.
22911
229122008-02-01 Kenichi Handa <handa@m17n.org>
22913
22914 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
22915 lookup_face.
22916
22917 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
22918
22919 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
22920
229212008-02-01 Kenichi Handa <handa@m17n.org>
22922
22923 * coding.c: Cancel the change done in HEAD on 2008-02-01.
22924 (coding_charset_list): New function.
22925
22926 * coding.h (coding_charset_list): Extern it.
22927
229282008-02-01 Kenichi Handa <handa@m17n.org>
22929
22930 * fontset.c (Fset_fontset_font): Call find_font_encoding with
22931 concatenation of family and registry.
22932
229332008-02-01 Kenichi Handa <handa@m17n.org>
22934
22935 * character.h (BYTE8_STRING): Fix typo.
22936
22937 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
22938 string to multibyte (sync to HEAD).
22939
22940 * casefiddle.c (casify_region): Handle changes in byte-length
22941 using replace_range_2 (sync to HEAD).
22942
229432008-02-01 Andreas Schwab <schwab@suse.de>
22944
22945 * chartab.c (map_char_table): GCPRO table and arg.
22946
229472008-02-01 Kenichi Handa <handa@m17n.org>
22948
22949 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
22950 already at limit.
22951
229522008-02-01 Kenichi Handa <handa@m17n.org>
22953
22954 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
22955 instead of fast_c_string_match_ignore_case.
bba3e508
SM
22956 (find_font_encoding): Change argument to Lisp_Object.
22957 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
22958 fast_c_string_match_ignore_case. Change caller.
22959
229602008-02-01 Kenichi Handa <handa@m17n.org>
22961
22962 * xdisp.c (get_next_display_element): In unibyte case, decide to
22963 display in octal form by checking a character by
22964 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
22965
22966 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
22967
22968 * character.c (unibyte_has_multibyte_table): New variable.
22969
22970 * character.h (unibyte_has_multibyte_table): Extern it.
22971 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
22972
229732008-02-01 Kenichi Handa <handa@m17n.org>
22974
22975 * coding.c (encode_coding_iso_2022): Fix handling of charset
22976 annotation.
22977
229782008-02-01 Kenichi Handa <handa@m17n.org>
22979
22980 * coding.c (setup_coding_system): If coding_system is nil, use
22981 Qundecided.
22982 (Fterminal_coding_system): Return nil if terminal coding system is
22983 `undecided'.
bba3e508
SM
22984 (syms_of_coding): Define coding-system `undecided' here.
22985 Setup terminal_coding as `undecided'.
aac0c6e3
MR
22986
229872008-02-01 Kenichi Handa <handa@m17n.org>
22988
bba3e508
SM
22989 * xdisp.c (message_dolog, set_message_1):
22990 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
22991
22992 * lread.c (read1): Fix reading of a char-table.
22993
22994 * print.c (print_object): Include sub char-table in circularities
22995 detection.
22996
229972008-02-01 Kenichi Handa <handa@m17n.org>
22998
22999 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23000 Append the found sequences in car of ARGS instead of prepending.
23001
230022008-02-01 Kenichi Handa <handa@m17n.org>
23003
23004 * fileio.c (report_file_error): Make a unibyte string from
23005 strerror (errorno).
23006 (Fsubstitute_in_file_name): Fix the arg to
23007 unibyte_char_to_multibyte. It is evaluated twice.
23008
230092008-02-01 Kenichi Handa <handa@m17n.org>
23010
23011 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23012
230132008-02-01 Kenichi Handa <handa@m17n.org>
23014
23015 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23016 BOM is not found.
23017 (detect_coding, detect_coding_system): Optimization for ISO-2022
23018 when no 8-bit data is found.
23019
230202008-02-01 Jason Rumney <jasonr@gnu.org>
23021
23022 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23023
230242008-02-01 Kenichi Handa <handa@m17n.org>
23025
23026 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23027 CHARS.
23028
230292008-02-01 Steven Tamm <steventamm@mac.com>
23030
23031 * macterm.c (mac_encode_char): Add charset argument and update
23032 to use encoding_type.
23033 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
23034 switch to pure fontset.
23035 (decode_mac_font_name): Temporarily remove decoding.
23036 (x_font_name_to_mac_font_name): Temporarily remove encoding.
23037 (x_load_font): Temporarily remove encoding.
23038
230392008-02-01 Kenichi Handa <handa@m17n.org>
23040
23041 * xfaces.c (Fface_font): If frame is not on a window system,
23042 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
23043 refer to face->font.
23044 (split_font_name_into_vector, build_font_name_from_vector)
23045 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
23046 when HAVE_WINDOW_SYSTEM is defined.
23047
230482008-02-01 Kenichi Handa <handa@m17n.org>
23049
23050 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
23051 (x_produce_glyphs): Fix setting of members of cmp in case
23052 cmp->glyph_len is zero.
23053
23054 * fontset.c (Fset_fontset_font): Fix docstring.
23055 (Ffontset_info): Make it backward compatible. New arg ALL.
23056
230572008-02-01 Kim F. Storm <storm@cua.dk>
23058
23059 * process.c (read_process_output): Grow decoding_buf when needed;
23060 this could cause a crash in allocate_string and compact_small_strings.
23061
230622008-02-01 Kenichi Handa <handa@m17n.org>
23063
23064 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
23065
230662008-02-01 Kenichi Handa <handa@m17n.org>
23067
23068 * coding.c (setup_coding_system): Set coding->common_flags
23069 correctly for raw-text.
23070 (consume_chars): On encoding unibyte text by raw-text, don't check
23071 multibyte form.
23072 (encode_coding): On encoding by raw-text, never use translation tables.
23073
23074 * fileio.c (e_write): Short cut for the case of no encoding.
23075
230762008-02-01 Kenichi Handa <handa@m17n.org>
23077
23078 * coding.c (detect_coding, detect_coding_system): Delete unused
23079 variables.
23080
230812008-02-01 Kenichi Handa <handa@m17n.org>
23082
23083 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
23084 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
23085
230862008-02-01 Kenichi Handa <handa@m17n.org>
23087
bba3e508
SM
23088 * coding.c (Ffind_coding_systems_region_internal):
23089 Include raw-text and no-conversion in the result.
aac0c6e3
MR
23090
230912008-02-01 Kenichi Handa <handa@m17n.org>
23092
23093 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
23094 (load_font_get_repertory): Delete unnecessary check of ENCODING of
23095 FONT_DEF.
23096 (font_def_arg, add_arg, from_arg, to_arg): New args.
23097 (set_fontset_font): Change argument.
23098 (Fset_fontset_font): Fix for the case that TARGET is a script
23099 name and charset name.
23100 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
23101
231022008-02-01 Kenichi Handa <handa@m17n.org>
23103
23104 * fontset.c (fontset_font): Rename from fontset_face. Change return
23105 value.
23106 (face_suitable_for_char_p, face_for_char): Adjust for the change
23107 of fontset_font.
23108 (make_fontset_for_ascii_face): Fix setting of the fontset element
23109 for ASCII.
23110 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
23111 to get a font name.
23112 (Ffontset_info): Adjust for the change of fontset_font.
23113
23114 * coding.c (emacs_mule_char): Check invalid code more rigidly.
23115
23116 * character.h (LEADING_CODE_LATIN_1_MIN)
23117 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
23118
231192008-02-01 Kenichi Handa <handa@m17n.org>
23120
23121 * editfns.c (check_translation): New function.
23122 (Ftranslate_region_internal): Handle M:N mapping.
23123
231242008-02-01 Kenichi Handa <handa@m17n.org>
23125
23126 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
23127
231282008-02-01 Kenichi Handa <handa@m17n.org>
23129
23130 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
23131 goto invalid_code.
23132 (decode_coding_iso_2022): Fix handling of invalid designation.
23133
23134 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
23135 after calling code_conversion_save.
23136
231372008-02-01 Kenichi Handa <handa@m17n.org>
23138
23139 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
23140
23141 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
23142
23143 * fontset.c: Include "intervals.h".
23144 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
23145 (free_face_fontset, new_fontset_from_font_name):
23146 Fix Lisp_Object/int mixup.
aac0c6e3
MR
23147
23148 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
23149
23150 * coding.c: Add many prototypes for static functions.
23151 (get_translation_table): Allow max_lookup to be NULL.
23152 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
23153 (Funencodable_char_position, Fcheck_coding_systems_region):
23154 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
23155
231562008-02-01 Kenichi Handa <handa@m17n.org>
23157
23158 * coding.c (get_translation_table): Declare it as Lisp_Object.
23159 (LOOKUP_TRANSLATION_TABLE): New macro.
23160 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
23161 instead of CHAR_TABLE_REF.
23162
231632008-02-01 Kenichi Handa <handa@m17n.org>
23164
23165 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
23166 annotation data format.
23167 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
23168 Change arguments FROM and TO to single argument NCHARS. Change caller.
23169 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
23170 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23171 (decode_coding_ccl, decode_coding_charset): Pay attention to
23172 coding->charbuf_used.
23173 (get_translation): New function.
23174 (produce_chars): New arguments translation_table and last_block.
23175 Translate characters here. Return number of carryover chars.
23176 Change caller.
23177 (produce_composition): New argument pos. Change caller.
23178 Adjust for the change of annotation data format.
23179 (produce_charset, produce_annotation): Likewise.
23180 (decode_coding, encode_coding): Don't call translate_chars.
23181 (consume_chars): New arg translation_table. Change caller.
23182 (translate_chars): Delete.
23183 (syms_of_coding): Make translation-table's number of extra slots 2.
23184
231852008-02-01 Kenichi Handa <handa@m17n.org>
23186
23187 * search.c (simple_search): Fix setting this_pos_byte in backward
23188 search.
23189
23190 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
23191 byte sequence.
23192 (detect_coding_ccl): Fix setting of the variable valids.
23193
231942008-02-01 Kenichi Handa <handa@m17n.org>
23195
23196 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
23197
23198 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
23199
23200 * editfns.c (Ftranslate_region_internal): Rename from
23201 Ftranslate_region. Accept a char-table in TABLE.
23202 (syms_of_editfns): Defsubr Stranslate_region_internal.
23203
23204 * xfaces.c (set_lface_from_font_name): If a font is specified for
23205 a frame, generate a fontset from the font.
23206 (build_scalable_font_name): If the scalable font is requested for
23207 a specific size, don't change that size.
23208 (try_font_list): Try a scalable font also in the case that a
23209 pattern string is specified.
23210
232112008-02-01 Kenichi Handa <handa@m17n.org>
23212
23213 * xfaces.c (Fface_font): New optional arg CHARACTER.
23214
232152008-02-01 Kenichi Handa <handa@m17n.org>
23216
23217 * charset.h (CHARSET_OFFSET): New macro.
23218
232192008-02-01 Kenichi Handa <handa@m17n.org>
23220
23221 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
23222
23223 * fontset.c (fontset_face): Handle the case that repertory is a
23224 char-table.
23225 (find_font_encoding): Return nil for unknown encoding.
23226 (Fset_fontset_font): Ignore a font of unknown encoding.
23227
232282008-02-01 Kenichi Handa <handa@m17n.org>
23229
23230 * keymap.c (describe_vector): Handle default value of a char table.
23231
23232 * fontset.c (fontset_face): Handle fallback fonts correctly.
23233 (Ffontset_info): Return infomation about fallback fonts.
23234
232352008-02-01 Kenichi Handa <handa@m17n.org>
23236
23237 * fontset.c (FONTSET_DEFAULT): New macro.
23238 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
23239 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
23240 the case that it is nil.
23241 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
23242 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
23243
23244 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
23245 subset or superset.
23246
232472008-02-01 Kenichi Handa <handa@m17n.org>
23248
23249 * emacs.c (main): Call init_charset after syms_of_XXX.
23250
23251 * charset.c (Vcharset_map_directory): Delete.
23252 (Vcharset_map_path): New variable.
23253 (load_charset_map_from_file): Use Vcharset_map_path instead.
23254 (init_charset): Initialize Vcharset_map_path.
23255 (syms_of_charset): Delete declaration of "charset-map-directory",
23256 add declaration of "charset-map-path".
23257
232582008-02-01 Kenichi Handa <handa@m17n.org>
23259
23260 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
23261 ASCII only string.
23262
23263 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
23264
23265 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
23266 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
23267
232682008-02-01 Kenichi Handa <handa@m17n.org>
23269
23270 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
23271
23272 * coding.c (QCmnemonic, QCdefalut_char)
23273 (QCdecode_translation_table, QCencode_translation_table)
23274 (QCpost_read_conversion, QCpre_write_conversion): New variables.
23275 (get_translation_table): Return a list of translation tables if
23276 necessary.
23277 (decode_coding): Call get_translation_table with ENCODEP 0.
23278 (char_encodable_p): If translation_table is non-nil, always call
23279 translate_char.
23280 (Fdefine_coding_system_internal): Accept list of translation
23281 tables as :encode-translation-table and :decode-translation-table.
23282 (Fcoding_system_put): New function.
bba3e508
SM
23283 (syms_of_coding): Declare new symbols.
23284 Defsubr Scoding_system_put.
aac0c6e3
MR
23285 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
23286 typically JISX0212.
23287
23288 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
23289 when the charset is superset type.
23290
23291 * character.c (translate_char): Accept list of translation tables.
23292
232932008-02-01 Kenichi Handa <handa@m17n.org>
23294
23295 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
23296 (CODING_ATTR_TRANS_TBL): New macro.
23297
23298 * coding.c (get_translation_table): New function.
23299 (translate_chars): Fix the bug of skipping annotation data.
23300 (decode_coding, encode_coding): Utilize get_translation_table.
23301 (char_encodable_p, Funencodable_char_position): Translate char if
23302 necessary.
23303 (Ffind_coding_systems_region_internal)
23304 (Fcheck_coding_systems_region): Setup translation table for encode
23305 in a coding system attribute vector in advance.
23306 (Fdefine_coding_system_internal): Allow a symbol as translation
23307 table. For shift-jis type coding system, allow 4th charset.
23308
233092008-02-01 Kenichi Handa <handa@m17n.org>
23310
23311 * coding.c (decode_coding_sjis): Check the first byte rigidly.
23312
23313 * xdisp.c (get_next_display_element): Pass -1 as POS to
23314 FACE_FOR_CHAR if displaying a C-string.
23315
233162008-02-01 Kenichi Handa <handa@m17n.org>
23317
23318 * composite.c (get_composition_id): Handle xoff and yoff in a
23319 composition rule.
23320
23321 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
23322 (struct composition): New member lbearing and rbearing.
23323
23324 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
23325 (x_get_glyph_overhangs): Handle a composition glyph.
23326 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
23327
23328 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
23329 composition glyph.
23330
233312008-02-01 Kenichi Handa <handa@m17n.org>
23332
23333 * print.c: Include charset.h.
23334 (Vprint_charset_text_property): New variable.
23335 (Qdefault): Extern it.
23336 (PRINT_STRING_NON_CHARSET_FOUND)
23337 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
23338 (print_check_string_result): New variable.
23339 (print_check_string_charset_prop): New function.
23340 (print_prune_charset_plist): New variable.
23341 (print_prune_string_charset): New function.
23342 (print_object): Call print_prune_string_charset if
23343 Vprint_charset_text_property is not t.
23344 (print_interval): Print nothing if interval->plist is nil.
23345 (syms_of_print): Declare Vprint_charset_text_property as a lisp
23346 variable. Init and staticpro print_prune_charset_plist.
23347
233482008-02-01 Kenichi Handa <handa@m17n.org>
23349
23350 * fontset.c (new_fontset_from_font_name): Use the specified font
23351 for all characters in the new fontset.
23352
23353 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23354 OBJECT args.
23355
23356 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
23357 OBJECT args for composition too.
23358
23359 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23360 OBJECT args.
23361
233622008-02-01 Kenichi Handa <handa@m17n.org>
23363
23364 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
23365
23366 * fontset.c (reorder_font_vector): Adjust for the change of
23367 FONT_DEF format.
23368 (fontset_face): New arg id. Change caller.
23369 (face_for_char): New args pos and object.
23370 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
23371 (fs_query_fontset): Check NAME by Fassoc too.
23372 (Fset_fontset_font): Allow non-XLFD font name.
23373 (Ffontset_info): Adjust for the change of FONT_DEF format.
23374
23375 * fontset.h (face_for_char): Adjust prototype.
23376
23377 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
23378 (append_space, extend_face_to_end_of_line)
23379 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23380 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
23381
23382 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
23383 POS and OBJECT args.
23384
23385 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
23386 POS and OBJECT args.
23387
233882008-02-01 Jason Rumney <jasonr@gnu.org>
23389
23390 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
23391 of GlobalAlloc'ed memory.
23392
233932008-02-01 Kenichi Handa <handa@m17n.org>
23394
23395 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
23396
23397 * charset.h (charset_table_used): Delete extern.
23398
23399 * charset.c (charset_table_used): Make it static.
23400 (map_charset_chars): Fix args to c_function with.
23401
23402 * chartab.c (map_sub_char_table_for_charset): Fix args to
23403 c_function with.
23404
bba3e508
SM
23405 * coding.h (enum coding_result_code):
23406 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
23407
23408 * coding.c (Qinsufficient_source, Qinconsistent_eol)
23409 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
23410 (Vlast_code_conversion_error): New variables.
23411 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
23412 (ONE_MORE_BYTE): Record error if any instead of signaling an
23413 error. If non-ASCII multibyte char is found, return the negative
23414 value of the code. All callers changed to check it.
23415 (ONE_MORE_BYTE_NO_CHECK): Likewise.
23416 (record_conversion_result): New function. Change all codes setting
23417 coding->result to call this function.
23418 (detect_coding_utf_8, decode_coding_utf_8)
23419 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
23420 Don't use the local variable incomplete.
23421 (emacs_mule_char): Change the second arg to `const'.
23422 (decode_coding): Fix of flushing out unprocessed data.
23423 (make_conversion_work_buffer): Fix making of a work buffer.
23424 (decode_coding_object): Return coding->dst_object.
23425
23426 * fontset.c (set_fontset_font): Fix args.
23427
23428 * lisp.h (CHARACTERBITS): Define as 22.
23429
23430 * process.c (send_process): Be sure to set coding->src_multibyte.
23431
23432 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
23433
234342008-02-01 Kenichi Handa <handa@m17n.org>
23435
23436 * xdisp.c (handle_auto_composed_prop): Give limit to
23437 Fnext_single_char_property_change.
23438
234392008-02-01 Kenichi Handa <handa@m17n.org>
23440
23441 * composite.c (syms_of_composite): Don't make the composition hash
23442 table weak.
23443
23444 * fontset.c (Fset_fontset_font): Fix docstring.
23445
23446 * lisp.h (detect_coding_system): Adjust prototype.
23447
23448 * fileio.c (kill_workbuf_unwind): Delete this function.
23449 (Finsert_file_contents): Adjust the call of detect_coding_system.
23450 Get conversion_buffer by code_conversion_save. Use the macro
23451 CODING_MAY_REQUIRE_DECODING. After decoding, update
23452 coding_system.
23453
23454 * coding.h (make_conversion_work_buffer): Delete extern.
23455 (code_conversion_save): Extern it.
23456
23457 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
23458 (CODING_GET_INFO): Delete argument eol_type. Change callers.
23459 (decode_coding_utf_8): Don't do eol converion.
23460 (detect_coding_utf_16): Check coding->src_chars, not
23461 coding->src_bytes. Add heuristics for those that have no signature.
23462 (decode_coding_emacs_mule, decode_coding_iso_2022)
23463 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23464 Don't do eol converion.
23465 (adjust_coding_eol_type): Return a new coding system.
23466 (detect_coding): Don't detect eol. Fix for utf-16 detection.
23467 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
23468 each change.
23469 (decode_coding): Pay attention to undo_list. Do eol conversion for
23470 all types of coding-systems (if necessary).
23471 (Vcode_conversion_work_buf_list): Delete it.
23472 (Vcode_conversion_reused_workbuf): Rename from
23473 Vcode_conversion_reused_work_buf.
23474 (Vcode_conversion_workbuf_name): New variable.
23475 (reused_workbuf_in_use): New variable.
23476 (make_conversion_work_buffer): Delete the arg DEPTH.
23477 (code_conversion_restore): Change argument to cons.
23478 (code_conversion_save): Delete the argument BUFFER. Change callers.
23479 (detect_coding_system): New argument src_chars. Change callers.
23480 Fix for utf-16 detection.
23481 (init_coding_once): Don't use ISO_carriage_return.
23482 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
23483 reused_workbuf_in_use.
23484
234852008-02-01 Kenichi Handa <handa@m17n.org>
23486
23487 * keymap.c (store_in_keymap): Pay attention to the case that idx
23488 is a cons specifying a character range.
23489
234902008-02-01 Kenichi Handa <handa@m17n.org>
23491
23492 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
23493 HANDLED_RECOMPUTE_PROPS.
23494
23495 * coding.c (Fdefine_coding_system_internal): Fix checking of
23496 ascii compatibility.
23497
234982008-02-01 Kenichi Handa <handa@m17n.org>
23499
23500 * charset.c (find_charsets_in_text): Delete unused locale variable.
23501 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
23502
23503 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
23504 Resync charset_list to Vemacs_mule_charset_list.
23505
23506 * keymap.c (store_in_keymap): Pay attention to the case that idx
23507 is a cons specifying a character range.
23508
235092008-02-01 Kenichi Handa <handa@m17n.org>
23510
23511 * composite.c (update_compositions): Bind inhibit-read-only, etc
23512 to t before calling remove-list-of-text-properties.
23513
23514 * print.c (print_object): Always print ASCII chars as is.
23515
235162008-02-01 Kenichi Handa <handa@m17n.org>
23517
23518 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
23519
23520 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
23521 is a char table.
23522
235232008-02-01 Kenichi Handa <handa@m17n.org>
23524
23525 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
23526
235272008-02-01 Kenichi Handa <handa@m17n.org>
23528
23529 * xfaces.c (set_lface_from_font_name): Fix for the case that
23530 FONTNAME is not fontset name.
23531
235322008-02-01 Kenichi Handa <handa@m17n.org>
23533
23534 * fns.c (base64_encode_1): Fix previous change.
23535
235362008-02-01 Kenichi Handa <handa@m17n.org>
23537
23538 * fontset.c (set_fontset_font): New function.
23539 (Fset_fontset_font): If a font is specified for a charset, use
23540 map_charset_chars to store the font spec in a fontset.
23541
235422008-02-01 Kenichi Handa <handa@m17n.org>
23543
23544 * fontset.c (fontset_face): Create a fallback fontset on demand.
23545 (make_fontset): Don't create a fallback fontset here.
23546 (free_face_fontset): Free a fallback fontset (if any) too.
23547 (n_auto_fontsets): Delete this variable.
23548 (auto_fontset_alist): New variable.
23549 (new_fontset_from_font_name): Check auto_fontset_alist.
23550 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
23551 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
23552 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
23553 Defsubr Sfontset_list_all.
23554
235552008-02-01 Kenichi Handa <handa@m17n.org>
23556
23557 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
23558
235592008-02-01 Kenichi Handa <handa@m17n.org>
23560
23561 * fontset.c (Fnew_fontset): Check NAME more rigidly.
23562
235632008-02-01 Kenichi Handa <handa@m17n.org>
23564
23565 * editfns.c (Fgoto_char): Fix docstring.
23566
235672008-02-01 Kenichi Handa <handa@m17n.org>
23568
23569 * insdel.c (insert_from_gap): Adjust intervals correctly.
23570
235712008-02-01 Jason Rumney <jasonr@gnu.org>
23572
23573 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
23574 (pfnGetFontUnicodeRanges): New dynamically loaded function.
23575 (w32_initialize): Try to load it.
23576 (x_get_font_repertory): Use it if available.
23577 (w32_encode_char): Add shortcut for unicode output.
23578
23579 * w32fns.c (w32_load_system_font): Default charset to -1.
23580 (x_to_w32_charset): Match all fonts for unicode.
23581 (w32_to_x_charset): New parameter matching. Don't return partial
23582 or wildcard charsets.
23583 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
23584 (w32_codepage_for_font): Return CP_UNICODE for unicode.
23585 (w32_to_x_font): Match charset to real charset.
23586 (enum_font_cb2): Always list unicode versions.
23587
23588 * makefile.w32-in (temacs): Increase EMHEAP.
23589
235902008-02-01 Jason Rumney <jasonr@gnu.org>
23591
23592 * w32term.c (w32_encode_char): New charset parameter.
23593 font_info.encoding becomes encoding_type.
23594 (x_get_font_repertory): New function. Warning: stub only!
23595 (x_new_font): Return quickly if font already set.
23596 (x_new_fontset): fontsetname parameter is Lisp_Object.
23597 Use new fs_query_fontset. Try new_fontset_from_font_name.
23598 Use fontset_name for return value.
23599
23600 * w32term.h: Declare x_get_font_repertory.
23601
23602 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
23603 place of find_charset_in_text. Use encode_coding_object in place
23604 of encode_coding.
23605 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
23606 decode_coding.
23607
23608 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
23609 of x_new_fontset.
23610 (w32_load_system_font): Initialize charset as unicode.
23611 font_info.encoding becomes encoding_type.
23612 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
23613 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
23614 (syms_of_w32fns): Set get_font_repertory_func.
23615
23616 * w32console.c: Include character.h. Use terminal_encode_buffer
23617 from term.c.
bba3e508
SM
23618 (write_glyphs): Use new version of encode_terminal_code.
23619 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
23620
23621 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
23622 encoding becomes encoding_type.
23623
23624 * term.c (terminal_encode_buffer): Make externally visible.
23625
23626 * makefile.w32-in: Add character.h dependancies.
23627 (character.o, chartab.o): New targets.
23628
236292008-02-01 Kenichi Handa <handa@m17n.org>
23630
23631 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
23632 CODING_ID_EOL_TYPE.
23633
236342008-02-01 Andreas Schwab <schwab@suse.de>
23635
23636 * coding.c (produce_chars): Revert last change.
23637
236382008-02-01 Kenichi Handa <handa@m17n.org>
23639
23640 * charset.h (charset_unicode): Extern it.
23641
23642 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
23643 (find_charsets_in_text): Change format of the arc CHARSETS.
23644 New arg MULTIBYTE.
aac0c6e3
MR
23645 (Ffind_charset_region, Ffind_charset_string): Adjust for the
23646 change of find_charsets_in_text.
23647 (Fsplit_char): Fix doc. Never return unknown.
23648
23649 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
23650
bba3e508
SM
23651 * coding.c (Fdefine_coding_system_alias):
23652 Update Vcoding_system_list.
aac0c6e3
MR
23653
23654 * fontset.c (load_font_get_repertory): Pay attention to the case
23655 that ENCODING of a font is specified by a char-table.
23656
23657 * xterm.c (x_get_font_repertory): Handle the case that the
23658 encoding of font is other than Unicode.
23659
236602008-02-01 Kenichi Handa <handa@m17n.org>
23661
bba3e508
SM
23662 * term.c (encode_terminal_code): Don't handle glyph-table.
23663 Check if a character is encodable by the terminal coding system.
23664 If not, produces proper number of `?'s. Update
aac0c6e3
MR
23665 terminal_encode_buffer and terminal_encode_buf_size if necessary.
23666 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
23667
236682008-02-01 Kenichi Handa <handa@m17n.org>
23669
bba3e508
SM
23670 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
23671 New variables.
aac0c6e3
MR
23672 (encode_terminal_code): Change argument. Encode multiple
23673 characters at once. Store the result of encoding in
23674 terminal_encode_buffer.
23675 (write_glyphs, insert_glyphs): Adjust for the change of
23676 encode_terminal_code.
23677 (term_init): Initialize terminal_encode_buffer and
23678 terminal_encode_buf_size.
23679
23680 * coding.c (consume_chars): If coding->src_object is nil, don't
23681 check annotation.
23682
236832008-02-01 Kenichi Handa <handa@m17n.org>
23684
23685 * character.c (char_string): Use ASCII_CHAR_P instead of
23686 SINGLE_BYTE_CHAR_P.
23687
236882008-02-01 Kenichi Handa <handa@m17n.org>
23689
23690 * xdisp.c (handle_auto_composed_prop): Check if the last
23691 characters of auto-composed region is newly composed with the
23692 following characters.
23693 (handle_composition_prop): Fix checking of point being inside
23694 composition.
23695
236962008-02-01 Kenichi Handa <handa@m17n.org>
23697
23698 * fns.c (concat): Don't change multibyteness of the result by
23699 concatenating an 8-bit character.
23700
23701 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
23702 multibyteness of the result when newelt is an 8-bit character.
23703
237042008-02-01 Dave Love <fx@gnu.org>
23705
23706 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
23707 EMACS_INT.
23708
23709 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
23710
23711 * xfaces.c (face_numeric_value): Declare dim size_t.
23712 (Finternal_lisp_face_equal_p): Remove unused f.
23713
23714 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
23715 (MATRIX_ROW): Remove unused vars.
23716 (draw_glyphs, x_insert_glyphs, fast_find_position)
23717 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
23718 byte/char counts.
23719
23720 * regex.c (regex_compile): Remove unused var.
23721
23722 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23723
23724 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
23725 (Faccessible_keymaps, where_is_internal): Remove unused vars.
23726
23727 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
23728
23729 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
23730
23731 * fileio.c (Fwrite_region): Remove unused var.
23732
23733 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
23734 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
23735
23736 * composite.c (Fremove_list_of_text_properties): Declare.
23737
23738 * coding.c (inhibit_pre_post_conversion): Remove (unused).
23739 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
23740 (coding_inherit_eol_type): Remove unused attrs.
23741 (detect_coding): Cast arg of detect_eol.
23742
23743 * charset.c (syms_of_charset): Remove unused var p.
23744 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
23745 byte/char counts.
23746
23747 * casetab.c (set_case_table): Remove unused var.
23748
bba3e508
SM
23749 * window.c (Fdisplay_buffer, Fframe_selected_window):
23750 Remove unused vars.
aac0c6e3
MR
23751
237522008-02-01 Dave Love <fx@gnu.org>
23753
23754 * xterm.c (x_bitmap_mask): Declare.
23755
237562008-02-01 Dave Love <fx@gnu.org>
23757
23758 * xterm.c (x_term_init): Fix type error.
23759
23760 * lisp.h: Add Funibyte_char_to_multibyte.
23761
23762 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
23763 (Fset_coding_system_priority): Doc fix.
23764
23765 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
23766
23767 * indent.c (check_composition): Make start and end EMACS_INT.
23768
23769 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
23770
23771 * xdisp.c (handle_composition_prop, check_point_in_composition):
23772 Make buffer positions EMACS_INT.
23773
23774 * composite.c (find_composition, run_composition_function)
23775 (update_compositions, Ffind_composition_internal): Make buffer
23776 positions EMACS_INT.
23777
bba3e508
SM
23778 * composite.h (find_composition, update_compositions):
23779 Make position args EMACS_INT.
aac0c6e3
MR
23780
23781 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
23782
23783 * intervals.c (get_property_and_range):
23784 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
23785
23786 * unexalpha.c: Don't include varargs.h.
23787
237882008-02-01 Dave Love <fx@gnu.org>
23789
23790 * coding.h (ENCODE_UTF_8): New.
23791
23792 * Makefile.in (gtkutil.o): Depend on coding.h.
23793
23794 * coding.c (Fset_coding_system_priority): Doc fix.
23795
237962008-02-01 Kenichi Handa <handa@m17n.org>
23797
23798 * fileio.c (Finsert_file_contents): Call setup_coding_system in
23799 the case of auto saving.
23800
238012008-02-01 Andreas Schwab <schwab@suse.de>
23802
bba3e508
SM
23803 * chartab.c (map_char_table, map_char_table_for_charset):
23804 Protect `range' from GC.
aac0c6e3
MR
23805
238062008-02-01 Kenichi Handa <handa@m17n.org>
23807
23808 * coding.c (decode_coding_sjis): Check bytes more rigidly.
23809
238102008-02-01 Kenichi Handa <handa@m17n.org>
23811
23812 * fileio.c (choose_write_coding_system): Return a decided coding system.
23813 (Fwrite_region): Set Vlast_coding_system_used to the return value
23814 of choose_write_coding_system.
23815
238162008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 * charset.c (Fset_charset_priority): Pay attention to duplicated
23819 arguments.
23820
23821 * coding.c (QCcategory): New variable.
23822 (syms_of_coding): Defsym it. Set all elements of
23823 Vcoding_category_table and their symbol values.
23824 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
23825 coding-category-XXX, and coding-category-list.
23826 (Fdefine_coding_system_internal): Add category in the plist.
23827
238282008-02-01 Kenichi Handa <handa@m17n.org>
23829
23830 * callproc.c (Fcall_process): Handle carryover correctly.
23831
23832 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
23833 (raw_text_coding_system): Check NILP (coding_system).
23834 (coding_inherit_eol_type): Check NILP (coding_system) and
23835 NILP (parent).
23836 (consume_chars): Fix for the case of raw-text.
23837
23838 * process.c (read_process_output): Handle carryover correctly.
23839
238402008-02-01 Dave Love <fx@gnu.org>
23841
23842 * regex.c (re_search_2): Fix last change.
23843
238442008-02-01 Kenichi Handa <handa@m17n.org>
23845
23846 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
23847 target_multibyte. Even in a unibyte case, return a converted
23848 multibyte char.
23849 (GET_CHAR_AFTER): New macro.
23850 (PATFETCH): Translate via multibyte char.
23851 (HANDLE_UNIBYTE_RANGE): Delete this macro.
23852 (SETUP_MULTIBYTE_RANGE): New macro.
23853 (regex_compile): Setup compiled code so that its multibyteness
23854 matches that of a target. Fix the handling of "[X-YZ]" using
23855 SETUP_MULTIBYTE_RANGE.
23856 (analyse_first) <charset>: For filling fastmap for all multibyte
23857 characters, don't check by BASE_LEADING_CODE_P.
23858 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
23859 the same as RE_MULTIBYTE_P (bufp) now.
23860 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
23861 (TARGET_CHAR_AND_LENGTH): Delete this macro.
23862 (TRANSLATE_VIA_MULTIBYTE): New macro.
23863 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
23864 It is the same as RE_MULTIBYTE_P (bufp) now.
23865 <exactn>: Translate via multibyte.
bba3e508
SM
23866 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
23867 Don't translate it.
aac0c6e3
MR
23868 <charset, charset_not>: Fetch a character by
23869 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
23870 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
23871 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
23872 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
23873 by GET_CHAR_AFTER.
23874 (bcmp_translate): Likewise.
23875
23876 * search.c (compile_pattern): Check the member target_multibyte,
23877 not the member multibyte of buf.
23878
23879 * lread.c (read1): While reading a string, set force_singlebyte
23880 and force_multibyte correctly.
23881
23882 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
23883 up of unibyte_to_multibyte_table.
23884
238852008-02-01 Kenichi Handa <handa@m17n.org>
23886
23887 * coding.c (setup_coding_system): If coding has
23888 post-read-conversion or pre-write-conversion, set
23889 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
23890 respectively.
23891 (decode_coding_gap): Run post-read-conversion if any.
23892
23893 * fileio.c (Finsert_file_contents): Even if we read into a
23894 unibyte buffer, check if we must decode the result or not.
23895
238962008-02-01 Kenichi Handa <handa@m17n.org>
23897
23898 * coding.c (make_conversion_work_buffer): Change the work buffer
23899 name to the same one as that of Emacs 21.
23900
239012008-02-01 Kenichi Handa <handa@m17n.org>
23902
23903 * coding.h (make_conversion_work_buffer): Adjust prototype.
23904 (code_conversion_restore): Don't extern it.
23905
23906 * coding.c (detected_mask): Delete unused variable.
23907 (decode_coding_iso_2022): Pay attention to the byte sequence of
23908 CTEXT extended segment, and retain those bytes as is.
23909 (decode_coding_ccl): Delete unused variable `valids'.
23910 (setup_coding_system): Delete unused variable `category'.
23911 (consume_chars): Delete unused variable `category'. Make it work
23912 for non-multibyte case.
23913 (make_conversion_work_buffer): Change argument.
23914 (saved_coding): Delete unused variable.
23915 (code_conversion_restore): Don't check saved_coding->destination.
23916 (code_conversion_save): New function.
23917 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
23918 instead of record_unwind_protect.
23919 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
23920 (detect_coding_system): Delete unused variable `mask'.
23921 (Fdefine_coding_system_internal): Delete unused variable id.
23922
23923 * fileio.c (kill_workbuf_unwind): New function.
23924 (Finsert_file_contents): On replacing, call
23925 make_conversion_work_buffer with correct args, and call
23926 record_unwind_protect with the first arg kill_workbuf_unwind.
23927
23928 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
23929
239302008-02-01 Kenichi Handa <handa@m17n.org>
23931
23932 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
23933 (fontset_add): Fix for the case that TO is less than TO1.
23934 (Ffontset_info): Don't use fallback fontset on checking the
23935 default fontset.
23936 (dump_fontset): New function for debugging.
23937
23938 * coding.c (Fdefine_coding_system_internal): Fix for the case that
23939 coding_type is Qcharset.
23940
239412008-02-01 Kenichi Handa <handa@m17n.org>
23942
23943 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
23944 (map_char_table): Don't inherit the value from the parent on
23945 initializing VAL. Adjust for the above change.
23946
239472008-02-01 Kenichi Handa <handa@m17n.org>
23948
23949 * coding.c (Qsignature, Qendian): Delete these variables.
23950 (syms_of_coding): Don't initialize them.
23951 (CATEGORY_MASK_UTF_16_AUTO): New macro.
23952 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
23953 detect_info->found.
23954 (decode_coding_utf_16): Don't detect BOM here.
23955 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
23956 is NOT utf_16_without_bom.
23957 (setup_coding_system): For a coding system of type utf-16, check
23958 if the attribute :endian is Qbig or not (not nil or not), and set
23959 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
23960 (detect_coding): If coding type is utf-16 and BOM detection is
23961 required, detect it.
23962 (Fdefine_coding_system_internal): For a coding system of type
23963 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
23964
239652008-02-01 Kenichi Handa <handa@m17n.org>
23966
23967 * coding.c (coding_set_source): Fix for the case that the current
23968 buffer is different from coding->src_object.
23969 (decode_coding_object): Don't use the conversion work buffer if
23970 DST_OBJECT is a buffer.
23971
239722008-02-01 Dave Love <fx@gnu.org>
23973
23974 * lread.c (read_emacs_mule_char) [len==2]: Index
23975 emacs_mule_charset correctly.
23976
239772008-02-01 Dave Love <fx@gnu.org>
23978
23979 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
23980 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
23981 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
23982 treated specially.)
23983 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
23984 (detected_mask): Remove Big5 bits.
23985
239862008-02-01 Kenichi Handa <handa@m17n.org>
23987
23988 The following changes are to make the font rescaling facility
23989 compatible with Emacs 21.
23990
23991 * xfaces.c (Vface_font_rescale_alist): Rename from
23992 Vface_resizing_fonts.
23993 (struct font_name): Rename member resizing_ratio to rescale_ratio.
23994 (font_rescale_ratio): Rename from font_resizing_ratio.
23995 (split_font_name): Set font->rescale_ratio.
23996 (better_font_p): Pay attention to font->rescale_ratio.
23997 (build_scalable_font_name): Likewise. Change RESX, and RESY
23998 fields.
23999 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24000
240012008-02-01 Kenichi Handa <handa@m17n.org>
24002
24003 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24004 (Qutf_16_le): Remove these variables.
24005 (syms_of_coding): Don't DEFSYM them.
24006 (decode_coding_utf_16): Fix handling of BOM.
24007 (encode_coding_utf_16): Fix handling of BOM.
24008
240092008-02-01 Kenichi Handa <handa@m17n.org>
24010
24011 * fileio.c (Finsert_file_contents): On replacing, before decoding
24012 the file into the work buffer, set point of the work buffer to the end.
24013
240142008-02-01 Dave Love <fx@gnu.org>
24015
24016 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24017
240182008-02-01 Dave Love <fx@gnu.org>
24019
24020 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24021 and fix C types.
24022
240232008-02-01 Kenichi Handa <handa@m17n.org>
24024
24025 * xdisp.c (SKIP_GLYPHS): New macro.
24026 (set_cursor_from_row): Pay attention to string display properties.
24027
24028 * category.c (copy_category_entry): Fix for the case that RANGE
24029 is an integer.
24030
24031 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24032
24033 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
24034
240352008-02-01 Kenichi Handa <handa@m17n.org>
24036
24037 * charset.c (Fcharset_id_internal): New function.
24038 (syms_of_charset): Defsubr it.
24039
24040 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
24041 with the last arg charset_list acquired from coding.
24042 (Fdefine_coding_system_internal): For ccl-based coding system, fix
24043 the attribute coding_attr_ccl_valids.
24044
24045 * coding.h (enum define_coding_ccl_arg_index): Set the first
24046 member coding_arg_ccl_decoder to coding_arg_max.
24047
24048 * ccl.h (ccl_driver): Adjust prototype.
24049
24050 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
24051 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 24052 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
24053 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
24054 last arg Qnil.
24055
240562008-02-01 Kenichi Handa <handa@m17n.org>
24057
24058 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
24059 call encode_char.
24060
24061 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
24062
240632008-02-01 Dave Love <fx@gnu.org>
24064
24065 * composite.c (syms_of_composite): Make composition_hash_table weak.
24066
240672008-02-01 Kenichi Handa <handa@m17n.org>
24068
24069 * dispextern.h (check_face_attributes, generate_ascii_font_name)
24070 (font_name_registry): Don't extern them.
24071 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
24072
24073 * fontset.h (Qfontset): Don't extern it.
24074 (new_fontset_from_font_name): Extern it.
24075
24076 * fontset.c: Give 8 extra slots to fontset objects.
24077 (Qfontset_info): New variable.
24078 (syms_of_fontset): Defsym it.
24079 (FONTSET_FALLBACK): New macro.
24080 (fontset_face): Try also the default fontset.
24081 (make_fontset): Realize a fallback fontset from the default fontset.
24082 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
24083 using split_font_name_into_vector and build_font_name_from_vector.
24084 (Fset_fontset_font): Access the elements of font_spec by enum
24085 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
24086 name by using split_font_name_into_vector.
24087 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
24088 generate a proper font name from the fontset name.
24089 Update Vfontset_alias_alist.
aac0c6e3
MR
24090 (n_auto_fontsets): New variable.
24091 (new_fontset_from_font_name): New function.
24092 (Ffont_info): Store the information about fonts generated from the
24093 default fontset in the first extra slot of the returned char-table.
24094
24095 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
24096 (font_name_registry): Delete function.
24097 (split_font_name_into_vector): New function.
24098 (build_font_name_from_vector): New function.
24099 (font_list): The argument REGISTRY is now a list of registry names.
24100 (choose_face_font): If we are choosing an ASCII font, and ATTRS
24101 specifies an explicit font name, return the name as is. Make a
24102 list of registy names.
24103
24104 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
24105 of x_new_fontset.
24106 (Fx_create_frame): Don't call x_new_fontset here. Just use
24107 x_list_fonts to check the existence of fonts.
24108
24109 * xterm.h (x_new_fontset): Adjust prototype.
24110
24111 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
24112 string. Use new_fontset_from_font_name to create a fontset from a
24113 font name.
24114
241152008-02-01 Kenichi Handa <handa@m17n.org>
24116
24117 * syntax.c (Vfind_word_boundary_function_table): New name for
24118 Vnext_word_boundary_function_table.
24119 (find-word-boundary-function-table): New name for
24120 next-word-boundary-function-table.
24121
241222008-02-01 Dave Love <fx@gnu.org>
24123
24124 * Makefile.in: Fix some dependencies.
24125
24126 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
24127 set it to nil before returning.
24128
24129 * composite.c (update_compositions): Fix type error.
24130
24131 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
24132
241332008-02-01 Kenichi Handa <handa@m17n.org>
24134
24135 * xterm.c (x_new_font): Optimize for the case that the font is
24136 already set for the frame.
24137
241382008-02-01 Kenichi Handa <handa@m17n.org>
24139
24140 * chartab.c (char_table_ascii): Check if the char table contents
24141 is sub-char-table or not.
24142 (char_table_set, char_table_set_range): Fix argument to
24143 char_table_ascii.
24144
24145 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
24146 (detect_coding_utf_8, detect_coding_utf_16)
24147 (detect_coding_emacs_mule, detect_coding_iso_2022)
24148 (detect_coding_sjis, detect_coding_big5)
24149 (detect_coding_ccl, detect_coding_charset): Change argument MASK
24150 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
24151 sequence is valid in this coding system. Change callers.
24152 (MAX_ANNOTATION_LENGTH): New macro.
24153 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
24154 (ADD_COMPOSITION_DATA): Change argument. Change callers.
24155 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
24156 (ADD_CHARSET_DATA): New macro.
24157 (emacs_mule_char): New argument ID. Change callers.
24158 (decode_coding_emacs_mule, decode_coding_iso_2022)
24159 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24160 Produce charset annotation data in coding->charbuf.
24161 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
24162 to charset annotation data in coding->charbuf.
24163 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
24164 coding->common_flags if the coding system is iso-2022 based and
24165 uses designation.
24166 (produce_composition): Adjust for the new annotation data format.
24167 (produce_charset): New function.
24168 (produce_annotation): Handle charset annotation.
bba3e508
SM
24169 (handle_composition_annotation, handle_charset_annotation):
24170 New functions.
aac0c6e3
MR
24171 (consume_chars): Handle charset annotation. Utilize the above two
24172 functions.
24173 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
24174 buffer, get the deleted text as a string and set
24175 coding->src_object to that string.
24176 (detect_coding, detect_coding_system): Use the new struct
24177 coding_detection_info.
24178
24179 * coding.h (struct coding_detection_info): New structure.
24180 (struct coding_system): Adjust prototype of the member `detector'.
24181 (CODING_ANNOTATE_CHARSET_MASK): New macro.
24182
241832008-02-01 Kenichi Handa <handa@m17n.org>
24184
24185 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
24186
241872008-02-01 Dave Love <fx@gnu.org>
24188
24189 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
24190 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
24191 to new local and nullify apropos_accumulate before returning.
24192 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
24193
241942008-02-01 Kenichi Handa <handa@m17n.org>
24195
24196 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
24197 correctly.
e3eea1fc 24198
aac0c6e3
MR
241992008-02-01 Dave Love <fx@gnu.org>
24200
24201 * fns.c (Flanginfo): Call synchronize_system_time_locale.
24202
242032008-02-01 Kenichi Handa <handa@m17n.org>
24204
24205 The following changes are to make character composition happen
24206 automatically on displaying.
24207
24208 * Makefile.in (lisp, shortlisp): Add composite.elc.
24209
24210 * composite.h (Qauto_composed, Vauto_composition_function)
24211 (Qauto_composition_function): Extern them.
24212
24213 * composite.c (Vcomposition_function_table)
24214 (Qcomposition_function_table): Delete variables.
24215 (Qauto_composed, Vauto_composition_function)
24216 (Qauto_composition_function): New variables.
24217 (run_composition_function): Don't call
24218 compose-chars-after-function.
24219 (update_compositions): Clear `auto-composed' text property.
24220 (compose_chars_in_text): Delete this function.
24221 (syms_of_composite): Staticpro Qauto_composed and
24222 Qauto_composition_function. Declare Vauto_composition_function as
24223 a Lisp variable.
24224
24225 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
24226
24227 * xdisp.c (it_props): Add an entry for Qauto_composed.
24228 (handle_auto_composed_prop): New function.
24229
24230 * xselect.c (selection_data_to_lisp_data): Don't call
24231 compose_chars_in_text.
24232
242332008-02-01 Dave Love <fx@gnu.org>
24234
24235 * keyboard.c (read_char): Modify checking around use of
24236 Vkeyboard_translate_table.
24237
24238 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24239 and fix C types.
24240
242412008-02-01 Kenichi Handa <handa@m17n.org>
24242
24243 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
24244 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24245 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
24246 the case that the last byte is '\r' correctly.
24247 (decode_coding): Flush out the unprocessed data correctly.
24248 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
24249
242502008-02-01 Dave Love <fx@gnu.org>
24251
24252 * xterm.c (XTread_socket): Fix changes for defined keysyms.
24253 Add XK_ISO... case.
24254 (xaw_scroll_callback): Revert last change.
24255
242562008-02-01 Kenichi Handa <handa@m17n.org>
24257
24258 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
24259
242602008-02-01 Kenichi Handa <handa@m17n.org>
24261
24262 * xfaces.c (Vface_resizing_fonts): New variable.
24263 (struct font_name): New member `resizing_ratio'.
24264 (font_resizing_ratio): New function.
24265 (split_font_name): Set font->resizing_ratio.
24266 (better_font_p): Pay attention to font->resizing_ratio.
24267 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
24268 RESX, and RESY fields.
24269 (try_alternative_families): Try scalable fonts if
24270 Vscalable_fonts_allowed is not Qt.
24271 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
24272
242732008-02-01 Dave Love <fx@gnu.org>
24274
24275 * xterm.c (xaw_scroll_callback): Cast correctly.
24276
242772008-02-01 Dave Love <fx@gnu.org>
24278
24279 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
24280 (lispy_kana_keys): Comment out.
24281 (make_lispy_event) [XK_kana_A]: Comment out.
24282
24283 * xterm.c (xaw_scroll_callback): Cast call_data.
24284 (XTread_socket): Deal with ASCII keysyms.
24285 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
24286
242872008-02-01 Dave Love <fx@gnu.org>
24288
24289 * xterm.c (Vx_keysym_table): New.
24290 (syms_of_xterm): Initialize it.
24291 (XTread_socket): Use it.
24292 From head: Eliminate incorrect optimization that tried to avoid
24293 decoding the output of X*LookupString.
24294 (x_get_font_repertory): Delete charset declaration.
24295
242962008-02-01 Kenichi Handa <handa@m17n.org>
24297
24298 * coding.c (detect_coding_charset): If only ASCII bytes are found,
24299 return 0.
bba3e508
SM
24300 (Fdefine_coding_system_internal):
24301 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
24302
243032008-02-01 Dave Love <fx@gnu.org>
24304
24305 * coding.c (Fcheck_coding_system): Doc fix.
24306
24307 * editfns.c (Finsert_byte): Return a proper value.
24308
243092008-02-01 Kenichi Handa <handa@m17n.org>
24310
bba3e508
SM
24311 * coding.c (decode_coding): Fix args to translate_chars.
24312 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
24313 (encode_coding): Fix args to translate_chars. Pay attention to
24314 Vstandard_translation_table_for_encode.
24315
24316 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
24317 SINGLE_BYTE_CHAR_P.
24318
24319 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
24320 not by SINGLE_BYTE_CHAR_P.
24321
24322 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
24323 SINGLE_BYTE_CHAR_P.
24324
24325 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
24326 SINGLE_BYTE_CHAR_P.
24327
24328 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
24329 by SINGLE_BYTE_CHAR_P.
24330
24331 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
24332 SINGLE_BYTE_CHAR_P.
24333
243342008-02-01 Dave Love <fx@gnu.org>
24335
24336 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
24337
243382008-02-01 Dave Love <fx@gnu.org>
24339
24340 * fns.c (Flanginfo): Fix typo.
24341
24342 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
24343
243442008-02-01 Kenichi Handa <handa@m17n.org>
24345
24346 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
24347 (detect_coding_emacs_mule, detect_coding_iso_2022)
24348 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
24349 incomplete byte sequence. Don't update *mask when correctly detected.
24350 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
24351 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
24352 (detect_coding, detect_coding_system): Adjust for the changes above.
24353
243542008-02-01 Kenichi Handa <handa@m17n.org>
24355
24356 * character.c (char_string): Rename from
24357 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
24358 (string_char): Rename from string_char.
24359
24360 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
24361 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
24362 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
24363 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
24364
243652008-02-01 Dave Love <fx@gnu.org>
24366
24367 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
24368
243692008-02-01 Kenichi Handa <handa@m17n.org>
24370
24371 * keymap.c (push_key_description): Pay attention to force_multibyte.
24372
24373 * regex.c (re_search_2): Fix for the case of unibyte buffer.
24374
243752008-02-01 Dave Love <fx@gnu.org>
24376
24377 * charset.c (define_charset_internal): Rename `supprementary'.
24378
24379 * Makefile.in (lisp, shortlisp): Remove latin-N.
24380
243812008-02-01 Dave Love <fx@gnu.org>
24382
24383 * xfns.c (x_window, x_window): Use use_xim.
24384
24385 * xterm.c (use_xim): Initialize.
24386 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
24387 (x_term_init): Maybe set use_xim.
24388
24389 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
24390
243912008-02-01 Kenichi Handa <handa@m17n.org>
24392
24393 * search.c (search_buffer): Fix case-fold-search of multibyte
24394 characters.
24395 (boyer_moore): Rename the last argument to char_high_bits.
24396
243972008-02-01 Kenichi Handa <handa@m17n.org>
24398
24399 * xdisp.c (display_string): Fix for the case of zero width glyph.
24400
24401 * xfns.c (x_set_font): Change the error message of the case that
24402 x_new_fontset returns Qt.
24403
24404 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
24405 (Finternal_set_lisp_face_attribute): Use signal_error for the
24406 error of invalid fontset.
24407
24408 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
24409 fontset, return Qt.
24410
244112008-02-01 Dave Love <fx@gnu.org>
24412
24413 * unexelf.c (unexec): Make .got handling not SGI-specific.
24414
24415 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
24416
24417 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
24418
24419 * keyboard.c (read_key_sequence): Fix type error.
24420
bba3e508
SM
24421 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
24422 Fix type error.
aac0c6e3
MR
24423
24424 * fontset.c (fontset_add): Return Lisp_Object.
24425
244262008-02-01 Dave Love <fx@gnu.org>
24427
24428 * charset.h (charset_ordered_list_tick): Declare extern.
24429
244302008-02-01 Kenichi Handa <handa@m17n.org>
24431
24432 The following changes (and some of 2008-02-01 changes of mine) are
24433 for handling syntax, category, and case conversion for unibyte
24434 characters by converting them to multibyte on the fly. With these
24435 changes, we don't have to setup syntax and case tables for unibyte
24436 characters in each language environment.
24437
24438 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
24439 multibyte if necessary.
24440
24441 * bytecode.c (Fbyte_code): Likewise.
24442
24443 * character.h (LEADING_CODE_LATIN_1_MIN)
24444 (LEADING_CODE_LATIN_1_MAX): New macros.
24445 (unibyte_to_multibyte_table): Extern it.
24446 (unibyte_char_to_multibyte): New macro.
24447 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
24448 (CHAR_LEADING_CODE): New macro.
24449 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
24450
24451 * character.c (unibyte_to_multibyte_table): New variable.
24452 (unibyte_char_to_multibyte): Move to character.h and define as macro.
24453 (multibyte_char_to_unibyte): If C is an eight-bit character,
24454 convert it to the corresponding byte value.
24455
24456 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
24457 not 1, signals an error. Update the elements of
24458 unibyte_to_multibyte_table.
24459 (init_charset_once): Initialize unibyte_to_multibyte_table.
24460 (syms_of_charset): Define the charset `iso-8859-1'.
24461
24462 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
24463 as is without converting it to unibyte. In a unibyte buffer,
24464 convert C to multibyte before checking the syntax.
24465
24466 * lisp.h (unibyte_char_to_multibyte): Delete extern.
24467
24468 * minibuf.c (Fminibuffer_complete_word): Use the macro
24469 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
24470
24471 * regex.h (struct re_pattern_buffer): New member target_multibyte.
24472
24473 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
24474 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
24475 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
24476 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
24477 non-emacs case.
24478 (PATFETCH): Convert an eight-bit char to multibyte.
24479 (HANDLE_UNIBYTE_RANGE): New macro.
24480 (regex_compile): Setup the compiled pattern for multibyte chars
24481 even if the given regex string is unibyte. Use PATFETCH_RAW
24482 instead of PATFETCH in many places. To handle `charset'
24483 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
24484 only for ASCII chars.
24485 (analyse_first) <exactn>: Simplify because the compiled pattern
24486 is multibyte.
24487 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
24488 <charset>: Use CHAR_LEADING_CODE to get leading codes.
24489 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
24490 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
24491 multibyte always 1.
24492 (re_search_2): In emacs, set the locale variable multibyte to 1,
24493 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
24494 to decide the multibyteness of STR1 and STR2.
24495 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
24496 before translating and checking fastmap.
24497 (TARGET_CHAR_AND_LENGTH): New macro.
24498 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
24499 to 1, otherwise to 0. New local variable target_multibyte.
24500 Check it to decide the multibyteness of STR1 and STR2.
24501 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
24502 <charset, charset_not>: If multibyte is nonzero, check fastmap
24503 only for ASCII chars. Call bcmp_translate with
24504 target_multibyte, not with multibyte.
24505 <begline>: Declare the local variable C as `unsigned'.
24506 (bcmp_translate): Change the last arg name to target_multibyte.
24507
24508 * search.c (compile_pattern_1): Don't adjust the multibyteness of
24509 the regexp pattern and the matching target. Set cp->buf.multibyte
24510 to the multibyteness of the regexp pattern. Set
24511 cp->but.target_multibyte to the multibyteness of the matching target.
24512 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
24513 FETCH_STRING_CHAR_ADVANCE.
24514 (Freplace_match): Convert unibyte chars to multibyte.
24515
24516 * syntax.c (char_quoted, back_comment, scan_words)
24517 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
24518 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
24519 unibyte chars to multibyte.
24520 (skip_chars): Delete the arg syntaxp, and move the code for
24521 handling syntaxes to skip_syntaxes. Change callers.
24522 Fix the case that the multibyteness of STRING and the current
24523 buffer doesn't match.
24524 (skip_syntaxes): New function.
24525 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
24526 SINGLE_BYTE_CHAR_P.
24527
245282008-02-01 Kenichi Handa <handa@m17n.org>
24529
24530 * xfaces.c (QCfontset): New variable.
24531 (LFACE_FONTSET): New macro.
24532 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
24533 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
24534 (Finternal_set_lisp_face_attribute)
24535 (Finternal_get_lisp_face_attribute): Handle QCfontset.
24536 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
24537 check also LFACE_FONTSET_INDEX.
24538 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
24539 attrs[LFACE_FONT_INDEX].
24540 (syms_of_xfaces): Intern and staticpro QCfontset.
24541
24542 * dispextern.h (enum lface_attribute_index): New member
24543 LFACE_FONTSET_INDEX.
24544
24545 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
24546
245472008-02-01 Kenichi Handa <handa@m17n.org>
24548
24549 * coding.c (coding_set_destination): Fix coding->destination for
24550 the case converting a region.
24551 (encode_coding_utf_8): Encode eight-bit chars as single byte.
24552 (encode_coding_object): Fix coding->dst_pos and
24553 coding->dst_pos_byte for the case converting a region.
24554
24555 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
24556
24557 * character.h (BYTE8_STRING): New macro.
24558
24559 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
24560
245612008-02-01 Kenichi Handa <handa@m17n.org>
24562
24563 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
24564 characters by octal form.
24565
24566 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
24567
24568 * buffer.h (_fetch_multibyte_char_len): Delete extern.
24569 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
24570 _fetch_multibyte_char_len.
24571 (FETCH_CHAR_AS_MULTIBYTE): New macro.
24572
24573 * casetab.c (set_canon, set_identity, shuffle): Simplify.
24574
24575 * casefiddle.c (casify_object): Simplify. Handle the case that
24576 the case conversion change the byte length.
24577 (casify_region): Likewise.
24578
24579 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
24580
24581 * character.c (_fetch_multibyte_char_len): Delete this variable.
24582 (syms_of_character): Setup Vprintable_chars.
24583
24584 * editfns.c (Fchar_equal): Fix for the unibyte case.
24585 (Finsert_byte): New function.
24586 (syms_of_editfns): Defsubr it.
24587
24588 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
24589 of direct code 0x3ffff.
24590
24591 * search.c (Freplace_match): Fix for the unibyte case.
24592
245932008-02-01 Kenichi Handa <handa@m17n.org>
24594
24595 * lread.c (safe_to_load_p): Fix the logic.
24596
24597 * syntax.c (scan_words): Don't treat characters belonging to
24598 different scripts as constituting a word.
24599
24600 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24601
24602 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
24603
24604 * emacs.c (main): In the case of --unibyte, instead of aborting on
24605 finding non-empty buffer, make it unibyte.
24606
246072008-02-01 Kenichi Handa <handa@m17n.org>
24608
24609 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
24610 to create a fontset.
24611
246122008-02-01 Dave Love <fx@gnu.org>
24613
24614 * character.c (Funibyte_char_to_multibyte): Doc fix.
24615
24616 * xfns.c [HAVE_STDLIB_H]: Fix last change.
24617
246182008-02-01 Kenichi Handa <handa@m17n.org>
24619
24620 * fontset.c (fontset_add): Make the type `int'.
24621 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
24622
24623 * character.c (unibyte_char_to_multibyte)
24624 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
24625 charset_unibyte, not charset_primary.
24626
24627 * charset.h (charset_unibyte): Extern it instead of charset_primary.
24628
24629 * charset.c (charset_unibyte): Rename from charset_primary.
24630 (Funibyte_charset): Rename from Fprimary_charset.
24631 (Fset_unibyte_charset): Rename from Fset_primary_charset.
24632 (syms_of_charset): Adjust for the above changes.
24633
24634 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24635 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24636 it->multibyte_p is zero.
24637
24638 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
24639 Delete extern.
24640
246412008-02-01 Kenichi Handa <handa@m17n.org>
24642
24643 * coding.c (Fdefine_coding_system_internal): Fix category setting
24644 for a coding system of type iso-2022.
24645
246462008-02-01 Kenichi Handa <handa@m17n.org>
24647
24648 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
24649
246502008-02-01 Kenichi Handa <handa@m17n.org>
24651
24652 * syntax.c (Vnext_word_boundary_function_table): New variable.
24653 (next-word-boundary-function-table): Declare it as a Lisp variable
24654 in syms_of_syntax.
24655 (scan_words): Call functions in Vnext_word_boundary_function_table
24656 if any.
24657
24658 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
24659
24660 * fontset.c (fs_load_font): If fontp->charset is not negative,
24661 return fontp without setting its members.
24662
246632008-02-01 Dave Love <fx@gnu.org>
24664
24665 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
24666
24667 * m/sparc.h (HAVE_ALLOCA): Delete.
24668
24669 * s/irix6-5.h: Don't include strings.h.
24670 (bcopy, bzero, bcmp): Don't undef.
24671
24672 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
24673
24674 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
24675 (TIOCSIGSEND): Don't test IRIX6.
24676 (bcopy, bzero, bcmp): Define conditionally.
24677
246782008-02-01 Kenichi Handa <handa@m17n.org>
24679
24680 * buffer.c (Qas, Qmake, Qto): New variables.
24681 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
24682 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
24683
24684 * callproc.c (Fcall_process): Don't call insert_1_both directly if
24685 we are inserting a process output into a multibyte buffer.
24686
24687 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
24688 multibyte_char_to_unibyte.
24689
24690 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
24691 by the primary charset, make it eight-bit char.
24692 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
24693
24694 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
24695 (charset_8_bit__control, charset_8_bit_graphic)
24696 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
24697 (define_charset_internal): New function.
24698 (syms_of_charset): Call define_charset_internal for pre-defined
24699 charsets.
24700
24701 * charset.h (charset_8_bit): Extern it.
24702
24703 * coding.c (make_conversion_work_buffer): Adjust for the change
24704 of Fset_buffer_multibyte.
24705 (encode_coding_raw_text): Increment p0 in the loop.
24706
24707 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
24708
bba3e508
SM
24709 * xdisp.c (setup_echo_area_for_printing, set_message_1):
24710 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
24711
24712 * fns.c (Fstring_to_multibyte): New function.
24713 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
24714
247152008-02-01 Dave Love <fx@gnu.org>
24716
24717 * xfns.c (x_put_x_image): Declare args.
24718
24719 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
24720 (try_font_list): Declare an arg.
24721
24722 * xdisp.c (message2_nolog, set_message): Declare an arg.
24723
24724 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
24725
24726 * syntax.c (scan_sexps_forward): Declare an arg.
24727
24728 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
24729 Declare an arg.
24730
24731 * lisp.h (Fnew_fontset): Declare.
24732
24733 * keymap.c (push_key_description): Call CHARACTERP correctly.
24734
24735 * fontset.c (fontset_add): Declare args. Call make_number correctly.
24736 (face_for_char): Delete unused vars.
24737 (Fset_fontset_font): Doc fix. Delete unused vars.
24738
24739 * doc.c (Fsubstitute_command_keys): Delete unused vars.
24740
24741 * composite.c (update_compositions): Declare arg.
24742
24743 * cm.c (calccost, cmgoto): Declare args.
24744
24745 * charset.c: Remove `emacs' conditional. Doc fixes.
24746 (map_char_table_for_charset): Declare.
24747
24748 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
24749
24750 * ccl.c: Remove `emacs' conditional.
24751
247522008-02-01 Kenichi Handa <handa@m17n.org>
24753
24754 The following changes are to allow specifying multiple font
24755 patterns for a character range (specified by script or charset).
24756
24757 * Makefile.in (abbrev.o): Depend on syntax.h.
24758 (xfaces.o): Depend on charset.h.
24759
24760 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
24761 SINGLE_BYTE_CHAR_P.
24762
24763 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
24764
24765 * character.h (Vchar_script_table): Extern it.
24766
24767 * character.c (Vscript_alist): Delete.
24768 (Vchar_script_table, Qchar_script_table): New variable.
24769 (syms_of_character): Declare Vchar_script_table as a lisp variable
24770 and initialize it.
24771
24772 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
24773 have property char-table-extra-slots, make no extra slot.
24774
24775 * dispextern.h (struct face): Delete member `charset'.
24776 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
24777 SINGLE_BYTE_CHAR_P.
24778 (choose_face_font, lookup_non_ascii_face, font_name_registry):
24779 Add prototypes.
24780 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
24781 (generate_ascii_font_name): Rename from generate_ascii_font.
24782
24783 * fontset.h (get_font_repertory_func): New prototype.
24784 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
24785 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
24786
24787 * fontset.c (Qprepend, Qappend): New variables.
24788 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
24789 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
24790 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
24791 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
24792 (fontset_ref_and_range, fontset_add, reorder_font_vector)
24793 (load_font_get_repertory): New functions.
24794 (fontset_set): Delete.
24795 (fontset_face): New arg FACE. Return face ID, not face.
24796 Complete re-write to handle new fontset structure. Change caller.
24797 (free_face_fontset): Use ASET istead of AREF (X) = Y.
24798 (face_for_char): Don't call lookup_face.
24799 (make_fontset_for_ascii_face): New arg FACE.
24800 (fs_load_font): New arg CHARSET_ID. Don't check
24801 Vfont_encoding_alist here.
24802 (find_font_encoding): New function.
24803 (list_fontsets): Use STRINGP, not ! NILP.
24804 (accumulate_script_ranges): New function.
bba3e508
SM
24805 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
24806 Completely re-written to handle new fontset structure.
aac0c6e3 24807 (Ffontset_font): Return a copy of element.
bba3e508
SM
24808 (syms_of_fontset): Define symbols Qprepend and Qappend.
24809 Fix docstring of font-encoding-alist.
aac0c6e3
MR
24810
24811 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
24812 (Fset_fotset_font): Fix arguments to 5.
24813
24814 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
24815
24816 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
24817 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24818 (highlight_trailing_whitespace): Adjust for the change of
24819 lookup_named_face.
24820
24821 * xfaces.c: Include charset.h.
24822 (load_face_font): Delete argument C. Change caller.
24823 (generate_ascii_font_name): Rename from generate_ascii_font.
24824 (font_name_registry): New function.
24825 (cache_face): Store ascii faces before non-ascii faces in buckets.
24826 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
24827 Lookup only ascii faces.
24828 (lookup_non_ascii_face): New function.
24829 (lookup_named_face): Delete argument C. Change caller.
24830 (lookup_derived_face): Delete argument C. Change caller.
24831 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
24832 a string, just call font_list with it.
24833 (choose_face_font): Delete arguments FACE and C. New arg
24834 FONT_SPEC. Change caller.
24835 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
24836 Change caller.
24837 (realize_non_ascii_face): New function.
24838 (realize_x_face): Call load_face_font here.
24839 (realize_tty_face): Delete argument C. Change caller.
24840 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
24841 get a face ID.
24842 (dump_realized_face): Don't print charset of FACE.
24843
24844 * xfns.c (x_set_font): Always call x_new_fontset and
24845 store_frame_parameter.
24846 (Fx_create_frame): Call x_new_fontset, not x_new_font.
24847 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
24848
24849 * xterm.h (x_get_font_repertory): Extern it.
24850
24851 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24852 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24853 it->multibyte_p is zero.
24854 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24855 (x_new_fontset): If FONTSETNAME doesn't match any existing
24856 fontsets, create a new one.
24857 (x_get_font_repertory): New function.
24858
248592008-02-01 Kenichi Handa <handa@m17n.org>
24860
24861 * coding.c (Ffind_coding_systems_region_internal): Detect an
24862 ASCII only string correctly.
24863
24864 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
24865 version is 0.
24866
248672008-02-01 Kenichi Handa <handa@m17n.org>
24868
24869 * lread.c: Include "coding.h".
24870 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
24871 (load_each_byte, unread_char): New variables.
24872 (readchar_backlog): Delete.
24873 (readchar): Return a character unless load_each_byte is nonzero.
24874 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
24875 cons. If unread_char is not -1, simply return it.
24876 (unreadchar): Handle the case that readcharfun is
24877 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
24878 (read_multibyte): Delete.
24879 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
24880 (read_emacs_mule_char): New functions.
24881 (Fload): Even if the file doesn't have the extension ".elc", if
24882 safe_to_load_p returns a positive version number, assume that the
24883 file contains bytecompiled code. If the version is less than 22,
24884 load the file while decoding multibyte sequences by emacs-mule.
24885 (readevalloop): Don't use readchar_backlog.
24886 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
24887 (Fread_from_string): Pay attention to the case that STREAM is a cons.
24888 (read_escape): Delete the arg BYTEREP.
24889 (read1): Set load_each_byte to 1 temporarily while handling
24890 #@NUMBER. Don't call read_multibyte.
24891 (read_vector): Call Fread with a cons. If readcharfun is
24892 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
24893 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
24894 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
24895 and Qload_force_doc_strings.
24896
248972008-02-01 Kenichi Handa <handa@m17n.org>
24898
bba3e508
SM
24899 * xdisp.c (face_before_or_after_it_pos):
24900 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
24901
249022008-02-01 Kenichi Handa <handa@m17n.org>
24903
24904 * character.h (TRAILING_CODE_P): New macro.
24905 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
24906 (string_char_with_unification): Fix prototype.
24907 (Vscript_alist): Extern it.
24908
24909 * character.c (Vscript_alist): New variable.
24910 (string_char_with_unification, str_as_unibyte)
24911 (string_escape_byte8): Add `const' to local variables.
24912 (syms_of_character): Declare script-alist as a Lisp variable.
24913
24914 * charset.h (Vcharset_ordered_list): Extern it.
24915 (charset_ordered_list_tick): Extern it.
24916 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
24917 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
24918 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
24919 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
24920 (Funify_charset): Adjust for the change of Funify_charset.
24921
24922 * charset.c (charset_ordered_list_tick): New variable.
24923 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
24924 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 24925 deunify instead of unify a charset.
aac0c6e3
MR
24926 (string_xstring_p): Add `const' to local variables.
24927 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
24928 (encode_char): Adjust for the change of Funify_charset.
24929 Fix detecting of invalid code.
aac0c6e3
MR
24930 (Fset_charset_priority): Increment charset_ordered_list_tick.
24931 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
24932 and TO_CODE.
24933
24934 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
24935 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
24936 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
24937 (decode_coding_ccl, consume_chars)
24938 (Ffind_coding_systems_region_internal)
24939 (Fcheck_coding_systems_region): Add `const' to local variables.
24940
24941 * print.c (print_object): Use octal form for printing the
24942 contents of a bool vector.
24943
249442008-02-01 Dave Love <fx@gnu.org>
24945
24946 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
24947 <version == 20>: Refuse to load.
24948
249492008-02-01 Dave Love <fx@gnu.org>
24950
24951 * fns.c: Move coding.h.
24952 (Qcodeset, Qdays, Qmonths): New.
24953 (concat): Use CHARACTERP instead of INTEGERP.
24954 (Flocale_codeset): Delete.
24955 (Flanginfo): New function.
24956 (syms_of_fns): Change accordingly.
24957
24958 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
24959
249602008-02-01 Dave Love <fx@gnu.org>
24961
bba3e508
SM
24962 * casetab.c (init_casetab_once, init_casetab_once):
24963 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
24964
24965 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
24966
24967 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
24968
24969 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
24970 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
24971 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
24972
24973 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
24974
24975 * coding.c (ENCODE_DESIGNATION, decode_eol)
24976 (make_conversion_work_buffer, code_conversion_restore)
24977 (Fdefine_coding_system_internal): Convert Lisp types.
24978 (code_conversion_restore): Use EQ, not ==.
24979 (Fencode_coding_string): Fix code_convert_string call.
24980
24981 * coding.h (code_convert_region): Fix prototype.
24982
24983 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
24984
24985 * fontset.c (fontset_ref, fontset_set, fs_load_font)
24986 (Ffontset_info): Convert Lisp types.
24987
24988 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
24989
24990 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
24991
24992 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
24993
24994 * chartab.c: Include "...h", not <...h> in some cases.
24995
24996 * callproc.c (Fcall_process): Remove unused variables.
24997
249982008-02-01 Dave Love <fx@gnu.org>
24999
25000 * coding.c (Fset_coding_system_priority): Allow null arg list.
25001
250022008-02-01 Dave Love <fx@gnu.org>
25003
25004 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25005 (Fself_insert_and_exit): Use CHARACTERP.
25006
25007 * callproc.c (Fcall_process): Remove unused vars.
25008
25009 * xterm.c (XTread_socket): Add extra dead keysyms.
25010
25011 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25012
25013 * dispextern.h: Remove prototypes for redraw_frame,
25014 redraw_garbaged_frames.
25015
25016 * cmds.c (Fself_insert_command): Use CHARACTERP.
25017
25018 * chartab.c (make_sub_char_table): Remove unused var.
25019 (Fset_char_table_default, Fmap_char_table): Doc fix.
25020
25021 * keymap.c (access_keymap): Remove generic char code.
25022 (push_key_description): Use CHARACTERP.
25023
250242008-02-01 Dave Love <fx@gnu.org>
25025
25026 * charset.c: Doc fixes.
25027 (Funify_charset): Extra checking.
25028
250292008-02-01 Dave Love <fx@gnu.org>
25030
25031 * lread.c: Remove some unused variables.
25032 (safe_to_load_p): If safe, return the magic number version byte.
25033 (Fload): Maybe use load-with-code-conversion.
25034
250352008-02-01 Kenichi Handa <handa@m17n.org>
25036
25037 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
25038 of category_set for characters out of the range.
25039 Avoid unnecessary modification.
aac0c6e3
MR
25040
25041 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
25042 Vchar_unify_table. The default value of the table is now nil.
25043
25044 * character.c (syms_of_character): Setup Vchar_width_table for
25045 eight-bit-control and raw-byte chars.
25046
bba3e508
SM
25047 * charset.h (enum define_charset_arg_index):
25048 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
25049 charset_arg_superset.
25050 (enum charset_attr_index): Delete charset_parents and add
25051 charset_subset and charset_superset.
25052 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
25053 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
25054 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
25055 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
25056 (CHARSET_SUPERSET): New macros.
25057 (charset_work): Extern it.
25058 (ENCODE_CHAR): Use charset_work.
25059 (CHAR_CHARSET_P): Adjust for the change of encoder format.
25060 (map_charset_chars): Extern it.
25061
25062 * charset.c (load_charset_map): Set the default value of encoder
25063 and deunifier char-tables to nil.
bba3e508
SM
25064 (map_charset_chars): Change argument. Change callers.
25065 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
25066 (Fmap_charset_chars): New optional args from_code and to_code.
25067 (Fdefine_charset_internal): Adjust for the change of
25068 `define-charset' (:parents -> :subset or :superset).
25069 (charset_work): New variable.
25070 (encode_char, syms_of_charset): Adjust for the change of
25071 Fdefine_charset_internal.
25072 (Ffind_charset_string): Setup the vector `charsets' correctly.
25073
bba3e508
SM
25074 * chartab.c (sub_char_table_ref_and_range): New arg default.
25075 Fix the previous change.
aac0c6e3
MR
25076 (char_table_ref_and_range): Adjust for the above change.
25077 (map_sub_char_table_for_charset): New function.
25078 (map_char_table_for_charset): New function.
25079
25080 * keymap.c (describe_vector): Handle a char-table directly here.
25081 (describe_char_table): Delete.
25082
25083 * lisp.h (map_charset_chars): Delete.
25084
250852008-02-01 Dave Love <fx@gnu.org>
25086
25087 * fns.c (count_combining): Comment out (unused).
25088 (Flocale_codeset): New.
25089 (syms_of_fns): Defsubr it.
25090
25091 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
25092 (size_t): Remove.
25093
250942008-02-01 Dave Love <fx@gnu.org>
25095
25096 * Makefile.in (chartab.o): Depend on charset.h.
25097
250982008-02-01 Kenichi Handa <handa@m17n.org>
25099
25100 * character.c (syms_of_character): Set the default value of
25101 Vprintable_chars to Qnil.
25102
251032008-02-01 Dave Love <fx@gnu.org>
25104
25105 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
25106
251072008-02-01 Kenichi Handa <handa@m17n.org>
25108
25109 * charset.c (load_charset_map): Handle the case that from < to
25110 correctly.
25111
25112 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
25113 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
25114 Pay attention to raw-8-bit chars.
25115
251162008-02-01 Kenichi Handa <handa@m17n.org>
25117
25118 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
25119 It is not bytecompiled now.
25120
25121 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
25122 (charset_jisx0208): New variables.
25123 (Fdefine_charset_internal): Setup them if appropriate.
25124 (init_charset_once): Initialize them to -1.
25125
25126 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
25127 (charset_jisx0208): Extern them.
25128
25129 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
25130 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
25131 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
25132 (setup_iso_safe_charsets): Fix arguments to Fassq.
25133 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
25134 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
25135 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
25136 (encode_coding_iso_2022): Change the 1st arg to
25137 ENCODE_ISO_CHARACTER to a variable.
25138
251392008-02-01 Kenichi Handa <handa@m17n.org>
25140
25141 * charset.h (enum define_charset_arg_index): New enums
25142 charset_arg_min_code and charset_arg_max_code.
25143 (struct charset): New member char_index_offset.
25144
25145 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
25146 Take charset->char_index_offset into account.
25147 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
25148 args[charset_arg_max_code]. Setup charset.char_index_offset.
25149 (syms_of_charset): Fix args to Fdefine_charset_internal.
25150
251512008-02-01 Dave Love <fx@gnu.org>
25152
25153 * coding.c (decode_coding_utf_8): Reject overlong sequences.
25154
251552008-02-01 Dave Love <fx@gnu.org>
25156
25157 * coding.c: Doc fixes.
25158 (Fcoding_system_aliases): Fix return value.
25159 (Qmac): Remove (duplicated) definition.
25160
251612008-02-01 Dave Love <fx@gnu.org>
25162
362654a6
JB
25163 * charset.c (Fcharset_priority_list, Fset_charset_priority):
25164 New functions.
aac0c6e3
MR
25165
25166 * character.c (Fstring): Doc fix.
25167
25168 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
25169
362654a6 25170 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
25171 (font-encoding-alist): Doc fix.
25172
251732008-02-01 Dave Love <fx@gnu.org>
25174
25175 * term.c (costs_set): Declare static, non-initialized for pcc.
25176 (encode_terminal_code): Remove unused var.
25177
25178 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
25179 for K&R.
25180
25181 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
25182
25183 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
25184 (suffixes): Move out of make_subsidiaries for K&R.
25185
25186 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
25187
25188 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
25189
251902008-02-01 Dave Love <fx@gnu.org>
25191
25192 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
25193
25194 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
25195
251962008-02-01 Yong Lu <lyongu@asia-infonet.com>
25197
25198 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
25199
25200 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
25201
252022008-02-01 Kenichi Handa <handa@m17n.org>
25203
25204 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
25205 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
25206
252072008-02-01 Kenichi Handa <handa@m17n.org>
25208
25209 * coding.c (decode_coding_charset): Adjust for the change of
25210 Fdefine_coding_system_internal.
25211 (Fdefine_coding_system_internal): For a coding system of
25212 `charset' type, store a list of charset IDs in
25213 `charset_attr_charset_valids' element of coding attributes.
25214
252152008-02-01 Kenichi Handa <handa@m17n.org>
25216
25217 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
25218 (emacs_mule_char): New arg src. Delete arg `composition'.
25219 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
25220 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
25221 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
25222 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
25223 (DECODE_EMACS_MULE_21_COMPOSITION):
25224 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
25225 sequence.
25226 (decode_coding_emacs_mule): Handle composition correctly. Rewind
25227 `src' and `consumed_chars' correctly before calling emacs_mule_char.
25228 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
25229 and alt&rule composition.
25230 (decode_coding_iso_2022): Handle composition correctly.
25231 (init_coding_once): Setup emacs_mule_bytes for private charsets.
25232
25233 * charset.c (Fdefine_charset_internal): Fix bug for the case of
25234 re-defining a charset. If the charset has :emacs-mule-id, setup
25235 emacs_mule_bytes.
25236 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
25237
252382008-02-01 Kenichi Handa <handa@m17n.org>
25239
25240 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
25241 (encode_coding_big5, encode_coding_charset): If coding requires safe
25242 encoding, produce a character specified by
25243 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
25244
252452008-02-01 Dave Love <fx@gnu.org>
25246
25247 * xterm.c (XSetIMValues): Declare.
25248
25249 * process.c: Conditionally include sys/wait.h, pty.h.
25250
25251 * print.c (print_object): Fix print format for 64-bit systems.
25252
25253 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
25254
25255 * buffer.c (emacs_strerror): Declare.
25256
25257 * fontset.c (Fclear_face_cache): Declare.
25258 (accumulate_font_info): Comment-out (unused).
25259 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
25260 variables.
25261
25262 * character.h (string_escape_byte8): Declare.
25263
bba3e508
SM
25264 * charset.c (load_charset_map, load_charset_map_from_file):
25265 Remove unused vars.
aac0c6e3
MR
25266 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
25267 (Fmap_charset_chars): Doc fix.
25268
25269 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
25270 (Fset_coding_system_priority, Fset_coding_system_priority)
25271 (Fdefine_coding_system_internal): Doc fix.
25272
252732008-02-01 Dave Love <fx@gnu.org>
25274
25275 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
25276
252772008-02-01 Kenichi Handa <handa@m17n.org>
25278
25279 * character.c (string_escape_byte8): Make multibyte string with
25280 correct size.
25281
25282 * charset.c (Fmake_char): Delete unnecessary code.
25283
252842008-02-01 Kenichi Handa <handa@m17n.org>
25285
25286 * xfns.c (x_encode_text): Allocate coding.destination here, and
25287 call encode_coding_object with dst_object Qnil.
25288
25289 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
25290 multibyte form correctly.
25291
25292 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
25293 against Vfont_encoding_alist.
25294
25295 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
25296 handling of charset list.
25297 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
25298 (decode_coding_object): Move point to coding->dst_pos before
25299 calling post-read-conversion function.
25300 (encode_coding_object): Give correct arguments to
25301 pre-write-conversion. Ignore the return value of
25302 pre-write-conversion function. Pay attention to the case that
25303 pre-write-conversion changes the current buffer. If dst_object is
25304 Qt, even if coding->src_bytes is zero, allocate at least one byte
25305 to coding->destination.
25306
25307 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
25308
25309 * charset.c (Fmake_char): Make it more backward compatible.
25310 (Fmap_charset_chars): Fix docstring.
25311
253122008-02-01 Dave Love <fx@gnu.org>
25313
25314 * coding.c: Doc fixes.
25315 (Fdefine_coding_system_alias): Use names, not symbols, in
25316 coding-system-alist.
25317
253182008-02-01 Kenichi Handa <handa@m17n.org>
25319
25320 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
25321 of calling free_realized_face.
25322
253232008-02-01 Yong Lu <lyongu@asia-infonet.com>
25324
25325 * charset.c (read_hex): Don't treat SPC as a comment starter.
25326 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
25327 (Fdecode_char): Fix typo.
25328
253292008-02-01 Kenichi Handa <handa@m17n.org>
25330
25331 * charset.h (struct charset): New member `code_space_mask'.
25332
25333 * coding.c (coding_set_source): Delete the local variable beg_byte.
25334 (encode_coding_charset, Fdefine_coding_system_internal):
25335 Delete the local variable charset.
bba3e508
SM
25336 (Fdefine_coding_system_internal):
25337 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
25338
25339 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
25340 member to check if CODE is valid or not.
25341 (Fdefine_charset_internal): Initialize `code_space_mask' member.
25342 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
25343 is within the range of charset->min_code and carset->max_code.
25344
253452008-02-01 Dave Love <fx@gnu.org>
25346
25347 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
25348
25349 * dispextern.h (generate_ascii_font): Fix return type.
25350
25351 * xfaces.c (generate_ascii_font): Fix arg declaration.
25352
25353 * coding.c (coding_inherit_eol_type)
25354 (Fset_terminal_coding_system_internal)
25355 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
25356
253572008-02-01 Kenichi Handa <handa@m17n.org>
25358
bba3e508
SM
25359 * coding.c (decode_coding_charset, encode_coding_charset):
25360 Handle multiple charsets correctly.
aac0c6e3
MR
25361
253622008-02-01 Kenichi Handa <handa@m17n.org>
25363
25364 * search.c (boyer_moore): Fix handling of multibyte character
25365 translation.
25366
25367 * xdisp.c (display_mode_element): When the variable `elt' is
25368 changed, update `this' and `lisp_string'.
25369
253702008-02-01 Kenichi Handa <handa@m17n.org>
25371
25372 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
25373
25374 * callproc.c (Fcall_process): Be sure to give the current buffer
25375 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
25376
25377 * charset.c (struct charset_map_entries): New struct.
25378 (load_charset_map): Rename from parse_charset_map. New args
25379 entries and n_entries. Change caller.
25380 (load_charset_map_from_file): Rename from load_charset_map.
25381 Change caller. New arg control_flag. Call load_charset_map at
25382 the tail.
25383 (load_charset_map_from_vector): New function.
25384 (Fdefine_charset_internal): Setup charset.compact_codes_p.
25385 (encode_char): If the charset is compact, change a character index
25386 to a code point.
25387
25388 * coding.c (coding_alloc_by_making_gap): Check the case that the
25389 source and destination are the same correctly.
25390 (decode_coding_raw_text): Set coding->consumed_char and
25391 coding->consumed to 0.
25392 (produce_chars): If coding->chars_at_source is nonzero, update
25393 coding->consumed_char and coding->consumed before calling
25394 alloc_destination.
25395 (Fdefine_coding_system_alias): Register ALIAS in
25396 Vcoding_system_alist.
25397 (syms_of_coding): Define `no-conversion' coding system at the tail.
25398
25399 * fileio.c (Finsert_file_contents): Set coding_system instead of
25400 val. If the current buffer is multibyte, always call
25401 decode_coding_gap.
25402
25403 * xfaces.c (try_font_list): Give higher priority to fontset's
25404 family than face's family.
25405
254062008-02-01 Kenichi Handa <handa@m17n.org>
25407
25408 * callproc.c (Fcall_process): Be sure to give the current buffer
25409 to decode_coding_c_string.
25410
25411 * xfaces.c (try_font_list): Give a family specified in a fontset
25412 higher priority than a family specified in a face.
25413
254142008-02-01 Kenichi Handa <handa@m17n.org>
25415
25416 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
25417 Fix arguments to insert_from_buffer.
25418
25419 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
25420
254212008-02-01 Kenichi Handa <handa@m17n.org>
25422
25423 * coding.c (produce_chars): Set the variable `multibytep' correctly.
25424 (decode_coding_gap): Set coding->dst_multibyte correctly.
25425
254262008-02-01 Kenichi Handa <handa@m17n.org>
25427
25428 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
25429 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
25430 (encode_coding_utf_16): Substitute coding->default_char for
25431 non-Unicode characters.
25432 (decode_coding): Don't call record_insert here.
25433 (setup_coding_system): Initialize `surrogate' of
25434 coding->spec.utf_16 to 0.
25435 (EMIT_ONE_BYTE): Fix for multibyte case.
25436
25437 * insdel.c (insert_from_gap): Call record_insert.
25438
254392008-02-01 Kenichi Handa <handa@m17n.org>
25440
25441 * casefiddle.c (casify_region): Fix multibyte case.
25442
25443 * character.c (c_string_width): Add return type `int'.
25444 (char_string_with_unification): Delete arg ADVANCED.
25445
25446 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
25447 (CHAR_STRING): Adjust for the change of char_string_with_unification.
25448 (CHAR_STRING_ADVANCE): Make it do-while statement.
25449
25450 * chartab.c (sub_char_table_set_range): Optimize for the case
25451 DEPTH == 3. Add workaround code for a GCC optimization bug.
25452
25453 * charset.c (parse_charset_map): Remove an unused variable.
25454
25455 * coding.c: Delete unused variables.
25456
25457 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
25458 earlier. If inserted is zero and the coding system doesn't
25459 require flushing, don't call decode_coding_gap.
25460
25461 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
25462
254632008-02-01 Kenichi Handa <handa@m17n.org>
25464
25465 The following changes are for using Unicode as an internal
25466 character model, and use UTF-8 format for buffer/string
25467 representation.
25468
25469 * .gdbinit (xchartable): Adjust for the change of char table structure.
25470 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
25471
25472 * Makefile.in (obj): Add character.o and chartab.o.
25473 (lisp, shortlisp): Remove utf-8.elc.
25474 (*.o): For many files, change dependency on charset.h to
25475 character.h, and add dependency on character.h.
25476 (character.o, chartab.o): New targets.
25477
25478 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
25479 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
25480 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
25481 of "charset.h".
25482
25483 * dired.c, filelock.c: Include "character.h".
25484
25485 * alloc.c: Include "character.h" instead of "charset.h".
25486 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
25487 (syms_of_alloc): Remove defsubr for Smake_char_table.
25488
25489 * buffer.c: Include "character.h" instead of "charset.h", don't
25490 include "coding.h".
25491 (Fset_buffer_multibyte): Adjust for UTF-8.
25492
25493 * buffer.h: EXFUN Fbuffer_live_p.
25494
25495 * callproc.c: Include "character.h" instead of "charset.h".
25496 (Fcall_process): Big change for the new code-conversion APIs.
25497
25498 * casetab.c: Include "character.h" instead of "charset.h".
25499 (set_canon, set_identity, shuffle): Adjust for the new
25500 map_char_table spec.
25501 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
25502 accessing the char table structure.
25503
25504 * chartab.c: New file that implements char table.
25505
25506 * category.c: Include "character.h".
25507 (copy_category_entry): New function.
25508 (copy_category_table): Call map_char_table and copy_category_entry.
25509 (Fmake_category_table): Initialize all top-level slots.
25510 (char_category_set): New function.
25511 (modify_lower_category_set): Delete.
25512 (Fmodify_category_entry): Call char_table_ref_and_range.
25513
25514 * category.h (CATEGORY_SET): Just call char_category_set.
25515
25516 * ccl.c: Include "character.h".
25517 (Qccl, Qcclp): New variables.
25518 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
25519 it's less than 256.
25520 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
25521 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
25522 and DST type.
25523 (ccl_driver): Change types of argument, adjust code accordingly.
25524 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
25525 ccl_driver.
25526 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
25527
25528 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
25529 New members src_multibyte, dst_multibyte, consumed, and produced.
25530 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
25531 (CODING_SPEC_CCL_PROGRAM): New macro.
25532 (ccl_driver): Update prototype.
25533 (Qccl, Qcclp, Fccl_program_p): Extern them.
25534 (CHECK_CCL_PROGRAM): New macro.
25535
25536 * character.c, character.h, chartab.c: New files.
25537
25538 * charset.c: Mostly re-written. Move character and multibyte sequence
25539 handling codes to character.c.
25540
25541 * charset.h: Mostly re-written. Move character and multibyte sequence
25542 handling codes to character.h.
25543
25544 * coding.c, coding.h: Mostly re-written.
25545
25546 * composite.c: Include "character.h" instead of "charset.h".
25547 (CHAR_WIDTH): Move to character.h.
25548 (HASH_KEY, HASH_VALUE): Delete.
25549
25550 * composite.h (enum composition_method): Change order of enumeration
25551 symbols.
25552
25553 * data.c: Include "character.h" instead of "charset.h".
25554 (Faref): Call CHAR_TABLE_REF for a char table.
25555 (Faset): Call CHAR_TABLE_SET for a char table.
25556
25557 * dispextern.h (free_realized_face, check_face_attribytes)
25558 (generate_ascii_font): Extern them.
25559 (free_realized_multibyte_face): Delete extern.
25560
25561 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
25562 table structure.
25563
25564 * editfns.c: Include "character.h" instead of "charset.h".
25565 (Fchar_to_string): Always call CHAR_STRING.
25566
25567 * emacs.c (main): Call init_charset_once, init_charset,
25568 syms_of_chartab, and syms_of_character.
25569
25570 * fileio.c: Include "character.h" instead of "charset.h".
25571 (Finsert_file_contents): Big change for the new code-conversion API.
25572 (choose_write_coding_system, Fwrite_region): Likewise.
25573 (build_annotations_2): Delete.
25574 (e_write): Big change for the new code-conversion API.
25575
25576 * fns.c: Include "character.h" instead of "charset.h".
25577 (copy_sub_char_table): Move to chartab.c.
25578 (Fcopy_sequence): Call copy_char_table for a char table.
25579 (concat): Delete codes calling count_multibyte.
25580 (string_char_to_byte, string_byte_to_char): Adjust for the new
25581 multibyte form.
25582 (internal_equal): Adjust for the change of char table structure.
25583 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
25584 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
25585 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
25586 (char_table_translate, optimize_sub_char_table)
25587 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
25588 chartab.c.
25589 (char_table_ref_and_index): Delete.
25590 (HASH_KEY, HASH_VALUE): Move to lisp.h.
25591 (Fmd5): Call preferred_coding_system instead of accessing
25592 Vcoding_category_list. Adjust for the new code-conversion API.
25593 (syms_of_fns): Move defsubr for char table related functions to
25594 chartab.c.
25595
25596 * fontset.c: Mostly re-written.
25597
25598 * fontset.h (struct font_info): Change type of the member encoding_type.
25599 (enum FONT_SPEC_INDEX): New enum.
25600 (fontset_font_pattern, fs_load_font): Update prototype.
25601 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
25602
25603 * indent.c: Include "character.h" instead of "charset.h".
25604 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
25605
25606 * insdel.c: Include "character.h" instead of "charset.h".
25607 (copy_text): Don't refer to Vnonascii_translation_table.
25608 (insert_from_gap): New function.
25609
25610 * keyboard.c: Include "character.h" instead of "charset.h".
25611 (command_loop_1): Never call direct_output_forward_char before
25612 a non-ASCII character.
25613 (read_char): If Vkeyboard_translate_table is a char table, always
25614 translate a character.
25615
25616 * keymap.c: Include "character.h".
25617 (store_in_keymap): Handle the case that IDX is a cons.
25618 (Fdefine_key): Handle the case that KEY is a cons and the car part
25619 is also a cons (range).
25620 (push_key_description): Adjust for the new character code.
25621 (describe_vector): Call describe_char_table for a char table.
25622 (describe_char_table): New function.
25623
25624 * keymap.h (describe_char_table): Extern it.
25625
25626 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
25627 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
25628 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
25629 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
25630 Delete.
25631 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
25632 structure.
25633 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
25634 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
25635 (CHARTAB_SIZE_BITS_3): New macros.
25636 (chartab_size): Extern it.
25637 (struct Lisp_Char_Table): Re-design.
25638 (struct Lisp_Sub_Char_Table): New structure.
25639 (HASH_KEY, HASH_VALUE): Move from fns.c.
25640 (CHARACTERBITS): Define as 22.
25641 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
25642 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
25643 (GC_SUB_CHAR_TABLE_P): New macro.
25644 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 25645 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
25646 (init_character_once, syms_of_character, init_charset)
25647 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
25648
25649 * lread.c: Include "character.h".
25650 (read_multibyte): New arg NBYTES.
25651 (read_escape): Change the meaning of returned *BYTEREP.
25652 (to_multibyte): Delete.
25653 (read1): Adjust the handling of char table and string.
25654
25655 * print.c: Include "character.h" instead of "charset.h".
25656 (print_string): Convert 8-bit raw bytes to octal form by
25657 string_escape_byte8.
25658 (print_object): Adjust for the new multibyte form. Print 8-bit
25659 raw bytes always in octal form. Handle sub char table correctly.
25660
25661 * process.c: Include "character.h" instead of "charset.h".
25662 (read_process_output, send_process): Adjust for the new
25663 code-conversion API.
25664
25665 * puresize.h (BASE_PURESIZE): Increase.
25666
25667 * regex.c: Include "character.h" instead of "charset.h".
25668 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
25669 (regex_compile): Accept a range whose starting and ending
25670 character have different leading bytes.
25671 (analyse_first): Adjust for the above change.
25672
25673 * search.c: Include "character.h" instead of "charset.h".
25674 (search_buffer, boyer_moore): Adjust for the new multibyte form.
25675 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
25676
25677 * syntax.c: Include "character.h" instead of "charset.h".
25678 (syntax_parent_lookup): Delete.
25679 (Fmodify_syntax_entry): Accept a cons as CHAR.
25680 (skip_chars): Adjust for the new multibyte form.
25681 (init_syntax_once): Call char_table_set_range instead of directly
25682 accessing the structure of a char table.
25683
25684 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
25685 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
25686 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
25687 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
25688
25689 * term.c: Include "buffer.h" and "character.h".
25690 (encode_terminal_code, write_glyphs): Adjust for the new
25691 code-conversion API.
25692 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
25693
25694 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
25695
25696 * xdisp.c: Include "character.h".
25697 (get_next_display_element): Adjust for the new multibyte form.
25698 (disp_char_vector): Adjust for the new char table structure.
25699 (decode_mode_spec_coding): Adjust for the new structure of
25700 coding system.
25701 (decode_mode_spec): Adjust for the new code-conversion API.
25702
25703 * xfaces.c: Include "character.h" instead of "charset.h".
25704 (load_face_font): Adjust for the change of choose_face_font and
25705 FS_LOAD_FONT.
25706 (generate_ascii_font): New function.
25707 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
25708 (set_font_frame_param): Adjust for the change of choose_face_font.
25709 (free_realized_face): Make it public.
25710 (free_realized_faces_for_fontset): Rename from
25711 free_realized_multibyte_face. Free also faces realized for ASCII.
25712 (choose_face_font): Change arguments. Adjust for the change of
25713 fontset_font_pattern and FS_LOAD_FONT.
25714
25715 * xfns.c: Include "character.h".
25716 (x_encode_text): Adjust for the new code-conversion API.
25717
25718 * xselect.c: Don't include "charset.h".
25719 (selection_data_to_lisp_data): Adjust for the new code conversion API.
25720
25721 * xterm.c: Include "character.h".
25722 (x_encode_char): New argument CHARSET. Change caller.
25723 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
25724 Call ENCODE_CHAR instead of SPLIT_CHAR.
25725 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
25726 CHAR_WIDTH instead of CHARSET_WIDTH.
25727 (XTread_socket): Adjust for the new code-conversion API.
25728 (x_new_font): Adjust for the change of FS_LOAD_FONT.
25729 (x_load_font): Adjust for the change of struct font.
25730
257312008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
25732
25733 * xfaces.c (face_at_buffer_position): Remove unused vars.
25734
257352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
25736
25737 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
25738 Fix overflow checking.
25739
257402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
25741
25742 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
25743 Cancel previous change.
25744
257452008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
25746
25747 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
25748 ccl->eight_bit_control. Fix check for buffer overflow.
25749 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
25750 (ccl_driver): Initialize extra_bytes to 0.
25751
257522008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
25753
25754 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
25755 return it ORed with ctrl_modifier.
25756
257572008-01-29 Miles Bader <miles@gnu.org>
25758
25759 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
25760
257612008-01-28 Jason Rumney <jasonr@gnu.org>
25762
25763 * w32.c (stat): Don't double check for networked drive.
25764
257652008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
25766
25767 * window.c (run_window_configuration_change_hook): New function.
25768 Code extracted from set_window_buffer. Set the selected frame.
25769 (set_window_buffer): Use it.
25770 * window.h (run_window_configuration_change_hook): Declare.
25771 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
25772
25773 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
25774
257752008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
25776
25777 * Makefile.in: Remove references to unused macros.
25778
257792008-01-26 Eli Zaretskii <eliz@gnu.org>
25780
25781 * w32.c (g_b_init_get_sid_sub_authority)
25782 (g_b_init_get_sid_sub_authority_count): New static variables.
25783 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
25784 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
25785 (init_user_info): Use them to retrieve uid and gid.
25786 Use 500/513, the Windows defaults, as Administrator's uid/gid.
25787 (fstat): Use pw_uid and pw_gid from the_passwd structure for
25788 st_uid and st_gid of the file.
25789
257902008-01-26 Jason Rumney <jasonr@gnu.org>
25791
25792 * w32.c (logon_network_drive): New function.
25793 (stat): Use it.
25794
257952008-01-26 Chong Yidong <cyd@stupidchicken.com>
25796
25797 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
25798 invisible text covered with an ellipsis.
25799
258002008-01-25 Richard Stallman <rms@gnu.org>
25801
25802 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
25803 jump back to beginning. Move some other initializations after that.
25804 (Qwindow_text_change_functions, Vwindow_text_change_functions):
25805 New variables.
25806 (syms_of_xdisp): Init them.
25807
25808 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
25809
25810 * buffer.c (reset_buffer_local_variables):
25811 Implement `permanent-local-hook'.
25812 (Qpermanent_local_hook): New variable.
25813 (syms_of_buffer): Init and staticpro it.
25814
258152008-01-25 Michael Albinus <michael.albinus@gmx.de>
25816
25817 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
25818
258192008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
25820
25821 * fns.c (Fclrhash): Return TABLE.
25822
258232008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25824
25825 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
25826 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
25827 is set even without positional changes.
25828 (x_scroll_bar_clear): Set bar->redraw_needed_p.
25829
25830 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
25831
258322008-01-23 Jason Rumney <jasonr@gnu.org>
25833
25834 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
25835
25836 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
25837 the unicode range available in MULE by locale-coding-system.
25838 Improve dbcs lead byte detection. Set event timestamp and modifiers
25839 earlier.
25840
258412008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25842
25843 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
25844 [MAC_OSX] (init_mac_osx_environment): Initialize it.
25845 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
25846 when used on child processes.
25847
258482008-01-21 Michael Albinus <michael.albinus@gmx.de>
25849
25850 * dbusbind.c (Fdbus_method_return_internal): Rename from
25851 Fdbus_method_return.
25852 (Fdbus_unregister_object): Move to dbus.el.
25853 (Fdbus_call_method, Fdbus_method_return_internal)
25854 (Fdbus_send_signal): Improve debug messages.
25855
258562008-01-20 Martin Rudalics <rudalics@gmx.at>
25857
25858 * undo.c (undo_inhibit_record_point): New variable.
25859 (syms_of_undo): Initialize it.
25860 (record_point): Don't record point when undo_inhibit_record_point
25861 is set.
25862
258632008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
25864
25865 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
25866
25867 * xdisp.c (Qauto_hscroll_mode): New var.
25868 (syms_of_xdisp): Initialize it.
25869 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
25870 window's buffer.
25871 (hscroll_windows): Don't check automatic_hscrolling_p here.
25872
25873 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
25874 vscroll if we're setting window-buffer to the value it already has.
25875
258762008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
25877
25878 * m/intel386.h: Remove references to XENIX.
25879
258802008-01-17 Andreas Schwab <schwab@suse.de>
25881
25882 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
25883 instead of HAVE_X86_64_LIB64_DIR.
25884 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
25885
258862008-01-17 Glenn Morris <rgm@gnu.org>
25887
25888 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
25889 to HAVE_X86_64_LIB64_DIR.
25890
258912008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
25892
25893 * s/irix3-3.h:
25894 * s/irix4-0.h:
25895 * s/386-ix.h:
25896 * s/domain.h:
25897 * s/hpux9-x11r4.h:
25898 * s/hpux9shxr4.h: Remove files for systems no longer supported.
25899
25900 * sysdep.c: Remove code containing references to symbols defined
25901 by unsupported systems.
25902
259032008-01-16 Glenn Morris <rgm@gnu.org>
25904
25905 * coding.c (select-safe-coding-system-function): Doc fix.
25906
259072008-01-15 Glenn Morris <rgm@gnu.org>
25908
25909 * config.in: Revert 2008-01-13 change: this is a generated file.
25910
259112008-01-13 Tom Tromey <tromey@redhat.com>
25912
25913 * lisp.h: Fix typo.
25914
259152008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25916
25917 * m/sequent-ptx.h:
25918 * m/sequent.h:
25919 * s/ptx.h:
25920 * s/ptx4-2.h:
25921 * s/ptx4.h: Remove files for systems no longer supported.
25922
25923 * callproc.c (Fcall_process): Fix previous change.
25924
259252008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25926
25927 * unexsunos4.c: Remove file, system not supported anymore.
25928
25929 * m/mips.h:
25930 * m/intel386.h:
25931 * callproc.c:
25932 * config.in:
25933 * ecrt0.c:
25934 * emacs.c:
25935 * fileio.c:
25936 * frame.c:
25937 * getpagesize.h:
25938 * keyboard.c:
25939 * lread.c:
25940 * process.c:
25941 * puresize.h:
25942 * sysdep.c:
25943 * systty.h:
25944 * syswait.h:
25945 * unexec.c:
25946 * xdisp.c:
25947 * alloc.c: Remove code containing references to symbols defined by
25948 unsupported systems.
25949
259502008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
25951
25952 * coding.c (detect_coding_mask): Fix previous change.
25953
259542008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
25955
25956 * coding.c (detect_coding_iso2022): New arg
25957 latin_extra_code_state. Allow Latin extra codes only
25958 when *latin_extra_code_state is nonzero.
25959 (detect_coding_mask): If there is a NULL byte, detect the encoding
25960 as UTF-16 or binary. If Latin extra codes exist, detect the
25961 encoding as ISO-2022 only when there's no other proper encoding is
25962 found.
25963
259642008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25965
25966 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
25967 #ifdef MAC_OS.
25968
259692008-01-08 Richard Stallman <rms@gnu.org>
25970
25971 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
25972
259732008-01-06 Nick Roberts <nickrob@snap.net.nz>
25974
25975 * keyboard.c (parse_menu_item): Don't enclose key bindings on
25976 menu bar in parentheses.
25977
259782008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
25979
25980 * m/7300.h:
25981 * m/acorn.h:
25982 * m/alliant-2800.h:
25983 * m/alliant.h:
25984 * m/alliant1.h:
25985 * m/alliant4.h:
25986 * m/altos.h:
25987 * m/amdahl.h:
25988 * m/apollo.h:
25989 * m/att3b.h:
25990 * m/aviion-intel.h:
25991 * m/aviion.h:
25992 * m/celerity.h:
25993 * m/clipper.h:
25994 * m/cnvrgnt.h:
25995 * m/convex.h:
25996 * m/cydra5.h:
25997 * m/delta88k.h:
25998 * m/dpx2.h:
25999 * m/dual.h:
26000 * m/elxsi.h:
26001 * m/f301.h:
26002 * m/gould-np1.h:
26003 * m/gould.h:
26004 * m/i860.h:
26005 * m/ibmps2-aix.h:
26006 * m/ibmrt-aix.h:
26007 * m/ibmrt.h:
26008 * m/irist.h:
26009 * m/is386.h:
26010 * m/isi-ov.h:
26011 * m/mega68.h:
26012 * m/mg1.h:
26013 * m/news-r6.h:
26014 * m/news-risc.h:
26015 * m/news.h:
26016 * m/nh3000.h:
26017 * m/nh4000.h:
26018 * m/ns16000.h:
26019 * m/ns32000.h:
26020 * m/nu.h:
26021 * m/orion.h:
26022 * m/orion105.h:
26023 * m/paragon.h:
26024 * m/pfa50.h:
26025 * m/plexus.h:
26026 * m/pyramid.h:
26027 * m/pyrmips.h:
26028 * m/sh3el.h:
26029 * m/sps7.h:
26030 * m/sr2k.h:
26031 * m/stride.h:
26032 * m/sun1.h:
26033 * m/sun2.h:
26034 * m/sun3-68881.h:
26035 * m/sun3-fpa.h:
26036 * m/sun3-soft.h:
26037 * m/sun3.h:
26038 * m/sun386.h:
26039 * m/symmetry.h:
26040 * m/tad68k.h:
26041 * m/tahoe.h:
26042 * m/targon31.h:
26043 * m/tek4300.h:
26044 * m/tekxd88.h:
26045 * m/tower32.h:
26046 * m/tower32v3.h:
26047 * m/ustation.h:
26048 * m/wicat.h:
26049 * m/xps100.h:
26050 * s/cxux.h:
26051 * s/cxux7.h:
26052 * s/dgux.h:
26053 * s/dgux4.h:
26054 * s/dgux5-4-3.h:
26055 * s/dgux5-4r2.h:
26056 * s/esix.h:
26057 * s/esix5r4.h:
26058 * s/hiuxmpp.h:
26059 * s/hiuxwe2.h:
26060 * s/iris3-5.h:
26061 * s/iris3-6.h:
26062 * s/isc2-2.h:
26063 * s/isc3-0.h:
26064 * s/isc4-0.h:
26065 * s/isc4-1.h:
26066 * s/newsos5.h:
26067 * s/newsos6.h:
26068 * s/osf1.h:
26069 * s/osf5-0.h:
26070 * s/riscix1-1.h:
26071 * s/riscix12.h:
26072 * s/sco4.h:
26073 * s/sco5.h:
26074 * s/sunos4-0.h:
26075 * s/sunos4-1.h:
26076 * s/sunos413.h:
26077 * s/sunos4shr.h:
26078 * s/umax.h:
26079 * s/unipl5-2.h:
26080 * s/xenix.h:
26081 * cxux-crt0.s:
26082 * unexapollo.c:
26083 * unexconvex.c:
26084 * unexenix.c:
26085 * unexsni.c: Remove files for systems no longer supported.
26086
26087 * m/intel386.h: Remove references to unsupported systems.
26088
26089 * w32.c (get_emacs_configuration): Remove reference to i860.
26090
26091 * sysdep.c: Remove dead code.
26092
260932008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
26094
26095 * s/rtu.h:
26096 * m/masscomp.h: Remove files. Platform is obsolete.
26097
260982008-01-04 Michael Albinus <michael.albinus@gmx.de>
26099
26100 * dbusbind.c (Fdbus_method_return): New function.
26101 (xd_read_message): Add the serial number to the event.
26102 (Fdbus_register_method): Activate the function.
26103
261042008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
26105
26106 * keyboard.c (read_key_sequence): Fix typo.
26107
261082008-01-03 Michael Albinus <michael.albinus@gmx.de>
26109
26110 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
26111 (xd_signature, xd_append_arg): Handle element type detection for
26112 empty arrays.
26113 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
26114 SDATA () calls; this must be solved more general.
26115 (Fdbus_register_signal): Use SBYTES instead of strlen.
26116
261172008-01-03 Magnus Henoch <magnus@zemdatav>
26118
26119 * dbusbind.c (xd_append_arg): Use unsigned char instead of
26120 unsigned int for byte values (necessary for big-endian platform).
26121 (Fdbus_call_method): Handle the case of no returned arguments.
26122
261232007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
26124
26125 * dbusbind.c (xd_read_message): Use non-static input_event struct.
26126
261272007-12-31 Magnus Henoch <mange@freemail.hu>
26128
26129 * dbusbind.c (xd_signature): Signature of variant is just "v".
26130
261312007-12-30 Michael Albinus <michael.albinus@gmx.de>
26132
26133 * dbusbind.c: Fix several errors and compiler warnings.
26134 Reported by Tom Tromey <tromey@redhat.com>.
26135 (XD_ERROR, XD_DEBUG_MESSAGE)
26136 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
26137 (xd_append_arg): Part for basic D-Bus types rewritten.
26138 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
26139 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
26140 appropriate.
26141 (xd_read_message): Return Qnil. Don't signal an error; it is not
26142 useful during event reading.
26143 (Fdbus_register_signal): Signal an error if the check for
26144 FUNCTIONP fails.
26145 (Fdbus_register_method): New function. The implementation is not
26146 complete, the call of the function signals an error therefore.
26147 (Fdbus_unregister_object): New function, renamed from
26148 Fdbus_unregister_signal. The initial check signals an error, if
26149 the object is not well formed.
26150
261512007-12-30 Richard Stallman <rms@gnu.org>
26152
26153 * textprop.c (get_char_property_and_overlay):
26154 Signal error if POSITION is out of range in a buffer.
26155
261562007-12-29 Martin Rudalics <rudalics@gmx.at>
26157
26158 * w32fns.c (Fx_create_frame): Make copy of frame parameters
26159 because the original parameters are in pure storage now.
26160
261612007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26162
26163 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
26164
261652007-12-22 Eli Zaretskii <eliz@gnu.org>
26166
26167 * callint.c (syms_of_callint) <command-history>: Add reference to
26168 history-length in the doc string.
26169
261702007-12-17 Jason Rumney <jasonr@gnu.org>
26171
26172 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
26173 before passing as wParam.
26174
261752007-12-22 Michael Albinus <michael.albinus@gmx.de>
26176
26177 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
26178 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
26179 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
26180 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
26181 as number.
26182 (Fdbus_call_method): Fix docstring.
26183
261842007-12-21 Michael Albinus <michael.albinus@gmx.de>
26185
26186 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
26187 New macros.
26188 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
26189 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
26190 Simplify.
26191 (xd_signature): New function.
26192 (xd_append_arg): Compute also signatures. Major rewrite.
26193 (xd_retrieve_arg): Make debug messages friendly.
26194 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
26195 Check for signatures of arguments.
26196
261972007-12-19 Michael Albinus <michael.albinus@gmx.de>
26198
26199 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
26200 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
26201 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
26202 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
26203 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
26204 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
26205 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
26206 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
26207 (xd_retrieve_value): Remove. Functionality included in ...
26208 (xd_append_arg): New function.
26209 (Fdbus_call_method, Fdbus_send_signal): Apply it.
26210
262112007-12-16 Michael Albinus <michael.albinus@gmx.de>
26212
26213 * dbusbind.c (top): Include <stdio.h>.
26214 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
26215 dbus_message_new_method_call and dbus_message_new_signal.
26216 (Fdbus_register_signal): Rename unique_name to uname.
26217 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
26218 non-existing unique name. Fix typos in matching rule. Return an
26219 object which is useful in Fdbus_unregister_signal.
26220 (Fdbus_unregister_signal): Reimplementation, in order to remove
26221 only the corresponding entry.
26222 (Vdbus_registered_functions_table): Change the order of entries.
26223 Apply these changes in xd_read_message and Fdbus_register_signal.
26224
262252007-12-16 Andreas Schwab <schwab@suse.de>
26226
26227 * fileio.c (Finsert_file_contents): Fix overflow check to not
26228 depend on undefined integer overflow.
26229
262302007-12-14 Jason Rumney <jasonr@gnu.org>
26231
26232 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
26233 for characters above 127.
26234
262352007-12-13 Jason Rumney <jasonr@gnu.org>
26236
26237 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
26238 before dereferencing array.
26239 (lookup_vk_code): Remove zero comparison.
26240
262412007-12-14 Michael Albinus <michael.albinus@gmx.de>
26242
26243 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
26244 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
26245 Use `unsigned int' instead of `uint'.
26246 (xd_read_message, Fdbus_register_signal): Split expressions into
26247 multiple lines before operators "&&" and "||", according to the
26248 GNU Coding Standards.
26249
262502007-12-14 Eli Zaretskii <eliz@gnu.org>
26251
26252 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
26253
262542007-12-12 Juri Linkov <juri@jurta.org>
26255
26256 * buffer.c (Frename_buffer): In interactive spec replace
26257 `read-buffer' with `read-string' that uses `buffer-name-history'
26258 as history, and the current buffer's name as default.
26259
262602007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
26261
26262 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
26263 manipulating the backtrace manually.
26264 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
26265 (struct backtrace, backtrace_list): Remove.
26266 (command_loop_1): Remove dead var `no_direct'.
26267
26268 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
26269 preserve non-built-in buffer-local variables.
26270 (Fkill_all_local_variables): Don't re-create&re-set permanent
26271 buffer-local variables.
26272
262732007-12-09 Juri Linkov <juri@jurta.org>
26274
26275 * buffer.c (Frename_buffer): Change interactive spec from "s" to
26276 Lisp code that uses `read-buffer' with current buffer as default.
26277
262782007-12-08 Michael Albinus <michael.albinus@gmx.de>
26279
26280 * dbusbind.c (xd_read_message): Generate an event for every
26281 registered handler. There might be several handlers registered
26282 for the same signal.
26283 (Fdbus_register_signal): Don't overwrite a registration for the
26284 same signal. Add a new registration if handlers are different.
26285 (Vdbus_registered_functions_table): Rework doc string.
26286
262872007-12-07 Michael Albinus <michael.albinus@gmx.de>
26288
26289 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
26290 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
26291 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
26292 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
26293 Unify argument lists.
26294 (xd_read_message, Fdbus_register_signal): Reorder and extend event
26295 arguments and hash table keys. Use unique name for service.
26296 (Fdbus_unregister_signal): Remove checks.
26297 (Vdbus_registered_functions_table): Fix doc string.
26298
262992007-12-05 Magnus Henoch <mange@freemail.hu>
26300
26301 * process.c (make_process): Initialize pty_flag to 0.
26302
263032007-12-05 Jason Rumney <jasonr@gnu.org>
26304
26305 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
26306 specified XBMs.
26307
263082007-12-05 Richard Stallman <rms@gnu.org>
26309
26310 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
26311
263122007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26313
26314 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
26315 New variable.
26316 (mac_try_close_socket) [MAC_OSX]: New function.
26317 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
26318 Update cfsockets_for_select. Replace invalid CFRunLoop source.
26319
26320 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
26321 Use mac_try_close_socket.
26322
263232007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26324
26325 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
26326 reloc_base.
26327 (copy_dysymtab): Compute relocation base here.
26328 (rebase_reloc_address) [__ppc64__]: New function.
26329 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
26330 changed.
26331
263322007-12-05 Jason Rumney <jasonr@gnu.org>
26333
26334 * w32proc.c (sys_spawnve): Quote args with wildcards.
26335
263362007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26337
26338 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
26339 __objc_* sections.
26340 (unrelocate) [_LP64]: Set relocation base to address of data segment.
26341
263422007-12-05 Michael Albinus <michael.albinus@gmx.de>
26343
26344 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
26345 Move check for Vdbus_registered_functions_table to
26346 xd_read_queued_messages.
26347 (xd_read_queued_messages): Protect xd_read_message calls by
26348 internal_condition_case_1.
26349
263502007-12-04 Michael Albinus <michael.albinus@gmx.de>
26351
26352 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
26353 Qdbus_system_bus and Qdbus_session_bus, respectively.
26354 (Vdbus_intern_symbols): Remove.
26355 (Vdbus_registered_functions_table): New hash table.
26356 (XD_SYMBOL_INTERN_SYMBOL): Remove.
26357 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
26358 Rewrite in order to manage registered functions by hash table
26359 Vdbus_registered_functions_table.
26360
263612007-12-03 Jan Djärv <jan.h.d@swipnet.se>
26362
26363 * xterm.c: Update URL to Window Manager Specification in comment.
26364
263652007-12-02 Michael Albinus <michael.albinus@gmx.de>
26366
26367 * config.in (HAVE_DBUS): Add.
26368
26369 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
26370 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
26371 (obj): Add $(DBUS_OBJ).
26372 (LIBES): Add $(DBUS_LIBS).
26373 (dbusbind.o): New target.
26374
26375 * dbusbind.c: New file.
26376
26377 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
26378
26379 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
26380 (Qdbus_event): New Lisp symbol.
26381 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
26382 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 26383 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
26384
26385 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
26386
263872007-12-01 Richard Stallman <rms@gnu.org>
26388
26389 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
26390
263912007-11-30 Jason Rumney <jasonr@gnu.org>
26392
26393 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
26394 (w32con_reset_terminal_modes): Clear screen buffer.
26395 (w32_face_attributes): Don't use color indexes that are out of range.
26396 Only reverse the default colors.
26397
26398 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
26399 WINDOWSNT.
26400
26401 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
26402
264032007-11-29 Jason Rumney <jasonr@gnu.org>
26404
26405 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
26406 (w32_face_attributes): Use Vtty_defined_color_alist to determine
26407 if the terminal colors are initialized.
26408 (unspecified_fg, unspecified_bg): Remove unused declarations.
26409
264102007-11-29 Andreas Schwab <schwab@suse.de>
26411
26412 * keyboard.c (apply_modifiers): Fix typo.
26413
264142007-11-29 Richard Stallman <rms@gnu.org>
26415
26416 * keymap.c (Fcurrent_local_map): Doc fix.
26417
264182007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
26419
26420 * s/gnu-kfreebsd.h: New file.
26421
264222007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
26423
26424 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
26425 Don't cast redundantly.
26426
26427 * keyboard.c (KEY_TO_CHAR): New macro.
26428 (parse_modifiers, apply_modifiers): Accept integer arguments.
26429 (read_key_sequence): Use them to unify the "shift->unshift" mapping
26430 for chars and symbol keys.
26431 After doing such remapping, apply function-key-map again.
26432
264332007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
26434
26435 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
26436 compiled anymore.
26437
264382007-11-26 Andreas Schwab <schwab@suse.de>
26439
26440 * process.c (list_processes_1): Fix indentation level of the
26441 command column.
26442
264432007-11-23 Andreas Schwab <schwab@suse.de>
26444
26445 * editfns.c (Fformat): Handle %c specially since it requires the
26446 argument to be of type int.
26447
264482007-11-23 Markus Triska <markus.triska@gmx.at>
26449
26450 * emacs.c (main): Call init_editfns before init_process, since
26451 init_process sets Vprocess_connection_type depending on OS release.
26452
264532007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
26454
26455 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
26456 (find_symbol_value): Use do_symval_forwarding.
26457
26458 * data.c (set_internal): Set the value in the `cons-cell' (for
26459 Buffer_Local_values) not only for frame-local variables.
26460
264612007-11-22 Andreas Schwab <schwab@suse.de>
26462
26463 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
26464 values to sprintf.
26465 * keymap.c (Fsingle_key_description): Likewise.
26466 * print.c (print_object): Likewise.
26467
264682007-11-22 Jan Djärv <jan.h.d@swipnet.se>
26469
26470 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
26471 file for image is nil.
26472
264732007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
26474
26475 * term.c: Include stdarg.h.
26476 (fatal): Implement using varargs.
26477 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
26478
264792007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
26480
26481 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
26482 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
26483 Update call to buffer_slot_type_mismatch.
26484 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
26485 (buffer_slot_type_mismatch): Update.
26486 * buffer.c (buffer_local_types): Remove.
26487 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
26488 (defvar_per_buffer): Set the type in the buffer_objfwd.
26489
264902007-11-21 Jason Rumney <jasonr@gnu.org>
26491
26492 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
26493 CreateFileMapping returns NULL on failure.
26494
264952007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
26496
26497 * search.c (Fset_match_data): Remove the `evaporate' feature.
26498 (unwind_set_match_data): Don't use the `evaporate' feature.
26499
265002007-11-21 Jason Rumney <jasonr@gnu.org>
26501
26502 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
26503
26504 * w32console.c (w32con_write_glyphs): Remove unused variables.
26505
265062007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
26507
26508 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
26509
26510 * s/darwin.h (MULTI_KBOARD): Remove.
26511
26512 * macfns.c (x_create_tip_frame, Fx_create_frame)
26513 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
26514
265152007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
26516
26517 * buffer.c (Fbuffer_local_value): Remove redundant test.
26518 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
26519 than in `current-buffer' to match the comment.
26520 Do the swap using swap_in_global_binding.
26521
26522 * data.c (store_symval_forwarding, set_internal):
26523 * eval.c (specbind): Remove dead code.
26524
26525 * coding.c (detect_coding, Fupdate_coding_systems_internal):
26526 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
26527 Since we do not want to see internal Lisp_*fwd objects here.
26528
265292007-11-18 Jan Djärv <jan.h.d@swipnet.se>
26530
26531 * sysdep.c (init_system_name): Use getaddrinfo if available.
26532
26533 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
26534 (x_scroll_bar_note_movement): start, end, with, height in struct
26535 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
26536
265372007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
26538
26539 * puresize.h (BASE_PURESIZE): Increase to 1190000.
26540
265412007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
26542
26543 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
26544 This undoes Richard's change of 14-Oct-2002.
26545
26546 * alloc.c (allocate_other_vector):
26547 * lisp.h (allocate_other_vector): Remove.
26548
26549 * window.c (struct save_window_data): Move non-lisp data to the end
26550 and make it `int' rather than Lisp_Object.
26551 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
26552 Done wrap/unwrap integer values.
26553 (Fset_window_configuration, compare_window_configurations):
26554 Update use of fields to their new types.
26555
26556 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
26557 Turn integer fields into `int'. Merge x_window_low and x_window_high.
26558 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
26559 (SET_SCROLL_BAR_X_WINDOW): Remove.
26560 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
26561 Access the new x_window field directly.
26562 * xterm.c (x_scroll_bar_create): Use a pseudovector.
26563 Don't wrap/unwrap integers into Lisp_Objects.
26564 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
26565 (x_scroll_bar_report_motion):
26566 Don't wrap/unwrap integers into Lisp_Objects.
26567 (x_term_init): Use SDATA.
26568 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
26569 (x_scroll_bar_set_handle, x_scroll_bar_remove)
26570 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
26571 (x_scroll_bar_report_motion, x_scroll_bar_clear):
26572 * xfns.c (x_set_background_color):
26573 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
26574 Access the new x_window field directly.
26575
26576 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
26577 (allocate_pseudovector): Make non-static.
26578
26579 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
26580 (allocate_pseudovector): Declare.
26581 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
26582
265832007-11-15 Andreas Schwab <schwab@suse.de>
26584
26585 * editfns.c (Fformat): Correctly format EMACS_INT values.
26586 Also take precision into account when formatting an integer.
26587
26588 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
26589
265902007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
26591
26592 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
26593 (syms_of_keyboard): Defsubr it.
26594
26595 * data.c (swap_in_global_binding): Fix longstanding bug where
26596 store_symval_forwarding was not called with the right second argument,
26597 thus causing objfwd-ing from being dropped.
26598
265992007-11-14 Juanma Barranquero <lekktu@gmail.com>
26600
26601 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
26602 (Fx_display_pixel_height, Fx_display_planes)
26603 (Fx_display_color_cells, Fx_server_max_request_size)
26604 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26605 (Fx_display_visual_class, Fx_display_save_under):
26606 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
26607 (Fx_display_pixel_height, Fx_display_planes)
26608 (Fx_display_color_cells, Fx_server_max_request_size)
26609 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
26610 (Fx_display_mm_height, Fx_display_mm_width)
26611 (Fx_display_backing_store, Fx_display_visual_class)
26612 (Fw32_select_font, Fx_display_save_under):
26613 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
26614 (Fx_display_pixel_height, Fx_display_planes)
26615 (Fx_display_color_cells, Fx_server_max_request_size)
26616 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26617 (Fx_display_save_under): Fix typos in docstrings.
26618
266192007-11-14 Juanma Barranquero <lekktu@gmail.com>
26620
26621 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
26622 corresponding to deleted entries; they are an implementation detail.
26623 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
26624 Remove variables.
26625 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
26626 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
26627 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
26628 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
26629 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
26630 (Fw32_define_rgb_color, Fw32_load_color_file)
26631 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
26632 Fix typos in docstrings.
26633 (Fx_server_version): Reflow docstring.
26634 (Fw32_shell_execute): Doc fixes.
26635
266362007-11-13 Juanma Barranquero <lekktu@gmail.com>
26637
26638 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
26639 if w32_parse_hot_key returned nil.
26640
266412007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
26642
26643 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
26644
266452007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 26646
aac0c6e3
MR
26647 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
26648
26649 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
26650
26651 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
26652 Remove W32_SCROLL_BAR_CLICK_EVENT.
26653
26654 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
26655 Add MULTIMEDIA_KEY_EVENT.
26656
26657 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
26658 (lispy_multimedia_keys) [WINDOWSNT]: New array.
26659 (make_lispy_event) [WINDOWSNT]: Use it to translate
26660 MULTIMEDIA_KEY_EVENT.
26661
26662 * w32term.h (WM_APPCOMMAND): Define if not already.
26663 (GET_APPCOMMAND_LPARAM): Likewise.
26664
26665 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
26666 WM_APPCOMMAND.
26667
26668 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
26669 (syms_of_w32fns): Export and initialize it.
26670 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
26671
266722007-11-09 Chong Yidong <cyd@stupidchicken.com>
26673
26674 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
26675 twice.
26676
26677 * xdisp.c (handle_face_prop): Fix last change.
26678
266792007-11-09 Richard Stallman <rms@gnu.org>
26680
26681 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
26682 not just for after-strings and before-strings.
26683 Call face_for_overlay_string and pass the overlay to it.
26684 (handle_display_prop): Determine whether property came from an overlay.
26685 Pass OVERLAY arg to handle_single_display_spec.
26686 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
26687 (load_overlay_strings): Fill in it->string_overlays.
26688 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
26689
26690 * xfaces.c (face_for_overlay_string): Function renamed from
26691 face_at_buffer_position_no_overlays, and add arg OVERLAY.
26692
26693 * dispextern.h (struct it): New elt string_overlays.
26694 New elt from_overlay, also in stack.
26695 Rearrange a few elements.
26696 (face_for_overlay_string): Decl renamed from
26697 face_at_buffer_position_no_overlays, and add argument.
26698
266992007-11-09 Richard Stallman <rms@gnu.org>
26700
26701 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
26702 to get the base face for an overlay string.
26703
26704 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
26705
26706 * xfaces.c (face_at_buffer_position_no_overlays): New function.
26707
26708 * xdisp.c (handle_stop): Move some code out of loop.
26709
267102007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26711
26712 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
26713 Fix conversion from Lisp object to ATSUFontID.
26714
267152007-11-09 Jason Rumney <jasonr@gnu.org>
26716
26717 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
26718
267192007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26720
26721 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
26722 Don't assume regions are aligned to page boundary.
26723 (print_load_command_name): Add LC_UUID if defined.
26724
267252007-11-09 Richard Stallman <rms@gnu.org>
26726
26727 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
26728
267292007-11-07 Jason Rumney <jasonr@gnu.org>
26730
26731 * s/windows95.h: Remove.
26732
267332007-11-06 Jan Djärv <jan.h.d@swipnet.se>
26734
26735 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
26736 abort with a message on unhandled store_type values.
26737
267382007-11-01 Jan Djärv <jan.h.d@swipnet.se>
26739
26740 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
26741 Remove HAVE_X11R5 and HAVE_X11R4.
26742
267432007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
26744
26745 * Makefile.in: Remove references to sunfns.c and sunfns.o.
26746
267472007-11-01 Johan Bockgård <bojohan@gnu.org>
26748
26749 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
26750 Don't set s->stippled_p here, since it has already been set by
26751 x_set_glyph_string_gc from x_draw_glyph_string.
26752
267532007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
26754
26755 * sunfns.c: Remove file.
26756
26757 * m/sun386.h:
26758 * m/sun2.h:
26759 * m/sparc.h: Remove Sun windows code.
26760
267612007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
26762
26763 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
26764 (init_keyboard): Set current_kboard's window-system to nil.
26765 (tty_read_avail_input): Typo.
26766 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
26767
267682007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
26769
26770 * s/usg5-4.h:
26771 * s/usg5-3.h:
26772 * s/ptx.h:
26773 * m/is386.h:
26774 * m/ibmps2-aix.h:
26775 * Makefile.in: Remove all mentions of X10.
26776
26777 * dispnew.c (syms_of_display): Don't mention version 10.
26778
267792007-10-28 Juanma Barranquero <lekktu@gmail.com>
26780
26781 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
26782 ($(BLD)/abbrev.$(O)): Remove.
26783
267842007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
26785
26786 Rewrite abbrev.c in Elisp.
26787 * image.c (Qcount): Don't declare as extern.
26788 (syms_of_image): Initialize and staticpro `Qcount'.
26789 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
26790 * emacs.c (main): Don't call syms_of_abbrev.
26791 * Makefile.in (obj): Remove abbrev.o.
26792 (abbrev.o): Remove.
26793 * abbrev.c: Remove.
26794
267952007-10-26 Martin Rudalics <rudalics@gmx.at>
26796
26797 * window.c (window_min_size_2): Don't count header-line.
26798
267992007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
26800
26801 * frame.h (struct frame): Move all bit fields after the first bit
26802 field to take advantage of the available space. Group all the
26803 chars together to reduce wasted space due to padding.
26804
268052007-10-26 Juanma Barranquero <lekktu@gmail.com>
26806
26807 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
26808
26809 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
26810 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
26811 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
26812 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
26813 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
26814 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
26815 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
26816 (last_marked, mark_object_loop_halt): Make static.
26817
26818 * frame.c (syms_of_frame) <delete-frame-functions>:
26819 Fix typo in docstring.
26820
268212007-10-25 Juanma Barranquero <lekktu@gmail.com>
26822
26823 * w32.c (init_environment): Fix tiny memory leak.
26824 (w32_get_resource): Remove unused variable `ok'.
26825
268262007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
26827
26828 Make `window-system' into a keyboard-local variable (rather than
26829 frame-local as done originally by multi-tty).
26830
26831 * keyboard.h (struct kboard): Add Vwindow_system.
26832 * keyboard.c (init_kboard): Set a default for Vwindow_system.
26833 (mark_kboards): Mark Vwindow_system.
26834
26835 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
26836 (init_display): Don't set the obsolete `window-system' frame-param.
26837
26838 * xterm.c (x_term_init):
26839 * w32term.c (w32_create_terminal):
26840 * term.c (init_tty): Set Vwindow_system.
26841 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
26842 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
26843
26844 * xfns.c (Fx_create_frame, x_create_tip_frame):
26845 * w32fns.c (Fx_create_frame, x_create_tip_frame):
26846 * macfns.c (Fx_create_frame):
26847 Don't set the obsolete `window-system' frame-param.
26848
26849 * frame.h (Qwindow_system): Remove.
26850 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
26851 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
26852
268532007-10-24 Richard Stallman <rms@gnu.org>
26854
26855 * frame.c (x_figure_window_size): For fullscreen case,
26856 set USPosition | PPosition without clobbering rest of window_prompting.
26857
26858 * keyboard.c (Fcurrent_idle_time): Doc fix.
26859
26860 * print.c (Fwith_output_to_temp_buffer): Doc fix.
26861
268622007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
26863
26864 * process.c (unwind_request_sigio): Only define if __ultrix__.
26865
26866 * callproc.c (child_setup): Remove spurious *.
26867
26868 * lisp.h (Fget_text_property): Declare.
26869 (have_menus_p): Declare it here rather than in sys-dep header files.
26870 * macterm.h (have_menus_p):
26871 * msdos.h (have_menus_p):
26872 * xterm.h (have_menus_p): Remove.
26873
26874 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
26875 (Fmake_variable_frame_local): Just check the variable's const-ness
26876 rather than checking nil or t.
26877
268782007-10-22 Jason Rumney <jasonr@gnu.org>
26879
26880 * w32fns.c: Include math.h.
26881 (w32_abort): Declaration moved to nt/config.nt.
26882
26883 * s/ms-w32.h (HAVE_STDLIB_H): Define.
26884 (abort): Redefinition moved to nt/config.nt.
26885
26886 * m/windowsnt.h: Remove.
26887
268882007-10-22 Juanma Barranquero <lekktu@gmail.com>
26889
26890 * emacs.c (Fdump_emacs): Fix typo in message.
26891 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
26892 <installation-directory>: Reflow docstring.
26893
268942007-10-22 Juri Linkov <juri@jurta.org>
26895
26896 * minibuf.c: Allow minibuffer default to be a list of default values.
26897 With empty input use the first element of this list as returned default.
26898 (string_to_object)
26899 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
26900 (read_minibuf): If defalt is cons, set histstring to its car.
26901 (Fread_string): If default_value is cons, set val to its car.
26902 (Fread_buffer): If def is cons, use its car.
26903 (Fcompleting_read): If defalt is cons, set val to its car.
26904
269052007-10-21 Michael Albinus <michael.albinus@gmx.de>
26906
26907 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
26908
269092007-10-20 Juanma Barranquero <lekktu@gmail.com>
26910
26911 * doc.c (Fdocumentation): Check for advice in all cases.
26912
269132007-10-19 Chong Yidong <cyd@stupidchicken.com>
26914
26915 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
26916
269172007-10-19 Richard Stallman <rms@gnu.org>
26918
26919 * doc.c (Fdocumentation): Check for and handle an advised function.
26920
269212007-10-19 Juanma Barranquero <lekktu@gmail.com>
26922
26923 * process.c (Fset_process_filter): Doc fix.
26924
269252007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
26926
26927 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
26928 which caused key-translation-map to applied repeatedly (thus breaking
26929 double-mode).
26930
269312007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26932
26933 * xselect.c (x_own_selection, x_handle_selection_clear)
26934 (x_clear_frame_selections):
26935 * w32menu.c (list_of_panes, list_of_items):
26936 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
26937 * textprop.c (validate_plist, interval_has_all_properties)
26938 (interval_has_some_properties, interval_has_some_properties_list)
26939 (add_properties, text_property_list):
26940 * process.c (Fget_buffer_process, list_processes_1, status_notify):
26941 * minibuf.c (Fassoc_string):
26942 * macselect.c (x_own_selection, x_clear_frame_selections)
26943 (Fx_disown_selection_internal):
26944 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
26945 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
26946
269472007-10-17 Chong Yidong <cyd@stupidchicken.com>
26948
26949 * process.c: Link to libs for calling res_init() if available.
26950 (Fmake_network_process): Call res_init() before getaddrinfo or
26951 gethostbyname, if possible.
26952
269532007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26954
26955 * lread.c (read1): Set pvectype for char_tables.
26956
26957 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
26958 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
26959 Add type checks.
26960 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
26961
26962 * alloc.c (free_misc): Use XMISCTYPE.
26963 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
26964
269652007-10-17 Glenn Morris <rgm@gnu.org>
26966
26967 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
26968 (syms_of_minibuf): Add Qcompletion_ignore_case.
26969 * dired.c (Qcompletion_ignore_case): Change to external.
26970 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
26971 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
26972 (Fread_file_name): Use it rather than intern'ing.
26973
26974 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
26975 (Fread_coding_system): Ignore case of user input.
26976
269772007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26978
26979 * xdisp.c (handle_display_prop): Ignore display specs after
26980 replacing one when string text is being replaced.
26981 (handle_single_display_spec): Pretend as if characters with display
26982 property haven't been consumed only when buffer text is being replaced.
26983
269842007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
26985
26986 * xfns.c (Fx_create_frame, Fx_display_list):
26987 * window.c (window_fixed_size_p, enlarge_window)
26988 (shrink_window_lowest_first):
26989 * macterm.c (init_font_name_table):
26990 * macfns.c (Fx_create_frame, Fx_display_list):
26991 * lread.c (close_load_descs):
26992 * keyboard.c (read_char_x_menu_prompt):
26993 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
26994 * coding.c (code_convert_region_unwind): Test the type of an object
26995 rather than just !NILP before extracting data from it.
26996
26997 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
26998
26999 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27000 (XMISCANY): New macro.
27001 (XMISCTYPE): Use it.
27002 (struct Lisp_Misc_Any): New type.
27003 (union Lisp_Misc): Use it.
27004 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27005 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27006 (find_symbol_value, set_internal, default_value, Fset_default)
27007 (Fmake_variable_buffer_local, Fmake_local_variable)
27008 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27009 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27010 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27011 * alloc.c (allocate_buffer): Set the size and tag.
27012 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27013 Use XMISCANY.
27014 (die): Follow the GNU convention for error messages.
27015 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27016 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27017 tag any more.
27018 (set_buffer_internal_1):
27019 * frame.c (store_frame_param):
27020 * eval.c (specbind):
27021 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27022
27023 * doc.c (Fsnarf_documentation): Simplify.
27024
270252007-10-14 Juanma Barranquero <lekktu@gmail.com>
27026
27027 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27028 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27029
270302007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
27031
27032 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27033
270342007-10-14 Juanma Barranquero <lekktu@gmail.com>
27035
27036 * eval.c (do_autoload): Don't save autoloads.
27037
27038 * data.c (Ffset): Save autoload of the function being set.
27039
270402007-10-07 John Paul Wallington <jpw@pobox.com>
27041
27042 * xfns.c (x_create_tip_frame): Set the `display-type' frame
27043 parameter before setting up faces.
27044
270452007-10-13 Eli Zaretskii <eliz@gnu.org>
27046
27047 * ccl.c (Fregister_code_conversion_map):
27048 * keyboard.c (append_tool_bar_item): Reformat last change.
27049
27050 * lisp.h (eabs): Rename from `abs'. All callers changed.
27051
270522007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
27053
27054 * buffer.c (add_overlay_mod_hooklist):
27055 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
27056 * fontset.c (make_fontset):
27057 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
27058 (append_tool_bar_item):
27059 * macmenu.c (grow_menu_items):
27060 * w32menu.c (grow_menu_items):
27061 * xmenu.c (grow_menu_items): Use larger_vector.
27062
270632007-10-13 Eli Zaretskii <eliz@gnu.org>
27064
27065 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
27066 selected frame'' on MSDOS).
27067
270682007-10-12 Martin Rudalics <rudalics@gmx.at>
27069
27070 * frame.c (Qexplicit_name): New variable.
27071 (x_report_frame_params): Report it in parameter alist.
27072 (syms_of_frame): Intern and staticpro it.
27073
270742007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
27075
27076 * macfns.c (x_create_tip_frame): Set terminal for frame.
27077
270782007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
27079
27080 * frame.c (Qenvironment): Remove.
27081 (syms_of_frame) <Qenvironment>: Don't initialize.
27082 (Fdelete_frame): Don't treat the `environment' param specially.
27083 * frame.h (Qenvironment): Don't declare.
27084 * callproc.c (set_initial_environment): Don't set unused frame param.
27085
27086 * frame.c (Fframe_with_environment): Remove.
27087 (syms_of_frame) <Sframe_with_environment>: Don't declare.
27088
27089 * lisp.h (Fframe_with_environment): Don't declare.
27090
270912007-10-10 Juanma Barranquero <lekktu@gmail.com>
27092
27093 * indent.c (indent_tabs_mode, last_known_column)
27094 (last_known_column_modified): Make static.
27095 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
27096
270972007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
27098
27099 * puresize.h (BASE_PURESIZE): Increase to 1170000.
27100
271012007-10-09 Jason Rumney <jasonr@gnu.org>
27102
27103 * w32term.c (x_set_window_size): Disable code that attempts to tell
27104 Lisp code about a size change before it actually happens.
27105
271062007-10-09 Richard Stallman <rms@gnu.org>
27107
27108 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
27109 return HANDLED_RETURN.
27110
271112007-10-08 Martin Rudalics <rudalics@gmx.at>
27112
27113 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
27114 when there's an unread command event.
27115
27116 * frame.c (focus_follows_mouse): Move here from frame.el to allow
27117 window autoselection act appropriately when leaving selected frame.
27118 (syms_of_frame): Initialize focus_follows_mouse.
27119 * frame.h (focus_follows_mouse): Extern it.
27120 * macterm.c (XTread_socket): When focus_follows_mouse is nil
27121 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
27122 * msdos.c (dos_rawgetc): Likewise.
27123 * w32term.c (w32_read_socket): Likewise.
27124 * xterm.c (handle_one_xevent): Likewise.
27125 * xdisp.c (syms_of_xdisp): In doc-string of
27126 mouse-autoselect-window mention focus-follows-mouse.
27127
271282007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27129
27130 * macterm.c (mac_load_query_font): Fix missing return value.
27131 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
27132 Add BLOCK_INPUT.
27133
271342007-10-08 Richard Stallman <rms@gnu.org>
27135
27136 * xdisp.c (get_window_cursor_type): Implement documented behavior
27137 for cursor-in-non-selected-windows = t.
27138
271392007-10-08 Jason Rumney <jasonr@gnu.org>
27140
27141 * w32.c (w32_get_resource): Always close registry keys.
27142
271432007-10-08 Jason Rumney <jasonr@gnu.org>
27144
27145 * makefile.w32-in (LIBS): Add COMCTL32.
27146
27147 * w32fns.c (globals_of_w32fns): Init common controls.
27148
271492007-10-08 Richard Stallman <rms@gnu.org>
27150
27151 * image.c (our_memory_buffer): Rename from omfib_buffer.
27152
271532007-10-08 Richard Stallman <rms@gnu.org>
27154
27155 * buffer.c (Foverlays_at): Doc fix.
27156
271572007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
27158
27159 * fns.c (Fplist_put): Preserve uneven tail data.
27160
271612007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
27162
27163 * termhooks.h (enum event_kind): Remove trailing comma.
27164
27165 * frame.h (enum): Remove trailing comma.
27166
271672007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
27168
27169 * w32proc.c (delete_child): Don't terminate threads of zombies.
27170
271712007-10-08 Martin Rudalics <rudalics@gmx.at>
27172
27173 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
27174
27175 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
27176 last-repeatable-command.
27177 (init_kboard): Initialize Vlast_repeatable_command.
27178 (command_loop_1): Set it to real_this_command unless that was
27179 bound to an input event.
27180 (mark_kboards): Mark it.
27181
271822007-10-08 Richard Stallman <rms@gnu.org>
27183
27184 * eval.c (condition-case): Doc fix.
27185
271862007-10-08 Masatake YAMATO <jet@gyve.org>
27187
27188 * xfaces.c (tty_supports_face_attributes_p): Fix code
27189 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
27190 was copied and not edited.
27191
271922007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
27193
27194 Add new `input-decode-map' keymap and use it for terminal
27195 escape sequences.
27196 * keyboard.h (struct kboard): Add Vinput_decode_map.
27197 Remove Vlocal_key_translation_map.
27198 * keyboard.c (read_key_sequence): Add support for input-decode-map.
27199 (init_kboard): Init input-decode-map.
27200 Replace local-key-translation-map back with key-translation-map.
27201 (syms_of_keyboard): Declare input-decode-map.
27202 Remove local-key-translation-map. Update docstrings.
27203 (mark_kboards): Mark Vinput_decode_map.
27204 Don't mark Vlocal_key_translation_map.
27205 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
27206 Replace local-key-translation-map back with key-translation-map.
27207 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
27208 Bind in input-decode-map rather than function-key-map.
27209
27210 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
27211 This was made redundant by the previous introduction of XSETPVECTYPE.
27212
272132007-10-09 Richard Stallman <rms@gnu.org>
27214
27215 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
27216
272172007-09-29 Richard Stallman <rms@gnu.org>
27218
27219 * eval.c (internal_condition_case_2, internal_condition_case_1)
27220 (internal_condition_case): Reenable abort if x_catching_errors ()
27221 to see if that really happens and why.
27222
272232007-10-06 Andreas Schwab <schwab@suse.de>
27224
27225 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
27226
272272007-10-04 Juanma Barranquero <lekktu@gmail.com>
27228
27229 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
27230
272312007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
27232
27233 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
27234
272352007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
27236
27237 * window.h (struct window):
27238 * window.c (struct save_window_data, struct saved_window):
27239 * termhooks.h (struct terminal):
27240 * process.h (struct Lisp_Process):
27241 * frame.h (struct frame):
27242 * buffer.h (struct buffer):
27243 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
27244 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
27245 The size field of (pseudo)vectors is now unsigned.
27246 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
27247
27248 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
27249 Turn `count' into an integer.
27250
27251 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
27252 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
27253 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
27254 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
27255 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
27256
27257 * alloc.c (allocate_pseudovector): New fun.
27258 (ALLOCATE_PSEUDOVECTOR): New macro.
27259 (allocate_window, allocate_terminal, allocate_frame)
27260 (allocate_process): Use it.
27261 (mark_vectorlike): New function.
27262 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
27263 (mark_terminals): Use it.
27264 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
27265 (Fmake_byte_code): Use XSETPVECTYPE.
27266
27267 * frame.c (Fframe_parameters): Minor simplification.
27268
27269 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
27270
27271 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
27272
27273 * buffer.c (Fget_buffer_create, init_buffer_once):
27274 * lread.c (defsubr):
27275 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
27276
27277 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
27278 defined differently in the m/*.h files.
27279 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
27280 (XSETPVECTYPE): New macro.
27281 (XSETPSEUDOVECTOR): Use it.
27282
27283 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
27284 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
27285
27286 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
27287 * lread.c (defvar_per_buffer):
27288 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
27289
27290 * window.c (candidate_window_p): Only consider as visible frames that
27291 are on the same terminal.
27292
27293 * m/ibms390x.h (MARKBIT): Remove unused macro.
27294
272952007-10-01 Juanma Barranquero <lekktu@gmail.com>
27296
27297 * lread.c (Fload): Fix typo in docstring.
27298
272992007-10-01 Michaël Cadilhac <michael@cadilhac.name>
27300
27301 * floatfns.c (Fexpt): Manually check for overflows, so that a power
27302 of a non-zero value can't yield zero.
27303
273042007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
27305
27306 * term.c (term_clear_mouse_face, term_mouse_highlight)
27307 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
27308
27309 * print.c (safe_debug_print): Use XHASH.
27310
27311 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
27312 Lisp elements such as tags.
27313 (XHASH): New macro.
27314 (EQ): Use it.
27315 (SREF, SSET, STRING_COPYIN): Use SDATA.
27316 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
27317
27318 * alloc.c (mark_terminal): Remove left-over declaration.
27319 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
27320 (allocate_vectorlike): Remove type argument. Adjust callers.
27321 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
27322 Only handle the one remaining MEM_TYPE_VECTORLIKE.
27323
27324 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
27325 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
27326 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
27327 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
27328 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
27329 Use them.
27330
27331 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
27332 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
27333 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
27334
273352007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
27336
27337 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
27338 loaded by default.
27339
273402007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
27341
27342 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
27343 on this tty.
27344 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
27345
27346 * term.c (mouse_face_window): Rename from Qmouse_face_window.
27347 Update all users.
27348 (handle_one_term_event): Use Gpm_DrawPointer.
27349 (Fgpm_mouse_start): Rename from Fterm_open_connection.
27350 Signal errors instead of returning nil. Always return nil.
27351 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
27352 Make it a noop if gpm-mouse was not activated.
27353 (syms_of_term): Update names.
27354
273552007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
27356
27357 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
27358 (init_sys_modes): Check that gpm_tty is the current tty.
27359
27360 * alloc.c (allocate_terminal): Set the vector size to only count the
27361 lisp fields. Initialize those to nil.
27362 (mark_object): Don't treat terminals specially.
27363 (mark_terminal): Remove.
27364 (mark_terminals): Use mark_object instead.
27365
27366 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
27367 the GC to the beginning.
27368
27369 * indent.h:
27370 * indent.c: Use EMACS_INT for ints coming from Elisp data.
27371
27372 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
27373
273742007-09-25 Jason Rumney <jasonr@gnu.org>
27375
27376 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
27377
27378 * w32console.c (create_w32cons_output): Remove.
27379
27380 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
27381
27382 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
27383 (reset_sys_modes): Use reset_terminal_modes_hook.
27384
273852007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
27386
27387 * eval.c (do_autoload): Don't output any message.
27388
273892007-09-24 Juri Linkov <juri@jurta.org>
27390
27391 * emacs.c (standard_args): Change priority of "--no-splash"
27392 from 40 to 3. Add "--no-desktop" with the same priority.
27393
273942007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
27395
27396 * alloc.c (gc_sweep): Check cons cell mark bits word by word
27397 and optimize the case where they are all 1.
27398
273992007-09-23 Johannes Weiner <hannes@saeurebad.de>
27400
27401 * lisp.h (abs): Define if not defined.
27402 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
27403 Don't define `abs', since it's defined in lisp.h.
27404
274052007-09-22 Eli Zaretskii <eliz@gnu.org>
27406
27407 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
27408 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
27409 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
27410 (init_tty): Use DEV_TTY instead of "/dev/tty".
27411 [WINDOWSNT]: No need to protect from NAME arg being null.
27412
274132007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
27414
27415 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
27416 up the tty state.
27417
274182007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
27419
27420 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
27421 (gpm_tty): Change its type.
27422 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
27423 (gpm_tty): Change its type and initialize it.
27424 (Fterm_open_connection): Check the frame is indeed a tty.
27425 Use the new gpm_tty.
27426 (Fterm_close_connection): Use the new gpm_tty.
27427 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
27428 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
27429
274302007-09-21 Juanma Barranquero <lekktu@gmail.com>
27431
27432 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
27433 underline_color, to draw strike-through.
27434
274352007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
27436
27437 * lisp.h (allocate_terminal): Declare.
27438
27439 * window.c (candidate_window_p): Consider frames that are being placed
27440 by the user as somewhere between visible and iconified.
27441 (window_loop): Prefer windows on the current frame.
27442 (Fselect_window): Move the use of select-frame to the beginning so we
27443 can just delegate all the work (it'll call us back anyway).
27444
27445 * frame.c (Qdisplay_environment_variable):
27446 * frame.h (Qdisplay_environment_variable): Delete.
27447
27448 * .gdbinit (xbacktrace): Print the arg's address rather than the value
27449 of the first arg, since that value may be a union.
27450
27451 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
27452 parameter rather than Qdisplay_environment_variable. If all else
27453 fails, look for DISPLAY in initial-environment.
27454
274552007-09-21 Glenn Morris <rgm@gnu.org>
27456
27457 * Makefile.in (emacstool): Remove target.
27458 (lisp, shortlisp): Remove termdev.elc.
27459
274602007-09-21 Markus Triska <markus.triska@gmx.at>
27461
27462 * xterm.c (x_delete_display): Compile session management conditionally.
27463
274642007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
27465
27466 * callproc.c (getenv_internal_1): New function.
27467 (getenv_internal): Use it.
27468 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
27469
27470 * terminal.c (get_terminal): Don't accept ints to represent terminals.
27471 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
27472 (Fset_terminal_parameter): Work with dead terminals as well.
27473 (Fmodify_terminal_parameters): Remove.
27474
27475 * terminal.c (get_terminal): Handle terminals.
27476 Make sure the terminal returned is live.
27477 (create_terminal): Use allocate_terminal.
27478 (mark_terminals): Move to alloc.c.
27479 (delete_terminal): Use terminal->name as liveness status.
27480 NULL out fields after freeing their contents.
27481 Don't deallocate the object.
27482 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
27483 rather than an int.
27484 (Fterminal_live_p): Accept non-integer arguments.
27485 (Fterminal_list): Return terminal objects rather than an ints.
27486
27487 * alloc.c (enum mem_type): New member for `terminal' objects.
27488 (allocate_terminal): New function.
27489 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
27490 Handle terminals.
27491 (mark_terminal): New fun.
27492 (mark_terminals): Move from terminal.c.
27493
27494 * term.c (get_tty_terminal): Don't treat output_initial specially.
27495 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
27496 (delete_tty): Use terminal->name as liveness status.
27497
27498 * termhooks.h (struct terminal): Make it into a pseudovector.
27499 Remove `deleted' replaced by checking `name's nullness.
27500
27501 * print.c (print_object): Handle terminals.
27502
27503 * lisp.h (enum pvec_type): New `terminal' pseudovector.
27504 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
27505
27506 * frame.c (make_terminal_frame):
27507 * keyboard.c (tty_read_avail_input):
27508 * w32term.c (x_delete_terminal):
27509 * xfns.c (Fx_create_frame, x_create_tip_frame):
27510 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
27511
275122007-09-20 Glenn Morris <rgm@gnu.org>
27513
27514 * process.c (Fmake_network_process): Doc fix.
27515
275162007-09-19 Jason Rumney <jasonr@gnu.org>
27517
27518 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
27519
275202007-09-19 Michaël Cadilhac <michael@cadilhac.name>
27521
27522 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
27523 Fix a C warning regarding variable constness.
27524
27525 * xterm.c (handle_one_xevent): Fix a C warning.
27526
275272007-09-18 Jason Rumney <jasonr@gnu.org>
27528
27529 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
27530
275312007-09-17 Jan Djärv <jan.h.d@swipnet.se>
27532
27533 * gtkutil.c (gdpy_def): New variable.
27534 (xg_initialize): Initialize gdpy_def.
27535 (xg_display_close): If no other display exists, set gdpy_def to a
27536 new connection.
27537
275382007-09-16 Jan Djärv <jan.h.d@swipnet.se>
27539
27540 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
27541 when we have no file name for the icon.
27542 (xg_tool_bar_expose_callback): Remove.
27543 (xg_create_tool_bar): Don't connect expose signal to
27544 xg_tool_bar_expose_callback.
27545 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
27546
275472007-09-16 Andreas Schwab <schwab@suse.de>
27548
27549 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
27550 values instead of zapping them.
27551
275522007-09-14 Glenn Morris <rgm@gnu.org>
27553
27554 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
27555 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
27556 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
27557 scope and rename to omfib_buffer for clarity.
27558 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
27559
275602007-09-14 Kenichi Handa <handa@m17n.org>
27561
27562 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
27563
275642007-09-13 Jason Rumney <jasonr@gnu.org>
27565
27566 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
27567
27568 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
27569
27570 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
27571 (mac_term_init): Call here instead, passing rif.
27572
275732007-09-13 Glenn Morris <rgm@gnu.org>
27574
27575 * s/hpux.h: No longer define `static' as nothing.
27576
275772007-09-13 Johan Bockgård <bojohan@gnu.org>
27578
27579 * callint.c (Fcall_interactively): Remove unused var `fun'.
27580
275812007-09-12 Romain Francoise <romain@orebokech.com>
27582
27583 * window.c (prefer_window_split_horizontally, display_buffer):
27584 Revert 2007-09-08 change.
27585
275862007-09-12 Glenn Morris <rgm@gnu.org>
27587
27588 * alloca.c: Remove file.
27589 * Makefile.in (alloca): Do not undef.
27590 (allocaobj, alloca.o): Remove.
27591 (otherobj): Remove allocaobj.
27592 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
27593 * regex.c (C_ALLOCA): Remove all references and code that was only
27594 used when this was defined.
27595 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
27596 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
27597 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
27598
27599 * Makefile.in (SOURCES, unlock, relock): Delete.
27600
27601 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
27602 (menu_grab_callback): All uses changed.
27603
27604 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
27605 (x_reply_selection_request): All uses changed.
27606
276072007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
27608
27609 * lread.c (load_warn_old_style_backquotes): Change message to look
27610 better when it appears in the middle of byte-compiler messages.
27611
276122007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
27613
27614 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
27615
27616 * xterm.c (x_create_terminal): Add comment.
27617
27618 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
27619
276202007-09-10 Richard Stallman <rms@gnu.org>
27621
27622 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
27623
276242007-09-10 Michaël Cadilhac <michael@cadilhac.name>
27625
27626 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
27627 (DEFUN): Document `intspec', use it instead of `prompt'.
27628
27629 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
27630
27631 * data.c (Finteractive_form): If the interactive specification starts
27632 with a `(', use it as a Lisp form.
27633
27634 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
27635 name and file modes.
27636
27637 * callint.c (Fcall_interactively): Comment fixes.
27638
276392007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
27640
27641 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
27642 and compiled functions.
27643
276442007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
27645
27646 * window.c (prefer_window_split_horizontally): New variable.
27647 (display_buffer): Consider splitting window horizontally depending
27648 on prefer_window_split_horizontally.
27649
276502007-09-08 Eli Zaretskii <eliz@gnu.org>
27651
27652 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
27653
276542007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
27655
27656 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
27657
27658 * frame.c (x_set_frame_parameters): Check number is positive before
27659 using XFASTINT.
27660
27661 * window.c (freeze_window_start): Don't presume selected_window holds
27662 a window object.
27663 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
27664
276652007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
27666
27667 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
27668
276692007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
27670
27671 * window.c (Vsplit_window_preferred_function): New var.
27672 (Fdisplay_buffer): Use it.
27673 (syms_of_window): Export, and initialize it.
27674
276752007-09-06 Pixel <pixel@mandriva.com> (tiny change)
27676
27677 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
27678
276792007-09-06 Glenn Morris <rgm@gnu.org>
27680
27681 * gtkutil.c (menu_grab_callback) <cnt>:
27682 * xselect.c (x_reply_selection_request) <cnt>: Move static
27683 variable to file scope.
27684
276852007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
27686
27687 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
27688 consistent values of selected_frame and selected_window.
27689
276902007-09-04 Jason Rumney <jasonr@gnu.org>
27691
27692 * w32console.c (initialize_w32_display): Zero unused hooks.
27693
276942007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
27695
27696 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
27697 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
27698
276992007-09-04 Jason Rumney <jasonr@gnu.org>
27700
27701 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
27702 in w32console.c. Set up input. Remove XXX comments that have been
27703 confirmed as correct.
27704
27705 * s/ms-w32.h (MULTI_KBOARD): Define.
27706
27707 * w32console.c (one_and_only_w32cons): Remove.
27708 (initialize_w32_display): Take terminal argument.
27709
27710 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
27711 initialize_w32_display.
27712 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
27713
27714 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
27715
27716 * keyboard.c (discard_mouse_events): Discard it.
27717 (make_lispy_event): Translate it to a lisp event.
27718 (lispy_wheel_names): Add wheel-left and right events.
27719 (syms_of_keyboard): Enlarge wheel_syms.
27720
27721 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
27722 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
27723
27724 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
27725
27726 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
27727 from WM_MOUSEHWHEEL.
27728 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
27729
27730 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
27731 terminal.
27732
27733 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
27734 keyboard for the terminal.
27735
277362007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
27737
27738 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
27739 (Vresume_tty_hook): Rename from Vresume_tty_functions.
27740 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
27741 and resume-tty-function to resume-tty-hook.
27742 (Fsuspend_tty, Fresume_tty): Use new names.
27743
277442007-09-02 Jan Djärv <jan.h.d@swipnet.se>
27745
27746 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
27747 if it starts with "n:".
27748
277492007-08-31 Jan Djärv <jan.h.d@swipnet.se>
27750
27751 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
27752
277532007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
27754
27755 * frame.h:
27756 * frame.c (Qterm_environment_variable): Remove.
27757 (syms_of_frame): Don't init and staticpro it.
27758
27759 * callproc.c (getenv_internal): Remove special case for $TERM.
27760
27761 * callproc.c (Vinitial_environment): New variable.
27762 (set_initial_environment): Initialize it.
27763 (syms_of_callproc): Declare it.
27764 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
27765 TERM under which a process runs is never related to the TERM in which
27766 Emacs is running.
27767
277682007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
27769
27770 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
27771 * s/darwin.h: ... do it here.
27772
277732007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
27774
27775 * lisp.h (set_initial_environment): Rename from set_global_environment.
27776
27777 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
27778 removed by mistake on the multi-tty branch.
27779
27780 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
27781 (Fmodify_frame_parameters): Return a value.
27782
27783 * image.c (png_load): Comment-out var only used in commented-out code.
27784
27785 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
27786 before passing it to mark_object.
27787
27788 * xfaces.c (internal_resolve_face_name): Return a value.
27789 (internal_resolve_face_name, resolve_face_name_error): Comment out.
27790
27791 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
27792 (x_icon): Comment-out var only used in commented-out code.
27793
277942007-08-29 Romain Francoise <romain@orebokech.com>
27795
27796 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
27797 QUIT hasn't been provided.
27798
277992007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
27800
27801 * callproc.c (child_setup, getenv_internal): Use the
27802 display-environment-variable and term-environment-variable frame params.
27803 (set_initial_environment): Initialise Vprocess_environment.
27804
27805 * config.in: Disable multi-keyboard support on a mac.
27806
27807 * frame.c (Qterm_environment_variable)
27808 (Qdisplay_environment_variable): New variables.
27809 (syms_of_frame): Intern and staticpro them.
27810 (Fmake_terminal_frame): Disable output method test.
27811
27812 * frame.h: Declare them here.
27813
27814 * macfns.c (x_set_mouse_color): Get rif from the frame.
27815 (x_set_tool_bar_lines): Don't use updating_frame.
27816 (mac_window): Add 2 new parameters for consistency with other systems.
27817 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
27818 frame parameters following what is done in X11 and w32. Don't use
27819 FRAME_MAC_DISPLAY_INFO.
27820 (Fx_open_connection, start_hourglass): Remove window-system check.
27821 (x_create_tip_frame): Get the keyboard from the terminal.
27822
27823 * macmenu.c: Reorder includes.
27824 (Fx_popup_menu): Use terminal specific mouse_position_hook.
27825
27826 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
27827 terminal parameter.
27828 (x_clear_frame): Add a frame parameter.
27829 (note_mouse_movement): Get rif from the frame.
27830 (mac_term_init): Initialize the terminal.
27831 (mac_initialize): Make static and move terminal initialization ...
27832 (mac_create_terminal): ... to this new function.
27833
27834 * macterm.h (struct mac_display_info): Add terminal.
27835 (mac_initialize): Delete declaration.
27836
27837 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
27838
27839 * sysdep.c: Comment out text after #endif.
27840
27841 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
27842 is defined. Better initialize ttys in windows. Use terminal
27843 specific mouse_position_hook.
27844
27845 * termhooks.h (union display_info): Add mac_display_info.
27846
27847 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
27848 Set the default minibuffer frame, window_system and the rest of the
27849 frame parameters following what is done in X11.
27850
27851 * w32term.c (w32_initialize): Make static.
27852
27853 * xselect.c (x_handle_selection_clear): Only access
27854 terminal->kboard when MULTI_KBOARD is defined.
27855
27856 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
27857 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
27858
278592007-08-29 Jason Rumney <jasonr@gnu.org>
27860
27861 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
27862 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
27863
27864 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
27865 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
27866
27867 * keyboard.c (restore_kboard_configuration): Only define when
27868 MULTI_KBOARD defined.
27869
27870 * makefile.w32-in: Update dependancies from Makefile.in.
27871 (OBJ1): Add terminal.$(O)
27872
27873 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
27874 Don't define function body.
27875 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
27876
27877 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
27878
27879 * w32.c (request_sigio, unrequest_sigio): Remove.
27880
27881 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
27882 (w32con_clear_frame, w32con_clear_end_of_line)
27883 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
27884 (w32con_delete_glyphs, w32con_set_terminal_window)
27885 (scroll_line, w32_sys_ring_bell): Add frame arg.
27886 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
27887 Add terminal arg.
27888 (PICK_FRAME): Remove.
27889 (w32con_write_glyphs): Use frame specific terminal coding.
27890 (one_and_only_w32cons): New global variable.
27891 (initialize_w32_display): Use it for storing hooks.
27892 (create_w32cons_output): New function.
27893
27894 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
27895 arg a frame.
27896
27897 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
27898 Set window_system.
27899 (x_set_tool_bar_lines): Don't use updating_frame.
27900 (Fx_create_frame): Set terminal and ref count.
27901 (Fx_open_connection): Remove window-system check.
27902
27903 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
27904
27905 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
27906 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
27907 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
27908 Add frame arg.
27909 (x_delete_terminal, w32_create_terminal): New functions.
27910 (w32_term_init): Create a terminal.
27911 (w32_initialize): Move terminal specific initialization to
27912 w32_create_terminal.
27913
27914 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
27915 (w32_clear_rect, w32_clear_area): Use background from frame.
27916 (w32_display_info): Add terminal.
27917 (w32_sys_ring_bell, x_delete_display): Declare here.
27918
27919 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
27920
27921 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
27922
279232007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
27924
27925 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
27926 Fix get_named_tty calls for the controlling tty.
27927
279282007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
27929
194d44e7 27930 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
27931
279322007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
27933
27934 * term.c (tty_insert_glyphs): Add missing first parameter.
27935
279362007-08-29 Károly Lőrentey <karoly@lorentey.hu>
27937
27938 * buffer.c (Fbuffer_list, Fbury_buffer):
27939 Take frame->buried_buffer_list into account.
27940
27941 * cm.c (current_tty): New variable, for cmputc().
27942 (cmputc): Use it.
27943 (cmcheckmagic): Add tty parameter, look up terminal streams there.
27944 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
27945 (cmgoto): Add tty parameter. Pass it on to calccost().
27946 Use emacs_tputs() instead of tputs().
27947
27948 * cm.h (emacs_tputs): New macro to set current_tty, and then call
27949 tputs().
27950 (current_tty): New variable, for cmputc().
27951 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
27952
27953 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
27954 (internal_condition_case, internal_condition_case_1)
27955 (internal_condition_case_2): Don't abort when x_catching_errors.
27956
27957 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
27958 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
27959 prevent crashes caused by bogus longjmps in read_char.
27960
27961 * keymap.h (Fset_keymap_parent): Add EXFUN.
27962
27963 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
27964 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27965 Remove redundant definition.
27966
27967 * macfns.c (x_set_mouse_color, x_make_gc):
27968 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27969
27970 * w32term.c (x_free_frame_resources):
27971 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27972 (w32_initialize): Use the accessor macros for terminal characteristics.
27973
27974 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
27975 Use the accessor macros for terminal characteristics.
27976 * msdos.c (internal_terminal_init): Use the accessor macros for
27977 terminal characteristics.
27978 (ScreenVisualBell, internal_terminal_init):
27979 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27980
27981 * termopts.h (no_redraw_on_reenter): Declare.
27982
27983 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
27984 (mark_terminals, mark_ttys): Declare.
27985 (Fgarbage_collect): Call them.
27986 (mark_object): Mark buried_buffer_list.
27987
27988 * prefix-args.c: Include stdlib.h for exit.
27989
27990 * syssignal.h: Add comment.
27991
27992 * indent.c: Include stdio.h.
27993
27994 * window.h (Vinitial_window_system): Declare.
27995 (Vwindow_system): Delete declaration.
27996
27997 * fontset.c (Finternal_char_font): Use FRAME_RIF.
27998
27999 * image.c (lookup_image): Don't initialize `c' until the xasserts
28000 have been run.
28001
28002 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28003 FRAME_FOREGROUND_PIXEL.
28004
28005 * print.c (print_preprocess): Don't lose print_depth levels while
28006 iterating.
28007
28008 * widget.c (update_from_various_frame_slots):
28009 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28010
28011 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28012 frames.
28013 (window_internal_height): Remove bogus make_number call.
28014 (init_window_once): Call make_terminal_frame with two zero parameters.
28015
28016 * fileio.c (Fread_file_name): Update comment.
28017
28018 * callint.c (Fcall_interactively):
28019 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28020 Make sure it is correctly unwound.
28021
28022 * xsmfns.c (x_session_close): New function.
28023
28024 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28025 Delete declarations.
28026
28027 * xterm.h: Remove declaration for x_fully_uncatch_errors.
28028 (x_output): Remove background_pixel and foreground_pixel fields.
28029 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
28030 (x_delete_device, x_session_close): Declare.
28031
28032 * lread.c: Include setjmp.h. Update declaration of `read_char'.
28033 (read_filtered_event): Call `read_char' with a local
28034 `wrong_kboard_jmpbuf'.
28035
28036 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
28037 Don't call single_kboard_state. Use FRAME_RIF.
28038
28039 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
28040 systems.
28041
28042 * lisp.h (set_process_environment): Rename to `set_global_environment'.
28043 (Fframe_with_environment, Fset_input_meta_mode)
28044 (Fset_quit_char): EXFUN.
28045 (x_create_device, tty_output, terminal, tty_display_info): Declare.
28046 (init_sys_modes, reset_sys_modes): Update prototypes.
28047 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
28048
28049 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
28050 Vlocal_key_translation_map, and Vkeyboard_translate_table.
28051 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
28052 Delete declarations.
28053 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
28054 (temporarily_switch_to_single_kboard, tty_read_avail_input):
28055 New declarations.
28056
28057 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
28058 already does that during init_display(). Call syms_of_keymap
28059 before syms_of_keyboard. Call `syms_of_terminal'.
28060 Call set_initial_environment, not set_process_environment.
28061 (shut_down_emacs): Call reset_all_sys_modes() instead of
28062 reset_sys_modes().
28063
28064 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
28065 (internal_resolve_face_name, resolve_face_name_error): New functions.
28066 (resolve_face_name): Protect against loops and errors thrown by Fget.
28067 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
28068 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
28069
28070 * scroll.c: Replace CURTTY() with local variables throughout the
28071 file (where applicable).
28072 (calculate_scrolling, calculate_direct_scrolling)
28073 (scrolling_1, scroll_cost): Use the accessor macros for terminal
28074 characteristics.
28075
28076 * keymap.c (Vfunction_key_map): Remove.
28077 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
28078 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
28079 (Vkey_translation_map): Remove.
28080 (syms_of_keymap): Remove DEFVAR for key-translation-map.
28081 (Fdescribe_buffer_bindings)
28082 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
28083 Update for terminal-local key-translation-map.
28084
28085 * Makefile.in (callproc.o): Update dependencies.
28086 (lisp, shortlisp): Add termdev.elc.
28087 (obj): Add terminal.o.
28088 (terminal.o): Add dependencies.
28089 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
28090 (data.o, fns.o): Add termhooks.h dependency.
28091 (SOME_MACHINE_LISP): Add dnd.elc.
28092 (minibuf.o): Fix typo.
28093 Update dependencies.
28094
28095 * data.c (do_symval_forwarding, store_symval_forwarding)
28096 (find_symbol_value): Use the selected frame's keyboard, not
28097 current_kboard.
28098
28099 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
28100 Vwindow_system.
28101
28102 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
28103 Fmenu_bar_open.
28104 (syms_of_xmenu): Update defsubr.
28105 (mouse_position_for_popup, Fx_popup_menu)
28106 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
28107 (set_frame_menubar, free_frame_menubar)
b97439ce 28108 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
28109 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
28110 an X frame.
28111
28112 * xselect.c (x_own_selection): Abort if not an X frame.
28113 (some_frame_on_display): Check if it is an X frame.
28114 (x_handle_selection_clear): Deal with MULTI_KBOARD.
28115
28116 * coding.c: Include frame.h and termhooks.h.
28117 (terminal_coding, keyboard_coding): Delete.
28118 (Fset_terminal_coding_system_internal)
28119 (Fset_keyboard_coding_system_internal)
28120 (Fkeyboard_coding_system)
28121 (Fterminal_coding_system): Add a terminal parameter.
28122 Get terminal_coding from the terminal.
28123 (init_coding_once): Don't call setup_coding_system here.
28124
28125 * dispextern.h (set_scroll_region, turn_off_insert)
28126 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
28127 (tty_clear_end_of_line, tty_setup_colors)
28128 (delete_tty, updating_frame)
28129 (produce_special_glyphs, produce_glyphs, write_glyphs)
28130 (insert_glyphs): Remove.
28131 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
28132 (tty_turn_off_highlight, get_tty_size): Add declaration.
28133 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
28134
28135 * frame.h (enum output_method): Add output_initial.
28136 (struct x_output): Delete.
28137 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28138 Access foreground_pixel and background_pixel directly from the frame.
28139 (tty_display): Delete.
28140 (struct frame): Add buried_buffer_list, foreground_pixel,
28141 background_pixel and terminal. Delete kboard.
28142 (union output_data): Add tty.
28143 (FRAME_KBOARD): Get the kboard from the terminal.
28144 (FRAME_INITIAL_P): New macro.
28145 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
28146 (Qterm_environment_variable, Qdisplay_environment_variable)
28147 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
28148 New declarations.
28149
28150 * termchar.h (tty_output, tty_display_info): New structures.
28151 (tty_list): Declare.
28152 (FRAME_TTY, CURTTY): New macros.
28153 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
28154 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
28155 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
28156 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
28157
28158 * callproc.c: Include frame.h and termhooks.h, for terminal
28159 parameters.
28160 (add_env): New function.
28161 (child_setup): Use it.
28162 (child_setup, getenv_internal): Handle the new Vprocess_environment.
28163 (getenv_internal): Fix get_terminal_param call.
28164 (Fgetenv_internal, egetenv): Update doc.
28165 (syms_of_callproc): Initialize Vprocess_environment to nil.
28166 Register and initialize them. Remove obsolete defvars. Update doc
28167 strings.
28168 (child_setup): Handle Vlocal_environment_variables.
28169 (getenv_internal): Add terminal parameter.
28170 Handle Vlocal_environment_variables.
28171 (Fgetenv_internal): Add terminal parameter.
28172 (child_setup, getenv_internal, Fgetenv_internal): Store the local
28173 environment in a frame (not terminal) parameter. Update doc strings.
28174 (set_initial_environment): Rename from set_global_environment.
28175 Store Emacs environment in initial frame parameter.
28176
28177 * xdisp.c (redisplay_internal): Update references to
28178 `previous_terminal_frame'.
28179 (display_mode_line, Fformat_mode_line): Replace calls to
28180 `push_frame_kboard' with `push_kboard'.
28181 (get_glyph_string_clip_rects): Add extra parentheses and
28182 braces to prevent compiler warnings.
28183 (calc_pixel_width_or_height): Add xassert to check that the
28184 frame is alive. Don't call `lookup_image' on a termcap frame.
28185 (message2_nolog, message3_nolog, redisplay_internal)
28186 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
28187 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
28188 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
28189 (Fx_display_pixel_width, Fx_display_pixel_height)
28190 (Fx_display_planes, Fx_display_color_cells)
28191 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
28192 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
28193 (Fx_display_backing_store, Fx_display_visual_class)
28194 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
28195 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
28196
28197 * xfns.c (x_set_foreground_color x_set_background_color)
28198 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
28199 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28200 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
28201 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
28202 terminal that is being deleted.
28203 (Fx_create_frame): Use `store_frame_param' to set `window-system'
28204 frame parameter, and make sure it overrides any user-supplied setting.
28205 (Fx_close_connection, Fx_synchronize): Unify argument names with
28206 the rest of the DEFUNs.
28207
28208 * dispnew.c (Fsend_string_to_terminal): Update call to
28209 `get_tty_terminal'.
28210 (Fredraw_frame, Fsend_string_to_terminal)
28211 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
28212 FRAME_TERMCAP_P and FRAME_TTY.
28213 (window_change_signal): Don't believe width/height values that are
28214 impossibly small.
28215 (Vinitial_window_system): Rename from Vwindow_system.
28216 (termscript, Wcm, rif): Delete.
28217
28218 * termhooks.h (struct terminal): New struct containing the
28219 previously global text display hooks and new members NAME,
28220 DELETED and PARAM_ALIST.
28221 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
28222 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
28223 (FRAME_RIF): New macros.
28224 (get_terminal_param, get_device): New declarations.
28225 (termscript): Delete declaration.
28226
28227 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
28228 (XTflash, x_free_frame_resources, x_scroll_bar_create)
28229 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
28230 FRAME_FOREGROUND_PIXEL.
28231 (x_fully_uncatch_errors): Disable definition.
28232 (x_scroll_bar_expose): Fix reference to foreground pixel.
28233 (XTread_socket): Disable loop on all X displays.
28234 (x_delete_terminal): Don't set terminal->deleted and let
28235 delete_terminal delete the frames on the terminal.
28236 (x_delete_display): Doc update to reflect changes in
28237 delete_terminal.
28238 (x_display_info) <terminal>: Move member earlier in the struct.
28239 (deleting_tty): Remove old variable.
28240 (Fsuspend_tty): Call clear_tty_hooks.
28241 (Fresume_tty, init_tty): Call set_tty_hooks.
28242 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
28243 errors on X frames.
28244 (x_catch_errors_unwind): Abort if x_error_message is NULL.
28245 (handle_one_xevent): Initialize `f' to NULL.
28246 (x_delete_terminal, x_create_terminal): New functions.
28247 (XTset_terminal_modes, XTreset_terminal_modes)
28248 (XTread_socket, x_connection_closed, x_term_init)
28249 (x_term_init, x_delete_display): Add terminal parameter.
28250 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
28251 X connections.
28252
28253 * frame.c: Include termchar.h.
28254 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
28255 (Qwindow_system, Qenvironment, Qterm_environment_variable)
28256 (Qdisplay_environment_variable): New vars.
28257 (Fframep): Deal with output_initial.
28258 (Fframe-live-p): Doc fix.
28259 (Fwindow-system): New function.
28260 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
28261 (make_terminal_frame): Don't create frames on a terminal that is
28262 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28263 (store_frame_param): Check for found_for_frame before calling XFRAME.
28264 (Fmake_terminal_frame): Handle NULL tty names correctly.
28265 (syms_of_frame): Enhance doc string of `default-frame-alist'.
28266 (Fdelete_frame): Remove unused variable `count'. Don't allow other
28267 frames to refer to a deleted frame in their 'environment parameter.
28268 (Fframe_with_environment): New function.
28269 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
28270 (get_future_frame_param): New function.
28271 (Fmake_terminal_frame): Use it.
28272 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
28273
28274 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
28275 * sysdep.c (reset_sys_modes): Update for renames.
28276
28277 * keyboard.c (tty_read_avail_input): New function.
28278 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
28279 (syms_of_keyboard): Defsubr them.
28280 (Fset_input_meta_mode, Fset_quit_char): New functions.
28281 (Fset_input_mode): Split to above functions.
28282 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
28283 parameter. Use it in call to `read_char'.
28284 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
28285 Set wrong_kboard_jmpbuf correctly in recursive calls.
28286 Use current_kboard to access Vkeyboard_translate_table.
28287 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
28288 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
28289 Update longjmp invocations. Remember the original current_kboard,
28290 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
28291 changes it. Comment out unnecessary calls to
28292 `record_single_kboard_state' and `any_kboard_state'.
28293 Update recursive calls.
28294 (wrong_kboard_jmpbuf): Remove global variable.
28295 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
28296 Handle deleted interrupted_kboards correctly; that is a legal
28297 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
28298 and read_char calls. Abort if interrupted_kboard died in read_char.
28299 (any_kboard_state, single_kboard_state)
28300 (push_frame_kboard): Remove function.
28301 (pop_kboard): Switch out of single_kboard mode if the kboard has
28302 been deleted. Remove unused variable. Help debugging by not
28303 changing current_kboard unnecessarily. Set current_kboard to the
28304 kboard of the selected frame when the stored kboard object has
28305 been deleted before pop_kboard.
28306 (temporarily_switch_to_single_kboard): Change first parameter to a
28307 frame pointer. Throw an error when caller wants to change kboards
28308 while in single_kboard mode. Don't push_kboard if we weren't in
28309 single kboard state. Don't pop_kboard if we popped into any
28310 kboard state.
28311 (restore_kboard_configuration): Abort if pop_kboard changed the
28312 kboard in single_kboard mode. Call pop_kboard only after setting
28313 up single_kboard mode.
28314 (Frecursive_edit): Switch to single_kboard mode only in nested
28315 command loops.
28316 (cmd_error, command_loop, command_loop_1, timer_check):
28317 Comment out unnecessary call to `any_kboard_state' and
28318 `record_single_kboard_state'.
28319 (delete_kboard): Exit single_kboard mode if we have just deleted
28320 that kboard. Use FRAME_KBOARD.
28321 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
28322 `fatal_error_signal'.
28323 (record_single_kboard_state): Don't push_kboard if we weren't in
28324 single kboard state. Don't pop_kboard if we popped into any
28325 kboard state.
28326 (push_frame_kboard): Rename to push_kboard.
28327 (kbd_buffer_get_event): Use FRAME_TERMINAL.
28328 (read_avail_input): Read input from all terminals.
28329 (mark_kboards): Also mark Vkeyboard_translate_table.
28330 (kbd_buffer_store_event_hold): Simplify condition.
28331 (read_key_sequence): Reinitialize fkey and keytran at each replay.
28332 (Vkeyboard_translate_table): Move to struct kboard.
28333 (init_kboard): Initialize Vkeyboard_translate_table.
28334 (syms_of_keyboard): Use DEFVAR_KBOARD to define
28335 Vkeyboard_translate_table. Update doc strings. Update docs of
28336 local-function-key-map and function-key-map.
28337
28338 * terminal.c: New file.
28339
28340 * term.c: Include errno.h.
28341 (Vring_bell_function, device_list, initial_device)
28342 (next_device_id, ring_bell, update_begin, update_end)
28343 (set_terminal_window, cursor_to, raw_cursor_to)
28344 (clear_to_end, clear_frame, clear_end_of_line)
28345 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
28346 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
28347 (syms_of_term): Move their initialization to terminal.c.
28348 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
28349 (Ftty_display_color_cells)
28350 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
28351 (clear_tty_hooks, set_tty_hooks)
28352 (init_tty, maybe_fatal): New functions.
28353 (Ftty_type): Return nil if terminal is not on a tty instead of
28354 throwing an error. Doc update.
28355 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
28356 Doc update. Initialize new subrs and variables.
28357 (delete_tty): Use terminal->deleted.
28358 (tty_set_terminal_modes): Rename from set_terminal_modes.
28359 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
28360 (set_scroll_region): Rename to `tty_set_scroll_region'.
28361 (turn_on_insert): Rename to `tty_turn_on_insert'.
28362 (turn_off_insert): Rename to `tty_turn_off_insert'.
28363 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
28364 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
28365 (toggle_highligh): Rename to `tty_toggle_highlight'.
28366 (background_highlight): Rename to `tty_background_highlight'.
28367 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
28368 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
28369 (tty_set_scroll_region, tty_background_highlight)
28370 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
28371 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
28372 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
28373 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
28374 Add static modifier.
28375 (tty_reset_terminal_modes, tty_set_terminal_window)
28376 (tty_set_scroll_region, tty_background_highlight)
28377 (tty_highlight_if_desired, tty_cursor_to)
28378 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
28379 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
28380 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
28381 renames.
28382
283832007-08-28 Jan Djärv <jan.h.d@swipnet.se>
28384
28385 * keyboard.c: Qrtl is new.
28386 (parse_tool_bar_item): Handle :rtl keyword.
28387 (syms_of_keyboard): Intern :rtl keyword.
28388
28389 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
28390
28391 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
28392 so no Lisp code is executed.
28393 (file_for_image, find_rtl_image): New functions.
28394 (xg_get_image_for_pixmap): Use file_for_image.
28395 (update_frame_tool_bar): If direction is RTL, use RTL image if
28396 defined. Use Gtk stock images if defined.
28397
283982007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28399
28400 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
28401 for nonexistent or zero-width glyph in composition glyph.
28402
284032007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
28404
28405 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
28406
28407 * xdisp.c (Finvisible_p): New function.
28408 (syms_of_xdisp): defsubr it.
28409
284102007-08-24 Juanma Barranquero <lekktu@gmail.com>
28411
28412 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
28413 Doc fixes.
28414
284152007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28416
28417 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
28418
284192007-08-24 Martin Rudalics <rudalics@gmx.at>
28420
28421 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
28422 whether decoding has modified buffer contents.
28423
284242007-08-24 Jason Rumney <jasonr@gnu.org>
28425
28426 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
28427 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
28428 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
28429 (init_svg_functions) [HAVE_NTGUI]: New function.
28430 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
28431 (svg_load_image): Use them.
28432 (svg_load_image) [HAVE_NTGUI]: Implement background.
28433
284342007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28435
28436 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
28437 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
28438 (LIBX): Remove @RSVG_LIBS@.
28439 (LIBES): Add $(RSVG_LIBS).
28440
28441 * image.c (svg_load_image): Blend with specified background if exists.
28442 Use IMAGE_BACKGROUND. Add Mac OS Support.
28443
28444 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
28445 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
28446 Remove macros.
28447 [MAC_OSX] (socket_callback): Do nothing.
28448 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
28449 ReceiveNextEvent.
28450 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
28451 socket_callback.
28452 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
28453
284542007-08-22 Glenn Morris <rgm@gnu.org>
28455
28456 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
28457
284582007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
28459
28460 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
28461
28462 * image.c: Add support for SVG images. Some additional comments
28463 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
28464 (svg_image_p): New function to test for SVG image.
28465 (svg_load): New function to load SVG image.
28466 (svg_load_image): New function, helper for svg_load.
28467 (Qsvg): New Lisp_object.
28468 (svg_keyword_index): New enum.
28469 (svg_format): New static `image_keyword' struct.
28470 (svg_type): New static `image_type' struct.
28471 (librsvg/rsvg.h): Include it.
28472
284732007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
28474
28475 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
28476
284772007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
28478
28479 * lread.c (Qold_style_backquotes): New var.
28480 (syms_of_lread): Init and staticpro it.
28481 (load_warn_old_style_backquotes): New fun.
28482 (Fload): Use them to warn about old style backquotes.
28483 (end_of_file_error, Fload): Remove unused vars.
28484
28485 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
28486
28487 * lread.c (Vold_style_backquotes): New var.
28488 (syms_of_lread): Init and export it to Elisp.
28489 (read1): Set it when we find an old-style (back)quote.
28490
284912007-08-22 Jason Rumney <jasonr@gnu.org>
28492
28493 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
28494
284952007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
28496
28497 * puresize.h (BASE_PURESIZE): Increase to 1140000.
28498
284992007-08-19 Richard Stallman <rms@gnu.org>
28500
28501 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
28502
285032007-08-19 Andreas Schwab <schwab@suse.de>
28504
28505 * alloc.c (pure): Round PURESIZE up.
28506
285072007-08-17 Jan Djärv <jan.h.d@swipnet.se>
28508
28509 * xterm.c (handle_one_xevent): Remove check that mouse click is in
28510 active frame.
28511
285122007-08-16 Richard Stallman <rms@gnu.org>
28513
28514 * eval.c (Fcommandp): Add parens to clarify.
28515
28516 * minibuf.c (Fall_completions): Use enum for type of table.
28517
28518 * emacs.c (USAGE2): Improve text.
28519
285202007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
28521
28522 * term.c (tty_default_color_capabilities): Declare static
28523 variables in file scope, to avoid HPUX compiler problem.
28524
285252007-08-13 Jan Djärv <jan.h.d@swipnet.se>
28526
28527 * gtkutil.c (update_frame_tool_bar): Use -1 as index
28528 to gtk_toolbar_insert.
28529
285302007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
28531
28532 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
28533
28534 * insdel.c (reset_var_on_error): New fun.
28535 (signal_before_change, signal_after_change):
28536 Use it to reset (after|before)-change-functions to nil in case of error.
28537 Bind inhibit-modification-hooks to t.
28538 Don't bind (after|before)-change-functions to nil while they run.
28539
285402007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28541
28542 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
28543 filling pixmap with stippled background.
28544
285452007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28546
28547 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
28548 Don't use invisible frame as parent window for repositioning.
28549
285502007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
28551
28552 * print.c (new_backquote_output): Rename from old_backquote_output.
28553 (print): Inverse its logic (according to its name) so as to match the
28554 behavior of new_backquote_flag in lread.c.
28555
285562007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28557
28558 * gmalloc.c (posix_memalign): New function.
28559
28560 * macterm.c (frame_highlight, frame_unhighlight): Don't call
28561 ActivateControl/DeactivateControl here.
28562 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
28563 frame-notice-user-settings is non-nil.
28564 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
28565 for kEventParamFMFontStyle.
28566 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
28567 mac_pass_command_to_system and mac_pass_control_to_system here.
28568 (XTread_socket): Call ActivateControl/DeactivateControl here.
28569 (XTread_socket) [TARGET_API_MAC_CARBON]:
28570 Check mac_pass_command_to_system and mac_pass_control_to_system here.
28571 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
28572 for window repositioning.
28573
285742007-08-08 Glenn Morris <rgm@gnu.org>
28575
28576 * Replace `iff' in doc-strings and comments.
28577
285782007-08-07 Chong Yidong <cyd@stupidchicken.com>
28579
28580 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
28581
285822007-08-07 Martin Rudalics <rudalics@gmx.at>
28583
28584 * fileio.c (Finsert_file_contents): Run format-decode and
28585 after_insert_file_functions on entire buffer when REPLACE is
28586 non-nil and inhibit modification_hooks and point_motion_hooks.
28587 For consistency, run after_insert_file_functions iff something
28588 got inserted. Move signal_after_change and update_compositions
28589 after code running after_insert_file_functions. Make sure that
28590 undo_list doesn't record intermediate steps of the decoding process.
28591
285922007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28593
28594 * emacs.c (main)
28595 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
28596 Call malloc_enable_thread on interactive startup.
28597
28598 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
28599 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
28600 [USE_PTHREAD]: Conditionalize with it.
28601 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
28602 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
28603 New functions.
28604
286052007-08-06 Chong Yidong <cyd@stupidchicken.com>
28606
28607 * xdisp.c (redisplay_window): When restoring original buffer
28608 position, make sure it is still valid.
28609
28610 * image.c (png_load): Ignore png-supplied background color.
28611
286122007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28613
28614 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
28615 Use kCFAbsoluteTimeIntervalSince1970.
28616
28617 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
28618 New variable.
28619 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
28620 event loop should be quit.
28621 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
28622 Quit dialog event loop if quit_dialog_event_loop is set.
28623
28624 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
28625 (Selection): New typedef. Use instead of ScrapRef.
28626 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
28627 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
28628 (mac_clear_selection): Rename from clear_scrap.
28629 (get_flavor_type_from_symbol): New argument SEL and subsume function of
28630 scrap_has_target_type. All uses changed.
28631 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
28632 (mac_selection_has_target_p): New functions.
28633 (mac_put_selection_value): Rename from put_scrap_string.
28634 (mac_get_selection_value): Rename from get_scrap_string.
28635 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
28636 (put_scrap_private_timestamp, scrap_has_target_type)
28637 (get_scrap_private_timestamp): Remove functions.
28638 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
28639 (x_own_selection, x_get_local_selection):
28640 Use mac_valid_selection_value_p.
28641 (x_own_selection): Don't use put_scrap_private_timestamp.
28642 Record OWNERSHIP-INFO into Vselection_alist instead.
28643 (x_get_local_selection): Don't check type if request is local.
28644 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
28645 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
28646
286472007-08-04 Jan Djärv <jan.h.d@swipnet.se>
28648
28649 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
28650 add comment explaining why.
28651
286522007-08-03 Richard Stallman <rms@gnu.org>
28653
28654 * fileio.c (Fvisited_file_modtime): Use make_time.
28655
286562007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
28657
28658 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
28659 build.
28660
286612007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
28662
28663 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
28664
286652007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
28666
28667 * puresize.h (BASE_PURESIZE): Increase to 1130000.
28668
286692007-07-30 Richard Stallman <rms@gnu.org>
28670
28671 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
28672
286732007-07-29 Jan Djärv <jan.h.d@swipnet.se>
28674
28675 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
28676
286772007-07-28 Nick Roberts <nickrob@snap.net.nz>
28678
28679 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
28680 remote default-directory.
28681
28682 * buffer.c (mode-line-format): Update doc string.
28683
286842007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28685
28686 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
28687 scroll bar gap.
28688 (x_scroll_bar_create): Set bar->fringe_extended_p.
28689 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
28690 on frame edge. Check fringe background extension. Don't clear
28691 extended fringe background area.
28692
28693 * w32term.h (struct scroll_bar): New member fringe_extended_p.
28694 (w32_fill_area): Enclose multiple statements with do ... while (0).
28695
28696 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
28697 Extend fringe background to scroll bar gap.
28698 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
28699 Set bar->fringe_extended_p.
28700 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28701 Put leftmost/rightmost scroll bars on frame edge. Check fringe
28702 background extension. Don't clear extended fringe background area.
28703
28704 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28705 New member fringe_extended_p.
28706
287072007-07-25 Glenn Morris <rgm@gnu.org>
28708
28709 * Relicense all FSF files to GPLv3 or later.
28710
28711 * COPYING: Switch to GPLv3.
28712
287132007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
28714
28715 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
28716
28717 * data.c (Finteractive_form): Check for the presence of an
28718 `interactive-form' symbol property more thoroughly.
28719
28720 * data.c (Finteractive_form): Use an `interactive-form' property if
28721 present, analogous to the function-documentation property.
28722
287232007-07-24 Jason Rumney <jasonr@gnu.org>
28724
28725 * w32fns.c (x_real_positions): Get real position from OS instead of
28726 calculating it.
28727
287282007-07-23 Jason Rumney <jasonr@gnu.org>
28729
28730 * filelock.c (current_lock_owner): Allow for @ sign in username.
28731
287322007-07-22 Nick Roberts <nickrob@snap.net.nz>
28733
28734 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
28735 remote default-directory.
28736
28737 * buffer.c (mode-line-format): Describe above case in doc string.
28738
287392007-07-20 Eli Zaretskii <eliz@gnu.org>
28740
28741 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
28742 Define if not defined.
28743
287442007-07-18 Jason Rumney <jasonr@gnu.org>
28745
28746 * w32proc.c (w32_executable_type): Handle 64 bit executables.
28747
287482007-07-18 Richard Stallman <rms@gnu.org>
28749
28750 * data.c (Fsetq_default): Doc fix.
28751
28752 * eval.c (Fsetq): Doc fix.
28753
287542007-07-18 Juanma Barranquero <lekktu@gmail.com>
28755
28756 * coding.c (Ffind_operation_coding_system):
28757 * eval.c (For, Fand): Doc fixes.
28758 Reported by Johan Bockgård.
28759
287602007-07-18 Jan Djärv <jan.h.d@swipnet.se>
28761
28762 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
28763
28764 * xterm.h: Declare x_ewmh_activate_frame.
28765
28766 * xterm.c (x_ewmh_activate_frame): New function.
28767 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
28768
287692007-07-17 Martin Rudalics <rudalics@gmx.at>
28770
28771 * window.c (Fdisplay_buffer): If largest or LRU window is the
28772 only window, split it even if it is not eligible for splitting.
28773 This restores the original behavior broken by the 2007-07-15
28774 change.
28775
287762007-07-17 Glenn Morris <rgm@gnu.org>
28777
28778 * abbrev.c (abbrev_check_chars): New function.
28779 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
28780 Call abbrev_check_chars to check abbrev characters are word
28781 constituents. Doc fix.
28782
287832007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
28784
28785 * process.c (Fstart_process, Fmake_network_process)
28786 (read_process_output): Fix up last changes.
28787
287882007-07-16 Eli Zaretskii <eliz@gnu.org>
28789
28790 * makefile.w32-in (clean): Don't delete *~.
28791
287922007-07-16 Andreas Schwab <schwab@suse.de>
28793
28794 * window.c (Fdisplay_buffer): Use NILP.
28795 (Fset_window_scroll_bars): Likewise.
28796
287972007-07-15 Martin Rudalics <rudalics@gmx.at>
28798
28799 * window.c (window_min_size_2): New function.
28800 (window_min_size_1, size_window, Fdisplay_buffer)
28801 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
28802 windows without mode- or header-lines when window-min-height is
28803 too small.
28804 (size_window): Reset nodelete_p after testing it, following an
28805 earlier note by Kim F. Storm.
28806 (display_buffer): Do not set split_height_threshold to twice the
28807 value of window_min_height to avoid changing the value of a
28808 customizable variable. Rather explicitly check whether the
28809 height of the window that shall be splitted is at least as large
28810 as split_height_threshold.
28811 (Fwindow_full_width_p): New defun.
28812 (syms_of_window): Defsubr it.
28813
28814 * window.h: Add EXFUN for Fwindow_full_width_p.
28815
288162007-07-14 Jason Rumney <jasonr@gnu.org>
28817
28818 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
28819
288202007-07-14 Richard Stallman <rms@gnu.org>
28821
28822 * eval.c (maybe_call_debugger): New function.
28823 (find_handler_clause): Use maybe_call_debugger.
28824 Call it when the handler says `debug'.
28825 Eliminate DEBUGGER_VALUE_PTR.
28826 (Fsignal): Eliminate debugger_value.
28827 (Qdebug): New variable.
28828 (syms_of_eval): Initialize it.
28829
288302007-07-14 Juanma Barranquero <lekktu@gmail.com>
28831
28832 * eval.c (Fprogn):
28833 * keyboard.c (Ftrack_mouse):
28834 * print.c (Fwith_output_to_temp_buffer):
28835 * window.c (Fsave_window_excursion): Doc fix.
28836
288372007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
28838
28839 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
28840
288412007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
28842
28843 * process.h (struct Lisp_Process): Turn slots infd, outfd,
28844 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
28845 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
28846 read_output_delay, and read_output_skip from Lisp_Objects to ints.
28847 Remove unused encoding_carryover.
28848 * process.c: Adjust all functions accordingly.
28849
288502007-07-12 Richard Stallman <rms@gnu.org>
28851
28852 * term.c: Include unistd.h only if HAVE_UNISTD_H.
28853
288542007-07-11 Jason Rumney <jasonr@gnu.org>
28855
28856 * makefile.w32-in (LIBS): Include OLE32.
28857
28858 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
28859 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
28860
288612007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
28862
28863 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
28864 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
28865 from a Lisp_Object into a bare pointer.
28866 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
28867 Adjust the code correspondingly.
28868
28869 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
28870
28871 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
28872 (term_show_mouse_face): Remove unused var `j'.
28873 (handle_one_term_event): Remove unused vars `i' and `j'.
28874 Don't cast return value of ttyname since it's not necessary.
28875
288762007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
28877
28878 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
28879 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
28880
28881 * fns.c (map_char_table): Use an array of int for `indices' rather than
28882 an array of Lisp_Objects (which are only ever integers anyway).
28883 (Fmap_char_table): Update caller.
28884 * lisp.h: Update prototype.
28885 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
28886 * fontset.c (Ffontset_info):
28887 * casetab.c (set_case_table): Update callers.
28888
28889 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
28890
28891 * keymap.c (struct accessible_keymaps_data)
28892 (struct where_is_internal_data): New structures.
28893 (accessible_keymaps_1, where_is_internal_1): Use them to change
28894 interface to adhere to the one used by map_keymap.
28895 (Faccessible_keymaps, where_is_internal): Use map_keymap.
28896 (accessible_keymaps_char_table, where_is_internal_2): Remove.
28897
28898 * keymap.h (map_keymap_function_t): More informative prototype.
28899
289002007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
28901
28902 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
28903 (looking_at_1): Don't change search_regs and last_thing_searched
28904 if `inhibit-changing-match-data' is non-nil.
28905 (string_match_1, search_buffer, set_search_regs): Likewise.
28906 (syms_of_search): Add Lisp level definition for
28907 `inhibit-changing-match-data' and set it to nil.
28908 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
28909 start and end of the match, instead of using values in search_regs.
28910
289112007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
28912
28913 * minibuf.c (Fcompleting_read): New value `confirm-only'
28914 for `require-match'.
28915
289162007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
28917
28918 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
28919 part of the 2007-06-27 change to syms_of_fileio.
28920
289212007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28922
28923 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
28924 Check WINDOWP before using XWINDOW. Consolidate return statements.
28925
289262007-06-27 Richard Stallman <rms@gnu.org>
28927
28928 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
28929
289302007-06-27 Juanma Barranquero <lekktu@gmail.com>
28931
28932 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
28933
289342007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28935
28936 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
28937 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
28938 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
28939 (_free_internal, memalign): Use them.
28940 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
28941 Initialize to PTHREAD_MUTEX_INITIALIZER.
28942 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
28943 (morecore_nolock): Rename from morecore. All uses changed.
28944 Use only nolock versions of internal allocation functions.
28945 (_malloc_internal_nolock, _realloc_internal_nolock)
28946 (_free_internal_nolock): New functions created from
28947 _malloc_internal, _realloc_internal, and _free_internal.
28948 (_malloc_internal, _realloc_internal, _free_internal): Use them.
28949 Copy hook value to automatic variable before its use.
28950 (memalign): Copy hook value to automatic variable before its use.
28951
289522007-06-26 Kenichi Handa <handa@m17n.org>
28953
28954 * coding.c (Ffind_operation_coding_system): Docstring improved.
28955 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
28956
289572007-06-25 David Kastrup <dak@gnu.org>
28958
28959 * keymap.c (Fcurrent_active_maps): Add `position' argument.
28960 (Fwhere_is_internal): Adjust call to `current-active-maps' to
28961 cater for additional parameter.
28962
28963 * keymap.h: Adjust number of parameters to `current-active-maps'.
28964
28965 * doc.c (Fsubstitute_command_keys): Adjust call of
28966 `current-active-maps'.
28967
289682007-06-25 David Kastrup <dak@gnu.org>
28969
28970 * callint.c (Fcall_interactively): Make the parsing of interactive
28971 specs somewhat more readable.
28972
289732007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28974
28975 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
28976 to scroll bar gap also when bitmap fills fringe. Draw only foreground
28977 if extended background has already been filled.
28978
289792007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28980
28981 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
28982 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
28983
28984 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
28985 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
28986 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
28987 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
28988 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
28989 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
28990 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
28991 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
28992 Run timers during dialog popup.
28993 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
28994
289952007-06-21 Jason Rumney <jasonr@gnu.org>
28996
28997 * image.c (convert_mono_to_color_image): Swap fore and background.
28998
289992007-06-20 Jason Rumney <jasonr@gnu.org>
29000
29001 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29002 (w32_free_bdf_font): Unmap memory not handle.
29003
290042007-06-20 Sam Steingold <sds@gnu.org>
29005
29006 * gmalloc.c (__morecore): Fix the declaration to comply with the
29007 definition.
29008
290092007-06-20 Juanma Barranquero <lekktu@gmail.com>
29010
29011 * w32term.c (w32_delete_display): Remove leftover declaration.
29012 (w32_define_cursor, w32_initialize): Make static.
29013
29014 * w32.c (_wsa_errlist): Fix typo in error message.
29015 (init_environment): Ignore any environment variable from the
29016 registry having a null value.
29017
290182007-06-20 Glenn Morris <rgm@gnu.org>
29019
29020 * Makefile.in (LIBGIF): Default to -lgif.
29021
290222007-06-17 Jason Rumney <jasonr@gnu.org>
29023
29024 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29025 unicode strings.
29026
290272007-06-16 Juanma Barranquero <lekktu@gmail.com>
29028
29029 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29030 Fix typo in docstring.
29031
290322007-06-16 Eli Zaretskii <eliz@gnu.org>
29033
29034 * w32menu.c (add_menu_item): Escape `&' characters in menu items
29035 and their keybindings.
29036
290372007-06-15 Chong Yidong <cyd@stupidchicken.com>
29038
29039 * composite.c (update_compositions): Fix last fix.
29040
290412007-06-14 Jason Rumney <jasonr@gnu.org>
29042
29043 * w32.c (get_process_times_fn): New function pointer.
29044 (globals_of_w32): Intialize it if present in kernel32.dll.
29045 (w32_get_internal_run_time): New function.
29046
29047 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
29048
290492007-06-14 Kenichi Handa <handa@etlken.m17n.org>
29050
29051 * composite.c (update_compositions): Check the validness of
29052 compositions.
29053
290542007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29055
29056 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
29057 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
29058
29059 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
29060 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
29061
29062 * macgui.h (USE_MAC_TOOLBAR): New define.
29063
29064 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29065 Return immediately unless popup is activated.
29066
29067 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
29068 background to scroll bar gap.
29069 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
29070 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
29071 scroll bars on frame edge. Check fringe background extension.
29072 Don't clear extended fringe background area.
29073 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
29074 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
29075 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
29076 [USE_MAC_TOOLBAR]: New macros.
29077 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
29078 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
29079 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
29080 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
29081 [USE_MAC_TOOLBAR]: New functions.
29082 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
29083 manually if previous repositioning has failed.
29084 (mac_handle_keyboard_event): Use precomputed event kind.
29085 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
29086 as tool bar item click. Handle mouse movement over tool bar items.
29087
29088 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
29089 toolbar_win_gravity.
29090 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
29091 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
29092 Add externs.
29093
29094 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
29095 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
29096
290972007-06-14 Chong Yidong <cyd@stupidchicken.com>
29098
29099 * image.c (search_image_cache): Remove unused variable.
29100
291012007-06-13 Chong Yidong <cyd@stupidchicken.com>
29102
29103 * xfns.c, xmenu.c: Link to xaw3d if available.
29104
291052007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29106
29107 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
29108 frame_foreground and frame_background.
29109
29110 * image.c (lookup_image): Save frame foreground and background colors.
29111 (search_image_cache): Check if saved and current frame colors match.
29112
291132007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
29114
29115 * regex.c (regex_compile): Remove the `regnum' counter.
29116 Use bufp->re_nsub instead. Add support for \(?N:RE\).
29117
291182007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
29119
29120 * term.c: Include intervals.h to declare Fget_text_property.
29121
291222007-06-10 Jason Rumney <jasonr@gnu.org>
29123
29124 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
29125
291262007-06-08 Juanma Barranquero <lekktu@gmail.com>
29127
29128 * callint.c (Fcall_interactively):
29129 * editfns.c (Fdelete_and_extract_region):
29130 * fileio.c (Fread_file_name):
29131 * fns.c (Fmapconcat):
29132 * keyboard.c (cmd_error_internal):
29133 * keymap.c (Fkey_description):
29134 * lread.c (openp):
29135 * minibuf.c (read_minibuf):
29136 * search.c (wordify):
29137 * sunfns.c (sel_read):
29138 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
29139 * xfns.c (x_default_scroll_bar_color_parameter):
29140 * xmenu.c (menu_help_callback):
29141 * xselect.c (Fx_get_atom_name):
29142 * xterm.c (x_term_init): Use empty_unibyte_string.
29143
291442007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
29145
29146 * alloc.c (init_strings): Initialize canonical empty strings.
29147 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
29148 canonical empty string when the requested size is 0.
29149
29150 * emacs.c (empty_unibyte_string): Rename from empty_string.
29151 (empty_multibyte_string): New canonical empty string.
29152 (syms_of_emacs): Don't initialize empty_string.
29153
29154 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
29155 string, if appropriate.
29156 (empty_unibyte_string, empty_multibyte_string): New externs.
29157 (empty_string): Remove extern.
29158
29159 * lread.c (syms_of_lread): Use empty_unibyte_string.
29160
291612007-06-07 Jason Rumney <jasonr@gnu.org>
29162
29163 * s/ms-w32.h: Don't define HAVE_TZNAME.
29164
29165 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
29166
291672007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29168
29169 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
29170
29171 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
29172 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
29173
29174 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29175 Don't call next handler.
29176 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
29177 Remove argument. Install handler to application.
29178 (set_frame_menubar): Don't change deep_p.
29179 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
29180 FRAME_OUTER_TO_INNER_DIFF_Y.
29181 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
29182 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
29183 [HAVE_DIALOGS]: New macros.
29184 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
29185 Use them.
29186 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
29187
29188 * macselect.c [MAC_OSX] (install_service_handler): Rename from
29189 init_service_handler. All callers changed. Return OSStatus value.
29190
29191 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
29192 All callers changed so as not to call SetPortWindowPort.
29193 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
29194 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
29195 mac_draw_string_common.
29196 (mac_draw_image_string_qd): Likewise.
29197 (mac_draw_string_common): Use them. Add INLINE.
29198 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
29199 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
29200 GetGlobalMouse.
29201 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
29202 and FRAME_OUTER_TO_INNER_DIFF_Y.
29203 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
29204 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
29205 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
29206 repositioning window to mac_handle_window_event.
29207 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
29208 saving window location to mac_handle_window_event
29209 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
29210 (install_menu_target_item_handler): Remove argument in extern.
29211 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
29212 Also accept command events.
29213 (do_keystroke): New function created from XTread_socket.
29214 (init_command_handler): Remove functions.
29215 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
29216 and save window location by kEventWindowShowing and kEventWindowHiding
29217 handlers here. Don't call next handler for window state change and
29218 focus events.
29219 (mac_handle_application_event, mac_handle_keyboard_event)
29220 [TARGET_API_MAC_CARBON]: New functions.
29221 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
29222 kEventWindowShowing and kEventWindowHiding events. Move installation
29223 of mouse, font, text input and menu target item handlers to
29224 install_application_handler.
29225 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
29226 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29227 New function.
29228 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29229 Register it.
29230 (XTread_socket) [TARGET_API_MAC_CARBON]:
29231 Consolidate SendEventToEventTarget calls.
29232 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
29233 Move application activation handler to mac_handle_application_event.
29234 Move keyboard handler to mac_handle_keyboard_event.
29235 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
29236 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
29237 init_command_handler. Call install_application_handler.
29238
29239 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
29240 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
29241
292422007-06-07 Glenn Morris <rgm@gnu.org>
29243
29244 * emacs.c (main): Use `emacs-copyright' in --version output.
29245
292462007-06-06 Chong Yidong <cyd@stupidchicken.com>
29247
29248 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
29249
292502007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29251
29252 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
29253
29254 * macgui.h: Replace WindowPtr with WindowRef.
29255
29256 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29257 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
29258 Replace ControlHandle with ControlRef.
29259 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
29260
29261 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29262 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
29263 Replace ControlHandle with ControlRef.
29264 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
29265 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
29266
29267 * macterm.h (struct scroll_bar): Rename member control_handle_low
29268 and control_handle_high to control_ref_low and control_ref_high.
29269 All uses changed.
29270 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
29271 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
29272 respectively. All uses changed.
29273 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
29274 (install_window_handler, remove_window_handler): Replace WindowPtr
29275 with WindowRef in externs.
29276
292772007-06-05 Juanma Barranquero <lekktu@gmail.com>
29278
29279 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
29280
292812007-06-03 Nick Roberts <nickrob@snap.net.nz>
29282
29283 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
29284
29285 * frame.c (Fmouse_position, Fmouse_pixel_position):
29286 Condition on HAVE_GPM too.
29287
29288 * term.c (term_mouse_highlight): Remove unused variables.
29289 (Fterm_open_connection): Set gpm_zerobased to 1.
29290 (term_mouse_movement, term_mouse_click, handle_one_term_event):
29291 Use zero based co-ordinates.
29292 (handle_one_term_event): Report a drag as mouse movement too.
29293
29294 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
29295
292962007-06-03 Chong Yidong <cyd@stupidchicken.com>
29297
29298 * image.c (search_image_cache): New function. Require background
29299 color match if background color is unspecified in the image spec.
29300 (uncache_image, lookup_image): Use it.
29301
293022007-06-01 Juanma Barranquero <lekktu@gmail.com>
29303
29304 * window.c (Fshrink_window): Reflow docstring.
29305
293062007-06-02 Chong Yidong <cyd@stupidchicken.com>
29307
29308 * Version 22.1 released.
29309
293102007-06-01 Richard Stallman <rms@gnu.org>
29311
29312 * xfns.c (x_encode_text): Add GCPRO.
29313
293142007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29315
29316 * xfns.c (x_set_name_internal): Save encoded name before
29317 x_encode_text in case string data is relocated.
29318
293192007-05-31 Richard Stallman <rms@gnu.org>
29320
29321 * buffer.c (syms_of_buffer): Doc fix.
29322
293232007-05-30 Nick Roberts <nickrob@snap.net.nz>
29324
29325 * sysdep.c (init_sys_modes): Add rather than replace with
29326 O_NONBLOCK.
29327
29328 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
29329 term_mouse_moveto.
29330
29331 * termhooks.h (term_mouse_moveto): New extern.
29332
29333 * term.c (mouse_face_window): Rename...
29334 (Qmouse_face_window): ...to this.
29335 (term_show_mouse_face, term_clear_mouse_face)
29336 (term_mouse_highlight): Use Qmouse_face_window.
29337 (term_mouse_moveto): New function.
29338 (term_mouse_position): Make it work.
29339 (syms_of_term): Uncomment assignment to mouse_position_hook.
29340 Staticpro Qmouse_face_window.
29341
293422007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29343
29344 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
29345 around current_column call.
29346
293472007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
29348
29349 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
29350 * xdisp.c (next_element_from_buffer):
29351 * window.c (delete_window):
29352 * term.c (term_mouse_highlight):
29353 * msdos.c (getdefdir):
29354 * macterm.c (mac_create_bitmap_from_bitmap_data)
29355 (init_font_name_table):
29356 * fns.c (Fsxhash):
29357 * data.c (Fmake_local_variable):
29358 * ccl.c (ccl_driver): Likewise.
29359
293602007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29361
29362 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
29363 Call mac_wakeup_from_rne on window size change.
29364
293652007-05-25 Chong Yidong <cyd@stupidchicken.com>
29366
29367 * image.c (uncache_image): Fix typo.
29368
293692007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
29370
29371 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
29372
293732007-05-22 Richard Stallman <rms@gnu.org>
29374
29375 * xterm.c (x_connection_closed): Remove NO_RETURN.
29376
293772007-05-22 Martin Rudalics <rudalics@gmx.at>
29378
29379 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
29380
293812007-05-21 Chong Yidong <cyd@stupidchicken.com>
29382
29383 * image.c (uncache_image): New function.
29384 (Fimage_refresh): New function.
29385
293862007-05-20 Jan Djärv <jan.h.d@swipnet.se>
29387
29388 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
29389
293902007-05-20 Nick Roberts <nickrob@snap.net.nz>
29391
29392 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
29393 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
29394
293952007-05-20 Nick Roberts <nickrob@snap.net.nz>
29396
29397 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
29398 conditional on [HAVE_GPM_H].
29399
294002007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
29401
29402 * syntax.c (skip_chars): Update syntax-table only after we checked that
29403 the new location is valid.
29404
294052007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29406
29407 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
29408 mac_get_window_bounds.
29409
294102007-05-20 Nick Roberts <nickrob@snap.net.nz>
29411
29412 * Makefile.in (LIBGPM): Allow it to be set from configure.
29413 If set then link Emacs with it.
29414
29415 * config.in: Regenerate.
29416
29417 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
29418 New externs.
29419
29420 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
29421 Include gpm.h.
29422 (handle_one_term_event, term_gpm): New externs.
29423
29424 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
29425 and allow it to be interrupted by SIGIO.
29426
29427 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
29428 (wait_reading_process_output): Wait on gpm_fd too.
29429 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
29430 (add_gpm_wait_descriptor_called_flag): New variable.
29431 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
29432
29433 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
29434 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
29435 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
29436 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
29437 (make_lispy_event): Add case GPM_CLICK_EVENT.
29438 (read_avail_input): Handle mouse input.
29439
29440 * term.c (write_glyphs_with_face): New function.
29441 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
29442 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
29443 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
29444 (mouse_face_face_id, term_gpm, pos_x, pos_y)
29445 (last_mouse_x, last_mouse_y): New variables.
29446 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
29447 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
29448 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
29449 (Fterm_close_connection): New functions.
29450 (term_init): Initialise mouse_face_window.
29451
294522007-05-19 Chong Yidong <cyd@stupidchicken.com>
29453
29454 * xdisp.c (redisplay_window): If first window line is a
29455 continuation line, recompute the new window start instead of
29456 recentering.
29457
294582007-05-18 Glenn Morris <rgm@gnu.org>
29459
29460 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
29461 Suggested by Alfred M. Szmidt <ams@gnu.org>.
29462
294632007-05-17 Glenn Morris <rgm@gnu.org>
29464
29465 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
29466
294672007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29468
29469 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
29470 dead key repeat and up events.
29471
294722007-05-14 Chong Yidong <cyd@stupidchicken.com>
29473
29474 * image.c (pbm_load): Check image size for monochrome pbm.
29475
294762007-05-13 Chong Yidong <cyd@stupidchicken.com>
29477
29478 * xterm.c (XTread_socket): Revert last change.
29479
294802007-05-12 Chong Yidong <cyd@stupidchicken.com>
29481
29482 * image.c (pbm_load): Correctly check image size for greyscale pbm.
29483
29484 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
29485
294862007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
29487
29488 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
29489 mixup (YAILOM).
29490
294912007-05-07 Andreas Schwab <schwab@suse.de>
29492
29493 * keymap.c (Flookup_key): Fix typo in last change.
29494
294952007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
29496
29497 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
29498 mapping for unibyte strings.
29499
295002007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29501
29502 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
29503 (Fx_popup_dialog) [MAC_OSX]: Likewise.
29504
295052007-04-29 Richard Stallman <rms@gnu.org>
29506
29507 * insdel.c (replace_range): For undo, record insertion first.
29508
295092007-04-29 Andreas Schwab <schwab@suse.de>
29510
29511 * lisp.h (VECSIZE): Use OFFSETOF.
29512
295132007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29514
29515 * xdisp.c (try_window_reusing_current_matrix): Fix number of
29516 disabled lines.
29517
295182007-04-28 Richard Stallman <rms@gnu.org>
29519
29520 * lread.c (read_escape): In a string, \s is always space.
29521
295222007-04-27 Jan Djärv <jan.h.d@swipnet.se>
29523
29524 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
29525
29526 * gtkutil.c (xg_update_menubar, create_menus): Create empty
29527 submenu for menu bar items.
29528
29529See ChangeLog.10 for earlier changes.
29530
29531;; Local Variables:
29532;; coding: utf-8
aac0c6e3
MR
29533;; End:
29534
e9bffc61
GM
29535 Copyright (C) 2007, 2008, 2009, 2010, 2011
29536 Free Software Foundation, Inc.
aac0c6e3
MR
29537
29538 This file is part of GNU Emacs.
29539
29540 GNU Emacs is free software: you can redistribute it and/or modify
29541 it under the terms of the GNU General Public License as published by
29542 the Free Software Foundation, either version 3 of the License, or
29543 (at your option) any later version.
29544
29545 GNU Emacs is distributed in the hope that it will be useful,
29546 but WITHOUT ANY WARRANTY; without even the implied warranty of
29547 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29548 GNU General Public License for more details.
29549
29550 You should have received a copy of the GNU General Public License
29551 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.