Fix int/EMACS_INT use in buffer.c.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e6d4aefa
EZ
12010-09-24 Eli Zaretskii <eliz@gnu.org>
2
145582a0
EZ
3 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5 length.
6 (advance_to_char_boundary, Fset_buffer_multibyte)
7 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
8 (overlay_touches_p, record_overlay_string, overlay_strings)
9 (recenter_overlay_lists, fix_start_end_in_overlays)
10 (modify_overlay, Fmove_overlay, report_overlay_modification)
11 (evaporate_overlays): Use EMACS_INT for buffer positions.
12
13 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
14 prototypes.
15
446470a9
EZ
16 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
17 positions.
18
e6d4aefa
EZ
19 * fns.c (Fcompare_strings, Fstring_lessp, concat)
20 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
21 (Fsubstring_no_properties, substring_both, Ffillarray)
22 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
23 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
24 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
25 (Fmd5): Use EMACS_INT for buffer and string positions and length
26 variables and arguments.
27
28 * lisp.h (substring_both): Adjust prototype.
29
eb652396
JB
302010-09-24 Juanma Barranquero <lekktu@gmail.com>
31
32 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
33 * w32fns.c (clipboard_sequence_fn): Don't declare.
34 (globals_of_w32fns): Don't initialize it.
35
266a86bd 362010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
37
38 * syntax.c (back_comment): Detect the case where a 1-char comment
39 starter is also the 2nd char of a 2-char comment ender.
40
266a86bd 412010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
42
43 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
44
40283062
LMI
452010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
46
faf8b5bc
LMI
47 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
48 unwind_protect more than 2GB worth of functions.
49
50 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
51
40283062
LMI
52 * lisp.h: Have oblookup take EMACS_INT to allow interning big
53 string and avoid compiler warnings.
54 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
55 all users.
56
57 * lread.c (oblookup): EMACS_INT/int cleanup.
58
59 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
60
fe3537c3
EZ
612010-09-23 Eli Zaretskii <eliz@gnu.org>
62
63 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
64
65 * lisp.h (clip_to_bounds): Adjust prototype.
66
67 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
68
0350982f
LMI
692010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
70
84c9ce05
LMI
71 * lisp.h: doprnt.c EMACS_INT/int cleanup.
72
73 * doprnt.c (doprnt): EMACS_INT/int cleanup.
74
75 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
76 cleanup.
77
0350982f
LMI
78 * lisp.h: Change the definition of all marker.c functions that
79 take and return buffer stuff to be EMACS_INT instead of int.
80
81 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
82 (buf_charpos_to_bytepos, bytepos_to_charpos)
83 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
84 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
85 for all buffer positions.
86
c50bd0d2
CY
872010-09-23 Chong Yidong <cyd@stupidchicken.com>
88
89 * intervals.c (traverse_intervals, rotate_right, rotate_left)
90 (split_interval_right, find_interval, next_interval)
91 (delete_node, delete_interval, interval_deletion_adjustment)
92 (adjust_intervals_for_deletion, merge_interval_right)
93 (merge_interval_left, graft_intervals_into_buffer)
94 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
95
96 * intervals.h (traverse_intervals): Update prototype.
97
14162469
EZ
982010-09-23 Eli Zaretskii <eliz@gnu.org>
99
c098fdb8
EZ
100 * indent.c (compute_motion): Use EMACS_INT for arguments to
101 region_cache_forward.
102
103 * region-cache.c (struct boundary, struct region_cache): Use
104 EMACS_INT for positions.
105 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
106 (delete_cache_boundaries, set_cache_region)
107 (invalidate_region_cache, know_region_cache)
108 (region_cache_forward, region_cache_backward, pp_cache): Use
109 EMACS_INT for buffer positions.
110
111 * region-cache.h (know_region_cache, invalidate_region_cache)
112 (region_cache_forward, region_cache_backward): Adjust prototypes.
113
114 * search.c (string_match_1, fast_c_string_match_ignore_case)
115 (looking_at_1, scan_buffer, scan_newline)
116 (find_next_newline_no_quit, find_before_next_newline)
117 (search_command, trivial_regexp_p, search_buffer, simple_search)
118 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
119 and string positions and length.
120
caefdbe7
EZ
121 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
122 (find_before_next_newline): Adjust prototypes.
c098fdb8 123
29cdc13e
EZ
124 * editfns.c (transpose_markers, update_buffer_properties)
125 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
126 (get_pos_property, Fconstrain_to_field)
127 (Fline_beginning_position, Fline_end_position, Fprevious_char)
128 (Fchar_after, Fchar_before, Finsert_char)
129 (Finsert_buffer_substring, Fcompare_buffer_substrings)
130 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
131 EMACS_INT for buffer and string position variables.
c098fdb8 132 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
133
134 * lisp.h (clip_to_bounds): Adjust prototype.
135
e79123aa
EZ
136 * intervals.c (traverse_intervals, rotate_right, rotate_left)
137 (balance_an_interval, split_interval_right, split_interval_left)
138 (find_interval, next_interval, update_interval)
139 (adjust_intervals_for_insertion, delete_node, delete_interval)
140 (interval_deletion_adjustment, adjust_intervals_for_deletion)
141 (offset_intervals, merge_interval_right, merge_interval_left)
142 (graft_intervals_into_buffer, adjust_for_invis_intang)
143 (move_if_not_intangible, get_local_map, copy_intervals)
144 (copy_intervals_to_string, compare_string_intervals)
145 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 146 and for interval tree size.
e79123aa
EZ
147
148 * intervals.h (traverse_intervals, split_interval_right)
149 (split_interval_left, find_interval, offset_intervals)
150 (graft_intervals_into_buffer, copy_intervals)
151 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
152 (update_interval): Adjust prototypes.
153
579c18d0
EZ
154 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
155 Use EMACS_INT for buffer position variables and arguments.
156
157 * composite.c (get_composition_id, find_composition)
158 (run_composition_function, compose_text)
159 (composition_gstring_width, autocmp_chars)
160 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
161 for buffer positions and string length variables and arguments.
162
163 * composite.h (get_composition_id, find_composition, compose_text)
164 (composition_gstring_width): Adjust prototypes.
165
166 * editfns.c (Fformat): Use EMACS_INT for string size variables.
167
168 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
169 EMACS_INT for string positions.
170
171 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
172 position arguments.
173
174 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
175
176 * character.c (parse_str_as_multibyte, str_as_multibyte)
177 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
178 (string_count_byte8, string_escape_byte8, c_string_width)
179 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
180 EMACS_INT for string length variables and arguments.
14162469
EZ
181
182 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
183 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
184 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
185 prototypes.
186
579c18d0
EZ
187 * font.c (font_intern_prop): Use EMACS_INT for string length
188 variables.
189
190 * font.c (font_intern_prop): Use EMACS_INT for string length
191 variables.
192
14162469
EZ
193 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
194 variables.
195
196 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
197 (Fmake_string): Protect against too large strings.
198 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
199 (live_misc_p): Use ptrdiff_t instead of int for pointer
200 differences.
201 (string_bytes, check_sblock, check_string_free_list)
202 (allocate_string_data, compact_small_strings, Fmake_string)
203 (Fmake_bool_vector, make_string, make_unibyte_string)
204 (make_multibyte_string, make_string_from_bytes)
205 (make_specified_string_string, Fmake_list, Fmake_vector): Use
206 EMACS_INT for string length variables and arguments.
207 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
208 (Fpurecopy): Use EMACS_INT for string size.
209 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
210 for vector size.
211
212 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
213 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
214 (make_pure_string, string_bytes, check_point_in_composition):
215 Adjust prototypes.
14162469 216
c8a66ab8
EZ
2172010-09-22 Eli Zaretskii <eliz@gnu.org>
218
219 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
220 (check_translation): Use EMACS_INT for buffer positions and
221 length.
222
223 * undo.c (record_marker_adjustment, record_delete)
224 (record_change, record_point, record_insert)
225 (record_property_change, Fprimitive_undo): Use EMACS_INT for
226 buffer positions.
227
228 * lisp.h (record_marker_adjustment, record_delete)
229 (record_change, record_point, record_insert)
230 (record_property_change, Fprimitive_undo): Adjust prototypes.
231
38c54d9d
JB
2322010-09-22 Juanma Barranquero <lekktu@gmail.com>
233 Eli Zaretskii <eliz@gnu.org>
234
235 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
236
413d18e7
EZ
2372010-09-22 Eli Zaretskii <eliz@gnu.org>
238
239 * minibuf.c (Fminibuffer_contents)
240 (Fminibuffer_contents_no_properties)
241 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
242 positions.
243
244 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
245 mark.
246
247 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
248 (allocate_string_data): Accept EMACS_INT for string length.
249
250 * editfns.c (Ffield_string, Ffield_string_no_properties)
251 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
252 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
253 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
254 (Ffield_end): Use EMACS_INT for buffer positions.
255
256 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
257 point with mark.
258
259 * lisp.h (allocate_string_data, make_uninit_string)
260 (make_uninit_multibyte_string, make_buffer_string)
261 (make_buffer_string_both): Adjust prototypes.
262
4b9832a6
CY
2632010-09-22 Chong Yidong <cyd@stupidchicken.com>
264
265 * xml.c: Switch to GNU indentation.
266 (make_dom): Change parse tree format to match xml.el.
267 (Fxml_parse_html_string_internal): Rename from html-parse-string.
268 (Fxml_parse_string_internal): Rename from xml-parse-string.
269
86282aab
KH
2702010-09-22 Kenichi Handa <handa@m17n.org>
271
272 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
273 only if we are not at a composition.
274 (set_iterator_to_next): Give it->end_charpos to
275 composition_compute_stop_pos.
276 (set_iterator_to_next, next_element_from_buffer): Likewise.
277
278 * dispnew.c (buffer_posn_from_coords): Fix position when the
279 current display element is a grapheme cluster in bidi-reordered
280 region.
281
840b985a
AR
2822010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
283
284 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
285 the regions may overlap.
286
5bc88f4b
JB
2872010-09-21 Juanma Barranquero <lekktu@gmail.com>
288
289 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
290
92bc9a36
DN
2912010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
292
d19e096e
DN
293 * emacs.c: Do not include sys/ioctl.h, not needed.
294
92bc9a36
DN
295 * doprnt.c: Do not include stdlib.h, config.h does it.
296 Move #include before macro definition.
297
15f844ac
DN
2982010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
299
48e24408
DN
300 * Makefile.in (temacs): Link using $(CC) not $(LD).
301 (LD_FIRSTFLAG): Define using autoconf.
302 (LD): Remove.
303
65539506
DN
304 Remove HAVE_TERMIOS definitions.
305 * s/usg5-4-common.h (HAVE_TERMIOS):
306 * s/template.h (HAVE_TERMIOS):
307 * s/gnu-linux.h (HAVE_TERMIOS):
308 * s/darwin.h (HAVE_TERMIOS):
309 * s/cygwin.h (HAVE_TERMIOS):
310 * s/bsd-common.h (HAVE_TERMIOS):
311 * s/aix4-2.h (HAVE_TERMIOS):
312 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
313 defined on all non-MS platforms.
314 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
315
15f844ac
DN
316 * xterm.c (xt_action_hook): Use const.
317
7d701334
JB
3182010-09-20 Juanma Barranquero <lekktu@gmail.com>
319
320 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
321 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
322 (gethostname) [!HAVE_SOCKETS]: Remove.
323 (SOCK_REPLACE_HANDLE): Remove macro.
324 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
325 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
326 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
327 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
328
f3ec267a
EZ
3292010-09-18 Eli Zaretskii <eliz@gnu.org>
330
331 * deps.mk (xml.o): Add dependencies.
332
93acd23d
JB
333 * xdisp.c (Fcurrent_bidi_paragraph_direction):
334 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
335
336 * bidi.c (bidi_paragraph_init): Accept an additional argument
337 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
338 search back until a paragraph with a strong directional character
339 is found, and use that to determine paragraph's base direction.
340
341 * dispextern.h (bidi_paragraph_init): Update prototype.
342
69e847be
EZ
3432010-09-17 Eli Zaretskii <eliz@gnu.org>
344
345 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
346 of w32api >= 3.15. (Bug#6989)
347
283357a7
LMI
3482010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
349
350 * process.c (wait_reading_process_output): Don't message about
351 accept-process-output unless the time limit really is zero.
352
4ddb20d6
SM
3532010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
354
355 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
356 int/Lisp_Object mixup).
357
e24ad6dd
J
3582010-09-17 Jan Djärv <jan.h.d@swipnet.se>
359
360 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
361 not HELP.
362
fb0cf781
J
3632010-09-17 Stephen Berman <stephen.berman@gmx.net>
364
365 * frame.c (Ftool_bar_pixel_width): New function to expose tool
366 bar's pixel width to Lisp (Bug#7048).
367
4ddb20d6
SM
3682010-09-14 Juanma Barranquero <lekktu@gmail.com>
369
370 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 371
318a04c6
J
3722010-09-17 Jan Djärv <jan.h.d@swipnet.se>
373
374 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
375 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
376
78a21772
KH
3772010-09-17 Kenichi Handa <handa@m17n.org>
378
379 * ftfont.c (ftfont_check_otf): Fix previous change.
380
fa3f6039
KH
3812010-09-14 Kenichi Handa <handa@m17n.org>
382
383 * ftfont.c (ftfont_check_otf): Fix the case of checking just
384 existence of GSUB or GPOS.
385
2b5491fa
JB
3862010-09-14 Juanma Barranquero <lekktu@gmail.com>
387
388 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
389
c97c655f
LMI
3902010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
391
2b5491fa 392 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
393 what it does.
394 (parse_string): Return nil when the document can't be parsed.
395
6664fc59 3962010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
397
398 * xterm.c (get_current_vm_state): New function.
399 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
400 want_fullscreen so set_wm_state calls are few (Bug#7013).
401 (x_handle_net_wm_state): Move code to get_current_vm_state and
402 call that function.
403
6664fc59 4042010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
405
406 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
407
6664fc59 4082010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
409
410 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
411 we may use designation or locking-shift.
412
6664fc59 4132010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
414
415 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
416 sequence when the source is multibyte.
417
1da70e99
AS
4182010-09-14 Andreas Schwab <schwab@linux-m68k.org>
419
6664fc59
JB
420 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
421 Don't make first argument optional. Doc fix.
1da70e99 422
26632d8d
LMI
4232010-09-14 Leo <sdl.web@gmail.com> (tiny change)
424
425 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
426 parameters for the doc string.
427
21fa8e37
LMI
4282010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
429
430 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
431
5616cc54
SM
4322010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
433
434 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
435 (syms_of_fns): Don't defsubr Sy_or_n_p.
436 * lisp.h: Don't declare Fy_or_n_p.
437 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
438
381408e2
LMI
4392010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
440
441 * xml.c (Fxml_parse_buffer): New function to parse XML files.
442
4432010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
444
445 * xml.c: New file.
446 (Fhtml_parse_buffer): New function to interface to the libxml2
447 html parsing function.
448
733946e7
JB
4492010-09-05 Juanma Barranquero <lekktu@gmail.com>
450
451 * biditype.h: Regenerate.
452
7574650a
AS
4532010-09-04 Andreas Schwab <schwab@linux-m68k.org>
454
455 * nsimage.m (ns_load_image): Check argument types.
456
457 * image.c: Remove all uses of gcpro.
458 (xpm_load): Check all lisp types.
459 (pbm_load): Likewise.
460 (png_load): Likewise.
461 (jpeg_load): Likewise.
462 (tiff_load): Likewise.
463 (gif_load): Likewise.
464 (imagemagick_load_image): Likewise.
465 (imagemagick_load): Likewise.
466 (svg_load): Likewise.
467 (gs_load): Likewise.
468
6e6b8e25
EZ
4692010-09-04 Eli Zaretskii <eliz@gnu.org>
470
471 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
472 try to reorder grapheme clusters, since LGSTRING should always
473 hold them in the logical order.
474 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
475 return glyph codes in the logical order.
476
dbfe4532
AS
4772010-09-04 Andreas Schwab <schwab@linux-m68k.org>
478
479 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 480 (imagemagick_load_image): Fix type mismatch.
5e5992c2 481 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 482
6d7cc563
JD
4832010-09-02 Jan Djärv <jan.h.d@swipnet.se>
484
485 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
486
487 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
488
489 * xselect.c: Remove declaration of cut-buffer objects and functions.
490 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
491 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
492 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
493 (Fx_rotate_cut_buffers_internal): Remove.
494 (syms_of_xselect): Remove defsubr of above.
495 Remove intern of QCUT_BUFFERn.
496
8f4e9110
SM
4972010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
498
499 * cmds.c (Vblink_paren_function): Remove.
500 (internal_self_insert): Make it insert N chars at a time.
501 Don't call blink-paren-function.
502 (Fself_insert_command): Adjust accordingly.
503 (syms_of_cmds): Don't declare blink-paren-function.
504
d419e1d9
KH
5052010-08-31 Kenichi Handa <handa@m17n.org>
506
507 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
508 characters.
509
510 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
511 (produce_glyphs): Don't set it->char_to_display here.
512 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
513 (produce_special_glyphs): Set temp_it.char_to_display before
514 calling produce_glyphs.
515
516 * xdisp.c (get_next_display_element): Set it->char_to_display
517 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
518 characters.
519 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
520 calling PRODUCE_GLYPHS.
521 (append_space_for_newline): Save and store it->char_to_display.
522 Set it->char_to_display before calling PRODUCE_GLYPHS.
523 (extend_face_to_end_of_line): Set it->char_to_display before
524 calling PRODUCE_GLYPHS.
525 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
526 character to its byte value.
527 (get_char_glyph_code): New function.
528 (produce_stretch_glyph): Set it2.char_to_display too before
529 calling x_produce_glyphs.
530 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
531 non-ASCII characters. Don't set it->char_to_display here.
532 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 533 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 534
b819f760
SM
5352010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
536
537 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
538
07fa68a7
CY
5392010-08-31 Chong Yidong <cyd@stupidchicken.com>
540
541 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
542
cd196f12
SM
5432010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
544
545 * marker.c (Fcopy_marker): Make the first arg optional.
546
49a752bb
KH
5472010-08-30 Kenichi Handa <handa@m17n.org>
548
549 * composite.c (composition_update_it): Fix computing of
550 cmp_it->width.
551
769ae9e1
KH
5522010-08-29 Kenichi Handa <handa@m17n.org>
553
9e69cb05 554 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 555 corresponding bytes.
9e69cb05 556
4520b858
J
5572010-08-29 Jan Djärv <jan.h.d@swipnet.se>
558
559 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
560
fe50eb41
KH
5612010-08-26 Kenichi Handa <handa@m17n.org>
562
563 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
564 on calling composition_compute_stop_pos.
565
f6aa6ec6
KH
5662010-08-25 Kenichi Handa <handa@m17n.org>
567
9dfdbc0a
KH
568 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
569 :otf.
570
f6aa6ec6
KH
571 * composite.c (composition_compute_stop_pos): Don't break
572 composition at PT.
573 (composition_reseat_it): Likewise. Fix calculation of character
574 position starting a composition.
575 (Fcomposition_get_gstring): Don't limit the number of components
576 for automatic composition.
577
ff94e32c
KH
5782010-08-25 Kenichi Handa <handa@m17n.org>
579
580 * composite.c (composition_compute_stop_pos): In forward search,
581 pay attention to the possibility that some character after ENDPOS
582 will be composed with charactrs before ENDPOS.
583
1c409d0b
CY
5842010-08-24 Chong Yidong <cyd@stupidchicken.com>
585
586 * keyboard.c (command_loop_1): Don't clobber primary selection
587 during handle-switch-frame (Bug#6872).
588
0c372655
MA
5892010-08-23 Michael Albinus <michael.albinus@gmx.de>
590
591 * dbusbind.c: Accept UNIX domain sockets as bus address.
592 (Fdbus_close_bus): New function.
593 (Vdbus_registered_buses): New variable.
594 (xd_initialize): Implement string as bus address.
595 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
596 (Fdbus_get_unique_name, Fdbus_call_method)
597 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
598 (Fdbus_method_error_internal, Fdbus_send_signal)
599 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
600 check. This is done in xd_initialize_bus. Adapt doc string, if
601 necessary.
602 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
603 Vdbus_registered_buses.
604 (Vdbus_registered_objects_table): Create hash.
605
7133b7ee
JL
6062010-08-22 Juri Linkov <juri@jurta.org>
607
608 * keyboard.c (Fexecute_extended_command): Move reading a command name
609 with `completing-read' to a new Elisp function `read-extended-command'.
610 Call it to read a command to `function' (bug#5364, bug#5214).
611
198a7a97
CY
6122010-08-22 Chong Yidong <cyd@stupidchicken.com>
613
614 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
615
b0126eac 6162010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
617
618 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
619 instead of SAFE_ALLOCA.
620
b0126eac 6212010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
622
623 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
624 (Bug#6214).
625
b0126eac 6262010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
627
628 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
629
b0126eac
CY
6302010-08-22 Jan Djärv <jan.h.d@swipnet.se>
631
632 * doc.c (Fsnarf_documentation): Initialize skip_file before
633 build-files test.
634
692f3ddc 6352010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 636
692f3ddc
JB
637 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
638 New definitions.
b0126eac
CY
639 (HAVE_TERMIO): Remove.
640
5f2f0bc1
EZ
6412010-08-22 Eli Zaretskii <eliz@gnu.org>
642
b613941b
EZ
643 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
644
a583bbef
EZ
645 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
646 for w32.
647
648 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
649 it's done in nt/config.nt.
650
651 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
652
5f2f0bc1
EZ
653 * unexcoff.c (report_error, make_hdr, write_segment)
654 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
655 Convert argument lists and prototypes to ANSI C.
656 (make_hdr, write_segment): Remove unused variables.
657 (unexec): Remove commented-out line. Initialize `new' to shut up
658 compiler warnings.
659
a7ebc409
DN
6602010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
661
662 Simplify termio code.
663 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
664 HAVE_TERMIO code is obsolete.
665 Replace HAVE_TERMIOS conditionals with !DOS_NT.
666 * systty.h: Do not define HAVE_TCATTR.
667 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
668 Do not define EMACS_HAVE_TTY_PGRP. Only define
669 EMACS_GET_TTY_PGRP for !DOS_NT.
670 * sysdep.c: Include sysselect.h unconditionally. Do not include
671 sys/ioctl.h and termios.h, systty.h does it. Use
672 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
673 (init_baud_rate): Remove HAVE_TERMIO code.
674 (child_setup_tty): Remove HAVE_TERMIO code.
675 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
676 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
677 (new_ltchars, new_tchars): Remove, unused.
678 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
679 code. Remove special casing for __mips__, it was a no-op. Remove
680 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
681 (init_sys_modes): Remove HPUX special case.
682 * process.c: Include stdlib.h unconditionally. Do not include
683 fcntl.h, systty.h does it. Remove conditional code for
684 HAVE_SERIAL, it is always true.
685 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
686 always true when SIGNALS_VIA_CHARACTERS is true.
687 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
688 !WINDOWSNT means HAVE_TERMIOS.
689 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
690 conditional, which is true for all HAVE_TERMIOS systems.
691 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
692 instead of HAVE_TERMIOS.
693 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
694 EMACS_HAVE_TTY_PGRP.
695 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
696 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
697 anyway.
698
40629f17
EZ
6992010-08-21 Eli Zaretskii <eliz@gnu.org>
700
701 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
702 mirroring pixel positions.
703
d931da8c
DN
7042010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
705
b5c76d0c
DN
706 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
707 write only.
708 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
709 malloc_sbrk_used, nothing uses them.
710
74815588
DN
711 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
712 defined, unconditionally defined in lisp.h.
713
f5817d1c
DN
714 * term.c: Do not include <termios.h>, systty.h does it.
715
d931da8c
DN
716 * s/unixware.h (HAVE_TCATTR):
717 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
718 systty.h defines it when HAVE_TERMIOS is defined.
719
ff2de6d2 7202010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 721
b43c883c 722 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 723 terminals: add one-character offset for R2L lines.
b43c883c 724
491a1546
EZ
725 * emacs.c <emacs_version>: Add a comment regarding
726 msdos/mainmake.v2's dependency on the syntax of this declaration.
727
2396cbba
EZ
7282010-08-20 Eli Zaretskii <eliz@gnu.org>
729
730 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
731 position for R2L lines by mirroring the pixel position wrt the
732 text are box. Improve commentary.
733
7df6150a
AS
7342010-08-20 Andreas Schwab <schwab@linux-m68k.org>
735
736 * image.c (imagemagick_clear_image): Remove debugging output.
737
a2e5caf7
SM
7382010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
739
740 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
741 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
742 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
743 self-insert-face.
744 (syms_of_cmds): Initialize the new vars.
745
20d60baf
JR
7462010-08-19 Jason Rumney <jasonr@gnu.org>
747
cc477da7
JR
748 * w32menu.c (set_frame_menubar): Remove call to undefined function.
749
20d60baf
JR
750 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
751
2c0ac867
J
7522010-08-19 Jan Djärv <jan.h.d@swipnet.se>
753
754 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
755
93352106
EZ
7562010-08-18 Eli Zaretskii <eliz@gnu.org>
757
758 * xterm.c (x_draw_bar_cursor):
759 * w32term.c (x_draw_bar_cursor): If the character under cursor is
760 R2L, draw the bar cursor on its right rather than on its left.
761
c785836d
SM
7622010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
763
0193499f
SM
764 * eval.c (Fdefmacro): Only obey one declaration.
765
c785836d
SM
766 * casefiddle.c (casify_region): Setup gl_state.
767
9cb728a5
J
7682010-08-18 Jan Djärv <jan.h.d@swipnet.se>
769
770 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
771
e1e18511
J
7722010-08-18 Jan Djärv <jan.h.d@swipnet.se>
773
774 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
775
64cb6c78
J
7762010-08-18 David De La Harpe Golden <david@harpegolden.net>
777
778 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
779 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
780 QPRIMARY => NXPrimaryPboard.
781 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
782 NXPrimaryPboard => QPRIMARY.
783 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
784 NXSecondaryPboard = SecondarySelection.
785 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
786
0c9b8993
GM
7872010-08-18 Joakim Verona <joakim@verona.se>
788
789 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
790 defined:
791 (imagemagick_image_p): New function to test for ImageMagic image.
792 (imagemagick_load): New function to load ImageMagick image.
793 (imagemagick_load_image): New function, helper for imagemagick_load.
794 (imagemagick-types): New function.
795 (Qimagemagick): New Lisp_object.
796 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 797
c3554f68
SM
7982010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
799
800 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
801 is a string.
802
1ff2e434
J
8032010-08-17 Jan Djärv <jan.h.d@swipnet.se>
804
805 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
806 x_set_tool_bar_position handler.
807
0cc56427
EZ
8082010-08-17 Eli Zaretskii <eliz@gnu.org>
809
810 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
811 x_set_tool_bar_position handler, needed to support changes from
812 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
813
e45a249b
JD
8142010-08-16 Jan Djärv <jan.h.d@swipnet.se>
815
921242c6
J
816 * nsselect.m: include keyboard.h for QPRIMARY, remove its
817 declaration (Bug#6863).
573d150b 818 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 819
e45a249b
JD
820 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
821
822 * keyboard.h (QPRIMARY): Declare (Bug#6864).
823
7c23dd44
CY
8242010-08-16 Chong Yidong <cyd@stupidchicken.com>
825
826 * keyboard.c (command_loop_1): Avoid setting selection twice,
827 since it's done in deactivate-mark as well.
828 (Vselect_active_regions): Change default to t. Replace `lazy'
829 with non-default value `only', meaning only set PRIMARY for
830 temporarily active regions.
831
832 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
833 select-active-regions.
834
0005830c
J
8352010-08-15 Jan Djärv <jan.h.d@swipnet.se>
836
837 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
838 isn't a string.
839
603dfc72
AS
8402010-08-15 Andreas Schwab <schwab@linux-m68k.org>
841
842 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
843
c25ce9d0
J
8442010-08-15 Jan Djärv <jan.h.d@swipnet.se>
845
c3554f68
SM
846 * keyboard.c (parse_tool_bar_item): malloc buf.
847 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
848 new_lbl (Bug#6855).
c25ce9d0 849
5872c762
EZ
8502010-08-14 Eli Zaretskii <eliz@gnu.org>
851
b236615c
EZ
852 * xterm.c (x_draw_stretch_glyph_string):
853 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
854 the cursor on the right edge of the stretch glyph.
855
c3554f68
SM
856 * xdisp.c (window_box_right_offset, window_box_right):
857 Fix commentary.
b236615c 858
5872c762
EZ
859 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
860 direction when point is inside a run of whitespace characters.
861
862 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
863
e66f9a1b
JR
8642010-08-14 Jason Rumney <jasonr@gnu.org>
865
866 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
867
79d6f59e
CY
8682010-08-14 Chong Yidong <cyd@stupidchicken.com>
869
870 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
871
1c9b4129
JR
8722010-08-13 Jason Rumney <jasonr@gnu.org>
873
874 * w32menu.c (simple_dialog_show): Use unicode message box if available.
875 (MessageBoxW_Proc): New function typedef.
876 (unicode-message-box): New function pointer.
877 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
878
2b4e6277
J
8792010-08-13 Jan Djärv <jan.h.d@swipnet.se>
880
881 * frame.h (Qtool_bar_position): Declare.
882
883 * xfns.c (Fx_create_frame): Call x_default_parameter for
884 Qtool_bar_position.
885
94c97d85
EZ
8862010-08-13 Eli Zaretskii <eliz@gnu.org>
887
8ee81892
EZ
888 * unexcoff.c: Remove the parts used when "emacs" is not defined.
889 (report_error, report_error_1): Ditto.
890 (write_segment): Remove "#if 0" unused code.
891 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
892 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
893 (start_of_text): Remove unused function (was used only if NO_REMAP
894 was NOT defined).
895
891ef8f7
EZ
896 * msdos.c (IT_set_face): Fix format string to match argument
897 types.
898 (IT_write_glyphs, IT_note_mode_line_highlight)
899 (IT_set_frame_parameters): Remove unused variables.
900 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
901 (IT_set_terminal_modes): Disambiguate expression in if clause.
902 (Fmsdos_remember_default_colors): Return Qnil.
903 (IT_set_frame_parameters): Add parens to disambiguate boolean
904 expression for logging the cursor type to termscript.
905 (keyboard_layout_list, keypad_translate_map)
906 (grey_key_translate_map): Add braces in inner initializers.
907 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
908 (dos_rawgetc): Remove unused label.
909 (XMenuActivate): Add braces to remove ambiguous `else'.
910 (dos_ttraw): Always return a value.
911 (spawnve): Declare.
912 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
913
914 * dosfns.h (x_set_title): Declare.
915
916 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
917 Remove unused variables.
918
919 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
920 variables.
921 (init_dosfns): Declare get_lim_data.
922 (system_process_attributes): Declare Fget_internal_run_time.
923
38e41e0e
EZ
924 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
925 list to be consistent with menu.h.
926
94c97d85
EZ
927 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
928 warnings due to mixing of "char *" and "const char *".
929
c5683ceb
SM
9302010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
931
932 Introduce a new comment style "c" flag.
933 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
934 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
935 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
936 (syntax_prefix_flag_p): New function.
937 (Fstring_to_syntax): Understand new "c" flag.
938 (Finternal_describe_syntax_value): Recognize new flag; use the
939 SYNTAX_FLAGS_* macros.
940 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
941 comment style to accomodate the new styles.
942 (back_comment, forw_comment, Fforward_comment, scan_lists)
943 (scan_sexps_forward): Update code to obey the new comment style flag.
944
945 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
946
947 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
948
7aee76f4
J
9492010-08-11 Jan Djärv <jan.h.d@swipnet.se>
950
3a46642b
J
951 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
952 first.
94dff98f 953 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
954
955 * gtkutil.h (xg_check_special_colors): Declare.
956
957 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
958 (xg_create_frame_widgets): Connect theme name changes to
959 style_changed_cb.
960
42ca4633
J
961 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
962 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
963 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 964 string literal. file is const char*.
42ca4633
J
965
966 * xsmfns.c (NOSPLASH_OPT): Change to char[].
967 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
968 props. Free them at the end.
969
970 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
971
c5683ceb
SM
972 * xrdb.c (get_system_app): Make path const and use char *p for
973 non-const char.
42ca4633
J
974
975 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 976 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
977 char *.
978 (button_names): Is const char *.
979 (xdialog_show): error_name and pane_string is const.
980
981 * process.h (synch_process_death): Is const char*.
982
983 * w32menu.c (w32_menu_show):
984 * nsmenu.m (ns_menu_show): error parameter is const char **.
985
986 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
987 is const char **.
988
989 * menu.c (Fx_popup_menu): error_name is const.
990
991 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
992 with unsigned char and XtPointer with void *.
993
994 * gtkutil.h: Replace widget_value with struct _widget_value.
995 (enum button_type, struct _widget_value): Remove and use the one from
996 keyboard.h.
997
998 * gtkutil.c (get_utf8_string): Always return an allocated string.
999 Parameter is const.
1000 (create_dialog, xg_create_one_menuitem, create_menus)
1001 (xg_item_label_same_p, xg_update_menu_item): Free result from
1002 get_utf8_string.
1003 (xg_separator_p, xg_item_label_same_p): label is const.
1004
1005 * font.h (font_open_by_name): Make name const.
1006
1007 * font.c (font_open_by_name): Make name const.
1008
1009 * floatfns.c (matherr): Use a const char* variable for x->name.
1010
1011 * emacs.c (main): Pass char[] to putenv instead of literal.
1012
1013 * callproc.c (synch_process_death): Make const.
1014 (Fcall_process): Make signame const.
1015
9c5bd55a
J
1016 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1017 (addDisplayItemWithImage): Use const char*.
1018
1019 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1020 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1021
1022 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1023
1024 * keyboard.h (_widget_value): name, value and key are const char*.
1025
7aee76f4
J
1026 * unexmacosx.c (unexec_error): Use const char *.
1027
09d93395
DN
10282010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1029
1030 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1031 (font_parse_name, font_open_by_name):
09d93395 1032 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1033 (font_parse_name, font_open_by_name): Remove const.
09d93395 1034
671d409f
AS
10352010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1036
1037 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1038 definition.
1039
1040 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1041 * m/amdx86-64.h: Likewise.
1042 * m/arm.h: Likewise.
1043 * m/hp800.h: Likewise.
1044 * m/ia64.h: Likewise.
1045 * m/ibmrs6000.h: Likewise.
1046 * m/ibms390.h: Likewise.
1047 * m/intel386.h: Likewise.
1048 * m/iris4d.h: Likewise.
1049 * m/m68k.h: Likewise.
1050 * m/macppc.h: Likewise.
1051 * m/mips.h: Likewise.
1052 * m/sh3.h: Likewise.
1053 * m/sparc.h: Likewise.
1054 * m/template.h: Likewise.
1055 * m/vax.h: Likewise.
1056 * m/xtensa.h: Likewise.
1057 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1058 WORDS_BIG_ENDIAN.
1059 * lisp.h: Likewise.
1060 * md5.c: Likewise.
1061 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1062
8ea90aa3
DN
10632010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1064
1065 Use const char* instead of char*.
1066 Reduce the number of warnings with -Wwrite-strings.
1067 * xrdb.c (get_environ_db, get_system_name):
1068 * unexelf.c (find_section):
1069 * term.c (string_cost, string_cost_one_line, per_line_cost)
1070 (get_named_tty, init_tty):
1071 * sysdep.c (sys_subshell):
1072 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1073 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1074 * search.c (Freplace_match):
1075 * process.c (Fmake_network_process, send_process, init_process):
1076 * lread.c (Fload, init_lread):
1077 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1078 * keyboard.c (parse_tool_bar_item, struct event_head):
1079 * gtkutil.h (xg_get_font_name):
1080 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1081 (make_widget_for_menu_item, make_menu_item, create_menus)
1082 (xg_make_tool_item):
1083 * font.c (parse_matrix, font_parse_name):
1084 * floatfns.c (rounding_driver, float_error_fn_name):
1085 * filelock.c (get_boot_time_1, lock_file_1):
1086 * fileio.c (barf_or_query_if_file_exists, check_writable):
1087 * editfns.c (get_system_name, get_operating_system_release)
1088 (Fencode_time, Fset_time_zone_rule):
1089 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1090 * buffer.c (defvar_per_buffer): Use const.
1091
7815fe19 10922010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1093
692f3ddc 1094 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1095 (struct charset_sort_data): New struct.
1096 (charset_compare): New function.
692f3ddc 1097 (Fsort_charsets): New function.
7a84eee5
KH
1098 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1099
1100 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1101 number in CTEXT extended segment.
1102
7815fe19 11032010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1104
1105 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1106 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1107
7815fe19 11082010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1109
1110 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1111 (Fhash_table_size): Fix typos in docstrings.
1112 (Fmake_hash_table): Doc fix.
1113
7815fe19 11142010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1115
1116 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1117 Doc fix (bug#5625).
1118
7815fe19 11192010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1120
1121 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1122 the MSDOS definition.
1123
1b6d8cf0
DN
11242010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1125
675e2c69
DN
1126 Use const char* instead of char*.
1127 * xterm.c (x_create_toolkit_scroll_bar):
1128 * xfont.c (xfont_list_pattern):
1129 * xfns.c (x_default_scroll_bar_color_parameter)
1130 (xic_create_fontsetname, x_default_font_parameter)
1131 (x_screen_planes):
1132 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1133 (store_mode_line_string, decode_mode_spec, display_string):
1134 * menu.c (digest_single_submenu):
1135 * keymap.h (initial_define_key, initial_define_lispy_key):
1136 * keymap.c (initial_define_key, initial_define_lispy_key):
1137 * image.c (image_error, image_keyword):
1138 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1139 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1140 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1141 (ftfont_list, ftfont_match):
1142 * frame.c (frame_parm_table):
1143 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1144 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1145 (font_add_log, font_deferred_log):
1146 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1147 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1148 (font_add_log, font_deferred_log):
1149 * emacs.c (argmatch):
1150 * dispextern.h (struct it):
1151 * coding.c (ENCODE_DESIGNATION):
1152 * charset.c (define_charset_internal): Use const.
1153
25717ca1
DN
1154 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1155
c5683ceb
SM
1156 * xrdb.c: Remove include guard.
1157 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1158 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1159 realloc->xrealloc instead of using #defines.
1160
efb41e21
EZ
11612010-08-08 Eli Zaretskii <eliz@gnu.org>
1162
cd21226d 1163 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1164 * editfns.c (Fline_beginning_position, Fline_end_position):
1165 State in the doc strings that start and end of line are in the
1166 logical order.
cd21226d 1167
efb41e21
EZ
1168 * xdisp.c (display_line): Move the handling of overlay arrow after
1169 the call to find_row_edges. (Bug#6699)
1170
746812d9
CY
11712010-08-07 Chong Yidong <cyd@stupidchicken.com>
1172
1173 * keyboard.c (command_loop_1):
1174 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1175
9852377f
CY
11762010-08-07 Chong Yidong <cyd@stupidchicken.com>
1177
1178 * insdel.c (prepare_to_modify_buffer): Save active region text to
1179 Vsaved_region_selection.
1180
1181 * xselect.c (QPRIMARY): Move to keyboard.c.
1182
1183 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1184 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1185 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1186
0e9c8657
JB
11872010-08-07 Juanma Barranquero <lekktu@gmail.com>
1188
1189 * alloc.c (lisp_malloc):
1190 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1191 * charset.h (emacs_mule_charset):
1192 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1193 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1194 (bitch_at_user):
1195 * lisp.h (Fcheck_coding_system, Fget_text_property)
1196 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1197 Remove duplicate declarations.
1198
648801d1
DN
11992010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1200
32bc6709
DN
1201 * process.c: Simplify include logic.
1202
3ef1d108
DN
1203 * keyboard.h (quit_char): Add declaration.
1204 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1205 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1206 Add declarations.
3ef1d108
DN
1207 * sysdep.c:
1208 * w32.c: Remove the above declarations.
1209
97ec208f
DN
1210 Remove extern declarations in .c files, .h files have them.
1211 * xterm.c:
1212 * xdisp.c:
97ec208f
DN
1213 * msdos.c:
1214 * image.c:
1215 * gtkutil.c:
1216 * fileio.c:
1217 * eval.c: Remove declarations.
1218
94eed851
DN
1219 * frame.c (frame_params): Make const.
1220
36e053eb
DN
1221 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1222
0e843971
DN
1223 * emacs.c (emacs_copyright, emacs_version): Make static.
1224 (Vinitial_window_system, Vauto_save_list_file_name)
1225 (Vinhibit_redisplay): Remove declarations.
1226 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1227 for AIX.
1228
648801d1
DN
1229 Use const for some arrays and functions.
1230 * xterm.h (xg_set_icon_from_xpm_data):
1231 * xfns.c (xg_set_icon_from_xpm_data):
1232 * term.c (fkeys):
1233 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1234 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1235 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1236 (frame.c frame_parms):
1237 * emacs-icon.h (gnu_xpm_bits):
1238 * callint.c (callint_argfuns): Use const.
1239
8646d999
J
12402010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1241
1242 * sysdep.c: Move include term.h last of includes (Bug#6812).
1243
cb4545ad
EZ
12442010-08-06 Eli Zaretskii <eliz@gnu.org>
1245
1246 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1247
1248 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1249
1250 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1251
da7e2be6
JB
12522010-08-06 Juanma Barranquero <lekktu@gmail.com>
1253
1254 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1255
3d608a86
J
12562010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1257
7908fb60
J
1258 * xterm.h (x_get_focus_frame): Declare.
1259
1260 * keyboard.h (poll_for_input_1): Unconditionally declare.
1261
4094bf36
J
1262 * nsterm.h (x_set_menu_bar_lines): Declare.
1263
1264 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1265
3d608a86
J
1266 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1267
1268 * window.c: Include menu.h.
1269
1270 * unexmacosx.c (print_region_list, print_regions)
1271 (build_region_list, find_emacs_zone_regions)
1272 (unexec_regions_merge, read_load_commands, dump_it)
1273 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1274
1275 * term.c: Check HAVE_SYS_IOCTL_H.
1276
686b968e 1277 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1278
686b968e 1279 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1280
1281 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1282 (ns_ring_bell, ns_defined_color, hide_hourglass)
1283 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1284 Convert to ANSI C prototypes.
1285 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1286 before code.
1287
1288 * nsterm.h : Include sysselect.h.
1289 (x_sync, x_get_focus_frame, x_set_mouse_position)
1290 (x_set_mouse_pixel_position, x_make_frame_visible)
1291 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1292 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1293 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1294 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1295 Declare.
3d608a86
J
1296
1297 * nsmenu.m (popup_activated, name_is_separator)
1298 (syms_of_nsmenu): Convert to ANSI C prototypes.
1299 (runMenuAt): Prototypes and move declarations before code.
1300
1301 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1302
1303 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1304 prototypes.
1305
1306 * nsfns.m (have_menus_p, ns_display_info_for_name)
1307 (x_set_cursor_type, ns_appkit_version_str)
1308 (ns_appkit_version_int, ns_do_applescript)
1309 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1310 (syms_of_nsfns): Convert to ANSI C prototypes.
1311
1312 * menu.h (x_set_menu_bar_line): Declare.
1313 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1314
1315 * lisp.h (fmod_float): Declare.
1316
1317 * image.c (xpm_scan, xpm_make_color_table_v)
1318 (xpm_put_color_table_v, xpm_get_color_table_v)
1319 (xpm_make_color_table_h, xpm_put_color_table_h)
1320 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1321 (xpm_load): Convert to ANSI C prototypes.
1322
1323 * emacs.c: Include nsterm.h if HAVE_NS.
1324
1325 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1326
fce70521
DN
13272010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1328
1329 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1330 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1331 (socket_options): Use const char* for name.
1332
a11889ab
JB
13332010-08-06 Juanma Barranquero <lekktu@gmail.com>
1334
1335 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1336
1337 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1338 Don't declare xmalloc_widget_value and digest_single_submenu.
1339
1340 * w32font.c (Qlatin): Remove declaration.
1341
1342 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1343
c95b508f 1344 * dired.c (compile_pattern): Restore declaration.
a11889ab 1345
6254cdda
DN
13462010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1347
04bab72c
DN
1348 Remove extern declarations in .c files, .h files have them.
1349 * data.c:
1350 * dired.c:
1351 * editfns.c:
1352 * filelock.c:
1353 * fns.c:
1354 * font.c:
1355 * fontset.c:
1356 * frame.c:
1357 * fringe.c:
1358 * ftfont.c:
1359 * gtkutil.c:
1360 * indent.c:
1361 * keyboard.c:
1362 * keymap.c:
1363 * lread.c:
1364 * menu.c:
1365 * print.c:
1366 * search.c:
1367 * sound.c:
1368 * window.c:
1369 * xdisp.c:
1370 * xfaces.c:
1371 * xfns.c:
1372 * xfont.c:
1373 * xftfont.c:
1374 * xmenu.c:
1375 * xterm.c: Remove declarations.
1376
dff94ed5
DN
1377 Cleanup syssignal.h.
1378 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1379 (main_thread): Move down to remove #ifdef.
1380 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1381 Remove conditional definition following unconditional ones.
1382
99f3388e
DN
1383 * lisp.h: Remove HAVE_SHM code, unused.
1384 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1385 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1386 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1387 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1388 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1389 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1390 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1391 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1392 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1393 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1394 (Qwindow_scroll_functions, Vafter_load_alist)
1395 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1396 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1397 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1398 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1399 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1400 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1401 (initial_argv, last_nonmenu_event, load_in_progress)
1402 (noninteractive_need_newline, scroll_margin): Add declarations.
1403
1404 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1405 declarations, menu.h has them.
1406 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1407 (Vinput_method_function, Qinput_method_function)
1408 (Qevent_symbol_element_mask, last_event_timestamp):
1409 * dispextern.h (Voverflow_newline_into_fringe):
1410 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1411 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1412 (syms_of_w32font, syms_of_nsfont):
1413 * fontset.h (find_font_encoding, Qlatin):
1414 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1415 (Vtool_bar_mode, set_frame_menubar):
1416 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1417 * xterm.h (Qx_gtk_map_stock):
1418 * keymap.h (meta_prefix_char): Add declarations.
1419
9f5dd6f2
DN
1420 * term.c: Remove dead code.
1421
6254cdda
DN
1422 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1423 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1424 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1425 which is what was there before BSD_PGRPS was removed.
1426
29cf3e20
EZ
14272010-08-05 Eli Zaretskii <eliz@gnu.org>
1428
1429 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1430
1431 * unexcoff.c: Renamed from unexec.c.
1432
aaa0a19a
SM
14332010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1434
1435 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1436
8d1d9587
JB
14372010-08-03 Johan Bockgård <bojohan@gnu.org>
1438
1439 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1440 (Bug#6744)
8d1d9587 1441
9a747ba6
JD
14422010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1443
4d464ae4
JD
1444 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1445 to TRUE if depth of screen is < 16.
1446
ac01763e
JD
1447 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1448 USE_GTK_TOOLTIP.
e0d62a9b
JB
1449 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1450 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1451 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1452 USE_GTK_TOOLTIP.
1453 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1454
1455 * xterm.h (USE_GTK_TOOLTIP): New define.
1456 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1457
9a747ba6
JD
1458 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1459 to Control-D (Bug#6771).
1460
7b0815ba
JB
14612010-08-02 Juanma Barranquero <lekktu@gmail.com>
1462
1463 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1464 Wording by Drew Adams <drew.adams@oracle.com>.
1465
aa1859f5
J
14662010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1467
1468 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1469 ttip_lbl.
1470
1471 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1472 calling gtk_widget_queue_draw.
1473 (x_free_frame_resources): Call xg_free_frame_widgets.
1474
1475 * xfns.c (x_gtk_use_system_tooltips): New variable.
1476 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1477 new gtkutil tooltip functions to show the tooltip.
1478 (Fx_hide_tip): Call xg_hide_tooltip.
1479 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1480
1481 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1482 (xg_show_tooltip, xg_hide_tooltip): Declare.
1483
1484 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1485 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1486 New functions.
aa1859f5
J
1487 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1488 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1489 Remove code that is commented out.
1490
76417ef4
SM
14912010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1492
1493 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1494
16041401
CY
14952010-07-31 Chong Yidong <cyd@stupidchicken.com>
1496
1497 * xselect.c (x_own_selection): Use list4.
1498
2c09a58f
DN
14992010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1500
1501 * buffer.c (Qwindow): Do not define, already defined in data.c.
1502 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1503
59df9fdd 15042010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1505
59df9fdd
JB
1506 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1507 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1508 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1509 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1510 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1511
1b231651
DN
15122010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1513
1514 Rename s/usg5-4.h -> s/usg5-4-common.h.
1515 * s/usg5-4.h: Rename file to ...
1516 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1517 * s/unixware.h:
1518 * s/sol2-6.h:
1519 * s/irix6-5.h: Update includes accordingly.
1520
bfeabdc3
JD
15212010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1522
2ebf1083
J
1523 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1524
bfeabdc3 1525 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1526 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1527 Remove toolbar_height.
1528 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1529 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1530 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1531 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1532
1533 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1534
1535 * xfns.c (x_set_tool_bar_position): New function.
1536 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1537 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1538 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1539
1540 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1541 and FRAME_TOOLBAR_LEFT_WIDTH.
1542
1543 * gtkutil.h (xg_change_toolbar_position): Declare.
1544
1545 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1546 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1547 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1548 (xg_create_frame_widgets): Create a hobox for placing widgets
1549 vertically. Use gtk_box_pack_start.
1550 (xg_height_or_width_changed): Renamed from xg_height_changed.
1551 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1552 (xg_update_frame_menubar, free_frame_menubar): Change to
1553 xg_height_or_width_changed.
1554 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1555 size correctly. Remove hardcoded 4, instead use handlebox size -
1556 toolbar size.
1557 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1558 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1559 (xg_pack_tool_bar): POS is a new parameter.
1560 Set orientation of tool bar based on pos.
1561 Only make handlebox_widget if NULL.
1562 Check if tool bar goes to vbox or hbox depending on pos.
1563 (xg_update_tool_bar_sizes): New function.
686b968e 1564 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1565 height, call xg_update_tool_bar_sizes instead.
1566 (free_frame_tool_bar): Remove from hbox or vbox depending on
1567 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1568 (xg_change_toolbar_position): New function.
1569
1570 * frame.h (struct frame): Add tool_bar_position.
1571 (Qbottom): Declare.
1572
1573 * frame.c (Qtool_bar_position): New variable.
1574 (make_frame): Set tool_bar_position to Qtop.
1575 (frame_parms): Add tool-bar-position.
1576 (x_report_frame_params): Store tool_bar_position.
1577 (x_set_fringe_width): Reset wm size hint after fringe changes.
1578
26469a38
DN
15792010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1580
1581 Make lisp_time_argument declaration work on all systems.
1582 * lisp.h (lisp_time_argument): Move declaration ...
1583 * systime.h (lisp_time_argument): ... here
1584 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1585
8848b728
JD
15862010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1587
1588 * vm-limit.c (POINTER): Add typedef for it.
1589 (start_of_data): Change return type from POINTER to char *.
1590
1591 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1592 HAVE_WINDOW_SYSTEM.
1593
76fd1ee9
DN
15942010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1595
0441987e
DN
1596 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1597 Remove reference to __osf__, unused.
1598
56a000c7
DN
1599 * mem-limits.h: Remove duplicated includes.
1600 (NULL): Remove definition, unused.
1601 (POINTER): Remove definition.
1602 (start_of_data): Use char* in prototype, as the function
1603 definition does.
1604
e6cba650
DN
1605 Remove extern declarations from .c files, and them to .h files.
1606 * keyboard.h (Qhelp_echo, waiting_for_input)
1607 (input_available_clear_time, ignore_mouse_drag_p)
1608 (Vdouble_click_time, real_this_command, Vthis_original_command):
1609 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1610 (Voverriding_local_map_menu_flag):
1611 * lisp.h (Qinteractive_form, use_file_dialog)
1612 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1613 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1614 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1615 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1616 (Qfunction, debug_on_next_call, Qfield)
1617 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1618 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1619 (Qfile_directory_p, Qinsert_file_contents)
1620 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1621 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1622 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1623 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1624 (Qminibuffer_prompt)
1625 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1626 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1627 (gray_bitmap_bits, xic_create_fontsetname):
1628 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1629
1630 * xsmfns.c (Vuser_login_name):
1631 * xrdb.c (Vdouble_click_time):
1632 * xfaces.c (xic_create_fontsetname):
1633 * w32select.c (waiting_for_input):
1634 * print.c (minibuffer_auto_raise):
1635 * msdos.c (Qhelp_echo):
1636 * macros.c (real_this_command):
1637 * keymap.c (Voverriding_local_map):
1638 * xterm.c (poll_for_input_1, gray_bitmap_width)
1639 (gray_bitmap_height, gray_bitmap_bits;
1640 * xmenu.c ( Voverriding_local_map)
1641 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1642 (use_file_dialog, Xt_app_con):
1643 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1644 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1645 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1646 (Qtool_bar_lines, ignore_mouse_drag_p):
1647 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1648 (Qrear_nonsticky, nconc2):
1649 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1650 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1651 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1652 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1653 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1654 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1655 (gc_in_progress):
1656 * doc.c (Voverriding_local_map, Qremap):
1657 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1658 (Vcompletion_regexp_list):
1659 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1660 (Qcompletion_ignore_case):
1661 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1662 (Vhistory_length, Vthis_original_command, real_this_command)
1663 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1664 * image.c (Qrisky_local_variable):
1665 * fontset.c (QCname):
1666 * fns.c (minibuffer_auto_raise, QCname):
1667 * dispnew.c (char_ins_del_cost):
1668 * composite.c (font_fill_lglyph_metrics):
1669 * cmds.c (Qface, Vtranslation_table_for_input):
1670 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1671 * ccl.c (charset_unicode):
1672 * callproc.c (Vtemporary_file_directory):
1673 * buffer.c (emacs_strerror): Remove extern declarations.
1674
1675 * data.c (Qwindow): Make non-static, used from other files too.
1676 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1677
76fd1ee9
DN
1678 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1679 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1680 * s/usg5-4.h (COFF):
1681 * s/template.h:
1682 * s/msdos.h (COFF, NO_REMAP):
1683 * s/ms-w32.h (NO_REMAP):
1684 * s/hpux10-20.h (NO_REMAP):
1685 * m/sparc.h (SEGMENT_MASK):
1686 * m/m68k.h (NO_REMAP):
1687 * m/intel386.h (SEGMENT_MASK):
1688 * m/arm.h (NO_REMAP):
1689 * m/alpha.h (COFF):
1690 * m/template.h: Remove references to unused defines.
1691
8a52f00a
JD
16922010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1693
1694 * xsettings.c (Ftool_bar_get_system_style): Also check for
1695 Qtext_image_horiz.
1696
1697 * xdisp.c (Qtext_image_horiz): Define.
1698 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1699 to documentation of tool-bar-style.
8a52f00a
JD
1700
1701 * lisp.h (Qtext_image_horiz): Declare.
1702
1703 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1704 style text_image_horiz.
1705
89dc303e
DN
17062010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1707
60799703
DN
1708 * emacs.c (Fkill_emacs): Remove return statement.
1709
37254dc1
DN
1710 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1711 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1712 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1713 local extern declarations.
1714
71c7345a
DN
1715 * xmenu.c: Do not included lwlib.h, not needed.
1716
6ba577cb
DN
1717 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1718
fdb183d6
DN
1719 * process.c: Move definitions earlier to minimize #ifdefs.
1720
1721 * xterm.h (x_get_customization_string, x_load_resources)
1722 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1723 (x_check_errors, x_property_data_to_lisp, defined_color)
1724 (xic_set_xfontset, x_defined_color): Use const.
1725
1726 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1727 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1728
1729 * xselect.c (selection_data_to_lisp_data)
1730 (x_property_data_to_lisp):
1731 * xrdb.c (x_get_string_resource, file_p)
1732 (x_get_customization_string, magic_file_p, search_magic_path)
1733 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1734 (x_get_string_resource): Use const.
1735
1736 * xfns.c: Include xlwmenu.h when USE_LUCID.
1737 (x_defined_color, xic_set_xfontset): Use const.
1738 (Fx_hide_tip): Remove local extern declaration.
1739
1740 * xfaces.c (Qmouse_face): Remove declaration.
1741 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1742 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1743
1744 * xdisp.c (do_mouse_tracking): Remove declaration.
1745 (add_to_log): Use const.
1746
1747 * minibuf.c (Qmouse_face): Remove declaration.
1748
1749 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1750
1751 * keyboard.h (do_mouse_tracking): Add declaration.
1752
1753 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1754 (QCdata, QCtype, Qcenter): Remove declarations.
1755
1756 * frame.c (x_get_resource_string, x_get_string_resource)
1757 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1758 (x_default_parameter): Use const.
1759
1760 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1761 (QCheight, QCsize, QCname): Remove declarations.
1762
1763 * emacs.c (main): Remove local extern declaration.
1764
1765 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1766 declarations.
1767
1768 * dispnew.c: Remove duplicate #include <unistd.h>.
1769 (update_window, update_frame_1, init_display): Remove local extern
1770 declarations.
1771
1772 * dispextern.h (add_to_log): Remove declaration.
1773 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1774 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1775
1776 * dired.c (scmp): Add const.
1777 (directory_files_internal): Remove local extern declaration.
1778
1779 * data.c (Finteractive_form): Use const.
1780
1781 * composite.c (syms_of_composite): Remove local extern declarations.
1782
1783 * charset.c (add_to_log): Remove declaration.
1784
1785 * character.c (strwidth, parse_str_to_multibyte): Add const.
1786
1787 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1788
1789 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1790
89dc303e 1791 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1792 (Lisp_Subr): Make doc and intspec constant.
1793 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1794 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1795 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1796 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1797 (display_arg): Add declarations.
89dc303e 1798
0ed082fe 17992010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1800
1801 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1802
0ed082fe
JB
1803 * window.c (Fwindow_height): Doc fix (bug#6518).
1804
18052010-07-27 Juanma Barranquero <lekktu@gmail.com>
1806
1807 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1808
ccaf0336
DN
18092010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1810
977105dc
DN
1811 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1812 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1813 functions.
1814
f5ada890
DN
1815 * frame.h (Qtty_color_mode): Add declaration.
1816
ccaf0336
DN
1817 * lisp.h (Ftop_level, Fexit_recursive_edit)
1818 (Fabort_recursive_edit): Mark as NO_RETURN.
1819
dfe3c90f
KH
18202010-07-26 Kenichi Handa <handa@m17n.org>
1821
1822 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1823 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1824
7d383292
JB
18252010-07-26 Juanma Barranquero <lekktu@gmail.com>
1826
1827 * lread.c (unreadpure, mapatoms_1): Make static.
1828
da31e629
JB
18292010-07-25 Juanma Barranquero <lekktu@gmail.com>
1830
1831 * terminfo.c (tparam): Fix prototype of tparm.
1832
7bfa6d77
AS
18332010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1834
dcc19aac
AS
1835 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1836 find start of text segment.
1837 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1838 is defined.
1839
7bfa6d77
AS
1840 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1841
63f9a672
KB
18422010-07-25 Ken Brown <kbrown@cornell.edu>
1843
1844 * vm-limit.c (check_memory_limits): Fix previous change;
1845 accidentally reverted an earlier change.
1846
24933075
KB
18472010-07-25 Ken Brown <kbrown@cornell.edu>
1848
1849 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1850 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1851
361358ea
JB
18522010-07-25 Juanma Barranquero <lekktu@gmail.com>
1853
1854 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1855 * dired.c (opendir, readdir): Fix prototypes.
1856 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1857 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1858 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1859 (telldir): Remove declaration.
1860 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1861 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1862 * syssignal.h (strsignal): Fix prototype.
1863 * term.c (tparam): Fix prototype.
1864 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1865 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1866 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1867 and __morecore.
1868 * w32gui.h (XParseGeometry): Fix prototype.
1869 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1870 * w32term.c (my_set_focus): Declare inside #if 0.
1871 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1872 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1873 (drain_message_queue, get_next_msg, post_msg, parse_button)
1874 (ClipboardSequence_Proc): Fix prototypes.
1875 (wait_for_sync): Remove declaration.
1876
630b9592
JB
18772010-07-24 Juanma Barranquero <lekktu@gmail.com>
1878
1879 * w32fns.c (w32_to_x_color): Remove, unused.
1880
6a0d6611
AS
18812010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1882
1883 * lisp.h: Remove leftover P_.
1884
4e8608ff
DN
18852010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1886
1887 * ecrt0.c, unexalpha.c: Remove files, unused.
1888
c8197983
AS
18892010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1890
1891 * cmds.c (internal_self_insert): Make static.
1892 * lisp.h (internal_self_insert): Remove declaration.
1893
97b372d7
JB
18942010-07-23 Juanma Barranquero <lekktu@gmail.com>
1895
33ac0414
JB
1896 * alloc.c (free_float):
1897 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1898 * frame.c (delete_frame_handler):
1899 * ralloc.c (reorder_bloc):
1900 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1901 Remove unused static functions.
1902
94da8397
JB
1903 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1904 it is called only from NS code.
1905
2e6c8532
JB
1906 * w32term.c (my_set_focus): #ifdef away; it is called only from
1907 "#ifdef 0" code.
1908
97b372d7
JB
1909 * w32fns.c (x_edge_detection):
1910 * xfaces.c (may_use_scalable_font_p):
1911 Remove obsolete static declarations.
1912
7c3320d8
JB
19132010-07-20 Juanma Barranquero <lekktu@gmail.com>
1914
1915 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1916 (emacs_blocked_realloc, uninterrupt_malloc):
1917 * fringe.c (w32_reset_fringes):
1918 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1919 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1920 * sound.c (be2hs, do_play_sound):
1921 * vm-limit.c (get_lim_data, ret_lim_data):
1922 * w32term.c (x_free_frame_resources):
1923 * xfaces.c (x_create_gc, x_free_gc):
1924 Convert definitions to standard C.
1925
d5273788
SM
19262010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1927
1928 * eval.c (Feval, Ffuncall): Use the new names.
1929
1930 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1931 (DEFUN): Add braces around the union initialisation and use ## to
1932 specify the right union alternative and avoid a cast.
1933
8d16a259
JB
19342010-07-18 Juanma Barranquero <lekktu@gmail.com>
1935
1936 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1937
3b8eff32
CY
19382010-07-17 Chong Yidong <cyd@stupidchicken.com>
1939
1940 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1941
499322ce
J
19422010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1943
1944 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1945 is related to the menu bar (Bug#6499).
a628ad9d 1946 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1947
f6003da5 19482010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1949
1950 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1951
1952 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1953
1954 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1955 i.e. don't put back ButtonRelease (Bug#6608).
1956
1957 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1958 instead of Window. Call xg_event_is_for_menubar when
1959 USE_GTK (Bug#6499).
1960
1961 * gtkutil.h (xg_event_is_for_menubar): Declare.
1962
1963 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1964
f6003da5 19652010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1966
1967 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1968 when it's the same as the old foreground. (Bug#6609)
1969
23243f29
J
19702010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1971
1972 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1973 widget is non-null (Bug#6645).
1974
2b23d2a6
AS
19752010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1976
01b564ff
AS
1977 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1978 Convert old-style definition.
1979
2b23d2a6
AS
1980 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1981 timestamp argument.
1982
c4affd2c
EZ
19832010-07-15 Eli Zaretskii <eliz@gnu.org>
1984
1985 * fringe.c (update_window_fringes): Restore mistakenly reverted
1986 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1987
cf28cebc
J
19882010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1989
1990 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1991 (SET_SAVED_KEY_EVENT): Remove (not used).
1992 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1993 remove size parameter.
1994 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1995 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1996 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1997 ButtonRelease.
6b2c4bd9
J
1998 (x_set_window_size_1): scroll_bar_actual_width is always
1999 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2000
2001 * xdisp.c (pending_menu_activation): Remove extern declaration.
2002 (prepare_menu_bars): Remove setting of pending_menu_activation.
2003
2004 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2005 (x_activate_menubar): Set popup_activated_flag for Xt also.
2006 Remove setting of pending_menu_activation.
cf28cebc
J
2007 (set_frame_menubar): Remove check of pending_menu_activation.
2008 Declare menubar_size before code. Correct spelling in comment.
2009
f6c1c771
KH
20102010-07-14 Kenichi Handa <handa@m17n.org>
2011
2012 * font.c (font_open_entity): Cancel previous change.
2013 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2014
20477505
EZ
20152010-07-13 Eli Zaretskii <eliz@gnu.org>
2016
77defa9a
EZ
2017 Remove subprocesses #ifdefs.
2018 * process.c <inhibit_sentinels>: Move to the common part.
2019 (Fwaiting_for_user_input_p): Move to the common part; return nil
2020 if async subprocesses aren't supported.
2021 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2022 MS-DOS. Remove "#ifdef subprocesses".
2023 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2024 (gettimeofday): Remove "#ifdef subprocesses".
2025 (wait_without_blocking): Remove function.
2026 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2027 Remove "#ifdef subprocesses".
2028 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2029 compiled on MS-DOS.
2030 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2031 wait_for_termination on MS-DOS.
2032 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2033 initialization of inhibit_sentinels.
2034 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2035 subprocesses" conditional.
2036 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2037 wait_for_termination, since `buffer' cannot be an integer when
2038 async subprocesses are not supported
2039 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2040 for ifdefing away the call to Fprocess_status.
2041
20477505
EZ
2042 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2043 away the entire body of the function.
2044
b3ffc17c
DN
20452010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2046
01faa934
DN
2047 Remove subprocesses #ifdefs from term.c.
2048 * process.c (add_keyboard_wait_descriptor)
2049 (delete_keyboard_wait_descriptor): Move to common section, do
2050 nothing when subprocesses is not defined.
a628ad9d
JB
2051 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2052 Remove subprocesses #ifdefs.
01faa934 2053
b3ffc17c
DN
2054 Convert maybe_fatal to standard C.
2055 * lisp.h (verror): Declare.
2056 * eval.c (verror): New function containing the code from ...
2057 (error): ... this. Call verror.
2058 * term.c (vfatal): New function containing the code from ...
2059 (fatal): ... this. Call vfatal.
2060 (maybe_fatal): Convert to standard C, use variable number of
2061 arguments. Declare as non-return.
2062 (init_tty): Fix maybe_fatal call.
2063
0521f580
DN
20642010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2065
2066 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2067 (_scroll_bar_note_movement): Convert definitions to standard C.
2068 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2069 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2070
ebd15611
DN
20712010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2072
2073 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2074 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2075 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2076 (xaw_jump_callback, xaw_scroll_callback)
2077 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2078 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2079 definitions to standard C.
2080 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2081 (popup_activate_callback, popup_deactivate_callback)
2082 (menu_highlight_callback, menubar_selection_callback)
2083 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2084 (free_frame_menubar, popup_selection_callback, as)
2085 (create_and_show_popup_menu, dialog_selection_callback)
2086 (create_and_show_dialog):
2087 * xfns.c (hack_wm_protocols, x_window):
2088 * xfaces.c (x_update_menu_appearance):
2089 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2090 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2091 (set_frame_size, update_wm_hints, setup_frame_gcs)
2092 (update_various_frame_slots, update_from_various_frame_slots)
2093 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2094 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2095 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2096
de06a2dd
AS
20972010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2098
a628ad9d 2099 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2100
fc549af9
EZ
21012010-07-12 Eli Zaretskii <eliz@gnu.org>
2102
2103 * process.c (setup_process_coding_systems): Move to the part
2104 shared by non-subprocesses systems, and make its body empty when
2105 subprocesses is not defined.
2106 (close_process_descs): Move to the part shared by non-subprocesses
2107 systems.
1408902e
EZ
2108 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2109 ANSI C.
fc549af9 2110
d5a3eaaf
AS
21112010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2112
2113 * editfns.c (transpose_markers): Convert old-style definition.
2114 * emacs.c (abort, shut_down_emacs, fixup_locale)
2115 (synchronize_system_time_locale)
2116 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2117 * floatfns.c (extract_float, matherr, init_floatfns)
2118 (syms_of_floatfns): Likewise.
2119 * fns.c (make_hash_table): Likewise.
2120 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2121 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2122 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2123 (ftfont_variation_glyphs): Likewise.
2124 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2125 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2126 * lread.c (read_filtered_event): Likewise.
2127 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2128 * process.c (wait_reading_process_output): Likewise.
2129 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2130 * search.c (search_buffer, boyer_moore): Likewise.
2131 * syntax.c (scan_sexps_forward): Likewise.
2132 * xdisp.c (try_scrolling): Likewise.
2133 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2134 (face_at_string_position): Likewise.
2135 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2136 * xselect.c (x_get_window_property, receive_incremental_selection)
2137 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2138 Likewise.
2139 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2140
6f704c76
DN
21412010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2142
ded80a25
DN
2143 * callproc.c (child_setup): Remove subprocesses conditional.
2144 Remove code dealing with SET_EMACS_PRIORITY, unused.
2145
49d937f4 2146 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2147 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2148
2149 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2150 (__do_global_dtors, __main): Use void in definition.
2151 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2152 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2153 the only users from ...
2154 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2155 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2156 (HAVE_VOLATILE): Remove, unused.
2157
6f704c76
DN
2158 Convert more function definitions to standard C.
2159 * xdisp.c (window_box_edges, handle_single_display_spec)
2160 (display_string): Convert definition to standard C.
2161 * scroll.c (do_direct_scrolling, scrolling_1):
2162 * dispnew.c (allocate_matrices_for_frame_redisplay)
2163 (mirrored_line_dance):
2164 * coding.c (code_convert_string):
2165 * charset.c (map_charset_chars):
2166 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2167 (Fregister_ccl_program, Fregister_code_conversion_map):
2168 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2169 (head_table): Make static and const.
2170
e6cfa7c3
AS
21712010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2172
2173 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2174 (PROFILING_LDFLAGS): Set from substitution.
2175 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2176 CFLAGS last.
2177
892dd565
KH
21782010-07-12 Kenichi Handa <handa@m17n.org>
2179
6f2cdcd1
KH
2180 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2181 (shortlisp): Likewise.
2182
892dd565
KH
2183 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2184
2185 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2186 of FONT_ENTITY_INDEX.
2187 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2188 property, get the property value dynamically.
2189 (Ffont_put): Accept font-entity and font-object too.
2190 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2191 return value changed.
2192 (syms_of_font): Adjusted for the above change.
2193
ae96d47a
AS
21942010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2195
c8fc18ee
AS
2196 * blockinput.h: Remove obsolete comment.
2197
89887d67
AS
2198 * lisp.h: Include <stddef.h>.
2199 (OFFSETOF): Don't define.
2200 (VECSIZE): Use offsetof instead of OFFSETOF.
2201 (PSEUDOVECSIZE): Likewise.
2202 * process.c (conv_sockaddr_to_lisp): Likewise.
2203 * alloc.c: Don't include <stddef.h>.
2204 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2205
ae96d47a
AS
2206 * process.c: Remove obsolete comment.
2207
635c0aa1
CY
22082010-07-11 Chong Yidong <cyd@stupidchicken.com>
2209
2210 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2211
a64df650
AS
22122010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2213
8966b757
AS
2214 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2215 index, rindex.
2216 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2217 * editfns.c (Fuser_full_name, Fformat): Likewise.
2218 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2219 * fileio.c (Ffile_symlink_p): Likewise.
2220 * filelock.c (current_lock_owner): Likewise.
2221 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2222 * fontset.c (fontset_pattern_regexp): Likewise.
2223 * lread.c (read1): Likewise.
2224 * sysdep.c (init_system_name): Likewise.
2225 * xfns.c (select_visual): Likewise.
2226 * s/hpux10-20.h (index, rindex): Don't define.
2227 * s/ms-w32.h (index): Likewise.
2228 * s/usg5-4.h: Likewise.
2229
cf237e27
AS
2230 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2231
a8fe7202
AS
2232 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2233 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2234 (egetenv): Likewise.
2235 * doprnt.c (doprnt): Likewise.
2236 * editfns.c (set_time_zone_rule, format2): Likewise.
2237 * emacs.c (decode_env_path): Likewise.
2238 * eval.c (signal_error, error): Likewise.
2239 * insdel.c (replace_range_2): Likewise.
2240 * keyboard.c (cmd_error_internal): Likewise.
2241 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2242 * print.c (write_string, write_string_1, print_error_message):
2243 Likewise.
2244 * vm-limit.c (warn_function, memory_warnings): Likewise.
2245 * xdisp.c (message1, message1_nolog, message_with_string)
2246 (vmessage, message, message_nolog): Likewise.
2247 * emacs.c: Remove duplicate declaration.
2248 * keyboard.h: Likewise.
2249 * lisp.h: Update prototypes.
2250
bb8e180f
AS
2251 * eval.c: Fix indentation problem.
2252
83380e65
AS
2253 * keyboard.c: Include "process.h"
2254
a64df650
AS
2255 * eval.c: Remove obsolete noinline declaration.
2256 * fns.c: Likewise.
2257
6a8033e1
KR
22582010-07-11 Ken Raeburn <raeburn@raeburn.org>
2259
2260 * doprnt.c (doprnt): Take a va_list argument instead of count and
2261 pointer.
2262 * eval.c (error): Change to a standard-C variadic function.
2263 * xdisp.c (vmessage): Renamed from message, made static, and
2264 changed to take a va_list argument.
2265 (message): New variadic wrapper.
2266 (message_nolog): Now a variadic function, calling vmessage.
2267 * lisp.h: Include stdarg.h for va_list.
2268 (doprnt, error, message, message_nolog): Decls updated.
2269
462aa963
EZ
22702010-07-11 Eli Zaretskii <eliz@gnu.org>
2271
2272 * process.c (syms_of_process) <delete-exited-processes>: Define
2273 even if !subprocesses.
2274 (delete_exited_processes): Ditto.
2275
2276 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2277 (delete_exited_processes): Don't define.
2278
48104462
CY
22792010-07-10 Chong Yidong <cyd@stupidchicken.com>
2280
2281 * frame.c (make_frame): Initialize menu_bar_lines and
2282 tool_bar_lines members.
2283 (make_initial_frame, make_terminal_frame): Initialize
2284 menu_bar_lines using value of menu-bar-mode.
2285
2286 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2287
f388c88a
EZ
22882010-07-10 Eli Zaretskii <eliz@gnu.org>
2289
2290 * process.c: Reshuffle #include's. Condition some of the global
2291 and static variables on `subprocesses'.
2292 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2293 Leave only one implementation.
2294 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2295 (kill_buffer_processes, Flist_system_processes)
2296 (Fprocess_attributes, init_process, syms_of_process): Unify the
2297 implementations for with subprocesses and without them.
2298
723f5a07
J
22992010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2300
2301 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2302 correct size for Motif.
2303 (free_frame_menubar): Call x_set_window_size to update frame size.
2304
2305 * xfns.c (x_window): Set borderWidth to 0 for pane and
2306 EmacsFrame. Frame size calculation is wrong otherwise.
2307
2536a4b7
MA
23082010-07-09 Michael Albinus <michael.albinus@gmx.de>
2309
2310 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2311 allows to suppress errors when polling in Emacs' main loop.
2312 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2313 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2314 (Fdbus_method_error_internal, Fdbus_send_signal)
2315 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2316 (Fdbus_register_method): Use it. (Bug#6579)
2317
5842a27b
DN
23182010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2319
2320 * alloc.c: Convert DEFUNs to standard C.
2321 * buffer.c:
2322 * bytecode.c:
2323 * callint.c:
2324 * callproc.c:
2325 * casefiddle.c:
2326 * casetab.c:
2327 * category.c:
2328 * character.c:
2329 * charset.c:
2330 * chartab.c:
2331 * cmds.c:
2332 * coding.c:
2333 * composite.c:
2334 * data.c:
2335 * dbusbind.c:
2336 * dired.c:
2337 * dispnew.c:
2338 * doc.c:
2339 * dosfns.c:
2340 * editfns.c:
2341 * emacs.c:
2342 * eval.c:
2343 * fileio.c:
2344 * filelock.c:
2345 * floatfns.c:
2346 * fns.c:
2347 * font.c:
2348 * fontset.c:
2349 * frame.c:
2350 * fringe.c:
2351 * image.c:
2352 * indent.c:
2353 * insdel.c:
2354 * keyboard.c:
2355 * keymap.c:
2356 * lread.c:
2357 * macros.c:
2358 * marker.c:
2359 * menu.c:
2360 * minibuf.c:
2361 * msdos.c:
2362 * nsfns.m:
2363 * nsmenu.m:
2364 * nsselect.m:
2365 * print.c:
2366 * process.c:
2367 * search.c:
2368 * sound.c:
2369 * syntax.c:
2370 * term.c:
2371 * terminal.c:
2372 * textprop.c:
2373 * undo.c:
2374 * w16select.c:
2375 * w32console.c:
2376 * w32fns.c:
2377 * w32font.c:
2378 * w32menu.c:
2379 * w32proc.c:
2380 * w32select.c:
2381 * window.c:
2382 * xdisp.c:
2383 * xfaces.c:
2384 * xfns.c:
2385 * xmenu.c:
2386 * xselect.c:
2387 * xsettings.c:
2388 * xsmfns.c: Likewise.
2389
d568829b
EZ
23902010-07-08 Eli Zaretskii <eliz@gnu.org>
2391
2392 * process.c (kbd_is_on_hold, hold_keyboard_input)
2393 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2394
52214050
J
23952010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2396
2397 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2398 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2399 unless USE_LUCID.
2400
313d9eb2
DN
24012010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2402
a628ad9d
JB
2403 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2404 declaration.
d8825aa3 2405
295d0d8f
DN
2406 Clean up include guards.
2407 * tparam.c: Remove include guards for config.h, string.h and code
2408 that assumes #ifndef emacs.
2409 * termcap.c:
2410 * unexalpha.c:
2411 * sysdep.c:
2412 * filemode.c:
2413 * filelock.c:
2414 * bidi.c: Likewise.
2415
49d9e6b0
DN
2416 Remove prefix-args.c
2417 * prefix-args.c: Remove file.
2418 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2419 * Makefile.in (temacs${EXEEXT}): Remove references to
2420 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2421 (mostlyclean): Remove reference to prefix-args.
2422 (prefix-args): Remove.
2423
313d9eb2
DN
2424 Simplify cstart_of_data, start_of_code and related code.
2425 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2426 (start_of_data): Merge into start_of_data function.
2427 * sysdep.c (start_of_text): Remove. Move simplified versions of
2428 it in the only users: unexaix.c and unexec.c.
2429 (read_input_waiting): Remove local declaration of quit_char.
2430 (start, etext): Remove declarations.
2431 (start_of_data): Merge with the version in mem-limits.h and move
2432 to vm-limits.c.
2433 * vm-limit.c (start_of_data): Merged and simplified version of the
2434 code formerly in mem-limits.h and sysdep.c.
2435 * unexec.c (start): New declaration, moved from sysdep.c.
2436 (start_of_text): Simplified version of the code formerly in sysdep.c.
2437 * unexaix.c (start_of_text): Simplified version of the code
2438 formerly in sysdep.c.
2439 * m/alpha.h (HAVE_TEXT_START): Remove.
2440 (TEXT_START): Move ...
2441 * unexalpha.c (TEXT_START): ... here.
2442 * s/hpux10-20.h (TEXT_START): Remove.
2443 * s/darwin.h (TEXT_START):
2444 * m/mips.h (TEXT_START):
2445 * m/macppc.h (HAVE_TEXT_START):
2446 * m/m68k.h (TEXT_START):
2447 * m/iris4d.h (TEXT_START):
2448 * m/intel386.h (TEXT_START):
2449 * m/ibmrs6000.h (TEXT_START):
2450 * m/ia64.h (HAVE_TEXT_START):
2451 * s/msdos.h (TEXT_START): Likewise.
2452
72af86bd
AS
24532010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2454
2455 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2456 (overrun_check_free, xstrdup, allocate_string)
2457 (allocate_string_data, compact_small_strings, Fmake_string)
2458 (make_unibyte_string, make_multibyte_string)
2459 (make_string_from_bytes, make_specified_string, make_float)
2460 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2461 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2462 memcpy, memmove, memset, memcmp.
2463 * atimer.c (start_atimer, set_alarm): Likewise.
2464 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2465 (mmap_realloc, init_buffer_once): Likewise.
2466 * callint.c (Fcall_interactively): Likewise.
2467 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2468 (getenv_internal_1): Likewise.
2469 * casefiddle.c (casify_object): Likewise.
2470 * ccl.c (ccl_driver): Likewise.
2471 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2472 * charset.c (load_charset_map_from_file)
2473 (load_charset_map_from_file, load_charset_map_from_vector)
2474 (Fdefine_charset_internal): Likewise.
2475 * cm.c (Wcm_clear): Likewise.
2476 * coding.c (decode_eol, decode_coding_object)
2477 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2478 * data.c (Faset): Likewise.
2479 * dired.c (directory_files_internal, file_name_completion_stat):
2480 Likewise.
2481 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2482 (clear_glyph_row, copy_row_except_pointers)
2483 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2484 (save_current_matrix, restore_current_matrix)
2485 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2486 (mirror_line_dance, scrolling_window): Likewise.
2487 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2488 Likewise.
2489 * doprnt.c (doprnt): Likewise.
2490 * editfns.c (Fuser_full_name, make_buffer_string_both)
2491 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2492 * emacs.c (sort_args): Likewise.
2493 * eval.c (Fapply, Ffuncall): Likewise.
2494 * fileio.c (Ffile_name_directory, make_temp_name)
2495 (Fexpand_file_name, search_embedded_absfilename)
2496 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2497 (auto_save_error): Likewise.
2498 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2499 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2500 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2501 (Fmake_hash_table): Likewise.
2502 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2503 * ftfont.c (ftfont_text_extents): Likewise.
2504 * getloadavg.c (getloadavg): Likewise.
2505 * image.c (define_image_type, make_image, make_image_cache)
2506 (x_create_x_image_and_pixmap, xbm_image_p)
2507 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2508 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2509 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2510 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2511 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2512 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2513 Likewise.
2514 * indent.c (scan_for_column, compute_motion): Likewise.
2515 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2516 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2517 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2518 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2519 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2520 (store_user_signal_events, menu_bar_items, tool_bar_items)
2521 (process_tool_bar_item, append_tool_bar_item)
2522 (read_char_minibuf_menu_prompt, read_key_sequence)
2523 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2524 Likewise.
2525 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2526 Likewise.
2527 * lisp.h (STRING_COPYIN): Likewise.
2528 * lread.c (Fload, read1, oblookup): Likewise.
2529 * msdos.c (Frecent_doskeys): Likewise.
2530 * nsfns.m (Fx_create_frame): Likewise.
2531 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2532 Likewise.
2533 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2534 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2535 Likewise.
2536 * nsmenu.m (ns_update_menubar): Likewise.
2537 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2538 * print.c (print_unwind, printchar, strout, print_string)
2539 (print_error_message): Likewise.
2540 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2541 (Fmake_network_process, Fnetwork_interface_list)
2542 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2543 (init_process): Likewise.
2544 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2545 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2546 Likewise.
2547 * scroll.c (do_scrolling, do_direct_scrolling)
2548 (scrolling_max_lines_saved): Likewise.
2549 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2550 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2551 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2552 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2553 (emacs_set_tty): Likewise.
2554 * term.c (encode_terminal_code, calculate_costs)
2555 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2556 Likewise.
2557 * termcap.c (tgetst1, gobble_line): Likewise.
2558 * termhooks.h (EVENT_INIT): Likewise.
2559 * tparam.c (tparam1): Likewise.
2560 * unexalpha.c (unexec): Likewise.
2561 * unexec.c (write_segment): Likewise.
2562 * unexmacosx.c (unexec_write_zero): Likewise.
2563 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2564 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2565 * w32font.c (w32font_list_family, w32font_text_extents)
2566 (w32font_list_internal, w32font_match_internal)
2567 (w32font_open_internal, compute_metrics, Fx_select_font):
2568 Likewise.
2569 * w32menu.c (set_frame_menubar, add_menu_item)
2570 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2571 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2572 * w32uniscribe.c (uniscribe_list_family): Likewise.
2573 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2574 * window.c (make_window, replace_window, set_window_buffer)
2575 (Fsplit_window): Likewise.
2576 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2577 (add_to_log, message3, x_consider_frame_title)
2578 (append_space_for_newline, extend_face_to_end_of_line)
2579 (decode_mode_spec_coding, init_glyph_string): Likewise.
2580 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2581 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2582 (face_attr_equal_p, make_realized_face, make_face_cache)
2583 (free_realized_faces, lookup_named_face, smaller_face)
2584 (face_with_height, lookup_derived_face)
2585 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2586 (Finternal_set_font_selection_order, realize_default_face)
2587 (compute_char_face, face_at_buffer_position)
2588 (face_for_overlay_string, face_at_string_position, merge_faces):
2589 Likewise.
2590 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2591 (Fx_window_property, x_create_tip_frame)
2592 (Fx_backspace_delete_keys_p): Likewise.
2593 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2594 (xfont_text_extents): Likewise.
2595 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2596 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2597 * xselect.c (x_queue_event, x_get_window_property)
2598 (receive_incremental_selection): Likewise.
2599 * xsmfns.c (x_session_check_input): Likewise.
2600 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2601 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2602 Likewise.
2603 * character.h (BCOPY_SHORT): Removed.
2604 * config.in: Regenerate.
2605 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2606 * emacs.c (main) [PROFILING]: Don't declare
2607 dump_opcode_frequencies.
2608 * lisp.h (safe_bcopy): Remove declaration.
2609 (memset) [!HAVE_MEMSET]: Declare.
2610 (memcpy) [!HAVE_MEMCPY]: Likewise.
2611 (memmove) [!HAVE_MEMMOVE]: Likewise.
2612 (memcmp) [!HAVE_MEMCMP]: Likewise.
2613 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2614 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2615 Don't define.
2616 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2617 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2618 (BCOPY_DOWNWARD_SAFE): Don't define.
2619 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2620 (memcpy) [!HAVE_MEMCPY]: Define.
2621 (memmove) [!HAVE_MEMMOVE]: Define.
2622 (memcmp) [!HAVE_MEMCMP]: Define.
2623
cb768704
J
26242010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2625
2626 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2627 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2628 New functions.
cb768704
J
2629 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2630 select on empty input mask.
2631 (init_process): Initialize kbd_is_on_hold to 0.
2632
2633 * process.h (hold_keyboard_input, unhold_keyboard_input)
2634 (kbd_on_hold_p): Declare.
2635
2636 * keyboard.c (input_available_signal): Declare.
2637 (kbd_buffer_nr_stored): New function.
2638 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2639 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2640 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2641 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2642 (tty_read_avail_input): If input is on hold, return.
2643 Don't read more that free slots in kbd_buffer (Bug#6571).
2644
3a8ce822
EZ
26452010-07-07 Eli Zaretskii <eliz@gnu.org>
2646
2647 * msdos.h:
2648 * msdos.c:
2649 * dosfns.c:
2650 * w16select.c: Convert function definitions to ANSI C.
2651
a628ad9d
JB
2652 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2653 Remove unused prototypes.
3a8ce822 2654
cf84bb53
JB
26552010-07-07 Juanma Barranquero <lekktu@gmail.com>
2656
2657 * coding.c, sysdep.c: Convert some more functions to standard C.
2658
1a4990fb
JB
26592010-07-07 Juanma Barranquero <lekktu@gmail.com>
2660
2661 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2662 (encode_coding_object): Use SPECPDL_INDEX.
2663 (syms_of_coding): Use DOS_NT.
2664
c0f2f16b
DN
26652010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2666
48fb6855
DN
2667 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2668
c0f2f16b
DN
2669 Make the function member of Lisp_Subr use standard C prototypes.
2670 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2671 (DECL_ALIGN): Add a cast for the function.
2672 * eval.c (Feval, Ffuncall): Use the proper type for each type
2673 function call.
2674
67aecef9
CY
26752010-07-06 Chong Yidong <cyd@stupidchicken.com>
2676
2677 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2678 fringe face id, so face-remapping-alist works (Bug#6091).
2679
b56ceb92
JB
26802010-07-06 Juanma Barranquero <lekktu@gmail.com>
2681
2682 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2683 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2684 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2685
7af07b96
AS
26862010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2687
2688 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2689 * lisp.h: Declare x_get_keysym_name.
2690 * keyboard.c (modify_event_symbol): Don't declare
2691 x_get_keysym_name here.
2692
69e24e34
DN
26932010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2694
2695 * ecrt0.c: Revert conversion to standard C.
2696
d3da34e0 26972010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2698
2699 * vm-limit.c (memory_warnings):
2700 * keyboard.c (modify_event_symbol):
2701 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2702 (round2, emacs_rint):
2703 * process.c (send_process, old_sigpipe): Convert function
2704 definitions and declarations to standard C.
2705
27062010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2707
2708 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2709 * xdisp.c: Convert function definitions to standard C.
2710
2711 * cm.c (cmputc): Arg C is now int, not char.
2712 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2713
00be444c
J
27142010-07-05 James Cloos <cloos@jhcloos.com>
2715
2716 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2717
2718 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2719 _NET_WM_ICON_NAME atoms.
2720
2721 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2722 and _NET_WM_ICON_NAME properties, too, matching what is
2723 done in the Gtk+ case.
2724
e4c8d29a
J
27252010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2726
ff919460
J
2727 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2728
e4c8d29a
J
2729 * xsmfns.c (SSDATA): New macro.
2730 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2731 passed to strlen/strcpy/strcat.
2732 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2733 7:th arg to XChangeProperty to (unsigned char *)
2734
2735 * xsettings.c (something_changedCB, parse_settings)
2736 (apply_xft_settings): Reformat prototype.
2737 (something_changedCB, init_gconf): Remove unused variable i.
2738 (read_settings): Remove unused variable long_len.
2739
2740 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2741 (xg_get_image_for_pixmap, create_dialog)
2742 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2743 (menuitem_highlight_callback, make_menu_item)
2744 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2745 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2746 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2747 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2748 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2749 (xg_tool_bar_item_expose_callback): Reformat prototype.
2750 (xg_update_menubar): GList *group => GSList *group.
2751 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2752 before use.
2753 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2754 to GTK_IMAGE (wimage).
2755
dd4c5104
DN
27562010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2757
898b4c5c
DN
2758 * atimer.c: Use "" instead of <> for local includes for
2759 consistency with the rest of the code.
2760
dd4c5104
DN
2761 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2762 * xrdb.c (get_system_name):
2763 * window.c (shrink_windows):
2764 * syntax.c (forw_comment):
2765 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2766 (ins_del_costs):
2767 * mem-limits.h (start_of_data):
2768 * lread.c (readevalloop):
2769 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2770 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2771 * frame.c (x_get_focus_frame):
2772 * floatfns.c (fmod_float):
2773 * fileio.c (choose_write_coding_system):
2774 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2775 (malloc_initialize_hook, sort_args, synchronize_locale):
2776 * doprnt.c (doprnt):
2777 * dired.c (compile_pattern):
2778 * data.c (fmod_float):
2779 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2780 (map_char_table_for_charset):
2781 * charset.c (define_charset_internal):
2782 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2783 to standard C.
2784
9a39b306 27852010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2786 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2787
2788 * lread.c (read1): Fix up last change to not mess up `c'.
2789
e6cb2cbb
JB
27902010-07-04 Juanma Barranquero <lekktu@gmail.com>
2791
2792 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2793
438105ed
JB
27942010-07-04 Juanma Barranquero <lekktu@gmail.com>
2795
2796 Fix prototypes.
2797
e5447b22 2798 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2799 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2800 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2801 arg, as required by internal_condition_case_1.
dcc7404b 2802 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2803 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2804 (analyse_first): Fix "const const".
e5447b22 2805 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2806 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2807 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2808
971de7fb
DN
28092010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2810
2811 * alloc.c: Convert function definitions to standard C.
2812 * atimer.c:
2813 * bidi.c:
2814 * bytecode.c:
2815 * callint.c:
2816 * callproc.c:
2817 * casefiddle.c:
2818 * casetab.c:
2819 * category.c:
2820 * ccl.c:
2821 * character.c:
2822 * charset.c:
2823 * chartab.c:
2824 * cmds.c:
2825 * coding.c:
2826 * composite.c:
2827 * data.c:
2828 * dbusbind.c:
2829 * dired.c:
2830 * dispnew.c:
2831 * doc.c:
2832 * doprnt.c:
2833 * ecrt0.c:
2834 * editfns.c:
2835 * fileio.c:
2836 * filelock.c:
2837 * filemode.c:
2838 * fns.c:
2839 * font.c:
2840 * fontset.c:
2841 * frame.c:
2842 * fringe.c:
2843 * ftfont.c:
2844 * ftxfont.c:
2845 * gtkutil.c:
2846 * indent.c:
2847 * insdel.c:
2848 * intervals.c:
2849 * keymap.c:
2850 * lread.c:
2851 * macros.c:
2852 * marker.c:
2853 * md5.c:
2854 * menu.c:
2855 * minibuf.c:
2856 * prefix-args.c:
2857 * print.c:
2858 * ralloc.c:
2859 * regex.c:
2860 * region-cache.c:
2861 * scroll.c:
2862 * search.c:
2863 * sound.c:
2864 * strftime.c:
2865 * syntax.c:
2866 * sysdep.c:
2867 * termcap.c:
2868 * terminal.c:
2869 * terminfo.c:
2870 * textprop.c:
2871 * tparam.c:
2872 * undo.c:
2873 * unexelf.c:
2874 * window.c:
2875 * xfaces.c:
2876 * xfns.c:
2877 * xfont.c:
2878 * xftfont.c:
2879 * xgselect.c:
2880 * xmenu.c:
2881 * xrdb.c:
2882 * xselect.c:
2883 * xsettings.c:
2884 * xsmfns.c:
2885 * xterm.c: Likewise.
2886
ae492bec
EZ
28872010-07-03 Eli Zaretskii <eliz@gnu.org>
2888
76ea4cc9
EZ
2889 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2890 frames other than the initial one. Fix reversal of colors when
2891 `reverse' is specified in the frame parameters. Call
2892 update_face_from_frame_parameter instead of
2893 internal-set-lisp-face-attribute. Initialize screen colors from
2894 initial_screen_colors[] when f->default_face_done_p is zero,
2895 instead of depending on being called with default-frame-alist as
2896 the alist argument.
2897
2898 * xfaces.c (update_face_from_frame_parameter): Move out of
2899 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2900 with HAVE_WINDOW_SYSTEM.
2901
1e6255ae
EZ
2902 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2903 to menu-bar-mode, if not set in the frame parameters or in
2904 default-frame-alist.
2905
ae492bec
EZ
2906 * w32console.c (sys_tputs): Adjust argument list to prototype in
2907 term.c.
2908
3a35a84c
JB
29092010-07-03 Juanma Barranquero <lekktu@gmail.com>
2910
2911 * lisp.h (memory_warnings): Fix prototype.
2912
2913 * cm.h (evalcost): Fix prototype.
2914
2915 * cm.c (evalcost): Fix arg type.
2916
c532d349
DN
29172010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2918
2919 * term.c (term_clear_mouse_face, Fidentity):
2920 * syssignal.h (signal_handler_t):
2921 * lisp.h (memory_warnings):
2922 * coding.h (preferred_coding_system):
2923 * cm.h (evalcost):
2924 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2925
c0b36d46
EZ
29262010-07-02 Eli Zaretskii <eliz@gnu.org>
2927
2928 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2929 from prototypes.
2930
2931 * msdos.h (load_pixmap): Don't define away.
2932
383e0970
J
29332010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2934
f57e2426
J
2935 * lisp.h:
2936 * atimer.h: Remove define for P_.
2937
2938 * alloc.c: Remove __P and P_ from .c and .m files.
2939 * atimer.c:
2940 * buffer.c:
2941 * callint.c:
2942 * category.c:
2943 * charset.c:
2944 * chartab.c:
2945 * cm.c:
2946 * coding.c:
2947 * composite.c:
2948 * data.c:
2949 * dired.c:
2950 * dispnew.c:
2951 * doc.c:
2952 * editfns.c:
2953 * emacs.c:
2954 * eval.c:
2955 * fileio.c:
2956 * filelock.c:
2957 * fns.c:
2958 * font.c:
2959 * fontset.c:
2960 * frame.c:
2961 * ftfont.c:
2962 * ftxfont.c:
2963 * gmalloc.c:
2964 * gtkutil.c:
2965 * image.c:
2966 * indent.c:
2967 * intervals.c:
2968 * keyboard.c:
2969 * keymap.c:
2970 * lread.c:
2971 * marker.c:
2972 * menu.c:
2973 * minibuf.c:
2974 * print.c:
2975 * process.c:
2976 * scroll.c:
2977 * search.c:
2978 * sound.c:
2979 * strftime.c:
2980 * syntax.c:
2981 * sysdep.c:
2982 * term.c:
2983 * terminal.c:
2984 * textprop.c:
2985 * unexalpha.c:
2986 * w32console.c:
2987 * w32fns.c:
2988 * w32font.c:
2989 * w32menu.c:
2990 * w32term.c:
2991 * w32uniscribe.c:
2992 * window.c:
2993 * xdisp.c:
2994 * xfaces.c:
2995 * xfns.c:
2996 * xfont.c:
2997 * xftfont.c:
2998 * xmenu.c:
2999 * xselect.c:
3000 * xterm.c: Likewise.
3001
383e0970 3002 Remove P_ and __P macros.
f57e2426
J
3003 * atimer.h: Remove P_ and __P macros.
3004 * buffer.h:
383e0970
J
3005 * category.h:
3006 * ccl.h:
3007 * character.h:
3008 * charset.h:
3009 * cm.h:
3010 * coding.h:
3011 * composite.h:
3012 * dispextern.h:
3013 * disptab.h:
9e892c8d 3014 * dosfns.h:
383e0970
J
3015 * font.h:
3016 * fontset.h:
3017 * frame.h:
3018 * gtkutil.h:
3019 * indent.h:
3020 * intervals.h:
3021 * keyboard.h:
3022 * keymap.h:
3023 * lisp.h:
3024 * macros.h:
3025 * md5.h:
3026 * menu.h:
3027 * msdos.h:
3028 * nsterm.h:
3029 * puresize.h:
3030 * region-cache.h:
3031 * syntax.h:
3032 * syssignal.h:
3033 * systime.h:
3034 * termhooks.h:
9e892c8d 3035 * w32font.h:
383e0970
J
3036 * w32term.h:
3037 * widget.h:
3038 * window.h:
3039 * xgselect.h:
3040 * xsettings.h:
3041 * xterm.h: Likewise.
3042
98601119
DN
30432010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3044
d9170db5
DN
3045 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3046
98601119
DN
3047 Cleanup old code.
3048 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3049 * syssignal.h: Remove code for Lynx, not supported anymore.
3050 * vm-limit.c: Remove unused code the depends on emacs not being
3051 defined and NO_LIM_DATA being defined.
3052 * mem-limits.h: Remove dead code.
3053
1f984e12
J
30542010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3055
c49d071a
J
3056 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3057
9d5405ec
J
3058 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3059 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3060
7a18115b
J
3061 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3062 parameters, they are already absolute.
3063
a628ad9d
JB
3064 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3065 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3066
a628ad9d 3067 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3068
a628ad9d
JB
3069 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3070 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3071
a628ad9d
JB
3072 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3073 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3074
c1ef4455
CY
30752010-06-30 Chong Yidong <cyd@stupidchicken.com>
3076
3077 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3078 check default-frame-alist.
3079
ce8f5a9a
AS
30802010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3081
3082 * process.c (create_process): Avoid using invalid file descriptors.
3083
3084 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3085
bf935339
J
30862010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3087
3088 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3089 Improve documentation. Return font regardless of use_system_font.
3090 (syms_of_xsettings): Improve documentation for font-use-system-font.
3091
7c33a057
CY
30922010-07-10 Chong Yidong <cyd@stupidchicken.com>
3093
2ec1b5ee
CY
3094 * xfaces.c (realize_face): Garbage the frame if a face is removed
3095 (Bug#6593).
3096
30972010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3098
3099 * keyboard.c: Remove duplicate <setjmp.h>.
3100 (read_key_sequence): Remove volatile qualifiers.
3101
31022010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3103
3104 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3105 (struct glyph_row): New members left_fringe_offset and
3106 right_fringe_offset.
3107
3108 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3109 specially.
3110 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3111 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3112
3113 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3114 Take account of bitmap offset.
2ec1b5ee
CY
3115 (draw_window_fringes): Take account of window vscroll.
3116 (update_window_fringes): Likewise. Extend top-aligned top indicator
3117 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3118 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3119 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3120
31212010-07-04 Juanma Barranquero <lekktu@gmail.com>
3122
3123 * w32fns.c (Qtooltip): Declare.
3124 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3125
31262010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3127
3128 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3129 grab on just Press (Bug#6499).
3130
31312010-07-02 Chong Yidong <cyd@stupidchicken.com>
3132
3133 * frame.c (Qtooltip): New var.
3134 (delete_frame): Use it. Fix faulty if statement. Don't update
3135 mode line for tooltip frames. Suggested by Martin Rudalics.
3136
3137 * xfns.c (x_create_tip_frame):
3138 * w32fns.c (x_create_tip_frame): Use it.
3139
31402010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3141
3142 * xftfont.c (xftfont_open): Check font width one by one also when
3143 spacing is dual.
3144
3145 * ftfont.c (ftfont_open): Ditto.
3146
6259c2ec
GM
31472010-06-30 Glenn Morris <rgm@gnu.org>
3148
a46007e9
GM
3149 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3150
6259c2ec
GM
3151 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3152
3153 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3154 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3155 * s/darwin.h (SYSTEM_MALLOC):
3156 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3157
5d1d3d04
J
31582010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3159
3160 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3161 (ns_get_screen): Don't assign integer to f.
3162 (Fx_display_color_cells): Declarations before statements.
3163
e547b051
J
31642010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3165
5fc8e5bc
J
3166 * xfns.c (x_default_font_parameter): Remove got_from_system
3167 (Bug#6526).
3168
e547b051
J
3169 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3170 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3171 defines based on what configure finds.
3172
3173 * xterm.c (XTflash): Use gtk_widget_get_window.
3174 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3175 gtk_adjustment_get_page_size.
3176 (handle_one_xevent): Use gtk_widget_get_mapped.
3177 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3178 messages.
3179
3180 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3181
3182 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3183 HAVE_GTK_FILE_SELECTION_NEW.
3184
3185 * gtkutil.c (xg_display_open, xg_display_close): Remove
3186 HAVE_GTK_MULTIDISPLAY, it is always defined.
3187 (xg_display_open): Return type is void.
3188 (gtk_widget_set_has_window)
3189 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3190 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3191 (gtk_adjustment_set_page_increment)
3192 (gtk_adjustment_get_step_increment): #define these if not found
3193 by configure.
3194 (remove_submenu): New define based on Gtk+ version.
3195 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3196 gtk_widget_get_window.
3197 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3198 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3199 (create_dialog): Use gtk_dialog_get_action_area and
3200 gtk_dialog_get_content_area.
3201 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3202 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3203 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3204 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3205 g_object_ref and g_object_unref.
3206 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3207 gtk_widget_get_sensitive.
3208 (xg_update_submenu): Use remove_submenu.
3209 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3210 properties instead to get old x and y position.
3211 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3212 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3213 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3214 (xg_get_tool_bar_widgets): New function.
3215 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3216 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3217 (toolbar_set_orientation): New #define based on if configure
3218 finds gtk_orientable_set_orientation.
3219 (xg_create_tool_bar): Call toolbar_set_orientation.
3220 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3221 instead of gtk_box_pack_start_defaults.
3222
b9229673
CY
32232010-06-28 Chong Yidong <cyd@stupidchicken.com>
3224
3225 * cmds.c (Fdelete_backward_char): Move into Lisp.
3226
bbc803b0
DN
32272010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3228
3229 * s/freebsd.h (BSD4_2): Remove redundant definition.
3230 bsd-common.h defines it already.
3231
6431f2e6
CY
32322010-06-27 Chong Yidong <cyd@stupidchicken.com>
3233
3234 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3235 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3236 tool-bar-mode, which are now set using these X resources at
3237 startup, to determine the defaults (Bug#2249).
3238
3239 * w32fns.c (Fx_create_frame):
3240 * nsfns.m (Fx_create_frame): Likewise.
3241
3242 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3243
8c079ebb
JB
32442010-06-24 Juanma Barranquero <lekktu@gmail.com>
3245
3246 * gtkutil.c (xg_update_scrollbar_pos):
3247 Avoid C99 mid-block variable declaration.
3248
e9b7ab96
JD
32492010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3250
bc869eca
JD
3251 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3252
2b7e356a 3253 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3254
3255 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3256 if height is less than scroll bar min size.
3257 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3258
e9b7ab96
JD
3259 * xfns.c (x_default_font_parameter): Try to open font from system
3260 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3261
a628ad9d 32622010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3263
3264 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3265
70c4cfbb
EZ
32662010-06-20 Eli Zaretskii <eliz@gnu.org>
3267
3268 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3269 most-positive-fixnum, be extra accurate when scrolling window
3270 start, to avoid missing the cursor line.
3271
ad5a12b5
EZ
32722010-06-19 Eli Zaretskii <eliz@gnu.org>
3273
3274 * xdisp.c (try_scrolling): Compute the limit for searching point
3275 in forward scroll from scroll_max, instead of an arbitrary limit
3276 of 10 screen lines. See
3277 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3278 and
3279 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3280 for details.
3281
2a64315a 32822010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3283
3284 * editfns.c (Fbyte_to_string): Pacify compiler.
3285
288cf4e9
SM
32862010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3287
3288 * lread.c (read1): Phase out old-style backquotes a bit more.
3289
6e6e5760
EZ
32902010-06-12 Eli Zaretskii <eliz@gnu.org>
3291
cbc4fd20
EZ
3292 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3293 bidimirror.h.
3294
3295 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3296
317fbf33
EZ
3297 * bidi.c (bidi_initialize): Remove explicit initialization of
3298 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3299 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3300 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3301
3302 * biditype.h: New file.
3303
cbc4fd20
EZ
3304 * bidimirror.h: New file.
3305
6e6e5760
EZ
3306 * window.c (syms_of_window): Doc fix (bug#6409).
3307
4176cba2
RF
33082010-06-12 Romain Francoise <romain@orebokech.com>
3309
3310 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3311 ediff-hook.
3312
cb4bfcb5
GM
33132010-06-10 Glenn Morris <rgm@gnu.org>
3314
64c60c2f
GM
3315 * editfns.c (Fbyte_to_string): Pacify compiler.
3316
cb4bfcb5
GM
3317 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3318
2ec1b5ee
CY
33192010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3320
3321 * alloc.c (Fmake_byte_code): Don't access undefined argument
3322 (Bug#6517).
3323
33242010-06-25 Chong Yidong <cyd@stupidchicken.com>
3325
3326 * xdisp.c (next_element_from_image): Ensure that after-strings are
3327 read the next time we hit handle_stop (Bug#1336).
3328
33292010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3330
3331 * lread.c (read1): Signal error if #s is not followed by paren.
3332
33332010-06-19 Chong Yidong <cyd@stupidchicken.com>
3334
3335 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3336
3337 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3338
33392010-06-15 Glenn Morris <rgm@gnu.org>
3340
3341 * editfns.c (Fbyte_to_string): Pacify compiler.
3342
e454a4a3
SM
33432010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3344
3345 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3346 Check `object's type before accessing its guts.
3347
c1b1acc2
DN
33482010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3349
3350 * s/usg5-4.h: Fix previous change.
3351 Suggested by Lawrence Mitchell <wence@gmx.li>
3352
657d4c0b
AS
33532010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3354
3355 * minibuf.c (Fall_completions): Add more checks.
3356
9b27fd9f
JB
33572010-06-08 Juanma Barranquero <lekktu@gmail.com>
3358
3359 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3360
a99ebb40
DN
33612010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3362
d7c5d87d
DN
3363 * lread.c (X_OK): Remove, unused.
3364
0263a941
DN
3365 * dispnew.c: Remove obsolete comment.
3366
a99ebb40
DN
3367 Remove INCLUDED_FCNTL.
3368 * xterm.c (INCLUDED_FCNTL):
3369 * callproc.c (INCLUDED_FCNTL):
3370 * alloc.c (INCLUDED_FCNTL):
3371 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3372 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3373
13b5221f
MR
33742010-06-07 Martin Rudalics <rudalics@gmx.at>
3375
3376 * window.c (Fselect_window): Move `record_buffer' up to the
3377 beginning of this function, so the buffer gets recorded
3378 even if the selected window does not change.
3379 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3380
5220357f
JB
33812010-06-07 Juanma Barranquero <lekktu@gmail.com>
3382
3383 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3384 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3385
3085237c
DN
33862010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3387
3388 Remove BSTRING related code, all platforms define it.
3389 * s/usg5-4.h (BSTRING): Remove definition.
3390 * s/template.h (BSTRING):
3391 * s/msdos.h (BSTRING):
3392 * s/ms-w32.h (BSTRING):
3393 * s/hpux10-20.h (BSTRING):
3394 * s/gnu-linux.h (BSTRING):
3395 * s/darwin.h (BSTRING):
3396 * s/cygwin.h (BSTRING):
3397 * s/bsd-common.h (BSTRING):
3398 * s/aix4-2.h (BSTRING): Likewise.
3399 * sysdep.c: Remove code depending on BSTRING not being defined.
3400
409f2919
JB
34012010-06-05 Juanma Barranquero <lekktu@gmail.com>
3402
3403 Remove obsolete macro BASE_LEADING_CODE_P.
3404 * character.h (BASE_LEADING_CODE_P): Remove.
3405 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3406 * buffer.c (Fset_buffer_multibyte):
3407 * indent.c (scan_for_column, compute_motion):
3408 * insdel.c (count_combining_before, count_combining_after):
3409 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3410
087fc47a
JB
34112010-06-04 Juanma Barranquero <lekktu@gmail.com>
3412
3413 Turn `directory-sep-char' into a noop.
3414
3415 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3416 (DIRECTORY_SEP): Define unconditionally.
3417
3418 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3419
3420 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3421 call dostounix_filename directly.
3422
3423 * fileio.c (CORRECT_DIR_SEPS): Remove.
3424 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3425 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3426 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3427 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3428
3429 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3430 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3431
0eb7675e
AS
34322010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3433
a628ad9d
JB
3434 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3435 (Bug#6346)
0eb7675e 3436
78edd3b7
JB
34372010-06-03 Juanma Barranquero <lekktu@gmail.com>
3438
3439 * ccl.c (Fccl_program_p): Fix typo in docstring.
3440
eb697db5
DN
34412010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3442
3443 Move UNEXEC definition to autoconf.
3444 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3445 * s/sol2-10.h (UNEXEC):
3446 * s/irix6-5.h (UNEXEC):
3447 * s/hpux10-20.h (UNEXEC):
3448 * s/gnu-linux.h (UNEXEC):
3449 * s/darwin.h (UNEXEC):
3450 * s/cygwin.h (UNEXEC):
3451 * s/bsd-common.h (UNEXEC):
3452 * s/aix4-2.h (UNEXEC):
3453 * m/alpha.h (UNEXEC): Likewise.
3454 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3455
aa3830c4
JB
34562010-06-03 Juanma Barranquero <lekktu@gmail.com>
3457
3458 Remove obsolete pre-unicode2 macros.
3459 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3460 * composite.c (composition_reseat_it):
3461 * data.c (Faset):
3462 * fns.c (Ffillarray):
3463 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3464 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3465
d234d13e
JL
34662010-06-03 Juri Linkov <juri@jurta.org>
3467
3468 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3469 (Fswitch_to_buffer): Remove unused variable `err'.
3470
0d4bcf4d
GM
34712010-06-03 Glenn Morris <rgm@gnu.org>
3472
e23dc1e2
GM
3473 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3474
05b09564
GM
3475 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3476 now that AH_BOTTOM does it.
3477
824e2978
GM
3478 * m/hp800.h (HAVE_ALLOCA):
3479 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3480
0d4bcf4d
GM
3481 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3482 Remove NOT_C_CODE tests, it is always true now.
3483
c55d2abf
DN
34842010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3485
08a494a3
DN
3486 Fix config.h includes.
3487 * xsettings.c:
3488 * xgselect.c:
3489 * nsterm.m:
3490 * nsselect.m:
3491 * nsimage.m:
3492 * nsfont.m:
3493 * nsfns.m:
3494 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3495 other files do.
3496
75934b1d
DN
3497 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3498
9f32a766
DN
3499 * s/sol2-6.h: Remove obsolete comments.
3500
c55d2abf
DN
3501 Remove unnecessary alloca.h includes.
3502 * keymap.c: Do not include alloca.h, config.h does that.
3503 * sysdep.c: Likewise. Do not define fwrite, not used.
3504
06ac62b4
SM
35052010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3506
3507 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3508 the HAVE_TERMIO where it belongs (bug#6149).
3509
1ab8293c
SM
35102010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3511
3512 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3513 of bug#6305).
3514
6dcfd253
EZ
35152010-05-30 Eli Zaretskii <eliz@gnu.org>
3516
3517 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3518 state is always cached (bug#6306).
3519
6d26bbb2
EZ
35202010-05-29 Eli Zaretskii <eliz@gnu.org>
3521
06fa4a23
EZ
3522 Fix cursor motion in bidi-reordered continued lines.
3523 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3524 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3525 over continuation lines in bidi-reordered buffers. Return
3526 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3527 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3528
f5783df3
MA
35292010-05-28 Michael Albinus <michael.albinus@gmx.de>
3530
3531 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3532
7d56b2dd
KH
35332010-05-28 Kenichi Handa <handa@m17n.org>
3534
3535 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3536 Don't sheck SPEC if it is nil.
3537 (font_list_entities): Call font_delete_unmatched if
b925d231 3538 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3539
e58d4ff7
GM
35402010-05-28 Glenn Morris <rgm@gnu.org>
3541
3542 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3543
f1a5d776
CY
35442010-05-27 Chong Yidong <cyd@stupidchicken.com>
3545
3546 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3547 whether to trash.
3548 (internal_delete_file, Frename_file): Callers changed.
3549 (delete_by_moving_to_trash): Doc fix.
3550 (Fdelete_directory_internal): Don't move to trash.
3551
3552 * callproc.c (delete_temp_file):
3553 * buffer.c (Fkill_buffer): Callers changed.
3554
3555 * lisp.h: Update prototype.
3556
f44a59e6
CY
35572010-05-27 Chong Yidong <cyd@stupidchicken.com>
3558
3559 * xdisp.c (redisplay_window): After redisplay, check if point is
3560 still valid before setting it (Bug#6177).
3561
81ac4f35
GM
35622010-05-27 Glenn Morris <rgm@gnu.org>
3563
3564 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3565 Convert comments to Makefile format.
3566
3567 * Makefile.in (bootstrap-clean): No more Makefile.c.
3568
ccd89fb3
GM
35692010-05-26 Glenn Morris <rgm@gnu.org>
3570
90278cb6
GM
3571 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3572 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3573
ccd89fb3
GM
3574 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3575 Remove.
3576 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3577
b7050583
KH
35782010-05-26 Kenichi Handa <handa@m17n.org>
3579
3580 * composite.c (composition_compute_stop_pos): Fix condition for
3581 backward scanning.
3582
e5458003
GM
35832010-05-25 Glenn Morris <rgm@gnu.org>
3584
c345fe90
GM
3585 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3586 Move before TEMACS_LDFLAGS.
3587 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3588 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3589
2e0689ab
GM
3590 * Makefile.in (NOT_C_CODE): No longer define.
3591 (config.h): No longer include.
3592
8009a5e8
GM
3593 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3594 variables it may reference.
3595
e5458003
GM
3596 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3597 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3598
10f72a37
KH
35992010-05-25 Kenichi Handa <handa@m17n.org>
3600
3601 * dispextern.h (struct composition_it): New members rule_idx and
3602 charpos.
3603
3604 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3605 that the character positions of IT point the last character of the
3606 current grapheme cluster.
3607 (next_element_from_composition): Don't change character positions
3608 of IT.
3609 (append_composite_glyph): Set glyph->charpos to
3610 it->cmp_it.charpos.
3611
3612 * composite.c (autocmp_chars): Change the first argument to RULE,
3613 and try composition with RULE only.
3614 (composition_compute_stop_pos): Record the index number of the
3615 composition rule in CMP_IT->rule_idx.
3616 (composition_reseat_it): Call autocmp_chars repeatedly until the
3617 correct rule of the composition is found.
3618 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3619 is at the last character of the current grapheme cluster when
3620 CMP_IT->reversed_p is nonzero.
3621
171eda53 36222010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3623
171eda53
SM
3624 * editfns.c (Fbyte_to_string): New function.
3625
66a9f7f4
SM
36262010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3627
3628 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3629 Suggested by Masatake YAMATO <yamato@redhat.com>.
3630
d8c315d1
EZ
36312010-05-23 Eli Zaretskii <eliz@gnu.org>
3632
171eda53 3633 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3634
f5b416d2 36352010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3636
3637 * s/netbsd.h: If terminfo is found, use it in preference to
3638 termcap. (Bug#6190) [Backport from trunk]
3639
0416466c
EZ
36402010-05-19 Eli Zaretskii <eliz@gnu.org>
3641
11117830 3642 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3643
3644 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3645 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3646 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3647 and maxpos members instead of start.pos and end.pos, respectively.
3648
3649 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3650 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3651 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3652 (try_window_reusing_current_matrix, try_window_id):
3653 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3654 (init_from_display_pos, init_iterator): Use EMACS_INT for
3655 character and byte positions.
66a9f7f4 3656 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3657 arguments for minimum and maximum buffer positions seen by
3658 display_line for this row. Don't use iterator to find the
3659 position following the maximum one; instead, increment the
11117830
EZ
3660 position found by display_line directly. Fix logic; eol_pos
3661 should be tested before the rest. Handle the case of characters
3662 delivered from display vector (bug#6036). Fix tests related to
3663 it->method. Handle the truncated_on_right_p rows.
3664 (RECORD_MAX_MIN_POS): New macro.
3665 (display_line): Use it to record the minimum and maximum buffer
3666 positions for glyphs in the row being assembled. Record the
3667 position of the newline that terminates the line. If word wrap is
3668 in effect, restore minimum and maximum positions seen up to the
3669 wrap point, when iterator returns to it.
3670 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3671 row and cursor not already at point. Restore original pre-bidi
3672 code for unidirectional buffers.
d36fe237
EZ
3673
3674 * dispnew.c (increment_row_positions, check_matrix_invariants):
3675 Increment and check row->start.pos and row->end.pos, in addition
3676 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3677
11117830
EZ
3678 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3679 Display truncated_on_left_p and truncated_on_right_p flags.
3680 Formatting fixes.
3681 (pmtxrows): Display the ordinal number of each row. Don't display
3682 rows beyond the last one.
3683
3684 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3685 it is not copied by bidi_copy_it.
3686
6e83d800
EZ
36872010-05-22 Eli Zaretskii <eliz@gnu.org>
3688
3689 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3690 (Bug#6237)
3691
110683ad
CY
36922010-05-22 Chong Yidong <cyd@stupidchicken.com>
3693
3694 * image.c (Fimage_flush): Rename from image-refresh.
3695
98fe5161
CY
36962010-05-21 Chong Yidong <cyd@stupidchicken.com>
3697
3698 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3699 just one window.
3700
3701 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3702 (clear_image_cache): If the number of cached images is unusually
3703 large, decrease the cache eviction delay (Bug#6230).
3704
e8752c66
GM
37052010-05-21 Glenn Morris <rgm@gnu.org>
3706
66dbf213
GM
3707 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3708 Move these rules to ns.mk.
3709 * ns.mk: New file.
3710
04384b2d
GM
3711 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3712
e8752c66
GM
3713 * Makefile.in (CANNOT_DUMP): New, set by configure.
3714 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3715
2e2bbddb
JL
37162010-05-20 Juri Linkov <juri@jurta.org>
3717
3718 * fileio.c (Fdelete_file): Change interative spec to use
3719 `read-file-name' like in `find-file-read-args' where the default
3720 value is `default-directory' instead of `buffer-file-name'.
3721 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3722
31c4aaf6
KR
37232010-05-20 Kevin Ryde <user42@zip.com.au>
3724
3725 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3726 (Voverriding_terminal_local_map, Vsystem_key_alist)
3727 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3728
9d5cf9b6
GM
37292010-05-20 Glenn Morris <rgm@gnu.org>
3730
3731 * Makefile.in (DEPDIR): New constant.
3732 (DEPFLAGS): Set with configure, not cpp.
3733 (MKDEPDIR): New, set by configure.
3734 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3735 (clean): Use $DEPDIR.
3736 (deps_frag): Include from configure.
3737 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3738 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3739
ead6f8f5
EZ
3740 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3741 reallocation of the cache. (Bug#6210)
3742
7f34aec3
GM
37432010-05-19 Glenn Morris <rgm@gnu.org>
3744
d494e8f2
GM
3745 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3746
c1d0dcfd
GM
3747 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3748 (GNULIB_VAR): Remove.
3749 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3750
3751 * m/ibms390x.h (LINKER):
3752 * m/macppc.h (LINKER) [GNU_LINUX]:
3753 * s/aix4-2.h (ORDINARY_LINK):
3754 * s/cygwin.h (LINKER):
3755 * s/darwin.h (ORDINARY_LINK):
3756 * s/gnu.h (ORDINARY_LINK):
3757 * s/netbsd.h (LINKER):
3758 * s/usg5-4.h (ORDINARY_LINK):
3759 Move to configure.
3760
7f34aec3
GM
3761 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3762
754790b6
CY
37632010-05-18 Chong Yidong <cyd@stupidchicken.com>
3764
3765 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3766 prevent stack overflow if number of arguments is too large
3767 (Bug#6214).
3768
161e44d1
JB
37692010-05-18 Juanma Barranquero <lekktu@gmail.com>
3770
3771 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3772
be4ff9da
GM
37732010-05-18 Glenn Morris <rgm@gnu.org>
3774
9539dc5d
GM
3775 * s/gnu-linux.h: Combine two conditionals.
3776
3777 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3778 $(POST_ALLOC_OBJ).
3779
40dc6bf4
GM
3780 * Makefile.in (RALLOC_OBJ): New, set by configure.
3781 (rallocobj): Replace with the previous variable.
3782 (otherobj): Use $RALLOC_OBJ.
3783
3784 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3785 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3786
be4ff9da
GM
3787 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3788 (gmallocobj, vmlimitobj): Replace with previous two variables.
3789 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3790
16455a85
GM
37912010-05-17 Glenn Morris <rgm@gnu.org>
3792
3793 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3794 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3795
5fdb7468
GM
37962010-05-16 Glenn Morris <rgm@gnu.org>
3797
7ca1f3f9
GM
3798 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3799
7541dad5
GM
3800 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3801
da53fab9
GM
3802 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3803 trailing "/".
3804
b02a6645
GM
3805 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3806 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3807
8877ca0f
GM
3808 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3809 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3810 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3811 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3812 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3813
5fdb7468
GM
3814 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3815 Remove ${STARTFLAGS}, nothing ever sets it.
3816
95adb4b1
DN
38172010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3818
3819 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3820
676b6304
GM
38212010-05-16 Glenn Morris <rgm@gnu.org>
3822
9beab9ce
GM
3823 * Makefile.in (LIBX_BASE): Always define.
3824
8a95f0e7
GM
3825 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3826
676b6304
GM
3827 * Makefile.in (LIBXT): Always define.
3828
6e546d18
GM
38292010-05-15 Glenn Morris <rgm@gnu.org>
3830
4235ca47 3831 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3832
6e546d18
GM
3833 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3834 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3835
8c5ff6dd
KR
38362010-05-15 Ken Raeburn <raeburn@raeburn.org>
3837
560bb7ae 3838 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3839 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3840
8b4eb796
KR
3841 * emacs.c (main): Initialize initial-environment and
3842 process-environment before generating from env, not after.
3843
8c5ff6dd
KR
3844 Handle --version reasonably in CANNOT_DUMP configuration.
3845 * emacs.c (emacs_version, emacs_copyright): New string variables.
3846 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3847 (syms_of_emacs): Defvar them, and initialize them from the C
3848 string variables.
3849 (main): If initialization hasn't been done, print initial version
3850 info from the C strings, instead of starting an interactive session.
3851
dbd3f723
EZ
38522010-05-15 Eli Zaretskii <eliz@gnu.org>
3853
d20e1419
EZ
3854 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3855 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3856 (bidi_paragraph_init): Remove redundant assertion that we are at
3857 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3858
3859 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3860 (syms_of_xdisp): Defsubr it.
3861
d36fe237
EZ
3862 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3863
dbd3f723
EZ
3864 * Makefile.in: Fix MSDOS-related comments.
3865
02be533b
GM
38662010-05-15 Glenn Morris <rgm@gnu.org>
3867
1a82cca9
GM
3868 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3869 (really-lwlib, really-oldXMenu): Always define.
3870 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3871
3df7b338
GM
3872 * Makefile.in: Simplify cpp conditional.
3873
2b5f541b
GM
3874 * Makefile.in (${ns_appdir}): Simplify using umask.
3875
02be533b
GM
3876 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3877
4e2db1fe
SM
38782010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3879
3880 * eval.c (specbind): Remove left-over duplicate test.
3881 Disallow let-binding frame-local vars. Add comment.
3882
4b292a22
EZ
38832010-05-14 Eli Zaretskii <eliz@gnu.org>
3884
2fe72643 3885 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3886 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3887 (bidi_init_it): Call it.
3888 (bidi_cache_iterator_state): Enlarge the cache if needed.
3889
4e2db1fe 3890 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3891 bidi_get_next_char_visually. All callers changed.
3892
82ebc97b
KH
38932010-05-14 Kenichi Handa <handa@m17n.org>
3894
3895 * dispextern.h (struct composition_it): New member reversed_p.
3896
3897 * composite.c (composition_compute_stop_pos): Search backward if
3898 ENDPOS < CHARPOS.
3899 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3900 Set CMP_IT->reversed_p.
b4b6e17e 3901 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3902
4e2db1fe
SM
3903 * xdisp.c (set_iterator_to_next):
3904 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3905 scanning backward. Call composition_compute_stop_pos if scan
3906 direction is changed.
3907 (next_element_from_buffer): Call composition_compute_stop_pos with
3908 negative ENDPOS if we are scanning backward.
3909 (next_element_from_composition): Pay attention to
3910 IT->cmp_it.reversed_p.
3911
0e5d7800
KH
39122010-05-14 Kenichi Handa <handa@m17n.org>
3913
560bb7ae 3914 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3915
cb027b32
GM
39162010-05-14 Glenn Morris <rgm@gnu.org>
3917
177b0288
GM
3918 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3919
fbc00890
GM
3920 * Makefile.in (mktime, X11, register): Move undefs to configure.
3921
f14d1dfd
GM
3922 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3923 (MSDOS_X_OBJ): New variable.
3924 (MSDOS_SUPPORT_REAL): New constant.
3925 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3926 (obj): Use MSDOS_X_OBJ.
3927 (lisp): Use MSDOS_SUPPORT as a variable.
3928
11842bd8
GM
3929 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3930 (GPM_MOUSE_SUPPORT): Now it's a constant.
3931 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3932 not cpp.
3933
489d31a4 3934 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3935 (ns_appresdir): Remove, unused.
e20f1f07 3936
489d31a4
GM
3937 * Makefile.in (SHELL): Move outside cpp section.
3938
cb027b32
GM
3939 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3940
5a903aa9
GM
39412010-05-13 Glenn Morris <rgm@gnu.org>
3942
3369c79f
GM
3943 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3944 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3945
d5e982a6
GM
3946 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3947 HAVE_WINDOW_SYSTEM must be too.
3948
6192e163
GM
3949 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3950 (lisp): Remove WINNT_SUPPORT.
3951
472c5d6b
GM
3952 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3953 Let configure set these variables (to empty) in this case as well.
3954
0116466b
GM
3955 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3956 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3957
5a903aa9
GM
3958 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3959 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3960 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3961 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3962 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3963 the values output by configure.
5a903aa9
GM
3964 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3965
1a0d7c06
GM
39662010-05-12 Glenn Morris <rgm@gnu.org>
3967
b5457f14
GM
3968 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3969 (LINKER_WAS_SPECIFIED): Remove.
3970
1a0d7c06
GM
3971 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3972 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3973 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3974 * s/cygwin.h (LIB_GCC):
3975 * s/freebsd.h (LIB_GCC):
3976 * s/gnu-linux.h (LIB_GCC):
3977 * s/msdos.h (LIB_GCC):
3978 * s/netbsd.h (LIB_GCC):
3979 Move to configure.
3980
3ffd4615 39812010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3982
3983 * ftfont.c: Fix incorrect parentheses of #if condition for
3984 definining M17N_FLT_USE_NEW_FEATURE.
3985
acddf8ae
GM
39862010-05-11 Glenn Morris <rgm@gnu.org>
3987
3988 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3989 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3990
ae5e04fa
EZ
39912010-05-10 Eli Zaretskii <eliz@gnu.org>
3992
3993 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3994 unibyte buffers. See
3995 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3996
7490175b
GM
39972010-05-10 Glenn Morris <rgm@gnu.org>
3998
97efb629
GM
3999 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4000 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4001 (LIBES): Use LIBS_SYSTEM as a variable.
4002 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4003 * s/aix4-2.h (LIBS_SYSTEM):
4004 * s/freebsd.h (LIBS_SYSTEM):
4005 * s/hpux10-20.h (LIBS_SYSTEM):
4006 * s/sol2-6.h (LIBS_SYSTEM):
4007 * s/unixware.h (LIBS_SYSTEM):
4008 Move to configure.
4009
7490175b
GM
4010 * s/aix4-2.h (MAIL_USE_LOCKF):
4011 * s/bsd-common.h (MAIL_USE_FLOCK):
4012 * s/darwin.h (MAIL_USE_FLOCK):
4013 * s/gnu-linux.h (MAIL_USE_FLOCK):
4014 * s/irix6-5.h (MAIL_USE_FLOCK):
4015 * s/template.h (MAIL_USE_FLOCK):
4016 Move to configure.
4017
0235128c 40182010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4019
4020 * Version 23.2 released.
4021
0235128c 40222010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4023
4024 * composite.c (autocmp_chars): Save point as marker before calling
4025 auto-composition-function (Bug#5984).
4026
4027 * lisp.h (restore_point_unwind): Add prototype.
4028
4029 * fileio.c (restore_point_unwind): Remove static attribute.
4030
0235128c 40312010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4032
4033 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4034 new feature of libotf and m17n-flt.
0235128c
SM
4035 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4036 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4037 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4038 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4039 that OUT is NULL. Use OTF_drive_gsub_with_log and
4040 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4041 OTF_drive_gpos.
4042 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4043 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4044 Setup mflt_enable_new_feature and mflt_try_otf.
4045
4721152c
J
40462010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4047
4048 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4049
4050 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4051 box and toolbar (Bug #6139).
4052 (xg_create_tool_bar): Remove comment (Bug #6139).
4053 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4054 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4055
ee0a16cf
JB
40562010-05-08 Juanma Barranquero <lekktu@gmail.com>
4057
4058 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4059 Update dependencies.
4060
96d79611
EZ
40612010-05-08 Eli Zaretskii <eliz@gnu.org>
4062
4063 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4064 R2L lines.
4065
40c17879
GM
40662010-05-08 Glenn Morris <rgm@gnu.org>
4067
7b42b29f
GM
4068 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4069
40c17879
GM
4070 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4071 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4072 (termcapobj): Replace with TERMCAP_OBJ.
4073 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4074 (LIBES): Use LIBS_TERMCAP as a variable.
4075
4076 * s/freebsd.h (osreldate.h): No longer include, since this file
4077 does not use __FreeBSD_version any more.
4078
4079 * s/aix4-2.h (TERMINFO):
4080 * s/cygwin.h (TERMINFO):
4081 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4082 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4083 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4084 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4085 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4086 * s/irix6-5.h (TERMINFO):
4087 * s/netbsd.h (LIBS_TERMCAP):
4088 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4089 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4090 * s/usg5-4.h (TERMINFO):
4091 Move to configure.
4092
94b612ad
SM
40932010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4094
4095 * eval.c (unbind_to): Don't unbind a local binding into the global
4096 binding when the local binding disappeared. Inversely, don't unbind
4097 a global binding into a newly created local binding.
4098 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4099 can specify the frame to use, when applicable. Adjust callers.
4100
15e12598 41012010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4102 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4103
4104 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4105
f724825e
EZ
41062010-05-07 Eli Zaretskii <eliz@gnu.org>
4107
5cba3209
EZ
4108 * w32fns.c: Include w32.h.
4109 (Fw32_shell_execute): Decode the error message before passing it
4110 to `error'. (Bug#6126)
4111
d16bdfc3
EZ
4112 * msdos.c (dos_set_window_size):
4113 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4114 instead of `XSYMBOL (foo)->value'.
4115
59d93e87
EZ
41162010-05-07 Eli Zaretskii <eliz@gnu.org>
4117
9fdec8bc
EZ
4118 Fix the MS-DOS build, broken by autoconfiscation.
4119
4120 * Makefile.in: Don't use Make-style comments past the "start of
4121 cpp stuff" line.
4122 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4123
4124 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4125 edited directly by msdos/sed1v2.inp).
f724825e 4126
2f86b22b
GM
41272010-05-07 Glenn Morris <rgm@gnu.org>
4128
4129 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4130 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4131 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4132 move out of cpp section.
4133 * s/freebsd.h (LD_SWITCH_SYSTEM):
4134 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4135 * s/netbsd.h (LD_SWITCH_SYSTEM):
4136 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4137
49ebbd65
DN
41382010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4139
4140 Define LIB_STANDARD and START_FILES using autoconf.
4141 * s/usg5-4.h (LIB_STANDARD):
4142 * s/netbsd.h (START_FILES):
4143 * s/irix6-5.h (LIB_STANDARD):
4144 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4145 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4146 * s/freebsd.h (START_FILES):
4147 * s/darwin.h (START_FILES):
4148 * s/cygwin.h (START_FILES):
4149 * s/aix4-2.h (LIB_STANDARD):
4150 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4151 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4152 autoconf, not cpp.
4153
d43c06d6
DN
41542010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4155
28823648
DN
4156 Remove NEED_BSDTTY and NEED_UNISTD_H.
4157 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4158 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4159 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4160 <sys/ptyio.h> and <unistd.h>.
4161
aca00430
DN
4162 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4163
d43c06d6
DN
4164 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4165 * s/gnu.h (START_FILES): Remove empty definition.
4166
3e56b11d
JD
41672010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4168
4169 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4170
e3cf0cde
GM
41712010-05-06 Glenn Morris <rgm@gnu.org>
4172
4173 * Makefile.in (CPP, LN_S): Remove unused variables.
4174
774b9a60
SM
41752010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4176
4177 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4178
4ab92842
LM
41792010-05-05 Lawrence Mitchell <wence@gmx.li>
4180
4181 * m/sparc.h: Fix typo in earlier change.
4182
178f2507
SM
41832010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4184
4185 Misc tweaks.
4186 * eval.c (Fdefvaralias): Remove unintended nested if.
4187 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4188
80f00217 41892010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4190
4191 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4192
ef03a4e6
DN
41932010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4194
58eb6cf0
DN
4195 Remove BSD_PGRPS.
4196 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4197 * s/gnu-linux.h (BSD_PGRPS): Remove.
4198 * term.c (dissociate_if_controlling_tty):
4199 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4200 (init_sys_modes, reset_sys_modes):
4201 * emacs.c (main):
4202 * callproc.c (Fcall_process, child_setup): Remove code depending
4203 on BSD_PGRPS.
4204
ef03a4e6
DN
4205 Remove POSIX_SIGNALS.
4206 * s/usg5-4.h (POSIX_SIGNALS):
4207 * s/netbsd.h (POSIX_SIGNALS):
4208 * s/msdos.h (POSIX_SIGNALS):
4209 * s/ms-w32.h (POSIX_SIGNALS):
4210 * s/hpux11.h (POSIX_SIGNALS):
4211 * s/gnu.h (POSIX_SIGNALS):
4212 * s/gnu-linux.h (POSIX_SIGNALS):
4213 * s/freebsd.h (POSIX_SIGNALS):
4214 * s/darwin.h (POSIX_SIGNALS):
4215 * s/cygwin.h (POSIX_SIGNALS):
4216 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4217 * s/unixware.h:
4218 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4219 * process.c (create_process):
4220 * syssignal.h:
4221 * sysdep.c (wait_for_termination, init_signals):
4222 * process.c (create_process):
4223 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4224 remove all code that assumes the contrary.
4225
49628785
GM
42262010-05-04 Glenn Morris <rgm@gnu.org>
4227
27a2cdfc
GM
4228 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4229 variable.
4230 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4231 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4232 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4233 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4234 LD_SWITCH_SYSTEM_tmp.
4235 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4236 New variables, set by configure.
4237
eb21eab5
GM
4238 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4239 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4240 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4241 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4242 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4243
49628785
GM
4244 * s/aix4-2.h (C_SWITCH_SYSTEM):
4245 * m/alpha.h (C_SWITCH_MACHINE):
4246 Move to configure.in.
4247 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4248 New variables, set by configure.
4249 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4250 $c_switch_machine and $c_switch_system.
4251
7dff330b
DN
42522010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4253
4254 * s/hpux10-20.h (LIB_STANDARD): New definition.
4255 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4256 on it, not used anymore.
4257
53967e09
CY
42582010-05-03 Chong Yidong <cyd@stupidchicken.com>
4259
4260 * eval.c (internal_condition_case_n): Rename from
4261 internal_condition_case_2.
4262 (internal_condition_case_2): New function.
4263
4264 * xdisp.c (safe_call): Use internal_condition_case_n.
4265
4266 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4267 (internal_delete_file, Frename_file): Callers changed.
4268
4269 * buffer.c (Fkill_buffer):
4270 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4271
4272 * lisp.h: Update prototypes.
4273
3dee6fdb
GM
42742010-05-03 Glenn Morris <rgm@gnu.org>
4275
4276 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4277 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4278 (LIBXT): Set with configure, not cpp.
4279 (LIBX): Remove.
4280 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4281
a101e0fb
DN
42822010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4283
4284 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4285 The FreeBSD is not needed, the default works, Solaris version is
4286 not needed, and the remaining case is not supported by configure.
4287
f63d0028
JD
42882010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4289
4290 * xsmfns.c (CHDIR_OPT): New define.
4291 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4292 restarting emacs.
4293
4294 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4295 shut_down_emacs.
4296
4297 * emacs.c (USAGE1): Mention --chdir.
4298 (main): Handle --chdir.
4299 (standard_args): Add --chdir.
4300 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4301 #5552).
4302
e4814a9f
DN
43032010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4304
cd03c74a
DN
4305 Remove LD_SWITCH_MACHINE.
4306 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4307 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4308
c3a398a1
DN
4309 Clean up IRIX code.
4310 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4311 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4312
87e7285c
DN
4313 Clean up AIX code.
4314 * m/ibmrs6000.inp: Remove file, unused.
4315 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4316 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4317 definition ...
4318 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4319
80f00217
JB
4320 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4321 unused.
e4814a9f 4322
59ca28de
EZ
43232010-05-01 Eli Zaretskii <eliz@gnu.org>
4324
197daef4
EZ
4325 Emulate POSIX_SIGNALS on MS-Windows.
4326
4327 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4328 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4329
4330 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4331 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4332 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4333
80f00217
JB
4334 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4335 New stubs.
197daef4 4336
af7c7572
EZ
4337 Miscellaneous fixes of bidi display.
4338
59ca28de
EZ
4339 * xdisp.c (find_row_end): New function, refactored from display_line.
4340 (display_line): Use it.
017ea819
EZ
4341 (extend_face_to_end_of_line): In almost-filled rows, extend only
4342 if the row is R2L and not continued.
166e930d 4343 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4344 Preserve overlay and string info in row->end.
166e930d
EZ
4345 (insert_left_trunc_glyphs): Support addition of left truncation
4346 glyphs to R2L rows.
b47e0dcf 4347 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4348 glyph between adjacent windows. Fix a crash when a display string
4349 is continued to the next line. Don't return zero if cursor was
4350 found by `cursor' property of a display string.
b47e0dcf
EZ
4351 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4352 test for that explicitly.
59ca28de 4353
7acac9f4
GM
43542010-05-01 Glenn Morris <rgm@gnu.org>
4355
4356 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4357 for clarity.
4358 (OTHER_OBJ): Remove.
4359 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4360 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4361
45841e65
KK
43622010-05-01 Karel Klíč <kklic@redhat.com>
4363
4364 * fileio.c (Ffile_selinux_context): Context functions may return null.
4365
afc61943
DN
43662010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4367
80f00217 4368 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4369
5a1bb006
GM
43702010-04-30 Glenn Morris <rgm@gnu.org>
4371
4372 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4373 (OTHER_OBJ): Define as a separate variable, for clarity.
4374
210af043
J
43752010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4376
4377 * xsettings.c: include limits.h and update file comment.
4378
0a7df391
GM
43792010-04-30 Glenn Morris <rgm@gnu.org>
4380
d5096f16
GM
4381 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4382 Set with configure, not cpp.
4383 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4384
7eb1ac33
GM
4385 * Makefile.in (mallocobj): Remove.
4386 (otherobj): Simplify using @OTHER_OBJ@.
4387
517d086b
GM
4388 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4389 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4390 Don't bother making nsgui.h dependency platform-specific.
4391
0a7df391
GM
4392 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4393
d6d23852
SM
43942010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4395
d2630aef
SM
4396 * process.c (read_process_output, exec_sentinel): Don't burp if the
4397 sentinel/filter kills the current buffer (bug#6060).
4398
f9dddf52 4399 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4400 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4401 Remove unused var `args'.
4402 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4403 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4404 * doc.c (store_function_docstring): Use XSETCAR.
4405
f1e3642a
GM
44062010-04-28 Glenn Morris <rgm@gnu.org>
4407
faf535f8
GM
4408 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4409 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4410
c40f9449
GM
4411 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4412
658f86ca
GM
4413 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4414 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4415
bc0b5f61
GM
4416 * Makefile.in (FONT_OBJ): New, set by configure.
4417 (FONT_DRIVERS): Use $FONT_OBJ.
4418
294c50a0
GM
4419 * Makefile.in (LIBXMU): Set with configure, not cpp.
4420 * s/aix4-2.h (LIBXMU):
4421 * s/hpux10-20.h (LIBXMU):
4422 Remove definition, now set in configure.
4423
e6ec4e99
GM
4424 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4425
f1e3642a
GM
4426 * m/amdx86-64.h [i386]: Move this test to configure.in.
4427
c6ea2936
GM
44282010-04-27 Glenn Morris <rgm@gnu.org>
4429
8fdac2c3
GM
4430 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4431 * s/unixware.h (NEED_LIBW): Remove definition.
4432
986fb647
GM
4433 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4434 (TOOLKIT_LIBW): New, set by configure.
4435 (@X_TOOLKIT_TYPE@): No longer define it.
4436
c6ea2936
GM
4437 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4438 (MOTIF_LIBW): Set with configure, not cpp.
4439 * s/aix4-2.h (LIB_MOTIF):
4440 * s/gnu-linux.h (LIB_MOTIF):
4441 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4442
aaa36002
DN
44432010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4444
4445 Reduce CPP usage.
4446 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4447 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4448 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4449 definitions and undefs. Inline definitions in the only user.
4450 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4451
b678dd8b
GM
44522010-04-27 Glenn Morris <rgm@gnu.org>
4453
76cda504
GM
4454 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4455 since the defaults (set by the system file) are fine in most cases.
4456 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4457 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4458 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4459 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4460 Remove definitions, since they are set correctly in s/gnu-linux.h.
4461 * s/freebsd.h (START_FILES, LIB_STANDARD):
4462 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4463 * s/hpux10-20.h (START_FILES):
4464 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4465 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4466
b678dd8b
GM
4467 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4468 (MOTIF_LIBW): Use $LIBXP.
4469 (otherobj): Use $WIDGET_OBJ.
4470
9452ded1
DN
44712010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4472
7e10844c
DN
4473 * Makefile.in (LIBS_MACHINE): Remove, unused.
4474
9452ded1
DN
4475 Use autoconf instead of cpp for LIB_MATH.
4476 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4477 * s/cygwin.h (LIB_MATH): Likewise.
4478 * Makefile.in (LIB_MATH): Do not define with cpp.
4479 (LIBES): Use autoconf for LIB_MATH.
4480
fcebfc6a
KH
44812010-04-26 Kenichi Handa <handa@m17n.org>
4482
4483 * composite.c (Ffind_composition_internal): Fix the return value
4484 for an automatic composition.
4485
39e2ad1b
DN
44862010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4487
4488 Remove all NO_ARG_ARRAY uses.
4489 * fns.c (concat2, concat3, nconc2):
4490 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4491 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4492 * m/xtensa.h (NO_ARG_ARRAY):
4493 * m/template.h (NO_ARG_ARRAY):
4494 * m/sparc.h (NO_ARG_ARRAY):
4495 * m/sh3.h (NO_ARG_ARRAY):
4496 * m/mips.h (NO_ARG_ARRAY):
4497 * m/macppc.h (NO_ARG_ARRAY):
4498 * m/iris4d.h (NO_ARG_ARRAY):
4499 * m/intel386.h (NO_ARG_ARRAY):
4500 * m/ibms390x.h (NO_ARG_ARRAY):
4501 * m/ibms390.h (NO_ARG_ARRAY):
4502 * m/ibmrs6000.h (NO_ARG_ARRAY):
4503 * m/ia64.h (NO_ARG_ARRAY):
4504 * m/hp800.h (NO_ARG_ARRAY):
4505 * m/arm.h (NO_ARG_ARRAY):
4506 * m/amdx86-64.h (NO_ARG_ARRAY):
4507 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4508
adf4f59c
EZ
45092010-04-25 Eli Zaretskii <eliz@gnu.org>
4510
6bdf5d65
EZ
4511 * xdisp.c (display_line): Don't assume 2nd call to
4512 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4513 (iterate_out_of_display_property): New function, body from pop_it.
4514 (pop_it): Use it.
adf4f59c 4515
dfbbda83
GM
45162010-04-24 Glenn Morris <rgm@gnu.org>
4517
4518 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4519 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4520 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4521 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4522
2d4018aa
EZ
45232010-04-24 Eli Zaretskii <eliz@gnu.org>
4524
a49884a6
EZ
4525 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4526 use `get_next_display_element' and `set_iterator_to_next' to
4527 advance to the next character, when looking for the character that
4528 begins the next row.
4529
76db6fcc 4530 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4531 definition of "struct Lisp_Symbol".
4532
70eab5c1
GM
45332010-04-24 Glenn Morris <rgm@gnu.org>
4534
4535 * Makefile.in (CRT_DIR): New variable, set by configure.
4536 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4537 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4538
1ad4cc3d
DN
45392010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4540
e769f484
DN
4541 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4542
4196ff33
DN
4543 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4544
879b0ee4
DN
4545 Remove redundant flags.
4546 * s/freebsd.h (C_SWITCH_SYSTEM):
4547 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4548 * s/netbsd.h (C_SWITCH_SYSTEM):
4549 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4550 of these.
4551
03cbbcb8
DN
4552 Simplify m/intel386.h.
4553 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4554 user: ecrt0.c.
4555 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4556 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4557 the only user: s/unixware.h.
4558 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4559 from m/intel386.h.
4560 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4561 moved here from m/intel386.h.
4562
1ad4cc3d
DN
4563 * m/mips.h: Remove #if 0 code.
4564
8785b888
EZ
45652010-04-23 Eli Zaretskii <eliz@gnu.org>
4566
728588cc
EZ
4567 Fix display of composed characters from L2R scripts in bidi buffers.
4568 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4569 After advancing IT past the composition, resync the bidi iterator
4570 with IT's position. (Bug#5977)
4571
a63f80b4
DN
45722010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4573
4574 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4575 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4576
ff5dec5c
SM
45772010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4578
4579 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4580
8785b888
EZ
45812010-04-23 Eli Zaretskii <eliz@gnu.org>
4582
58ccf243 4583 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4584 * xdisp.c (pop_it): When the stack is popped after displaying
4585 from a string, bidi-iterate to exit from the text portion covered
4586 by the `display' property or overlay. (Bug#5988, bug#5920)
4587
feeb1604
DN
45882010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4589
8e324eb6
DN
4590 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4591 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4592
809fcaba
DN
4593 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4594 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4595
ed710380
DN
4596 Simplify STARTFILES definition.
4597 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4598 relying on Makefile.in to define it.
4599 * s/cygwin.h (START_FILES): Likewise.
4600 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4601
feeb1604
DN
4602 Clean up Solaris code.
4603 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4604 (LIB_MOTIF): Remove, configure takes care of this.
4605 (NOT_USING_MOTIF): Remove, unused.
4606 * xrdb.c: Remove #if 0-ed #include.
4607 (SYSV): Remove conditional for old SysV.
4608 * sysdep.c (closedir): Remove conditional code for Solaris,
4609 Solaris has closedir.
4610
a0d0b563
JD
46112010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4612
4613 * xsettings.c (read_and_apply_settings): Check if current_font is
4614 NULL before strcmp (Bug#6001).
4615
56bae7c7
DN
46162010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4617
4618 Clean up HP-UX files.
4619 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4620 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4621 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4622 * s/hpux10-20.h: ... to the only user, here.
4623
372b7a95
EZ
46242010-04-21 Eli Zaretskii <eliz@gnu.org>
4625
4626 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4627 use buffer-local values of paragraph-start and paragraph-separate.
4628 <paragraph_start_re, paragraph_separate_re>: Rename from
4629 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4630 (Bug#5992)
4631
f904c0f9
JD
46322010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4633
4634 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4635 current_tool_bar_style are new.
4636 (store_config_changed_event): Rename from store_font_changed_event.
4637 (XSETTINGS_TOOL_BAR_STYLE): New define.
4638 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4639 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4640 HAVE_XFT.
4641 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4642 store_config_changed_event.
f904c0f9
JD
4643 (parse_settings): Rename from parse_xft_settings. Read
4644 non-xft xsettings outside #ifdef HAVE_XFT.
4645 (read_settings): Renamed from read_xft_settings.
4646 (apply_xft_settings): Take current settings as parameter. Do not
4647 call read_(xft)_settings.
4648 (read_and_apply_settings): New function.
4649 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4650 read_and_apply_settings if there are settings to be read.
4651 (init_xsettings): Renamed from init_xfd_settings.
4652 Call read_and_apply_settings unconditionally.
4653 (xsettings_initialize): Call init_xsettings.
4654 (Ftool_bar_get_system_style): New function.
4655 (syms_of_xsettings): Define Qmonospace_font_name and
4656 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4657 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4658 dynamic-setting.
31a01b90 4659 Move misplaced HAVE_GCONF
f904c0f9
JD
4660
4661 * xsettings.h (Ftool_bar_get_system_style): Declare.
4662
4663 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4664 Qtext, Qboth, Qboth_horiz are new.
4665 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4666 Vtool_bar_style, tool_bar_max_label_size.
4667
4668 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4669
4670 * keyboard.c: QClabel is new.
4671 (parse_tool_bar_item): Take out QClabel from tool bar items.
4672 Try to construct a label if ther is no QClabel.
4673 (syms_of_keyboard): Intern :label as QClabel.
4674
4675 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4676 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4677 New.
4678
4679 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4680 dynamic-setting.el.
4681
4682 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4683 (xg_make_tool_item, xg_show_toolbar_item): New function.
4684 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4685 Call xg_make_tool_item to make a tool bar item.
4686 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4687
4688 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4689 into account for toolbars.
4690
c632dfda
JD
46912010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4692
4693 * data.c (make_blv): Declarations before code (Bug#5993).
4694
10efe302
GM
46952010-04-21 Glenn Morris <rgm@gnu.org>
4696
4697 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4698 Define using autoconf, not cpp.
4699 (LIBXSM): New variable, set by autoconf.
4700 (LIBXT): Use $LIBXSM.
4701
4285ac5a
DN
47022010-04-21 Dan Nicolaescu <local_user@dannlt>
4703
3ec759e7
DN
4704 Remove NOMULTIPLEJOBS, unused.
4705 * s/template.h (NOMULTIPLEJOBS):
4706 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4707
4285ac5a
DN
4708 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4709 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4710 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4711 detects -znocombreloc and passes it to the linker
4712 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4713
2807228d
GM
47142010-04-21 Glenn Morris <rgm@gnu.org>
4715
4716 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4717
574c05e2
KK
47182010-04-21 Karel Klíč <kklic@redhat.com>
4719
4720 * Makefile.in (LIBSELINUX_LIBS): New.
4721 (LIBES): Add $LIBSELINUX_LIBS.
4722 * eval.c, lisp.h (call7): New function.
4723 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4724 (Ffile_selinux_context, Fset_file_selinux_context):
4725 New functions.
4726 (Fcopy_file): New parameter preserve-selinux-context.
4727 (Frename_file): Preserve selinux context when renaming by copy-file.
4728
91eac4bb 47292010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4730 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4731
50426a04
JB
4732 Don't depend on cm.c or termcap.c on Windows, use stubs.
4733 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4734 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4735 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4736 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4737 (sys_tputs, sys_tgetstr): New stubs.
4738 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4739 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4740
938efb77
JB
47412010-04-20 Juanma Barranquero <lekktu@gmail.com>
4742
4743 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4744
b4bf28b7
SM
47452010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4746
8b1e1112
SM
4747 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4748 Just signal a warning rather than an error when inside a let.
4749 (Fmake_variable_frame_local): Add the same test.
4750
933ac235
SM
4751 * font.c (syms_of_font): Make the style table vars read-only.
4752
b4bf28b7
SM
4753 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4754 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4755
4756 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4757
93d68d0c
EZ
47582010-04-20 Eli Zaretskii <eliz@gnu.org>
4759
4760 Fix R2L paragraph display on TTY.
4761
4762 * xdisp.c (unproduce_glyphs): New function.
4763 (display_line): Use it when produced glyphs are discarded from R2L
4764 glyph rows.
4765 (append_composite_glyph): In R2L rows, prepend the glyph rather
4766 than appending it.
4767
4768 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4769 rather than append it. Set up the resolved_level and bidi_type
4770 attributes of the appended glyph.
283ccc18
EZ
4771 (produce_special_glyphs): Mirror the backslash continuation
4772 character in R2L lines.
93d68d0c 4773
283ccc18 4774 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4775
283ccc18
EZ
4776 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4777 append_stretch_glyph.
4778 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4779 off-by-one error in computing x at end of text in the row.
4780 (append_stretch_glyph): In reversed row, prepend the glyph rather
4781 than append it. Set resolved_level and bidi_type of the glyph.
4782 (extend_face_to_end_of_line): If the row is reversed, prepend a
4783 stretch glyph whose width is such that the rightmost glyph will be
4784 drawn at the right margin of the window. Fix off-by-one error on
4785 TTY frames in testing whether a line needs face extension. Fix
4786 face extension at ZV. If this is the last glyph row, use
4787 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4788 region face.
4789 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4790 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4791 row->continuation_lines_width.
283ccc18
EZ
4792 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4793 are at ZV. Fixes a crash when reseated to ZV by
4794 try_window_reusing_current_matrix.
45903529
EZ
4795 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4796 which happens with R2L glyph rows. Fixes a crash when inserting a
4797 character at end of an R2L line.
283ccc18
EZ
4798 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4799 treat them as having zero-width characters. Improve comments.
4800 Don't reverse pos_before and pos_after for reversed glyph rows.
4801 Set cursor.x to negative value when the cursor might be on the
4802 left fringe.
4803 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4804 left fringe, not the right one.
f951a506
EZ
4805 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4806 (erase_phys_cursor): For reversed cursor_row, support cursor on
4807 the left fringe.
4808
283ccc18
EZ
4809 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4810 of continuation indicators on the fringes.
4811 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4812 left fringe.
4813
f951a506
EZ
4814 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4815 draw cursor on the left fringe.
4816
4817 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4818 cursor on the left fringe.
4819
f951a506
EZ
4820 * dispnew.c (update_text_area): Handle reversed desired rows when
4821 the cursor is on the left fringe.
4822 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4823 below, not by 0, for when the cursor is on the left fringe.
4824
3bb49aaf
JD
48252010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4826
4827 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4828 widget is a scrollbar.
4829
c0be27fd
KH
48302010-04-20 Kenichi Handa <handa@m17n.org>
4831
4832 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4833 only when the arg CHARSET_LIST is nil.
4834
ce5b453a
SM
48352010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4836
4837 Make variable forwarding explicit rather the using special values.
4838 Basically, this makes the structure of buffer-local values and object
4839 forwarding explicit in the type of Lisp_Symbols rather than use
4840 special Lisp_Objects for that. This tends to lead to slightly more
4841 verbose code, but is more C-like, simpler, and makes it easier to make
4842 sure we handled all cases, among other things by letting the compiler
4843 help us check it.
4844 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4845 Removing forwarding objects.
4846 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4847 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4848 explicit rather than hiding them inside Lisp_Object "values".
4849 (XFWDTYPE): New macro.
4850 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4851 (XBUFFER_LOCAL_VALUE): Remove.
4852 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4853 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4854 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4855 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4856 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4857 Remove the Lisp_Misc_* header.
4858 (struct Lisp_Buffer_Local_Value): Redefine.
4859 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4860 (struct Lisp_Misc_Any): Add filler to get the right size.
4861 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4862 Lisp_Intfwd.
4863 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4864 (DEFVAR_KBOARD): Allocate a forwarding object.
4865 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4866 (let_shadows_global_binding_p): New function.
4867 (union Lisp_Val_Fwd): New type.
4868 (make_blv): New function.
4869 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4870 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4871 (swap_in_symval_forwarding, find_symbol_value, Fset)
4872 (let_shadows_buffer_binding_p, set_internal, default_value)
4873 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4874 (Fkill_local_variable, Fmake_variable_frame_local)
4875 (Flocal_variable_p, Flocal_variable_if_set_p)
4876 (Fvariable_binding_locus):
4877 * xdisp.c (select_frame_for_redisplay):
4878 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4879 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4880 * frame.c (store_frame_param):
4881 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4882 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4883 value structure.
4884 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4885 (clone_per_buffer_values): Only adjust markers into the current buffer.
4886 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4887 (Fbuffer_local_value, set_buffer_internal_1)
4888 (swap_out_buffer_local_variables):
4889 Adapt to the new symbol value structure.
4890 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4891 (defvar_per_buffer): Take a new arg for the fwd object.
4892 (buffer_lisp_local_variables): Return a proper alist (different fix
4893 for bug#4138).
4894 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4895 (Fgarbage_collect): Don't handle buffer_defaults specially.
4896 (mark_object): Handle new symbol value structure rather than the old
4897 special Lisp_Misc_* objects.
4898 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4899 * term.c (set_tty_color_mode):
4900 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4901 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4902 a buffer_local_flags.
4903 * print.c (print_object): Get rid of impossible forwarding objects.
4904
fd3998ff
EZ
49052010-04-19 Eli Zaretskii <eliz@gnu.org>
4906
4907 * bidi.c (bidi_get_type, bidi_get_category)
4908 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4909 (bidi_type_of_next_char, bidi_level_of_next_char):
4910 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4911
e42cd1a7
JB
49122010-04-19 Juanma Barranquero <lekktu@gmail.com>
4913
4914 * dired.c (Ffile_attributes): Fix typo in docstring.
4915
6e104790 49162010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4917
4918 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4919 NSInteger (Bug#5811).
4920
6e104790 49212010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4922
4923 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4924 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4925
6e104790 49262010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4927
4928 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4929
6e104790
SM
49302010-04-19 Chong Yidong <cyd@stupidchicken.com>
4931
4932 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4933 terminal frames (Bug#5837).
4934
37dcfea0
EZ
49352010-04-19 Eli Zaretskii <eliz@gnu.org>
4936
d1da276f
EZ
4937 * .gdbinit (xsubchartable): New command.
4938
37dcfea0
EZ
49392010-04-19 Eli Zaretskii <eliz@gnu.org>
4940
4941 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4942 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4943 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4944 and
4945 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4946
e9515805
SM
49472010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4948
4949 * alloc.c (Fpurecopy): Hash-cons if requested.
4950 (syms_of_alloc): Update purify-flag docstring.
4951
22aa44a8
JD
49522010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4953
4954 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4955 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4956
ebb5722e
EZ
49572010-04-17 Eli Zaretskii <eliz@gnu.org>
4958
4959 Fix a crash when an NSM character is inserted at BEGV.
4960
4961 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4962 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4963 NEUTRAL_B or UNKNOWN_BT.
4964
0f4442ef
EZ
49652010-04-16 Eli Zaretskii <eliz@gnu.org>
4966
4967 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4968 other rows with cursor unless they are different from this row and
4969 this row is part of a continued line. (Bug#5943)
4970
7d4e45f8
DN
49712010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4972
4973 * s/freebsd.h: Restore osreldate.h include.
4974 Suggested by Naohiro Aota.
4975
5ba5ec85
J
49762010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4977
4978 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4979
20af301d
CY
49802010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4981
4982 * s/cygwin.h: Avoid linking against static libgcc.
4983
a4b000fb
JL
49842010-04-15 Juri Linkov <juri@jurta.org>
4985
4986 * window.c: Add Qscroll_command.
4987 Remove Vscroll_preserve_screen_position_commands.
4988 (window_scroll_pixel_based, window_scroll_line_based): Check the
4989 `scroll-command' property on the last command instead of searching
4990 the last command in Vscroll_preserve_screen_position_commands.
4991 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4992 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4993 (scroll-preserve-screen-position): Doc fix.
4994 (Vscroll_preserve_screen_position_commands): Remove variable.
4995
bc319ba4
DN
49962010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4997
6bb24457
DN
4998 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4999
19d4c244
DN
50002010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5001
5002 Reduce cpp use in Makefile.in.
5003 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5004 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5005 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5006 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5007 (CRT0_COMPILE): Remove, inline it in the only user.
5008
32129746
JL
50092010-04-14 Juri Linkov <juri@jurta.org>
5010
5011 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5012 `scroll-up-command' and `M-v' from `scroll-down' to
5013 `scroll-down-command'.
5014
9013a7f8
JL
50152010-04-14 Juri Linkov <juri@jurta.org>
5016
5017 * window.c (Vscroll_preserve_screen_position_commands): New variable
5018 with the default value as the list of Qscroll_down and Qscroll_up.
5019 (window_scroll_pixel_based, window_scroll_line_based): Search the
5020 last command in the list Vscroll_preserve_screen_position_commands
5021 instead of comparing with Qscroll_up and Qscroll_down.
5022
4bef8d26
JD
50232010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5024
92848133
JD
5025 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5026 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5027 does that.
5028
4bef8d26
JD
5029 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5030 to zero.
5031
58b963f7
SM
50322010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5033
84164a0d
SM
5034 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5035
2b0a91e7
SM
5036 Try to solve the problem of spurious EOF chars in long lines of text
5037 sent to interactive subprocesses.
5038 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5039 (system_process_attributes): Remove unused var `ttotal'.
5040 * process.c (send_process): Don't bother breaking long line with EOF
5041 chars when talking to ttys any more.
5042 (wait_reading_process_output): Output a warning when called in such
5043 a way that it could block without being interruptible.
5044
58b963f7
SM
5045 Try to detect file modification within the same second.
5046 * buffer.h (struct buffer): New field modtime_size.
5047 * buffer.c (reset_buffer): Initialize it.
5048 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5049 (Fverify_visited_file_modtime): Check it.
5050 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5051 (Fset_visited_file_modtime): Set (or clear) it.
5052
01f5787b
SM
50532010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5054
5055 * process.c (status_notify): Remove unused var `ro'.
5056
83725342
JD
50572010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5058
5059 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5060 more than one visual (Bug#5938).
5061
b9465836
DN
50622010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5063
50426a04
JB
5064 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5065 Undefine.
b9465836 5066
8d9c8ece
DN
50672010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5068
b1f52161
DN
5069 Remove C_SWITCH_SYSTEM_TEMACS.
5070 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5071 (malloc, realloc, free): Use emacs, not temacs for conditional
5072 definition.
5073
5074 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5075 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5076
8d9c8ece
DN
5077 Use autoconf, not cpp for some variables.
5078 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5079 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5080 (ALL_CFLAGS): Use them as make variables.
5081 (really-lwlib, really-oldXMenu): Do not pass them.
5082
1ecb2d3f
JD
50832010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5084
5085 * xmenu.c (apply_systemfont_to_dialog): New.
5086 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5087
3a4fa2f2
SM
50882010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5089
97e53006
SM
5090 * process.c (exec_sentinel): Preserve current-buffer.
5091
3a4fa2f2
SM
5092 * process.c (read_process_output): Move the save-current-buffer to
5093 apply to both the filter and the non-filter branches.
5094
88df7221
DN
50952010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5096
5097 * s/msdos.h (UNEXEC): New definition.
5098
5634ff85
YM
50992010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5100
6eff5c3d
YM
5101 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5102 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5103
5104 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5105 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5106 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5107 TRY_WINDOW_CHECK_MARGINS.
5108
5109 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5110 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5111 width only when it is for padding.
5634ff85 5112
b13aef54
J
51132010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5114
5115 * xfns.c (Fx_show_tip): Call try_window in a loop until
5116 fonts_changed_p is zero (Bug#2423).
5117
21d28484
EZ
51182010-04-08 Eli Zaretskii <eliz@gnu.org>
5119
5120 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5121 the end of TEXT_AREA. (Bug#5856)
5122
0269ef77
JD
51232010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5124
5125 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5126 HAVE_GCONF.
5127
5930fe97
EZ
51282010-04-08 Eli Zaretskii <eliz@gnu.org>
5129
5130 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5131 prev.orig_type, for resolving type of NSM. (Bug#5858)
5132
99852628
JD
51332010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5134
5135 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5136 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5137 in current_font.
5138 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5139 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5140 New functions.
5141 (syms_of_xsettings): Initialize current_font.
5142 defsubr Sfont_get_system_normal_font.
99852628 5143
686b968e
JB
5144 * xsettings.h (Ffont_get_system_normal_font)
5145 (xsettings_get_system_normal_font): Declare.
99852628
JD
5146
5147 * xfns.c (extern xlwmenu_default_font): Remove.
5148 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5149 to xlwmenu.c.
5150
5151 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5152 menu items in UTF-8.
5153
5154 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5155 (apply_systemfont_to_menu): New function.
5156 (set_frame_menubar, create_and_show_popup_menu): Call
5157 apply_systemfont_to_menu.
5158
7fc874c4
J
51592010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5160
5161 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5162 FRAME_LINE_TO_PIXEL_Y.
5163
5164 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5165 pixelwidth/height.
5166
863bf481
DN
51672010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5168
5e5a3b92
DN
5169 Simplify code for HP machines.
5170 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5171 for GNU_LINUX, not needed.
5172 (UNEXEC, NEED_BSDTTY): Move definitions...
5173 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5174
863bf481
DN
5175 * m/iris4d.h (UNEXEC): Move definition ...
5176 * s/irix6-5.h (UNEXEC): ... here.
5177
3e6bec3b
JD
51782010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5179
5180 * xfns.c (set_machine_and_pid_properties): New function.
5181 (Fx_create_frame): Call set_machine_and_pid_properties.
5182
2912322b
SM
51832010-04-03 Eli Zaretskii <eliz@gnu.org>
5184
1502b819
EZ
5185 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5186 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5187 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5188
2912322b
SM
5189 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5190 in this function. (Bug#5703)
5191
51922010-04-03 Chong Yidong <cyd@stupidchicken.com>
5193
5194 * nsterm.h: Fix last change.
5195
c435b432
DN
51962010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5197
a568f507
DN
5198 * m/intel386.h (NO_REMAP): Move definition ...
5199 * s/msdos.h (NO_REMAP): ... here.
5200
4cd9f6c2
DN
5201 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5202
c435b432
DN
5203 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5204 used on those platforms.
5205
42a2c622
DN
52062010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5207
5208 Remove extern errno declarations.
5209 * xterm.c:
5210 * xrdb.c:
5211 * w32term.c:
5212 * unexec.c:
5213 * unexaix.c:
5214 * sysdep.c:
5215 * process.c:
5216 * lread.c:
5217 * keyboard.c:
5218 * floatfns.c:
5219 * filelock.c:
5220 * fileio.c:
5221 * emacs.c (main):
5222 * ecrt0.c:
5223 * dispnew.c:
5224 * callproc.c:
5225 * buffer.c: Remove errno extern declarations.
5226 * s/netbsd.h (NEED_ERRNO): Remove.
5227
8224f93d
DN
52282010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5229
5230 Remove all uses of LIBX11_SYSTEM.
5231 * Makefile.in (LIBX11_SYSTEM): Remove.
5232 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5233 instead.
5234
814062c7
EZ
52352010-04-01 Eli Zaretskii <eliz@gnu.org>
5236
ed68db4d
EZ
5237 Remove support for DJGPP v1.x (bug#5813).
5238
5239 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5240 * s/msdos.h:
5241 * unexec.c (make_hdr, copy_text_and_data):
5242 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5243 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5244 (IT_set_terminal_modes, __write, _rename, gethostname)
5245 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5246 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5247 the value of __DJGPP__.
ed68db4d
EZ
5248 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5249 compatibility code.
8224f93d
DN
5250 * lread.c:
5251 * gmalloc.c (memalign):
5252 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5253 * emacs.c (main):
5254 * dosfns.c (init_dosfns):
ed68db4d
EZ
5255 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5256
52f4d8d5
EZ
52572010-04-01 Eli Zaretskii <eliz@gnu.org>
5258
814062c7
EZ
5259 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5260 string with `cursor' property comes from an `after-string'
5261 overlay. (Bug#5816)
5262
0dc2e11d
GM
52632010-04-01 Glenn Morris <rgm@gnu.org>
5264
5265 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5266 Define as Makefile variables.
5267 (LIBX): Use above variables rather than directly using autoconf.
5268
1d29df59
DN
52692010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5270
5271 Clean up BSD_SYSTEM use.
5272 * xterm.c:
5273 * process.c:
5274 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5275 for including <sys/ioctl.h>.
5276 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5277 code is only used for MSDOS.
5278
1546c559
JL
52792010-03-31 Juri Linkov <juri@jurta.org>
5280
5281 * image.c: Add `Qextension_data'.
5282 (syms_of_image): Initialize and staticpro `Qextension_data'.
5283 (Fimage_metadata): Rename from `Fimage_extension_data'.
5284 (gif_load): Put GIF extension data to the property
5285 `Qextension_data'.
5286
6521c534
CY
52872010-03-31 Chong Yidong <cyd@stupidchicken.com>
5288
5289 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5290 * nsterm.h: Fix prototype.
5291
52c30783
EZ
52922010-03-31 Eli Zaretskii <eliz@gnu.org>
5293
5294 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5295 trailing whitespace in right-to-left rows.
5296
855a0da7
SM
52972010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5298
5299 Get rid of the direct_output optimizations.
5300 * keyboard.c (nonundocount): Remove extern declaration.
5301 (command_loop_1): Remove brittle optimisation for cheap and
5302 common operations.
5303 * xdisp.c (redisplay_internal): Don't bother checking
5304 redisplay_performed_directly_p any more.
5305 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5306 any more.
5307 * dispnew.c (redisplay_performed_directly_p)
5308 (direct_output_for_insert, direct_output_forward_char):
5309 * dispextern.h (redisplay_performed_directly_p)
5310 (direct_output_for_insert, direct_output_forward_char): Remove.
5311 * cmds.c (nonundocount): Make it static.
5312
85738751 53132010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5314
5315 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5316
85738751 53172010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5318
5319 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5320 invisible (Bug#5766).
5321
85738751 53222010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5323
855a0da7
SM
5324 * xdisp.c (x_consider_frame_title, update_window_cursor):
5325 Remove HAVE_NS conditionals.
194d44e7 5326 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5327
5328 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5329 filename for the title.
5330 (ns_set_doc_edited): Do nothing if the selected window is a
5331 minibuffer window.
5332
5333 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5334 ns_set_doc_edited.
5335
5336 * nsterm.m: Remove unneeded prototype.
5337
85738751 53382010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5339
5340 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5341 in the DOC file. (Bug#5336)
5342
85738751 53432010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5344
5345 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5346
75d1428c
SM
53472010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5348
5349 * window.c (keys_of_window): Remove redundant/overridden bindings.
5350
82043cfb
EZ
53512010-03-30 Eli Zaretskii <eliz@gnu.org>
5352
5353 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5354 Restore original behavior when the iterator is not bidi_p.
5355
b5dd0ae7
DN
53562010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5357
5358 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5359
bd924a5d
EZ
53602010-03-30 Eli Zaretskii <eliz@gnu.org>
5361
5362 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5363 are outside the range of cached character positions.
5364
3580374b
JB
53652010-03-30 Juanma Barranquero <lekktu@gmail.com>
5366
5367 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5368
a7b02820
EZ
53692010-03-30 Eli Zaretskii <eliz@gnu.org>
5370
5371 Initial support for bidirectional editing.
5372
5373 * Makefile.in (obj): Include bidi.o.
5374 (bidi.o): New target.
5375
5376 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5377 ($(BLD)/bidi.$(O)): New target.
5378
5379 * bidi.c: New file.
5380
5381 * buffer.h (struct buffer): New members bidi_display_reordering
5382 and bidi_paragraph_direction.
5383
5384 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5385 and bidi_paragraph_direction.
5386 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5387 and bidi-paragraph-direction.
5388 (Fbuffer_swap_text): Swap the values of
5389 bidi_display_reordering and bidi_paragraph_direction.
5390
5391 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5392 (bidi_type_t, bidi_dir_t): New types.
5393 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5394 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5395 prev_stop, base_level_stop, and eol_pos.
5396 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5397 (IT_STACK_SIZE): Enlarge to 5.
5398 (struct glyph_row): New member reversed_p.
5399 <string_buffer_position>: Update prototype.
5400 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5401 glyph_row if bidi_it.paragraph_dir == R2L.
5402 (struct glyph): New members resolved_level and bidi_type.
5403
5404 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5405 processing or buffer's direction is right-to-left.
5406 (prepare_desired_row): Preserve the reversed_p flag.
5407 (row_equal_p): Compare the reversed_p attributes as well.
5408
5409 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5410 bidi_init_it and set it->paragraph_embedding from the current
5411 buffer's value of bidi_paragraph_direction.
5412 (reseat_1): Initialize bidi_it.first_elt.
5413 (set_iterator_to_next, next_element_from_buffer): Use the value of
5414 paragraph_embedding to determine the paragraph direction.
5415 (set_iterator_to_next): Under bidi reordering, call
5416 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5417 new_paragraph flag is set in the bidi iterator.
5418 (next_element_from_buffer): If bidi_it.first_elt is set,
5419 initialize paragraph direction and find the first character to
5420 display in the visual order. If reseated to a middle of a line,
5421 prime the bidi iterator starting at the line's beginning. Handle
5422 the situation where we overstepped stop_charpos due to
5423 non-linearity of the bidi iteration. Likewise for when we back up
5424 beyond the previous stop_charpos. When moving across stop_charpos,
5425 record it in prev_stop.
5426 (display_line): Set row->end and it->start for the next row to the
5427 next character in logical order. Always extend reversed_p rows to
5428 the end of line, even if they end at ZV. Copy the reversed_p flag
5429 to the next glyph row. Keep calling set_cursor_from_row for
5430 bidi-reordered rows even if we already have a possible candidate
5431 for cursor position. Set row_end after all the row's glyphs have
5432 been produced, by looping over the glyphs. Record the position
5433 after EOL in it->eol_pos, and use it to set end_pos of the last
5434 row produced for a continued line.
5435 <Qright_to_left, Qleft_to_right>: New variables.
5436 (syms_of_xdisp): Initialize and staticpro them.
5437 (string_buffer_position_lim): New function.
5438 (string_buffer_position): Most of code moved to
5439 string_buffer_position_lim. Last argument and return value are
5440 now EMACS_INT; all callers changed.
5441 (set_cursor_from_row): Rewritten to support bidirectional text and
5442 reversed glyph rows.
5443 (text_outside_line_unchanged_p, try_window_id): Disable
5444 optimizations if we are reordering bidirectional text and the
5445 paragraph direction can be affected by the change.
5446 (append_glyph, append_composite_glyph)
5447 (produce_image_glyph, append_stretch_glyph): Set the
5448 resolved_level and bidi_type members of each glyph.
5449 (append_glyph): If the glyph row is reversed, prepend the glyph
5450 rather than appending it.
5451 (handle_stop_backwards): New function.
5452 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5453 (reseat): call handle_stop_backwards to recompute prev_stop and
5454 base_level_stop for the new position.
5455 (handle_invisible_prop): Under bidi iteration, skip invisible text
5456 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5457 paragraph direction. Update IT->prev_stop after skipping
5458 invisible text.
5459 (move_it_in_display_line_to): New variables prev_method
5460 and prev_pos. Compare for strict equality in
5461 BUFFER_POS_REACHED_P.
5462 (try_cursor_movement): Examine all the candidate rows that occlude
5463 point, to return the best match. If rows are bidi-reordered
5464 and point moved backwards, back up to the row that is not a
5465 continuation line, and start looking for a suitable row from
5466 there.
5467
5468 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5469 rather than appending, if the glyph_row's reversed_p flag is set.
5470 Set the resolved_level and bidi_type members of each glyph.
5471
5472 * .gdbinit (pbiditype): New command.
5473 (pgx): Use it to display bidi level and type of the glyph.
5474 (pitx): Display some bidi information about the iterator.
5475 (prowlims, pmtxrows): New commands.
5476
32a8894e
DN
54772010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5478
5479 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5480 * s/usg5-4.h (LIBS_DEBUG):
5481 * s/irix6-5.h (C_DEBUG_SWITCH):
5482 * s/gnu-linux.h (LIBS_DEBUG):
5483 * s/darwin.h (LIBS_DEBUG):
5484 * s/bsd-common.h (LIBS_DEBUG):
5485 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5486 * m/iris4d.h (LIBS_DEBUG):
5487 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5488
5489 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5490 (LIBS_DEBUG): Remove definition.
5491
649dbf36
CY
54922010-03-27 Chong Yidong <cyd@stupidchicken.com>
5493
5494 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5495 Windows.
5496
cad4261f
YM
54972010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5498
5499 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5500 `connect' (Bug#5723).
5501
cd591dbc
HE
55022010-03-25 Helmut Eller <eller.helmut@gmail.com>
5503
5504 * process.c (Fmake_network_process): Call `select' for interrupted
5505 `connect' rather than creating new socket (Bug#5173).
5506
e867cb5d 55072010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5508
5509 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5510
5511 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5512
5513 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5514
e867cb5d 55152010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5516
5517 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5518 XLoadQueryFont.
5519
e867cb5d 55202010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5521
5522 * coding.c (decode_coding_ccl): Fix previous change for the
5523 multibyte case.
fb608df3
KH
5524 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5525 case that the output buffer is fullfilled.
5526 (encode_coding): Setup ccl program here.
fbdc1721 5527
5845f0ed
DN
55282010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5529
814fb708
DN
5530 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5531
5845f0ed
DN
5532 Simplify LIBS_MACHINE definitions.
5533 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5534 * m/iris4d.h (LIBS_MACHINE): Likewise.
5535 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5536 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5537 * s/netbsd.h: Remove commented out code.
5845f0ed 5538
b7064064
DN
55392010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5540
df7734b2
DN
5541 Remove dead code dealing with POSIX_SIGNALS.
5542 * atimer.c (set_alarm): Remove dead code, all USG systems define
5543 POSIX_SIGNALS.
5544 * data.c (arith_error): Likewise.
5545 * keyboard.c (input_available_signal, handle_user_signal)
5546 (interrupt_signal): Likewise.
5547 * process.c (sigchld_handler): Likewise.
5548 (create_process): Remove if 0 code. Remove HPUX conditional when
5549 !defined (POSIX_SIGNALS), it cannot be true.
5550 * syssignal.h: Remove USG5_4 and USG conditionals when
5551 !POSIX_SIGNALS, they cannot be true.
5552
b7064064
DN
5553 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5554 NO_SOCK_SIGIO, not used anymore.
5555
55da5ee3
DN
55562010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5557
0be96e3a
DN
5558 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5559 support vax on BSDs.
5560
55da5ee3
DN
5561 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5562 * s/aix4-2.h (ORDINARY_LINK): ... here.
5563
c0282183
AS
55642010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5565
82c3d67a
AS
5566 * Makefile.in (abs_builddir): Define.
5567 (bootstrap_exe): Use it.
5568 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5569
3613edce
SM
55702010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5571
5572 * Makefile.in (bootstrap_exe): Use an absolute name.
5573
7f110ddc
DN
55742010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5575
22e87574
DN
5576 Remove support for old GNU/Linux using libc version 5.
5577 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5578 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5579
05a670e6
DN
5580 Consolidate redundant definitions in s/bsd-common.h.
5581 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5582 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5583 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5584 doing it in all files that include this one.
5585 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5586 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5587 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5588 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5589 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5590 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5591 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5592 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5593 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5594
2968f561
DN
5595 Consolidate redundant definitions.
5596 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5597 it's undefined in all files that include this one.
5598 (POSIX_SIGNALS): Define here instead of doing it in all files that
5599 include this one.
5600 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5601 (POSIX_SIGNALS): Do not define.
5602 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5603 (POSIX_SIGNALS): Do not define.
5604 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5605 (POSIX_SIGNALS): Do not define.
5606
15d25dc0
DN
5607 Remove support for old UNIX System V systems.
5608 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5609 * s/usg-5-4-2.h: Remove.
5610
07e339e4
DN
5611 Remove support for Solaris on PPC and for old versions.
5612 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5613 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5614 that cancel each other.
5615 * s/sol2-3.h:
5616 * s/sol2-4.h:
5617 * s/sol2-5.h: Remove.
5618 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5619 (NO_REMAP): Remove, unused.
5620 (UNEXEC): Move definition ...
5621 * s/aix4-2.h (UNEXEC): ... here.
5622
7f110ddc
DN
5623 * s/openbsd.h: Remove support for non-ELF and for systems that do
5624 not support shared libraries.
5625 * s/netbsd.h:
5626 * s/freebsd.h: Likewise.
5627
605f35cd
DN
56282010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5629
5630 Remove non-working support for lynxos 3.0.
5631 * s/lynxos.h: Remove file.
5632
5633 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5634 COFF_BSD_SYMBOLS, nothing defines it anymore.
5635
aed71cf4
DN
56362010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5637
5638 Remove obsolete uses of HAVE_SHM.
5639 * emacs.c (standard_args):
5640 (Fdump_emacs):
5641 (syms_of_emacs): Remove code depending on HAVE_SHM.
5642
5643 * alloc.c: Remove HAVE_SHM dependent definition.
5644
5645 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5646
aded53ff
GM
56472010-03-18 Glenn Morris <rgm@gnu.org>
5648
17284745
GM
5649 * emacs.c (USAGE4): Hard-code bug address.
5650 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5651 (bug_reporting_address): Remove.
5652 (main): Don't call bug_reporting_address.
5653
aded53ff
GM
5654 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5655 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5656
303500aa
CY
56572010-03-15 Chong Yidong <cyd@stupidchicken.com>
5658
5659 * xfns.c (Fx_create_frame):
5660 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5661 on left.
5662
cef3058f
CY
56632010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5664
5665 * editfns.c (Fformat): Account for string precision when computing
5666 field width (Bug#5710).
5667
a647d59d
CY
56682010-03-12 Chong Yidong <cyd@stupidchicken.com>
5669
4fa42018
CY
5670 * xfns.c (Fx_create_frame): Set default to Qright.
5671
a647d59d
CY
5672 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5673 all window systems.
5674
6da23aaa
EZ
56752010-03-12 Eli Zaretskii <eliz@gnu.org>
5676
a96f6398 5677 These changes remove termcap.c from the build on Posix platforms.
83d02def 5678 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5679 (MSDOS_OBJ): ...to here.
5680 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5681 now identical to when LIBS_TERMCAP is defined.
5682
5683 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5684
5685 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5686
a96f6398 5687 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5688
288f9fc0
CY
56892010-03-10 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * Branch for 23.2.
5692
d48cd3f4
SM
56932010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5694
5695 Cleanup setup of gl_state in various parts of the code.
5696 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5697 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5698 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5699 (skip_chars):
5700 * regex.c (regex_compile): Use it.
5701 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5702 it's now set in regex_compile when/if we need it.
5703
618db430
SM
57042010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5705
c0335e02
SM
5706 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5707 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5708 (QUIT): Use it to consolidate code and remove redundancy.
5709 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5710
254c06a8
SM
5711 * regex.c (regex_compile): Setup gl_state as well.
5712
618db430
SM
5713 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5714 (in_classes): Use CONSP before XCAR/XCDR.
5715
233f0c9f
CY
57162010-03-03 Chong Yidong <cyd@stupidchicken.com>
5717
5718 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5719 definitions, so that keyboard macros are correctly handled
5720 (Bug#5481).
5721
75f80e63
EZ
57222010-03-02 Eli Zaretskii <eliz@gnu.org>
5723
5724 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5725 text that could be relocated inside the call to emacs_mule_char.
5726 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5727 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5728
dcfb9bc4
KH
57292010-03-02 Kenichi Handa <handa@m17n.org>
5730
fc9a17bc
KH
5731 * character.c (parse_str_as_multibyte): Fix handling of the
5732 multibyte form of raw-bytes.
5733 (str_as_multibyte): Likewise.
5734
dcfb9bc4
KH
5735 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5736 form of raw-bytes.
5737
412c01b6
CY
57382010-02-28 Chong Yidong <cyd@stupidchicken.com>
5739
5740 * charset.c (load_charset_map_from_file)
5741 (load_charset_map_from_vector): Zero out allocated
5742 charset_map_entries before using them.
5743
df7e1ea0
AS
57442010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5745
5746 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5747
fe69a722
CY
57482010-02-27 Chong Yidong <cyd@stupidchicken.com>
5749
4ed28cf4
CY
5750 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5751 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5752
7379cfce
KH
57532010-02-26 Kenichi Handa <handa@m17n.org>
5754
f88cc4d6
KH
5755 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5756
7379cfce
KH
5757 * xdisp.c (reseat_to_string): Fix previous change.
5758
cf2fdcfb
CY
57592010-02-26 David Reitter <david.reitter@gmail.com>
5760
5761 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5762 Lisp_Object (Bug#4736).
5763
cc6c7c75
KH
57642010-02-25 Kenichi Handa <handa@m17n.org>
5765
5766 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5767
32e737d7
JD
57682010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5769
5770 * xterm.c (XTflash): Move declarations before statements.
5771
5772 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5773 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5774 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5775 (xg_create_tool_bar): Remove unused variables.
5776 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5777 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5778
676cae9f
CY
57792010-02-21 Chong Yidong <cyd@stupidchicken.com>
5780
5781 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5782
886cc2b8
SM
57832010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5784
5785 * term.c (fatal): Add a final \n if needed (bug#5596).
5786
ddb2d8e2
CY
57872010-02-18 Chong Yidong <cyd@stupidchicken.com>
5788
5789 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5790
2a4f8d3d
GM
57912010-02-18 Glenn Morris <rgm@gnu.org>
5792
5793 * callint.c (Finteractive): Doc fix.
5794
ebaf11b6
KH
57952010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5796
886cc2b8
SM
5797 * coding.c (record_conversion_result):
5798 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5799 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5800 memory allocation error.
5801
d0396581
KH
58022010-02-17 Kenichi Handa <handa@m17n.org>
5803
886cc2b8
SM
5804 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5805 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5806 (decode_coding): Setup ccl program here. Keep looping when the
5807 decoder stopped because the output buffer is
5808 fullfilled (bug#5534).
5809
5810 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5811
98599f74
JD
58122010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5813
471e4f04 5814 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5815 bug #5571.
886cc2b8 5816 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5817 overdrawn.
98599f74 5818
182659ae
JD
58192010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5820
5821 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5822 doing_interact here.
5823 (ice_connection_closed): New function.
5824 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5825 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5826 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5827 returns I/O error.
5828 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5829 bug #5512.
5830
9be32c4e 58312010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5832
5833 * nsfont.m (nsfont_open): The system's value for the font descent
5834 is negative, so round it down to avoid clipping.
5835
a2f3eb19
CY
58362010-02-06 Chong Yidong <cyd@stupidchicken.com>
5837
5838 * charset.c (load_charset_map_from_file)
5839 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5840 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5841
3088147c
CY
58422010-02-05 Chong Yidong <cyd@stupidchicken.com>
5843
5844 * charset.c (load_charset_map_from_file): Allocate large
5845 charset_map_entries structure on the heap rather than the stack.
5846 (Bug#5526).
5847
b57d9029
KH
58482010-01-31 Kenichi Handa <handa@m17n.org>
5849
5850 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5851 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5852
c67d885b
CY
58532010-01-31 Chong Yidong <cyd@stupidchicken.com>
5854
5855 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5856 <deactivated@gmail.com> (Bug#3605).
5857
8fab2362
CY
58582010-01-31 David De La Harpe Golden <david@harpegolden.net>
5859
5860 * fileio.c (Frename_file): Correctly rename symlinks to
5861 directories (Bug#5496).
5862
cb2a62f2
CY
58632010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5864
5865 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5866
944c7a26
AS
58672010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5868
5869 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5870
c024ac08
CY
58712010-01-29 Chong Yidong <cyd@stupidchicken.com>
5872
5873 * frame.c (DEFAULT_ROWS): Change default to 35.
5874
5875 * xfns.c (x_default_font_parameter): Change default XFT font to
5876 monospace-10 (Bug#3643).
5877
af93af83
EZ
58782010-01-29 Eli Zaretskii <eliz@gnu.org>
5879
5880 * w32inevt.c (key_event): Remove unnecessary comparison of
5881 event->uChar.AsciiChar with 128.
5882
ca0eb708
CY
58832010-01-28 Chong Yidong <cyd@stupidchicken.com>
5884
b242dbfc
CY
5885 * fileio.c (Frename_file): Fix last change (Bug#5487).
5886
ca0eb708
CY
5887 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5888
5889 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5890
45d45af5
JD
58912010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5892
5893 * xfns.c (Fx_create_frame): Remove window size matching code from
5894 2010-01-15.
a73f9c9d 5895 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5896
7e233730
JR
58972010-01-27 Jason Rumney <jasonr@gnu.org>
5898
5899 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5900 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5901
86e893e3
KH
59022010-01-27 Kenichi Handa <handa@m17n.org>
5903
5904 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5905 pattern string (Bug#4209).
86e893e3 5906
8719abec
CY
59072010-01-27 David De La Harpe Golden <david@harpegolden.net>
5908
5909 * fileio.c (Frename_file): Call copy-directory and
5910 delete-directory for directories, in order to handle cross-device
5911 renaming (Bug#3353).
5912
844794c8
JD
59132010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5914
aa3e13b5 5915 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5916 sizes 24 and 10. Bug #3643.
844794c8 5917
bd4b5750
SM
59182010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5919
8dc1adf6 5920 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5921 * keymap.c (shadow_lookup): Add `remap' arg.
5922 (describe_map, describe_vector): Update calls to shadow_lookup.
5923 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5924 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5925 perform remapping during shadow_lookup check of remapped_sequences.
5926
285d07e2
CY
59272010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5928
5929 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5930 png_check_sig, which has been removed in libpng 1.4.
5931
c6d09b8d
CY
59322010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5933
5934 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5935 lacks this header file).
5936
3d782998
YM
59372010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5938
5939 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5940 as in Emacs 22.
5941
2aff7c53
YM
59422010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5943
5944 * lisp.h (make_pure_string): String pointer arg now points to const.
5945
5946 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5947 args now point to const.
5948
74327f7a
EZ
59492010-01-22 Eli Zaretskii <eliz@gnu.org>
5950
5951 * lread.c (Fload): Don't treat files without .elc extension as
5952 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5953 them. (bug#5303)
5954
4d1e6632
KH
59552010-01-20 Kenichi Handa <handa@m17n.org>
5956
5957 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5958 treat the source as actual byte sequence.
5959
1fdede8f
AM
59602010-01-19 Alan Mackenzie <acm@muc.de>
5961
5962 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5963 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5964 `signal_after_change_p' to `coherent_change_p', and make the
5965 invocation of `modify_region' conditional on it.
5966
67477f30
JD
59672010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5968
5969 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5970 for debug purpose.
5971 (syms_of_xsettings): Declare xft-settings.
5972
244b023e
CY
59732010-01-18 Chong Yidong <cyd@stupidchicken.com>
5974
5975 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5976
617364fe
CY
59772010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5978
5979 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5980
4fe22cdf
CY
59812010-01-16 Chong Yidong <cyd@stupidchicken.com>
5982
5983 * emacs.c (standard_args): Adjust arg priorities to reflect how
5984 they are processed in startup.el.
5985
e118d2be
AS
59862010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5987
5988 * Makefile.in (lisp, shortlisp): Update.
5989
523ae620
SM
59902010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5991
5992 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5993 code, link the new kboard into all_kboard before running Lisp code,
5994 and protect the new terminal with GCPRO (Bug#5365).
5995 (x_term_init): Remove unused var `atom'.
5996 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5997
f0d13888
JD
59982010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5999
6000 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6001 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6002 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6003 this. Bug #3643.
f0d13888 6004
cc320f07
KH
60052010-01-15 Kenichi Handa <handa@m17n.org>
6006
6007 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6008
7ffdf101
CY
60092010-01-15 Chong Yidong <cyd@stupidchicken.com>
6010
6011 * nsterm.m (Qnone): Define.
6012
6013 * nsfns.m (Qnone): Move definition to nsterm.m.
6014
d12bd917
KH
60152010-01-14 Kenichi Handa <handa@m17n.org>
6016
6017 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6018 systems.
6019
d9a7c140
KH
60202010-01-14 Kenichi Handa <handa@m17n.org>
6021
6022 Make auto-composition work on all buffers even if they are
6023 fundamental mode.
6024
6025 * composite.c (Vauto_composition_mode): New variable.
6026 (composition_compute_stop_pos): Check Vauto_composition_mode
6027 instead of Vauto_composition_function.
6028 (composition_adjust_point, Ffind_composition_internal): Likewise.
6029 (syms_of_composite): Declare Lisp variable
6030 "auto-composition-mode" here.
6031
63286bb2
CY
60322010-01-13 Chong Yidong <cyd@stupidchicken.com>
6033
6034 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6035 during call to vendor-specific-keysyms (Bug#5365).
6036
c2623ee7
YM
60372010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6038
6039 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6040 Call SIGNAL_THREAD_CHECK (Bug#5333).
6041
6042 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6043 Call SIGNAL_THREAD_CHECK.
6044
0b5397c2
SM
60452010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6046
6047 Try to fix bug#5314. This is probably not the final word, tho.
6048 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6049 recent-auto-save-p as a side-effect.
6050 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6051 * buffer.c (Fkill_buffer, reset_buffer):
6052 * editfns.c (Fsubst_char_in_region):
6053 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6054 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6055
dc954cb2
KH
60562010-01-13 Kenichi Handa <handa@m17n.org>
6057
6058 Display buffer name, etc. in mode line by composing correctly.
6059
6060 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6061 STRING is not nil.
0b5397c2 6062 (display_mode_element): Adjust for the change of
dc954cb2
KH
6063 decode_mode_spec and display_line.
6064 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6065 (display_string): Handle the case that STRING is non-null and
6066 LISP_STRING is not nil.
6067
0b5397c2
SM
6068 * xterm.c (x_draw_composite_glyph_string_foreground):
6069 Pay attention to s->face->overstrike.
dc954cb2
KH
6070
6071 * composite.c (composition_reseat_it): Don't check PT if STRING is
6072 non nil.
6073
4a00eaca
YM
60742010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6075
6076 * keyboard.c (read_char): Don't apply previous change when current
6077 buffer is unchanged by command execution.
6078
60abb287
JD
60792010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6080
6081 * keyboard.c (read_char): Return after executing from special map.
6082
893db5bc
GM
60832010-01-12 Glenn Morris <rgm@gnu.org>
6084
6085 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6086 bug-gnu-emacs rather than emacs-pretest-bug.
6087
4d03ece0
CY
60882010-01-11 Chong Yidong <cyd@stupidchicken.com>
6089
6090 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6091 initializing the Lisp variables that depend on them.
6092
1df47e38
YM
60932010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6094
6095 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6096 Clear areas that will not be updated after change of menu bar lines.
6097 Clear the menu bar window's current matrix when the window gets empty.
6098
2f1c6384
CY
60992010-01-09 Chong Yidong <cyd@stupidchicken.com>
6100
e398c61c
CY
6101 * intervals.h, textprop.c (extend_property_ranges): Return value
6102 and args changed. Discard properties that begin at or after the
6103 new end (Bug#5306).
6104
6105 * editfns.c (Fformat): Caller changed.
6106
e5a29a10
CY
6107 * nsterm.m (ns_set_default_prefs): Delete function.
6108 (syms_of_nsterm): Initialize ns_command_modifier,
6109 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6110 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6111
2f1c6384
CY
6112 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6113 position (Bug#4040).
6114
d427a9fa
EZ
61152010-01-09 Eli Zaretskii <eliz@gnu.org>
6116
6117 * editfns.c (Ffloat_time): Doc fix.
6118
21b9df2f
JD
61192010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6120
6121 * xfns.c (Fx_create_frame): Don't create frame larger than display
6122 by default bug#3643.
6123
4b00d3b1
YM
61242010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6125
6126 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6127 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6128 windows above internal border.
6129
6130 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6131 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6132 windows above internal border.
6133
6134 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6135 tool bar windows specially.
6136
6137 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6138
6139 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6140 specially.
6141 (XTflash): Take account of menu bar height.
6142
6143 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6144 specially.
6145
5075d853
JD
61462010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6147
ac146f82 6148 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6149 also be true before we can return early (bug #5339).
6150
474217c8
CY
61512010-01-06 David Reitter <david.reitter@gmail.com>
6152
6153 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6154 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6155 (Bug#3233).
6156
c0e6d47d
JD
61572010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6158
d0cf45b7
JD
6159 * font.c (font_open_entity): Enable chache and call cached_font_ok
6160 for the driver if defined.
6161 (QCuser_spec): New symbol.
6162 (font_spec_from_name): Save name as user-spec.
6163 (font_load_for_lface): Keep user-spec instead of name.
6164 (font_open_by_name): Save name as user-spec.
6165 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6166 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6167
6168 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6169 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6170 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6171
6172 * font.h (struct font_driver): Add cached_font_ok.
6173
c0e6d47d
JD
6174 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6175
7c583cd8
JD
61762010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6177
6178 * xterm.c (x_new_font): Move code for setting rows/cols before
6179 resizing ...
ac146f82 6180 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6181
6182 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6183 (xg_frame_resized, xg_frame_set_char_size):
6184 Call xg_clear_under_internal_border.
7c583cd8 6185 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6186
03f77f0a
CY
61872010-01-05 Chong Yidong <cyd@stupidchicken.com>
6188
6189 * keyboard.c (read_key_sequence): Catch keyboard switch after
6190 making a new tty frame (Bug#5095).
6191
2a1ef5be
KH
61922010-01-05 Kenichi Handa <handa@m17n.org>
6193
6194 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6195
e3eb1dae
SM
61962010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6197
6198 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6199 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6200 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6201
777013f2
MA
62022010-01-03 Michael Albinus <michael.albinus@gmx.de>
6203
6204 * dbusbind.c (xd_add_watch): Improve debug message.
6205 (xd_remove_watch): Improve debug message. If DATA is the session
6206 bus, unset D-Bus session environment.
6207 (Fdbus_init_bus): Pass the bus as argument to
6208 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6209
8932b1c2
CY
62102010-01-01 Chong Yidong <cyd@stupidchicken.com>
6211
87231e2c
CY
6212 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6213
4801c5fa
CY
6214 * lread.c (syms_of_lread): Make it clearer that these are the
6215 names of loaded files (Bug#5068).
6216
8932b1c2
CY
6217 * eval.c (run_hook_with_args): Handle the case where the global
6218 value has the obsolete single-function form (Bug#5026).
6219
11e3c684
CY
62202009-12-27 Chong Yidong <cyd@stupidchicken.com>
6221
6222 * minibuf.c (Fall_completions): Minor optimization.
6223
5b28ce35
EZ
62242009-12-26 Eli Zaretskii <eliz@gnu.org>
6225
5ce6e4f4
JB
6226 * .gdbinit (pgx): Fix display of composite glyphs.
6227 Display cmp.from and cmp.to as well.
6228 (pitx): Fix last change.
5b28ce35 6229
bcffff46
KH
62302009-12-25 Kenichi Handa <handa@m17n.org>
6231
6232 * composite.h (composition_adjust_point): Update prototype.
6233
6234 * composite.c (composition_reseat_it): Don't make a composition
6235 spanning over point.
6236 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6237 composable characters.
6238 (composition_adjust_point): New arg NEW_PT. Callers changed.
6239
6240 * keyboard.c (command_loop_1): Force redisplay if the last point
6241 was within a composition.
6242 (adjust_point_for_property): Don't adjust point for automatic
6243 composition when called after buffer modification.
6244
3f670e9a
EZ
62452009-12-19 Eli Zaretskii <eliz@gnu.org>
6246
5ce6e4f4
JB
6247 * .gdbinit (pitx): Don't use enum names, use their values.
6248 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6249 (pgx): Don't use enum names, use their values.
6250 (pitmethod): New helper command.
6251 (pitx): Use it to display iteration method.
6252 (pgrowit): New command.
6253
ad903955
EZ
6254 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6255
3f670e9a
EZ
6256 Update dependencies in Makefile.in.
6257
6258 * Makefile.in (alloc.o): Depend on termhooks.h.
6259 (atimer.o): Depend on blockinput.h.
6260 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6261 and frame.h.
6262 (callint.o): Depend on systime.h, coding.h, and composite.h.
6263 (callproc.o): Depend on buffer.h.
6264 (casefiddle.o): Don't depend on charset.h.
6265 (casetab.o): Depend on character.h.
6266 (ccl.o): Depend on composite.h.
6267 (chartab.o): Depend on ccl.h.
6268 (cm.o): Depend on dispextern.h.
6269 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6270 (coding.o): Don't depend on $(INTERVALS_H).
6271 (composite.o): Don't depend on dispextern.h explicitly (it's in
6272 $(INTERVALS_H)). Depend on ccl.h.
6273 (data.o): Depend on systime.h, coding.h, composite.h,
6274 dispextern.h, font.h, and ccl.h.
6275 (dired.o): Depend on composite.h.
6276 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6277 composite.h (it's in $(INTERVALS_H)).
6278 (doc.o): Depend on systime.h, coding.h, and composite.h.
6279 (editfns.o): Don't depend explicitly on dispextern.h.
6280 (emacs.o): Depend on frame.h and coding.h.
6281 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6282 (fileio.o): Depend on frame.h and commands.h. Don't depend
6283 explicitly on dispextern.h.
6284 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6285 composite.h.
6286 (fns.o): Don't depend on termhooks.h.
6287 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6288 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6289 coding.h, $(INTERVALS_H), window.h, xterm.h.
6290 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6291 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6292 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6293 fontset.h, ccl.h, and ftfont.h.
6294 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6295 (gtkutil.o): Depend on dispextern.h and composite.h.
6296 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6297 termhooks.h, and ccl.h.
6298 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6299 (intervals.o): Depend on systime.h and coding.h.
6300 (keyboard.o): Depend on composite.h and coding.h.
6301 (keymap.o): Depend on coding.h and frame.h.
6302 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6303 (macros.o): Depend on systime.h, coding.h, and composite.h.
6304 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6305 and atimer.h.
6306 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6307 dispextern.h explicitly.
0b5397c2
SM
6308 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6309 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6310 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6311 (regex.o): Don't depend on charset.h.
6312 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6313 (search.o): Don't depend explicitly on composite.h.
6314 (sound.o): Depend on atimer.h and systime.h.
6315 (syntax.o): Don't depend explicitly on composite.h.
6316 (sysdep.o): Depend on coding.h and composite.h.
6317 (term.o): Depend on xterm.h and buffer.h.
6318 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6319 (textprop.o): Don't depend on dispextern.h explicitly.
6320 (undo.o): Depend on dispextern.h.
6321 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6322 dispextern.h and composite.h explicitly.
6323 (xdisp.o): Depend on ccl.h.
6324 (xfaces.o): Depend on coding.h and ccl.h.
6325 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6326 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6327 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6328 ftfont.h.
6329 (xgselect.o): New dependency.
6330 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6331 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6332 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6333 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6334 (xsmfns.o): Depend on frame.h and dispextern.h.
6335 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6336 sysselect.h.
6337
7a6f7fea
AS
63382009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6339
6340 * font.c (Fclear_font_cache): Pass correct cache argument to
6341 font_clear_cache.
6342
f4c21026
AS
63432009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6344
6345 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6346 twice.
6347
f7ab0997
CY
63482009-12-15 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6351 calling file-remote-p. Reported by Jim Meyering.
6352
fa8e045a
MA
63532009-12-15 Michael Albinus <michael.albinus@gmx.de>
6354
6355 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6356 avoid compiler warnings. (Bug #5217)
fa8e045a 6357
a63dba42
KH
63582009-12-14 Kenichi Handa <handa@m17n.org>
6359
6360 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6361 in 8-bit encoding.
6362
5ce6e4f4 63632009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6364
6365 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6366 tooltip windows.
6367
223e5fc6
JD
63682009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6369
36acb2a7
JD
6370 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6371 Xatom_net_window_type.
6372
6373 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6374 Xatom_net_window_type.
6375
b8f00677
JD
6376 * xterm.c (my_log_handler): New function.
6377 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6378 so we can filter out buggy messages. (Bug #5120).
b8f00677 6379
e5f0bc9a
JD
6380 * xterm.c (xg_scroll_callback): Parameter list changed,
6381 use parameter GtkScrollType to determine scroll/line/page.
6382 Only allow dragging if a button < 4 is grabbed (bug #5177).
6383 (xg_end_scroll_callback): New function.
6384 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6385 xg_create_scroll_bar.
6386
6387 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6388 (scroll_end_callback): Remove.
6389 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6390 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6391 bug #5177.
e5f0bc9a
JD
6392 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6393 bug #5177.
6394
6395 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6396 (xg_create_scroll_bar): Add GCallback end_callback.
6397
223e5fc6
JD
6398 * xftfont.c (QClcdfilter): New variable.
6399 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6400 (syms_of_xftfont): Initialize QClcdfilter.
6401
3c055b77
JD
64022009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6403
6404 * xsettings.c (struct xsettings): Add member seen.
6405 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6406 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6407 (apply_xft_settings): Only update Xft settings with what member seen
6408 indicates as new.
6409
05fe33ff
EZ
64102009-12-12 Eli Zaretskii <eliz@gnu.org>
6411
c4cc8b9a 6412 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6413 (struct glyph): Use EMACS_INT for charpos.
6414 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6415 region_beg_charpos, region_end_charpos,
6416 redisplay_end_trigger_charpos, and also for
6417 iterator_stack_entry.end_charpos and
6418 iterator_stack_entry.stop_charpos.
6419
e8d7886a
JD
64202009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6421
5ce6e4f4 6422 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6423 (xg_create_scroll_bar): Call scroll_end_callback on button release
6424 event (bug #5177).
6425 (xg_event_is_for_scrollbar): != replaced with ==.
6426
d0db2ec8
KH
64272009-12-12 Kenichi Handa <handa@m17n.org>
6428
6429 * ftfont.c (struct ftfont_info): New member matrix.
6430 (ftfont_open): Setup xftfont_info->matrix.
6431 (MFLTFontFT): New member matrix.
6432 (FLOOR, CEIL, ROUND): New macros.
6433 (ftfont_get_metrics): Handle matrix transformation.
6434 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6435
6436 * xftfont.c (struct xftfont_info): New member matrix.
6437 (xftfont_open): Setup xftfont_info->matrix.
6438
64392009-12-10 Kenichi Handa <handa@m17n.org>
6440
6441 * xdisp.c (append_space_for_newline): Consider face-remapping.
6442
2cc7b62f
AS
64432009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6444
b87dd913
AS
6445 * xsettings.c: Include "keyboard.h".
6446
eba5eb94
AS
6447 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6448
2cc7b62f
AS
6449 Fix implicit function declarations.
6450 * cmds.c: Include "frame.h".
6451 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6452 * frame.h: Move declaration of delete_frame outside of
6453 HAVE_WINDOW_SYSTEM.
6454
a4ef73c8
CY
64552009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6456
6457 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6458
6459 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6460 GTK builds.
6461
944a300c
AS
64622009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6463
6464 * unexelf.c (unexec): Don't search for .data twice.
6465
022eef62
CY
64662009-12-05 Chong Yidong <cyd@stupidchicken.com>
6467
426ac949
CY
6468 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6469 if push failed.
6470 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6471 of push_display_prop (Bug#5000).
6472
022eef62
CY
6473 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6474 value of font_list_entities (Bug#5085).
6475
be95bee9
JB
64762009-12-04 Juanma Barranquero <lekktu@gmail.com>
6477
6478 Fix `string-to-number' to deal consistently with integers and floats.
6479 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6480 trailing characters, not just whitespace.
6481 (read1): Pass new arg 0 to keep old behavior.
6482 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6483 trailing chars, as it is already done for integers. Doc fixes.
6484 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6485
24c2d7ce
EZ
64862009-12-04 Eli Zaretskii <eliz@gnu.org>
6487
0b5397c2
SM
6488 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6489 Delete unused enumeration value.
24c2d7ce 6490
7e694795
EZ
64912009-12-03 Eli Zaretskii <eliz@gnu.org>
6492
6493 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6494
84b31826
SM
64952009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6496
6497 * process.c (Fmake_network_process): Fix up the tests for
6498 "connectionless socket", so they DTRT for seqpacket sockets as well.
6499
f00c449b
SM
65002009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6501
6502 * process.c (Qseqpacket): New symbol.
6503 (HAVE_SEQPACKET): New macro.
6504 (Fmake_network_process): Accept new :type `seqpacket'.
6505 (init_process): Add `seqpacket' feature when applicable.
6506 (syms_of_process): Initialize Qseqpacket.
6507
8096a0ff
YM
65082009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6509
6510 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6511 if entity is Qnil.
6512
3e0de07f
SM
65132009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6514
6515 * print.c (print_preprocess): Preprocess the key_and_value table of
6516 hashtables, even tho they're "hidden" (bug#5082).
6517
abeafb2a
JD
65182009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6519
6520 * frame.c (frame_make_pointer_invisible)
6521 (frame_make_pointer_visible): Declare f before statements.
6522
4bf47195
EZ
65232009-11-28 Eli Zaretskii <eliz@gnu.org>
6524
6525 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6526 omitted dependencies on lisp.h.
6527
c525b3f2
JD
65282009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6529
ece2d4ed
JD
6530 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6531 is NULL.
6532
6533 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6534
6535 * frame.c (frame_make_pointer_invisible)
3e0de07f 6536 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6537 frame.
6538
c525b3f2
JD
6539 * search.c (simple_search): Remove warning by making *p const.
6540
2f00e299
DN
65412009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6542
6543 * xdisp.c (power_letter): Remove duplicate const.
6544
084b049b
JD
65452009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6546
a1fadc6f
JD
6547 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6548
5ce6e4f4 6549 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6550 defaults (bug #5025).
6551
28259cac
SM
65522009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6553
6554 * insdel.c (adjust_markers_for_delete): Move it in the
6555 right direction! (bug#4803)
6556
e8e14166
YM
65572009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6558
6559 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6560
6561 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6562
86677b58
GM
65632009-11-24 Glenn Morris <rgm@gnu.org>
6564
6565 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6566
581e51e8
JD
65672009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6568
cfc86c7a
JD
6569 * Makefile.in: Must create deps for ecrt0.o in its rule.
6570
581e51e8
JD
6571 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6572 because that is what Gtk+ font dialog understands.
6573
6574 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6575 of Fcopy_sequence.
6576 (font_open_by_name): Put name given into QCname for font-object returned.
6577
6578 * frame.c (x_set_font): Save original font name as frame parameter
6579 font-parameter.
6580
6581 * xsettings.c (set_default_xft_settings): New function.
6582 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6583 is found.
6584
8b264ecb
AS
65852009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6586
6587 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6588 searching backwards through multibyte buffer.
6589
872870b2
JD
65902009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6591
6592 * xterm.c: #include xgselect.h.
6593 (x_initialize): Call xgselect_initialize.
6594
6595 * xsettings.c (something_changedCB): C++ comments => C comments.
6596 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6597 does that now.
6598
6599 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6600 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6601 (scroll_bar_button_cb): Remove.
5ce6e4f4 6602 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6603 event.
6604 (xg_create_scroll_bar): Don't bind button-press-event and
6605 button-release-event.
6606
6607 * process.c: Include xgselect.h if defined (USE_GTK) ||
6608 defined (HAVE_GCONF).
6609 (wait_reading_process_output): Call xg_select for the same condition.
6610
6611 * xgselect.c (xg_select): New function to better integrate with
6612 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6613
6614 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6615
6616 * Makefile.in (XOBJ): Add xgselect.o.
6617
62a6e103
AS
66182009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6619
0b5397c2
SM
6620 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6621 Remove ignored second argument. All callers changed.
62a6e103
AS
6622 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6623 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6624 * xdisp.c (string_char_and_length): Likewise.
6625
b0ca0f33
DN
66262009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6627
6628 * xterm.c (x_new_font):
6629 * print.c (print_object):
6630 * cmds.c (Fself_insert_command): Move declarations before statements.
6631
dd5a6279
CY
66322009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6633
6634 * s/cygwin.h: Remove unneeded linker flags.
6635
4a8e097d
JD
66362009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6637
0d1d0d26
JD
6638 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6639
6640 * xsettings.h: Declare xsettings_get_system_font.
6641
6642 * xsettings.c (xsettings_get_system_font): New function.
6643 (init_gconf): No use initiating gconf unless we have Xft also.
6644 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6645 HAVE_GCONF.
6646
4a8e097d
JD
6647 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6648 add a blank entry so it doesn't collapse into nothing.
6649
8ab1650e
SM
66502009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6651
6652 * lread.c (Funintern): Comment out last change.
6653
82c602f0
RS
66542009-11-19 Richard Stallman <rms@gnu.org>
6655
6656 * lread.c (Funintern): Error if symbol is t or nil.
6657
87e32266
SM
66582009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6659
6660 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6661 representation of Lisp integers.
6662 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6663
1b9ac145
AS
66642009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6665
6666 * lisp.h: Remove declaration of Ffont_get_system_font.
6667 * xfns.c: Move include of "xsettings.h".
6668 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6669
dfb3c4c6
JD
66702009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6671
87e32266
SM
6672 * xsettings.c (something_changedCB, Ffont_get_system_font):
6673 Check use_system_font.
dfb3c4c6
JD
6674 (syms_of_xsettings): DEFVAR font-use-system-font.
6675
9370c1d8
AS
66762009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6677
25fe851a
AS
6678 * xfns.c (x_default_font_parameter): Remove dead assignment.
6679
9370c1d8
AS
6680 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6681
637fa988
JD
66822009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6683
87e32266 6684 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6685 not have FC_LCD_*. #define them if not there.
a6eb20d8 6686
87e32266 6687 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6688
637fa988
JD
6689 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6690
6691 * xterm.c (handle_one_xevent): Call xft_settings_event for
6692 ClientMessage, PropertyNotify and DestroyNotify.
6693 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6694 Call xsettings_initialize.
6695
6696 * xftfont.c (xftfont_fix_match): New function.
6697 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6698 Call xftfont_fix_match after XftFontMatch.
6699
6700 * xfont.c (xfont_driver): Initialize all members.
6701
87e32266
SM
6702 * xfns.c (x_default_font_parameter):
6703 Try font from Ffont_get_system_font.
637fa988
JD
6704 Do not get font from x_default_parameter if we got one from
6705 Ffont_get_system_font.
87e32266 6706 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6707
6708 * w32font.c (w32font_driver): Initialize all members.
6709
6710 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6711
6712 * lisp.h: Declare syms_of_xsettings.
6713
87e32266
SM
6714 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6715 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6716
6717 * ftfont.c (ftfont_filter_properties): New function.
6718
6719 * frame.c (x_set_font): Remove unused variable lval.
6720
87e32266 6721 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6722
6723 * font.c (font_put_extra): Don't return if val is nil, it means
6724 boolean option is off.
6725 (font_parse_fcname): Collect all extra properties in extra_props
6726 and call filter_properties for all drivers with extra_props and
6727 font as parameter.
87e32266
SM
6728 (font_open_entity): Do not use cache, it does not pick up new
6729 fontconfig settings like hinting.
637fa988
JD
6730 (font_load_for_lface): If spec had a name in it, store it in entity.
6731
a73f9c9d 6732 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6733
6734 * config.in: HAVE_GCONF is new.
6735
6736 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6737 xsettings.o is new.
6738
5a942932
KH
67392009-11-17 Kenichi Handa <handa@m17n.org>
6740
6741 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6742 back to the default font in case that no suitable font is found.
6743
b7c7a4d1
SM
67442009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6745
6746 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6747 Suggested by Chad Brown <yandros@mit.edu>.
6748 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6749
072f1e39
JD
67502009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6751
6752 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6753
5d1e70a2
AS
67542009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6755
87e32266 6756 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6757
a53cfbe5
JD
67582009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6759
473a99b7
JD
6760 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6761 has a parent.
6762
a53cfbe5 6763 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6764 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6765
6766 * config.in: Generated (AUTO_DEPEND).
6767
f04bb9b2
MA
67682009-11-13 Michael Albinus <michael.albinus@gmx.de>
6769
b7c7a4d1 6770 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6771 Vdbus_registered_functions_table, because it contains also
6772 properties. Fix docstring.
b7c7a4d1 6773 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6774
8f11f7ec
SM
67752009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6776
6777 * alloc.c (mark_object): Don't reprocess marked strings.
6778 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6779 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6780
8a605fe8
KH
67812009-11-13 Kenichi Handa <handa@m17n.org>
6782
8f11f7ec 6783 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6784 semantics of Vword_combining_categories.
6785 (Vword_combining_categories): Describe the slight change of the
6786 semantics.
6787
241c4680
EZ
67882009-11-13 Eli Zaretskii <eliz@gnu.org>
6789
6790 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6791
6792 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6793
5d58e44c
SM
67942009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6795
6796 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6797
5e13f9d3
JB
67982009-11-12 Juanma Barranquero <lekktu@gmail.com>
6799
6800 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6801
cf54c754
DR
68022009-11-11 David Reitter <david.reitter@gmail.com>
6803
6804 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6805 variables to fix 2009-11-09 change.
6806
a4ada374
DN
68072009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6808
91433552
DN
6809 * process.c (ifflag_def): Make flag_sym constant.
6810 (Fnetwork_interface_info): Use a constant pointer.
6811 (ifflag_table):
6812 * xfns.c (cursor_bits):
6813 * xdisp.c (power_letter):
6814 * termcap.c (speeds, esctab):
6815 * sysdep.c (baud_convert):
6816 * keyboard.c (lispy_accent_codes, modifier_names):
6817 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6818 (jpeg_format, tiff_format, gif_format, svg_format)
6819 (interlace_start, interlace_increment, gs_format):
6820 * gtkutil.c (separator_names):
6821 * fringe.c (swap_nibble):
6822 * fns.c (base64_value_to_char, base64_char_to_value):
6823 * fileio.c (make_temp_name_tbl):
6824 * coding.c (suffixes): Make constant.
6825
f4265f6c
DN
6826 * frame.c (make_initial_frame):
6827 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6828 build_string.
6829 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6830
04420943
DN
6831 * s/freebsd.h:
6832 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6833
0a5d24ae
DN
6834 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6835 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6836
a4ada374
DN
6837 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6838 * xterm.c (syms_of_xterm):
6839 * xfaces.c (syms_of_xfaces):
6840 * xdisp.c (syms_of_xdisp):
6841 * lread.c (syms_of_lread):
6842 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6843 build_string.
91433552 6844
a4ada374
DN
6845 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6846
af98fc7f
SM
68472009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6848
8ab1650e 6849 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6850
e90292a9
JD
68512009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6852
6853 * keyboard.h: Declare timer_check.
6854
6855 * keyboard.c (timer_check_2): New function that does what the old
6856 timer_check did.
6857 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6858 returned, i.e. don't return -1 with timers pending.
6859
6860 * process.c: Remove extern declaration of timer_check.
6861
6862 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6863 even if timer_check returned -1.
6864
af98fc7f
SM
6865 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6866 xg_dialog_data.
e90292a9
JD
6867 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6868 the event loop.
6869 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6870 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6871 Destroy the dialog after xg_dialog_run.
6872
045b83c0
SM
68732009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6874
6875 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6876
1fb99a3a
JD
68772009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6878
6879 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6880
04e452cb
JB
68812009-11-09 Juanma Barranquero <lekktu@gmail.com>
6882
6883 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6884
ef7417fd
SM
68852009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6886
6887 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6888 w32menu.c, and nsmenu.m.
6889 Simplify the obsolete case where position is nil.
6890 (cleanup_popup_menu): New function, moved from nsmenu.m.
6891 (struct skp): Remove slot `notreal'.
6892 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6893 adjust callers.
6894 (single_menu_item): Adjust call to parse_menu_item.
6895 (syms_of_menu): Defsubr x-popup-menu.
6896 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6897 (keymap_panes): Don't export any more.
6898 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6899 (xmenu_show): Declare.
6900 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6901 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6902 * keyboard.h (parse_menu_item): Update declaration.
6903 * xmenu.c (Fx_popup_menu): Remove.
6904 (syms_of_xmenu): Don't defsubr x-popup-menu.
6905 * w32menu.c (Fx_popup_menu): Remove.
6906 (syms_of_w32menu): Don't defsubr x-popup-menu.
6907 * nsmenu.m (cleanup_popup_menu): Remove.
6908 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6909 moved to menu.c's Fx_popup_menu.
6910 (Fx_popup_menu): Remove.
6911 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6912 menu_items (it's done in menu.c already).
6913
424d6179
SM
69142009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6915
6916 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6917 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6918
c0df13a6 69192009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6920
6921 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6922 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6923 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6924 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6925
2de9f71c
SM
69262009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6927
6928 Let integers use up 2 tags to give them one extra bit and thus double
6929 their range.
6930 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6931 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6932 New macros.
6933 (enum Lisp_Type): Use them. Give explicit values.
6934 (Lisp_Type_Limit): Remove.
6935 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6936 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6937 Pay attention to USE_2_TAGS_FOR_INTS.
6938 (INTEGERP): Use LISP_INT_TAG_P.
6939 * fns.c (internal_equal): Simplify the default case.
6940 (sxhash): Use case_Lisp_Int.
6941 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6942 any more.
6943 (Ftype_of): Use case_Lisp_Int.
6944 (store_symval_forwarding): Take into account the fact that Ints can
6945 now have more than one tag.
6946 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6947 (buffer_slot_type_mismatch):
2de9f71c
SM
6948 * xfaces.c (face_attr_equal_p):
6949 * print.c (print_object):
6950 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6951 Use case_Lisp_Int.
6952
323637a2
EZ
69532009-11-06 Eli Zaretskii <eliz@gnu.org>
6954
7ac65b38
EZ
6955 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6956
323637a2
EZ
6957 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6958 warning.
6959
e511451f
JD
69602009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6961
6962 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6963
6964 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6965
6966 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6967 ButtonPressRelease and MotionNotify (bug#4870).
6968
5e2327cf
DN
69692009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6970
5adc433e
DN
6971 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6972
d67b4f80
DN
6973 * xterm.c (syms_of_xterm):
6974 * xselect.c (syms_of_xselect):
6975 * xmenu.c (syms_of_xmenu):
6976 * xfns.c (syms_of_xfns):
6977 * xfaces.c (syms_of_xfaces):
6978 * xdisp.c (syms_of_xdisp):
6979 * window.c (syms_of_window):
6980 * w32fns.c (syms_of_w32fns):
6981 * undo.c (syms_of_undo):
6982 * textprop.c (syms_of_textprop):
6983 * terminal.c (syms_of_terminal):
6984 * syntax.c (syms_of_syntax):
6985 * sound.c (syms_of_sound):
6986 * search.c (syms_of_search):
6987 * print.c (syms_of_print):
6988 * minibuf.c (syms_of_minibuf):
6989 * macros.c (syms_of_macros):
6990 * keymap.c (syms_of_keymap, initial_define_key)
6991 (initial_define_lispy_key):
6992 * keyboard.c (syms_of_keyboard):
6993 * insdel.c (syms_of_insdel):
6994 * image.c (syms_of_image):
6995 * fringe.c (syms_of_fringe):
6996 * frame.c (syms_of_frame):
6997 * fontset.c (syms_of_fontset):
6998 * fns.c (syms_of_fns):
6999 * fns.c (syms_of_fns):
7000 * fileio.c (syms_of_fileio):
7001 * fileio.c (syms_of_fileio):
7002 * eval.c (syms_of_eval):
7003 * doc.c (syms_of_doc):
7004 * dispnew.c (syms_of_display):
7005 * dired.c (syms_of_dired):
7006 * dbusbind.c (syms_of_dbusbind):
7007 * data.c (syms_of_data):
7008 * composite.c (syms_of_composite):
7009 * coding.c (syms_of_coding):
7010 * cmds.c (syms_of_cmds):
7011 * charset.c (define_charset_internal, syms_of_character):
7012 * ccl.c (syms_of_ccl):
7013 * category.c (syms_of_category, init_category_once):
7014 * casetab.c (syms_of_casetab):
7015 * casefiddle.c (syms_of_casefiddle):
7016 * callint.c (syms_of_callint):
7017 * bytecode.c (syms_of_bytecode):
7018 * buffer.c (keys_of_buffer, syms_of_buffer):
7019 * alloc.c (syms_of_alloc):
7020 * process.c (syms_of_process, init_process):
7021 * lread.c (syms_of_lread, init_obarray):
7022 * font.c (build_style_table):
7023 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7024 intern_c_string, calls to make_pure_string with
7025 make_pure_c_string. Use pure_cons instead of Fcons.
7026
5e2327cf
DN
7027 * process.c (socket_options): Make it const.
7028 (set_socket_option, init_process): Use a const pointer.
7029
7030 * lread.c (intern_c_string): New function.
7031 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7032 (defvar_int): Uset it. Make the name const char*.
7033
7034 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7035 (defvar_int): Update prototypes.
7036 (DEFUN, EXFUN): Support for prototypes is now required.
7037 (intern_c_string): New prototype.
7038 (struct Lisp_Subr): Make symbol_name constant.
7039
7040 * font.c (struct table_entry): Remove unused member. Make NAMES
7041 constant.
7042 (weight_table, slant_table, width_table): Make constant.
7043
7044 * emacs.c (struct standard_args): Make name and longname constant.
7045
7046 * character.h (DEFSYM): Use intern_c_string.
7047
a56eaaef
DN
70482009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7049
7050 * alloc.c (make_pure_c_string): New function.
7051
7052 * eval.c (Fautoload): Purecopy all arguments.
7053
f6a07420
KH
70542009-11-05 Kenichi Handa <handa@m17n.org>
7055
7056 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7057 the buffer in case of replace.
7058
5d28d4b1
DN
70592009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7060
7061 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7062
b349d111
SM
70632009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7064
d528b1ce
SM
7065 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7066 when applicable (bug#4851).
7067
b349d111
SM
7068 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7069 (P_): Support for prototypes is now required.
7070
c38eb027
CY
70712009-10-31 Chong Yidong <cyd@stupidchicken.com>
7072
7073 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7074 (Bug#4827).
7075
0405f8d9
EZ
70762009-10-30 Eli Zaretskii <eliz@gnu.org>
7077
d528b1ce 7078 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7079
ca0a881a
DN
70802009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7081
7082 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7083
d528b1ce
SM
7084 * lread.c (Fload): Purecopy the file name when building
7085 Vpreloaded_file_list.
ca0a881a 7086
47e0e0e4
JR
70872009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7088
7089 * w32fns.c (syms_of_w32fns): Change default value of
7090 w32-scroll-lock-modifier to nil. (Bug#2827)
7091
057bce6f
JB
70922009-10-26 Juanma Barranquero <lekktu@gmail.com>
7093
782a943e 7094 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7095
242bc74c
AS
70962009-10-26 Andreas Schwab <schwab@redhat.com>
7097
7098 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7099
522d013a
JB
71002009-10-26 Juanma Barranquero <lekktu@gmail.com>
7101
7102 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7103 For delta < 0, skip check that only makes sense when the mini-window
7104 is going to be enlarged. (Bug#4534)
7105
18060980
CY
71062009-10-25 Chong Yidong <cyd@stupidchicken.com>
7107
7108 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7109 string in menu maps (Bug#4471).
7110
fec8f0fe
CY
71112009-10-24 Chong Yidong <cyd@stupidchicken.com>
7112
7113 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7114 FRAME_NS_VIEW on terminal frames (Bug#4765).
7115
10d66ec0
AS
71162009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7117
1cae01f7
AS
7118 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7119 DBUS_TYPE_UINTnn separately to get proper sign extension.
7120
58a12889
AS
7121 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7122 can properly handle unsigned types.
d528b1ce 7123 (make_uid, make_gid): Remove.
58a12889 7124
987c9327
AS
7125 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7126 types again.
7127
522d013a 7128 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7129 (system_process_attributes): Likewise.
7130
905a9ed3
DN
71312009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7132
7133 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7134
7135 * eval.c (Fautoload): Purecopy the filename. Simplify.
7136
7137 * category.c (Fdefine_category): Purecopy docstring.
7138
a599b3e8
AS
71392009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7140
7b792fc9
AS
7141 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7142
a599b3e8
AS
7143 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7144
b35ac83e
CY
71452009-10-23 Chong Yidong <cyd@stupidchicken.com>
7146
7147 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7148 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7149 (Bug#4775).
7150
e8903e00
SM
71512009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7152
7153 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7154 (init_fileio_once):
7155 * lisp.h (init_fileio_once): Remove.
7156 * emacs.c (main): Don't call init_fileio_once.
7157
8f43cbf3
DN
71582009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7159
7160 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7161
26898943
AS
71622009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7163
7164 * doprnt.c (doprnt): Fix overflow check.
7165
5c646d5a
JD
71662009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7167
3132a7ea
JD
7168 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7169
5c646d5a
JD
7170 * xterm.h (x_wait_for_event): Declare it.
7171
7172 * xterm.c (pending_event_wait): New variable.
7173 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7174 see pending_event_wait.eventtype.
7175 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7176 (x_new_font): Call change_frame_size with new rows/columns before we
7177 try to resize the frame.
5c646d5a 7178 (x_wait_for_event): New function.
d528b1ce
SM
7179 (x_set_window_size_1): Don't change gravity unless change_gravity
7180 is set.
5c646d5a
JD
7181 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7182 don't change frame size, instead wait for the ConfigureNotify.
7183 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7184 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7185 (x_initialize): Initialize pending_event_wait.
7186
7187 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7188 size.
7189
7190 * widget.c (EmacsFrameSetValues): Add comment.
7191 (EmacsFrameSetCharSize): Just call x_set_window_size.
7192
7193 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7194 x_wait_for_event.
d528b1ce 7195 (flush_and_sync): Remove again.
5c646d5a
JD
7196 (xg_get_font_name): Suggest monospace if no previous font is known.
7197
e9c1637d
SM
71982009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7199
7200 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7201 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7202
5a72cccb
YM
72032009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7204
7205 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7206 processing pending events when event is filtered for input method.
ab04798f 7207 (Bug#3681)
5a72cccb 7208
2629aa37
JB
72092009-10-20 Juanma Barranquero <lekktu@gmail.com>
7210
7211 * fns.c: Add #endif accidentally removed in previous change.
7212
c3417a74
DN
72132009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7214
7215 * fns.c: Remove code for unsupported system: MAC_OS.
7216 * image.c: Likewise. Include setjmp.h.
7217
9685cef2
JD
72182009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7219
7220 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7221 pixel -1 (bug #4742).
7222
d7306fe6
DN
72232009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7224
019d2c4c
DN
7225 * process.c (create_pty): Remove conditionals for no longer
7226 supported systems: UNIPLUS and RTU.
7227
ee6bacd4
DN
7228 * xterm.c:
7229 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7230
d7306fe6
DN
7231 * alloc.c: Do not define struct catchtag.
7232 * eval.c: Move struct catchtag definition ...
7233 * lisp.h: ... here.
7234
7235 * image.c: Move png.h #include earlier to avoid warnings.
7236
7237 * xterm.c:
7238 * xsmfns.c:
7239 * xselect.c:
7240 * xrdb.c:
7241 * xmenu.c:
7242 * xftfont.c:
7243 * xfont.c:
7244 * xfns.c:
7245 * xfaces.c:
7246 * xdisp.c:
7247 * window.c:
7248 * widget.c:
7249 * w32xfns.c:
7250 * w32uniscribe.c:
7251 * w32term.c:
7252 * w32select.c:
7253 * w32reg.c:
7254 * w32proc.c:
7255 * w32menu.c:
7256 * w32inevt.c:
7257 * w32heap.c:
7258 * w32font.c:
7259 * w32fns.c:
7260 * w32console.c:
7261 * w32.c:
7262 * w16select.c:
7263 * vm-limit.c:
7264 * unexsol.c:
7265 * unexec.c:
7266 * unexcw.c:
7267 * unexaix.c:
7268 * undo.c:
7269 * tparam.c:
7270 * textprop.c:
7271 * terminfo.c:
7272 * terminal.c:
7273 * termcap.c:
7274 * term.c:
7275 * syntax.c:
7276 * sound.c:
7277 * sheap.c:
7278 * search.c:
7279 * scroll.c:
7280 * region-cache.c:
7281 * regex.c:
7282 * ralloc.c:
7283 * process.c:
7284 * print.c:
b024548b
DN
7285 * nsterm.m:
7286 * nsselect.m:
7287 * nsmenu.m:
7288 * nsimage.m:
7289 * nsfont.m:
7290 * nsfns.m:
d7306fe6
DN
7291 * msdos.c:
7292 * minibuf.c:
7293 * menu.c:
7294 * marker.c:
7295 * macros.c:
7296 * keymap.c:
7297 * keyboard.c:
7298 * intervals.c:
7299 * insdel.c:
7300 * indent.c:
7301 * gtkutil.c:
7302 * ftxfont.c:
7303 * ftfont.c:
7304 * fringe.c:
7305 * frame.c:
7306 * fontset.c:
7307 * font.c:
7308 * fns.c:
7309 * floatfns.c:
7310 * filelock.c:
7311 * fileio.c:
7312 * emacs.c:
7313 * editfns.c:
7314 * dosfns.c:
7315 * doprnt.c:
7316 * doc.c:
7317 * dispnew.c:
7318 * dired.c:
7319 * dbusbind.c:
7320 * data.c:
7321 * composite.c:
7322 * coding.c:
7323 * cmds.c:
7324 * cm.c:
7325 * chartab.c:
7326 * charset.c:
7327 * character.c:
7328 * ccl.c:
7329 * category.c:
7330 * casetab.c:
7331 * casefiddle.c:
7332 * callproc.c:
7333 * callint.c:
7334 * bytecode.c:
7335 * buffer.c:
7336 * atimer.c: Include setjmp.h. (Bug#4643)
7337
fd5f21e6
SM
73382009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7339
4c0354d7
SM
7340 Remove leftover table unibyte_to_multibyte_table.
7341 * character.c (unibyte_to_multibyte_table): Remove.
7342 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7343 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7344 * character.h (UNIBYTE_TO_CHAR): New macro.
7345 (MAKE_CHAR_MULTIBYTE): Use it.
7346 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7347 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7348 (message_dolog, set_message_1):
7349 * search.c (Freplace_match):
7350 * editfns.c (Fcompare_buffer_substrings):
7351 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7352 (concat):
7353 * insdel.c (copy_text, count_size_as_multibyte):
7354 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7355 * term.c (produce_glyphs):
7356 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7357 * regex.c (RE_CHAR_TO_MULTIBYTE):
7358 * cmds.c (internal_self_insert):
7359 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7360
fd5f21e6
SM
7361 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7362
4418646e
DN
73632009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7364
7365 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7366
35f5c1d2
JB
73672009-10-16 Juanma Barranquero <lekktu@gmail.com>
7368
7369 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7370
a0cd8f6b
AR
73712009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7372
7373 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7374 still needed under Tiger.
7375
7376 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7377
7378 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7379 __Apple__.
7380
7381 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7382
01a8d3fa
KH
73832009-10-15 Kenichi Handa <handa@m17n.org>
7384
7385 * print.c (print_object): Escape a symbol like "2E10" too.
7386
bf6c75c9 73872009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7388
7389 Cleanups and changes for 64-bit compile under Snow Leopard.
7390 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7391
7392 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7393
c5959062 7394 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7395 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7396 cast argument.
7397 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7398 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7399
7400 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7401
7402 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7403 where appropriate.
7404
7405 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7406 where appropriate.
6e4780c5
JB
7407 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7408 Use stringWithUTF8String.
bf6c75c9
AR
7409 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7410
6e4780c5
JB
7411 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7412 Add formal protocol mention to inheritance.
bf6c75c9
AR
7413 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7414
6e4780c5
JB
7415 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7416 Fix printf format.
bf6c75c9
AR
7417 (ns_query_color): Use CGFloat where appropriate.
7418 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7419 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7420 argument.
7421
3d87f118
AR
7422 * config.in (NS_HAVE_NSINTEGER): Drop.
7423
a95c8102
AR
7424 * dbusbind.c (dbus-method-return-internal)
7425 (dbus-method-error-internal): Use long format in printf, and cast
7426 argument.
7427
7428 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7429 in printf, and cast argument.
7430
6873acca 7431 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7432 cast argument.
7433
9ec6f100
GM
74342009-10-11 Glenn Morris <rgm@gnu.org>
7435
7436 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7437
5be883cd
JD
74382009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7439
7440 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7441 menu bar with a small width so it doesn't enlarge the frame.
7442
d7a39b51
JB
74432009-10-08 Juanma Barranquero <lekktu@gmail.com>
7444
7445 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7446
0c2b6f8e
GM
74472009-10-06 Glenn Morris <rgm@gnu.org>
7448
7449 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7450 SOME_MACHINE_LISP (this enters indirectly via DOC).
7451
e02131a2
EZ
74522009-10-05 Eli Zaretskii <eliz@gnu.org>
7453
7454 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7455
b4744254
EZ
74562009-10-04 Eli Zaretskii <eliz@gnu.org>
7457
7458 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7459 Doc fix.
7460
dbf64827
JB
74612009-10-03 Martin Rudalics <rudalics@gmx.at>
7462
7463 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7464
e9a0aef8
MA
74652009-10-02 Michael Albinus <michael.albinus@gmx.de>
7466
d528b1ce 7467 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7468 used anymore outside fileio.c.
7469
7470 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7471
64eb2b56
JB
74722009-10-01 Juanma Barranquero <lekktu@gmail.com>
7473
7474 * lisp.h (Qdelete_directory_internal):
7475 Declare, instead of Qdelete_directory.
7476
7477 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7478
9d28c33e
SM
74792009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7480
7481 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7482
9d8f3bd9
MA
74832009-10-01 Michael Albinus <michael.albinus@gmx.de>
7484
9d28c33e 7485 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7486 Fdelete_directory. It is not a command anymore. It has no file
7487 name handler.
7488
9694740b
SM
74892009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7490
7491 * xdisp.c (get_next_display_element): Use an enum in last change.
7492
748e162f
KH
74932009-09-28 Kenichi Handa <handa@m17n.org>
7494
9694740b 7495 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7496 unibyte_display_via_language_environment in handling
7497 Vnobreak_char_display.
7498
17efd58d
AR
74992009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7500
7501 * nsterm.h (ns_app_name): New extern variable.
7502
7503 * nsterm.m (ns_app_name): New variable.
7504 (ns_term_init): Set and use it.
7505 (ns_term_shutdown): Use it.
7506
7507 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7508 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7509
7510 * nsfns.m (ns_set_name_iconic, ns_set_name)
7511 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7512 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7513
9694740b
SM
7514 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7515 Remove double-casting in client_data comparison.
31c2d412 7516
3208cb35
YM
75172009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7518
7519 * keyboard.c (make_lispy_event): Remember last wheel direction.
7520 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7521
b7d552d6
GM
75222009-09-26 Glenn Morris <rgm@gnu.org>
7523
7524 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7525 internal.elc. Add term/pc-win.elc.
7526 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7527 term/x-win.elc.
7528 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7529 term/w32-win.elc.
7530 (NS_SUPPORT): New.
7531 (lisp): Add NS_SUPPORT.
7532 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7533
4ff670a8
DR
75342009-09-25 David Reitter <david.reitter@gmail.com>
7535
7536 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7537 on Mac OS X 10.6+ (bug#4513).
7538
feabfb6c
JB
75392009-09-24 Juanma Barranquero <lekktu@gmail.com>
7540
7541 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7542 some parts of Emacs code (like font selection) don't grok them.
7543 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7544
de59072a
AS
75452009-09-24 Andreas Schwab <schwab@redhat.com>
7546
7547 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7548
a489517b
JB
75492009-09-24 Juanma Barranquero <lekktu@gmail.com>
7550
7551 * dired.c (Fdirectory_files): Fix typo in docstring.
7552
0592970c
AR
75532009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7554
7555 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7556 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7557 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7558 under GNUstep.
7559 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7560
7561 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7562 glyph advancement.
7563
48e8a88b
AR
75642009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7565
7566 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7567 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7568
7569 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7570 deleted (bug #4492).
7571
e14f0a78
AR
7572 * nsfont.m (Vns_reg_to_script): New lisp variable.
7573 (syms_of_nsfont): Declare it.
7574 (ns_registry_to_script): New function.
7575 (ns_get_req_script): Call it.
7576 (ns_findfonts): Don't give up on non-unicode registry.
7577
7578 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7579
5b650faa
SM
75802009-09-20 Tom Tromey <tromey@redhat.com>
7581
7582 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7583 batch mode (bug#4228).
7584
a489517b 75852009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7586
7587 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7588 carefully. (Bug #4339)
0bae4e09 7589
fcfe06f3
CY
75902009-09-18 Chong Yidong <cyd@stupidchicken.com>
7591
d798ba87 7592 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7593
31642728
AR
75942009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7595
7596 * emacs.c (inhibit_x_resources): Update doc string for NS.
7597 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7598 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7599
7600 * nsterm.h (ns_no_defaults): Remove.
7601
7602 * nsterm.m (ns_no_defaults): Remove.
7603 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7604 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7605 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7606 don't update the NSWindow itself.
7607 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7608 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7609
7610 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7611 ns_use_qd_smoothing.
7612
7613 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7614 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7615 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7616 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7617
8686ac71
JB
76182009-09-17 Juanma Barranquero <lekktu@gmail.com>
7619
7620 * emacs.c (inhibit_x_resources): New variable.
7621 (main) [HAVE_NS]: Don't process --quick command line option.
7622 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7623
7624 * lisp.h (inhibit_x_resources): Declare it extern.
7625
7626 * w32reg.c (x_get_string_resource):
7627 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7628
e227ba05
EZ
76292009-09-17 Eli Zaretskii <eliz@gnu.org>
7630
362654a6
JB
7631 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7632 Add lisp/term/internal.elc.
e227ba05 7633
742d40e8
SM
76342009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7635
7636 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7637 (bug#4461).
7638
005bd5a2
DN
76392009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7640
7641 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7642
7643 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7644 (OBJECTS_MACHINE): Remove, unused.
7645
f9af9719
SM
76462009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7647
7648 * frame.c (x_get_resource_string): Remove unused.
7649
0307c7d2
JD
76502009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7651
7652 * xterm.c (x_new_font): Call change_frame_size before calling
7653 x_set_window_size, in case frame size won't change.
7654
7655 * frame.c (x_set_font): Remove dead code.
7656
428b13d6
SM
76572009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7658
7659 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7660
5766c380
SM
76612009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7662
7663 * lread.c (Fload): Don't output a message after loading an obsolete
7664 package any more (done in Lisp now).
7665
2fd0161b
CY
76662009-09-12 Chong Yidong <cyd@stupidchicken.com>
7667
7668 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7669
bc5e75b6
SM
76702009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7671
7672 * keymap.c (Fwhere_is_internal): Use nconc2.
7673
c31c985e
AM
76742009-09-11 Alan Mackenzie <acm@muc.de>
7675
7676 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7677 batch mode.
7678
78012bd2
AS
76792009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7680
7681 * xdisp.c (display_mode_element): Detect cycles.
7682
9d889332
SM
76832009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7684
7685 * keymap.c (where_is_internal): Don't erroneously return nil right after
7686 filling the cache.
7687 (where_is_internal_1): Fix up typo.
7688
7ab5d780
GM
76892009-09-11 Glenn Morris <rgm@gnu.org>
7690
7691 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7692 share a common doc-string.
7693
5238a749
SM
76942009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7695
66d77eda
SM
7696 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7697 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7698
5238a749
SM
7699 * keymap.c (QCadvertised_binding): New constant.
7700 (syms_of_keymap): Initialize it.
7701 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7702 if applicable.
7703
19f48442
SM
77042009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7705
50d4ba39
SM
7706 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7707 (parse_menu_item): Streamline since bindings are recomputed all the
7708 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7709 more and don't support lmenu's menu-alias any more either.
7710
a88a5372
SM
7711 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7712 (where_is_internal): Strip it down to only traverse the keymaps.
7713 Move the cache handling from Fwhere_is_internal to here.
7714 (Fwhere_is_internal): Move the handling of remapping and the choice of
7715 the best binding from where_is_internal to here.
7716 Unify the cached/noncached paths, so remapping is also handled
7717 correctly when the cache is used, and so the cache can be used to
7718 speed up remap-handling when applicable.
7719 Give preference to non-remapped bindings.
7720 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7721 non-remapped bindings.
7722 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7723 command remapping.
7724
19f48442
SM
7725 * xdisp.c (display_mode_element): Move list length limit from 50 to
7726 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7727
599498c3 77282009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7729
7730 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7731
f9b7b5ac
SM
77322009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7733
a53af587
JB
7734 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7735 (Bug#4334)
7736
f9b7b5ac
SM
7737 * keymap.c (where_is_internal): Filter out shadowed remappings.
7738 Assume that where_is_internal returns unshadowed bindings to simplify
7739 the code and get rid of the gotos. Use ASIZE.
7740
04f4b72d
JD
77412009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7742
4da146f2
JD
7743 * xterm.c (x_focus_changed): If we get a focusout and pointer
7744 is invisible, make it visible.
7745
04f4b72d
JD
7746 * xterm.h: Remove condition for declaration of
7747 x_*_window_to_frame.
7748
7cef7ce3
SM
77492009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7750
7751 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7752 initial terminal as well.
7753
a54fa5b7
JD
77542009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7755
7756 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7757 x_menubar_window_to_frame.
a54fa5b7 7758
50426a04 7759 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7760 (XTmouse_position): Do not return valid positions
7761 for clicks in the menubar and the toolbar for Gtk+.
7762
7763 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7764 if the widget for the event has the same top level as a frame,
7765 return the frame.
7766 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7767 internal windows, bug #4122.
7768 (x_non_menubar_window_to_frame): Remove.
7769
5a021dd0
GM
77702009-09-02 Glenn Morris <rgm@gnu.org>
7771
7772 * buffer.c (default-major-mode): Move most of the doc from here...
7773 (major-mode): ... to here.
7774
548fe2f3
NR
77752009-08-30 Nick Roberts <nickrob@snap.net.nz>
7776
7777 * process.c (wait_reading_process_output): Keep the descriptor
7778 when pty is used by a non-child process, e.g., in I/O buffer of
7779 GDB this allows inferior to be restarted.
7780
e0840eef
EZ
77812009-08-29 Eli Zaretskii <eliz@gnu.org>
7782
7783 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7784 both branches into one.
7785
82e98df4
SM
77862009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7787
7788 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7789 (main): Use enable-multibyte-characters rather than
7790 default-enable-multibyte-characters. Output a warning message when
7791 running a unibyte session.
7792
890617cb
YM
77932009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7794
7795 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7796 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7797 (copy_data_segment): Also copy __program_vars section.
7798 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7799 (dump_it) [LC_DYLD_INFO]: Use it.
7800
7801 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7802
e7adeadc
EZ
78032009-08-28 Eli Zaretskii <eliz@gnu.org>
7804
7805 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7806 $(SRC)/buildobj.h.
7807 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7808 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7809 $(SRC)/buildobj.h.
7810 (clean): Add buildobj.h.
7811
3ed8bbdc
TZ
78122009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7813
7814 * print.c (print_object): Set escapeflag to 1 when printing
7815 hashtable keys and values.
7816
155a6764
SM
78172009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7818
7819 * lread.c (read_integer): Use doubles (and potentially return a float
7820 number) as we do in string-to-number.
7821 (read1): Use strtol to read integers, signal errors on strtol's
7822 overflow and use floats if strtol's output is too large for
7823 Elisp integers.
7824
877610de
EZ
78252009-08-27 Eli Zaretskii <eliz@gnu.org>
7826
7827 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7828 (make-buildobj-SH): Fix last change.
7829 (SRC): Move to before where it's first used.
7830
ef73e7be
KH
78312009-08-27 Kenichi Handa <handa@m17n.org>
7832
550c8289
KH
7833 * process.c (send_process): Use encode_coding_object instead of
7834 encode_coding_string to perform eol-conversion even if the string
7835 is unibyte.
7836
60afa08d
KH
7837 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7838 character.
7839
ef73e7be 7840 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7841 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7842
7b3a82d7
DN
78432009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7844
5654bf63
DN
7845 * callproc.c (Fcall_process): Remove always true #if.
7846
7b3a82d7
DN
7847 * lisp.h: Replace #if 0 code for checking with text pointing to
7848 the --enable-checking configure flag.
7849
7850 * emacs.c (main): Mention the --enable-profiling configure flag
7851 instead of using CFLAGS.
7852
878bde49
KR
78532009-08-26 Ken Raeburn <raeburn@raeburn.org>
7854
7855 * Makefile.in (buildobj.h): New target.
7856 (doc.o): Depend on it.
7857 (temacs${EXEEXT}): Don't generate buildobj.lst.
7858 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7859 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7860 ($(BLD)/doc.$(O)): Depend on it.
7861 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7862 provided by Eli Zaretskii.)
7863 ($(TEMACS)): Don't generate buildobj.lst.
7864 * doc.c: Include buildobj.h.
7865 (buildobj): New static variable.
7866 (Fsnarf_documentation): Use it, instead of opening and reading
7867 buildobj.lst.
7868
1574224c
MA
78692009-08-25 Michael Albinus <michael.albinus@gmx.de>
7870
7871 * dbusbind.c (Fdbus_call_method)
7872 (Fdbus_call_method_asynchronously): Use English numeric format for
7873 timeout values in doc string.
7874
d9da2f45
KH
78752009-08-25 Kenichi Handa <handa@m17n.org>
7876
ef73e7be
KH
7877 * alloc.c (mark_char_table): New function.
7878 (mark_object): Use mark_char_table for a char-table.
7879
d9da2f45
KH
7880 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7881 (CHAR_TABLE_REF): Use it.
7882
c8edcc01
KR
78832009-08-23 Ken Raeburn <raeburn@raeburn.org>
7884
7885 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7886 before invoking the newly build emacs to check for load-path
7887 shadowing.
7888
7763401b
GM
78892009-08-22 Glenn Morris <rgm@gnu.org>
7890
7891 * Makefile.in (bootstrap_exe): New variable.
7892 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7893 Use ${bootstrap_exe}.
7894
729eadda
EZ
78952009-08-22 Eli Zaretskii <eliz@gnu.org>
7896
7897 * coding.h (encode_coding_string): Don't encode unibyte strings.
7898 (Bug#4047)
7899
eb4c6ace
MA
79002009-08-22 Michael Albinus <michael.albinus@gmx.de>
7901
7902 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7903
7904 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7905 intended as hotfix only.
7906 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7907
36e34d1b
AR
79082009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7909
7910 * nsterm.m (ns_get_color): Update documentation properly for last
7911 change, and clean up loose ends in the code left by it. Fix
7912 longstanding bug with 16-bit hex parsing, and add support for
7913 yet another X11 format (rgb:r/g/b) for compatibility.
7914 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7915 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7916
f983eb8a
SM
79172009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7918
7919 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7920
3f56d3c6
MA
79212009-08-20 Michael Albinus <michael.albinus@gmx.de>
7922
7923 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7924 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7925 (xd_initialize, xd_pending_messages): Check, whether
7926 $DBUS_SESSION_BUS_ADDRESS is set.
7927
fb641d68
YM
79282009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7929
7930 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7931
7932 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7933
cf59a374
GM
79342009-08-20 Glenn Morris <rgm@gnu.org>
7935
7936 * emacs.c (system-type): Doc fix.
7937
1373f3be
SM
79382009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7939
7940 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7941 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7942
058ed861
MA
79432009-08-18 Michael Albinus <michael.albinus@gmx.de>
7944
1373f3be
SM
7945 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7946 New functions.
058ed861
MA
7947 (xd_initialize): Revert change from 2009-08-16.
7948
563a866e 79492009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7950
7951 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7952 font-group vector, return nil.
5fc05db0 7953
e42bdf01
CY
79542009-08-17 Chong Yidong <cyd@stupidchicken.com>
7955
7956 * process.c (status_notify): Don't perform redisplay.
7957 (Fdelete_process, list_processes_1, process_send_signal):
7958 Expliticly perform redisplay.
7959 (wait_reading_process_output): Always check process status, but
7960 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7961
4230ab74
KR
79622009-08-17 Ken Raeburn <raeburn@raeburn.org>
7963
1373f3be 7964 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7965 (XFLOAT_INIT): New macro for storing a float value.
7966 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7967 * fns.c (sxhash): Copy out the value of a float in order to
7968 examine its bytes.
7969 * dbusbind.c (xd_append_arg): Likewise.
7970
4230ab74
KR
7971 * emacs.c (main): Don't call syms_of_data twice.
7972
a0645cdd
MA
79732009-08-16 Michael Albinus <michael.albinus@gmx.de>
7974
7975 * dbusbind.c (xd_initialize): Add connection file descriptor to
7976 input_wait_mask, in order to let select() detect, whether a new
7977 message has been arrived.
ca4f31ea 7978 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7979
485db0ba
MA
79802009-08-15 Michael Albinus <michael.albinus@gmx.de>
7981
1373f3be
SM
7982 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7983 New functions.
485db0ba
MA
7984
7985 * lisp.h (xd_pending_messages): Declare.
7986
7987 * keyboard.c (readable_events): Call xd_pending_messages.
7988
b5b98ff4
CY
79892009-08-15 Chong Yidong <cyd@stupidchicken.com>
7990
1373f3be 7991 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7992
f8354c6e
CY
7993 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7994
b5b98ff4
CY
7995 * buffer.c (set_buffer_internal_1)
7996 (swap_out_buffer_local_variables): Check for unbound local
7997 variables (Bug#4138).
7998
8b9fc636
EZ
79992009-08-14 Eli Zaretskii <eliz@gnu.org>
8000
8001 * process.c (create_pty): Fix last change.
8002
ce959360
CY
80032009-08-13 Chong Yidong <cyd@stupidchicken.com>
8004
8005 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8006 (xbm_load_image): Caller changed.
64b807c9 8007 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8008
c7baf7e9
NR
80092009-08-13 Nick Roberts <nickrob@snap.net.nz>
8010
8011 * process.c (create_pty): New function.
8012 (Fstart_process): Use it to allow Emacs to just associate a pty
8013 with the buffer. See associated change in gdb-mi.el.
8014 (list_processes_1): Deal with no program name.
8015 (start_process_unwind): Use pid == -2 to mean no process.
8016
1ac9108a
SM
80172009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8018
8019 * cmds.c (nonundocount): New global variable.
8020 (keys_of_cmds): Initialize it.
8021 (Fself_insert_command): Use it to combine upto 20 sequential chars
8022 into a single undo entry, just like the Qself_insert_command code in
8023 keyboard.c does.
8024 Call frame_make_pointer_invisible, also like the Qself_insert_command
8025 code in keyboard.c does.
8026 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8027 than its own local replacement for it.
8028
e267324c
KR
80292009-08-10 Ken Raeburn <raeburn@raeburn.org>
8030
1ac9108a 8031 * fns.c (concat): Don't re-set string length to its current value.
77437343 8032
1ac9108a
SM
8033 * coding.h (decode_coding_string, encode_coding_string):
8034 Use SBYTES macro.
f0bed503 8035
1ac9108a 8036 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8037 (doprnt): Merge with doprnt1, discarding lispstrings code.
8038 * lisp.h (doprnt_lisp): Don't declare.
8039
416e006d
JL
80402009-08-07 Juri Linkov <juri@jurta.org>
8041
8042 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8043
6f7d5780
DN
80442009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8045
8046 * print.c (syms_of_print): Undo previous change.
8047
f19a0f5b
TZ
80482009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8049
8050 * lread.c (read1, syms_of_lread): Read hashtables back from the
8051 readable format.
8052
8053 * print.c (print_preprocess, print_object): Print hashtables fully
8054 and readably.
8055 (syms_of_print): Provide 'hashtable-print-readable.
8056
b9173dc2
AR
80572009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8058
8059 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8060 no family set.
8061 (nsfont_open): Handle case when entity has no family.
8062
1586503c
AR
80632009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8064
8065 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8066 element, not a list, for match case.
8067
087048cd
KH
80682009-07-28 Kenichi Handa <handa@m17n.org>
8069
8070 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8071 rigidly.
8072
8073 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8074 font_parse_xlfd. Check font properties more rigidly.
8075
780c2506
DN
80762009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8077
31fd7c5c
JB
8078 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8079 bsd-common.h.
780c2506 8080
a8c0cc18
KH
80812009-07-27 Kenichi Handa <handa@m17n.org>
8082
8083 * xfaces.c (face_with_height): Call font_clear_prop.
8084
4fbe2306
CY
80852009-07-26 Chong Yidong <cyd@stupidchicken.com>
8086
111d9af3
CY
8087 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8088
8089 * xterm.c (x_term_init): Use Qx.
8090
4fbe2306
CY
8091 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8092
1ac9108a 8093 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8094 (ns_get_color): Revert 2009-07-16 change.
8095
beb0b7f9
EZ
80962009-07-25 Eli Zaretskii <eliz@gnu.org>
8097
8098 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8099 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8100
2baf5e76
KR
81012009-07-25 Ken Raeburn <raeburn@raeburn.org>
8102
1ac9108a
SM
8103 * coding.h (decode_coding_string, encode_coding_string):
8104 Use SCHARS macro.
8890e5f5 8105
2baf5e76 8106 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8107 (load_depth): Delete.
2baf5e76
KR
8108 (Qload_in_progress): New variable.
8109 (load_unwind): Don't reference load_depth or load_in_progress.
8110 (Fload): Likewise; specbind Qload_in_progress instead.
8111 (init_lread): Don't initialize load_depth.
8112 (syms_of_lread): Initialize and protect Qload_in_progress.
8113
1395c6f5
AR
81142009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8115
8116 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8117
4e2f36cf
AR
81182009-07-23 Yavor Doganov <yavor@gnu.org>
8119
8120 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8121
5dd9a6f7
AR
81222009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8123
8124 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8125 Bugs 3792, 3720, 2402.
8126 (ns_lookup_indexed_color): Check for bad index.
8127 (ns_index_color): Init unused slot to 0.
8128 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8129 Bug 3714, possibly 3082.
5dd9a6f7 8130
c902b920
JR
81312009-07-22 Jason Rumney <jasonr@gnu.org>
8132
1ac9108a
SM
8133 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8134 Position IME window at cursor (Bug#2570).
c902b920
JR
8135 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8136 (globals_of_w32fns): Dynamically load functions required above.
8137
8138 * w32term.c (w32_draw_window_cursor): Send message to reposition
8139 any IME window.
8140
090101cf
CY
81412009-07-21 Chong Yidong <cyd@stupidchicken.com>
8142
8143 * fileio.c: Revert 2009-07-16 changes.
8144 (Vauto_save_include_big_deletions): New variable.
8145 (Fdo_auto_save): Disable auto-save only if
8146 auto-save-include-big-deletions is nil.
8147
e6583e3d
CY
81482009-07-21 Chong Yidong <cyd@stupidchicken.com>
8149
8150 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8151 the overflowed pixels into account (Bug#3879).
8152
ece435a5
KR
81532009-07-21 Ken Raeburn <raeburn@raeburn.org>
8154
8155 * lread.c (load_depth): New variable.
8156 (Fload, load_unwind, init_lread): Set it to the load recursion
8157 depth; set load_in_progress as a simple boolean based on the
8158 current load_depth. (Bug#3892)
8159
40b2d973
AR
81602009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8161
8162 * nsfont.m (ns_has_attribute): Remove.
8163 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8164
10be7e0d
JL
81652009-07-18 Juri Linkov <juri@jurta.org>
8166
8167 * process.c (Fset_process_query_on_exit_flag): Mention killing
8168 a buffer in docstring.
8169
fa055055
KH
81702009-07-17 Kenichi Handa <handa@m17n.org>
8171
8172 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8173
042f7b69
YM
81742009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8175
8176 * nsfns.m (Fns_set_alpha): Remove function.
8177 (syms_of_nsfns): Don't defsubr it.
8178
8179 * nsterm.m (ns_get_color): Remove incompatible color formats.
8180 (ns_color_to_lisp): Generate #rrggbb color format string.
8181
4be941e3
RS
81822009-07-16 Richard Stallman <rms@gnu.org>
8183
8184 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8185 (Fset_buffer_auto_saved): Handle save_length = -2.
8186
4e6b227d
CY
81872009-07-16 Chong Yidong <cyd@stupidchicken.com>
8188
8189 * xterm.c (Qx_gtk_map_stock): New var.
8190
8191 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8192 of calling intern each time.
8193
a1856973
YM
81942009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8195
8196 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8197 does tiling.
8198
8199 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8200
497e54d8
KH
82012009-07-14 Kenichi Handa <handa@m17n.org>
8202
72d36834
KH
8203 * font.c (font_vconcat_entity_vectors): New function.
8204 (struct font_sort_data): New member font_driver_preference.
8205 (font_compare): Check font_driver_preference.
8206 (font_sort_entities): The format of the first argument changed.
8207 (font_delete_unmatched): Likewise.
8208 (font_list_entities): The return type changed.
8209 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8210 (font_find_for_lface): Adjuste for the above changes.
8211 Don't suppress the checking of C even if the repertory supports it.
8212 (Flist_fonts): Adjust for the above changes.
72d36834 8213
1ac9108a
SM
8214 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8215 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8216 Reject a font who has adstyle property that is different from a
8217 langname derived from registry property.
1ac9108a 8218 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8219
b6046155
EZ
82202009-07-13 Eli Zaretskii <eliz@gnu.org>
8221
8222 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8223 local copy of dirfilename.
8224
fb6b6049
KH
82252009-07-13 Kenichi Handa <handa@m17n.org>
8226
e2402a5e
KH
8227 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8228 against max_char.
8229
fb6b6049
KH
8230 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8231 calling XSYMBOL (sym).
8232
65156807
EZ
82332009-07-11 Eli Zaretskii <eliz@gnu.org>
8234
1ac9108a
SM
8235 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8236 New function.
8237 (directory_files_internal) [WINDOWSNT]:
8238 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8239 the filesystem of the directory is fast or slow.
8240
8241 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8242 file name.
8243 (is_slow_fs): New function.
8244 (stat): Use it to determine whether to issue more system calls to
8245 get accurate file attributes, when w32-get-true-file-attributes is
8246 `local'.
8247
e0ab5fcf
JD
82482009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8249
8250 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8251 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8252 parameter font-parameter as default to the font dialog.
8253
784ceded
KH
82542009-07-10 Kenichi Handa <handa@m17n.org>
8255
8256 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8257
fb8edc0b
EZ
82582009-07-09 Eli Zaretskii <eliz@gnu.org>
8259
1ac9108a 8260 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8261
fb8edc0b
EZ
8262 * w32.c (stat): Treat UNC file names as residing on remote
8263 drives. (Bug#3542)
8264
635c75b1
KH
82652009-07-09 Kenichi Handa <handa@m17n.org>
8266
8267 * fontset.c (fontset_find_font): Fix previous change.
8268
c1d5ce94
MA
82692009-07-08 Michael Albinus <michael.albinus@gmx.de>
8270
8271 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8272 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8273 error flag.
8274
edb61b39
KH
82752009-07-08 Kenichi Handa <handa@m17n.org>
8276
374bf7e4
KH
8277 * fontset.c (fontset_find_font): Fix the logic of handling
8278 charset_matched.
8279 (font_for_char): Delete unused var.
8280 (generate_ascii_font_name): Delete it.
8281
edb61b39
KH
8282 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8283
8284 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8285 (encode_coding_sjis): Fix the code range check.
8286
0f3f018c
CY
82872009-07-07 Chong Yidong <cyd@stupidchicken.com>
8288
8289 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8290 (Fexpand_file_name): Copy string data properly (Bug#3772).
8291
fcaf6f3a
JD
82922009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8293
8294 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8295 first MapNotify.
8296
6809ca75
KH
82972009-07-07 Kenichi Handa <handa@m17n.org>
8298
8299 * character.h (unibyte_has_multibyte_table): Delete extern.
8300 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8301
8302 * charset.c (Fset_charset_priority): Update charset_unibyte.
8303 (syms_of_charset): Initialize charset_unibyte.
8304
8305 * character.c (unibyte_has_multibyte_table): Delete it.
8306 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8307 charset_unibyte.
8308 (multibyte_char_to_unibyte_safe): Likewise.
8309 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8310
1ac9108a 8311 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8312 (x_produce_glyphs): Likewise.
8313
8314 * .gdbinit (xcharset): Fix the treating $arg0.
8315
ad9e2d54
EZ
83162009-07-04 Eli Zaretskii <eliz@gnu.org>
8317
8318 Emulation of `getloadavg' on MS-Windows.
50426a04 8319 * w32.c: Include float.h.
ad9e2d54
EZ
8320 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8321 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8322 (get_native_system_info, get_system_times): New functions.
8323 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8324 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8325 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8326 g_b_init_get_system_times, and num_of_processors.
8327
0a3472c7
JR
83282009-07-03 Jason Rumney <jasonr@gnu.org>
8329
8330 * w32term.c (w32_initialize): Use standard types.
8331
80904120
EZ
83322009-07-03 Eli Zaretskii <eliz@gnu.org>
8333
8334 * dired.c (Ffile_attributes): Decode user and group names by the
8335 locale's encoding. (Bug#3443)
8336
6978862d
DN
83372009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8338
f8d23104
DN
8339 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8340 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8341
8342 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8343
8344 * term.c (init_tty): Remove spurious #ifdef.
8345
6978862d
DN
8346 * m/mips.h: Mention this file is also used for netbsd.
8347 * m/pmax.h: Remove file.
8348
e044e4fc
JD
83492009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8350
8351 * xterm.h (struct x_display_info): Add invisible_cursor.
8352 (struct x_output): Add current_cursor.
8353
8354 * xterm.c (XTtoggle_invisible_pointer): New function.
8355 (x_define_frame_cursor): Don't define cursor if invisible or the
8356 same as before. Set current_cursor.
8357 (x_create_terminal): Set toggle_invisible_pointer_hook.
8358
8359 * xfns.c (make_invisible_cursor): New function.
8360 (x_set_mouse_color): Call make_invisible_cursor.
8361 Set current_cursor.
8362 (x_window): Set current_cursor.
8363
8364 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8365
8366 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8367 inserting a character.
8368 (read_avail_input): Call frame_make_pointer_visible.
8369
8370 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8371 (frame_make_pointer_invisible, frame_make_pointer_visible):
8372 New functions.
e044e4fc
JD
8373 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8374
8375 * frame.h: Declare frame_make_pointer_invisible and
8376 frame_make_pointer_visible.
8377 (struct frame): Add pointer_invisible.
8378
574c8efa
JD
83792009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8380
7b507248
JD
8381 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8382 frame isn't visible.
8383 (xg_frame_resized): If width/height is -1, get size of window
8384 from X server.
8385
8386 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8387 for MapNotify.
8388
835bdaa7 8389 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8390 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8391 (flush_and_sync): Reintroduce.
574c8efa 8392
3f1c6666 83932009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8394
31fd7c5c 8395 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8396
8397 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8398 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8399
8400 * frame.h: Declare Qsticky.
8401
cad9ef74
JD
8402 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8403
8404 * nsfns.m (ns_frame_parm_handlers): Ditto.
8405
8406 * frame.c: Declare Qsticky.
8407 (frame_parms): Add sticky.
8408
8409 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8410
8411 * xterm.h: Declare x_set_sticky.
8412
8413 * xterm.c (x_set_sticky): New function.
8414
69b16610
JD
8415 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8416 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8417 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8418
8419 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8420
8421 * frame.c: Qmaximized is new.
8422 (x_set_frame_parameters): Do not handle fullscreen specially.
8423 Only set width and height if explicitly set.
8424 (x_set_fullscreen): Handle Qmaximized.
8425 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8426 (syms_of_frame): Initialize Qmaximized.
8427
1ac9108a
SM
8428 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8429 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8430
8431 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8432 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8433 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8434 set gravity to NorthWestGravity when USE_GTK.
8435 (set_wm_state): New function.
31fd7c5c 8436 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8437 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8438 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8439 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8440 to x_real_positions and x_fullscreen_adjust.
8441
8442 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8443 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8444 flush_and_sync.
8445 (xg_height_changed): New function.
8446 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8447 and gtk_window_set_policy. Set frame gravity after parsing the
8448 geometry string.
3f1c6666
JD
8449 (xg_update_frame_menubar, free_frame_menubar)
8450 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8451 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8452 Remove calls to xg_frame_set_char_size.
8453
fd503d99
KH
84542009-07-01 Kenichi Handa <handa@m17n.org>
8455
8456 * keyboard.c (decode_keyboard_code): New function.
8457 (tty_read_avail_input): Decode the input bytes if necessary.
8458
1ac9108a
SM
8459 * coding.c (setup_coding_system):
8460 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8461 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8462 use Qno_conversion.
8463
24ed93fb
YM
84642009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8465
8466 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8467
99061dfc
CY
84682009-06-30 Chong Yidong <cyd@stupidchicken.com>
8469
1ac9108a 8470 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8471
ff90fbde
JR
84722009-06-30 Jason Rumney <jasonr@gnu.org>
8473
8474 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8475 is already loaded.
8476 Set user model ID if supported (bug#1849).
8477
5f445726
JM
84782009-06-29 Jim Meyering <meyering@redhat.com>
8479
8480 Remove useless if-before-xfree test.
8481 * nsfont.m (nsfont_close): Remove useless test.
8482 * term.c (delete_tty): Likewise.
8483 * w32.c (system_process_attributes): Likewise.
8484 * w32font.c (w32font_close): Likewise.
8485 * xfaces.c (x_free_gc): Likewise.
8486 * xselect.c (buffer): Likewise.
8487
b9607587
AS
84882009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8489
8490 * process.c (send_process): Keep decoded string in a local
8491 variable and protect it from GC. (Bug#3521)
8492
89ba96f4
EZ
84932009-06-28 Eli Zaretskii <eliz@gnu.org>
8494
8495 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8496 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8497
098a1589
CY
84982009-06-28 Chong Yidong <cyd@stupidchicken.com>
8499
485422be
CY
8500 * xdisp.c (start_display, handle_face_prop)
8501 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8502 (redisplay_window, try_window_id, produce_image_glyph):
8503 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8504
098a1589
CY
8505 * xterm.c (x_update_window_begin, x_new_focus_frame)
8506 (x_scroll_bar_handle_click, handle_one_xevent)
8507 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8508 (x_make_frame_visible, x_make_frame_invisible)
8509 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8510 code chunks that are now obsolete.
8511
78c38319
MA
85122009-06-28 Michael Albinus <michael.albinus@gmx.de>
8513
8514 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8515 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8516 for hours, when optimzation is enabled.
8517 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8518 (xd_read_message): Make them static.
8519
4189ed40
CY
85202009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8521
8522 * term.c (turn_on_face): Allow simultaneously bold and dim
8523 terminal faces (Bug#3530).
8524
cd9b5e16
CY
85252009-06-27 Chong Yidong <cyd@stupidchicken.com>
8526
4e23bedb
CY
8527 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8528
cd9b5e16
CY
8529 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8530 truncation glyphs (Bug#3686).
8531
07cc3c35
GM
85322009-06-27 Glenn Morris <rgm@gnu.org>
8533
8534 * m/pmax.h: Restore file, with only netbsd portions.
8535
31fd7c5c 85362009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8537
cd9b5e16 8538 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8539
42d4a64f
KH
85402009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8541
8542 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8543 the arg FORCE_SYMBOL.
8544
930fe55b 85452009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8546
8547 * fontset.c (fontset_find_font): When a usable rfont_def is found
8548 in a fallback font-group, make it the first element of the group.
8549
57ebc3fd
CY
85502009-06-24 Chong Yidong <cyd@stupidchicken.com>
8551
8552 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8553
f084f942
KH
85542009-06-24 Kenichi Handa <handa@m17n.org>
8555
8556 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8557 set for C.
8558 (fontset_font): Record the availability of a font for C both in
8559 the realized fontsets of the current one and the default one.
8560
2f686c87
DN
85612009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8562
8563 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8564 conditional, it is always defined on AIX.
8565
666e158e
MB
85662009-06-23 Miles Bader <miles@gnu.org>
8567
8568 * window.c (Vrecenter_redisplay): New variable.
8569 (syms_of_window): Initialize it.
8570 (Qtty): New extern declaration.
8571 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8572
c6da7cd2
JM
85732009-06-23 Jim Meyering <meyering@redhat.com>
8574
1ac9108a
SM
8575 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8576 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8577 pointer dereferences are guaranteed to be valid.
c6da7cd2 8578
678dca3d
KH
85792009-06-23 Kenichi Handa <handa@m17n.org>
8580
74d75424
KH
8581 * emacs.c (main): Call init_font ().
8582
8583 * font.h (Vfont_log): Extern it.
8584 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8585
8586 * font.c (font_sort_entities, font_list_entities)
8587 (font_matching_entity, font_open_entity)
8588 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8589 (Vfont_log): Delete static.
8590 (font_log_env_checked): Delete this variable.
8591 (font_add_log): Don't check font_log_env_checked.
8592 (font_deferred_log): Check Vfont_log.
8593 (init_font): New function.
8594
678dca3d
KH
8595 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8596
8597 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8598
8599 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8600
8601 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8602
8603 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8604 (face_for_char): Don't call font_deferred_log here.
8605 (font_for_char): Likewise.
8606
8a668709
CY
86072009-06-22 Chong Yidong <cyd@stupidchicken.com>
8608
9a01ee33
CY
8609 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8610 rather than its background_width for drawing the overline and
8611 underline (Bug#489).
8612
8613 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8614 rather than its background_width for drawing the overline and
8615 underline (Bug#489).
ec7c9926
CY
8616 (xg_default_icon_file): New variable.
8617 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8618 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8619
8a668709
CY
8620 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8621 (load_overlay_strings): Remove externs.
8622 (fast_find_position): Function deleted.
8623 (mouse_face_from_buffer_pos): New function, based on
8624 fast_find_position. Correctly handle before-strings,
8625 display-strings, and after-strings (Bug#1220).
8626 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8627
4d4c02d8
CY
86282009-06-21 Chong Yidong <cyd@stupidchicken.com>
8629
1ac9108a 8630 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8631 (move_it_in_display_line_to, move_it_in_display_line_to)
8632 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8633
70243478
CY
86342009-06-21 Chong Yidong <cyd@stupidchicken.com>
8635
8636 * Branch for 23.1.
8637
13087e59
JR
86382009-06-21 Jason Rumney <jasonr@gnu.org>
8639
8640 * w32term.c (keyboard_codepage): New static variable.
8641 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8642 (w32_read_socket) [WM_CHAR]: Use it to decode character
8643 input (bug#3237).
8644 (w32_initialize): Initialize it.
8645 (codepage_for_locale): New function.
8646
4735b74e
KR
86472009-06-20 Ken Raeburn <raeburn@raeburn.org>
8648
8649 * process.c (status_message): Pass Faset index argument as a lisp
8650 object, so as to work with USE_LISP_UNION_TYPE.
8651
0e727afa
YM
86522009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8653
8654 * coding.c (Ffind_coding_systems_region_internal):
8655 Cache checked characters.
8656
cf299835
KH
86572009-06-18 Kenichi Handa <handa@m17n.org>
8658
1ac9108a 8659 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8660
90f20d94
AS
86612009-06-18 Andreas Schwab <aschwab@redhat.com>
8662
8663 * xdisp.c (redisplay_internal): Check that the frame is still
8664 live after redisplay of its windows.
8665 (redisplay_windows): Check that the window is still live.
8666
7f1faf1c
KH
86672009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8668
8669 * coding.c (detect_coding_utf_16): Fix previous change.
8670
cc13543e
KH
86712009-06-16 Kenichi Handa <handa@m17n.org>
8672
8673 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8674 UTF-16 by checking the dispersion of Eth and Oth bytes.
8675
977b85f4
AS
86762009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8677
8678 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8679
66bd43d1
KH
86802009-06-15 Kenichi Handa <handa@m17n.org>
8681
8682 * process.c (status_message): Fix previous change. Be sure to
8683 decode a localized string.
8684
cb5ca9c5
YM
86852009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8686
8687 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8688 add comment explaining why.
8689
ec7709ba 86902009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8691
ec7709ba 8692 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8693
4b7f335c
AR
86942009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8695
8696 * nsfont.m (ns_attribute_value): Remove.
8697 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8698 (ns_has_attribute): Shrink the normal range.
8699 (ns_findfonts): Don't worry about requested spec in determining
8700 need for synthItal.
e41820ee 8701 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8702
73b26103
SZ
87032009-06-14 Seiji Zenitani <zenitani@mac.com>
8704
8705 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8706
5753e4da
KH
87072009-06-11 Kenichi Handa <handa@m17n.org>
8708
8709 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8710 overhang for the static composition case.
8711
3561b671
KH
87122009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8713
5753e4da
KH
8714 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8715 overhang for the automatic composition case.
8716
3561b671
KH
8717 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8718 composition case.
8719
852bbd41
CY
87202009-06-10 Chong Yidong <cyd@stupidchicken.com>
8721
8722 * xdisp.c (get_next_display_element): When handling wrap-prefix
8723 and line-prefix, treat \n as a control character (bug#3502).
8724
9903d1e6
KH
87252009-06-10 Kenichi Handa <handa@m17n.org>
8726
8727 * font.c (font_parse_family_registry): Fix for one-char foundry.
8728 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8729
0bcbaaaa
CY
87302009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8731
8732 * process.c (status_message): Fix handling of multibyte signal
8733 string (Bug#3499).
8734
40aa3f13
JM
87352009-06-09 Jim Meyering <meyering@redhat.com>
8736
1f80c7e2
CY
8737 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8738 color name is missing.
40aa3f13 8739
72d51285
KH
87402009-06-09 Kenichi Handa <handa@m17n.org>
8741
8742 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8743 FROM-CODE and TO-CODE are codepoints of CHARSET.
8744
c1d04d84
AR
87452009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8746
8747 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8748
87492009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8750
8751 Changes to support :script/:lang/:otf in NS font driver.
8752 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8753 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8754 indicate not part of font driver interface, and change callers.
8755 (ns_get_family): Remove pointless null check.
8756 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8757 ns_spec_to_descriptor, ns_descriptor_to_entity.
8758 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8759 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8760 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8761 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8762 (ns_get_req_script, ns_accumulate_script_ranges)
8763 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8764 New functions.
8765 (nsfont_list, nsfont_match): Use ns_findfonts.
8766 (nsfont_open): Use font descriptor instead of traits.
8767 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8768 (dump_glyphstring): Rename to ns_dump_glyphstring.
8769
c7eb9816
AR
8770 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8771
c1d04d84
AR
8772 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8773
8774 * fontset.c (fontset_from_font): Remove NS-specific code.
8775
ec7709ba 87762009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8777
8778 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8779 nonactive windows.
8780
31fd7c5c 87812009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8782
1ac9108a 8783 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8784
68852c13 87852009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8786
8787 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8788
6756cd1d
CY
87892009-06-07 Chong Yidong <cyd@stupidchicken.com>
8790
8791 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8792 account for the overflowing of newlines into the last glyph on the
8793 display line (Bug#3482).
8794
28bf482a
DR
87952009-06-05 David Reitter <david.reitter@gmail.com>
8796
ec7709ba
JB
8797 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8798 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8799 Fns_selection_exists_p, Fns_selection_owner_p.
8800
fdb55376
JR
88012009-06-03 Jason Rumney <jasonr@gnu.org>
8802
8803 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8804 available. (Bug#3379)
8805
05129fbe
KH
88062009-05-29 Kenichi Handa <handa@m17n.org>
8807
1ac9108a
SM
8808 * coding.c (get_translation_table):
8809 Check Venable_character_translation.
05129fbe 8810
ec7709ba 88112009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8812
ec7709ba
JB
8813 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8814 (x_make_frame_visible): Move frame to front rather than calling
15891144 8815 ns_raise_frame().
ec7709ba 8816 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8817 isn't key window.
ec7709ba 8818 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8819 drawRect may be called by NSView even if the frame is hidden.
8820
ec7709ba
JB
8821 * nsfns.m (Fx_create_frame): Follow other ports in
8822 determining visibility; default to t. Ensure async_visible is set.
15891144 8823
21f73755
EZ
88242009-05-23 Eli Zaretskii <eliz@gnu.org>
8825
8826 * dired.c (Ffile_attributes): Doc fix.
8827
34001e41
CY
88282009-05-22 Chong Yidong <cyd@stupidchicken.com>
8829
8830 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8831
46306a17
SM
88322009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8835 and xfont_scratch_props.
8836 (syms_of_xfont): Do it here instead.
8837 (xfont_find_ccl_program): Delete, unused.
8838 (xfont_open): Delete unused var `i'.
8839
ef6e0694
KH
88402009-05-21 Kenichi Handa <handa@m17n.org>
8841
8842 * fontset.c (Qlatin): Don't make it static.
8843
46306a17
SM
8844 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8845 New functions.
ef6e0694
KH
8846 (xfont_scripts_cache, xfont_scratch_props): New variables.
8847 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8848 (xfont_list_pattern): Argument changed. Callers changed.
8849 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8850 (xfont_list): Don't reject a font spec with :script property.
8851 (xfont_has_char): Fix setting of encoding.
8852 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8853 xfont_scratch_props.
8854
88552009-05-19 Kenichi Handa <handa@m17n.org>
8856
46306a17 8857 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8858 Callers changed.
8859
88602009-05-18 Kenichi Handa <handa@m17n.org>
8861
8862 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8863
ac71ced7
SM
88642009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8865
8866 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8867 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8868
1c6d1051
YM
88692009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8870
8871 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8872 (x_delete_terminal): Dissociate resource database from display and
8873 then call XrmDestroyDatabase before closing display.
8874
9b9b779c
AR
88752009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8876
8877 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8878 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8879 whether selected frame is viable before raising it (based on patch
8880 by David Reitter), and improve commentary.
8881 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8882
cccd42d5
KH
88832009-05-15 Kenichi Handa <handa@m17n.org>
8884
8885 * font.c (Ffont_spec): Check arguments.
8886
337fbd17
CY
88872009-05-14 Chong Yidong <cyd@stupidchicken.com>
8888
8889 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8890 weight when testing attributes (Bug#3282).
8891
47a6002f
JD
88922009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8893
8894 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8895 what we expect to get in the next ConfigureNotify event.
8896
9cb363db
YM
8897 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8898 before Xft one (Bug#1696).
8899
b9126609
CY
89002009-05-07 David Reitter <david.reitter@gmail.com>
8901
8902 * nsfns.m (Fx_display_planes): Compute bitplanes using
8903 NSBitsPerPixelFromDepth (Bug#3207).
8904
27a69fd9
CY
89052009-05-10 Chong Yidong <cyd@stupidchicken.com>
8906
8907 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8908
00f37552
TTN
89092009-05-10 Ulrich Mueller <ulm@gentoo.org>
8910
8911 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8912
2d82a920
DR
89132009-05-07 David Reitter <david.reitter@gmail.com>
8914
ec7709ba
JB
8915 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8916 Respect mouse face background.
2d82a920 8917
46b0d52d
DR
89182009-05-07 David Reitter <david.reitter@gmail.com>
8919
ec7709ba
JB
8920 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8921 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8922 in ns_update_begin and ns_update_end.
8923
ce1b23bb
SM
89242009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8925
5996e1b7
SM
8926 * nsfns.m (ns_get_screen): Rewrite.
8927 Don't presume selected-frame is of type `ns'.
8928
ba98e3a0
SM
8929 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8930 all drivers.
8931
ce1b23bb
SM
8932 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8933
bcda200f
YM
89342009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8935
8936 * keyboard.h (add_user_signal): Fix typo in extern.
8937
8938 * lisp.h (add_user_signal): Remove extern.
8939
8940 * unexelf.c (unexec): Consider a section to precede the .bss section
8941 if its addresses overlap that of .bss.
8942 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8943 instead of dumping process.
8944
864660a2
SM
89452009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8946
8947 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8948
50da4e56
SM
89492009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8950
8951 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8952
51520a1a
DN
89532009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8954
8955 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8956 any statements.
8957
409ea3a1
AS
89582009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8959
59c4c60f
AS
8960 * process.c (read_process_output): Make sure the current buffer is
8961 always restored.
8962
409ea3a1
AS
8963 * coding.c (record_conversion_result): Don't modify
8964 Vlast_code_conversion_error for successful result.
8965 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8966
56f00ed2
KH
89672009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8968
8969 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8970 (load_charset_map): Remove unnecessary code.
56f00ed2 8971
4491c9d2
DR
89722009-04-30 David Reitter <david.reitter@gmail.com>
8973
35f5b128 8974 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8975 through f24.
8976
6970f632
CY
89772009-04-30 Chong Yidong <cyd@stupidchicken.com>
8978
8979 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8980
8981 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8982 face_at_buffer_position.
8983 (face_before_or_after_it_pos, get_next_display_element)
8984 (note_mouse_highlight): Update face_at_buffer_position call.
8985
8986 * term.c (term_mouse_highlight):
8987 * msdos.c (IT_note_mouse_highlight):
8988 * fontset.c (Finternal_char_font):
35f5b128 8989 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8990
8991 * dispextern.h (face_at_buffer_position): Update prototype.
8992
0c616f63
KH
89932009-04-30 Kenichi Handa <handa@m17n.org>
8994
35f5b128 8995 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8996
ad3aaf33
AS
89972009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8998
8999 * callproc.c (Fcall_process): Fix GC protection. Make sure
9000 current buffer is always restored.
9001
c3c963a0
YM
90022009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9003
9004 * atimer.c (init_atimer): Also clear stopped_atimers.
9005
9006 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9007
7e3386cb
YM
9008 * process.c (create_process): Clean up merger residues of
9009 2008-07-17 change.
9010
91f68422
CY
90112009-04-29 Ulrich Mueller <ulm@gentoo.org>
9012
9013 * lread.c (Vread_circle): New variable.
9014 (read1): Disable recursive read if Vread_circle is nil.
9015
24b34550
KH
90162009-04-29 Kenichi Handa <handa@m17n.org>
9017
9018 * fontset.h (set_default_ascii_font): Delete extern.
9019
9020 * fontset.c (set_default_ascii_font): Delete this unused function.
9021
9022 * frame.c (x_set_font): When ARG is a font-object, check if the
9023 font-object matches with the ASCII font-spec of the frame's
9c358bda 9024 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9025
77bf07e1
AS
90262009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9027
9028 * fns.c (Flocale_info): Protect vector from GC during decoding.
9029
9030 * process.c (Fstart_process): Protect argv strings from GC during
9031 encoding.
9032
2c55aacf
AS
90332009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9034
9035 * sysdep.c: Include <ctype.h>.
9036
b892d3c9
DR
90372009-04-27 David Reitter <david.reitter@gmail.com>
9038
35f5b128 9039 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9040 Remove commented-out code.
9041
9d0644c4
JB
90422009-04-26 Johan Bockgård <bojohan@gnu.org>
9043
9044 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9045
b7053016
JR
90462009-04-25 Jason Rumney <jasonr@gnu.org>
9047
9048 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9049
4e8231f3
YM
90502009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9051
9052 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9053 Swap bytes in short integer if fringe bitmap width > 8.
9054
493dcf2c
KH
90552009-04-23 Kenichi Handa <handa@m17n.org>
9056
9057 * xfaces.c (Fx_list_fonts): If a font size is specified in
9058 PATTERN, set it in returned scalable fonts.
9059
401e9e57
CY
90602009-04-22 Chong Yidong <cyd@stupidchicken.com>
9061
708e05dc
CY
9062 * keyboard.c (Fset_input_meta_mode): Doc fix.
9063
9064 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9065
1ac9108a 9066 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9067
9068 * coding.c (Fterminal_coding_system): Doc fix.
9069
9070 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9071 (Fx_display_pixel_height, Fx_display_planes)
9072 (Fx_display_color_cells, Fx_server_max_request_size)
9073 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9074 (Fx_display_mm_height, Fx_display_mm_width)
9075 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9076 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9077 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9078 (check_x_display_info): Handle terminal objects instead of
9079 terminal ids.
9080
401e9e57
CY
9081 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9082 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9083 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9084 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9085
df80c7f0
KH
90862009-04-21 Kenichi Handa <handa@m17n.org>
9087
5a8f12af 9088 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9089 (font_score): Check AVGWIDTH too.
908567ef 9090
df80c7f0
KH
9091 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9092 worst case.
1ac9108a
SM
9093 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9094 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9095
705af33f
JR
90962009-04-19 Jason Rumney <jasonr@gnu.org>
9097
9098 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9099 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9100
9101 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9102 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9103 get_phys_cursor_geometry.
9104
b71ac3dd 9105 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9106 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9107 using get_phys_cursor_geometry.
9108
9109 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9110 correctly calculated.
9111
dc2933eb
JD
91122009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9113
1ac9108a
SM
9114 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9115 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9116 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9117 is deprecated.
9118
973e7849
AS
91192009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9120
9121 * font.c (font_put_frame_data): Use xfree instead of free.
9122
314d66f4
JB
91232009-04-17 Juanma Barranquero <lekktu@gmail.com>
9124
9125 * w32font.c (Qja, Qko): Remove declarations.
9126 (syms_of_w32font): Don't DEFSYM them.
9127
cf702558
CY
91282009-04-17 Chong Yidong <cyd@stupidchicken.com>
9129
9130 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9131
9132 * font.h (Qja, Qko): Extern them.
9133
9134 * ftfont.c (Qja, Qko): Remove declarations.
9135
9136 * xfont.c (Qja, Qko): Remove declarations.
9137
b50504f5
KH
91382009-04-17 Kenichi Handa <handa@m17n.org>
9139
bde25748
KH
9140 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9141 string from a vector to handle Latin-1 characters correctly.
9142
b50504f5
KH
9143 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9144 entity even if the cache hits.
9145
f4646fff
AS
91462009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9147
9148 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9149 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9150
e7deaab0
AS
9151 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9152 * lisp.h: Adjust prototypes.
9153
0a0e7d49
CY
91542009-04-16 Chong Yidong <cyd@stupidchicken.com>
9155
9156 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9157 change (Bug#3003).
9158
3c908a57
KH
91592009-04-16 Kenichi Handa <handa@m17n.org>
9160
1ac9108a 9161 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9162
9163 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9164 adstyle.
9165
9166 * ftfont.c (Qja, Qko): Don't make them static.
9167 (enum ftfont_cache_for): New enum.
9168 (fc_charset_table): Undo the previous change.
9169 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9170 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9171 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9172 non-scarable font, try to get AVERAGE_WIDTH.
9173 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9174 Change ft_face_cache from a list of a hash-table. Don't check
9175 `ja' and `ko' adstyle here.
9176 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9177 FTFONT_CACHE_FOR_CHARET.
9178 (ftfont_get_charset): Undo the previous change.
1ac9108a 9179 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9180 (ftfont_close): Likewise.
9181 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9182
9183 * font.c (font_sort_entites): Change the meaning of the arg
9184 BEST-ONLY. Don't optimize for VEC of lenght 1.
9185 (font_select_entity): Just return the value of font_sort_entites.
9186
9187 * xfaces.c (merge_face_vectors): Reflect font properties in
9188 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9189 font_clear_prop if a face attribute doesn't change.
9190
3c908a57
KH
9191 * charset.h (charset_ksc5601): Extern it.
9192
9193 * charset.c (charset_ksc5601): New variable.
9194 (Fdefine_charset_internal): Set charset_ksc5601.
9195 (init_charset_once): Initialize charset_ksc5601 to -1.
9196
d65859c3
DN
91972009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9198
9199 * fileio.c (history_delete_duplicates): Remove unused declaration.
9200
9201 * callint.c (history_delete_duplicates): New declaration.
9202 (Fcall_interactively): Remove command history duplicates when
9203 history_delete_duplicates is true.
9204
3ba010e5
EZ
92052009-04-14 Eli Zaretskii <eliz@gnu.org>
9206
9207 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9208
06f19b91
KH
92092009-04-14 Kenichi Handa <handa@m17n.org>
9210
9211 * font.c (Ffont_info): Fix docstring. Fix the second element of
9212 the returned value (bug#2949).
9213
2cce8bfc
CY
92142009-04-14 Chong Yidong <cyd@stupidchicken.com>
9215
9216 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9217
d156542d
KH
92182009-04-14 Kenichi Handa <handa@m17n.org>
9219
9220 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9221 encoding charset is ascii_compatible.
9222
9223 * charset.c (Fdefine_charset_internal): Make charset
9224 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9225 code_offset is 0, and covers all ASCII characters.
9226
86fa089e
SM
92272009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9228
9229 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9230 (ns_string_to_pasteboard_internal):
9231 * nsmenu.m (process_dialog):
9232 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9233 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9234 * lisp.h (Fx_load_color_file): Declare.
9235
a8a3728b
KH
92362009-04-13 Kenichi Handa <handa@m17n.org>
9237
1ac9108a 9238 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9239 (font_select_entity): Suppress the code to optimize for the same
9240 kind of fonts.
9241 (font_load_for_lface): Get a font that supports at least ASCII
9242 characters.
9243
9244 * ftfont.c (Qja, Qko): New variables.
9245 (fc_charset_table): Delete uniquifier data for iso8859-1.
9246 (ftfont_get_latin1_charset): New function.
9247 (get_adstyle_property): New function.
9248 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9249 bitmap fonts.
9250 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9251 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9252 `ko' or `ja'.
9253 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9254 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9255 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9256 property.
9257 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9258 (syms_of_ftfont): DEFSYM Qja and Qko.
9259
483670b5
KH
92602009-04-09 Kenichi Handa <handa@m17n.org>
9261
12b55765
KH
9262 * charset.c (map_charset_chars): For a charset of `superset'
9263 method, fix calculation of code range.
9264
483670b5
KH
9265 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9266 from the list of extra properties.
9267 (font_clear_prop): Be sure to delete `:name' font property.
9268
57d3b93b
KH
92692009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9270
b4b2c2ca
YM
9271 * dispnew.c (redraw_overlapping_rows): Fix detection of
9272 overlapping for topmost and bottommost rows.
9273
1ac9108a 9274 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9275
472c3609
JR
92762009-04-06 Jason Rumney <jasonr@gnu.org>
9277
9278 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9279
ab193662
KH
92802009-04-06 Kenichi Handa <handa@m17n.org>
9281
9282 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9283
9284 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9285
0c26f026
KH
92862009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9287
9288 * ftfont.c (ftfont_open): Fix checking of the return value of
9289 FT_Load_Char. Fix setting font->underline_thickness.
9290
e173bbce
CY
92912009-04-04 Chong Yidong <cyd@stupidchicken.com>
9292
9293 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9294 (Fterminal_parameters, Fterminal_parameter)
9295 (Fset_terminal_parameter): In doc string, refer to terminal
9296 objects rather than terminal ids.
9297
693a2698
EZ
92982009-04-04 Eli Zaretskii <eliz@gnu.org>
9299
9300 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9301 ret_lim_data. (Bug#2867)
9302
d5221487
CY
93032009-04-03 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9306 so they don't get wider than the window, matching 2006-01-23
9307 change to the partner function in xdisp.c (Bug#2800).
9308
223509a3
KH
93092009-04-03 Kenichi Handa <handa@m17n.org>
9310
9311 * print.c (print_object): Make each lowest sub_char_table start a
9312 new line (Bug#2866).
9313
74fcd0b1
KH
93142009-04-02 Kenichi Handa <handa@m17n.org>
9315
9316 * fontset.c (fontset_font): Record no-font when a fontset
9317 explicitly tells not to try another font-specs.
9318
c542407d
SM
93192009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9320
9321 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9322
e3869731
KH
93232009-03-30 Kenichi Handa <handa@m17n.org>
9324
d8d2f142
KH
9325 * fontset.c (fontset_from_font): Specify only registry in a
9326 font-spec for all characters supported by that registry.
9327
e3869731
KH
9328 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9329 even if HAVE_M17N_FLT is not defined.
9330
5da5f805
CY
93312009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9332
9333 * ftfont.c: Conditionalize prototyping and use of
9334 ftfont_variation_glyphs.
9335
ab226c50
SM
93362009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9337
9628fed7
SM
9338 * frame.c (delete_frame): Work around compiler bug.
9339
9340 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9341 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9342 Some more EMACS_INT.
9343 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9344
9345 * xdisp.c (dump_glyph): Fix typo.
9346
ae19ba7c
SM
9347 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9348 (adjust_markers_gap_motion, adjust_markers_for_delete)
9349 (adjust_markers_for_insert, adjust_point)
9350 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9351 (make_gap, copy_text, count_size_as_multibyte, insert)
9352 (insert_and_inherit, insert_before_markers)
9353 (insert_before_markers_and_inherit, insert_1)
9354 (count_combining_before, count_combining_after, insert_1_both)
9355 (insert_from_string, insert_from_string_before_markers)
9356 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9357 (insert_from_buffer_1, adjust_after_replace)
9358 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9359 (replace_range_2, del_range, del_range_1, del_range_byte)
9360 (del_range_both, del_range_2, modify_region)
9361 (prepare_to_modify_buffer, signal_before_change)
9362 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9363 for buffer positions and sizes.
9364 * lisp.h: Adjust prototypes accordingly.
9365
9366 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9367 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9368 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9369
ab226c50
SM
9370 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9371
46dfb8fb
JD
93722009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9373
9374 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9375 lines and columns so we keep the same pixel height and width.
9376
9377 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9378 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9379 (x_handle_net_wm_state): New function to update frame parameter
9380 fullscreen.
9381 (x_term_init): Initialize atoms for _NET_WM_STATE.
9382
9383 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9384
d347e494
SM
93852009-03-27 Kevin Ryde <user42@zip.com.au>
9386
9387 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9388 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9389 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9390 (Fgpm_mouse_stop): Pass that new parameter.
9391 * termhooks.h (close_gpm): Adjust prototype.
9392
84db11d6
SM
93932009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9394
c95a5008
SM
9395 * lisp.h (Fx_focus_frame): Declare.
9396
84db11d6
SM
9397 * callint.c (Fcall_interactively): For '^' just delegate the work to
9398 handle-shift-selection.
9399 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9400
0a1958d6
CY
94012009-03-24 Chong Yidong <cyd@stupidchicken.com>
9402
0bfdff23
CY
9403 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9404
0a1958d6
CY
9405 * data.c (Qinteractive_form): New variable.
9406 (Finteractive_form): Use it.
9407
9408 * eval.c (Fcommandp): Use Qinteractive_form.
9409
58aec0d6
JR
94102009-03-24 Jason Rumney <jasonr@gnu.org>
9411
9412 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9413 Calculate total size precisely. Decode environment variables
9414 before substituting. (Bug#38)
9415
553dd618
KH
94162009-03-24 Kenichi Handa <handa@m17n.org>
9417
9418 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9419 encoding (Bug#2722).
553dd618 9420
c39ea606
JD
94212009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9422
9423 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9424 that gdpy is set.
9425
bc9b2b5e
AM
94262009-03-22 Alan Mackenzie <acm@muc.de>
9427
9428 * callint.c (Finteractive): Clarify the doc string - even
9429 promptless elements need \n separators.
9430
9f995a76
JR
94312009-03-22 Jason Rumney <jasonr@gnu.org>
9432
9433 * w32term.c (syms_of_w32term): Doc fix for
9434 x-use-underline-position-properties.
9435
22749e9a
EZ
94362009-03-21 Eli Zaretskii <eliz@gnu.org>
9437
9438 * w32.c (getpwuid): Change argument type to unsigned.
9439 (struct w32_id): Change type of `rid' member to unsigned.
9440 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9441 argument ID to unsigned. All callers changed.
9442 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9443
e00553bf
EZ
94442009-03-20 Eli Zaretskii <eliz@gnu.org>
9445
9446 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9447 negative, produce a float value.
9448
9449 * dired.c (make_uid, make_gid): New functions.
9450 (Ffile_attributes): Use them to avoid negative UID and GID.
9451
f761d6b6
JB
94522009-03-20 Juanma Barranquero <lekktu@gmail.com>
9453
9454 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9455 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9456 Fix typos in docstrings.
9457
d507f8d7
KH
94582009-03-19 Kenichi Handa <handa@m17n.org>
9459
9460 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9461 changed, use font_load_for_lface to get a new font object.
9462 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9463
9464 * frame.c (x_set_font): Handle the case that ARG is a cons.
9465
c68845e0
GM
94662009-03-19 Glenn Morris <rgm@gnu.org>
9467
9468 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9469
bfa49dd1
CY
94702009-03-19 Chong Yidong <cyd@stupidchicken.com>
9471
9472 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9473
8458d4c1
KH
94742009-03-19 Kenichi Handa <handa@m17n.org>
9475
9476 * charset.c (load_charset_map_from_file): When a mapfile can't be
9477 loaded, signal an error.
9478
78e7d1fe
EZ
94792009-03-18 Eli Zaretskii <eliz@gnu.org>
9480
9481 * dired.c (Ffile_attributes): Make sure UID and GID are always
9482 positive, even if the value is too large for a positive EMACS_INT.
9483 Doc fix.
9484
9485 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9486
5da9fdfa
YM
94872009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9488
9489 * xmenu.c (xdialog_show): Move Fredisplay call ...
9490 (Fx_popup_dialog): ... here.
9491
7519c40d
SM
94922009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9493
9494 * dired.c (file_name_completion): Disable the first optimization just
9495 installed, since it is not implemented correctly.
9496
2cd298e2
SM
94972009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9498
9499 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9500 only if the entry can affect bestmatch.
2cd298e2
SM
9501 Stop the search early, as Ftry_completion already does.
9502
48d37adf
CY
95032009-03-17 Chong Yidong <cyd@stupidchicken.com>
9504
e10c9c93 9505 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9506
9286b16a
CY
95072009-03-15 Chong Yidong <cyd@stupidchicken.com>
9508
9509 * keyboard.c (parse_menu_item): Don't display remappings as menu
9510 equivalent bindings (Bug#788).
9511
f7b146dc
JR
95122009-03-15 Jason Rumney <jasonr@gnu.org>
9513
9514 * w32term.h (WM_EMACS_PAINT): New message.
9515 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9516 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9517 before passing to lisp thread. (Bug#950)
9518
f761d6b6 95192009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9520
d93f9575
CY
9521 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9522 variable as it was never reset.
9523 (ns_term_init): Remove initialization of Lisp-settable defaults
9524 and ns_expand_space.
9525 (-setPanelFromDefaultValues): Remove ns_expand_space.
9526 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9527 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9528 i.e. no additional spacing, similar to Carbon port.
9529
d93f9575
CY
9530 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9531 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9532
305018ec
JD
95332009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9534
9535 * sound.c (alsa_configure): Remove call to deprecated
9536 snd_pcm_sw_params_set_xfer_align.
9537
f761d6b6 95382009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9539
9540 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9541 after clicking in a detached tool bar.
9542 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9543
46e722a9
SM
95442009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9545
348db3dd
SM
9546 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9547 int/Lisp_Object mixup).
46e722a9 9548
a3d16f39
KH
95492009-03-13 Kenichi Handa <handa@m17n.org>
9550
9551 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9552 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9553 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9554 (set_fontset_font): Change ARG to a vector. Handle range_list in
9555 ARG correctly.
9556 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9557 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9558 the above change.
9559 (fontset_from_font): Fix previous change.
fe24f56a 9560 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9561 entry. If FONTSET is the default fontset, don't set the extra
9562 slot of the returning char-table.
9563
b066e6b6
JB
95642009-03-12 Juanma Barranquero <lekktu@gmail.com>
9565
9566 * nsfns.m (Fx_close_connection): Doc fix.
9567 (Fns_do_applescript): Reflow docstring.
9568 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9569 (Fx_display_pixel_width, Fx_display_pixel_height)
9570 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9571 Fix typos in docstrings.
9572 (Fns_set_alpha): Fix typos in error messages.
9573
d472514e 95742009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9575
d472514e 9576 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9577 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9578 were used for such events.
9579
d472514e
JB
9580 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9581 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9582
d472514e 9583 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9584 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9585
fb930676
KH
95862009-03-11 Kenichi Handa <handa@m17n.org>
9587
ff85581a
KH
9588 * font.h (font_open_by_spec): Extern it.
9589
c50b7e98
KH
9590 * font.c (font_open_by_spec): New function.
9591 (font_open_by_name): Use font_open_by_spec.
9592
fb930676
KH
9593 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9594 fontset of the frame.
9595
9596 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9597 modify the default font of frames that use this fontset.
9598 (num_auto_fontsets): New variable.
9599 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9600 name. Be sure to set FONTSET_ASCII to the correct font name.
9601 (update_auto_fontset_alist): New function.
9602
df4e8455
JB
96032009-03-11 Juanma Barranquero <lekktu@gmail.com>
9604
9605 * makefile.w32-in: Update dependencies.
9606
0a375797
AR
96072009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9608
9609 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9610
61313fa3
SM
96112009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9612
9613 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9614
b55103fb
CY
96152009-03-10 Chong Yidong <cyd@stupidchicken.com>
9616
9617 * lread.c (Feval_buffer): Doc fix.
9618
dde2559c
KH
96192009-03-09 Kenichi Handa <handa@m17n.org>
9620
9621 * charset.c (Qfile_name_handler_alist): Extern it.
9622 (load_charset_map_from_file): Temporarily bind
9623 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9624
df4e8455 96252009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9626
47f588bb
GM
9627 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9628 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9629
4ddf94bd
AR
96302009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9631
4c9bdfc2
AR
9632 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9633 (x_set_window_size): Change back to calculated method of setting
9634 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9635 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9636 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9637
fe41ae9e
AR
9638 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9639
4c9bdfc2
AR
9640 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9641 accelerator in parens under GNUstep.
9642
825d0875
KH
96432009-03-06 Kenichi Handa <handa@m17n.org>
9644
9645 These changes are to detect incorrect composition sequence without
f3b3be74 9646 looking ahead the source. (Bug#2370)
825d0875
KH
9647
9648 * coding.h: Include "composite.h".
9649 (enum compisition_state): New enum.
9650 (struct compisition_status): New struct.
9651 (struct iso_2022_spec): New member cmp_status.
9652 (struct emacs_mule_spec): New struct.
9653 (struct coding_system): New members ctext_extended_segment_len and
9654 embedded_utf_8. Change the union member
9655 spec.emacs_mule_full_support to spec.emacs_mule.
9656
9657 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9658 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9659 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9660 (ADD_COMPOSITION_DATA): New arg nbytes.
9661 (emacs_mule_char): New arg cmp_status.
9662 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9663 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9664 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9665 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9666 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9667 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9668 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9669 (EMACS_MULE_COMPOSITION_END): New macro.
9670 (emacs_mule_finish_composition): New function.
9671 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9672 (decode_coding_emacs_mule): Avoid long looking ahead while
9673 handling composition.
9674 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9675 (ENCODE_COMPOSITION_RULE): New macro.
9676 (finish_composition): New function.
9677 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9678 (DECODE_COMPOSITION_START): New implementation.
9679 (DECODE_COMPOSITION_END): Likewise.
9680 (STORE_COMPOSITION_RULE): New macro.
9681 (decode_coding_iso_2022): Avoid long looking ahead while handling
9682 composition, CTEXT extended segment, and embedded UTF-8.
9683 (setup_coding_system): For a coding of type iso-2022, reset
9684 CODING_ISO_EXTSEGMENT_LEN (coding) and
9685 CODING_ISO_EMBEDDED_UTF_8 (coding).
9686 (get_translation): Delete arguments last_block, from_nchars,
9687 to_nchars. Callers changed.
9688 (produce_chars): Don't modify charbuf. Adjusted for the change of
9689 get_translation.
98a326f7 9690 (produce_composition): Adjust for the new annotation sequence.
825d0875 9691 (handle_composition_annotation): Likewise.
98a326f7 9692 (consume_chars): Adjust for the change of get_translation.
825d0875 9693
ccbc4452
AR
96942009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9695
4ddf94bd 9696 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9697
988a7ddb
KH
96982009-03-05 Kenichi Handa <handa@m17n.org>
9699
9700 * font.c (font_select_entity): New function.
9701 (font_find_for_lface): Use font_select_entity to select a font.
9702
9703 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9704 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9705 font with C restriction.
9706
98a326f7 97072009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9708
be1bce46 9709 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9710
10ea2b82
JR
97112009-03-04 Jason Rumney <jasonr@gnu.org>
9712
2c93b248 9713 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9714 characters that have already been read. (Bug#2569)
2c93b248 9715
10ea2b82
JR
9716 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9717 Log an error message if check_image_size failed.
9718 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9719 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9720
71a0c011
EZ
97212009-03-02 Eli Zaretskii <eliz@gnu.org>
9722
9723 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9724 when decoding process output.
9725
2f63bba8
RS
97262009-03-01 Richard M Stallman <rms@gnu.org>
9727
9728 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9729
9730 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9731
0a9564cb
EZ
97322009-02-28 Eli Zaretskii <eliz@gnu.org>
9733
9734 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9735 (decode_coding_emacs_mule, decode_coding_iso_2022)
9736 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9737 (decode_coding_raw_text, decode_coding_charset)
9738 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9739 Honor inhibit-eol-conversion. (Bug #2186)
9740
449148b3
JR
97412009-02-28 Jason Rumney <jasonr@gnu.org>
9742
9743 * coding.c (detect_coding_charset): If not checking latin extra,
9744 fail on characters between 0x80 and 0xA0. (Bug#2354)
9745
a4aee864
EZ
97462009-02-28 Eli Zaretskii <eliz@gnu.org>
9747
9748 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9749 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9750
d88bee5a
GM
97512009-02-27 Glenn Morris <rgm@gnu.org>
9752
9753 * callint.c (Finteractive): Doc fix.
9754
a808f22d
KH
97552009-02-27 Kenichi Handa <handa@m17n.org>
9756
9757 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9758
caf8d60c
CY
97592009-02-27 Chong Yidong <cyd@stupidchicken.com>
9760
9761 * font.c (font_style_to_value): Set value for unknown symbols to
9762 100 instead of 255.
b61137ea
CY
9763 (weight_table, slant_table, width_table): Treat "unspecified" as
9764 the default value.
caf8d60c 9765
1a0de25c
JB
97662009-02-26 Juanma Barranquero <lekktu@gmail.com>
9767
9768 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9769
8fc45744
JB
97702009-02-25 Juanma Barranquero <lekktu@gmail.com>
9771
107bd7d1
JB
9772 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9773 error as soon as a recursive load is detected.
8fc45744 9774
f097e223
AR
97752009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9776
9777 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9778 before caching.
9779
8810a12f
KH
97802009-02-24 Kenichi Handa <handa@m17n.org>
9781
9782 * fontset.c (fontset_find_font): Fix the condition for checking
9783 unavailable font.
9784
2c7d1565
GM
97852009-02-24 Glenn Morris <rgm@gnu.org>
9786
9787 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9788 whitespace that confuses documentation.
9789
a20878b6
MB
97902009-02-23 Miles Bader <miles@gnu.org>
9791
9792 * process.c (Flist_system_processes, Fprocess_attributes)
9793 (syms_of_process): Rename `system-process-attributes' to
9794 `process-attributes'.
9795
b3b58c01
AS
97962009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9797
1b3b981b
AS
9798 * coding.h (struct coding_system): Make safe_charsets a pointer to
9799 unsigned char.
9800 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9801 being 255.
9802 (SAFE_CHARSET_P): Likewise.
9803 (setup_iso_safe_charsets): Properly setup safe_charsets.
9804 (Fdefine_coding_system_internal): Likewise.
9805 (setup_coding_system): Likewise. Remove unneeded casts.
9806 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9807 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9808 unneeded casts.
9809
b3b58c01
AS
9810 * insdel.c (del_range_2): Don't modify gap contents when called
9811 from decode_coding_object. (Bug#1809)
9812
0b6f228c
CY
98132009-02-21 Chong Yidong <cyd@stupidchicken.com>
9814
9815 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9816 Qfont_object.
9817 (Ftype_of): Recognize font objects.
9818
9819 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9820
9821 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9822 moved to data.c.
9823
52f8870b
AR
98242009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9825
9826 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9827 async_iconified. Based on a patch by Christian Lynbech
9828 <christian.lynbech@tieto.com>.
9829 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9830
7087d5e9
GM
98312009-02-20 Glenn Morris <rgm@gnu.org>
9832
9833 * syntax.c (Fskip_chars_forward): Fix doc typo.
9834
41d2ceef
CY
98352009-02-20 Chong Yidong <cyd@stupidchicken.com>
9836
9837 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9838
1a3b7ca6
CY
98392009-02-19 Chong Yidong <cyd@stupidchicken.com>
9840
9841 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9842
73cce38d
KH
98432009-02-19 Kenichi Handa <handa@m17n.org>
9844
9845 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9846 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9847
a51092ee
DN
98482009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9849
9850 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9851
c423ecca
KH
98522009-02-18 Kenichi Handa <handa@m17n.org>
9853
9854 * font.c (font_check_otf_features): Fix handling of `nil' element.
9855 (Ffont_spec): Describe :lang and :otf in the docstring.
9856
4c1958f4
AS
98572009-02-16 Andreas Schwab <schwab@suse.de>
9858
9859 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9860 string.
9861
5704f39a
KH
98622009-02-16 Kenichi Handa <handa@m17n.org>
9863
9864 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9865 (Bug#1723)
5704f39a 9866
8f0085aa
CY
98672009-02-14 Chong Yidong <cyd@stupidchicken.com>
9868
a057d86a 9869 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9870
9871 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9872 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9873
aff01dd9
EZ
98742009-02-14 Eli Zaretskii <eliz@gnu.org>
9875
9876 * msdos.c (MAX_SCREEN_BUF): New macro.
9877 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9878 Encode the entire run of glyphs sharing the same face, instead of
9879 doing that one glyph at a time (fixes a bug with displaying
9880 double-size characters).
9881
ba301db3
AR
98822009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9883
9884 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9885
9886 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9887 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9888 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9889
9890 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9891 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9892
51d861de
SM
98932009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9894
ac146f82 9895 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9896 invisible areas.
9897
7fed8996
JR
98982009-02-12 Jason Rumney <jasonr@gnu.org>
9899
631ea4fb
JR
9900 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9901 (add_font_entity_to_list): Call check_face_name even when family
9902 is unspecified.
9903
cb4a3e42
JR
9904 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9905 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9906 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9907
7fed8996 9908 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9909 raster fonts. (Bug#2219)
7fed8996 9910
895416e3
KH
99112009-02-12 Kenichi Handa <handa@m17n.org>
9912
9913 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9914 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9915 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9916 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9917 (find_automatic_composition): While looking forward and backward,
9918 check static composition. Fix where to stop looking forward.
9919 (composition_adjust_point): Fix checking of static composition.
9920 (Fcomposition_get_gstring): Pay attention to
1dacf998 9921 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9922
9923 * lisp.h (fast_looking_at): Extern it.
9924
9925 * search.c (fast_looking_at): New function.
9926
51d861de 9927 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9928 <struct glyph>.u.cmp.to.
9929 (append_composite_glyph): Likewise.
9930
51d861de 9931 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9932 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9933 composition.
51d861de 9934 (append_composite_glyph): Adjust for the change of
895416e3
KH
9935 <strcut glyph>.u.cmp.to.
9936
8510724d
JB
99372009-02-11 Juanma Barranquero <lekktu@gmail.com>
9938
9939 * casetab.c (init_casetab_once):
9940 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9941 * font.c (font_update_lface):
9942 * fontset.c (Fnew_fontset):
9943 * ftfont.c (ftfont_drive_otf):
9944 * xfont.c (xfont_open):
9945 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9946
294fa707
SM
99472009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9948
9949 * fileio.c (Fwrite_region): !NILP -> CONSP.
9950
b5bfebec
AS
99512009-02-10 Andreas Schwab <schwab@suse.de>
9952
9953 * process.c (send_process): Properly relocate pointer into data
adab88bd 9954 when using encoded data. (Bug#2272)
b5bfebec 9955
cb84a2be
KH
99562009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9957
9958 * coding.c (detect_coding_charset): Fix previous change.
9959
89e09428
JR
99602009-02-08 Jason Rumney <jasonr@gnu.org>
9961
9962 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9963 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9964
4470a277
AS
99652009-02-07 Andreas Schwab <schwab@suse.de>
9966
9967 * unexelf.c (unexec): Fix error message.
9968
3175b12a
AR
99692009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9970
9971 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9972 when modal window is active. (Bug #2152)
3175b12a
AR
9973 (applicationShouldTerminate:): Remove now-unneeded while loop
9974 around NSRunAlertPanel.
9975
9976 * nsmenu.m (popupSession): New file-global variable.
9977 (pop_down_menu): End the popupSession before closing dialog.
9978 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9979 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9980 don't query NSApp for events (just sleep instead).
9981
8434d0b8
EZ
99822009-02-07 Eli Zaretskii <eliz@gnu.org>
9983
51d861de
SM
9984 * coding.c (syms_of_coding) <translation-table-for-input>:
9985 Modify doc string to discourage use for character code unification.
8434d0b8 9986
aa82edfd
CY
99872009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9988
9989 * atimer.c (run_timers): Update pending_atimers.
9990
2d283c7c
CY
99912009-02-06 Chong Yidong <cyd@stupidchicken.com>
9992
eb306cab
CY
9993 * image.c (svg_load_image): Fix last change.
9994
2d283c7c
CY
9995 * xfns.c (Fx_create_frame): Signal an error if no font is
9996 found (Bug#2147).
9997
4d8e170e
JB
99982009-02-05 Juanma Barranquero <lekktu@gmail.com>
9999
10000 * character.c (syms_of_character) <script-representative-chars>:
10001 Fix typo in docstring.
10002
c96169a0
AR
100032009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10004
10005 * nsmenu.m (pop_down_menu): New function.
10006 (ns_popup_dialog): Call it on unwind.
10007 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10008 call timer_check() (Bug#2154).
10009 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10010 handling_signal is set.
10011 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10012
31fd7c5c 10013 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10014
10015 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10016
10017 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10018
51d861de
SM
10019 * keyboard.c (poll_for_input_1, handle_async_input):
10020 Set handling_signal under HAVE_NS.
c96169a0 10021
aacd8ba1
GM
100222009-02-04 Glenn Morris <rgm@gnu.org>
10023
10024 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10025
4cb75c4b
KH
100262009-02-04 Kenichi Handa <handa@m17n.org>
10027
10028 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10029
10030 * charset.c (Fchar_charset): New optional arg restriction.
10031
10032 * coding.h (coding_system_charset_list): Extern it.
10033
10034 * coding.c (coding_system_charset_list): New function.
10035
10036 * composite.c: Include coding.h and termhooks.h.
10037 (composition_gstring_p): Fix for the terminal case.
10038 (composition_gstring_width): Likewise.
10039 (fill_gstring_body): Likewise.
10040 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10041 the frame.
10042 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10043 is within a composition.
867d4bb3 10044 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10045
10046 * term.c (encode_terminal_code): Fix handling of composition.
10047 (produce_composite_glyph): For static composition, get pixel_width
10048 from struct composition.
10049
826ba17e
AS
100502009-02-02 Andreas Schwab <schwab@suse.de>
10051
10052 * unexelf.c (unexec): Handle unaligned bss offset.
10053
8ad093db
AR
100542009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10055
10056 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10057 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10058
8ad093db
AR
10059 * keyboard.c (handle_interrupt): Don't call
10060 quit_throw_to_read_char() under NS.
d0a76a6e 10061
8ad093db
AR
10062 * blockinput.h: Remove NS-specific code.
10063
4d18a7a2
DN
100642009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10065
db878925
DN
10066 * dispnew.c (window_change_signal): Don't try to get the size of a
10067 suspended tty frame.
10068 * term.c (Fresume_tty): Resize if the size has changed while the
10069 tty was suspended.
10070
4d18a7a2
DN
10071 * alloc.c (mark_stack): Properly conditionalize previous change.
10072
8984df7c
JB
100732009-01-30 Juanma Barranquero <lekktu@gmail.com>
10074
10075 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10076 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10077 Remove; this code is not used on Windows.
10078
75f4f1ac
EZ
100792009-01-30 Eli Zaretskii <eliz@gnu.org>
10080
10081 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10082 EOLs that also has stray ^M characters.
10083
07a1e794
JB
100842009-01-30 Juanma Barranquero <lekktu@gmail.com>
10085
10086 * atimer.c (run_timers, alarm_signal_handler):
10087 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10088 * w32inevt.c (w32_console_read_socket):
10089 * w32term.c (w32_read_socket):
10090 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10091
a8b11cc9
CY
100922009-01-30 Chong Yidong <cyd@stupidchicken.com>
10093
10094 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10095 Initialize it as a relative filename pattern.
10096 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10097 (Fcall_process_region): Simplify temp file creation using
10098 temporary-file-directory.
10099
c279587b
EZ
101002009-01-29 Eli Zaretskii <eliz@gnu.org>
10101
10102 * msdos.c: Rename pending_signals to msdos_pending_signals.
10103 (sig_suspender, sigprocmask): Adjust.
10104
a8fe3242
CY
101052009-01-29 Chong Yidong <cyd@stupidchicken.com>
10106
10107 * keyboard.c (pending_signals): New var.
10108 (poll_for_input, input_available_signal, init_keyboard): Set it.
10109 (process_pending_signals): New function.
10110
10111 * lisp.h (QUIT): Check pending_signals instead of
10112 interrupt_input_pending. Use process_pending_signals.
10113
51d861de 10114 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10115
51d861de 10116 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10117
10118 * sysdep.c (emacs_write): Use process_pending_signals.
10119
10120 * xterm.c (XTread_socket): Update pending_signals.
10121
10122 * w32term.c (w32_read_socket): Update pending_signals.
10123
10124 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10125
6570a1c4
KH
101262009-01-29 Kenichi Handa <handa@m17n.org>
10127
10128 * xftfont.c (xftfont_has_char): New function.
10129 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10130
d72a4afa
AR
101312009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10132
10133 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10134 under GNUstep.
10135 (ns_query_color): New declaration.
10136
10137 * nsterm.m (ns_confirm_quit): New variable.
10138 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10139 (EmacsApp-applicationShouldTerminate:): Use it.
10140 (EmacsPrefsController): Let user set it.
10141 (ns_query_color): New function.
10142 (ns_defined_color): Use it.
10143 (ns_initialize): Drop.
10144 (ns_term_init): Add two lines from ns_initialize(), and set
10145 input_interrupt_mode to nil.
10146
10147 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10148 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10149
9fe78804
KH
101502009-01-28 Kenichi Handa <handa@m17n.org>
10151
10152 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10153 (fontset_get_font_group): Remember that no font-group is specified
10154 for C.
9fe78804 10155
fa57de36
CY
101562009-01-27 Chong Yidong <cyd@stupidchicken.com>
10157
930600e9
CY
10158 * fns.c (concat): Check for string overflow (bug#1787).
10159
fa57de36
CY
10160 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10161 Quadruple undo limits (bug#1501).
10162
7179ce7b
KH
101632009-01-27 Kenichi Handa <handa@m17n.org>
10164
10165 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10166 directly use GT_Get_Char_index.
10167
10168 * xftfont.c (struct xftfont_info): New member `index'.
10169
10170 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10171 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10172
5be8fcc0
CY
101732009-01-26 Kenichi Handa <handa@m17n.org>
10174
10175 * fontset.c (fontset_find_font): Fix handling of non-cons return
10176 value of fontset_get_font_group.
10177 (fontset_font): Revert last change.
10178
19ae3e61
JR
101792009-01-26 Jason Rumney <jasonr@gnu.org>
10180
10181 * w32font.c (w32font_list_internal): Return quickly if registry is
10182 unknown. Simplify final return.
10183 (add_font_entity_to_list): Break complex logic down into more
10184 manageable chunks. Move unknown registry check to
10185 w32font_list_internal.
10186
8612b71a
AR
101872009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10188
10189 Changes to remove Feval calls from GUI under NS.
10190
d8038940
JB
10191 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10192 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10193 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10194
10195 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10196 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10197 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10198 instead of NON_ASCII_KEYSTROKE_EVENT.
10199 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10200 (EmacsApp-applicationShouldTerminate:): Query user.
10201 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10202 instead of Feval.
10203
10204 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10205
10206 * keyboard.c (kbd_buffer_get_event): Check for it.
10207 (keys_of_keyboard): Define lispy keys for
10208 ns-put/unput-working-text.
10209
10210 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10211 versions.
10212 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10213
6288ae55
CY
102142009-01-25 Chong Yidong <cyd@stupidchicken.com>
10215
10216 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10217 setting current_buffer directly. (Bug#2044)
6288ae55 10218
289e7f8f
CY
102192009-01-24 Chong Yidong <cyd@stupidchicken.com>
10220
5ce87308 10221 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10222 any work. (Bug#1952, bug#1990).
5ce87308 10223
64cc3cf6 10224 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10225
b3243e6f
AR
102262009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10227
10228 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10229 (ns_no_defaults): New declaration.
10230 (main): Use it.
e0d2e69a 10231
d900b2af 10232 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10233
d900b2af 10234 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10235
d900b2af
AR
10236 * nsterm.m (ns_no_defaults): New variable.
10237 (ns_initialize): Don't read defaults when ns_no_defaults.
10238 (EmacsView-readSelectionFromPasteboard:)
10239 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10240 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10241 (ns_dumpglyphs_stretch): New function.
10242 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10243 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10244
e0d2e69a
AR
10245 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10246
3ac71f5d
CY
102472009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10248
10249 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10250 call for Sparc64.
10251
3fe53a83
AR
102522009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10253
10254 * nsfns.m:
10255 * nsgui.h:
10256 * nsmenu.m:
10257 * nsselect.m:
10258 * nsterm.h:
10259 * nsterm.m: Remove '23' comments that indicated code added during
10260 update from emacs-20 -> emacs-23.
10261
10f87c6f 102622009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10263
10264 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10265 ns_alternate_modifier. (Bug#1217)
a3b53a85 10266
c7cef62d
AR
10267 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10268 Display all shortcuts, including those w/o super modifier.
10269
575fb8bd
AR
10270 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10271
918b848b
CY
102722009-01-22 Chong Yidong <cyd@stupidchicken.com>
10273
10274 * fileio.c (Vwrite_region_post_annotation_function)
10275 (Vwrite_region_annotation_buffers): New vars.
10276 (build_annotations_unwind): Just reset
10277 Vwrite_region_annotation_buffers.
10278 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10279 Call write-region-post-annotation-function.
10280 (build_annotations): Add to Vwrite_region_annotation_buffers if
10281 buffer changes.
10282
a39e2539
AR
102832009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10284
10285 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10286 Tiger.
51d861de
SM
10287 * nsfns.m (ns_do_applescript):
10288 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10289
35ed44db
AR
102902009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10291
10292 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10293
cbe0b5bf
AR
102942009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10295
10296 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10297
6049d3a0
AR
10298 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10299
10300 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10301 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10302 handle Ctrl-tab. (Bug#1841)
10303 (ns_get_color): Use unsigned long long for scanned hex string value.
10304 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10305 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10306 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10307 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10308 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10309 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10310 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10311
d3810c21 10312 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10313 DPI. (Bug#1316)
d3810c21
AR
10314 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10315 values in onTiger section.
4c7077c3 10316
e301e634
CY
103172009-01-19 Chong Yidong <cyd@stupidchicken.com>
10318
7f82490b
CY
10319 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10320 Check return value of font_spec_from_name.
64cc3cf6 10321 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10322
10323 * font.c (font_spec_from_name): Return Qnil if font name could not
10324 be parsed.
10325 (font_parse_name): Treat a `?' character as part of an XLFD.
10326
e301e634
CY
10327 * fns.c (Fsubstring): Doc fix.
10328
1c0db158
KH
103292009-01-19 Kenichi Handa <handa@m17n.org>
10330
51d861de 10331 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10332 (ftfont_list): Likewise.
10333
acf20901
JB
103342009-01-18 Juanma Barranquero <lekktu@gmail.com>
10335
fff4e459
JB
10336 * dbusbind.c (Fdbus_register_signal):
10337 * process.c (conv_sockaddr_to_lisp):
10338 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10339
acf20901
JB
10340 * callproc.c (Fgetenv_internal): Doc fix.
10341
e7abcdfb
CY
103422009-01-16 Chong Yidong <cyd@stupidchicken.com>
10343
10344 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10345 it is not even used.
10346
b60861e6
GM
103472009-01-16 Glenn Morris <rgm@gnu.org>
10348
10349 * font.c (Ffont_variation_glyphs): Silence compiler.
10350
8db52afe
JB
103512009-01-15 Juanma Barranquero <lekktu@gmail.com>
10352
10353 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10354 Reported by David Robinow <drobinow@gmail.com>.
10355
4cddb209
KH
103562009-01-15 Kenichi Handa <handa@m17n.org>
10357
51d861de 10358 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10359
f247f67b
JR
103602009-01-14 Jason Rumney <jasonr@gnu.org>
10361
10362 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10363 never a fontset. (Bug#1562)
f247f67b 10364
f56a4450
KH
103652009-01-14 Kenichi Handa <handa@m17n.org>
10366
10367 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10368 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10369
4e99855e
CY
103702009-01-13 Chong Yidong <cyd@stupidchicken.com>
10371
10372 * font.c (font_clear_prop): If clearing the family, clear the font
10373 width index too.
10374
fff4e459 10375 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10376
24f01470
JB
103772009-01-12 Juanma Barranquero <lekktu@gmail.com>
10378
10379 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10380 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10381 functions, use sizeof.
10382
a41240a3
MR
103832009-01-12 Martin Rudalics <rudalics@gmx.at>
10384
10385 * keyboard.c (read_char): Fix case where last_nonmenu_event
10386 returned a bad value with submenus. (Bug#447)
10387
944636b8
CY
103882009-01-12 Chong Yidong <cyd@stupidchicken.com>
10389
10390 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10391 family, clear the font width index too.
10392
0dad7c6f
JR
103932009-01-11 Jason Rumney <jasonr@gnu.org>
10394
10395 * keyboard.c (cmd_error_internal): Exit when errors occur before
10396 frame creation and not in daemon mode. (Bug#1836)
10397
7c2363af
CY
103982009-01-10 Chong Yidong <cyd@stupidchicken.com>
10399
10400 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10401 of a display vector, backtrack.
10402 (try_window_reusing_current_matrix): Check glyph type before
10403 referencing charpos member.
10404
97b1b294
EZ
104052009-01-10 Eli Zaretskii <eliz@gnu.org>
10406
10407 Fix Bug #876:
10408
10409 * coding.c (inhibit_null_byte_detection): New variable.
10410 (detect_coding, detect_coding_system): Don't pay attention to null
10411 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10412 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10413 <inhibit-iso-escape-detection>: Doc fix.
10414
4624b6e3
JR
104152009-01-09 Jason Rumney <jasonr@gnu.org>
10416
10417 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10418 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10419 Only report Unicode Plane 2 fonts as unicode-sip.
10420
323b840c
CY
104212009-01-09 Chong Yidong <cyd@stupidchicken.com>
10422
51d861de
SM
10423 * xfaces.c (Fx_font_family_list): Delete function.
10424 Move compatibility version to faces.el.
323b840c 10425
51d861de 10426 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10427
eba7400d
MR
104282009-01-09 Martin Rudalics <rudalics@gmx.at>
10429
10430 * frame.c (x_set_frame_parameters): Remember requested value for
10431 fullscreen before it's reset by the parameter handler.
10432
4b09796d
GM
104332009-01-09 Glenn Morris <rgm@gnu.org>
10434
10435 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10436 (last_command_event): ... and update all users.
4b09796d
GM
10437 (last_input_char): For clarity, rename to...
10438 (last_input_event): ... and update all users.
10439 (last-command-char, last-input-char): Move to subr.el as aliases.
10440 * cmds.c, commands.h: Update for last_command_char rename.
10441
14ccea62
CY
104422009-01-08 Chong Yidong <cyd@stupidchicken.com>
10443
51d861de 10444 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10445
5f004711
JR
104462009-01-08 Jason Rumney <jasonr@gnu.org>
10447
10448 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10449 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10450 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10451 Don't declare.
fff4e459 10452 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10453 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10454
b71f6f73
KH
104552009-01-07 Kenichi Handa <handa@m17n.org>
10456
50b06221 10457 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10458 remember the coding system used for decoding in
50b06221
KH
10459 coding_system (Bug#1039).
10460
b71f6f73 10461 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10462 breaking the loop. (Bug#870)
b71f6f73
KH
10463 (decode_coding_utf_16, decode_coding_emacs_mule)
10464 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10465 (decode_coding_charset): Likewise.
10466
56f668f7
MR
104672009-01-05 Martin Rudalics <rudalics@gmx.at>
10468
10469 * frame.c (x_set_frame_parameters): Make sure height (width) get
10470 applied when fullwidth (fullheight) is set. (Bug#1522)
10471
5da9424d
JB
104722009-01-04 Juanma Barranquero <lekktu@gmail.com>
10473
10474 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10475 (utc_base): Declare as ULONGLONG, not long double.
10476 (convert_time_raw): Delete.
10477 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10478 (initialize_utc_base): New function.
10479 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10480 (convert_from_time_t): Use initialize_utc_base; compute result with
10481 64-bit arithmetic.
10482 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10483
c4605e09
EZ
104842009-01-03 Eli Zaretskii <eliz@gnu.org>
10485
9acef61c 10486 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10487 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10488 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10489 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10490 [!subprocesses]: Define.
10491 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10492 (Flist_system_processes, Fsystem_process_attributes)
10493 [!subprocesses]: Call list_system_processes and
10494 system_process_attributes instead of returning Qnil.
10495
9acef61c
JB
10496 * dosfns.c (system_process_attributes, list_system_processes):
10497 New functions.
c4605e09
EZ
10498
10499 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10500
10501 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10502 Don't use the default (no-op) implementation.
10503
8b7d0a16
JR
105042009-01-03 Jason Rumney <jasonr@gnu.org>
10505
a6d46bc1
JR
10506 * keyboard.c (parse_modifiers_uncached): Wheel events are
10507 clicks (bug#687).
10508
8b7d0a16
JR
10509 * w32term.c (x_query_colors, x_query_color): New functions.
10510
10511 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10512 (svg_load_image): Cast returned pointers from dynamically loaded
10513 functions. Eliminate W32 specific code.
10514
bfe11752
DN
105152009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10516
89e2438a
DN
10517 * nsfns.m (x_set_foreground_color, x_set_background_color)
10518 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10519 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10520 x_ prefix instead of ns_. Update references.
10521 (syms_of_nsfns): Add a FIXME comment.
10522
10523 * nsterm.m (x_set_cursor_type): New prototype.
10524 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10525
bfe11752
DN
10526 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10527 for Solaris instead of incorrectly providing Qutime and Qcutime.
10528
031da700
EZ
105292009-01-02 Eli Zaretskii <eliz@gnu.org>
10530
10531 * w32.c (process_times): Compute sum of utime and stime.
10532 (system_process_attributes): Add Qtime to the alist.
10533
10534 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10535 and add them to the alist.
10536
10537 * process.c (top level) <Qtime, Qctime>: New variables.
10538 (syms_of_process): staticpro them.
10539 (Fsystem_process_attributes): Add their documentation to the doc
10540 string.
10541
10542 * process.h: Declare Qtime and Qctime.
10543
df23bf08
JR
105442009-01-02 Jason Rumney <jasonr@gnu.org>
10545
9acef61c 10546 * image.c (Qgobject): New symbol.
df23bf08
JR
10547 (syms_of_image): Initialize it.
10548 (init_svg_functions): Load some functions from gobject library.
10549
5bbdf7aa
DN
105502009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10551
10552 * frame.c (make_terminal_frame): Remove redundant code and useless
10553 block.
10554
63136da6
AS
105552009-01-01 Andreas Schwab <schwab@suse.de>
10556
10557 * process.c (conv_sockaddr_to_lisp): Add workaround for
10558 getsockname bug on BSD.
10559
9ef69046
CY
105602009-01-01 Chong Yidong <cyd@stupidchicken.com>
10561
d6fafbe0
CY
10562 * xfns.c (x_create_tip_frame): Set border width of the X window.
10563
51d861de 10564 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10565
f9c34147
JR
105662009-01-01 Jason Rumney <jasonr@gnu.org>
10567
9acef61c 10568 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10569 Don't block input, as per earlier xterm.c changes.
10570
f5497e45
AR
105712008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10572
10573 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10574 (ns_appkit_version_int): New function.
10575 (x-server-version): Use ns_appkit_version_int and follow 21+
10576 convention of returning 3 integers.
10577
c19cab20
KH
105782008-12-30 Kenichi Handa <handa@m17n.org>
10579
10580 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10581 (CHAR_SURROGATE_PAIR_P): New macro.
10582
10583 * font.h (struct font_driver): New member get_variation_glyphs.
10584
9acef61c 10585 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10586 (Ffont_variation_glyphs): New function.
10587 (syms_of_font): Defsubr it.
10588
10589 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10590 ftfont_variation_glyphs.
10591 (setup_otf_gstring): New function.
10592 (ftfont_drive_otf): Use it.
10593 (ftfont_shape_by_flt): Handle variation selector.
10594 (ftfont_variation_glyphs): New function.
10595
28cd591f
MR
105962008-12-30 Martin Rudalics <rudalics@gmx.at>
10597
10598 * frame.c (Vemacs_iconified): Remove.
10599
7f714baf
JR
106002008-12-30 Jason Rumney <jasonr@gnu.org>
10601
10602 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10603 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10604
9d2d22ab
CY
106052008-12-30 Chong Yidong <cyd@stupidchicken.com>
10606
10607 * indent.c (Fvertical_motion): Don't advance iterator if we have
10608 reseated to the desired position.
10609
10610 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10611 checking for pos match.
10612
545312c2
KH
106132008-12-30 Kenichi Handa <handa@m17n.org>
10614
1ede3eb6
KH
10615 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10616 just get the low 8-bit of the code.
10617
545312c2
KH
10618 * font.c (font_intern_prop): Validate str as multibyte.
10619
bd7bbf29
DN
106202008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10621
31e0750e
DN
10622 * dispextern.h (struct face): Move lface and hash from the middle
10623 of bitfields.
10624
bd7bbf29
DN
10625 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10626
b5672e7c
DN
106272008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10628
10629 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10630 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10631 instead of intervals.h.
10632
d704470f
AS
106332008-12-26 Andreas Schwab <schwab@suse.de>
10634
10635 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10636 cons.
10637
54b33868
MR
106382008-12-26 Martin Rudalics <rudalics@gmx.at>
10639
10640 * textprop.c (Qminibuffer_prompt): New variable.
10641 (syms_of_textprop): Initialize it.
10642 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10643 in minibuffer-prompt face. (Bug#1662)
10644
40b615d6
JR
106452008-12-25 Jason Rumney <jasonr@gnu.org>
10646
10647 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10648
baae5c2d
JR
106492008-12-24 Jason Rumney <jasonr@gnu.org>
10650
10651 * ralloc.c (r_alloc_reset_variable): New function.
10652
10653 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10654 record of what points where. (Bug#716)
baae5c2d 10655
a9051c88
DN
106562008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10657
10658 * minibuf.c (read_minibuf): Follow the non-interactive case when
10659 running as a daemon, before detaching.
10660
8b146312
AS
106612008-12-22 Andreas Schwab <schwab@suse.de>
10662
10663 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10664 * gtkutil.c (free_widget_value): Use xfree instead of free.
10665
56f2de10
MR
106662008-12-22 Martin Rudalics <rudalics@gmx.at>
10667
10668 * frame.c (delete_frame): New function derived from
10669 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10670 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10671 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10672 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10673 * frame.h: Extern delete_frame.
10674 * window.c (window_loop):
10675 * terminal.c (delete_terminal):
10676 * xterm.c (x_connection_closed):
10677 * xfns.c (Fx_hide_tip):
9acef61c 10678 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10679
1fc200d6
JR
106802008-12-21 Jason Rumney <jasonr@gnu.org>
10681
10682 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10683 when character maps to .notdef character.
10684
5e252df2
SM
106852008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10686
10687 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10688
99b72cc4
JR
106892008-12-20 Jason Rumney <jasonr@gnu.org>
10690
10691 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10692 a graphical frame on Windows. (Bug#1325)
99b72cc4 10693
acc49a52
JD
106942008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10695
10696 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10697
6ea15123
CY
106982008-12-20 Chong Yidong <cyd@stupidchicken.com>
10699
10700 * minibuf.c (Fread_buffer): Doc fix.
10701
b2dab6c8
JR
107022008-12-20 Jason Rumney <jasonr@gnu.org>
10703
54ea0c87 10704 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10705 server name in UNC paths. (Bug#719)
54ea0c87 10706
b2dab6c8 10707 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10708 charbuf. (Bug#1035)
b2dab6c8 10709
6d1921be
DN
107102008-12-19 Daniel Engeler <engeler@gmail.com>
10711
10712 * sysdep.c (serial_configure): Fix typo.
10713
53934c98
DN
107142008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10715
10716 * sysdep.c: Include alloca.h.
f4f634e8
DN
10717 (system_process_attributes): Add implementation for Solaris.
10718
10719 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10720
06e111a6
DN
107212008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10722
10723 Reorganize implementation of Flist_system_processes and
10724 Fsystem_process_attributes. No functional changes.
10725 * process.c: Don't #include pwd.h, grp.h and limits.h.
10726 (Flist_system_processes): Just call list_system_processes.
10727 (Fsystem_process_attributes): Just call system_process_attributes.
10728 (procfs_list_system_processes, time_from_jiffies)
10729 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10730 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10731
10732 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10733 (list_system_processes): Rename from
10734 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10735 Provide a do nothing implementation.
10736 (system_process_attributes): Rename from
10737 procfs_list_system_processes.
10738 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10739 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10740
10741 * w32.c (list_system_processes): Rename from
10742 w32_list_system_processes.
10743 (system_process_attributes): Rename from
10744 w32_system_process_attributes.
10745
10746 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10747
10748 * process.h (w32_list_system_processes)
10749 (w32_system_process_attributes): Remove.
362654a6
JB
10750 (list_system_processes, system_process_attributes):
10751 New prototypes.
06e111a6 10752
6a705b23
KH
107532008-12-19 Kenichi Handa <handa@m17n.org>
10754
10755 * xfont.c (xfont_decode_coding_xlfd): New function.
10756 (xfont_encode_coding_xlfd): New function.
10757 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10758 (xfont_list): Decode and encode XLFD by iso-8859-1.
10759 (xfont_match): Likewise.
10760 (xfont_list_family): Likewise.
10761 (xfont_open): Likewise.
10762
d66c0241 10763 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10764 names are utf-8.
10765
d66c0241 10766 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10767 names are utf-8.
10768
5a130941
JD
107692008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10770
10771 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10772 changed.
bfd20325
JD
10773 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10774 clicked on a detached tool bar button.
5a130941 10775
fd95644b
DN
107762008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10777
10778 * emacs.c (main): Print and error and exit when no data is read
10779 from the pipe.
10780
e6eee6ae
JR
107812008-12-17 Jason Rumney <jasonr@gnu.org>
10782
10783 * w32font.c (w32font_has_char): Always return -1.
10784
a35dd56b
KH
107852008-12-16 Kenichi Handa <handa@m17n.org>
10786
10787 * font.c (font_open_entity): Fix previous change.
10788
0e3635c2
DN
107892008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10790
10791 * process.c: Include <limits.h>.
10792
d4835507 107932008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10794
10795 * font.c (font_update_drivers): Fix mistake in reconstructing the
10796 driver list.
10797
107982008-12-16 Chong Yidong <cyd@stupidchicken.com>
10799
10800 * font.c (font_clear_cache): Fix format of font cache data.
10801
e2cbc401
CY
108022008-12-15 Chong Yidong <cyd@stupidchicken.com>
10803
10804 * xftfont.c (xftfont_open): Free Xft font pattern if
10805 XftFontOpenPattern fails.
10806
10807 * xterm.c (x_free_frame_resources): Remove extraneous call to
10808 free_frame_faces.
10809
b131d535
CY
108102008-12-13 Chong Yidong <cyd@stupidchicken.com>
10811
10812 * xterm.c (x_delete_display): Move xim_close_dpy call to
10813 x_delete_terminal.
10814 (x_delete_terminal): Call xim_close_dpy.
10815
e6df5336
JR
108162008-12-13 Jason Rumney <jasonr@gnu.org>
10817
10818 * w32font.c (intern_font_name): New function.
10819 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10820 (w32font_open_internal, Fx_select_font): Decode font name.
10821 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10822
10823 * w32font.h (intern_font_name): Declare new function.
10824
10825 * w32uniscribe.c (add_opentype_font_name_to_list):
10826 Use intern_font_name.
10827
20d68145
CY
108282008-12-13 Chong Yidong <cyd@stupidchicken.com>
10829
9f2554de
CY
10830 * frame.c (Fdelete_frame): Call free_font_driver_list.
10831
3d9bec9a
CY
10832 * font.c (free_font_driver_list): Implement missing function.
10833
20d68145
CY
10834 * w32term.c (w32_term_init): Don't initialize the image cache
10835 here; it will be done in init_frame_faces.
10836
10837 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10838 (struct x_display_info): Remove unused member null_pixel. New
10839 member xim_callback_data.
10840
10841 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10842 (xim_initialize): Save pointer to callback function data.
10843 (xim_close_dpy): Free callback function data. Call XCloseIM,
10844 reverting 2008-11-04 change by David Smith.
10845 (x_term_init): Don't initialize the image cache here; it will be
10846 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10847 (x_delete_display): Free x_dnd_atoms member.
10848
96f9306b
KH
108492008-12-13 Kenichi Handa <handa@m17n.org>
10850
6dec9044
JB
10851 * font.c (font_rescale_ratio): Moved from xfaces.c.
10852 Argument type changed. Handle a font-spec too.
96f9306b 10853 (font_score): Check Vface_font_rescale_alist.
6dec9044 10854 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10855
10856 * xfaces.c (font_rescale_ratio): Moved to font.c.
10857
8d5b4964
CY
108582008-12-13 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10861
e6df5336
JR
108622008-12-12 Jason Rumney <jasonr@gnu.org>
10863
10864 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10865 Vwindow_system_version to the real w32 major version.
10866
97c6058a
DN
108672008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10868
10869 * term.c (init_tty): Move setting the terminal name before the
10870 potential user: maybe_fatal.
10871
ec4e88d7
CY
108722008-12-11 Chong Yidong <cyd@stupidchicken.com>
10873
d4835507
JB
10874 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10875 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10876
b4233ec9
JR
108772008-12-11 Jason Rumney <jasonr@gnu.org>
10878
8ec71e23 10879 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10880 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10881
b4233ec9 10882 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10883 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10884
011a0143
JB
108852008-12-11 Juanma Barranquero <lekktu@gmail.com>
10886
10887 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10888
3c309f34
JB
108892008-12-11 Juanma Barranquero <lekktu@gmail.com>
10890
10891 * process.c (Fsystem_process_attributes, syms_of_process):
10892 Fix typo in name of Ssystem_process_attributes.
10893 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10894
fedc6ab5
JB
108952008-12-11 Juanma Barranquero <lekktu@gmail.com>
10896
10897 * syntax.c (Fmodify_syntax_entry): Doc fix.
10898
ba3de0e8
JB
108992008-12-10 Juanma Barranquero <lekktu@gmail.com>
10900
10901 * font.c (Ffont_spec): Move usage to end of docstring.
10902
174f1c74
JR
109032008-12-10 Jason Rumney <jasonr@gnu.org>
10904
10905 * w32font.c (Qcham): New symbol.
10906 (font_supported_scripts): Add cham, and comments for other new
10907 scripts in bitfield from OpenType spec.
9d32f818
JR
10908 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10909 contain characters beyond the bmp.
174f1c74 10910
7b649478
KH
109112008-12-10 Kenichi Handa <handa@m17n.org>
10912
10913 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10914 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10915 Qunicode_sip.
10916
2133e2d1
JB
109172008-12-10 Juanma Barranquero <lekktu@gmail.com>
10918
10919 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10920 (Fcoding_system_put): Use QCdefault_char.
10921 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10922
9af886ee
CY
109232008-12-09 Chong Yidong <cyd@stupidchicken.com>
10924
74d819eb
CY
10925 * xftfont.c (syms_of_xftfont): Fix typo.
10926
4ccfa1c0 10927 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10928
7c19d3ae
DN
109292008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10930
10931 * emacs.c (main): Close daemon_pipe on exec.
10932
567826bb
CY
109332008-12-08 Chong Yidong <cyd@stupidchicken.com>
10934
10935 * termchar.h (struct tty): New members termcap_term_buffer and
10936 termcap_strings_buffer.
10937
10938 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10939 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10940 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10941 All callers changed.
10942 (init_tty): Store termcap data and string buffers in new struct
10943 tty members termcap_term_buffer and termcap_strings_buffer.
10944 (delete_tty): Free them.
4ccfa1c0 10945 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10946
aa96c42b
SZ
109472008-12-07 Seiji Zenitani <zenitani@mac.com>
10948
10949 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10950 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10951
b7e1d896
CY
109522008-12-06 Chong Yidong <cyd@stupidchicken.com>
10953
10954 * coding.c (make_conversion_work_buffer): Disable buffer
10955 modification hooks in the work buffer.
10956
b5ec91a5
EZ
109572008-12-05 Eli Zaretskii <eliz@gnu.org>
10958
10959 * process.c (procfs_system_process_attributes): If `nread' has a
10960 negative value, assign zero to it.
10961
a5d2a52b
CY
109622008-12-05 Chong Yidong <cyd@stupidchicken.com>
10963
68c5540b 10964 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10965
7bf1bb21
KH
109662008-12-05 Kenichi Handa <handa@m17n.org>
10967
10968 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10969 second character is a combining character.
10970
2fdc7d00
EZ
109712008-12-05 Eli Zaretskii <eliz@gnu.org>
10972
10973 * process.c (procfs_system_process_attributes): Don't use cmd,
10974 cmdsize, and q without initializing them first.
10975
bf6bfba8
JR
109762008-12-04 Jason Rumney <jasonr@gnu.org>
10977
10978 * w32font.c (w32font_draw): Initialize orig_clip before getting
10979 it, and delete it when finished.
10980
a3b1a468
DN
109812008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10982
10983 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10984 case when running as a daemon before detaching.
10985
8b8be8eb
JB
109862008-12-03 Juanma Barranquero <lekktu@gmail.com>
10987
805f2638 10988 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10989
b1bde622
KH
109902008-12-03 Kenichi Handa <handa@m17n.org>
10991
e500c47d
KH
10992 * font.c (font_at): Set `multibyte' at first.
10993
ca516334
KH
10994 * coding.c (decode_coding_charset): Check type of an element of
10995 vector VALIDS.
7bf1bb21 10996 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10997
4ccfa1c0 10998 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10999 (font_for_char): Likewise.
11000
1e5ecd37
CY
110012008-12-03 Chong Yidong <cyd@stupidchicken.com>
11002
d5b01609 11003 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11004 (font_update_lface): Handle fonts with corrupted size specs,
11005 i.e. non-int and non-float.
d5b01609 11006
11e3a6e4 11007 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11008 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11009 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11010
ab06788b
CY
11011 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11012
1e5ecd37 11013 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11014 underline_minimum_offset for underline position.
1e5ecd37 11015
63c125ab
DN
110162008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11017
11018 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11019
11020 * character.c (c_string_width): Specify the type for LEN.
11021
3a8406e1
KH
110222008-12-03 Kenichi Handa <handa@m17n.org>
11023
4ccfa1c0 11024 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11025 (decode_coding_utf_8): Likewise.
4ccfa1c0 11026 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11027 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11028
651df7d9
CY
110292008-12-02 Chong Yidong <cyd@stupidchicken.com>
11030
11031 * keyboard.c (make_lispy_position): Only use PT if the selected
11032 window is current.
11033
1f625c6c
AS
110342008-12-02 Andreas Schwab <schwab@suse.de>
11035
f7741ce9
AS
11036 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11037
1f625c6c
AS
11038 * doprnt.c (doprnt1): Fix size of charbuf.
11039
92bc2678
CY
110402008-12-02 Chong Yidong <cyd@stupidchicken.com>
11041
11042 * keyboard.c (timer_check): Revert last change.
11043
93b9e8cc
JB
110442008-12-02 Juanma Barranquero <lekktu@gmail.com>
11045
11046 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11047
fd7a37d5
JB
110482008-12-01 Juanma Barranquero <lekktu@gmail.com>
11049
11050 * makefile.w32-in: Update dependencies.
11051 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11052
c115043b
AS
110532008-12-01 Andreas Schwab <schwab@suse.de>
11054
11055 * font.c (register_font_driver): Use xmalloc.
11056 (font_put_frame_data): Likewise.
11057
f5668d2a
CY
110582008-12-01 Chong Yidong <cyd@stupidchicken.com>
11059
860d96be
CY
11060 * xfaces.c (realize_x_face): Make abort condition clearer.
11061
f5668d2a
CY
11062 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11063
379c17e7
CY
110642008-11-30 Chong Yidong <cyd@stupidchicken.com>
11065
11066 * keyboard.c (timer_check): After a timer runs, ensure that the
11067 selected window's buffer is current.
11068
35f36d65
JB
110692008-11-30 Juanma Barranquero <lekktu@gmail.com>
11070
f952c61c
JB
11071 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11072 It was accidentally restored by the Unicode merge.
11073
35f36d65
JB
11074 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11075
b23077df
JB
110762008-11-29 Juanma Barranquero <lekktu@gmail.com>
11077
11078 * w32proc.c: Include "coding.h".
11079 (Fw32_short_file_name): Encode filename passed to Windows API.
11080 (Fw32_long_file_name): Encode filename passed to Windows API and
11081 decode back the result. (Bug#1433)
11082
b8ebe9dd
KH
110832008-11-29 Kenichi Handa <handa@m17n.org>
11084
8cc53f96
KH
11085 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11086 not before accessing it.
11087
b8ebe9dd
KH
11088 * charset.c (Fdefine_charset_internal): After calculating
11089 min_char, max_char, and fastmap, copy the charset structure again.
11090 (encode_char): Fix the previous change.
11091
59bc82c0
SZ
110922008-11-28 Seiji Zenitani <zenitani@mac.com>
11093
11094 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11095
11096 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11097
11098 * nsterm.m (x_set_frame_alpha): New function.
11099
32247e3d
EZ
111002008-11-27 Eli Zaretskii <eliz@gnu.org>
11101
11102 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11103
b003e5ff
JB
111042008-11-27 Juanma Barranquero <lekktu@gmail.com>
11105
11106 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11107 pointer to check_face_name.
11108
708550f5
KH
111092008-11-27 Kenichi Handa <handa@m17n.org>
11110
11111 * category.h (SET_CATEGORY_SET): Call set_category_set.
11112 (set_category_set): Extern it.
11113
11114 * category.c (hash_get_category_set): New function.
11115 (Fmodify_category_entry): Adjusted for the change of
11116 char_table_ref_and_range. Call hash_get_category_set to get a
11117 category set to store in the table.
11118
11119 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11120 Funify_charset.
11121
2ae37cf0 11122 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11123 (DECODE_CHAR): Check if the decoder vector is ready.
11124 (ENCODE_CHAR): Check if the encoder char-table is ready.
11125 (maybe_unify_char): Extern it.
11126
11127 * charset.c (Vchar_unified_charset_table): Delete it.
11128 (inhibit_load_charset_map): New variable.
11129 (temp_charset_work): New variable.
11130 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11131 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11132 New macros.
11133 (load_charset_map): Meaning of control_flag changed. If
11134 inhibit_load_charset_map is nonzero, setup a table in
11135 temp_charset_work.
11136 (load_charset): New argument control_flag.
11137 (map_charset_for_dump): New function.
11138 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11139 map_charset_for_dump.
11140 (Fdefine_charset_internal): If the charset method is MAP, load
11141 mapping tables by calling load_charset.
11142 (Funify_charset): Don't load a mapping table but directly set
11143 Vchar_unify_table.
11144 (maybe_unify_char): New function.
11145 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11146 Handle the case of inhibit_load_charset_map being nonzero.
11147 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11148 Handle the case of inhibit_load_charset_map being nonzero.
11149 (Fclear_charset_maps): Just free temp_charset_work.
11150 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11151 variable.
11152
11153 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11154 change of char_table_ref_and_range.
11155 (char_table_ref_and_range): Change the meaning of argument FROM
11156 and TO. Now the caller must provide initial values for *FROM
11157 and *TO.
11158
11159 * fontset.c (fontset_add): Adjusted for the change of
11160 char_table_ref_and_range.
11161 (fontset_get_font_group): Likewise.
11162 (Ffontset_info): Likewise.
11163
11164 * keymap.c (describe_vector): Adjusted for the change of
11165 char_table_ref_and_range. For char-table, put boundary between
11166 non-ASCII and 8-bit characters.
11167
11168 * print.c (print_object): For bool-vector, delete unnecessary
11169 check of ASCII_BYTE_P.
11170
9196133b
JR
111712008-11-26 Jason Rumney <jasonr@gnu.org>
11172
11173 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11174 leading in font height. (Bug#879)
9196133b 11175
9f688acf
GM
111762008-11-26 Glenn Morris <rgm@gnu.org>
11177
11178 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11179 redefinition with ifdef. (Bug#1383)
11180
90d19aff
AR
111812008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11182
11183 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11184
4ccfa1c0 111852008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11186
11187 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11188 New EmacsView methods.
11189 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11190 Fixes bug #1048,1357,1414.
11191
111922008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11193
11194 Fix bug #1362.
11195 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11196 is not an indexed color.
11197 * nsterm.m (free_indexed_color): Add argument checking.
11198 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11199
e7d5ecb3
CY
112002008-11-24 Chong Yidong <cyd@stupidchicken.com>
11201
11202 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11203 Document confirm-after-completion value for
11204 minibuffer-completion-confirm.
11205
c285743c
JR
112062008-11-24 Jason Rumney <jasonr@gnu.org>
11207
11208 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11209 warning.
11210
b0857706
JR
112112008-11-23 Jason Rumney <jasonr@gnu.org>
11212
11213 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11214 restored before returning.
11215
11216 * w32font.c (check_face_name): New function.
11217 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11218 fonts. (Bug#642)
b0857706 11219
ee50ff07
MR
112202008-11-22 Martin Rudalics <rudalics@gmx.at>
11221
11222 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11223 confirm-nonexistent-file-or-buffer in doc-string.
11224
b8ff72fa
SM
112252008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11226
11227 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11228 Fix copy/paste typo. Add checks.
11229
cee53ed4
KH
112302008-11-21 Kenichi Handa <handa@m17n.org>
11231
11232 * coding.c (detect_coding_iso_2022): Reject invalid composition
11233 sequence.
11234 (DECODE_COMPOSITION_START): If the current source is the last
11235 block, and the current composition doesn't end, regard this
11236 sequence as invalid.
11237 (decode_coding_iso_2022): Handle invalid composition sequence.
11238
f6ef1e65
MR
112392008-11-20 Martin Rudalics <rudalics@gmx.at>
11240
11241 * window.c (coordinates_in_window): Don't return
11242 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11243 line when the window is not the rightmost one. (Bug#1372)
11244
e08b1705
MR
112452008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11246
11247 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11248
ad98e89f
EZ
112492008-11-15 Eli Zaretskii <eliz@gnu.org>
11250
11251 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11252 and bright_bg if noninteractive is non-zero.
11253
fb098a4b
CY
112542008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11255
11256 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11257 x_draw_glyph_string_background.
11258
11259 * w32term.c (x_draw_glyph_string): Likewise.
11260
ce952b6e
CY
112612008-11-15 Chong Yidong <cyd@stupidchicken.com>
11262
11263 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11264 the next glyph string once past the overhang width.
11265
11266 * nsterm.m (ns_draw_glyph_string): Likewise.
11267
11268 * w32term.c (x_draw_glyph_string): Likewise.
11269
26ea7079
CY
112702008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11271
11272 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11273 double file close.
11274
1c33c906
MR
112752008-11-14 Martin Rudalics <rudalics@gmx.at>
11276
11277 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11278 dedicated status of window before attempting to display another
11279 buffer in it.
11280
8fc29035
JB
112812008-11-14 Juanma Barranquero <lekktu@gmail.com>
11282
11283 * msdos.c (Fmsdos_long_file_names):
11284 (syms_of_msdos) <dos-unsupported-char-glyph>:
11285 * dosfns.c (Fint86): Fix typos in docstrings.
11286
55fb4286
EZ
112872008-11-14 Eli Zaretskii <eliz@gnu.org>
11288
11289 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11290
3fda0315
KY
112912008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11292
11293 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11294
7e849c17
CY
112952008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11296
11297 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11298
11299 * frame.h: Negative alpha means "don't touch".
11300
11301 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11302
11303 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11304
b9fd67bd
DN
113052008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11306
11307 * hftctl.c:
11308 * chpdef.h:
11309 * acldef.h: Remove files used only for systems no longer supported.
11310
11311 * Makefile.in: Fix .o alphabetical ordering.
11312 (hftctl.o): Remove dependency, file removed.
11313 (keymap.o, print.o): Depend on charset.h.
11314
d5998e03
KH
113152008-11-10 Kenichi Handa <handa@m17n.org>
11316
2ae37cf0 11317 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11318
be70e183
CY
113192008-11-08 Chong Yidong <cyd@stupidchicken.com>
11320
11321 * dired.c (file_name_completion): If completion_ignore_case is
11322 enabled, ignore case when checking completion-regexp-list.
11323
7cf94eac
EZ
113242008-11-08 Eli Zaretskii <eliz@gnu.org>
11325
11326 * vm-limit.c (get_lim_data): Fix last change.
11327
ee107a89
KH
113282008-11-08 Kenichi Handa <handa@m17n.org>
11329
11330 * character.c (Fget_byte): New function.
11331 (syms_of_character): Defsubr Fget_byte.
11332
5fd15622
CY
113332008-11-07 Chong Yidong <cyd@stupidchicken.com>
11334
11335 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11336 cursor position is valid after scrolling.
11337
13d62fad
JB
113382008-11-06 Juanma Barranquero <lekktu@gmail.com>
11339
11340 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11341
a1dd2936
GM
113422008-11-06 Glenn Morris <rgm@gnu.org>
11343
11344 * xterm.c (handle_one_xevent): Don't let popup menus cause
11345 mouse-autoselect-window related window switching. (Bug#1261)
11346
860cd236
CY
113472008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11348
11349 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11350
653a3150
AS
113512008-11-04 Andreas Schwab <schwab@suse.de>
11352
11353 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11354
870f5cac
CY
113552008-11-03 Chong Yidong <cyd@stupidchicken.com>
11356
11357 * xfns.c (Fx_wm_set_size_hint): New function.
11358
1e02f3cb
MR
113592008-11-03 Martin Rudalics <rudalics@gmx.at>
11360
11361 * textprop.c (Fprevious_single_char_property_change): Return 0
11362 when there's no change in a string. (Bug#1301)
11363
e630dfc6
MR
113642008-11-02 Martin Rudalics <rudalics@gmx.at>
11365
11366 * frame.c (do_switch_frame): New argument NORECORD passed to
11367 Fselect_window.
11368 (Fselect_frame): New argument NORECORD passed to
11369 do_switch_frame.
11370 (Fset_frame_selected_window): New argument NORECORD passed to
11371 Fselect_frame.
11372 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11373 in call of do_switch_frame.
11374 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11375 Handle NORECORD argument in call of Fselect_frame.
11376 * lisp.h (do_switch_frame, Fselect_frame)
11377 (Fset_frame_selected_window): Adjust declarations.
11378 * window.c (select_frame_norecord): New function.
11379 (run_window_configuration_change_hook): Use it and call
11380 Fselect_frame with NORECORD set.
11381 (Fselect_window): Pass NORECORD to Fselect_frame.
11382 (Fset_window_configuration): Handle NORECORD argument in call of
11383 do_switch_frame.
11384 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11385 Fset_frame_selected_window.
11386 * keyboard.c (command_loop_1): Handle NORECORD in call of
11387 Fselect_frame (currently ifdefd).
11388
9020b223
GM
113892008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11390
11391 * emacs.c (USAGE2): Untabify.
11392
793ffee8
SM
113932008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11394
11395 * composite.c (fill_gstring_header): Fix copy/paste typo.
11396
ab6d1131
MR
113972008-10-31 Martin Rudalics <rudalics@gmx.at>
11398
11399 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11400 (Fother_window): Rename argument and rewrite doc-string.
11401 (select_window_norecord): Fix return value. (Bug#1276)
11402
601a9cf1
JB
114032008-10-30 Juanma Barranquero <lekktu@gmail.com>
11404
11405 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11406 new frames overriding foreground for tooltips. Based on similar patch
11407 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11408
813b0652
CY
114092008-10-29 Chong Yidong <cyd@stupidchicken.com>
11410
11411 * emacs.c (Fdaemon_initialized): Initialize nfd.
11412
4414f58f
MR
114132008-10-29 Martin Rudalics <rudalics@gmx.at>
11414
11415 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11416 (Fwindow_text_height): Clarify doc-strings.
11417 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11418 doc-string of window-scroll-functions.
11419
ecdcaa09
RS
114202008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11421
11422 * category.c (syms_of_category): Fix typo in docstring.
11423
23fe745a
JB
114242008-10-28 Juanma Barranquero <lekktu@gmail.com>
11425
11426 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11427 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11428 Fix typos in docstrings.
11429
ff808935
DN
114302008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11431
11432 * emacs.c (daemon_pipe): Make non-static.
11433 (IS_DAEMON): Move definition ...
11434 * lisp.h (IS_DAEMON): ... here.
11435 (daemon_pipe): Declare.
11436 (is_daemon): Remove.
11437 * dispnew.c (init_display): Use IS_DAEMON.
11438
fc012771
SM
114392008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11440
11441 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11442 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11443
11444 * emacs.c (is_daemon): Remove.
11445 (main): Don't set is_daemon.
11446 (IS_DAEMON): New macro.
11447 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11448 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11449 parent exits.
11450 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11451
d8bdbe6f
CY
114522008-10-27 Chong Yidong <cyd@stupidchicken.com>
11453
d1a072bf
CY
11454 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11455 over-sized glyph, draw it with the default glyph width.
11456
e2e325aa
CY
11457 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11458 glyph, draw it with the default glyph width.
11459
11460 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11461 glyph, draw it with the default glyph width.
11462
d8bdbe6f
CY
11463 * xdisp.c (try_scrolling): When computing the distance from the
11464 scroll margin to PT, try moving some distance past the window
11465 bottom before giving up.
11466
7bfac547
MR
114672008-10-27 Martin Rudalics <rudalics@gmx.at>
11468
11469 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11470 (Fset_window_buffer): Explain in doc-string that a window can be
11471 "strongly" dedicated to its buffer.
11472
4ff029f6
DN
114732008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11474
11475 * emacs.c (daemon_name): New variable.
11476 (main): Deal with --daemon=SERVER_NAME.
11477 (Fdaemonp): Return a name if one was passed to --daemon.
11478
5790ef40
DN
114792008-10-26 Romain Francoise <romain@orebokech.com>
11480
f9bd0df9 11481 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11482 (main): Create a pipe before forking, make the parent exit only after
11483 the child has closed its end of the pipe. Move closing the
11484 descriptors ...
11485 (Fdaemon_initialized): ... here. New function.
11486
f5385255
SM
114872008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11488
4d632321
SM
11489 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11490 the previous unoptimized table.
11491
f5385255
SM
11492 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11493 the distinction between non-nil and non-t value of `dedicated'.
11494
6c56a0f3
CY
114952008-10-25 Chong Yidong <cyd@stupidchicken.com>
11496
11497 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11498 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11499
fec89261
MR
115002008-10-25 Martin Rudalics <rudalics@gmx.at>
11501
11502 * window.c (Fget_buffer_window, Fdelete_windows_on)
11503 (Freplace_buffer_in_windows): Make buffer argument optional and
11504 rename to buffer_or_name.
11505
34fcddd0
CY
115062008-10-24 Chong Yidong <cyd@stupidchicken.com>
11507
f5385255
SM
11508 * xdisp.c (handle_single_display_spec, handle_display_prop):
11509 Undo 2005-05-16 change.
34fcddd0
CY
11510 (handle_stop): Pop iterator if it's loaded with an empty string.
11511 (get_overlay_strings_1): Don't save iterator if it's loaded with
11512 an empty string (bug#1201).
11513
064766f2
KH
115142008-10-24 Kenichi Handa <handa@m17n.org>
11515
11516 * ftfont.c (ftfont_otf_features): Fix previous change.
11517 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11518 calling ftfont_otf_features.
11519
f9bd0df9 115202008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11521
11522 * font.c (font_match_p): Fix for the case that a vector of
11523 characters is in script-representative-chars.
11524
1dae9197
MA
115252008-10-24 Michael Albinus <michael.albinus@gmx.de>
11526
11527 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11528 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11529 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11530 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11531 macro. (Bug#1186)
1dae9197 11532
f9bd0df9 115332008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11534
11535 * s/sol2-10.h: New file.
11536
878a4584
JB
115372008-10-23 Juanma Barranquero <lekktu@gmail.com>
11538
11539 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11540 poor beast has survived 9+ years and the jump from xterm.c!).
11541
cd265ca6
MR
115422008-10-23 Martin Rudalics <rudalics@gmx.at>
11543
11544 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11545 Reword doc-string.
f5385255 11546 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11547
472a4dc9
JB
115482008-10-23 Juanma Barranquero <lekktu@gmail.com>
11549
11550 * character.c (syms_of_character) <script-representative-chars>:
11551 <unicode-category-table>: Doc fixes.
11552
159bd5a2
NF
115532008-10-23 Noah Friedman <friedman@splode.com>
11554
11555 * coding.c (make_conversion_work_buffer): Check that
11556 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11557 Fget_buffer_create.
11558
49f9c344
KH
115592008-10-23 Kenichi Handa <handa@m17n.org>
11560
11561 * font.c (font_add_log): Check the values of extra properties.
11562
12bb3111
MR
115632008-10-22 Martin Rudalics <rudalics@gmx.at>
11564
11565 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11566 Reword doc-string.
11567 (Fset_window_parameter): Use NILP.
11568 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11569 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11570
bbeb4e99
JB
115712008-10-22 Juanma Barranquero <lekktu@gmail.com>
11572
11573 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11574
115752008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11576
11577 * nsfns.m (ns_appkit_version): New function.
11578 (x-server-version): Use it.
11579 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11580 (x-server-vendor): Don't check_ns().
11581
11582 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11583
a9b555d3
JB
115842008-10-22 Juanma Barranquero <lekktu@gmail.com>
11585
11586 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11587 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11588
4626499f
KH
115892008-10-22 Kenichi Handa <handa@m17n.org>
11590
e3681952
KH
11591 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11592 scripts.
11593
4626499f
KH
11594 * category.c (word_boundary_p): Check scripts instead of charset.
11595 Handle nil value in word-separating-categories and
11596 word-combining-categories.
11597 (syms_of_category): Fix docstrings of word-separating-categories
11598 and word-combining-categories.
11599
1560f91a
EZ
116002008-10-21 Eli Zaretskii <eliz@gnu.org>
11601
11602 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11603 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11604
f4668441
MR
116052008-10-21 Martin Rudalics <rudalics@gmx.at>
11606
11607 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11608 Rename arg "buffer" to "buffer_or_name".
11609 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11610 it optional.
11611 (no_switch_window): Remove since the return value is not used.
a9b555d3 11612 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11613 Consider window as dedicated when Fwindow_dedicated_p returns a
11614 non-nil value.
11615 * lisp.h: Remove prototype for no_switch_window.
11616
fd75ddb2
JD
116172008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11618
11619 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11620 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11621
07295713
KH
116222008-10-21 Kenichi Handa <handa@m17n.org>
11623
11624 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11625 check Vlatin_extra_code_table.
11626
712adc82
EZ
116272008-10-20 Eli Zaretskii <eliz@gnu.org>
11628
11629 * fileio.c (Fset_file_modes): Doc fix.
11630
f549eb0b
MA
116312008-10-19 Michael Albinus <michael.albinus@gmx.de>
11632
11633 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11634 in arrays.
11635
aac0c6e3
MR
116362008-10-19 Martin Rudalics <rudalics@gmx.at>
11637
11638 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11639 Mention kill-buffer in doc-string.
11640 (Fset_window_buffer): Reinsert tem check removed in last commit.
11641 (Fenlarge_window, Fshrink_window): Have argument names and
11642 doc-string follow Elisp manual more closely.
11643
116442008-10-18 Eli Zaretskii <eliz@gnu.org>
11645
11646 * fileio.c (Fset_file_modes): Doc fix.
11647
116482008-10-18 Martin Rudalics <rudalics@gmx.at>
11649
11650 * window.c (Fwindow_width, Fset_window_start)
11651 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11652 (Fdelete_windows_on, Freplace_buffer_in_windows):
11653 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11654 (Fwindow_dedicated_p): Make window argument optional.
11655 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11656 (Fset_window_buffer): Respect any non-nil dedicated value for
11657 window. Rename "buffer" argument to "buffer_or_name".
11658
116592008-10-18 Ulrich Mueller <ulm@gentoo.org>
11660
11661 * m/sh3.h: New file, machine description for SuperH.
11662
116632008-10-17 Martin Rudalics <rudalics@gmx.at>
11664
11665 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11666
116672008-10-17 Kenichi Handa <handa@m17n.org>
11668
11669 * ftfont.c (ftfont_otf_features): Fix indexing
11670 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11671
116722008-10-16 Magnus Henoch <mange@freemail.hu>
11673
11674 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11675 (Fdbus_call_method_asynchronously): Ditto.
11676 This change makes C-h f display the argument list.
11677
116782008-10-16 Chong Yidong <cyd@stupidchicken.com>
11679
11680 * fileio.c (Fexpand_file_name): Doc fix.
11681
11682 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11683 of :foreground and :background equivalent to unspecified (20.x
11684 compatibility).
11685
116862008-10-15 Eli Zaretskii <eliz@gnu.org>
11687
11688 * buffer.c (syms_of_buffer): Doc fix.
11689
116902008-10-14 Kenichi Handa <handa@m17n.org>
11691
11692 * font.c (font_clear_prop): When clearing font width, clear the
11693 average width field too.
11694
116952008-10-12 Andreas Schwab <schwab@suse.de>
11696
11697 * ftfont.c (ftfont_shape_by_flt): Make static.
11698 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11699
11700 * font.c: Don't include <m17n-flt.h>.
11701
117022008-10-10 Eli Zaretskii <eliz@gnu.org>
11703
11704 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11705
117062008-10-09 Eli Zaretskii <eliz@gnu.org>
11707
11708 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11709 away code.
11710
117112008-10-09 Chong Yidong <cyd@stupidchicken.com>
11712
11713 * dispnew.c (update_text_area): Avoid looping due to large glyph
11714 overhangs (bug#1070).
11715
117162008-10-09 Kenichi Handa <handa@m17n.org>
11717
11718 * fontset.c (face_for_char): If face->fontset is negative, just
11719 return ascii_face.
11720
f5385255
SM
11721 * font.c (font_delete_unmatched): Fix previous change.
11722 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11723
117242008-10-09 Martin Rudalics <rudalics@gmx.at>
11725
11726 * frame.c (Fraise_frame): On text-only terminals select frame in
11727 order to make it visible. (Bug#1061)
11728
117292008-10-08 Chong Yidong <cyd@stupidchicken.com>
11730
11731 * fontset.c (fontset_find_font): Check frame validity.
11732
117332008-10-07 Chong Yidong <cyd@stupidchicken.com>
11734
a9b555d3 11735 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11736 (xg_display_close): Allow Emacs to close all displays (bug#985).
11737
117382008-10-06 Andreas Schwab <schwab@suse.de>
11739
f5385255 11740 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11741
117422008-10-06 Chong Yidong <cyd@stupidchicken.com>
11743
f5385255 11744 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11745
a9b555d3 11746 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11747
11748 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11749 during initialization.
11750
117512008-10-04 Eli Zaretskii <eliz@gnu.org>
11752
11753 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11754 whole thing on MSDOS frames as well as on a TTY.
11755
11756 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11757 well as for TTY.
11758 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11759 well as on a TTY.
11760
11761 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11762 as well as for TTY.
11763
11764 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11765
11766 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11767 MSDOS frames as well.
11768
117692008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11770
11771 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11772 correct arguments.
b71ac3dd 11773 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11774
117752008-10-03 Glenn Morris <rgm@gnu.org>
11776
11777 * emacs.c (USAGE1): Add --daemon.
11778
117792008-10-02 Eli Zaretskii <eliz@gnu.org>
11780
11781 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11782 100, so it's in percents as advertised.
11783
117842008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11785
11786 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11787 (ns_output.current_cursor, ns_output.desired_cursor)
11788 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11789 (FRAME_NEW_CURSOR_COLOR): Remove.
11790
11791 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11792 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11793 enumeration (HOLLOW_BOX_CURSOR, etc.).
11794
11795 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11796 (draw_window_cursor): Simplify code.
f5385255
SM
11797 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11798 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11799 updates manually.
a9b555d3
JB
11800 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11801 Use core Emacs cursor types.
aac0c6e3 11802
b8ff72fa 11803 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11804
118052008-10-02 Martin Rudalics <rudalics@gmx.at>
11806
11807 * process.c (Faccept_process_output): Fix doc-string.
11808
118092008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11810
11811 * gmalloc.c (__sbrk): Also define for uClibc.
11812
11813 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11814 for uClibc.
11815
118162008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11817
11818 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11819 styles.
11820 (nsfont_open): Reenable the cache.
11821
118222008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11823
11824 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11825 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11826
118272008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11828
11829 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11830 a suspended terminal.
11831
118322008-09-30 Michael Albinus <michael.albinus@gmx.de>
11833
11834 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11835
118362008-09-30 Eli Zaretskii <eliz@gnu.org>
11837
11838 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11839
118402008-09-30 Chong Yidong <cyd@stupidchicken.com>
11841
11842 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11843 in a continued line coincides with a line beginning.
11844
118452008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11846
11847 * nsfont.m (nsfont_trait_distance): Fix bug.
11848 (nsfont_list): Return a list rather than a vector (syncs with Handa
11849 changes of 2008-05-14).
11850 (nsfont_open): Improve logging.
11851
118522008-09-29 Andreas Schwab <schwab@suse.de>
11853
11854 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11855
118562008-09-28 Martin Rudalics <rudalics@gmx.at>
11857
11858 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11859 name as char-resolve-modifiers.
11860 Reported by: Markus Triska <markus.triska@gmx.at>
11861
118622008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11863
11864 * dispnew.c (init_display): Return earlier when running as a daemon.
11865
118662008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11867
11868 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11869
118702008-09-27 Eli Zaretskii <eliz@gnu.org>
11871
11872 * composite.c (Fcomposition_get_gstring)
11873 (Fcompose_region_internal, Fcompose_string_internal)
11874 (Ffind_composition_internal): Doc fix.
11875 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11876 (syms_of_composite) <auto-composition-function>: Doc fix.
11877 (syms_of_composite) <composition-function-table>: Doc fix.
11878
118792008-09-25 Chong Yidong <cyd@stupidchicken.com>
11880
11881 * search.c (wordify): New argument for lax word-ends.
11882 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11883
118842008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11885
11886 * lisp.h (is_daemon): Declare.
11887 * dispnew.c (init_display): Do not try to initialize the terminal
11888 when running as a daemon.
11889
118902008-09-22 Chong Yidong <cyd@stupidchicken.com>
11891
11892 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11893 x_display_pixel_height.
11894
118952008-09-22 Martin Rudalics <rudalics@gmx.at>
11896
11897 * undo.c (record_point): Don't call Fundo_boundary for first
11898 change. (Bug#731)
11899
119002008-09-22 Juanma Barranquero <lekktu@gmail.com>
11901
11902 * emacs.c (Fdaemonp): Doc fix.
11903
119042008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11905
11906 * emacs.c (main): Place #ifdef in the proper place.
11907
119082008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11909
11910 * emacs.c (standard_args): Add --daemon.
11911 (main): Disconnect from the terminal when --daemon is passed.
11912 (is_daemon): New variable.
11913 (Fdaemonp): New function.
11914 (syms_of_emacs): Defsubr it.
11915
119162008-09-20 Chong Yidong <cyd@stupidchicken.com>
11917
11918 * xdisp.c (get_next_display_element): Handle string display
11919 correctly when checking for the end of a box run.
11920
119212008-09-20 Glenn Morris <rgm@gnu.org>
11922
11923 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11924 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11925 (Frename_file): Avoid copying to trash if a rename involves
11926 a delete. (Bug#964).
11927
119282008-09-20 Eli Zaretskii <eliz@gnu.org>
11929
11930 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11931 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11932 frames as well as termcap frames.
11933 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11934 get_named_tty.
11935
119362008-09-19 Eli Zaretskii <eliz@gnu.org>
11937
11938 * process.c (procfs_system_process_attributes): Fix cmdline in
11939 case /proc/PID/cmdline is empty.
11940
11941 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11942 x_display_pixel_height.
11943
119442008-09-19 Juanma Barranquero <lekktu@gmail.com>
11945
11946 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11947
11948 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11949 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11950
119512008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11952
11953 * dispextern.h (struct it): Move line_wrap away from the middle of
11954 bitfields. Move voffset in struct iterator_stack_entry after the
11955 bitfields. Move tab_width near after another short.
11956
119572008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11958
11959 * frame.h (struct frame): Move alpha from the middle of bitfields.
11960
11961 * window.h (struct window): Move frozen_window_start_p after the
11962 rest of the bitfields to reduce padding.
11963
119642008-09-18 Chong Yidong <cyd@stupidchicken.com>
11965
11966 * xterm.h (x_display_info): Remove `height' and `width' members.
11967
11968 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11969
11970 * w32term.h (w32_display_info): Remove `height', `width',
11971 `height_in', and `width_in' members.
11972
b8ff72fa
SM
11973 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11974 New functions.
aac0c6e3
MR
11975 (x_calc_absolute_position): Use them.
11976 (x_term_init): Omit removed `height' and `width' members.
11977
b8ff72fa
SM
11978 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11979 New functions.
aac0c6e3
MR
11980 (w32_read_socket, x_calc_absolute_position): Use them.
11981 (w32_initialize_display_info, w32_term_init): Omit removed members
11982 of w32_display_info.
11983
b8ff72fa
SM
11984 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11985 New functions.
11986 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11987
b8ff72fa
SM
11988 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11989 New functions.
aac0c6e3
MR
11990 (x_calc_absolute_position): Use them.
11991 (x_term_init): Omit removed `height' and `width' members.
11992
11993 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11994 (compute_tip_xy):
11995 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11996 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11997 x_display_pixel_width.
11998
119992008-09-18 Kenichi Handa <handa@m17n.org>
12000
12001 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12002 (composition_compute_stop_pos): Fix handling of static composition.
12003 (Fcomposition_get_gstring): Check FROM and TO at first.
12004
120052008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12006
46e722a9 12007 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12008 mixup (YAILOM).
12009
120102008-09-17 Chong Yidong <cyd@stupidchicken.com>
12011
12012 * indent.c (Fvertical_motion): Use position reported by iterator
12013 instead of PT for determining screen motion (bug#943).
12014
120152008-09-17 Romain Francoise <romain@orebokech.com>
12016
12017 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12018
120192008-09-17 Kenichi Handa <handa@m17n.org>
12020
12021 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12022
12023 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12024 if necessary.
12025
120262008-09-16 Kenichi Handa <handa@m17n.org>
12027
12028 * coding.c (make_conversion_work_buffer): Avoid calling
12029 Fget_buffer_create if it is not necessary.
12030
120312008-09-15 Martin Rudalics <rudalics@gmx.at>
12032
12033 * window.c (Fselect_window): Don't update window_select_count and
12034 use_time when norecord is not nil.
12035
120362008-09-14 Kenichi Handa <handa@m17n.org>
12037
12038 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12039 specpdl_ptr.
12040
120412008-09-12 Kenichi Handa <handa@m17n.org>
12042
12043 * indent.c (scan_for_column): Don't handle automatic composition
12044 if the current buffer is not associated with a window.
12045
12046 * composite.c (composition_reseat_it): If the current buffer is
12047 not associated with a window, ignore the automatic composition.
12048 (find_automatic_composition): Likewise.
12049
120502008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12051
12052 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12053 (Fgpm_mouse_stop): Use it.
12054 * termhooks.h (close_gpm): Declare.
12055 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12056 connection if Gpm_GetEvent fails.
12057
12058 * window.c (set_window_buffer): Always preserve current-buffer.
12059
120602008-09-12 Glenn Morris <rgm@gnu.org>
12061
12062 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12063
120642008-09-11 Glenn Morris <rgm@gnu.org>
12065
12066 * charset.c (charset-map-path): Doc fix.
12067
120682008-09-10 Kenichi Handa <handa@m17n.org>
12069
12070 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12071
12072 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12073 compose a grapheme cluster with the preceding base glyph.
12074
12075 * composite.c (composition_compute_stop_pos): Fix previous change.
12076 Reset cmp_it->id to -1 at first.
12077
120782008-09-10 Glenn Morris <rgm@gnu.org>
12079
12080 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12081
120822008-09-09 Chong Yidong <cyd@stupidchicken.com>
12083
12084 * keyboard.c (read_key_sequence): Reapply translation maps when
12085 switching keyboards.
12086
120872008-09-09 Kenichi Handa <handa@m17n.org>
12088
12089 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12090 characters.
12091
12092 * composite.c (FORWARD_CHAR): Fix calculation
12093 of (POSITION).pos_byte.
12094 (composition_compute_stop_pos): Limit the search of composition to
12095 at most 500 characters ahead. If we reach the limit or find a
12096 newline, set cmp_it->ch to -2 and return 0.
12097 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12098
120992008-09-08 Kenichi Handa <handa@m17n.org>
12100
12101 * indent.c (Fvertical_motion): Be sure to set
12102 it_overshoot_expected if it.cmp_it.id is non-negative.
12103
121042008-09-07 Andreas Schwab <schwab@suse.de>
12105
12106 * callproc.c (Fcall_process): Don't hold references to string data
12107 across garbage collection. Move initialisation of new_argv down
12108 to avoid compiler bug.
12109
121102008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12111
12112 * process.c (Fsystem_process_attributes): Doc fix.
12113
121142008-09-07 Chong Yidong <cyd@stupidchicken.com>
12115
12116 * callproc.c (Fcall_process): Canonicalize current directory name.
12117
12118 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12119 iterator advances to the next line if the current line ends in a
12120 continued tab.
12121
121222008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12123
12124 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12125 member to point to cmp_from.
12126
12127 * xdisp.c: Doc fix for references to gidx data member.
12128
121292008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12130
12131 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12132
121332008-09-07 Kenichi Handa <handa@m17n.org>
12134
12135 * composite.c (FORWARD_CHAR): Check STOP after
12136 incrementing (POSITION).pos.
12137
121382008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12139
12140 * process.c (Fsystem_process_attributes): Doc fix.
12141
121422008-09-06 Chong Yidong <cyd@stupidchicken.com>
12143
12144 * keyboard.c (Ftop_level): Doc fix.
12145
121462008-09-06 Eli Zaretskii <eliz@gnu.org>
12147
12148 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12149 minibuffer, don't let lower part of menu invade the echo area.
12150
12151 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12152 "char *q" to access menu text and advance through it. Revert the
12153 change that displayed ">" instead of ASCII character 0x10.
12154
121552008-09-05 Eli Zaretskii <eliz@gnu.org>
12156
12157 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12158 toggle boxes and radio buttons on MS-DOS as well.
12159
121602008-09-05 Kenichi Handa <handa@m17n.org>
12161
12162 * composite.c (autocmp_chars): Check lookback count.
12163 (composition_compute_stop_pos): Set cmp_it->lookback.
12164 (composition_reseat_it): Check lookback count.
12165 (struct position_record): New struct.
12166 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12167 (find_automatic_composition): New function.
12168 (composition_adjust_point): Use find_automatic_composition.
12169
12170 * dispextern.h (struct composition_it): New member lookback.
12171
121722008-09-02 Chong Yidong <cyd@stupidchicken.com>
12173
12174 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12175 if moving by a single line.
12176
121772008-09-02 Andreas Schwab <schwab@suse.de>
12178
12179 * xterm.c (x_delete_display): Fix merge error.
12180
12181 * fileio.c (Fexpand_file_name): Remove unused variables.
12182
121832008-09-02 Eli Zaretskii <eliz@gnu.org>
12184
12185 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12186 storage on all platforms, not just on DOS_NT.
12187
121882008-09-02 Jason Rumney <jasonr@gnu.org>
12189
b8ff72fa
SM
12190 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12191 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12192
121932008-09-01 Chong Yidong <cyd@stupidchicken.com>
12194
12195 * xfaces.c (Finternal_set_alternative_font_family_alist)
12196 (Finternal_set_alternative_font_registry_alist): Properly copy
12197 entire alist structure.
12198
121992008-09-01 Kenichi Handa <handa@m17n.org>
12200
d66c0241 12201 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12202 representative chars of the script is a vector.
d66c0241
JB
12203 (ftfont_list): Handle the case where the representative chars of
12204 the script is a vector.
aac0c6e3
MR
12205
12206 * character.c (syms_of_character): Docstring of
12207 script-representative-chars fixed.
12208
122092008-08-31 Eli Zaretskii <eliz@gnu.org>
12210
12211 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12212 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12213 the menu. Allocate larger buffer for `text', to account for
12214 possible ^C characters.
12215
122162008-08-31 Martin Rudalics <rudalics@gmx.at>
12217
12218 * xdisp.c (prepare_menu_bars): Don't call
12219 Vwindow_size_change_functions with arg Qt.
12220
122212008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12222
12223 * font.h (font_range):
12224 * fileio.c (report_file_error):
46e722a9
SM
12225 * composite.c (composition_update_it): Yet another int/Lisp_Object
12226 mixup (YAILOM).
aac0c6e3
MR
12227
122282008-08-30 Glenn Morris <rgm@gnu.org>
12229
12230 * data.c (Fmake_variable_frame_local): Doc fix.
12231
12232 * frame.c (Fmodify_frame_parameters): Doc fix.
12233
122342008-08-30 Eli Zaretskii <eliz@gnu.org>
12235
12236 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12237 needed by GetTokenInformation.
12238 (w32_system_process_attributes): Check return values of all system
12239 APIs.
12240
12241 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12242 only when the state changes.
12243 (IT_update_begin, IT_update_end): Add termscript trace.
12244
12245 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12246 clipboard is unavailable. Set dst to NULL if it doesn't point to
12247 malloc'ed data.
12248 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12249 passing random values to xfree.
12250
12251 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12252 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12253
122542008-08-29 Jason Rumney <jasonr@gnu.org>
12255
12256 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12257
122582008-08-29 Eli Zaretskii <eliz@gnu.org>
12259
12260 * composite.c (fill_gstring_body): Avoid compiler warnings.
12261
12262 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12263 LGLYPH_SET_CODE to avoid compiler warnings.
12264
2ae37cf0 12265 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12266
12267 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12268
12269 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12270 LGLYPH_SET_CODE.
12271
122722008-08-29 Kenichi Handa <handa@m17n.org>
12273
12274 * fileio.c (report_file_error): Don't downcase the first character
12275 of errstring if it is still unibyte.
12276
122772008-08-29 Kenichi Handa <handa@m17n.org>
12278
12279 These changes are to re-implement the automatic composition so
12280 that it doesn't use text properties.
12281
12282 * Makefile.in (ftfont.o): Depend on composite.h.
12283 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12284
12285 * character.h (Vunicode_category_table): Extern it.
12286
12287 * character.c (Vunicode_category_table): New variable.
12288 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12289
12290 * chartab.c (optimize_sub_char_table): Perform more greedy
12291 optimization.
12292
b8ff72fa
SM
12293 * composite.h (enum composition_method):
12294 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12295 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12296 (Vcomposition_function_table): Extern it.
12297 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12298 (composition_gstring_put_cache, composition_gstring_from_id)
12299 (composition_gstring_p, composition_gstring_width)
12300 (composition_compute_stop_pos, composition_reseat_it)
12301 (composition_update_it, composition_adjust_point): Extern them.
12302 (Fcomposition_get_gstring): EXFUN it.
12303
d66c0241 12304 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12305 (Vcomposition_function_table)
12306 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12307 (gstring_hash_table, gstring_work, gstring_work_headers):
12308 New variables.
aac0c6e3
MR
12309 (gstring_lookup_cache, composition_gstring_put_cache)
12310 (composition_gstring_from_id, composition_gstring_p)
12311 (composition_gstring_width, fill_gstring_header)
12312 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12313 (composition_reseat_it, composition_update_it)
b8ff72fa 12314 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12315 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12316 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12317 Defsubr composition_get_gstring.
aac0c6e3
MR
12318
12319 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12320 cmp_id.
12321 (struct glyph_string): Delete the member gidx. New members
12322 cmp_id, cmp_from, and cmp_to.
12323 (enum it_method): Delete GET_FROM_COMPOSITION.
12324 (struct composition_it): New struct.
12325 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12326 Delete c, len, cmp_id, cmp_len in u.comp.
12327
12328 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12329 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12330 (enum lglyph_indices): Likewise.
b8ff72fa 12331 (font_range): Adjust extern.
aac0c6e3
MR
12332 (font_fill_lglyph_metrics): Extern it.
12333
12334 * font.c (QCf): New variable.
12335 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12336 (font_prepare_composition): Delete this function.
12337 (font_range): Type and arguments changed.
12338 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12339 (font_fill_lglyph_metrics): New function.
b8ff72fa 12340 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12341 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12342 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12343 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12344
12345 * fontset.h (font_for_char): Extern it.
12346
12347 * fontset.c (font_for_char): New function.
12348
12349 * ftfont.c: Include composite.h.
12350 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12351 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12352
12353 * indent.c: Include composite.h and dispextern.h.
12354 (check_composition): Delete this function.
12355 (scan_for_column): Handle composition by
12356 composition_compute_stop_pos, composition_reseat_it, and
12357 composition_update_it.
12358 (compute_motion): Likewise.
12359 (Fvertical_motion): Fix checking of composition.
12360
12361 * keyboard.c (adjust_point_for_property): Check composition by
12362 composition_adjust_point.
12363
b8ff72fa 12364 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12365 struct glyph_string.
12366
b8ff72fa
SM
12367 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12368 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12369 struct glyph.
12370 (produce_composite_glyph): Likewise.
12371
b8ff72fa
SM
12372 * w32term.c (x_draw_composite_glyph_string_foreground):
12373 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12374 (x_draw_glyph_string): Likewise.
12375
12376 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12377 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12378
12379 * xdisp.c: Include font.h.
12380 (it_props): Delete the entry for Qauto_composed.
12381 (init_iterator): Initialize it->cmp_it.id to -1.
12382 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12383 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12384 (handle_auto_composed_prop): Delete it.
12385 (handle_composition_prop): Handle only static composition.
12386 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12387 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12388 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12389 (pop_it): Likewise.
12390 (get_next_element): Delete next_element_from_composition.
12391 (CHAR_COMPOSED_P): New macro.
12392 (get_next_display_element): For automatic composition, get a face
12393 from the font in the glyph-string.
12394 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12395 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12396 (next_element_from_string): Check if the character at the current
12397 position is composed by CHAR_COMPOSED_P.
12398 (next_element_from_buffer): Likewise.
d66c0241
JB
12399 (next_element_from_composition): Adjust for the change of struct it.
12400 Update it->cmp_it.
b8ff72fa
SM
12401 (dump_glyph): Adjust for the change of struct glyph.
12402 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12403 it and struct glyph. Don't handle automatic composition here.
12404 (fill_gstring_glyph_string): New function.
12405 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12406 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12407 (BUILD_GSTRING_GLYPH_STRING): New macro.
12408 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12409 automatic composition.
b8ff72fa 12410 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12411 struct glyph.
b8ff72fa 12412 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12413
b8ff72fa 12414 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12415 the change of struct glyph_string.
12416 (x_draw_glyph_string): Likewise.
12417
124182008-08-29 Glenn Morris <rgm@gnu.org>
12419
12420 * buffer.c (word-wrap): Doc fix.
12421 * xdisp.c (truncate-partial-width-windows): Doc fix.
12422 Increase default to 50.
12423
124242008-08-29 Chong Yidong <cyd@stupidchicken.com>
12425
12426 * xdisp.c (update_tool_bar_unwind): New function.
12427 (update_tool_bar): Temporarily set selected frame before building
12428 tool-bar items.
12429
124302008-08-28 Michael Albinus <michael.albinus@gmx.de>
12431
12432 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12433 snprintf, respectively.
12434 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12435
124362008-08-28 Chong Yidong <cyd@stupidchicken.com>
12437
12438 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12439 LDFLAGS to GNUstep CC invocation.
12440
124412008-08-27 Chong Yidong <cyd@stupidchicken.com>
12442
12443 * indent.c (Fvertical_motion): Revert last change. Handle the
12444 general case where we are moving forward, and PT spans multiple
12445 screen lines.
12446
12447 * eval.c (find_handler_clause): Temporarily increase
12448 max-lisp-eval-depth while printing the backtrace buffer, to
12449 guarantee that help-mode code can run.
12450
124512008-08-27 Eli Zaretskii <eliz@gnu.org>
12452
12453 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12454 colors under -rv.
12455 (IT_set_frame_parameters): Don't swap foreground and background
12456 colors if `(reverse . t)' is present in the frame properties.
12457 (internal_terminal_init): Call init_frame_faces only for the
12458 initial frame.
12459
124602008-08-27 Andreas Schwab <schwab@suse.de>
12461
12462 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12463
124642008-08-27 Andreas Schwab <schwab@suse.de>
12465
12466 * search.c (search_buffer): Set char_base to zero only at the end.
12467
124682008-08-27 Kenichi Handa <handa@m17n.org>
12469
b8ff72fa 12470 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12471
124722008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12473
12474 * xterm.c (x_term_init): Temporarily hide the partially
12475 initialized terminal while calling vendor-specific-keysyms.
12476
124772008-08-26 Eli Zaretskii <eliz@gnu.org>
12478
12479 * msdos.c (internal_terminal_init): Most initializations done only
12480 once, especially initial_screen_colors[] and termscript open.
12481
124822008-08-26 Chong Yidong <cyd@stupidchicken.com>
12483
12484 * eval.c (Fcondition_case): Doc fix.
12485
12486 * widgetprv.h (EmacsFramePart): Change font member to the new font
12487 struct.
12488
12489 * widget.c: Include character.h and font.h for XSETFONT.
12490 (setup_frame_gcs): Compute X font id from font struct, just once.
12491
124922008-08-26 Eli Zaretskii <eliz@gnu.org>
12493
12494 * term.c (get_named_tty): Fix last change.
12495
124962008-08-26 Chong Yidong <cyd@stupidchicken.com>
12497
12498 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12499 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12500
125012008-08-25 Eli Zaretskii <eliz@gnu.org>
12502
12503 * frame.c (do_switch_frame): Mark previously displayed frame as
12504 obscured for FRAME_MSDOS_P frames as well.
12505
125062008-08-24 Eli Zaretskii <eliz@gnu.org>
12507
12508 * frame.c (make_terminal_frame): Initialize f->terminal,
12509 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12510 Set the top frame to newly created frame.
12511 (Fmake_terminal_frame): Reuse the_only_display_info.
12512
12513 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12514 estimating available memory.
12515
b97439ce 125162008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12517
12518 * nsterm.m (ns_draw_window_cursor): Don't call
12519 NSDisableScreenUpdates and NSEnableScreenUpdates on
12520 non-NS_IMPL_COCOA systems.
12521
125222008-08-23 Andreas Schwab <schwab@suse.de>
12523
12524 * process.c (procfs_system_process_attributes): Fix use of
12525 uninitialized variables.
12526
125272008-08-23 Eli Zaretskii <eliz@gnu.org>
12528
12529 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12530
12531 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12532 calling tty-set-up-initial-frame-faces.
12533
b8ff72fa
SM
12534 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12535 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12536
12537 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12538 addition to output_termcap.
12539
12540 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12541
12542 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12543 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12544 highlight.
12545
12546 * process.c [!subprocesses]: Define QCname.
12547 (syms_of_process): Intern and staticpro it.
12548
12549 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12550 Adjust for changes in encoding/decoding routines.
12551 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12552 encode_coding and decode_coding.
12553
b8ff72fa 12554 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12555
12556 * dosfns.c: Include frame.h before termhooks.h.
12557 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12558 variable termscript.
12559
12560 * s/msdos.h (USER_FULL_NAME): Define.
12561 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12562
12563 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12564 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12565 pw->pw_gecos.
12566
12567 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12568 SELECTED_FRAME as additional (1st) argument.
12569 (tty_read_avail_input): Handle output_msdos_raw in
12570 addition to output_termcap.
12571
12572 * msdos.c: Include frame.h before termhooks.h.
12573 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12574 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12575 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12576 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12577 (IT_set_terminal_modes, IT_reset_terminal_modes)
12578 (IT_set_frame_parameters): Use tty->termscript instead of a global
12579 variable termscript.
12580 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12581 global variable terminal_coding. Don't refer to
12582 Vnonascii_translation_table.
12583 (internal_terminal_init): Set Vwindow_system in current_kboard.
12584 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12585 Announce date and time of session start, if termscript is open.
12586 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12587 term.c:init_tty). Open termscript only of not already open.
12588 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12589 here instead of dos_ttraw. Don't initialize display if this is an
12590 initial tty. Don't set FRAME_FONT.
12591 (Vwindow_system_version): Bump to 23.
12592 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12593 is available, set up mouse_position_hook.
12594 (dos_ttraw, IT_set_terminal_modes): If called with initial
12595 terminal, do nothing.
12596 (IT_set_frame_parameters): Handle the Qtty_type frame
12597 parameter by calling internal_terminal_init.
12598 (dos_set_window_size, show_mouse_face)
12599 (clear_mouse_face, IT_note_mode_line_highlight)
12600 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12601 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12602 (initialize_msdos_display): New function.
12603 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12604 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12605 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12606 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12607 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12608 (request_sigio, unrequest_sigio): Don't define, now defined on
12609 sysdep.c.
12610 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12611
12612 * term.c [MSDOS]: Include msdos.h.
12613 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12614 conditional to DOS_NT. Allow only one call to this function in a
12615 session. Don't allocate a new struct tty_display_info; instead,
12616 reuse the_only_display_info. Call get_tty_size to get screen
12617 dimensions. Call init_baud_rate to set bad_rate.
12618 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12619 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12620 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12621 (get_tty_terminal, get_named_tty, Ftty_type)
12622 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12623 output_termcap.
b8ff72fa
SM
12624 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12625 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12626 only when subprocesses are supported.
aac0c6e3
MR
12627
12628 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12629 f->output_data.x.
12630 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12631 terminal devices.
12632
5582fbc7 12633 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12634 x_output.
12635 (FRAME_FONT): Use output_data.tty.
12636 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12637 (struct x_display_info): Rename from display_info. Update all users in
12638 msdos.c.
aac0c6e3 12639 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12640 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12641 (dos_ttraw): Update prototype.
12642
12643 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12644 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12645
126462008-08-23 Jason Rumney <jasonr@gnu.org>
12647
12648 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12649 (fn_TIFFSetDirectory): New library function used.
12650 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12651 (tiff_load): Use :index to select among multiple images. Set count
12652 property when multiple images exist.
12653 (gif_format): Use :index, not :image.
12654
126552008-08-23 Chong Yidong <cyd@stupidchicken.com>
12656
12657 * xdisp.c (try_scrolling): Check INT_MAX instead of
12658 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12659 to obtain INT_MAX.
12660
126612008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12662
12663 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12664
126652008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12666
12667 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12668 GNUstep library location.
12669
126702008-08-21 Chong Yidong <cyd@stupidchicken.com>
12671
12672 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12673 before using it.
12674
12675 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12676
126772008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12678
12679 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12680 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12681 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12682 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12683 (EmacsApp-cursor_blink_handler): Remove declaration.
12684 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12685 match 01 Feb 2008 changes in xterm.c.
12686 (ns_read_socket): Add cast to avoid warning.
12687 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12688 GNUstep.
12689
126902008-08-20 Chong Yidong <cyd@stupidchicken.com>
12691
12692 * xselect.c (x_get_foreign_selection): Return nil if desired
12693 selection could not be obtained, instead of signalling an error.
12694
126952008-08-20 David Reitter <david.reitter@gmail.com>
12696
12697 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12698 * nsterm.m: Remove ns-specific code for cursor blinking.
12699 (ns_draw_window_cursor): Clear cursor properly rather than
12700 redrawing the area. Respect width of bar cursors.
12701 These changes enable the use of generic blink-cursor-mode and
12702 generic cursor types in NS and support smooth cursor movements (do
12703 not blink off after command).
12704 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12705 Nextstep, too.
12706
127072008-08-19 Kenichi Handa <handa@m17n.org>
12708
12709 * font.c (Vfont_log_deferred): New variable.
12710 (font_add_log): Check Vfont_log_deferred.
12711 (font_deferred_log): New function.
12712
12713 * font.h (font_deferred_log): Extern it.
12714
12715 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12716 for sorting.
12717 (face_for_char): Use deferred log.
12718
127192008-08-18 Kenichi Handa <handa@m17n.org>
12720
12721 * fontset.c (face_for_char): Add font log.
12722
12723 * font.c (font_add_log): Add the font properties :script, :lang,
12724 and :otf in the log.
12725
127262008-08-17 Chong Yidong <cyd@stupidchicken.com>
12727
12728 * xdisp.c: Remove dead code.
12729 (handle_invisible_prop, next_overlay_string): Defer call to
12730 setup_for_ellipsis.
12731 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12732
127332008-08-15 Chong Yidong <cyd@stupidchicken.com>
12734
12735 * xfaces.c (lookup_derived_face): Properly handle possible zero
12736 return value of get_lface_attributes.
12737 (merge_faces): Don't tell lookup_derived_face to signal an error
12738 if face is not found.
12739
12740 * dired.c (Fdirectory_files): Doc fix.
12741
12742 * process.c (make_process): Initialize kill_without_query struct
12743 member.
12744
127452008-08-15 Eli Zaretskii <eliz@gnu.org>
12746
12747 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12748 Alternative calculation of totphys for Visual Studio 6.
12749
12750 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12751
12752 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12753 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12754 All users changed.
12755 (stat): Only root directory passed to GetDriveType. Allow RAM
12756 disk as well as local fixed disk when w32-get-true-file-attributes
12757 is set to `local'.
12758 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12759 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12760 (w32_cached_id, w32_add_to_cache): New functions.
12761 (get_name_and_id): Look account names in the cache before calling
12762 lookup_account_sid.
12763 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12764 New initialization flags.
12765 (globals_of_w32): Initialize them to zero.
12766 (w32_system_process_attributes): Use w32_cached_id and
12767 w32_add_to_cache.
12768
127692008-08-14 Lawrence Mitchell <wence@gmx.li>
12770
12771 * lread.c (Fread_char, Fread_char_exclusive): If no character
12772 event is read before timeout is reached, return nil, rather than
12773 converting to a number.
12774
127752008-08-14 Chong Yidong <cyd@stupidchicken.com>
12776
12777 * fns.c (use_dialog_box): Doc fix.
12778
12779 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12780 on OS X.
12781
127822008-08-13 Chong Yidong <cyd@stupidchicken.com>
12783
12784 * frame.c (Qns_parse_geometry): New var.
12785 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12786
127872008-08-11 Chong Yidong <cyd@stupidchicken.com>
12788
12789 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12790 space character in calculating tabs.
12791
127922008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12793
12794 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12795
127962008-08-10 Glenn Morris <rgm@gnu.org>
12797
12798 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12799 silence gcc "limited range of data type" warnings in some
12800 make_fixnum_or_float calls.
12801
128022008-08-09 Eli Zaretskii <eliz@gnu.org>
12803
12804 * w32.c (w32_system_process_attributes): If the process does not
12805 exist, return nil.
12806
12807 * w32.c: Include thelp32.h, psapi.h and coding.h.
12808 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12809 declarations.
12810 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12811 (Process32Next_Proc): New typedefs.
12812 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12813 (g_b_init_process32_next, g_b_init_open_thread_token)
12814 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12815 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12816 (g_b_init_get_process_working_set_size)
12817 (g_b_init_global_memory_status_ex): New static variables.
12818 (globals_of_w32): Initialize them.
12819 (create_toolhelp32_snapshot, process32_first, process32_next)
12820 (open_thread_token, impersonate_self, revert_to_self)
12821 (get_process_memory_info, get_process_working_set_size)
12822 (global_memory_status, global_memory_status_ex): New wrapper
12823 functions.
12824 (w32_list_system_processes, w32_system_process_attributes)
12825 (enable_privilege, restore_privilege, ltime, process_times):
12826 New functions.
12827 (convert_time_raw): New function.
12828 (convert_time): Remove conversion of FILETIME into time in 100
12829 nsec units, call convert_time_raw instead.
12830
12831 * process.h (w32_list_system_processes, w32_system_process_attributes):
12832 Add prototypes.
12833 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12834 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12835 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12836 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12837
12838 * process.c (Fsystem_process_attributes): Doc fix.
12839
128402008-08-08 Chong Yidong <cyd@stupidchicken.com>
12841
12842 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12843 a continued multi-char glyph; if so, advance to the actual glyph.
12844
128452008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12846
12847 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12848
12849 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12850 (.m.o): Use it.
12851 * config.in: Regenerate.
12852
128532008-08-07 Chong Yidong <cyd@stupidchicken.com>
12854
12855 * xdisp.c (redisplay_window): Revert last change.
12856 (try_window): Check bottom scroll margin too.
12857
128582008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12859
12860 * config.in: Regenerate.
12861
12862 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12863 -list-load-path-shadows'.
12864 (nsgui.h): Reduce number of things depending on it.
12865
128662008-08-06 Chong Yidong <cyd@stupidchicken.com>
12867
12868 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12869 instead of window-end which does the wrong thing at eob.
12870 (try_cursor_movement): Minor optimization.
12871 (redisplay_window): If scroll margin is defined, don't assume
12872 window doesn't need scrolling.
12873
128742008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12875
12876 * config.in: Regenerate.
12877
12878 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12879 (mostlyclean): Don't delete *.d under NS.
12880
12881 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12882
128832008-08-06 Kenichi Handa <handa@m17n.org>
12884
12885 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12886
128872008-08-06 Andreas Schwab <schwab@suse.de>
12888
12889 * config.in: Regenerate.
12890
128912008-08-05 Chong Yidong <cyd@stupidchicken.com>
12892
12893 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12894 forcing a window start.
12895
12896 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12897 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12898
128992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12900
12901 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12902 argument.
12903
129042008-08-05 Juanma Barranquero <lekktu@gmail.com>
12905
12906 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12907 <scroll-down-aggressively, before-change-functions>:
12908 <after-change-functions>: Reflow docstrings.
12909
129102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12911 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12912
12913 Dock menu customization, based on a patch by Ken Raeburn, plus some
12914 other fixes.
12915 * nsmenu.m (dockMenu): New variable.
12916 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12917
12918 * nsterm.h (dockMenu): Declare.
12919
12920 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12921 (ns_term_init): Initialize dockMenu.
12922 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12923 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12924 left.
12925
12926 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12927
129282008-08-04 Chong Yidong <cyd@stupidchicken.com>
12929
12930 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12931
12932 * config.in: Regenerate.
12933
129342008-08-04 Seiji Zenitani <zenitani@mac.com>
12935
12936 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12937
129382008-08-04 Chong Yidong <cyd@stupidchicken.com>
12939
12940 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12941
129422008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12943
12944 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12945
12946 * keyboard.h: Comment an #endif.
12947
12948 * lisp.h (have_menus_p): Adjust comment.
12949
12950 * menu.c (find_and_return_menu_selection): Fix comparison with
12951 client_data.
12952
12953 * nsmenu.m (popup_activated_flag): New variable.
12954 (popup_activated): New function.
12955 (menu-or-popup-active-p): New exported lisp definition.
12956 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12957 when popup done.
12958 (ns_popup_dialog): Set popup_activated_flag.
12959
12960 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12961 version for GNUstep (handled by conditional typedef in nsterm.m).
12962 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12963 in rgb.txt).
12964
12965 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12966
12967 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12968
12969 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12970
12971 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12972 shortcircuit if popup_activated like GTK and X toolkit.
12973
12974 * m/inter386.h: Change DARWIN to DARWIN_OS.
12975
12976 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12977 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12978 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12979 comment on NO_SOCK_SIGIO.
12980
129812008-08-03 Chong Yidong <cyd@stupidchicken.com>
12982
12983 * nsterm.m (windowDidResize): Remove stopModal call.
12984
129852008-08-03 Andreas Schwab <schwab@suse.de>
12986
12987 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12988 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12989
129902008-08-02 Chong Yidong <cyd@stupidchicken.com>
12991
12992 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12993 Don't use uninitialized pointer variable when using getrlimit.
12994
129952008-08-02 Jason Rumney <jasonr@gnu.org>
12996
12997 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12998
129992008-08-02 Eli Zaretskii <eliz@gnu.org>
13000
13001 * alloc.c (NSTATICS): Bump to 0x640.
13002
13003 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13004
13005 * lisp.h: Add prototype for directory_files_internal.
13006
13007 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13008 New functions.
13009 (syms_of_process): Defsubr them. Add initializations for various
13010 Q* symbols used in procfs_system_process_attributes.
13011 (procfs_list_system_processes, procfs_system_process_attributes)
13012 [HAVE_PROCFS]: New functions.
13013 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13014 (procfs_get_total_memory): New functions.
13015
130162008-08-01 Juanma Barranquero <lekktu@gmail.com>
13017
13018 * xfaces.c (Fx_load_color_file): Fix previous change;
13019 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13020
130212008-08-01 Michael Albinus <michael.albinus@gmx.de>
13022
13023 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13024
130252008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13026
13027 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13028
130292008-08-01 Chong Yidong <cyd@stupidchicken.com>
13030
13031 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13032
13033 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13034 define NSApplicationDelegateReplySuccess.
13035 (EmacsView -converstationIdentifier): Use long instead of
13036 NSInteger for GNUstep, since it doesn't have NSInteger.
13037
13038 * xmenu.c: Revert last change.
13039
13040 * keyboard.h: Fix last change.
13041
130422008-08-01 Juanma Barranquero <lekktu@gmail.com>
13043
13044 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13045 on Windows.
13046
130472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13048
13049 Warning clearing and clean-up in NS port.
13050 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13051 Add prototypes.
13052 * nsgui.h (FACE_DEFAULT): Remove, unused.
13053 (XGCValues): Change colors to unsigned long.
13054 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13055 nsterm.m.
13056 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13057 (ns_list_fonts): Remove, unused.
13058 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13059 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13060 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13061 (nsfont_draw): Compare face colors to 0, not nil.
13062 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13063 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13064 (-addSubmenuWithTitle:): Use NSMenuItem class.
13065 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13066 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13067 (ns_clip_to_row): Make gc arg a BOOL.
13068 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13069 ns_clip_to_row() call.
13070 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13071 used). Cast FRAME_FONT assignments.
13072 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13073 (ns_string_to_lispmod): Change arg to const char.
13074 (ns_term_init): Use NSMenuItem class.
13075 (EmacsApp -openFile:): Move to different section of file.
13076 (EmacsApp -application:openFiles:): Don't return a value, call
13077 -replyToOpenOrPrint:.
13078 (EmacsView -keyDown:): Fix up cast.
13079 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13080 (EmacsView -menuDown:): Cast tag in call to
13081 find_and_call_menu_selection().
13082 (ns_list_fonts): Remove, unused.
13083 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13084 (ns_fontname_to_xlfd): Make static.
13085 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13086 Remove prototypes (now in keyboard.h).
13087 (next_menubar_widget_id): Remove, unused.
13088 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13089 Remove prototypes (now in keyboard.h).
13090 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13091
130922008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13093
13094 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13095 (floatfns.o): Depend on syssignal.h.
13096 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13097
13098 * systty.h: Fix previous change that removed BSD_TERMIOS.
13099 Add comments to #ifdefs.
13100
131012008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13102
13103 * w32fns.c (w32-load-color-file): Remove.
13104 (x-open-connection): Use renamed Fx_load_color_file.
13105 * xfaces.c (x-load-color-file): Add.
13106 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13107 Emacs.clr.
13108 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13109
131102008-07-31 Michael Albinus <michael.albinus@gmx.de>
13111
13112 * dbusbind.c (Fdbus_call_method_asynchronously)
13113 (Fdbus_method_error_internal): New defuns.
13114 (xd_read_message): Handle also reply messages.
13115 (Vdbus_registered_functions_table): Extend docstring.
13116
131172008-07-31 Juanma Barranquero <lekktu@gmail.com>
13118
13119 * keyboard.c (gobble_input): Fix previous change.
13120
131212008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13122
13123 * bitmaps/README:
13124 * xfns.c:
13125 * termcap.c:
13126 * term.c:
13127 * syswait.h:
13128 * systty.h:
13129 * systime.h:
13130 * syssignal.h:
13131 * sysdep.c:
13132 * process.h:
13133 * process.c:
13134 * print.c:
13135 * ndir.h:
13136 * lread.c:
13137 * keyboard.c:
13138 * getpagesize.h:
13139 * floatfns.c:
13140 * fileio.c:
13141 * emacs.c:
13142 * doc.c:
13143 * dispnew.c:
13144 * dired.c:
13145 * data.c:
13146 * callproc.c:
13147 * buffer.c:
13148 * README:
13149 * Makefile.in:
13150 * s/template.h:
13151 * s/msdos.h:
13152 * m/vax.h: Remove VMS support.
13153 * s/vms.h:
13154 * vlimit.h:
13155 * uaf.h:
13156 * temacs.opt:
13157 * param.h:
13158 * ioctl.h: Remove file.
13159
131602008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13161
13162 * s/ms-w32.h (MULTI_KBOARD): Remove.
13163 * xterm.c:
13164 * xselect.c:
13165 * xfns.c:
13166 * window.c:
13167 * w32term.c:
13168 * w32fns.c:
13169 * terminal.c:
13170 * termhooks.h:
13171 * term.c:
13172 * sysdep.c:
13173 * keyboard.h:
13174 * keyboard.c:
13175 * frame.h:
13176 * frame.c:
13177 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13178 * config.in: Regenerate.
13179
131802008-07-30 Jason Rumney <jasonr@gnu.org>
13181
13182 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13183
13184 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13185 (w32font_open_internal): Get unicode version of textmetrics.
13186 Don't enable or disable glyph indices here.
13187 (w32font_open): Disable use of glyph indices.
13188
13189 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13190
131912008-07-30 Chong Yidong <cyd@stupidchicken.com>
13192
13193 * minibuf.c (Vread_buffer_function): Doc fix.
13194
131952008-07-30 John Paul Wallington <jpw@pobox.com>
13196
13197 * minibuf.c (read_buffer_completion_ignore_case): New var.
13198 (Fread_buffer): Use it.
13199
132002008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13201
13202 * systty.h (sensemode): Remove empty #if. Remove reference to
13203 BSD_TERMIOS, unused.
13204
13205 * sysdep.c: Remove reference to DGUX.
13206 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13207
13208 * config.in: Regenerate.
13209
132102008-07-30 Jason Rumney <jasonr@gnu.org>
13211
13212 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13213
132142008-07-29 Jason Rumney <jasonr@gnu.org>
13215
13216 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13217 is populated.
13218 (uniscribe_encode_char): Always use uniscribe.
13219 Avoid using context if cache is populated.
13220
132212008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13222
13223 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13224 open menu.
13225
13226 * gtkutil.c (menu_nav_ended): Remove.
13227 (create_menus): Remove signal connect for menu_nav_ended.
13228
132292008-07-28 Chong Yidong <cyd@stupidchicken.com>
13230
13231 * xdisp.c (redisplay_window): Check return value of
13232 compute_window_start_on_continuation_line before forcing a window
13233 start.
13234
132352008-07-28 Jason Rumney <jasonr@gnu.org>
13236
13237 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13238
13239 * w32term.c (w32_enable_unicode_output, cleartype_active):
13240 Remove obsolete display options.
13241 (x_draw_glyph_string_background): Don't use old cleartype_active
13242 workaround.
13243 (w32_initialize): Remove cleartype_active initialization.
13244 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13245
132462008-07-28 Andreas Schwab <schwab@suse.de>
13247
13248 * lisp.h (init_weak_hash_tables, syms_of_font)
13249 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13250 (remove_hash_entry): Don't declare.
13251 * eval.c (maybe_call_debugger): Make static and move before use.
13252 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13253 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13254 * xterm.h (x_set_frame_alpha): Declare.
13255
132562008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13257
13258 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13259 (create_menus): Connect selection-done to menu_nav_ended.
13260
132612008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13262
13263 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13264 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13265 parameter with read of 'alpha' one.
13266 (Qns_frame_parameter): Remove.
5582fbc7 13267 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13268 (next-selection-coding-system, Vselection_coding_system)
13269 (Vnext_selection_coding_system): Drop.
13270
132712008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13272
13273 * nsfns.m (do-applescript, do_applescript): Rename to
13274 ns-do-applescript, ns_do_applescript, and move within file.
13275
132762008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13277
13278 Remove support for Mac Carbon.
13279 * mactoolbox.c:
13280 * macterm.h:
13281 * macterm.c:
13282 * macselect.c:
13283 * macmenu.c:
13284 * macgui.h:
13285 * macfns.c:
13286 * mac.c: Remove file.
13287 * s/darwin.h:
13288 * m/intel386.h:
13289 * xfaces.c:
13290 * xdisp.c:
13291 * window.c:
13292 * tparam.c:
13293 * termhooks.h:
13294 * termcap.c:
13295 * term.c:
13296 * syssignal.h:
13297 * sysselect.h:
13298 * sysdep.c:
13299 * process.c:
13300 * lread.c:
13301 * lisp.h:
13302 * keyboard.c:
13303 * image.c:
13304 * fringe.c:
13305 * frame.h:
13306 * frame.c:
13307 * fontset.c:
13308 * font.h:
13309 * font.c:
13310 * fns.c:
13311 * fileio.c:
13312 * emacs.c:
13313 * dispnew.c:
13314 * dispextern.h:
13315 * config.in:
13316 * atimer.c:
2ae37cf0 13317 * Makefile.in: Remove code for Carbon.
aac0c6e3 13318
f0131492 133192008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13320
13321 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13322
133232008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13324
13325 * macterm.h (kCGBitmapByteOrder32Host): New define for
13326 non-universal SDKs.
13327
13328 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13329 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13330
13331 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13332 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13333
133342008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13335
13336 * w32inevt.c: Include dispextern.h.
13337
133382008-07-26 Andreas Schwab <schwab@suse.de>
13339
13340 * print.c (print_object): Fix off-by-one in last change.
13341
133422008-07-25 Juanma Barranquero <lekktu@gmail.com>
13343
13344 * term.c (syms_of_term): Don't initialize default_orig_pair,
13345 default_set_foreground and default_set_background on Windows.
13346
133472008-07-25 Jason Rumney <jasonr@gnu.org>
13348
13349 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13350 ScriptItemize. Clean up return value checking. Remove unused
13351 variables.
13352 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13353 shaping engine.
13354
13355 * w32font.c (w32font_has_char): Handle the case where we can't
13356 determine the script for a character.
13357
133582008-07-25 Chong Yidong <cyd@stupidchicken.com>
13359
13360 * term.c (syms_of_term): Initialize default_orig_pair,
13361 default_set_foreground, and default_set_background.
13362
13363 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13364 clash (bug#86).
13365 (getloadavg): Callers changed.
13366
13367 * image.c (svg_load_image): Fix last change.
13368 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13369 image size is valid. Use g_object_unref instead of deprecated
13370 rsvg_handle_free to free rsvg handle.
13371 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13372
133732008-07-25 Jason Rumney <jasonr@gnu.org>
13374
13375 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13376 surrogates before looking up glyph index.
13377 (w32font_text_extents): Encode as surrogates if falling back to
13378 functions that need UTF-16 wide chars.
13379
13380 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13381 BMP as surrogates before looking up glyph index.
13382
133832008-07-25 Chong Yidong <cyd@stupidchicken.com>
13384
13385 * image.c (svg_load_image): Check for failure in return value of
13386 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13387
133882008-07-25 Jason Rumney <jasonr@gnu.org>
13389
13390 * w32font.c (Fx_select_font): Reverse sense of second arg.
13391
133922008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13393
13394 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13395 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13396
13397 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13398 (PURESIZE): Use it.
13399
134002008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13401
13402 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13403 * m/alpha.h (TEXT_END):
13404 * m/ibmrs6000.h (TEXT_END):
13405 * m/macppc.h (TEXT_END):
13406 * s/darwin.h (TEXT_END):
13407 * s/msdos.h (TEXT_END): Remove, unused.
13408 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13409 * s/cygwin.h: Remove comment.
13410
13411 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13412 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13413 * m/intel386.h (DOT_GLOBAL_START):
13414 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13415 (USG): Remove, file not used on USG platforms.
13416
13417 * Makefile.in (HAVE_X11): Remove empty #else.
13418
134192008-07-24 Andreas Schwab <schwab@suse.de>
13420
13421 * fileio.c (Finsert_file_contents): Properly adjust undo list
13422 after format conversion.
13423
134242008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13425
13426 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13427 (menu_nav_ended): Remove.
13428 (create_menus): Remove signal connect for menu_nav_ended.
13429 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13430 create_menus.
13431 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13432
134332008-07-23 Jason Rumney <jasonr@gnu.org>
13434
13435 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13436 with opened font.
13437 (w32font_open): Set font type to gdi.
13438
13439 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13440
134412008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13442
13443 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13444 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13445 defines it.
13446 * unexec.c (ADDR_CORRECT): Define unconditionally.
13447
13448 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13449
13450 * unexec.c: Remove code depending on !COFF and USG, the file is
13451 not used for such systems.
13452
13453 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13454 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13455 (LD_SWITCH_SYSTEM_1): Remove, update users.
13456
13457 * s/darwin.h (DATA_END):
13458 * m/intel386.h (DATA_END):
13459 * m/ibmrs6000.h (DATA_END):
13460 * m/alpha.h (DATA_END): Remove, unused.
13461
13462 * config.in: Regenerate.
13463 * s/ms-w32.h (subprocesses): Define unconditionally.
13464 * s/template.h (subprocesses): Update comment.
13465 * s/vms.h (subprocesses):
13466 * s/usg5-4.h (subprocesses):
13467 * s/hpux10-20.h (subprocesses):
13468 * s/gnu-linux.h (subprocesses):
13469 * s/cygwin.h (subprocesses):
13470 * s/bsd-common.h (subprocesses):
13471 * s/aix4-2.h (subprocesses):
13472 * s/darwin.h (subprocesses): Do not define, defined by default now.
13473
13474 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13475 Remove all references.
13476 (temacs): Add GNUstep specific ld flags.
13477
13478 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13479 similarly to what X does.
13480
134812008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13482
13483 * nsfns.m (x-list-fonts): Remove.
13484 (syms_of_nsfns): Drop the x-list-fonts declaration.
13485 * nsterm.m: Get rid of remaining "//" comments.
13486
134872008-07-22 Chong Yidong <cyd@stupidchicken.com>
13488
13489 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13490
13491 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13492 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13493 (Fns_own_selection_internal, Fx_disown_selection_internal)
13494 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13495
13496 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13497 ... */' style of docstrings. Doc fixes.
13498
134992008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13500
13501 * terminfo.c (UP, BC, PC): Undo previous change.
13502
13503 * nsfns.m: Rename ns prefixed functions/variables to the
13504 corresponding x versions. Update references.
13505
135062008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13507
13508 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13509
135102008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13511
13512 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13513 Remove forwarding functions.
13514 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13515 non-static.
13516 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13517 non-static.
13518 (ns_frame_parm_handlers): Use the new names.
13519 (syms_of_nsfns): Move to the end of file.
13520
13521 * nsterm.m (syms_of_nsterm): Move to the end of file.
13522
13523 * dispnew.c (init_display): Remove code for X10.
13524
135252008-07-22 Jason Rumney <jasonr@gnu.org>
13526
13527 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13528 bare drive.
13529
135302008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13531
13532 * nsterm.m (syms_of_nsterm): Remove debugging println.
13533
135342008-07-22 David Reitter <david.reitter@gmail.com>
13535
13536 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13537 Carbon implementation of the same functionality: execute arbitrary
13538 AppleScript code.
13539
135402008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13541
13542 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13543 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13544 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13545 (Fx_display_mm_height, Fx_display_mm_width)
13546 (Fx_display_backing_store, Fx_display_visual_class)
13547 (Fx_display_save_under, Fx_open_connection)
13548 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13549 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13550 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13551 (Fx_display_pixel_width, Fx_display_pixel_height)
13552 (Fx_display_usable_bounds, Fx_display_planes)
13553 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13554 ... */' style of docstrings.
13555
135562008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13557
13558 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13559 on this platform.
13560 (mips):
13561 * m/iris4d.h (mips): Do not define.
13562 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13563
13564 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13565
13566 * image.c:
13567 * nsfns.m:
13568 * nsselect.m:
13569 * nsterm.h:
13570 * nsterm.m: Rename ns prefixed functions/variables to the
13571 corresponding x versions. Update references.
13572
13573 * m/ibms390x.h (NO_REMAP): Do not undefine.
13574
13575 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13576
135772008-07-21 Chong Yidong <cyd@stupidchicken.com>
13578
13579 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13580 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13581 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13582 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13583 (Fns_display_mm_height, Fns_display_mm_width)
13584 (Fns_display_backing_store, Fns_display_visual_class)
13585 (Fns_display_save_under, Fns_open_connection)
13586 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13587 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13588 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13589 (Fns_display_pixel_width, Fns_display_pixel_height)
13590 (Fns_display_usable_bounds, Fx_display_planes)
13591 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13592
135932008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13594
13595 * print.c (print_object): Check print_depth before searching for
13596 circularities.
13597
135982008-07-21 Michael Albinus <michael.albinus@gmx.de>
13599
13600 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13601 only sprintf.
13602
136032008-07-21 Kenichi Handa <handa@m17n.org>
13604
13605 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13606
136072008-07-20 Andreas Schwab <schwab@suse.de>
13608
13609 * syntax.c (find_start_pos, find_start_value)
13610 (find_start_value_byte, find_start_begv, find_defun_start)
13611 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13612
136132008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13614
13615 * s/sol2-3.h: Insert contents of s/sol2.h.
13616 (LD_SWITCH_SYSTEM): Remove redundant definition.
13617 * s/sol2.h: Remove, unused.
13618
136192008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13620
13621 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13622
136232008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13624
13625 * Makefile.in (ns_appdir): Fix typo in find command.
13626
136272008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13628
13629 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13630
13631 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13632 added not supported anymore.
13633
13634 * s/usg5-4-2.h (LIBS_SYSTEM):
13635 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13636
13637 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13638 * s/lynxos.h (GETPGRP_NO_ARG):
13639 * s/hpux10-20.h (NO_SIOCTL_H):
13640 * s/gnu.h (GETPGRP_NO_ARG):
13641 * s/gnu-linux.h (NO_SIOCTL_H):
13642 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13643 * s/cygwin.h (GETPGRP_NO_ARG):
13644 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13645 (C_DEBUG_SWITCH): Remove duplicate definition.
13646
13647 * m/ibms390.h: Remove boilerplate comments.
13648
13649 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13650
13651 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13652 (wait_reading_process_output): Remove code for SunOS, platform not
13653 supported anymore. Use SOLARIS2 instead of sun.
13654
136552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13656
13657 * font.c (font_open_by_name): Under NS, default lface height to zero.
13658 (font_open_for_lface): Under NS, set size based on frame fontsize.
13659 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13660 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13661
136622008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13663
13664 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13665 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13666 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13667 YES/NO.
13668 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13669 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13670 * Makefile.in (clean): Clear out build destination dir.
13671
136722008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13673
13674 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13675 xterm, xselect.
13676 * lisp.h: Remove declaration of hash_remove.
13677 * nsgui.h: Remove redefinitions of hash_remove.
13678 * fns.c (hash_remove): Rename to hash_remove_from_table.
13679
136802008-07-19 Seiji Zenitani <zenitani@mac.com>
13681
13682 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13683 strdup() the family UTF8String before modifying it.
13684
136852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13686
13687 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13688 NS_FACE_BACKGROUND with 0 instead of nil.
13689 * nsfont.m (nsfont_draw): Same.
13690
136912008-07-19 Chong Yidong <cyd@stupidchicken.com>
13692
13693 * nsfns.m (ns_set_background_color): Fix crash.
13694
136952008-07-18 Chong Yidong <cyd@stupidchicken.com>
13696
13697 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13698
136992008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13700
13701 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13702
137032008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13704
13705 * gtkutil.c: Include <config.h> instead of "config.h".
13706
13707 * lisp.h (Foverlay_buffer): Add EXFUN.
13708
13709 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13710 child process to complete child_setup. Undo 2005-09-21 change.
13711
13712 * s/darwin.h: Mention setsid after vfork.
13713
137142008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13715
13716 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13717 Depend on macgui.h.
13718
13719 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13720 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13721
13722 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13723 and f19.
13724 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13725
13726 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13727 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13728 Remove enumerators.
13729
13730 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13731 Check if FACE_FROM_ID returns NULL.
13732
137332008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13734
13735 * w32inevt.c (change_frame_size): Remove extern declaration.
13736 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13737 change_frame_size.
13738
137392008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13740
13741 * getloadavg.c: Revert last change (2008-07-15).
13742
137432008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13744
13745 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13746 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13747 from configure.
13748
137492008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13750
13751 * s/sol2.h:
13752 * s/sol2-4.h: Reorganize conditionals.
13753
13754 * ecrt0.c: Remove code depending on m68000, not used anymore.
13755
13756 * fns.c (hash_remove): Make static.
13757 * lisp.h (hash_remove): Don't prototype.
13758
13759 * m/ibmrs6000.h:
13760 * m/ibms390x.h:
13761 * m/macppc.h: Remove boilerplate comments.
13762
13763 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13764 Solaris, which does not need them.
13765
13766 * m/vax.h: Remove comments about unsupported systems.
13767
13768 * s/darwin.h: Reorganize ifdefs.
13769
137702008-07-17 Andreas Schwab <schwab@suse.de>
13771
13772 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13773
137742008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13775
13776 Use SDATA. Follow coding convention of placing operators at
13777 beginning of next line rather than end of previous line, and placing
13778 spaces around infix operators.
13779
13780 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13781 in case it was defined already.
13782 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13783 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13784 ns_default.
13785 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13786 Lisp_Objects.
13787 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13788 (ns_defined_color, ns_color_to_lisp): Declare.
13789 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13790 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13791 it's accepted even with USE_LISP_UNION_TYPE.
13792 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13793 (update_frame_tool_bar): Remove apparently obsolete tests for
13794 non-integerness of f->tool_bar_lines.
13795 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13796 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13797 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13798 (nsfont_open): Don't confuse NULL for Qnil.
13799 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13800 * menu.h (find_and_call_menu_selection):
13801 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13802 (find_and_return_menu_selection): Always return something.
13803 * frame.h: Include dispextern.h for Display_Info.
13804 (display_x_get_resource): Declare.
13805
138062008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13807
13808 * syntax.c: Remove stdio.h include accidentally introduced in
13809 Emacs.app commit.
13810 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13811 NS_IMPL_COCOA.
13812 * keyboard.c (handle_async_input, input_available_signal): Remove
13813 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13814
138152008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13816
13817 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13818 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13819 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13820 Use SDATA.
13821
13822 * keymap.c: Remove all NS-specific code.
13823 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13824 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13825 where_is_preferred_modifier, return a different value depending on how
13826 preferred is the binding.
13827 (where_is_internal): Adjust accordingly.
13828 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13829 Adjust to new preferred_sequence_p.
13830 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13831 * keyboard.c (parse_solitary_modifier): Not static any more.
13832 * keyboard.h (parse_solitary_modifier): Declare.
13833
138342008-07-16 Andreas Schwab <schwab@suse.de>
13835
13836 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13837 of easymenu.
13838
138392008-07-16 Chong Yidong <cyd@stupidchicken.com>
13840
13841 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13842 that we don't move off the line.
13843
138442008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * keyboard.c (Qsuper): Remove.
13847 (parse_menu_item): Don't call where_is_internal specially for NS.
13848
138492008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13850
13851 * s/gnu-linux.h: Remove boilerplate comments.
13852
13853 * m/alpha.h (__ELF__): Consolidate conditions.
13854
13855 * m/m68k.h (linux): Use GNU_LINUX instead.
13856 Remove boilerplate comments.
13857
13858 * m/intel386.h: Undo refactoring from previous change.
13859 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13860 too, remove dead code.
13861 (linux): Use GNU_LINUX instead.
13862
138632008-07-16 Jason Rumney <jasonr@gnu.org>
13864
13865 * w32gui.h: Repeat 26 June changes lost by last change.
13866
138672008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13868
13869 * systty.h: Remove code for Aix on 386, unsupported platform.
13870
13871 * s/ms-w32.h: Remove boilerplate comments.
13872 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13873
13874 * s/gnu-linux.h (TERM): Remove support.
13875 (HAVE_SYSVIPC): Remove, unused.
13876 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13877 for this system.
13878
13879 * process.c: Remove support for IRIS, unused.
13880 Remove support for TERM, not relevant anymore.
13881
13882 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13883 used with the definition.
13884
13885 * s/aix4-2.h (static): Do not undef.
13886
13887 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13888 only used on Aix.
13889 (HAVE_SYSVIPC): Remove, unused.
13890
13891 * m/hp800.h (CANNOT_DUMP): Do not undef.
13892
13893 * m/alpha.h: Fix comment.
13894
13895 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13896 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13897 used by this configuration.
13898 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13899 * unexec.c: Remove code depending on HPUX and
13900 USG_SHARED_LIBRARIES, not used with this file. Remove code
13901 depending on IRIS, unused. Remove if 0-ed code.
13902
13903 * s/template.h: Remove comments about static.
13904
13905 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13906 Remove if 0-ed code.
13907 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13908 were the same as the default.
13909 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13910 Remove boilerplate comments.
13911 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13912 (HAVE_SYSVIPC): Remove, unused.
13913 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13914
13915 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13916 Remove boilerplate comments.
13917 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13918 Remove boilerplate comments.
13919 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13920 Remove boilerplate comments.
13921 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13922
13923 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13924 USG systems which do not use DATA_SEG_BITS.
13925 Refactor code. Remove boilerplate comments.
13926
13927 * m/ibms390.h:
13928 * m/m68k.h:
13929 * s/bsd-common.h:
13930 * s/cygwin.h:
13931 * s/darwin.h:
13932 * s/freebsd.h:
13933 * s/gnu.h:
13934 * s/msdos.h: Remove boilerplate comments.
13935
13936 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13937 do not use this file.
aac0c6e3
MR
13938 (IRIS_4D): Remove, unused.
13939
13940 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13941 do not use this file.
aac0c6e3
MR
13942 (SIGN_EXTEND_CHAR):
13943 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13944 * unexmips.c: Remove file, unused.
13945
13946 * editfns.c (Fuser_full_name): Replace the only use of
13947 USER_FULL_NAME with its value.
13948 * config.in: Regenerate.
13949
139502008-07-16 David Reitter <david.reitter@gmail.com>
13951
13952 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13953 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13954
139552008-07-16 Glenn Morris <rgm@gnu.org>
13956
13957 * emacs.c (system-type): Doc fix.
13958
139592008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13960
13961 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13962 If the cache doesn't work, let's fix it, rather than work around it.
13963
139642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13965
13966 * Makefile.in: Correct additions for nsfont.o in last commit.
13967 * nsfont.m: New file (forgot last commit).
13968
139692008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13970
13971 * callproc.c (set_initial_environment): Initialize
13972 Vprocess_environment under CANNOT_DUMP (fixes crash when
13973 batch-compiling for bootstrap).
13974
139752008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13976 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13977
c4cc8b9a
JB
13978 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13979 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13980
139812008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13982
13983 Changes and additions for NeXTstep windowing system (Cocoa and
13984 GNUstep) support.
13985
13986 * Makefile.in:
13987 * config.in: Support defines and build commands for NS port.
13988 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13989 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13990 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13991 windowing.
13992 (struct face): Add synth_ital field.
13993 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13994 (init_display): Initialize Vinitial_window_system to "ns" when so
13995 compiled.
13996 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13997 (display_arg): Use under NS.
13998 (main): Under NS, allocate autorelease pool and handle command line
13999 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14000 (standard_args): Add NS-specific args.
14001 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14002 * font.c (DEFAULT_ENCODING): New variable.
14003 (font_find_for_lface): Use it.
14004 (syms_of_font): Load syms_of_nsfont under NS.
14005 * font.h: Declare nsfont_driver when compiled under NS.
14006 * fontset.c: When compiling under NS, include nsterm.h.
14007 (fontset_from_font): Autoconstruct fontset under NS.
14008 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14009 symbol, document and use it.
14010 (do_switch_frame): When for_deletion under Cocoa, add
14011 Fraise_frame(Qnil).
14012 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14013 (x_get_arg): Allow "yes" and "no" as boolean values.
14014 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14015 Qright under Cocoa.
14016 (focus-follows-mouse): Default to 0 under NS.
14017 * frame.h (enum output_method): Add output_ns.
14018 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14019 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14020 (FRAME_WINDOW_P): NS-specific definition.
14021 * fringe.c (max_used_fringe_bitmap): Make public.
14022 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14023 (getloadavg): Use NeXT code under descendant OS's.
14024 * image.c (includes and header section, x_create_bitmap_from_data)
14025 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14026 (image_background_transparent, x_clear_image_1)
14027 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14028 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14029 (x_to_xcolors, x_from_xcolors, x_disable_image)
14030 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14031 other GUIs, including XPM support using code originally written for
14032 Carbon GUI.
14033 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14034 using NS API.
14035 (image_ascent): Use font metrics macros instead of direct struct field
14036 access.
14037 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14038 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14039 Also, handle NS as GTK for menu bar purposes.
14040 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14041 toolkit where they differ.
14042 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14043 use cachelist, still needed under NS.
14044 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14045 (struct widget_value): Define it here for menu.c.
14046 * keymap.c (includes): Include modifier internals.
14047 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14048 NS.
14049 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14050 support for preferring sequences using certain modifiers, specified by
14051 the FIRSTONLY argument.
14052 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14053 under NS GNUstep implementation.
14054 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14055 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14056 * menu.c: Include nsterm.h under NS.
14057 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14058 (free_menubar_widget_tree_value, update_submenu_strings)
14059 (find_and_call_menu_selection): Treat NS as X and NT.
14060 (find_and_return_menu_selection): New function, used for popup menus.
14061 * nsgui.h:
14062 * nsterm.h:
14063 * nsfns.m:
14064 * nsimage.m:
14065 * nsmenu.m:
14066 * nsselect.m:
14067 * nsterm.m: New files.
14068 * process.c (wait_reading_process_output): Under NS, call ns_select()
14069 instead of plain select().
14070 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14071 beginning of buffer.
14072 * sysselect.h (init_process): Rename when compiling under Cocoa to
14073 avoid name conflict.
14074 * termhooks.h (display_info): Add ns_display_info to union.
14075 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14076 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14077 COCOA environment.
14078 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14079 unexec() signature. (Note, this will dump, but the resulting file
14080 crashes; unexosx is used instead; keeping around for reference and
14081 possible aid in getting dump working under GNUstep.)
14082 * w32gui.h (button_type, widget_value): Remove definitions (now in
14083 keyboard.h).
14084 * window.c: Include nsterm.h when compiling under NS.
14085 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14086 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14087 other GUI windowing systems.
14088 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14089 GTK.
14090 (x_consider_frame_title): Under NS, set icon type and frame
14091 modified-state indicator; use ns_set_name_as_filename() when using
14092 formatted title.
14093 (update_window_cursor): Make public when compiling under NS.
14094 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14095 (hourglass_atimer, Vhourglass_delay
14096 * xfaces.c (header section, init_frame_faces, clear_font_table)
14097 (defined_color, unload_color, x_face_list_fonts)
14098 (prepare_face_for_display): Add NS support parallel to other GUIs.
14099 Emulate GCs like other non-X GUIs.
14100 (split_font_name): Don't lowercase font name under NS.
14101 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14102 under NS.
14103 * s/darwin.h: Add support for compilation under NS.
14104
141052008-07-15 Jason Rumney <jasonr@gnu.org>
14106
14107 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14108 (w32_show_hourglass): Rename from show_hourglass.
14109 (w32_hide_hourglass): Rename from hide_hourglass.
14110 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14111 (Vhourglass_delay): Declare extern.
14112 (hourglass_started): Remove.
14113
14114 * xdisp.c (Vhourglass_delay): Remove static.
14115 (hourglass_started, start_hourglass, cancel_hourglass):
14116 Don't include these versions on WINDOWSNT.
14117
141182008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14119
14120 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14121 variables (formerly in xfns.c).
14122 (show_hourglass, hide_hourglass): New prototypes (same).
14123 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14124 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14125 in xfns.c).
14126 (syms_of_xdisp): Declare/initialize display-hourglass,
14127 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14128 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14129 formerly in xfns.c.
14130 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14131 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14132 (start_hourglass, cancel_hourglass): Remove.
14133 (show_hourglass, hide_hourglass): Remove prototypes and static
14134 modifiers.
14135 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14136 hourglass_atimer, hourglass_shown_p declaration/initialization.
14137 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14138 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14139 (start_hourglass, cancel_hourglass): Remove.
14140 (show_hourglass, hide_hourglass): Remove prototypes and static
14141 modifiers.
14142 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14143 hourglass_atimer, hourglass_shown_p declaration/initialization.
14144 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14145 (DEFAULT_HOURGLASS_DELAY): Remove.
14146 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14147 hourglass_shown_p declaration/initialization.
14148
141492008-07-14 Jason Rumney <jasonr@gnu.org>
14150
14151 * w32fns.c (w32_get_arg): Remove wrapper function.
14152 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14153 directly.
14154 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14155
141562008-07-14 Kenichi Handa <handa@m17n.org>
14157
14158 * xfont.c (xfont_open): Add workaround for X's bug.
14159
141602008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14161
14162 * fontset.c: Include <stdio.h> unconditionally.
14163
141642008-07-13 Michael Albinus <michael.albinus@gmx.de>
14165
14166 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14167 for filtering.
14168
141692008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14170
14171 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14172
14173 * m/macppc.h:
14174 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14175
c4cc8b9a 14176 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14177 (SPECIAL_EMACS_INT):
14178 * m/ia64.h (SPECIAL_EMACS_INT):
14179 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14180 * s/gnu.h (NLIST_STRUCT):
14181 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14182 * s/gnu-linux.h (LINUX):
14183 * s/msdos.h (HAVE_FACES):
14184 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14185
14186 * systty.h:
14187 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14188 anymore.
14189
141902008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14191
14192 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14193 always defined as int.
14194
14195 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14196 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14197 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14198 * s/freebsd.h (HAVE_WAIT_HEADER):
14199 * s/bsd-common.h (HAVE_UNION_WAIT):
14200 * s/aix4-2.h (HAVE_WAIT_HEADER):
14201 * m/mips.h (HAVE_UNION_WAIT):
14202 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14203 (COFF, static): Do not define, they are undefined later in the file.
14204
14205 * process.c (update_status): Don't use a union.
14206 (status_convert):
14207 (sigchld_handler): Use int instead of WAITTYPE.
14208
142092008-07-12 Chong Yidong <cyd@stupidchicken.com>
14210
14211 * indent.c (Fvertical_motion): Restore hscroll before moving to
14212 goal column.
14213
142142008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14215
14216 * lisp.h: Remove left over code.
14217
142182008-07-11 Andreas Schwab <schwab@suse.de>
14219
14220 * lisp.h: Fix logic in last change.
14221
14222 * menu.h: New file.
14223 * menu.c: Include it.
14224 * xmenu.c: Likewise.
14225 * Makefile.in: Update dependencies.
14226
142272008-07-11 Kenichi Handa <handa@m17n.org>
14228
14229 * fontset.c (fontset_from_font): Cancel the previous change.
14230
142312008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14232
14233 * lisp.h:
14234 * w32heap.c:
14235 * emacs.c:
14236 * alloc.c: Replace all references of NO_UNION_TYPE with
14237 USE_LISP_UNION_TYPE.
14238
14239 * m/xtensa.h (NO_UNION_TYPE):
14240 * m/vax.h (NO_UNION_TYPE):
14241 * m/template.h (NO_UNION_TYPE):
14242 * m/sparc.h (NO_UNION_TYPE):
14243 * m/mips.h (NO_UNION_TYPE):
14244 * m/macppc.h (NO_UNION_TYPE):
14245 * m/m68k.h (NO_UNION_TYPE):
14246 * m/iris4d.h (NO_UNION_TYPE):
14247 * m/intel386.h (NO_UNION_TYPE):
14248 * m/ibms390x.h (NO_UNION_TYPE):
14249 * m/ibms390.h (NO_UNION_TYPE):
14250 * m/ibmrs6000.h (NO_UNION_TYPE):
14251 * m/ia64.h (NO_UNION_TYPE):
14252 * m/hp800.h (NO_UNION_TYPE):
14253 * m/arm.h (NO_UNION_TYPE):
14254 * m/amdx86-64.h (NO_UNION_TYPE):
14255 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14256 defining it the same.
14257
142582008-07-10 Chong Yidong <cyd@stupidchicken.com>
14259
14260 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14261
142622008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14263
14264 * fileio.c:
50426a04 14265 * sysdep.c:
aac0c6e3
MR
14266 * systty.h:
14267 * m/ibmrs6000.h:
14268 * m/iris4d.h:
14269 * s/aix4-2.h:
14270 * s/freebsd.h:
14271 * s/gnu-linux.h:
14272 * s/hpux10-20.h:
14273 * s/hpux11.h:
14274 * s/netbsd.h:
14275 * s/sol2-3.h:
14276 * s/sol2-4.h:
14277 * s/sol2.h:
14278 * s/usg5-4.h:
14279 * s/vms.h: Remove references to unused variables.
14280
142812008-07-10 Andreas Schwab <schwab@suse.de>
14282
14283 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14284 pattern before matching the generic family.
14285
142862008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14287
14288 * unexec.c:
14289 * s/vms.h:
14290 * s/usg5-4-2.h:
14291 * s/sol2-5.h:
14292 * s/freebsd.h:
14293 * s/darwin.h: Remove dead code.
14294
14295 * m/template.h:
14296 * m/sparc.h:
14297 * m/mips.h:
14298 * m/m68k.h:
14299 * m/iris4d.h:
14300 * m/intel386.h:
14301 * m/ibms390x.h:
14302 * m/ibms390.h:
14303 * m/ia64.h:
14304 * m/hp800.h:
14305 * m/arm.h:
14306 * m/amdx86-64.h: Remove dead code and references to unused
14307 and compiler defined symbols.
14308
14309 * unexmips.c:
14310 * unexelf.c: Remove references to desupported systems.
14311
14312 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14313
14314 * m/powermac.h: Remove boilerplate comments.
14315 (NO_REMAP): Remove unused definition.
14316
14317 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14318 define them.
14319
143202008-07-10 Kenichi Handa <handa@m17n.org>
14321
14322 * xfont.c (xfont_open): Log the reason of failure.
14323
143242008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14325
14326 * fontset.c (fontset_get_font_group):
14327 * font.c (font_check_otf): Specify argument types.
14328
143292008-07-09 Kenichi Handa <handa@m17n.org>
14330
14331 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14332 non-ASCII char is found.
14333
14334 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14335 (reorder_font_vector): Change the arg preferred_family to font.
14336 Prefer the spec matching with font.
14337 (fontset_get_font_group): New function.
14338 (fontset_find_font): Change the format of an element of a realized
14339 fontset. Use fontset_get_font_group.
14340 (fontset_font): Try the current fontset, the default fontset, the
14341 fallbacks of the current fontset, and the fallbacks of the default
14342 fontset in this order.
14343 (face_for_char): Delete the shortcut to use the current font.
14344 (fontset_from_font): Don't set fonts for Latin in the fontset.
14345
14346 * font.h (font_make_object, font_match_p): Adjust prototypes.
14347
14348 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14349
14350 * font.c (font_make_object): New arg entity and pixelsize.
14351 (font_check_otf_features, font_check_otf): New functions.
14352 (font_match_p): Check :lang, :script, and :otf properties.
14353
14354 * xfont.c (xfont_open): Adjust it for the change of
14355 font_make_object.
14356 (xfont_text_extents): Fix initial setting of metrics.
14357
14358 * ftfont.c (struct ftfont_info): New member index, delete member
14359 fc_charset_idx. Make the member order compatible with struct
14360 xftfont_info.
14361 (fc_charset_table): Change charset names to registry names.
14362 (ftfont_pattern_entity): Delete the args registry and
14363 fc_charset_idx. Change the value of :font-entity property
14364 to (FONTNAME . INDEX). Always set :registry property to
14365 `iso10646-1'.
14366 (struct ftfont_cache_data): New struct.
14367 (ftfont_lookup_cache): New arg for_face.
14368 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14369 (ftfont_driver): Set the member otf_capability.
14370 (ftfont_get_charset): Adjust it for the change of
14371 fc_charset_table.
14372 (OTF_TAG_SYM): New macro.
14373 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14374 for the change of fc_charset_table.
14375 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14376 ftfont_pattern_entity. Add FC_INDEX to objset.
14377 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14378 and ftfont_pattern_entity.
14379 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14380 font_make_object, struct ftfont_info.
14381 (ftfont_has_char): Use ftfont_get_fc_charset.
14382 (ftfont_otf_features, ftfont_otf_capability): New functions.
14383 (ftfont_shape): Use ftfont_get_otf.
14384 (ftfont_text_extents): Fix initial setting of metrics.
14385
14386 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14387 member order compatible with struct ftfont_info.
14388 (xftfont_open): Add FC_CHARSET to the pattern. Set
14389 xftfont_info->ft_size. Don't unlock the face. Check BDF
14390 properties if appropriate.
14391 (xftfont_close): Unlock the face.
14392 (xftfont_anchor_point, xftfont_shape): Deleted.
14393 (syms_of_xftfont): Don't set members anchor_point and shape of
14394 xftfont_driver.
14395
14396 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14397 font_make_object.
14398
14399 * w32font.c (w32font_open): Adjust it for the change of
14400 font_make_object.
14401 (w32font_open_internal): Don't set properties of font_object here.
14402
144032008-07-08 Chong Yidong <cyd@stupidchicken.com>
14404
14405 * macfns.c (x_create_tip_frame):
14406 * w32fns.c (x_create_tip_frame):
14407 * xfns.c (x_create_tip_frame): Pass parameter argument to
14408 face-set-after-frame-default.
14409
14410 * xfaces.c (Finternal_merge_in_global_face): Save merged
14411 attributes for the default face back into the face vector.
14412
144132008-07-08 Andreas Schwab <schwab@suse.de>
14414
14415 * fontset.h: Declare fontset_from_font. Don't declare
14416 new_fontset_from_font and fontset_from_font_name.
14417 * xterm.c: Include "fontset.h".
14418 * Makefile.in (xterm.o): Update dependencies.
14419
144202008-07-08 Glenn Morris <rgm@gnu.org>
14421
14422 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14423 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14424
144252008-07-07 Chong Yidong <cyd@stupidchicken.com>
14426
14427 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14428 (x_set_frame_parameters): Don't bind it.
14429
144302008-07-07 Juanma Barranquero <lekktu@gmail.com>
14431
14432 * w32fns.c (map_w32_filename): Declare extern.
14433
144342008-07-07 Jason Rumney <jasonr@gnu.org>
14435
14436 * w32term.c (WS_EX_LAYERED): Define if not already.
14437
144382008-07-06 Chong Yidong <cyd@stupidchicken.com>
14439
14440 * xfaces.c (set_font_frame_param): Don't try to set the font
14441 parameter if it is still unspecified in the lface.
14442
144432008-07-05 Chong Yidong <cyd@stupidchicken.com>
14444
14445 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14446 face if it didn't already exist.
14447
14448 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14449
144502008-07-05 Andreas Schwab <schwab@suse.de>
14451
14452 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14453
144542008-07-05 Chong Yidong <cyd@stupidchicken.com>
14455
14456 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14457 word-wrapping.
14458 (IT_DISPLAYING_WHITESPACE): New macro.
14459 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14460 when word-wrapping. Simplify word-wrapping logic. Use correct
14461 pixel positions when saving copies of the iterator.
14462 (display_line): Use proper wrap point if the last character on a
14463 line was preceded by whitespace.
14464
144652008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14466
14467 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14468
144692008-07-04 Kenichi Handa <handa@m17n.org>
14470
14471 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14472
14473 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14474
144752008-07-02 Jason Rumney <jasonr@gnu.org>
14476
14477 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14478 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14479
14480 * xdisp.c (next_element_from_display_vector): Move assignment out
14481 of if statement.
14482
144832008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14484
14485 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14486
14487 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14488 (syms_of_fileio): Initialize and export them.
14489 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14490
14491 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14492 (Fsystem_move_file_to_trash): New function.
14493 (syms_of_w32fns): Export it to lisp.
14494
144952008-07-01 Jason Rumney <jasonr@gnu.org>
14496
14497 * w32font.c (w32font_text_extents): Don't count overhang as part
14498 of width.
14499
145002008-06-30 Miles Bader <miles@gnu.org>
14501
14502 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14503 Add `avoid_cursor_p' field.
14504
14505 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14506 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14507 (append_glyph, append_composite_glyph, produce_image_glyph)
14508 (append_stretch_glyph): Initialize avoid_cursor_p.
14509 (get_it_property): Rename from `get_line_height_property'.
14510 (x_produce_glyphs): Use get_it_property.
14511 (handle_line_prefix, push_display_prop): New functions.
14512 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14513 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14514 New variables.
14515 (syms_of_xdisp): Initialize them.
14516
145172008-06-30 Kenichi Handa <handa@m17n.org>
14518
14519 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14520 XftDefaultSubstitute (they are called in XftFontMatch).
14521 (xftfont_open): Fix args to ftfont_font_format.
14522
14523 * ftfont.c (fc_charset_table): New member lang.
14524 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14525 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14526 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14527 (ftfont_open): Fix args to ftfont_font_format.
14528 (ftfont_font_format): New arg filename.
14529
145302008-06-30 Chong Yidong <cyd@stupidchicken.com>
14531
14532 * xfaces.c (Finternal_merge_in_global_face): If default face was
14533 modified, realize it again. Update the font face attribute.
14534
145352008-06-29 Jason Rumney <jasonr@gnu.org>
14536
14537 * w32term.c (x_set_frame_alpha): Fix logic.
14538
145392008-06-29 Kenichi Handa <handa@m17n.org>
14540
14541 * fontset.c (Finternal_char_font): Return font-object instead of
14542 font-name.
14543
14544 * composite.c (get_composition_id): Fix the width calculation for TAB.
14545
145462008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14547
14548 * indent.c (Fvertical_motion): Properly handle float column arg.
14549
145502008-06-28 Jason Rumney <jasonr@gnu.org>
14551
14552 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14553 (pfnSetLayeredWindowAttributes): New function pointer.
14554 (w32_initialize): Initialize it when supported.
14555 (x_set_frame_alpha): New function.
14556
14557 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14558 (w32_frame_parm_handlers): Set alpha handler.
14559
14560 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14561
145622008-06-27 Jason Rumney <jasonr@gnu.org>
14563
14564 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14565 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14566 (w32_to_x_charset, x_to_w32_charset)
14567 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14568 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14569 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14570 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14571 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14572 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14573 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14574 (Qw32_charset_unicode): Remove.
14575 (syms_of_w32fns): Update for above changes.
14576
14577 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14578 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14579 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14580 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14581 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14582 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14583 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14584 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14585 (syms_of_w32font): Update for above changes.
14586
145872008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14588
14589 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14590 removed #if.
14591 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14592
145932008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14594 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14595
14596 * makefile.w32-in (LOCAL_FLAGS):
14597 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14598
14599 * sysdep.c (_spawnlp, _getpid):
14600 Declare with explicit _cdecl instead of _CRTAPI1.
14601
14602 * editfns.c (Fget_internal_run_time):
14603 Check for WINDOWSNT with #ifdef, not #if.
14604
146052008-06-26 Jason Rumney <jasonr@gnu.org>
14606
14607 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14608
14609 * w32term.c (x_draw_glyph_string_foreground)
14610 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14611 Use FONT_HANDLE macro.
14612 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14613
14614 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14615 (uniscribe_encode_char): Use FONT_HANDLE macro.
14616
14617 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14618 (w32font_text_extents): Use precast w32_font.
14619 (w32font_close): Free cached metrics.
14620 (w32font_open_internal): Allocate space for name on stack.
14621
146222008-06-26 Chong Yidong <cyd@stupidchicken.com>
14623
14624 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14625
146262008-06-26 Jason Rumney <jasonr@gnu.org>
14627
14628 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14629 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14630
146312008-06-26 Juanma Barranquero <lekktu@gmail.com>
14632
14633 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14634
146352008-06-26 Jason Rumney <jasonr@gnu.org>
14636
14637 * w32bdf.c, w32bdf.h: Remove obsolete files.
14638
14639 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14640
14641 * w32gui.h: Don't include w32bdf.h.
14642 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14643 Remove obsolete font support.
14644
14645 * w32font.h (struct w32font_info): Remove compat_w32_font.
14646 Add hfont member.
14647 (FONT_COMPAT): Remove obsolete macro.
14648
14649 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14650 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14651 (w32font_open_internal): Remove compat code. Set new hfont member.
14652 (Fx_select_font): Use new hfont member.
14653
14654 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14655 (uniscribe_encode_char): Use new hfont member.
14656
14657 * w32term.c (x_draw_glyph_string_foreground)
14658 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14659 (x_draw_glyph_string): Use metrics in w32font_info.
14660
146612008-06-26 Kenichi Handa <handa@m17n.org>
14662
14663 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14664
146652008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14666
14667 * unexnext.c:
14668 * m/ews4800.h:
14669 * m/hp9000s300.h:
14670 * m/ibm370aix.h:
14671 * m/mips-siemens.h:
14672 * m/ncr386.h:
14673 * m/next.h:
14674 * m/pmax.h:
14675 * m/powerpcle.h:
14676 * m/tandem-s2.h:
14677 * s/386bsd.h:
14678 * s/bsd386.h:
14679 * s/bsd4-1.h:
14680 * s/bsd4-2.h:
14681 * s/bsdos2-1.h:
14682 * s/bsdos2.h:
14683 * s/bsdos3.h:
14684 * s/bsdos4.h:
14685 * s/nextstep.h:
14686 * s/ultrix4-3.h:
14687 * s/usg5-0.h:
14688 * s/usg5-2-2.h:
14689 * s/usg5-2.h:
14690 * s/usg5-4-3.h:
14691 * s/ux4800.h:
14692 * s/uxpds.h:
14693 * s/uxpv.h: Remove support for obsolete systems.
14694 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14695 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14696 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14697 Remove, insert contents in s/aix4-2.h.
14698 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14699 * s/bsd4-3.h: Rename to ...
14700 * s/bsd-common.h: ... this.
14701 * data.c:
14702 * doc.c:
14703 * ecrt0.c:
14704 * emacs.c:
14705 * fileio.c:
14706 * floatfns.c:
14707 * keyboard.c:
14708 * mem-limits.h:
14709 * print.c:
14710 * process.c:
14711 * sysdep.c:
14712 * syssignal.h:
14713 * systty.h:
14714 * syswait.h:
14715 * term.c:
14716 * unexec.c:
14717 * unexelf.c:
14718 * unexhp9k800.c:
14719 * m/hp800.h:
14720 * m/ibmrs6000.h:
14721 * m/mips.h:
14722 * m/vax.h:
14723 * s/darwin.h:
14724 * s/freebsd.h:
14725 * s/gnu.h:
14726 * s/ms-w32.h:
14727 * s/msdos.h:
14728 * s/netbsd.h:
14729 * s/template.h: Remove references to obsolete variables.
14730
14731 * Makefile.in: Add dependencies for all unexec files.
14732 (admindir): Remove unused variable.
14733 (UNEXEC_SRC): Remove references.
14734
147352008-06-25 Chong Yidong <cyd@stupidchicken.com>
14736
14737 * xfns.c (x_default_font_parameter): If Xft is available, first
14738 try Monospace-12 for the default font.
14739
147402008-06-25 Jason Rumney <jasonr@gnu.org>
14741
14742 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14743
147442008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14745
14746 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14747
14748 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14749
147502008-06-25 Juanma Barranquero <lekktu@gmail.com>
14751
14752 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14753 <scroll-conservatively>: Fix typo in docstring.
14754
14755 * xselect.c (Fx_send_client_event): Doc fix.
14756
147572008-06-25 Kenichi Handa <handa@m17n.org>
14758
14759 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14760
14761 * font.c (font_parse_fcname): Remove unused variables.
14762 (font_sort_entites): Delete the arg SPEC. Caller changed.
14763 Fix for the case of ! best_only.
14764 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14765
14766 * lisp.h (Fstring_to_unibyte): EXFUN it.
14767
14768 * character.h (str_to_unibyte): Extern it.
14769
14770 * character.c (str_to_unibyte): New function.
14771
14772 * fns.c (Fstring_to_unibyte): New function.
14773 (syms_of_fns): Defsubr it.
14774
147752008-06-24 Kenichi Handa <handa@m17n.org>
14776
14777 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14778 DPI too.
14779 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14780
147812008-06-24 Andreas Schwab <schwab@suse.de>
14782
14783 * Makefile.in (${lispsource}loaddefs.el): Rename from
14784 ../lisp/loaddefs.el.
14785 (bootstrap-clean): Do what distclean does but don't remove
14786 Makefile.
14787 (distclean): Depend on bootstrap-clean and remove Makefile.
14788
147892008-06-24 Chong Yidong <cyd@stupidchicken.com>
14790
14791 * buffer.h (struct buffer): New member word_wrap.
14792
14793 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14794 word-wrap.
14795 (init_buffer_once): Initialize them.
14796
14797 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14798 line_wrap enum possessing three possible values.
14799
14800 * termopts.h: Replace truncate_partial_width_windows with
14801 Vtruncate_partial_width_windows.
14802
14803 * dispnew.c (direct_output_for_insert): Avoid direct output when
14804 inserting a space with word wrap on.
14805
14806 * indent.c (compute_motion): Obey integer values of
14807 truncate-partial-width-windows.
14808
14809 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14810 replacing truncate_partial_width_windows.
14811 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14812 truncate only if the window width is below that integer.
14813 (start_display, resize_mini_window, produce_stretch_glyph)
14814 (display_string, move_it_in_display_line_to): Use line_wrap.
14815 (back_to_previous_visible_line_start, reseat_1): Reset
14816 string_from_display_prop_p.
14817 (display_line): Extend default face to end of line when wrapping.
14818
148192008-06-24 Kim F. Storm <storm@cua.dk>
14820
14821 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14822 to wrap continued lines at word boundaries.
14823
148242008-06-24 Jason Rumney <jasonr@gnu.org>
14825
14826 * font.c (Ffont_face_attributes): Multiply pixel size before point
14827 conversion to avoid multiplying rounding error.
14828
148292008-06-23 Jason Rumney <jasonr@gnu.org>
14830
14831 * w32term.c (x_draw_glyph_string_background)
14832 (x_draw_glyph_string): Remove old bdf font code.
14833
14834 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14835
148362008-06-22 Kenichi Handa <handa@m17n.org>
14837
14838 * font.c (font_find_for_lface): Try the adstyle specified in
14839 the property of LFACE_FONT of LFACE (if any).
14840
148412008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14842 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14843
14844 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14845
148462008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14847
14848 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14849 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14850 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14851 (witness-emacs): Remove.
14852 (lisp, shortlisp): Move loaddefs.el earlier.
14853 (mostlyclean): Forget about witness-emacs.
14854
148552008-06-22 Glenn Morris <rgm@gnu.org>
14856
14857 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14858 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14859
148602008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14861
14862 * Makefile.in (PRECOMP): Remove.
14863 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14864 (witness-emacs): Run `compile-first'.
14865 (.el.elc): Use the new compile-onefile target.
14866
148672008-06-21 Kenichi Handa <handa@m17n.org>
14868
14869 * xftfont.c (xftfont_open): Handle QCembolden only when
14870 FC_EMBOLDEN is defined.
14871
148722008-06-21 Andreas Schwab <schwab@suse.de>
14873
14874 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14875 (.el.elc): Likewise.
14876
148772008-06-21 Miles Bader <miles@gnu.org>
14878
14879 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14880 build dir, not the lisp source dir.
14881
148822008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14883
14884 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14885 (bootstrapclean): Remove.
14886 (.el.elc): New rule.
14887 (PRECOMP): New var.
14888 (../lisp/subdirs.el): Remove.
14889 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14890 (witness-emacs): New target.
14891 (mostlyclean): Remove witness-emacs as well.
14892 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14893 Add witness-emacs dependency.
14894
148952008-06-20 Chong Yidong <cyd@stupidchicken.com>
14896
14897 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14898 defined by the font.
14899
149002008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14901
14902 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14903 (bootstrap-clean): New target that keeps TAGS around.
14904 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14905 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14906
149072008-06-20 Jason Rumney <jasonr@gnu.org>
14908
14909 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14910 Remove obsolete font code.
14911
14912 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14913 to determine language support.
14914
149152008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14916
14917 * sysdep.c (cfsetspeed): New fun extracted from the code.
14918 (cfmakeraw): Move before first use.
14919
149202008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14921
14922 * sysdep.c (cfmakeraw): Provide fallback implementation.
14923 (serial_configure): Provide fallback implementation of cfsetspeed.
14924
149252008-06-20 Kenichi Handa <handa@m17n.org>
14926
14927 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14928 the pattern.
14929
14930 * fontset.c (fontset_from_font): Copy font_spec before changing
14931 the elements.
14932
14933 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14934
149352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14936
14937 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14938 for explicit `font' parameters.
14939
14940 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14941
149422008-06-19 Kenichi Handa <handa@m17n.org>
14943
14944 * frame.c: Include <ctype.h>.
14945 (x_set_font_backend): Allow spacing characters in the X resource
14946 for FontBackend.
14947
149482008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14949
14950 * w32fns.c, xfns.c (Qfont_param): New var.
14951 (syms_of_w32fns): Initialize it.
14952 (x_default_font_parameter): Record explicit `font' into
14953 `font-parameter'.
14954
149552008-06-18 Kenichi Handa <handa@m17n.org>
14956
14957 * font.c (font_parse_xlfd): Fix previous change.
14958 (font_parse_fcname): Don't use :fc-unknown-spec.
14959 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14960 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14961 (font_add_log): Prepend the driver name to the resulting fonts.
14962
14963 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14964 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14965 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14966
14967 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14968 (QCembolden): New variables.
14969 (syms_of_xftfont): DEFSYM them.
14970 (xftfont_open): Call XftFontMatch. Don't trust the result of
14971 XftTextExtents8 if the pixel_size is less than 5.
14972
149732008-06-18 Andreas Schwab <schwab@suse.de>
14974
14975 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14976 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14977
149782008-06-18 Jason Rumney <jasonr@gnu.org>
14979
14980 * w32font.c (w32font_list, w32font_match): Add logging.
14981
14982 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14983
149842008-06-17 Chong Yidong <cyd@stupidchicken.com>
14985
14986 * font.c (font_parse_fcname): Store divider characters for
14987 unknown-spec list. For known key symbols, intern using correct
14988 symbol name.
14989
149902008-06-17 Kenichi Handa <handa@m17n.org>
14991
14992 * xfaces.c (realize_default_face): If the frame is not on window
14993 system, set the fontset of face to nil.
14994
149952008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14996
14997 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14998
149992008-06-16 Juanma Barranquero <lekktu@gmail.com>
15000
15001 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15002 (build_font_name_from_vector): Delete externs.
15003
15004 * xfaces.c (struct font_name): Don't declare.
15005
150062008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15007
15008 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15009
150102008-06-16 Chong Yidong <cyd@stupidchicken.com>
15011
15012 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15013
150142008-06-16 Juanma Barranquero <lekktu@gmail.com>
15015
15016 * font.c (Ffont_spec): Fix usage in docstring.
15017 (Ffont_face_attributes): Doc fix.
15018
150192008-06-16 Andreas Schwab <schwab@suse.de>
15020
15021 * font.c (Ffont_face_attributes): Fix definition.
15022
150232008-06-16 Jason Rumney <jasonr@gnu.org>
15024
15025 * font.h (font_style_symbolic_from_value): Remove.
15026
15027 * font.c (font_style_symbolic_from_value): Remove.
15028 (font_style_symbolic): Revert to pre 2008-06-13 version.
15029
15030 * w32font.c (w32_to_fc_weight): New function.
15031 (w32font_full_name, logfont_to_fcname): Use it.
15032
150332008-06-16 Kenichi Handa <handa@m17n.org>
15034
15035 * font.c (font_check_object): Delete it.
15036 (font_clear_cache): Check if a font-object is alive.
15037 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15038 font-object to nil.
15039 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15040 (font_at): Don't call font_check_object.
15041 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15042
150432008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15044
15045 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15046
150472008-06-16 Chong Yidong <cyd@stupidchicken.com>
15048
15049 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15050
150512008-06-15 Chong Yidong <cyd@stupidchicken.com>
15052
15053 * font.c (font_parse_fcname): Only one decimal point.
15054 (font_unparse_fcname): Handle data in family and foundry indices
15055 as symbols, not strings.
15056 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15057
15058 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15059
15060 * font.h (font_unparse_gtkname): Add prototype.
15061
150622008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15063
15064 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15065
150662008-06-15 Andreas Schwab <schwab@suse.de>
15067
15068 * font.c (font_update_drivers): Fix crash when no drivers match.
15069
150702008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15071
15072 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15073 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15074
150752008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15076
15077 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15078
150792008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15080
15081 * process.c (Fserial_process_configure, Fprocess_send_eof):
15082 Use EQ to compare Lisp_Objects.
15083
150842008-06-13 Jason Rumney <jasonr@gnu.org>
15085
15086 * w32fns.c (Fw32_select_font): Remove old font API function.
15087
15088 * w32font.c (logfont_to_fcname): New function.
15089 (Fx_select_font): New font dialog function compatible with
15090 GTK/fontconfig version.
15091
15092 * font.c (font_style_symbolic_from_value): New function.
15093 (font_style_symbolic): Use it.
15094
15095 * font.h (font_style_symbolic_from_value): Declare new function.
15096
150972008-06-13 Juanma Barranquero <lekktu@gmail.com>
15098
15099 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15100 <font-width-table>: Fix typos in docstrings.
15101
151022008-06-13 Daniel Engeler <engeler@gmail.com>
15103
15104 These changes add serial port access.
15105 * process.c: Add HAVE_SERIAL.
15106 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15107 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15108 (list_processes_1, select_wrapper, Fstop_process)
15109 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15110 (status_notify): Modify to handle serial processes.
15111 [HAVE_SERIAL] (Fserial_process_configure)
15112 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15113 New functions.
15114 * process.h (struct Lisp_Process): Add `type'.
15115 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15116 New functions.
15117 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15118 serial ports.
b71ac3dd 15119 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15120 * w32.h: Add FILE_SERIAL.
15121 (struct _child_process): Add ovl_read, ovl_write.
15122
151232008-06-13 Kenichi Handa <handa@m17n.org>
15124
15125 * dispextern.h (enum lface_attribute_index): New member
15126 LFACE_FOUNDRY_INDEX.
15127
15128 * font.c (font_score): Delete arg alternate_families. Check only
15129 weight, slant, width, and size. Ignore the difference of alias
15130 style symbols.
15131 (font_sort_entites): Adjust for the above change. Reflect the
15132 order of font-driver to scores.
15133 (font_list_entities): Don't check alternate_familes here.
15134 (font_clear_prop): Handle foundry.
15135 (font_update_lface): Don't parse "foundry-family" form here.
15136 Handle FONT_FOUNDRY_INDEX.
15137 (font_find_for_lface): Likewise. Handle alternate families here.
15138 If registry is nil, try iso8859-1 and ascii-0.
15139 (font_open_for_lface): Pay attention to size in ENTITY.
15140 (font_open_by_name): Simplify by calling font_load_for_lface.
15141 (free_font_driver_list): Delete it.
15142 (font_update_drivers): Preserve the order of backends.
15143 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15144 of font_score and font_sort_entites.
15145 (font_update_sort_order): Likewise.
15146
15147 * xfaces.c (LFACE_FOUNDRY): New macro.
15148 (check_lface_attrs): Check foundry.
15149 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15150 (merge_face_vectors): Check foundry.
15151 (merge_face_ref): Likewise.
15152 (Finternal_set_lisp_face_attribute): Likewise.
15153 (x_update_menu_appearance): Likewise.
15154 (Finternal_get_lisp_face_attribute): Likewise.
15155 (lface_hash): Likewise.
15156 (lface_same_font_attributes_p): Likewise.
15157 (x_supports_face_attributes_p): Likewise.
15158 (tty_supports_face_attributes_p): Likewise.
15159 (Finternal_set_alternative_font_family_alist): Intern strings.
15160 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15161 (realize_default_face): Set LFACE_FOUNDRY (lface).
15162
15163 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15164 font-driver at first.
15165
15166 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15167
151682008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15169
15170 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15171
151722008-06-12 Jim Meyering <meyering@redhat.com>
15173
15174 Make unexec_free handle NULL the same way free does.
15175 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15176
151772008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15178
15179 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15180 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15181 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15182 (WEAK_ALIAS): Simplify.
15183 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15184 when searching a unibyte buffer.
15185
151862008-06-12 Chong Yidong <cyd@stupidchicken.com>
15187
15188 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15189
151902008-06-12 Juanma Barranquero <lekktu@gmail.com>
15191
15192 * w32font.c: Include ctype.h.
15193
151942008-06-11 Jason Rumney <jasonr@gnu.org>
15195
15196 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15197 misreported as space.
15198 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15199 as aliases for registry iso10646-1.
15200
152012008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15202
15203 * buffer.c (clone_per_buffer_values): Skip `name'.
15204
152052008-06-11 Chong Yidong <cyd@stupidchicken.com>
15206
15207 * font.c (font_parse_fcname): Fix last change; accept decimal
15208 points in font size.
15209
152102008-06-10 Jason Rumney <jasonr@gnu.org>
15211
15212 * w32uniscribe.c (add_opentype_font_name_to_list):
15213 Skip non unicode fonts.
15214
152152008-06-10 Chong Yidong <cyd@stupidchicken.com>
15216
15217 * xfns.c (Fx_font_dialog): New function.
15218
15219 * gtkutil.c (xg_dialog_response_cb): Rename from
15220 xg_file_response_callback.
15221 (pop_down_dialog): Rename from pop_down_file_dialog.
15222 (xg_get_file_name): Callers changed.
15223 (xg_get_font_name): New function.
15224
15225 * gtkutil.h (xg_get_font_name): Insert prototype.
15226
152272008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15228
15229 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15230 x_underline_minimum_display_offset.
15231 (syms_of_xdisp): Declare it here rather than in xterm.c.
15232 * dispextern.h (underline_minimum_offset): Declare it.
15233 * w32term.c (x_draw_glyph_string): Use it.
15234 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15235 (syms_of_xterm): Don't declare it any more.
15236 (x_draw_glyph_string): Adjust to the new name.
15237
8719abec 152382008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15239
15240 * xterm.c (x_underline_minimum_display_offset): New var.
15241 (x_draw_glyph_string): Use it.
15242 (syms_of_xterm): Declare it.
15243
152442008-06-10 Chong Yidong <cyd@stupidchicken.com>
15245
15246 * font.c (font_parse_fcname): Accept GTK-style font names too.
15247
152482008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15249
15250 * dired.c (file_name_completion): Don't return t if the match is exact
15251 but with different capitalization.
15252 * minibuf.c (Ftry_completion): Simplify.
15253
15254 * window.c (Vwindow_point_insertion_type): New var.
15255 (set_window_buffer): Use it.
15256 (syms_of_window): Init and export it to Lisp.
15257
152582008-06-10 Kenichi Handa <handa@m17n.org>
15259
15260 * font.h (font_intern_prop): Prototype adjusted.
15261
15262 * font.c (font_intern_prop): New arg force_symbol.
15263 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15264 Adjust for the change of font_intern_prop.
15265
15266 * ftfont.c (ftfont_pattern_entity):
15267 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15268 (w32_registry):
15269 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15270 the change of font_intern_prop.
15271
152722008-06-09 Juanma Barranquero <lekktu@gmail.com>
15273
15274 * w32menu.c (digest_single_submenu): Declare extern.
15275
152762008-06-09 Jason Rumney <jasonr@gnu.org>
15277
15278 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15279
15280 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15281 (parse_single_submenu): Remove.
15282 (digest_single_submenu): Remove.
15283 (syms_of_w32menu): Don't initialise variables that have moved
15284 to menu.c.
15285 (set_frame_menubar): Sync with version in xmenu.c.
15286 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15287
15288 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15289 Make static again.
15290
152912008-06-09 Jason Rumney <jasonr@gnu.org>
15292
15293 Changes to w32 files related to the move of common menu code
15294 to menu.c on 2008-06-08 by Chong Yidong.
15295
15296 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15297 defs to w32gui.h.
15298 (single_keymap_panes, push_menu_item, push_menu_pane):
15299 Make globally visible.
15300
15301 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15302 (local_free, malloc_widget_value, free_widget_value)
15303 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15304 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15305 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15306 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15307 (menu_items, menu_items_allocated, menu_items_used)
15308 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15309 (init_menu_items, finish_menu_items, discard_menu_items)
15310 (grow_menu_items, push_submenu_start, push_submenu_end)
15311 (push_left_right_boundary, push_menu_pane, push_menu_item)
15312 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15313 (free_menubar_widget_tree_value, parse_single_submenu)
15314 (update_submenu_strings): Remove functions.
15315 (xmalloc_widget_value): Remove and declare extern.
15316
15317 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15318 (OBJ1): Build it.
15319
15320 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15321 (local_heap, local_alloc, local_free, malloc_widget_value)
15322 (free_widget_value): Define here.
15323
153242008-06-09 Kenichi Handa <handa@m17n.org>
15325
15326 * font.h (Qascii_0): Extern it.
15327
15328 * font.c (Qascii_0): New variable.
15329 (syms_of_font): DEFSYM it.
15330 (font_open_by_name): If the registry "iso8859-1" fails, try also
15331 "ascii-0".
15332
15333 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15334
153352008-06-08 Kenichi Handa <handa@m17n.org>
15336
15337 * .gdbinit (xfont): New command.
15338
153392008-06-08 Andreas Schwab <schwab@suse.de>
15340
15341 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15342 * Makefile.in (menu.o): Update dependencies.
15343
15344 * Makefile.in (obj): Always add menu.o.
15345 * emacs.c (main): Always call syms_of_menu.
15346 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15347
153482008-06-08 Chong Yidong <cyd@stupidchicken.com>
15349
15350 * Makefile.in: Compile menu.c.
15351
15352 * lisp.h: Declare syms_of_menu.
15353
15354 * emacs.c (main): Call syms_of_menu.
15355
15356 * keyboard.h: Relocate platform-independent menu definitions from
15357 xmenu.c.
15358
15359 * menu.c: New file. Relocate platform-independent menu
15360 definitions from xmenu.c. Suggested by Adrian Robert.
15361
15362 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15363 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15364 (menu_items_used, menu_items_n_panes)
15365 (menu_items_submenu_depth): Move to keyboard.h.
15366 (init_menu_items, finish_menu_items, unuse_menu_items)
15367 (discard_menu_items, restore_menu_items, save_menu_items)
15368 (grow_menu_items, push_submenu_start, push_submenu_end)
15369 (push_left_right_boundary, push_menu_pane, push_menu_item)
15370 (keymap_panes, single_keymap_panes, single_menu_item)
15371 (list_of_panes, list_of_items, find_and_call_menu_selection)
15372 (xmalloc_widget_value, free_menubar_widget_value_tree)
15373 (parse_single_submenu, digest_single_submenu)
15374 (update_submenu_strings): Move to menu.c.
15375
153762008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15377
15378 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15379
153802008-06-06 Miles Bader <miles@gnu.org>
15381
15382 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15383 face, not frame default.
15384
153852008-06-05 Martin Rudalics <rudalics@gmx.at>
15386
15387 * window.c (pop_up_windows, pop_up_frames)
15388 (display_buffer_reuse_frames, Vpop_up_frame_function)
15389 (Vdisplay_buffer_function, Veven_window_heights)
15390 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15391 (Vspecial_display_function, Vsame_window_buffer_names)
15392 (Vsame_window_regexps, split_height_threshold)
15393 (Vsplit_window_preferred_function): Move those vars to window.el.
15394 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15395 (Fdisplay_buffer): Move those functions to window.el.
15396 (syms_of_window): Remove corresponding declarations.
15397 (display_buffer): New function.
15398 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15399 * dispnew.c (Flast_nonminibuf_frame): New function.
15400 * buffer.c (Fpop_to_buffer): Move to window.el.
15401
154022008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15403
15404 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15405
154062008-06-05 Kenichi Handa <handa@m17n.org>
15407
15408 * coding.c (detect_coding): Fix previous change.
15409 (detect_coding_system): Likewise.
15410
154112008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15412
15413 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15414
15415 * keymap.c (Vminibuffer_local_filename_must_match_map):
15416 Rename from Vminibuffer_local_must_match_filename_map.
15417 (syms_of_keymap):
15418 * minibuf.c (Fcompleting_read): Adjust accordingly.
15419 * commands.h: Rename declaration as well.
15420
154212008-06-05 Kenichi Handa <handa@m17n.org>
15422
15423 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15424 family name.
15425 (Ffont_put): Likewise.
15426
15427 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15428 current font-spec.
15429
15430 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15431 is unspecified.
15432
15433 * xfaces.c (realize_x_face): If the font-related face attributes
15434 are the same as those of default face, realize a new fontset from
15435 default->fontset.
15436 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15437
154382008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15439
15440 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15441 (move_it_in_display_line): New wrapper.
15442
15443 * window.c (window_scroll_pixel_based_preserve_x)
15444 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15445 (window_scroll_pixel_based, window_scroll_line_based):
15446 Use them to preserve column positions.
15447 (syms_of_window): Initialize them.
15448
15449 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15450 (HPOS . VPOS) pair.
15451
15452 * dispextern.h (move_it_in_display_line): Declare.
15453
154542008-06-05 Juanma Barranquero <lekktu@gmail.com>
15455
15456 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15457 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15458 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15459
154602008-06-04 Juanma Barranquero <lekktu@gmail.com>
15461
15462 * window.c (Fset_window_parameter): Doc fix.
15463 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15464
154652008-06-04 Joakim Verona <joakim@verona.se>
15466
15467 * window.h (struct window): Add new member window_parameters.
15468
15469 * window.c (Fwindow_parameters, Fwindow_parameter)
15470 (Fset_window_parameter): New defuns.
15471 (syms_of_window): Defsubr the new defuns.
15472 (make_window): Initialize window_parameters to nil.
15473
154742008-06-04 John Paul Wallington <jpw@pobox.com>
15475
15476 * eval.c (Fdefmacro): Doc fix.
15477
154782008-06-04 Kenichi Handa <handa@m17n.org>
15479
15480 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15481 Be sure to call setup_coding_system when we find a proper coding system.
15482 (detect_coding_system): Fix handling of coding->head_ascii.
15483
154842008-06-03 Andreas Schwab <schwab@suse.de>
15485
15486 * font.c (font_prop_validate_spacing): Fix last change.
15487
154882008-06-03 Kenichi Handa <handa@m17n.org>
15489
15490 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15491 (font_parse_fcname): Fix handling of unknown key.
15492
15493 * xfont.c (xfont_list): Try an alias.
15494
15495 * charset.c (char_charset): Return NULL if the arg charset_list is
15496 specified and C doesn't belong to any of them.
15497
154982008-06-02 Chip Coldwell <coldwell@redhat.com>
15499
15500 * font.c (font_pixel_size): Don't take cdr of an integer.
15501
155022008-06-02 Jim Meyering <meyering@redhat.com>
15503
15504 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15505 * alloc.c (xfree): Return right away for a NULL arg.
15506 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15507 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15508 * mac.c (create_apple_event_from_event_ref): Likewise.
15509 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15510 Likewise.
15511 * doprnt.c (doprnt1): Likewise.
15512 * frame.c (frame): Likewise.
15513 * keyboard.c (wipe_kboard): Likewise.
15514 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15515 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15516 * term.c (tty_default_color_capabilities, maybe_fatal)
15517 (delete_tty): Likewise.
15518 * w16select.c (string): Likewise.
15519 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15520 * w32bdf.c (w32_free_bdf_font): Likewise.
15521 * w32fns.c (w32_unload_font): Likewise.
15522 * w32font.c (w32font_close): Likewise.
15523 * window.c (size_window): Likewise.
15524 * xselect.c (receive_incremental_selection): Likewise.
15525 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15526 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15527 * w32.c (stat): Likewise.
15528
15529 Remove useless if-before-free tests.
15530 * editfns.c (Fset_time_zone_rule): Likewise.
15531 * lread.c (nosuffix): Likewise.
15532 * ralloc.c (get_bloc): Likewise.
15533 * regex.c (reg_free): Likewise.
15534 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15535 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15536 * xsmfns.c (smc_save_yourself_CB): Likewise.
15537
155382008-06-02 Kenichi Handa <handa@m17n.org>
15539
15540 * font.c (font_find_for_lface): Handle float font size.
15541 (font_open_for_lface): Likewise.
15542
15543 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15544 comparing the properties.
15545
155462008-06-01 Jason Rumney <jasonr@gnu.org>
15547
15548 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15549 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15550 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15551 Don't add empty script list.
15552 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15553
155542008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15555
15556 * Makefile.in (dot, dotdot): Remove, update users.
15557 ".." has been used elsewhere in the file for a long time.
15558 (LIBXT_STATIC): Remove conditional based on unused variable.
15559
155602008-06-01 Miles Bader <miles@gnu.org>
15561
15562 * xfaces.c (Vface_remapping_alist): New variable.
15563 (syms_of_xfaces): Initialize it.
15564 (enum named_merge_point_kind): New type.
15565 (struct named_merge_point): Add `named_merge_point_kind' field.
15566 (push_named_merge_point): Make cycle detection respect different
15567 named-merge-point kinds.
15568 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15569 Remove face-name alias resolution.
15570 (lface_from_face_name): New definition using
15571 `lface_from_face_name_no_resolve'.
15572 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15573 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15574 (get_lface_attributes): New definition that layers face-remapping on
15575 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15576 (lookup_basic_face): New function.
15577 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15578 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15579 `get_lface_attributes'.
15580 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15581 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15582 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15583
15584 * xdisp.c (init_iterator): Pass base_face_id through
15585 `lookup_basic_face' when we actually use it as a face-id.
15586 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15587 DEFAULT_FACE_ID.
15588
15589 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15590 lookup the initial face-id.
15591
15592 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15593
155942008-06-01 Juanma Barranquero <lekktu@gmail.com>
15595
15596 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15597 (Fremove_text_properties): Fix typos in docstrings.
15598
155992008-05-31 Kenichi Handa <handa@m17n.org>
15600
15601 * font.c (font_list_entities): Fix the car part of data to be
15602 stored in the cache.
15603
15604 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15605
156062008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15607
15608 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15609 Add a `test' argument so another predicate than `equal' can be used.
15610 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15611 (map_char_table): Remove unused vars `c' and `i'.
15612 * lisp.h (Foptimize_char_table): Adjust declaration.
15613 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15614
156152008-05-30 Kenichi Handa <handa@m17n.org>
15616
15617 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15618 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15619 defined.
15620
156212008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15622
15623 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15624 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15625 frame-local settings for the same variable.
15626
156272008-05-30 Kenichi Handa <handa@m17n.org>
15628
15629 * fontset.c (Ffont_info): Move to font.c.
15630 (syms_of_fontset): Delete defsubr of Sfont_info.
15631
15632 * font.c (font_style_to_value, font_score): Delete casting of the
15633 args to xstcasecmp.
15634 (register_font_driver): Increment num_font_drivers only when
15635 registering the driver globally.
15636 (Ffont_info): Move from fontset.c. Handle a font object too.
15637 (syms_of_font): Defsubr Sfont_info.
15638
156392008-05-29 Kenichi Handa <handa@m17n.org>
15640
15641 * coding.h (enum define_coding_utf8_arg_index): New enum.
15642 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15643 coding_attr_utf_bom.
15644 (enum utf_bom_type): Rename from utf_16_bom_type.
15645 (struct utf_16_spec): Adjust for the above change.
15646 (struct coding_system): Add utf_8_bom in `spec' union.
15647
15648 * coding.c (CODING_UTF_8_BOM): New macro.
15649 (enum coding_category): Delete coding_category_utf_8, add
15650 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15651 coding_category_utf_8_sig.
15652 (CATEGORY_MASK_UTF_8): Delete it.
15653 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15654 (CATEGORY_MASK_UTF_8_SIG): New macros.
15655 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15656 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15657 CATEGORY_MASK_UTF_8_SIG.
15658 (CATEGORY_MASK_UTF_8): New macro.
15659 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15660 (detect_coding_utf_8): Check BOM.
15661 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15662 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15663 (encode_coding_utf_16): Likewise.
15664 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15665 (detect_coding, detect_coding_system): Handle utf-8-auto.
15666 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15667 (syms_of_coding): Fix setting up of Vcoding_category_table.
15668
156692008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15670
15671 * process.c (Faccept_process_output): If `millisec' is non-nil,
15672 `seconds' default to 0.
15673 (wait_reading_process_output): Also return non-nil if we read output
15674 from a non-running process.
15675
156762008-05-29 Jason Rumney <jasonr@gnu.org>
15677
15678 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15679 `raster' specified.
15680 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15681 in the uniscribe backend, but disallow any font that has no
15682 unicode subrange support.
15683
156842008-05-29 Juanma Barranquero <lekktu@gmail.com>
15685
15686 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15687 Fix typos in docstrings.
15688
156892008-05-29 Kenichi Handa <handa@m17n.org>
15690
15691 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15692 (Fx_family_fonts): Set frame correctly.
15693
156942008-05-28 Jason Rumney <jasonr@gnu.org>
15695
15696 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15697
156982008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15699
15700 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15701 calling build_annotations.
15702
157032008-05-28 Juanma Barranquero <lekktu@gmail.com>
15704
15705 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15706 (Fencode_coding_string):
15707 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15708 <latin-extra-code-table>: Fix typos in docstrings.
15709 (syms_of_coding) <coding-system-alist>: Doc fix.
15710 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15711
157122008-05-28 Kenichi Handa <handa@m17n.org>
15713
15714 * fontset.c (Ffont_info): Don't call font_close_object.
15715
15716 * font.c (font_parse_family_registry): Use Ffont_put to validate
15717 foundry and family.
15718 (font_delete_unmatched): Don't check spacing.
15719 (font_list_entities): Add spacing to the spec to list fonts.
15720
15721 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15722 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15723
15724 * coding.c (encode_coding_raw_text): Fix previous change.
15725 (encode_coding_object): When the dst_object is a buffer and is
15726 different from src_object, move gap to PT.
15727
157282008-05-27 Chong Yidong <cyd@stupidchicken.com>
15729
15730 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15731
157322008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15733
15734 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15735 all branches. Compute it differently.
15736
15737 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15738
157392008-05-27 Juanma Barranquero <lekktu@gmail.com>
15740
15741 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15742 into "else if () ... else ...".
15743
157442008-05-27 Jason Rumney <jasonr@gnu.org>
15745
15746 * w32font.c (w32font_open_internal): Determine if glyph indices
15747 are likely to work here.
15748
157492008-05-27 Chong Yidong <cyd@stupidchicken.com>
15750
15751 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15752 draw overlap glyphs with appropriate highlighting.
15753
157542008-05-27 Kenichi Handa <handa@m17n.org>
15755
15756 * xfont.c (xfont_open): Fix calculation of font->average_width.
15757
157582008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15759
15760 * casefiddle.c (casify_object): Try to guess better whether the
15761 argument is a byte or a char.
15762
157632008-05-26 Andreas Schwab <schwab@suse.de>
15764
15765 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15766 Always send multiples of format size.
15767
15768 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15769
157702008-05-26 Jason Rumney <jasonr@gnu.org>
15771
15772 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15773 (compute_metrics): Don't set failure if we just cleared the cache.
15774 (w32_weight_table): Remove unused variable.
15775 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15776 backwards compatibility.
15777
157782008-05-25 Kenichi Handa <handa@m17n.org>
15779
15780 * w32term.c (x_draw_glyph_string):
15781 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15782
15783 * xfaces.c: Delete unused function prototypes.
15784 (xstrlwr, font_frame): Delete them.
15785 (clear_face_cache): Delete unused variable.
15786
15787 * xftfont.c (xftfont_open): Delete unused variable.
15788 If underline_thickness is not 1, adjust underline_position.
15789
15790 * ftxfont.c (ftxfont_open): Delete unused variable.
15791
15792 * fontset.c (face_for_char): Optimize for the case of no charset
15793 property.
15794
15795 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15796 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15797 (otf_open, font_otf_capability, generate_otf_features)
15798 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15799 Comment out by surrounding "#if 0" and "#endif" for the moment.
15800 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15801 (syms_of_font): Codes for accessing above commented out.
15802
158032008-05-24 Eli Zaretskii <eliz@gnu.org>
15804
15805 * w32proc.c: Include dispextern.h.
15806
15807 * w32.c: Include dispextern.h.
15808
158092008-05-23 Juanma Barranquero <lekktu@gmail.com>
15810
15811 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15812 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15813 Fix typos in docstrings.
15814
158152008-05-23 Jason Rumney <jasonr@gnu.org>
15816
15817 * xsmfns.c: Remove includes that are already included by config.h.
15818
158192008-05-23 Kenichi Handa <handa@m17n.org>
15820
15821 * charset.c (Qemacs, charset_emacs): New variables.
15822 (char_charset): Fix for non-Unicode characters.
15823 (syms_of_charset): Define charset_emacs.
15824
15825 * w32term.c (x_draw_glyph_string): Be sure to update
15826 s->underline_thickness and s->underline_position. Be sure to draw
15827 underline within the current line area.
15828
15829 * xterm.c (x_draw_glyph_string): Be sure to update
15830 s->underline_thickness and s->underline_position. Be sure to draw
15831 underline within the current line area.
15832
15833 * fontset.c: Delete unused variables and add casting for char *
15834 throughout the file.
15835 (fontset_font): Try the fallback fonts of the current fontset
15836 before consulting the default fontset.
15837
15838 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15839
15840 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15841
158422008-05-22 Jason Rumney <jasonr@gnu.org>
15843
15844 * font.c: Don't include strings.h.
15845
15846 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15847
15848 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15849 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15850 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15851 to call xstrcasecmp.
15852
15853 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15854
15855 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15856
15857 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15858
15859 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15860
158612008-05-22 Kenichi Handa <handa@m17n.org>
15862
15863 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15864
15865 * font.c (font_prop_validate_style): Adjust for the format
15866 change of font_style_table.
15867
15868 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15869 two args.
15870
15871 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15872 two args.
15873
158742008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15875
15876 * minibuf.c (keys_of_minibuf): Delete.
15877 * lisp.h (keys_of_minibuf): Delete.
15878 * emacs.c (main): Don't call keys_of_minibuf.
15879
158802008-05-22 Kenichi Handa <handa@m17n.org>
15881
15882 * ftfont.c (ftfont_resolve_generic_family): Rename from
15883 ftfont_list_generic_family. Return a single family for each
15884 generic family.
15885 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15886 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15887 Call font_add_log.
15888 (ftfont_match): Call font_add_log.
15889
15890 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15891 (FONT_DEBUG): Define it.
15892 (font_add_log): Extern it.
15893 (font_assert): Rename from xassert.
15894
15895 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15896 (xfont_list_family): Call font_add_log.
15897 (xfont_match): Likewise.
15898 (memq_no_quit): Delete.
15899
15900 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15901 call of Ffont_xlfd_name.
15902
15903 * xfaces.c (struct table_entry, slant_table, weight_table)
15904 (swidth_table): Move to font.c.
15905
15906 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15907 xassert are changed to font_assert. Delete many unused variables.
15908 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15909 New variables.
15910 (struct table_entry): Move from xfaces.c and modified.
15911 (weight_table, slant_table, width_table): Move from xfaces.c and
15912 contents adjusted for the change of struct table_entry.
15913 (font_style_to_value, font_style_symbolic): Adjust for the
15914 format change of font_style_table.
15915 (font_parse_family_registry): Don't overwrite existing foundry and
15916 family of font_spec.
15917 (font_score): Fix calculation of diff for sizes.
15918 (font_sort_entites): Call font_add_log.
15919 (font_delete_unmatched): Return a newly created list.
15920 (font_list_entities): Fix previous change. Call font_add_log.
15921 (font_matching_entity, font_open_entity, font_close_entity):
15922 Call font_add_log.
15923 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15924 (Finternal_set_font_style_table): Delete.
15925 (BUILD_STYLE_TABLE): New macro.
15926 (build_style_table): New function.
15927 (Vfont_log, font_log_env_checked): New variables.
15928 (font_add_log): New function.
15929 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15930 Declare Lisp variables "font-weight-table", "font-slant-table",
15931 "font-width-table", and "font-log". Initialize font_style_table.
15932
159332008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15934
15935 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15936
159372008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15938 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15939
15940 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15941 (Vframe_alpha_lower_limit): New variable.
15942 (x_set_alpha): New function.
15943
15944 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15945
15946 * xfns.c (x-create-frame, Qalpha):
15947 Initialize the frame parameter `alpha'.
15948 * xterm.c (OPAQUE, OPACITY): New.
15949 (x_set_frame_alpha): New function.
15950 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15951
15952 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15953 * w32fns.c (w32_frame_parm_handlers): Likewise.
15954
159552008-05-20 Jason Rumney <jasonr@gnu.org>
15956
15957 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15958 truetype fonts to opentype list.
15959
159602008-05-20 Juanma Barranquero <lekktu@gmail.com>
15961
15962 * fontset.c (Ffontset_info): Doc fix.
15963 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15964 <ignore-relative-composition>: Fix typos in docstrings.
15965
15966 * font.c (syms-of-font) <font-encoding-alist>:
15967 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15968 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15969 (Ffont_otf_alternates): Doc fixes.
15970
159712008-05-20 Kenichi Handa <handa@m17n.org>
15972
15973 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15974 font.h through out the file.
15975 (FONT_DRIVERS): Rename from FONTOBJ.
15976 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15977 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15978
15979 * emacs.c (main): Call syms_of_font unconditionally.
15980
15981 * font.h (find_font_encoding): Extern it.
15982
15983 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15984 fontset.c.
194d44e7 15985 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15986 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15987 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15988 only when HAVE_WINDOW_SYSTEM is defined.
15989 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15990 when HAVE_WINDOW_SYSTEM is defined.
15991
15992 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15993 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15994
15995 * xfaces.c: Include font.h unconditionally.
15996 (merge_face_ref, merge_face_vectors)
15997 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15998
159992008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16000
16001 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16002 indirect_variable.
16003 * eval.c (lisp_indirect_variable): New fun.
16004 (Fuser_variable_p): Use it.
16005
160062008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16007
16008 * lisp.h (indirect_variable):
16009 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16010 Use Lisp_Symbol pointers rather than Lisp_Object.
16011 Adjust callers.
16012 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16013 To this end, change calling-convention.
16014
16015 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16016 if some non-hidden buffers are selected by string&pred.
16017
160182008-05-19 Chong Yidong <cyd@stupidchicken.com>
16019
16020 * process.c (wait_reading_process_output): Always check status
16021 when in batch mode.
16022
160232008-05-19 Kenichi Handa <handa@m17n.org>
16024
16025 * font.c (font_list_entities): Fix handling of cache.
16026 (font_matching_entity): Likewise.
16027
16028 * ftfont.c (cs_iso8859_1): Delete.
16029 (ft_face_cache): New variable.
16030 (struct ftfont_info): New member fc_charset_idx.
16031 (ftfont_build_basic_charsets): Delete.
16032 (fc_charset_table): New variable.
16033 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16034 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16035 Callers changed.
16036 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16037 (ftfont_spec_pattern): New argument fc_charset_idx.
16038 Check registry more rigidly. Change callers.
16039 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16040 change of :font-entity property of the font.
16041
16042 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16043 property of the font.
16044
160452008-05-18 Juanma Barranquero <lekktu@gmail.com>
16046
16047 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16048 (Funencodable_char_position, Fcheck_coding_systems_region)
16049 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16050 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16051 (Ffind_operation_coding_system, Fset_coding_system_priority)
16052 (Fcoding_system_eol_type): Doc fixes.
16053
160542008-05-17 Glenn Morris <rgm@gnu.org>
16055
16056 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16057
160582008-05-16 Eli Zaretskii <eliz@gnu.org>
16059
16060 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16061 and st_gid.
16062
16063 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16064 HAVE_WINDOW_SYSTEM is not defined.
16065
16066 * xfaces.c (merge_face_ref, merge_face_vectors)
16067 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16068 HAVE_WINDOW_SYSTEM is defined.
16069 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16070
160712008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16072
16073 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16074
160752008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16076
16077 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16078
160792008-05-15 Kenichi Handa <handa@m17n.org>
16080
16081 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16082 preference.
16083
160842008-05-15 Glenn Morris <rgm@gnu.org>
16085
16086 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16087
160882008-05-15 Chong Yidong <cyd@stupidchicken.com>
16089
16090 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16091 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16092
16093 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16094
160952008-05-15 Kenichi Handa <handa@m17n.org>
16096
16097 * ftfont.c (ftfont_list): Downcase family name to check generic
16098 families.
16099
16100 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16101 font-spec for QCfont value.
16102
16103 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16104 buffer. Check the return value of it.
16105
161062008-05-14 Jason Rumney <jasonr@gnu.org>
16107
16108 * w32term.c (w32_get_glyph_overhangs): Remove.
16109 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16110
161112008-05-14 Kenichi Handa <handa@m17n.org>
16112
16113 * font.c (font_prop_validate): Make nil a valid value.
16114 (font_clear_cache): Check if the cached vector of entities is nil
16115 or not.
16116
161172008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16118
16119 * emacs.c (main_thread): Conditionalize on
16120 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16121 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16122
16123 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16124 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16125 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16126
161272008-05-14 Kenichi Handa <handa@m17n.org>
16128
16129 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16130 has no corresponding coding system.
16131
161322008-05-14 Jason Rumney <jasonr@gnu.org>
16133
16134 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16135
16136 * w32font.h (w32font_open_internal): Update declaration.
16137
16138 * w32font.c (w32font_open_internal): Change last argument from
16139 w32font_info struct to font object. Fill in font object from
16140 font_entity. Get Outline metrics if possible. Use them to
16141 calculate underline position and thickness. Use xlfd name as name
16142 property. Don't set codepage.
16143 (w32font_open): Pass font_object to w32font_open_internal. Don't
16144 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16145 (w32font_draw): Use s->font.
16146 (clear_cached_metrics): Don't clear non-existent blocks.
16147
16148 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16149 font was not found.
16150 (x_draw_glyph_string): Use underline position and thickness from font.
16151
16152 * w32uniscribe.c (uniscribe_open): Pass font_object to
16153 w32font_open_internal.
16154
161552008-05-14 Kenichi Handa <handa@m17n.org>
16156
16157 These changes are to delete all legacy font-handling codes, and
16158 make Emacs use only font-backends.
16159
16160 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16161 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16162
16163 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16164
16165 * charset.h (Vcharset_non_preferred_head)
16166 (Vcurrent_iso639_language): Extern them.
16167
16168 * charset.c (Vcharset_non_preferred_head): New variable.
16169 (Vcurrent_iso639_language): New variable.
16170 (syms_of_charset): Declare it as a Lisp variable.
16171 (char_charset): Don't check non preferred charsets. As a last
16172 resort, return charset_unicode.
16173 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16174
16175 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16176 conditionals. Don't check enable_font_backend. Delete all codes
16177 used only when USE_FONT_BACKEND is not defined.
16178
16179 * dispextern.h (struct glyph_string): Change type of `font' to
16180 `struct font *'.
16181 (struct glyph_string): New member underline_position and
16182 underline_thickness.
16183 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16184 (struct face): Change type of `font' to `struct font *'. Remove
16185 members `font_name', `font_info_id'.
16186 (per_char_metric, encode_char): Delete externs.
16187 (calc_pixel_width_or_height): Adjust the prototype.
16188
16189 * emacs.c (enable_font_backend): Delete extern.
16190 (main): Don't set enable_font_backend. Don't check the command
16191 line argument "-disable-font-backend".
16192
16193 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16194 (enum font_property_index): New members FONT_DPI_INDEX,
16195 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16196 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16197 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16198 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16199 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16200 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16201 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16202 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16203 (struct font_spec, struct font_entity): New structs.
16204 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16205 (struct font): Many members from old "struct font_info" moved to
16206 here. Members font and entity deleted.
16207 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16208 the new font-related objects.
16209 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16210 (CHECK_FONT_GET_OBJECT): Likewise.
16211 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16212 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16213 (struct font_driver): New members case_sensitive anc check. Type
16214 of the member list and open changed.
16215 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16216 (font_symbolic_width, font_find_object, font_get_spec)
16217 (font_set_lface_from_name): Delete extern.
16218 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16219
16220 * font.c: Include <strings.h>.
16221 (enable_font_backend): Delete it.
16222 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16223 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16224 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16225 (null_string): Delete it.
16226 (null_vector): Make it static.
16227 (font_family_alist): Delete it.
16228 (Qnormal): Extern it.
16229 (QCextra, QClanguage): Delete it.
16230 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16231 (font_make_spec, font_make_entity, font_make_object)
16232 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16233 the string. Callers changed.
16234 (font_pixel_size): Adjusted for the format change of font-related
16235 objects.
16236 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16237 (font_style_to_value, font_style_symbolic): New function.
16238 (build_font_family_alist): Delete it.
16239 (font_registry_charsets): Use Fassoc_string instead of
16240 assq_no_quit.
16241 (font_prop_validate_symbol): Don't return null_string.
16242 (font_prop_validate_style): Adjusted for the change of
16243 style-related values in a font vector.
16244 (font_property_table): Delete entries for QClanguage and
16245 QCantialias, add entries for QCavgwidth.
16246 (get_font_prop_index): Delete the 2nd argument FROM.
16247 (font_prop_validate): Arguments changed.
16248 (font_put_extra): Adjusted for the change of font-related objects.
16249 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16250 (font_parse_fcname, font_unparse_fcname)
16251 (font_prepare_composition): Likewise.
16252 (font_parse_family_registry): Renamed from font_merge_old_spec.
16253 (otf_open): Delete the 1st arg entity.
16254 (font_otf_capability): Adjusted for the above change.
16255 (font_score): New arg alternate_families. Adjusted for the change
16256 of font-related objects.
16257 (font_sort_entites): New arg best_only.
16258 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16259 Delete them.
16260 (font_match_p): Check alternate families.
16261 (font_find_object): Delete it.
16262 (font_check_object): New function.
16263 (font_clear_cache): Adjusted for the change of font-related objects.
16264 (font_delete_unmatched): New arg.
16265 (font_list_entities): Call font_driver->list with a spec that
16266 doesn't specify style-related properties.
16267 (font_matching_entity): Arguments changed. Caller changed.
16268 (font_open_entity): Adjusted for the change of font-related objects.
16269 (font_close_object, font_has_char, font_encode_char)
16270 (font_get_name, font_get_spec): Likewise.
16271 (font_spec_from_name, font_clear_prop, font_update_lface):
16272 New functions.
16273 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16274 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16275 (font_at): Adjusted for the change of font-related objects.
16276 (font_range): New function.
16277 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16278 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16279 (Fcopy_font_spec, Fmerge_font_spec): New function.
16280 (Ffont_family_list): Renamed from list-families.
16281 (Finternal_set_font_style_table): Arguments changed.
16282 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16283 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16284 change of font-related objects.
16285 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16286
16287 * fontset.h (struct font_info): Delete it. Most members go to
16288 struct font.
16289 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16290 (enum FONT_SPEC_INDEX): Delete it.
16291 (font_info, list_fonts_func, load_font_func, query_font_func)
16292 (set_frame_fontset_func, find_ccl_program_func)
16293 (get_font_repertory_func, new_fontset_from_font_name): Delete
16294 externs.
16295 (fontset_from_font_name): Extern it.
16296 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16297 (FONT_INFO_FROM_FACE): Deleted.
16298 (face_for_font): Adjust prototype.
16299
16300 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16301 conditionals. Don't check enable_font_backend. Delete all codes
16302 used only when USE_FONT_BACKEND is not defined.
16303 (get_font_info_func, list_font_func, load_font_func)
16304 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16305 (get_font_repertory_func): Delete them.
16306 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16307 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16308 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16309 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16310 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16311 (fontset_compare_rfontdef): New function.
16312 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16313 rfont-defs by qsort. Adjusted for the change of font-group vector.
16314 (load_font_get_repertory): Deleted.
16315 (fontset_find_font): Use new macros to ref/set elements of
16316 font-def and rfont-def.
16317 (fontset_font): Fix the timing of remembering that no font for C.
16318 (free_face_fontset): Do nothing if the face has no fontset.
16319 (face_suitable_for_char_p): Use new macros to ref/set elements of
16320 rfont-def.
16321 (face_for_char): Likewise. Call face_for_char with font_object.
16322 (fs_load_font): Delete. Delete #pragma surrounding it.
16323 (fs_query_fontset): Use strcasecmp instead of strcmp.
16324 (generate_ascii_font_name): Adjusted for the format change of
16325 font-spec.
16326 (Fset_fontset_font): Likewise. Use new macros to set elements of
16327 font-def.
16328 (Fnew_fontset): Use font_unparse_xlfd to generate
16329 FONTSET_ASCII (fontset).
16330 (new_fontset_from_font_name): Deleted.
16331 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16332 a fontset is already created for the font. FIx updating of
16333 Vfontset_alias_alist.
16334 (fontset_ascii_font): Deleted.
16335 (Ffont_info): Adjusted for the format change of font-spec.
16336 (Finternal_char_font): Likewise.
16337 (Ffontset_info): Likewise.
16338 (syms_of_fontset): Don't check load_font_func.
16339
16340 * fns.c (internal_equal): Handle PREV_FONT.
16341
16342 * frame.h: Delete USE_FONT_BACKEND conditional.
16343
16344 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16345 conditionals. Don't check enable_font_backend. Delete all codes
16346 used only when USE_FONT_BACKEND is not defined.
16347 (x_set_font): Call x_new_font, not x_new_fontset2.
16348 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16349 already set for the frame.
16350
16351 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16352 a font-entity by font_make_entity. Use font_intern_prop instead
16353 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16354 font property. If a font is scalable, set avgwidth property to 0.
16355 Set font-entity property by font_put_extra.
16356 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16357 (ffont_driver): Adjusted for the change of struct font_driver.
16358 (ftfont_spec_pattern): New function.
16359 (ftfont_list): Return a list, not vector.
16360 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16361 (ftfont_list_family): Don't downcase names.
16362 (ftfont_free_entity): Deleted.
16363 (ftfont_open): Return a font-object. Adjusted for the change of
16364 struct font. Get underline_thickness and underline_position from
16365 font property. Don't update dpyinfo->smallest_font_height and
16366 dpyinfo->smallest_char_width.
16367 (ftfont_close): Don't free `struct font'.
16368 (ftfont_has_char): Adjusted for the format change of font-entity.
16369 (ftfont_encode_char, ftfont_text_extents): Likewise.
16370
16371 * ftxfont.c (ftxfont_list): Return a list, not vector.
16372 (ftxfont_open): Return a font-object. Adjusted for the change of
16373 struct font. Get underline_thickness and underline_position from
16374 font property. Don't update dpyinfo->smallest_font_height and
16375 dpyinfo->smallest_char_width.
16376 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16377 (ftxfont_draw): Adjusted for the change of struct font.
16378
16379 * image.c (image_ascent): Don't include "charset.h". Include
16380 "character.h" and "font.h".
16381
16382 * lisp.h (enum pvec_type): New member PREV_FONT.
16383 (Fassoc_string): EXFUN it.
16384
16385 * print.c: Include font.h.
16386 (print_object): Handle font-related objects.
16387
16388 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16389 conditionals. Don't check enable_font_backend. Delete all codes
16390 used only when USE_FONT_BACKEND is not defined.
16391 (handle_auto_composed_prop): Do nothing if it->f is not on a
16392 window system. Check how many following characters can be
16393 displayed by the same font.
16394 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16395 'struct font *'.
16396 (get_char_face_and_encoding): Assign the whole encoding task to
16397 the `encode-char' method of a font driver.
16398 (fill_composite_glyph_string): Adjusted for the change of `struct
16399 face' and `struct glyph_string'.
16400 (fill_glyph_string): Likewise.
16401 (get_per_char_metric): Arguments changed.
16402 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16403 and `struct glyph_string'.
16404 (produce_stretch_glyph, calc_line_height_property)
16405 (x_produce_glyphs): Likewise.
16406
16407 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16408 conditionals. Don't check enable_font_backend. Delete all codes
16409 used only when USE_FONT_BACKEND is not defined. Use
16410 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16411 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16412 (Qp): Extern them.
16413 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16414 Deleted.
16415 (struct font_name): Deleted.
16416 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16417 (compare_fonts_by_sort_order): New function.
16418 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16419 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16420 Deleted.
16421 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16422 compare_fonts_by_sort_order.
16423 (Fx_font_family_list): Call Ffont_family_list.
16424 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16425 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16426 (face_symbolic_slant, face_symbolic_swidth)
16427 (split_font_name_into_vector, build_font_name_from_vector)
16428 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16429 (font_rescale_ratio, split_font_name, build_font_name)
16430 (free_font_names, sort_fonts, x_face_list_fonts)
16431 (face_font_available_p, sorted_font_list, cmp_font_names)
16432 (font_list_1, concat_font_list, font_list, remove_duplicates):
16433 Deleted.
16434 (Fx_list_fonts): Use Ffont_list.
16435 (LFACE_AVGWIDTH): Deleted.
16436 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16437 by FONTP.
16438 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16439 (set_lface_from_font_name): Delete it.
16440 (set_lface_from_font): Renamed from
16441 set_lface_from_font_and_fontset. Caller changed. Don't set
16442 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16443 for face.
16444 (merge_face_vectors): Copy font-spec if necessary.
16445 Clear properties of the font-spec if necessary.
16446 (merge_face_ref): Clear properties of the font-spec if necessary.
16447 (Finternal_set_lisp_face_attribute): Likewise.
16448 (set_font_frame_param): Use font_load_for_lface to load a
16449 font-object, and call Fmodify_frame_parameters with it.
16450 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16451 font name by Ffont_xlfd_name.
16452 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16453 QCslant, and QCwidth.
16454 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16455 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16456 Compare fonts by EQ.
16457 (lookup_non_ascii_face): Deleted.
16458 (face_for_font): The 2nd argument changed.
16459 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16460 Check atomic font properties by case insensitive.
16461 (realize_non_ascii_face): Set face->overstrike correctly.
16462 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16463 (dump_realized_face): Get font name from
16464 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16465
16466 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16467 conditionals. Don't check enable_font_backend. Delete all codes
16468 used only when USE_FONT_BACKEND is not defined.
16469 (xic_create_xfontset): Original code deleted and renamed from
16470 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16471 (x_make_gc): Don't set GCFont in GCs.
16472 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16473 opened by "fixed".
16474 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16475 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16476 get_font_repertory_func.
16477
16478 * xfont.c: Include <stdlib.h> and "ccl.h".
16479 (struct xfont_info): New structure.
16480 (xfont_query_font): Deleted.
16481 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16482 moved from xterm.c.
16483 (xfont_driver): Adjusted for the change of struct font_driver.
16484 (compare_font_names): New function.
16485 (xfont_list_pattern): Sort font names case insensitively. Make
16486 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16487 (xfont_list): Return a list, not vector.
16488 (xfont_match): If the font doesn't have QCname property, generate
16489 a name from the other font properties.
16490 (xfont_open): Return a font-object. Adjusted for the change of
16491 struct font. Get underline_thickness and underline_position from
16492 font property. Don't update dpyinfo->smallest_font_height and
16493 dpyinfo->smallest_char_width.
16494 (xfont_close): Don't free struct font.
16495 (xfont_prepare_face): Adjusted for the change of struct font.
16496 (xfont_done_face): Deleted.
16497 (xfont_has_char): Adjusted for the change of struct font.
16498 (xfont_encode_char, xfont_draw): Likewise.
16499 (xfont_check): New function.
16500
16501 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16502 callback function.
16503 (xftfont_match): Adjusted for the format change of font-entity.
16504 (xftfont_open): Adjusted for the format change of font-entity and
16505 font-object. Adjusted for the change of struct font. Return a
16506 font-object. Don't update dpyinfo->smallest_font_height and
16507 dpyinfo->smallest_char_width.
16508 (xftfont_close): Block input while calling XftFontClose.
16509 (xftfont_prepare_face): Don't block input while calling
16510 xftfont_get_colors. Adjusted for the change of struct font.
16511 (xftfont_shape): Return value of error case fixed.
16512
16513 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16514
16515 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16516 conditionals.
16517 (FONT_WIDTH): Return (f)->max_width.
16518 (struct x_display_info): Delete member `font'.
16519 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16520 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16521 (struct x_output): Change type of `font' to `struct font *'.
16522
16523 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16524 conditionals. Don't check enable_font_backend. Delete all codes
16525 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16526 (x_per_char_metric, x_encode_char): Deleted.
16527 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16528 (x_compute_glyph_string_overhangs): Adjusted for the change of
16529 `struct face'.
16530 (x_draw_glyph_string_foreground)
16531 (x_draw_composite_glyph_string_foreground): Likewise.
16532 (x_draw_glyph_string): Likewise. Use font->underline_position and
16533 font->underline_thickness.
16534 (x_new_font): Renamed from x_new_fontset2.
16535 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16536 (x_check_font): Call `check' method of a font driver.
16537 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16538 (x_query_font, x_get_font_repertory): Deleted.
16539 (x_find_ccl_program): Renamed and moved to xfont.c.
16540 (x_redisplay_interface): Adjusted for the change of `struct
16541 redisplay_interface'.
16542
16543 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16544 conditionals. Don't check enable_font_backend. Delete all codes
16545 used only when USE_FONT_BACKEND is not defined. Surround non-used
16546 code by "#ifdef OLD_FONT" and "endif".
16547 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16548
16549 * w32font.h (struct w32font_info): New member.
16550 (FONT_COMPAT): New macro.
16551 (w32font_open_internal): Prototype adjusted.
16552
16553 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16554 OLD_FONT" and "endif".
16555
16556 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16557 conditionals. Don't check enable_font_backend. Delete all codes
16558 used only when USE_FONT_BACKEND is not defined.
16559 (w32font_open): Return a font-object. Make a font-object by
16560 font_make_object. Adjusted for the change of struct w32font_info.
16561 (w32font_close): Don't free struct font. Adjusted for the change
16562 of struct w32font_info.
16563 (w32font_encode_char, w32font_text_extents, w32font_draw):
16564 Adjusted for the change of struct w32font_info.
16565 (w32font_draw): Likewise.
16566 (w32font_list_internal): Return a list, not vector.
16567 (w32font_open_internal): Change the 4th arg to font-object.
16568 Adjusted for the change of struct w32font_info and font-object format.
16569 (add_font_name_to_list): Don't downcase names.
16570 (w32_enumfont_pattern_entity): Make a font-entity by
16571 font_make_entity. Adjusted for the format change of font-entity.
16572 Use FONT_SET_STYLE to set a style-related font property. If a
16573 font is scalable, set avgwidth property to 0. Set font-entity
16574 property by font_put_extra.
16575 (font_matches_spec): Adjusted for the format change of font-entity.
16576 (w32_weight_table, w32_decode_weight): New variables.
16577 (w32_encode_weight): New function.
16578 (fill_in_logfont): Adjusted for the format change of font-spec.
16579 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16580 weight value.
16581 (w32font_driver): Adjusted for the change of struct font_driver.
16582
16583 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16584 conditionals. Don't check enable_font_backend. Surround non-used
16585 code by "#ifdef OLD_FONT" and "endif".
16586 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16587 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16588
16589 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16590 conditionals. Don't check enable_font_backend. Delete all codes
16591 used only when USE_FONT_BACKEND is not defined. Surround non-used
16592 code by "#ifdef OLD_FONT" and "endif".
16593
16594 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16595 (uniscribe_open): Return value changed to font-object.
16596 Adjusted for the format change of font-object.
16597 (uniscribe_otf_capability): Adjusted for the change of struct font.
16598 (add_opentype_font_name_to_list): Don't downcase names.
16599 (uniscribe_font_driver): Adjusted for the change of struct
16600 font_driver.
16601
166022008-05-13 Chong Yidong <cyd@stupidchicken.com>
16603
16604 * dispnew.c (update_frame_1): Check if tty output is still valid
16605 before flushing it.
16606
166072008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16608
16609 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16610 to Gtk+ menus.
16611
166122008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16613
16614 * dired.c (file_name_completion): Tweak the code so as to always do it
16615 in a single pass. Tighten the scope of some variables.
16616
16617 * dired.c (Qdefault_directory): New var.
16618 (file_name_completion): Use it instead of Fexpand_file_name.
16619 (syms_of_dired): Initialize it.
16620
166212008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16622
16623 * fileio.c (double_dollars): Remove dead code.
16624
166252008-05-10 Eli Zaretskii <eliz@gnu.org>
16626
16627 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16628 Mention w32-get-true-file-attributes in doc string.
16629
16630 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16631
166322008-05-09 Glenn Morris <rgm@gnu.org>
16633
16634 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16635 2008-04-23.
16636
166372008-05-09 Eli Zaretskii <eliz@gnu.org>
16638
16639 Support for reporting owner and group of each file on MS-Windows:
16640 * dired.c (stat_uname, stat_gname): New functions, with special
16641 implementation for w32.
16642 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16643
16644 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16645 (dflt_group_name): New static variable.
16646 (dflt_group): Rename from the_group.
16647 (init_user_info): Init dflt_group fields. Get user's group name
16648 from LookupAccountSid.
16649 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16650 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16651 New initialization states.
16652 (globals_of_w32): Initialize them to zero. Initialize the default
16653 group name to "None".
16654 (GetFileSecurity_Name): New global var, the name of the function
16655 to call for GetFileSecurity.
16656 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16657 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16658 (get_file_security, get_security_descriptor_owner)
16659 (get_security_descriptor_group, is_valid_sid)
16660 (get_file_security_desc, get_rid, get_name_and_id)
16661 (get_file_owner_and_group): New functions.
16662 (stat): Use get_file_security_desc and get_file_owner_and_group to
16663 report the owner and primary group of each file. Don't ignore the
16664 high 32 bits of file's size, now that st_size is 64-bit wide.
16665 Fix test when to get true file attributes.
16666 (init_user_info): Use get_rid instead of equivalent inline code.
16667 (fstat): Don't ignore the high 32 bits of file's size.
16668
166692008-05-09 Chong Yidong <cyd@stupidchicken.com>
16670
16671 * image.c (png_load): Use correct bit-depth for setting background
16672 color.
16673
166742008-05-08 Eli Zaretskii <eliz@gnu.org>
16675
16676 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16677 epa-hook.elc.
16678
166792008-05-08 Juanma Barranquero <lekktu@gmail.com>
16680
16681 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16682
166832008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16684
16685 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16686 because the original parameters are in pure storage now.
16687 (mac_window): Remove unused params. Update callers.
16688
166892008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16690
16691 * lread.c (substitute_object_recurse): Use lower-level primitives.
16692 Don't signal errors when traversing sub-char-tables.
16693 Don't loop over all the possible characters when traversing char-tables.
16694
16695 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16696 just like we do in print.c.
16697
166982008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16699
16700 * minibuf.c (Ftry_completion): Remove code left over from when we used
16701 scmp instead of Fcompare_strings.
16702
167032008-05-04 Juanma Barranquero <lekktu@gmail.com>
16704
16705 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16706
167072008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16708
16709 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16710 Create bitmap context in native byte order.
16711
16712 * macterm.c (XDrawLine)
16713 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16714 context in native byte order.
16715
167162008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16717
16718 * config.in: Regenerate.
16719
16720 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16721 New definitions for Image I/O support.
16722 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16723 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16724 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16725 (mac_data_provider_release_data, image_load_image_io)
16726 [USE_MAC_IMAGE_IO]: New functions.
16727 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16728 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16729 (init_image_func_pointer) [MAC_OSX]: Remove function.
16730 (image_load_quartz2d) [MAC_OSX]: Check availability of
16731 CGImageCreateWithPNGDataProvider at compile time.
16732 Use lowercase `false' for boolean constant.
16733 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16734 Use image_load_image_io.
16735 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16736 Don't check MyCGImageCreateWithPNGDataProvider.
16737 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16738 Don't call init_image_func_pointer.
16739
16740 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16741
16742 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16743 Make variable non-static.
16744 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16745 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16746
16747 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16748 (RED_FROM_ULONG): Mask off higher bits.
16749 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16750
16751 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16752 Include AvailabilityMacros.h.
16753 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16754 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16755
167562008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16757
16758 * chartab.c (Fset_char_table_range): If range is t, really set all
16759 chars to that value.
16760
167612008-05-03 Eli Zaretskii <eliz@gnu.org>
16762
16763 * dired.c (Ffile_attributes): Don't allow the device number become
16764 negative.
16765
167662008-05-02 Daiki Ueno <ueno@unixuser.org>
16767
16768 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16769
167702008-05-02 Juri Linkov <juri@jurta.org>
16771
16772 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16773 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16774 DEFAULT argument as a list of default values in docstrings.
16775
167762008-05-01 Chong Yidong <cyd@stupidchicken.com>
16777
16778 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16779
167802008-05-01 Martin Rudalics <rudalics@gmx.at>
16781
16782 * dispnew.c (change_frame_size_1): Preserve small windows when
16783 shrinking frames by calling set_window_height|width with third
16784 arg 2.
16785
16786 * window.h (struct window): Replace field too_small_ok by field
16787 resize_proportionally.
16788
16789 * window.c (make_window): Initialize resize_proportionally.
16790 (enlarge_window): Temporarily set resize_proportionally to make
16791 sure that shrink_windows does scale the window proportionally.
16792 (shrink_windows): When window has resize_proportionally set try
16793 to shrink it proportionally by stealing from other windows.
16794 (struct saved_window, Fset_window_configuration)
16795 (compare_window_configurations): Handle resize_proportionally.
16796 (WINDOW_TOTAL_SIZE): New macro.
16797 (window_min_size, shrink_windows, size_window): Use it.
16798 (check_min_window_sizes): Remove. Invalid values of
16799 window-min-height|width are handled by window_min_size_2 now.
16800 (size_window, Fsplit_window, enlarge_window)
16801 (adjust_window_trailing_edge, grow_mini_window): Don't call
16802 check_min_window_sizes.
16803 (window_min_size_2, window_min_size_1, window_min_size):
16804 New argument safe_p for retrieving "safe" minimum sizes.
16805 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16806 (adjust_window_trailing_edge, grow_mini_window):
16807 Adjust arguments of window_min_size... functions.
16808 (shrink_windows): Argument min_size removed. New argument
16809 safe_p allows shrinking windows to their safe minimum sizes.
16810 Calculate minimum size and decide whether a window shall be
16811 deleted for each window individually.
16812 (size_window): When nodelete_p equals 2, tell shrink_windows to
16813 delete windows only if their new minimum size is no more safe.
16814 (shrink_window_lowest_first): Call window_min_size_1 to make
16815 sure to preserve modeline of bottom-most window when resizing
16816 the minibuffer.
16817 (Fset_window_configuration, Fcurrent_window_configuration)
16818 (compare_window_configurations): Do not handle
16819 window-min-height|width any more.
16820 (syms_of_window): Clarify window-min-height|width doc-strings.
16821
168222008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16823
16824 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16825 some more. Copy some of the code from Ftry_completions.
16826 Remove special case code that dates back to initial revision when the
16827 slash was only added when necessary and that can't trigger nowadays.
16828
168292008-04-27 Kenichi Handa <handa@m17n.org>
16830
16831 * font.c (font_prop_validate): Signal `error' instead of `font'.
16832
168332008-04-29 Jason Rumney <jasonr@gnu.org>
16834
16835 * w32fns.c (Fw32_battery_status): New defun.
16836 (syms_of_w32fns): Defsubr it.
16837
168382008-04-28 Andreas Schwab <schwab@suse.de>
16839
16840 * dired.c (file_name_completion): Fix another mixing of encoded
16841 and decoded names.
16842
168432008-04-28 Juanma Barranquero <lekktu@gmail.com>
16844
16845 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16846
168472008-04-27 Juanma Barranquero <lekktu@gmail.com>
16848
16849 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16850
168512008-04-27 Andreas Schwab <schwab@suse.de>
16852
16853 * dired.c (file_name_completion): Fix inappropriate mixing of
16854 encoded and decoded names.
16855
16856 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16857
16858 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16859
168602008-04-26 Eli Zaretskii <eliz@gnu.org>
16861
16862 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16863 2008-03-31, it's not needed anymore with `struct stat' definition
16864 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16865 for the same reasons.
16866
168672008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16868
16869 * m/sparc.h: Additional redefinitions for GNU/Linux.
16870
168712008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16872
16873 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16874 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16875 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16876 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16877 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16878 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16879 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16880 Likewise.
16881
16882 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16883 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16884 (mac_ax_number_of_characters): Add externs.
16885 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16886 [USE_MAC_TSM]: Likewise.
16887 (mac_handle_text_input_event) [MAC_OSX]:
16888 Handle kEventTextInputOffsetToPos for no active input area case.
16889 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16890 (mac_handle_document_access_event)
16891 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16892 (install_application_handler) [MAC_OSX]: Register handlers for
16893 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16894 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16895 Register mac_handle_document_access_event.
16896
16897 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16898 Make functions non-static.
16899
169002008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16901
16902 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16903 (read_file_name_completion_ignore_case, insert_default_directory)
16904 (Qdefault_directory): Move to minibuffer.el.
16905 (Fread_file_name): Call the new `read-file-name' instead.
16906
169072008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16908
16909 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16910 Make function non-static.
16911 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16912 Remove function.
16913 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16914 Move to mactoolbox.c.
16915 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16916
16917 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16918 (mac_rect_make): New macro.
16919
16920 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16921 instead of float.
16922 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16923 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16924 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16925 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16926 CGRectMake.
16927 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16928 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16929 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16930 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16931 instead of WindowRef in argument type.
16932 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16933 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16934 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16935 instead of DISPLAY. All uses changed.
16936 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16937 (x_calc_absolute_position): Simplify so as not to use
16938 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16939
16940 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16941 instead of WindowRef in argument type.
16942 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16943 [TARGET_API_MAC_CARBON]: Remove externs.
16944 (create_apple_event, mac_event_parameters_to_lisp)
16945 [TARGET_API_MAC_CARBON]: Add externs.
16946
16947 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16948 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16949 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16950 is clicked.
16951 (x_activate_menubar): Remove extern for saved_menu_event_location.
16952 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16953 Move from mac.c.
16954
169552008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16956
16957 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16958 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16959
169602008-04-23 Jason Rumney <jasonr@gnu.org>
16961
16962 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16963 attributes only for local files.
16964
16965 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16966 default to Qlocal.
16967
169682008-04-22 Juri Linkov <juri@jurta.org>
16969
16970 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16971 read-buffer-to-switch instead of using the letter "B".
16972
169732008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16974
16975 * fileio.c (Qdefault_directory): New variable.
16976 (Fread_file_name): Use it to pass `dir' to the completion functions.
16977
169782008-04-20 Chong Yidong <cyd@stupidchicken.com>
16979
16980 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16981
169822008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16983
16984 * keyboard.c (Vpre_help_message): Remove.
16985 (show_help_echo): Remove default C code.
16986
16987 * dired.c (directory_files_internal, file_name_completion):
16988 Only call ENCODE_FILE if the string is indeed decoded.
16989
169902008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16991
16992 * Makefile.in (TOOLKIT_DEFINES): Remove.
16993 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16994
169952008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16996
16997 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16998 (mactoolbox.o): New target.
16999
17000 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17001 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17002
17003 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17004 Use mac_set_frame_window_background instead of XSetWindowBackground.
17005 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17006 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17007 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17008 instead of SetWindowTitleWithCFString.
17009 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17010 Move function to mactoolbox.c.
17011 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17012 Use mac_set_window_modified instead of SetWindowModified.
17013 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17014 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17015 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17016 FrontNonFloatingWindow. Use mac_activate_window instead of
17017 ActivateWindow. Use mac_active_non_floating_window instead of
17018 ActiveNonFloatingWindow.
17019 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17020 Use mac_show_hourglass and mac_hide_hourglass.
17021 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17022 instead of GetGlobalMouse.
17023 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17024 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17025 Use mac_bring_window_to_front instead of BringToFront.
17026 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17027 mactoolbox.c.
17028 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17029 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17030 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17031 mactoolbox.c.
17032
17033 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17034 (XtPointer): Move typedef from macmenu.c.
17035 (enum button_type): Move enum from macmenu.c.
17036 (widget_value): Move typedef from macmenu.c.
17037 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17038 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17039 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17040 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17041 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17042 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17043 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17044 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17045 (Selection): Move typedef from macselect.c.
17046 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17047 macterm.c.
17048 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17049 (mac_is_window_collapsed, mac_bring_window_to_front)
17050 (mac_send_window_behind, mac_hide_window, mac_show_window)
17051 (mac_collapse_window, mac_front_non_floating_window)
17052 (mac_active_non_floating_window, mac_activate_window)
17053 (mac_move_window_structure, mac_move_window, mac_size_window)
17054 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17055
17056 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17057 (enum mac_menu_kind): Move enum to mactoolbox.c.
17058 (min_menu_id): Move variable to mactoolbox.c.
17059 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17060 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17061 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17062 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17063 [TARGET_API_MAC_CARBON]: Likewise.
17064 (XtPointer): Move typedef to macgui.h.
17065 (enum button_type): Move enum to macgui.h.
17066 (widget_value): Move typedef to macgui.h.
17067 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17068 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17069 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17070 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17071 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17072 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17073 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17074 (popup_activated_flag): Make variable non-static.
17075 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17076 (add_menu_item, fill_menu, dispose_menus):
17077 Move functions to mactoolbox.c.
17078 (restore_show_help_function, menu_target_item_handler)
17079 (install_menu_target_item_handler, mac_handle_dialog_event)
17080 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17081 [TARGET_API_MAC_CARBON]: Likewise.
17082 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17083 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17084 (find_and_call_menu_selection, name_is_separator): Make function
17085 non-static.
17086 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17087 to mactoolbox.c.
17088 (set_frame_menubar): Don't call install_menu_quit_handler.
17089 (menu_item_selection): New variable.
17090 (mac_menu_show): Use create_and_show_popup_menu.
17091 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17092 selection but set variable menu_item_selection. All uses changed.
17093 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17094 Call install_menu_quit_handler. Move to mactoolbox.c.
17095
17096 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17097 (Selection): Move typedef to macgui.h.
17098 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17099 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17100 Make variables non-static.
17101 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17102 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17103 Make functions non-static.
17104 (Vmac_service_selection) [MAC_OSX]: Likewise.
17105 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17106 (mac_valid_selection_target_p, mac_clear_selection)
17107 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17108 (mac_put_selection_value, mac_selection_has_target_p)
17109 (mac_get_selection_value, mac_get_selection_target_list)
17110 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17111 Move functions to mactoolbox.c.
17112 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17113 Likewise.
17114 (copy_scrap_flavor_data, mac_handle_service_event)
17115 (install_service_handler) [MAC_OSX]: Likewise.
17116 (syms_of_macselect) <Vmac_dnd_known_types>:
17117 Use mac_dnd_default_known_types.
17118
17119 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17120 Move to mactoolbox.c.
17121 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17122 (Fx_selection_owner_p): Add EXFUN.
17123 (install_window_handler, remove_window_handler, XSetWindowBackground):
17124 Remove externs.
17125 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17126 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17127 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17128 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17129 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17130 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17131 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17132 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17133 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17134 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17135 (mac_valid_selection_target_p, mac_clear_selection)
17136 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17137 (mac_put_selection_value, mac_selection_has_target_p)
17138 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17139 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17140 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17141 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17142 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17143 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17144 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17145 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17146 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17147
17148 * mactoolbox.c: New file.
17149
171502008-04-18 Jason Rumney <jasonr@gnu.org>
17151
17152 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17153
171542008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17155
17156 * character.c (Fmultibyte_char_to_unibyte):
17157 Return latin1 chars unchanged.
17158
17159 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17160 relocated if it points to `name'.
17161
171622008-04-17 Kenichi Handa <handa@m17n.org>
17163
17164 * data.c (Faset): Allow setting a multibyte character in an
17165 ASCII-only unibyte string.
17166
17167 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17168
171692008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17170
17171 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17172 done in config.h.
17173
171742008-04-16 Juanma Barranquero <lekktu@gmail.com>
17175
17176 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17177 (Fchar_direction): Add usage in the docstring.
17178
171792008-04-15 Chong Yidong <cyd@stupidchicken.com>
17180
17181 * keyboard.c (read_key_sequence): Remove always-true checks.
17182
171832008-04-14 Jason Rumney <jasonr@gnu.org>
17184
17185 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17186 compatibility struct, for better underline positioning.
17187
171882008-04-13 David Hansen <david.hansen@gmx.net>
17189
17190 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17191 string.
17192
171932008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17194
17195 * m/hp800.h (XUINT, XSET): Remove.
17196
171972008-04-12 Juanma Barranquero <lekktu@gmail.com>
17198
17199 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17200 previous change.
17201
172022008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17203
17204 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17205 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17206
172072008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17208
17209 * keymap.h (map_keymap_canonical): Declare.
17210 * xmenu.c (single_keymap_panes): Use it.
17211
172122008-04-11 Glenn Morris <rgm@gnu.org>
17213
17214 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17215 set the target's value to that of the alias.
17216
172172008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17218
17219 * term.c (set_tty_color_mode): Left over typo.
17220
172212008-04-10 Michael Albinus <michael.albinus@gmx.de>
17222
17223 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17224 only after check for file name handler functions. Signal, when
17225 native functionality is not supported.
17226 (syms_of_fileio): Declare it unconditionally.
17227
172282008-04-10 Jason Rumney <jasonr@gnu.org>
17229
17230 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17231 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17232
17233 * w32.c (logon_network_drive): Also logon to remote drives that
17234 are mapped to drive letters.
17235
172362008-04-10 Glenn Morris <rgm@gnu.org>
17237
17238 * xdisp.c (truncate-partial-width-windows): Doc fix.
17239
172402008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17241
17242 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17243 Move functions to minibuffer.el.
17244 (syms_of_fileio): Don't declare them.
17245
172462008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17247
17248 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17249 (syms_of_minibuf): Remove its initialization.
17250
17251 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17252
172532008-04-09 Juanma Barranquero <lekktu@gmail.com>
17254
17255 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17256
172572008-04-09 Jason Rumney <jasonr@gnu.org>
17258
17259 * makefile.w32-in (distclean): Delete makefile too.
17260 (maintainer-clean): New target.
17261
17262 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17263
17264 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17265 for new font backend and composite cases.
17266
172672008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17268
17269 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17270 Most of the code moved to run_timers.
17271 (do_pending_atimers): Call run_timers.
17272 (run_timers): New function.
17273
17274 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17275 run atimers.
17276
17277 * process.c (wait_reading_process_output): The same as above.
17278
172792008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17280
17281 * minibuf.c (last_exact_completion): Remove variable.
17282 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17283 (complete_and_exit_1, complete_and_exit_2)
17284 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17285 (Fdisplay_completion_list, display_completion_list_1)
17286 (Fminibuffer_completion_help, Fself_insert_and_exit)
17287 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17288 minibuffer.el.
17289 (syms_of_minibuf): Remove corresponding initializations.
17290
17291 * keyboard.c (Qdeactivate_mark): New var.
17292 (command_loop_1): Use it to call `deactivate-mark'.
17293 (syms_of_keyboard): Initialize it.
17294
17295 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17296 to another frame.
17297 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17298 Don't call set_tty_color_mode.
17299 (store_frame_param): Reset previous_frame rather than call
17300 set_tty_color_mode.
17301 * term.c (set_tty_color_mode): Rewrite.
17302 * dispextern.h (set_tty_color_mode): New type.
17303 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17304
173052008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17306
17307 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17308 for generic chars, which do not exist any more in emacs-unicode.
17309
173102008-04-08 Michael Albinus <michael.albinus@gmx.de>
17311
17312 * coding.c (detect_coding_emacs_mule)
17313 (Ffind_operation_coding_system): Fix typo.
17314
173152008-04-08 Jason Rumney <jasonr@gnu.org>
17316
17317 * w32uniscribe.c (SNAME): Extract only symbol name.
17318
17319 * w32font.h (struct w32_metric_cache): New struct.
17320 (w32font_info): Use it.
17321 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17322 (CACHE_BLOCKSIZE): New constants.
17323
17324 * w32font.c (Qja, Qko, Qzh): New symbols.
17325 (syms_of_w32font): Initialise them.
17326 (font_matches_spec): Use them to filter by language.
17327 (recompute_cached_metrics): Remove function.
17328 (compute_metrics, clear_cached_metrics): New functions.
17329 (w32font_encode_char): Use them to manage metric cache.
17330 (w32font_text_extents): Cache metrics for all glyphs on demand.
17331 Delay converting glyph indices to WORD until needed.
17332 (w32font_open_internal): Initialize metric cache to empty.
17333 (registry_to_w32_charset): Charset should always be a symbol.
17334 (fill_in_logfont, list_all_matching_fonts): Family should
17335 always be a symbol.
17336
173372008-04-06 Jason Rumney <jasonr@gnu.org>
17338
17339 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17340 Give up if glyph indices not supported. Use uniscribe obtained
17341 ABC widths for individual metrics. Map glyph clusters back to
17342 characters using fClusterStart flag. Return number of glyphs
17343 produced, not chars processed.
17344 (uniscribe_shape): Map char at FROM to current glyph.
17345
173462008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17347
17348 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17349 Use SetMenuItemHierarchicalMenu.
17350
173512008-04-05 Jason Rumney <jasonr@gnu.org>
17352
17353 * image.c (pbm_load): Allow color values up to 65535.
17354 Throw an error if max_color_idx is outside the supported range.
17355 Report an error when image size is invalid.
17356 Read two bytes at a time when raw images have max_color_idx above 255.
17357
aac0c6e3
MR
173582008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17359
17360 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17361 append "CCL: Quitted" when the CCL program is quitted.
17362 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17363
17364 * ccl.h (struct ccl_program): New member quit_silently.
17365
173662008-04-05 Chong Yidong <cyd@stupidchicken.com>
17367
17368 * search.c (compile_pattern_1): Treat non-nil and non-string of
17369 search-spaces-regexp as nil.
17370
17371 * minibuf.c (Fassoc_string): Tweak docstring.
17372
173732008-04-05 Eli Zaretskii <eliz@gnu.org>
17374
17375 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17376 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17377 2008-03-14 to force inode be positive.
17378
17379 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17380 _S_* ones, since we now use our own sys/stat.h.
17381 (stat, fstat): Don't mangle the inode number.
17382 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17383
173842008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17385
17386 * frame.h (struct frame): Give one more bit to `visible' since we use
17387 values larger than 1 to indicate obscured frames on ttys.
17388
17389 * keymap.c (Qkeymap_canonicalize): New var.
17390 (Fmap_keymap_internal): New fun.
17391 (describe_map): Use keymap-canonicalize.
17392
17393 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17394 (Fundo_boundary): Set them.
17395 (syms_of_undo): Initialize them.
17396 (record_point): Use them instead of last_point_position*.
17397 (last_undo_buffer): Change type.
17398
173992008-04-04 Jason Rumney <jasonr@gnu.org>
17400
17401 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17402 (recompute_cached_metrics): Don't set ascent and descent per char.
17403
17404 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17405 (uniscribe_check_otf): Add GC protection before consing.
17406 Rearrange loop for counting features.
17407
174082008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17409
17410 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17411 buffer with byte-size of source buffer.
17412
174132008-04-03 Chong Yidong <cyd@stupidchicken.com>
17414
17415 * callint.c (Fcall_interactively): Handle temporary region even
17416 when shift-select-mode is off.
17417
174182008-04-03 Jason Rumney <jasonr@gnu.org>
17419
17420 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17421
174222008-04-03 Kenichi Handa <handa@m17n.org>
17423
17424 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17425 (CATEGORY_MASK_UTF_16): Likewise.
17426 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17427 binary file.
17428 (detect_coding): Add null-byte detection for a binary file.
17429 (detect_coding_system): Likewise.
17430
174312008-04-03 Jason Rumney <jasonr@gnu.org>
17432
17433 * w32uniscribe.c: New file.
17434
17435 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17436
17437 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17438
17439 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17440 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17441 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17442 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17443 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17444 (Qphonetic): New symbols.
17445 (syms_of_w32font): Initialize them.
17446 (font_supported_scripts): Use them.
17447 (w32font_list_family): List all charsets.
17448 (w32font_text_extents, recompute_cached_metrics): Fix metric
17449 calculations.
17450 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17451 Give opentype fonts their own format.
17452 (font_matches_spec): New arguments backend and logfont.
17453 Handle :otf spec for uniscribe backend.
17454 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17455 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17456
17457 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17458 font backend.
17459 (globals_of_w32fns): Initialize uniscribe font backend.
17460
17461 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17462 dependencies.
17463 (w32uniscribe.$(O)): New file to build.
17464 (FONT_OBJ): Include w32uniscribe.$(O).
17465 (LIBS): Add uniscribe libraries.
17466
17467 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17468
174692008-04-02 Chong Yidong <cyd@stupidchicken.com>
17470
17471 * callint.c (Vshift_select_mode): New var.
17472 (Finteractive): Document new ^ spec.
17473 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17474 is present.
17475
17476 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17477 (command_loop_1): Avoid running the direct display versions of
17478 forward-char and backward-char if shift-selection may occur.
17479 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17480 shift-translation takes place.
17481
17482 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17483 avoid clobbering by define-minor-mode.
17484
17485 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17486 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17487
17488 * syntax.c (Fforward_word): Add ^ interactive spec.
17489
17490 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17491 (Fscroll_right): Add ^ interactive spec.
17492
174932008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17494
17495 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17496
17497 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17498
17499 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17500
175012008-03-31 Juri Linkov <juri@jurta.org>
17502
17503 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17504
175052008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17506
17507 * gtkutil.c (xg_set_geometry): Fix indentation.
17508 (xg_resize_outer_widget): Remove.
17509 (x_wm_size_hint_off): Fix indentation.
17510 (xg_frame_set_char_size): Call flush_and_sync after
17511 gtk_window_resize.
17512 (x_wm_set_size_hint): Pass NULL as geometry window to
17513 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17514 Add menu bar and tool bar height to base height.
17515 (xg_update_frame_menubar, free_frame_menubar)
17516 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17517 (update_frame_tool_bar, free_frame_tool_bar):
17518 Change xg_resize_outer_widget to xg_frame_set_char_size.
17519
175202008-03-30 Michael Albinus <michael.albinus@gmx.de>
17521
17522 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17523 (Fdbus_call_method): New parameter TIMEOUT.
17524 (dbus-send-signal): Optimize UNGCPRO call.
17525
175262008-03-29 Juri Linkov <juri@jurta.org>
17527
17528 * window.c (Fdisplay_buffer): Move call to
17529 Vsplit_window_preferred_function out of conditions that check
17530 if window is eligible for vertical splitting.
17531 When Vsplit_window_preferred_function is non-nil, call it and use
17532 its non-nil return value as window. Otherwise, continue doing
17533 vertical splitting using Fsplit_window with arg horflag=nil.
17534 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17535 default value from `split-window' to nil.
17536
175372008-03-29 Juri Linkov <juri@jurta.org>
17538
17539 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17540 for interactive code letters 'b' and 'B'.
17541
175422008-03-29 Eli Zaretskii <eliz@gnu.org>
17543
17544 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17545 multibyte string.
17546
175472008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17548
17549 * keyboard.c (pending_funcalls): New var.
17550 (timer_check): Run it.
17551 (syms_of_keyboard): Initialize it.
17552 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17553 (Vdelete_terminal_functions): New vars.
17554 (syms_of_terminal): Initialize them.
17555 (Fdelete_terminal): Run delete-terminal-functions.
17556 * xdisp.c (safe_eval): Rewrite.
17557 (safe_call2): New fun.
17558 * frame.c (Qdelete_frame_functions): New var.
17559 (syms_of_frame): Initialize it.
17560 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17561 * lisp.h (safe_call2, pending_funcalls): Declare.
17562
175632008-03-28 Andreas Schwab <schwab@suse.de>
17564
17565 * indent.c (Fmove_to_column): Move declaration before statements.
17566
175672008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17568
17569 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17570 (struct frame): Use bit fields for boolean vars.
17571
17572 * process.c (server_accept_connection): Simplify naming.
17573 (emacs_get_tty_pgrp): Use SDATA.
17574
17575 * coding.c (decode_coding_object): Fix last change.
17576
175772008-03-27 Jason Rumney <jasonr@gnu.org>
17578
17579 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17580
175812008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17582
17583 * charset.c (Fdefine_charset_internal): Change the way of
17584 registering charsets in Vcharset_order_list.
17585 (syms_of_charset): Make the charset `eight-bit' supplementary.
17586
175872008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17588
17589 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17590 operations, to avoid having the difference between pointers
17591 overflow.
17592
175932008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17594
17595 * indent.c (check_display_width): New fun.
17596 (scan_for_column): Use it.
17597
17598 * data.c (syms_of_data): Mark most-positive-fixnum and
17599 most-negative-fixnum as constants.
17600
17601 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17602
17603 * indent.c (scan_for_column): Extract from current_column_1.
17604 Merge with the same code from Fmove_to_column.
17605 (current_column_1, Fmove_to_column): Use it.
17606
176072008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17608
17609 * keymap.c (map_keymap_internal): New fun.
17610 (map_keymap): Use it.
17611 (Fmap_keymap_internal): New fun.
17612 (Fmap_keymap): Remove left-out test from before make_save_value.
17613
17614 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17615
17616 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17617 Use XCAR/XCDR.
17618
17619 * process.h (struct Lisp_Process): Remove filter_multibyte.
17620 * process.c (QCfilter_multibyte): Remove.
17621 (setup_process_coding_systems): Don't use filter_multibyte.
17622 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17623 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17624 (Fset_process_filter_multibyte): Change the coding-system to
17625 approximate the previous behavior.
17626 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17627 coding-system.
17628
17629 * coding.c (decode_coding_object): When not decoding into a buffer,
17630 obey the coding system's preference of (uni|multi)byte.
17631
176322008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17633
17634 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17635 every char is changed and has a different byte-length.
17636 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17637 Fix int -> EMACS_INT.
17638
176392008-03-23 David Hansen <david.hansen@gmx.net>
17640
17641 * dbusbind.c (xd_read_message): Remove extra copying of message
17642 strings. Check for NULL `interface' or `member'.
17643
176442008-03-22 Eli Zaretskii <eliz@gnu.org>
17645
17646 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17647 cFileName a file name that includes `?' characters, use the 8+3
17648 alias in cAlternateFileName instead.
17649
176502008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17651
17652 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17653
176542008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17655
17656 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17657 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17658 work on current_buffer only instead (that was already the case
17659 for some of the code anyway).
17660 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17661 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17662 (SET_PT, SET_PT_BOTH): Adjust.
17663 * intervals.h (set_point, temp_set_point, set_point_both)
17664 (temp_set_point_both): Remove redundant declarations.
17665
176662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17667
17668 * fileio.c (Finsert_file_contents):
17669 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17670 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17671 when buffer != current_buffer anyway.
17672
176732008-03-20 Andreas Schwab <schwab@suse.de>
17674
17675 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17676 as default.
17677
176782008-03-19 Jason Rumney <jasonr@gnu.org>
17679
17680 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17681 (syms_of_w32fns): Initialize them.
17682 (HOURGLASS_ID): New constant.
17683 (x_window_to_frame): Don't check hourglass_window.
17684 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17685 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17686 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17687 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17688 Only change the cursor if hourglass is not active.
17689 (Fx_create_frame): Initialize frame's current_cursor.
17690 (hourglass_atimer): Remove.
17691 (hourglass_started): New function.
17692 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17693 (show_hourglass): Adapt to w32, changing argument to frame.
17694
17695 * w32term.h (struct w32_output): Remove hourglass_window.
17696 Add current_cursor.
17697
17698 * eval.c (call_debugger, Fsignal):
17699 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17700 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17701 (Fexecute_extended_command, cancel_hourglass_unwind):
17702 * minibuf.c (read_minibuf):
17703 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17704
177052008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17706
17707 * window.c (run_funs): New fun.
17708 (run_window_configuration_change_hook): Use it to run the buffer-local
17709 and the global part of the hook.
17710
17711 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17712 (unwind_format_mode_line): Restore selected window.
17713 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17714
177152008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17716
17717 * editfns.c (Fchar_equal): Check they are valid characters.
17718
17719 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17720
177212008-03-17 Andreas Schwab <schwab@suse.de>
17722
17723 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17724 against a charset.
17725
17726 * lisp.h (Fbuffer_list): Declare.
17727
177282008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17729
aac0c6e3
MR
17730 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17731 handlebox_widget is != 0.
17732
177332008-03-16 Juri Linkov <juri@jurta.org>
17734
17735 * callint.c (Fcall_interactively): For interactive code letters
17736 'b' and 'B' put the buffer list into the list of default "future"
17737 values of the minibuffer.
17738
177392008-03-16 Andreas Schwab <schwab@suse.de>
17740
17741 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17742 modifiers.
17743
17744 * regex.c (re_match_2_internal): Correct matching of a charset
17745 against latin-1 characters.
17746
177472008-03-16 Kenichi Handa <handa@m17n.org>
17748
17749 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17750 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17751 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17752 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17753 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17754 CHAR_STRING_ADVANCE.
17755 (produce_chars): Fix for the case that the source and the
17756 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17757 instead of CHAR_STRING_ADVANCE.
17758 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17759 STRING_CHAR_ADVANCE.
17760
177612008-03-15 Andreas Schwab <schwab@suse.de>
17762
17763 * regex.c (re_match_2_internal): Correct matching of eight bit
17764 characters in unibyte strings.
17765
177662008-03-15 Martin Rudalics <rudalics@gmx.at>
17767
17768 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17769 at end of range when it coincides with the end of the buffer.
17770
177712008-03-14 Eli Zaretskii <eliz@gnu.org>
17772
17773 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17774
17775 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17776
177772008-03-14 Jason Rumney <jasonr@gnu.org>
17778
17779 * editfns.c (initial_tz): New variable.
17780 (syms_of_editfns): Initialize it.
17781 (Fset_time_zone_rule): Set it when first called.
17782 Use it when TZSTRING is nil.
17783
17784 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17785 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17786 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17787 (globals_of_w32fns): Initialize them.
17788 (compute_tip_xy): Use them to position tooltips.
17789
177902008-03-14 Glenn Morris <rgm@gnu.org>
17791
17792 * emacs.c (main): Revert previous change.
17793 (standard_args): Revert -internal-script back to -scriptload,
17794 and remove the long-option form.
17795
177962008-03-13 Glenn Morris <rgm@gnu.org>
17797
17798 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17799 Remove option -enable-font-backend.
17800
178012008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17802
17803 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17804
178052008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17806
17807 * xterm.c (x_connection_closed): For GTK: If this is the last
17808 terminal just exit without closing the display.
17809
178102008-03-11 Jason Rumney <jasonr@gnu.org>
17811
17812 * w32font.c (w32font_full_name): Use floor to round.
17813
f0131492 178142008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17815
17816 * sound.c (alsa_configure): Declare vol at beginning of block.
17817
17818 * fontset.c (Ffontset_info): Remove extra semicolon.
17819
178202008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17821
17822 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17823 size of resulting string.
17824
178252008-03-10 Jason Rumney <jasonr@gnu.org>
17826
17827 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17828
178292008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17830
17831 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17832 Don't pretend as if characters with display property haven't been
17833 consumed for string-replacing-string case.
17834
178352008-03-08 Kim F. Storm <storm@cua.dk>
17836
17837 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17838 (get_next_display_element, next_element_from_string)
17839 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17840
178412008-03-08 Andreas Schwab <schwab@suse.de>
17842
17843 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17844
178452008-03-06 Jason Rumney <jasonr@gnu.org>
17846
17847 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17848 when charset not specified. Only translate ANSI to unicode when
17849 font_type is truetype.
17850 (w32font_coverage_ok): New function.
17851 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17852
178532008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17854
17855 * lread.c (Fread_char): Resolve modifiers.
17856 (Fread_char_exclusive): Likewise.
17857
17858 * character.c (char_resolve_modifier_mask): New function.
17859 (char_string): Use char_resolve_modifier_mask.
17860 (Fchar_resolve_modifiers): New function.
17861 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17862 function.
17863
178642008-03-04 Jason Rumney <jasonr@gnu.org>
17865
17866 * makefile.w32-in: Always include w32font.c in the build.
17867 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17868
178692008-03-04 Andreas Schwab <schwab@suse.de>
17870
17871 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17872 (versionclean): Likewise.
17873
178742008-03-04 Juanma Barranquero <lekktu@gmail.com>
17875
17876 * .cvsignore: Add oo.
17877
178782008-03-03 Andreas Schwab <schwab@suse.de>
17879
17880 * coding.c (decode_coding_object): Inhibit gap shrinking while
17881 decoding in place.
17882
178832008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17884
17885 * w32term.c: Remove unused include "gnu.h".
17886 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17887
17888 * gnu.h: Rename to ...
17889 * emacs-icon.h: ... this.
17890 * xterm.c: Use emacs-icon.h instead of gnu.h.
17891 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17892
178932008-03-03 Juanma Barranquero <lekktu@gmail.com>
17894
17895 * w32font.c: Include math.h.
17896
178972008-03-03 Jason Rumney <jasonr@gnu.org>
17898
17899 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17900 Compute options separately.
17901 (w32font_open_internal): Set glyph_idx before caching metrics.
17902
17903 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17904 Define if system headers don't.
17905 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17906 (w32font_encode_char): Don't declare here.
17907
17908 * w32font.c (Quniscribe, QCformat): New symbols.
17909 (syms_of_w32font): Define them.
17910 (w32font_has_char): Indicate uncertainty.
17911 (w32font_encode_char): Encode as glyph point. Make static.
17912 (recompute_cached_metrics): New function.
17913 (w32font_open_internal): Use it. Set font to use glyph points
17914 initially. Set format based on type of font.
17915 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17916 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17917 on it. Set format based on information available here.
17918 (add_font_entity_to_list): Identify backend based on opentype_only.
17919
179202008-03-02 Andreas Schwab <schwab@suse.de>
17921
17922 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17923
17924 * coding.c (decode_coding_big5, produce_chars):
17925 Fix typos in last change.
17926
179272008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17928
17929 * gnu.h: New icon.
17930
179312008-03-02 Kenichi Handa <handa@m17n.org>
17932
17933 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17934 `dos', don't decode '\r' if that is the last in the source.
17935 (decode_coding_utf_16, decode_coding_emacs_mule)
17936 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17937 (decode_coding_raw_text, decode_coding_charset): Likewise.
17938 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17939
179402008-03-01 Jason Rumney <jasonr@gnu.org>
17941
17942 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17943
179442008-03-01 Kim F. Storm <storm@cua.dk>
17945
17946 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17947
179482008-03-01 Jason Rumney <jasonr@gnu.org>
17949
17950 * w32font.c (w32font_full_name): New function.
17951 (w32font_open_internal): Use it.
17952
179532008-03-01 Kim F. Storm <storm@cua.dk>
17954
17955 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17956
179572008-03-01 Jason Rumney <jasonr@gnu.org>
17958
17959 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17960
179612008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17962
17963 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17964 xg_frame_resized when the event is for the edit widget.
17965
17966 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17967
17968 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17969 set_char_size.
17970 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17971 operations on widgets here. Just set frame size if needed.
17972 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17973 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17974 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17975 the whole frame.
17976 (xg_create_tool_bar): Move attachment of the tool bar to
17977 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17978 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17979
179802008-03-01 Jason Rumney <jasonr@gnu.org>
17981
17982 * w32fns.c (w32_msg_pump): Disable debug code.
17983
179842008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17985
17986 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17987
179882008-02-29 Chong Yidong <cyd@stupidchicken.com>
17989
17990 * xdisp.c (next_overlay_string): Don't set
17991 overlay_strings_at_end_processed_p if we're currently reading from
17992 a display string.
17993
179942008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17995
17996 * xdisp.c (get_overlay_strings_1): Fix typo.
17997
179982008-02-29 Chong Yidong <cyd@stupidchicken.com>
17999
18000 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18001
180022008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18003
18004 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18005
18006 * xdisp.c (display_mode_element): Cancel the previous change.
18007 (decode_mode_spec): Likewise.
18008 (handle_auto_composed_prop): Don't make composition if it->string
18009 is a string.
18010
180112008-02-27 Kim F. Storm <storm@cua.dk>
18012
18013 * lisp.h (GLYPH): Change type from int to struct with separate char
18014 and face_id members.
18015 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18016 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18017 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18018 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18019 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18020 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18021 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18022 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18023 handle new Lisp glyph code encoding, either an integer or a cons.
18024
18025 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18026 (GLYPH_ALIAS): Delete.
18027 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18028 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18029 (GLYPH_FROM_CHAR): Replace macro by ...
18030 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18031
18032 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18033 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18034 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18035 (GLYPH_INVALID_P): New macro.
18036 (spec_glyph_lookup_face): Update prototype.
18037
18038 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18039 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18040 new glyph code encoding.
18041 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18042 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18043
18044 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18045 Adapt to new glyph type and new glyph code encoding.
18046
18047 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18048
18049 * indent.c (current_column, current_column_1, Fmove_to_column)
18050 (compute_motion): Adapt to new glyph code encoding.
18051
18052 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18053
180542008-02-27 Chong Yidong <cyd@stupidchicken.com>
18055
18056 * process.c (wait_reading_process_output): Check for window
18057 changes caused by timers.
18058 Suggested by Johan Bockgård.
18059
180602008-02-27 Glenn Morris <rgm@gnu.org>
18061
18062 * emacs.c (USAGE1): Add `--disable-font-backend'.
18063
180642008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18065
18066 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18067 is made to the buffer.
18068
180692008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18070
18071 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18072 (face_at_string_position):
18073 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18074 (face_at_string_position):
18075 * xdisp.c (display_string, next_overlay_change):
18076 * buffer.h (overlays_at):
18077 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18078 Update callers.
18079
180802008-02-26 Chong Yidong <cyd@stupidchicken.com>
18081
18082 * editfns.c (Fformat): Doc fix.
18083
180842008-02-26 Juanma Barranquero <lekktu@gmail.com>
18085
18086 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18087 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18088 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18089
180902008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18091
18092 * buffer.c (Fbuffer_swap_text): New function.
18093 (syms_of_buffer): Defsubr it.
18094
180952008-02-25 Chong Yidong <cyd@stupidchicken.com>
18096
18097 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18098
180992008-02-25 Jason Rumney <jasonr@gnu.org>
18100
18101 * w32font.c (w32font_draw): Draw one character at a time when padding.
18102
181032008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18104
18105 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18106 Handle a nil arg. Use run_window_configuration_change_hook.
18107 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18108 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18109 Use run_window_configuration_change_hook.
18110
181112008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18112
18113 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18114 1-pixel width.
18115
181162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18117
18118 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18119 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18120 if the glyph in the font is zero pixel with.
18121
18122 * dispextern.h (struct glyph_string): New member padding_p.
18123
18124 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18125
18126 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18127
18128 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18129
18130 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18131
18132 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18133
181342008-02-25 Jason Rumney <jasonr@gnu.org>
18135
18136 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18137
181382008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18139
18140 Allow fine-grained image-cache flushing.
18141 * dispextern.h (struct image): Add `dependencies' field.
18142 (clear_image_caches): Change arg to Lisp_Object.
18143 * image.c (make_image): Initialize `dependencies' field.
18144 (clear_image_cache): Change arg to allow fine-grained flushing.
18145 Perform the flush even if image-cache-eviction-delay is nil.
18146 (clear_image_caches): Change arg to Lisp_Object.
18147 (Fclear_image_cache): Expand meaning of the argument.
18148 (mark_image): Mark `dependencies' field.
18149 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18150 (lface_hash): Use XHASH rather than XFASTINT.
18151 (face_at_buffer_position): Fix int -> EMACS_INT position.
18152 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18153 (select_frame_for_redisplay): Remove code duplication.
18154 (redisplay_internal): Adapt arg to call to clear_image_caches.
18155
181562008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18157
18158 * s/vms4-0.h:
18159 * s/vms4-2.h:
18160 * s/vms4-4.h:
18161 * s/vms5-5.h: Remove, unused.
18162
18163 * s/irix5-2.h:
18164 * s/irix6-0.h:
18165 * s/riscos5.h:
18166 * s/mach-bsd4-3.h:
18167 * m/mips4.h: Remove files for obsolete systems.
18168
18169 * Makefile.in:
18170 * filelock.c:
18171 * unexmips.c:
18172 * m/hp9000s300.h:
18173 * m/iris4d.h:
18174 * s/aix3-1.h:
18175 * s/hpux.h:
18176 * s/msdos.h:
18177 * s/usg5-0.h:
18178 * s/usg5-2-2.h:
18179 * s/usg5-2.h:
18180 * s/usg5-3.h: Remove references to obsolete variables.
18181
18182 * s/irix5-0.h: Remove, move all the contents ...
18183 * s/irix6-5.h: ... here. Simplify.
18184 * config.in: Regenerate.
18185
181862008-02-24 Jason Rumney <jasonr@gnu.org>
18187
18188 * w32term.c (x_draw_glyph_string_background): Clear the background
18189 manually when cleartype is in use.
18190 (x_draw_glyph_string_foreground): Draw text transparently when
18191 cleartype is in use.
18192
18193 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18194 a font into it unless we have to.
18195
181962008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18197
18198 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18199 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18200
aac0c6e3
MR
182012008-02-18 Jason Rumney <jasonr@gnu.org>
18202
18203 * w32fns.c (Fw32_shell_execute): Encode parameters.
18204
182052008-02-09 Eli Zaretskii <eliz@gnu.org>
18206
18207 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18208
182092008-02-05 Juanma Barranquero <lekktu@gmail.com>
18210
18211 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18212
182132008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18214
18215 * xterm.c (x_set_offset): Don't change the gravity if
18216 CHANGE_GRAVITY is -1.
18217
182182008-02-23 Chong Yidong <cyd@stupidchicken.com>
18219
18220 * fileio.c (auto_save_error_occurred): New var.
18221 (auto_save_error): Set it.
18222 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18223 error occurred.
18224
182252008-02-23 Eli Zaretskii <eliz@gnu.org>
18226
18227 * w32.c (globals_of_w32): Add initializations for
18228 g_b_init_get_sid_sub_authority and
18229 g_b_init_get_sid_sub_authority_count.
18230
182312008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18232
18233 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18234 (font_parse_xlfd): Use them for sanity check.
18235 (Finternal_set_font_style_table): Make sure the table is bijective.
18236
18237 Consolidate the image_cache to the terminal struct.
18238 * termhooks.h (P_): Remove redundant def.
18239 (struct terminal): New field `image_cache'.
18240 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18241 of FRAME_X_IMAGE_CACHE.
18242 * xterm.h (struct x_display_info): Remove image_cache field.
18243 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18244 * w32term.h (struct w32_display_info): Remove image_cache field.
18245 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18246 * macterm.h (struct mac_display_info): Remove image_cache field.
18247 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18248 * xterm.c (x_term_init):
18249 * w32term.c (w32_term_init):
18250 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18251 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18252 Remove declarations.
18253 (clear_image_caches, mark_image_cache): New declarations.
18254 * xfaces.c (clear_face_cache):
18255 * xdisp.c (redisplay_internal): Use clear_image_caches.
18256 * image.c (clear_image_cache): Don't check that a frame is on
18257 a window-system before checking if it shares the same cache.
18258 (clear_image_caches): New function.
18259 (Fclear_image_cache): Use it.
18260 (mark_image): Move from allo.c.
18261 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18262 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18263 (mark_object): Don't call mark_image_cache for frames.
18264 (mark_terminals): Call mark_image_cache.
18265
18266 * lisp.h (Fdelete_terminal): Declare.
18267
18268 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18269 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18270 wrong_type_argument.
18271
182722008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18273
18274 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18275 malayalam.el, and tamil.el. Add sinhala.el.
18276
182772008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18278
18279 * xterm.c (x_connection_closed): Consolidate identical tests.
18280 (x_delete_terminal): Don't crash if called via x_connection_closed.
18281
182822008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18283
18284 * xdisp.c (decode_mode_spec): New arg string.
18285 (display_mode_element): Adjust for the above change.
18286
182872008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18288
18289 * callint.c (Fcall_interactively): Use AREF.
18290
182912008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18292
18293 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18294
182952008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18296
18297 * xfns.c (Fx_show_tip): Set string to " " if empty.
18298
182992008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18300
18301 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18302 with Qt.
18303
183042008-02-17 Kenichi Handa <handa@m17n.org>
18305
18306 * ftfont.c (ftfont_shape): Return Lispy number.
18307
18308 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18309 for GCs.
18310 (Finternal_set_font_selection_order): Call font_update_sort_order
18311 only when enable_font_backend is set.
18312 (realize_x_face): Set face->font_info to that of default face only
18313 when enable_font_backend is set.
18314
18315 * xdisp.c (handle_composition_prop): Set it->c to the fist
18316 character of the composed region.
18317 (fill_composite_glyph_string): Set base_face->font_info to
18318 s->font_info. Get a face for ascii from base_face->ascii_face.
18319 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18320 with a face already decided.
18321 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18322 non-negative.
18323 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18324 call font_prepare_composition unconditionally.
18325
18326 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18327
18328 * xterm.h (struct x_display_info): New member font.
18329
18330 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18331 (x_set_mouse_face_gc, x_new_font): Likewise.
18332 (x_term_init): Setup display_info->font.
18333 (x_delete_terminal): Free display_info->font.
18334
18335 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18336
18337 * ftxfont.c (ftxfont_default_fid): Delete it.
18338 (ftxfont_open): Set xfont->fid to 0.
18339 (ftxfont_end_for_frame): Clear data specific to the frame and the
18340 font-driver.
18341
18342 * xftfont.c (xftfont_default_fid): Delete it.
18343 (xftfont_open): Set xfont->fid to 0.
18344
18345 * fontset.c (FONTSET_OBJLIST): New macro.
18346 (fontset_find_font): Update font-object list of the fontset.
18347 (free_realized_fontset): New function.
18348 (free_face_fontset): Call free_realized_fontset.
18349 (Ffont_info): Call font_close_object only when enable_font_backend
18350 is set.
18351
18352 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18353 [HAVE_NTGUI]: Include w32term.h.
18354 [MAC_OS]: Include macterm.ch.
18355 (font_otf_ValueRecord): Use make_number.
18356 (font_finish_cache): Fix handling of reference count.
18357 (font_clear_cache): Update num_fonts.
18358 (font_open_entity): Update smallest_char_width and
18359 smallest_font_height of the frame.
18360 (font_close_object): Update num_fonts.
18361 (Fclear_font_cache): Fix finding the target cache data.
18362
183632008-02-16 Glenn Morris <rgm@gnu.org>
18364
18365 * fontset.c (Finternal_char_font): Fix compilation warning.
18366
183672008-02-16 Eli Zaretskii <eliz@gnu.org>
18368
18369 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18370 instead of char arrays. Enlarge the size of array passed to
18371 get_token_information.
18372
18373 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18374 warnings.
18375
183762008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18377
18378 * .gdbinit: Don't set `args', it breaks gdb --args.
18379
183802008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18381
18382 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18383 within a narrowed buffer.
18384
183852008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18386
18387 * coding.c (decode_coding_object, encode_coding_object):
18388 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18389
183902008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18391
18392 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18393 hardcoding 1.
18394 (detect_coding_system):
18395 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18396 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18397 * insdel.c (insert_from_gap):
18398 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18399 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18400 (string_to_multibyte):
18401 * character.c (chars_in_text, multibyte_chars_in_text):
18402 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18403
18404 * character.h (FETCH_STRING_CHAR_ADVANCE)
18405 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18406 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18407 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18408
18409 * casefiddle.c (casify_region): Only call after-change and composition
18410 functions on the part of the region that was changed.
18411
18412 * keyboard.c (read_avail_input):
18413 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18414
184152008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18416
18417 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18418 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18419
184202008-02-11 Juanma Barranquero <lekktu@gmail.com>
18421
18422 * w32menu.c (push_submenu_start, push_submenu_end)
18423 (push_left_right_boundary, push_menu_pane, push_menu_item):
18424 * keyboard.c (read_key_sequence): Don't pass args with side effects
18425 to AREF, it fails when compiling with -DENABLE_CHECKING.
18426
184272008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18428
18429 * Makefile.in (${lispsource}international/charprop.el):
18430 Delete this target.
18431
18432 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18433 emacs-unicode-2.
18434
184352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18436
18437 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18438
184392008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18440
18441 * frame.c (Qnoelisp): New symbol.
18442 (syms_of_frame): Initialize it.
18443 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18444 harmless Elisp code, from a strong `force' from x_connection_closed.
18445 * frame.h (Qnoelisp): Declare.
18446 * xterm.c (x_connection_closed): Pass `noelisp'.
18447
18448 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18449 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18450 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18451 rather than `int' for the type of `type'.
18452
184532008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18454
18455 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18456
18457 * Makefile.in (GNUC): Remove support for gcc-1.x.
18458
184592008-02-10 Richard Stallman <rms@gnu.org>
18460
18461 * lisp.h (ASET): Use AREF, not ASLOT.
18462
184632008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18464
18465 * lisp.h (ASET): Check bounds.
18466
184672008-02-10 Glenn Morris <rgm@gnu.org>
18468
18469 * buffer.c (mode-name): Doc fix.
18470
184712008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18472
18473 * Makefile.in:
18474 * emacs.c:
18475 * gmalloc.c:
18476 * keyboard.c:
18477 * lisp.h:
18478 * m/ibm370aix.h:
18479 * process.c:
18480 * regex.c:
18481 * s/hpux.h:
18482 * sysdep.c:
18483 * sysselect.h:
18484 * systty.h:
18485 * unexec.c:
18486 * w32term.c:
18487 * xsmfns.c:
18488 * xterm.c: Remove code that deals with obsolete variables.
18489
18490 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18491
18492 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18493 nothing else needs it anymore.
18494
184952008-02-09 Eli Zaretskii <eliz@gnu.org>
18496
18497 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18498 instead of unibyte_char_to_multibyte.
18499
185002008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18501
18502 * s/gnu-linux.h: Remove commented out code.
18503
18504 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18505
18506 * Makefile.in: Update what RMS says about using autoconf.
18507 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18508 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18509 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18510 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18511
185122008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18513
18514 * keymap.c (Fkey_description): Move side effect outside of macro call.
18515
18516 * xfaces.c (Finternal_make_lisp_face):
18517 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18518
18519 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18520 (syms_of_fontset): Use ASET.
18521
18522 * fns.c (concat): Move side effect outside of macro call.
18523 (hash_clear): Use ASET.
18524
185252008-02-08 Richard Stallman <rms@gnu.org>
18526
18527 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18528 If FORCE, and frame has a surrogate minibuffer for another frame,
18529 delete the other frame first.
18530
185312008-02-07 Timo Savola <timo.savola@iki.fi>
18532
18533 * xterm.c (x_detect_focus_change): Handle embed client message.
18534 (handle_one_xevent): Ditto.
18535 (handle_one_xevent): If embedded and we get a button press/release,
18536 request focus.
18537 (xembed_set_info, xembed_send_message): New functions.
18538 (x_make_frame_visible): Call xembed_set_info if embedded.
18539 (x_make_frame_invisible): Call xembed_set_info if embedded.
18540 (x_term_init): Initialize Xatom_XEMBED.
18541 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18542 (x_iconify_frame): Ditto.
18543
18544 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18545 (enum xembed_info, enum xembed_message, enum xembed_focus)
18546 (enum xembed_modifier, enum xembed_accelerator): New.
18547 (xembed_set_info, xembed_send_message): Declare.
18548 (FRAME_X_EMBEDDED_P): New.
18549
18550 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18551 gtk_plug_new.
18552
18553 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18554 window ID of a frame.
18555 (x_window): Reparent frame if embedded.
18556 (Fx_create_frame): Don't set border width if embedded.
18557
18558 * emacs.c (USAGE3): Add --parent-id.
18559 (standard_args): Ditto.
18560
185612008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18562
18563 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18564
185652008-02-07 Jim Meyering <meyering@redhat.com>
18566
18567 Use "do...while (0)", not "if (1)...else" in macro definitions.
18568 The latter provokes a warning from gcc about the empty else, when
18569 followed by ";". Also, without that trailing semicolon, it would
18570 silently swallow up any following statement.
18571 * syntax.h (SETUP_SYNTAX_TABLE)
18572 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18573 * buffer.h (DECODE_POSITION): Likewise.
18574 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18575 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18576 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18577 (FETCH_CHAR_ADVANCE): Likewise.
18578 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18579
185802008-02-07 Jim Meyering <meyering@redhat.com>
18581
18582 * lread.c [lint]: Don't include <sys/inode.h>.
18583
185842008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18585
18586 * xselect.c (x_handle_dnd_message):
18587 * xmenu.c (digest_single_submenu, xmenu_show):
18588 * xdisp.c (with_echo_area_buffer_unwind_data)
18589 (format_mode_line_unwind_data, unwind_format_mode_line)
18590 (display_menu_bar):
18591 * eval.c (Ffetch_bytecode):
18592 * doc.c (store_function_docstring):
18593 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18594 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18595 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18596
185972008-02-07 Kenichi Handa <handa@m17n.org>
18598
18599 * ftxfont.c (ftxfont_open): Don't set
18600 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18601
18602 * ftfont.c (ftfont_open): Fix previous change.
18603
186042008-02-06 Jason Rumney <jasonr@gnu.org>
18605
18606 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18607 Use cached metrics for ASCII characters.
18608 (w32font_open_internal): Don't set font's owning_frame.
18609 Cache metrics for ASCII characters.
18610
18611 * w32font.h (struct w32font_info): Add ascii_metrics.
18612 Remove owning_frame.
18613
186142008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18615
18616 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18617 to negative value.
18618
18619 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18620
18621 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18622
18623 * charset.c (syms_of_charset): Set QCtest and Qeq.
18624
186252008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18626
18627 * process.c (Fstart_process):
18628 * callproc.c (Fcall_process): Handle the case where
18629 Funhandled_file_name_directory returns nil.
18630
18631 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18632 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18633 * font.c (check_gstring): Use them and AREF to access the vector before
18634 we know it's really a gstring.
18635 (Ffont_shape_text): Fix typo.
46e722a9 18636 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18637
18638 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18639 Declare.
18640
18641 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18642
186432008-02-05 Jason Rumney <jasonr@gnu.org>
18644
18645 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18646 Set smallest_font_height and smallest_char_width in display info.
18647
186482008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18649
18650 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18651
186522008-02-05 Miles Bader <miles@gnu.org>
18653
18654 * xfaces.c (get_lface_attributes, merge_named_face)
18655 (lookup_named_face, lookup_derived_face, realize_named_face):
18656 Revert 2008-02-01 change by cyd@stupidchicken.com.
18657
186582008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18659
18660 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18661 fallback fonts.
18662 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18663
186642008-02-04 Jason Rumney <jasonr@gnu.org>
18665
18666 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18667 set full_name.
18668 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18669
186702008-02-03 Jason Rumney <jasonr@gnu.org>
18671
18672 * makefile.w32-in (OBJ1): Include font.o here.
18673 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18674
186752008-02-02 Jason Rumney <jasonr@gnu.org>
18676
18677 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18678
186792008-02-01 Jason Rumney <jasonr@gnu.org>
18680
18681 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18682
18683 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18684
186852008-02-01 Andreas Schwab <schwab@suse.de>
18686
18687 * Makefile.in (shortlisp, lisp): Update for rename of
18688 ../lisp/language/myanmar.el.
18689
186902008-02-01 Chong Yidong <cyd@stupidchicken.com>
18691
18692 * xfaces.c (get_lface_attributes): Delete function.
18693 (merge_named_face, lookup_named_face, lookup_derived_face)
18694 (realize_named_face): Call lface_from_face_name directly, and use
18695 the fact that merge_face_vectors does not alter its FROM argument.
18696
186972008-02-01 Jason Rumney <jasonr@gnu.org>
18698
18699 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18700 input in the default locale. Handle non-Unicode multibyte input.
18701
187022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18703
18704 * fontset.c (reorder_font_vector): Exclude nil elements from the
18705 font group. Don't try multiple fonts.
18706 (fontset_font): Adjust for the above change.
18707 (Finternal_char_font): Return nil if the found font doesn't
18708 contain the character ch.
18709
18710 * Makefile.in (lisp, shortlisp): Add cham.el.
18711
187122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18713
18714 * font.h (FONTP): Make it return 1 also for a font-object.
18715
18716 * .gdbinit (xfontset): New function.
18717
18718 * font.c (font_find_for_lface): Check if the character C is
18719 supported or not only for the first font.
18720
18721 * fontset.c (reorder_font_vector): Fix typo.
18722 (fontset_find_font): Don't add a font-spec specifying a script.
18723 Use 0 (not Qt) for the indication of empty font-group. Change the
18724 format of RFONT-DEF. Return Qt if no font in the font-group
18725 support the character.
18726 (fontset_font): Adjust for the above change. If no font was
18727 found the character, remember that.
18728 (face_for_char): Adjust for the change of RFONT-DEF.
18729 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18730 no font for the target.
18731 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18732
187332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18734
18735 * font.c (font_load_for_face): Handle the case that the font in
18736 face->lface is a string.
18737
187382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18739
18740 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18741
187422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18743
18744 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18745 Fix previous change. If the frame is not on a window system,
18746 signal an error.
18747
187482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18749
18750 * coding.c (decode_coding_object, encode_coding_object): Adjust
18751 marker positions after conversion.
18752
18753 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18754
187552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18756
18757 * font.c (font_find_for_lface): Fix the handling of the return
18758 value of font_has_char.
18759 (Ffont_shape_text): Fix previous change.
18760
18761 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18762 (fontset_ref_and_range): Delete it.
18763 (fontset_find_font): Call char_table_ref_and_range instead of
18764 FONTSET_REF_AND_RANGE.
18765 (make_fontset): Don't setup font groups of Latin here.
18766 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18767 (new_fontset_from_font): Make the specified font the default for
18768 all Latin characters.
18769
187702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18771
18772 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18773 is on a window system before accessing the fontset of the frame.
18774
187752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18776
18777 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18778
18779 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18780 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18781
18782 * font.c (Ffont_shape_text): If the font driver doesn't have a
18783 shaper function, make zero-width glyphs to have at least one-pixel
18784 width. Fix setting of `to' field of glyphs.
18785
187862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18787
18788 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18789 glyphs.
18790
18791 * font.h (struct font_driver): Improve docstring of member `shape'.
18792
187932008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * composite.c (syms_of_composite): Fix docstring of
18796 auto-composition-function.
18797
18798 * font.h (LGLYPH_SIZE): New macro.
18799
18800 * font.c (Ffont_fill_gstring): Stop filling when a character not
18801 supported by the font is found.
18802 (Ffont_shape_text): When a shape callback function returns nil,
18803 try at most two more times with larger gstring.
18804 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18805
18806 * xdisp.c (handle_auto_composed_prop): Change the argument to
18807 auto-composition-function.
18808
18809 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18810 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18811 Lispy glyph and store it in the lgstring.
18812
18813 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18814
18815 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18816
188172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18818
18819 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18820
18821 * fontset.c (Vfont_encoding_charset_alist): New variable.
18822 (syms_of_fontset): DEFVAR it.
18823 (reorder_font_vector, fontset_find_font): Optimize for the case of
18824 no need of reordering.
18825 (face_for_char): Map the charset property by
18826 Vfont_encoding_charset_alist.
18827
188282008-02-01 Jason Rumney <jasonr@gnu.org>
18829
18830 * w32font.c (logfonts_match): Don't check adstyle here.
18831 (font_matches_spec): Check here against physical font instead.
18832 (add_font_entity_to_list): Avoid some substitutions.
18833
18834 * font.c (font_parse_fcname): Default weight and slant to normal.
18835 (font_score): Prefer normal fonts if weight or slant unspecified.
18836 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18837 match freetype scores.
18838
188392008-02-01 Jason Rumney <jasonr@gnu.org>
18840
18841 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18842 font, as it may have been deleted.
18843 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18844 most common hyphenless variation.
18845 (logfonts_match): Check generic family.
18846 (font_matches_spec): Don't check generic family here.
18847 (fill_in_logfont): Set generic family based on adstyle.
18848
18849 * w32font.h (w32font_get_cache): Update declaration.
18850
188512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18852
18853 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18854
18855 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18856 If none of the new drivers are available, call font_update_drivers
18857 with the old drivers.
18858
18859 * w32font.c (w32font_get_cache): Adjust the argument type.
18860
18861 * xfont.c (xfont_get_cache): Adjust the argument type.
18862
18863 * font.h (struct font_driver): Change argument type of get_cache.
18864
18865 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18866
18867 * font.c (Ffont_get): Fix arguments to Fassoc.
18868 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18869 (font_clear_cache): New function.
18870 (font_list_entities, font_matching_entity): Use font_get_cache.
18871 (font_update_drivers): Call font_clear_cache when finishing a driver.
18872
18873 * fontset.c (fontset_find_font): Fix previous change.
18874
188752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18876
18877 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18878 dpyinfo->font_table.
18879 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18880 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18881
18882 * font.c (font_at): Handle the case that the arg C is negative.
18883 Handle the unibyte case.
18884 (Ffont_at): Call font_at with the arg C -1.
18885
18886 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18887 the position here, and call font_at with the arg C -1.
18888 Don't check the range of the existing composition at the point.
18889
188902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18891
18892 * fontset.c (fontset_add): New args charset_id and family.
18893 Change caller.
18894 (load_font_get_repertory, fontset_find_font): Assume that
18895 font_spec is always a font-spec object.
18896 (Fset_fontset_font): Always store a font-spec object in a fontset.
18897
18898 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18899 instead of get_property_and_range.
18900
189012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18902
18903 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18904 (xftfont_open): Don't keep locking face.
18905 (xftfont_close): Don't unlock face.
18906 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18907
18908 * fontset.c (fontset_find_font): Don't prefer a font of
18909 supplementary charset.
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18914 script, langsys_tag to langsys, new member script.
18915 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18916 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18917 listing to the script specified in that property. Fix arg to
18918 OTF_check_features.
18919
189202008-02-01 Jason Rumney <jasonr@gnu.org>
18921
18922 * w32font.h: New file.
18923
18924 * w32font.c: Include it.
18925 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18926 (w32font_open): Set owning_frame.
18927 (w32font_text_extents): Use owning_frame.
18928 (struct font_callback_data): Add opentype_only field.
18929 (add_font_entity_to_list): Use it to filter fonts.
18930 Don't check against full name.
18931 (w32font_list_internal): New function.
18932 (w32font_list): Use it.
18933 (w32font_match_internal): New function.
18934 (w32font_match): Use it.
18935 (w32font_open_internal): New function.
18936 (w32font_open): Use it.
18937 (w32font_get_cache, w32font_close, w32font_has_char)
18938 (w32font_encode_char, w32font_text_extents, w32font_draw):
18939 Make non-static.
18940
18941 * makefile.w32-in (w32font.o): Depend on w32font.h.
18942
189432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18944
18945 * charset.c (Fdefine_charset_internal): Record a supplementary
18946 charset at the tail of Vcharset_order_list.
18947
18948 * font.c (Ffont_shape_text): Fix the return value.
18949
18950 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18951
18952 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18953
189542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18955
18956 * ftfont.c (struct OpenTypeSpec): New struct.
18957 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18958 (ftfont_get_open_type_spec): New function.
18959 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18960
18961 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18962
189632008-02-01 Jason Rumney <jasonr@gnu.org>
18964
18965 * w32font.c (add_font_entity_to_list): Compare only the beginning
18966 of full name.
18967
189682008-02-01 Kenichi Handa <handa@m17n.org>
18969
18970 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18971 Never return HANDLED_RECOMPUTE_PROPS.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * font.c (font_gstring_produce): Delete it.
18976
18977 * composite.h (COMPOSITION_METHOD):
18978 Handle COMPOSITION_WITH_GLYPH_STRING.
18979
189802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18981
18982 * xfont.c (Qx): Delete.
18983 (syms_of_xfont): Don't initialize Qx.
18984
18985 * composite.h (enum composition_method):
18986 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18987
189882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18989
18990 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18991 (choose_face_font): Accept new form of font-spec.
18992
18993 * frame.h (font_driver_list): Declare it unconditionally.
18994 (struct frame): Define members font_driver_list and font_data_list
18995 unconditionally.
18996
18997 * fontset.c: Include "font.h" unconditionally.
18998 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18999 (Fset_fontset_font): Accept a font-spec object.
19000
19001 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19002 PIXEL_SIZE part a wild card.
19003
19004 * dispextern.h (struct glyph_string): Define members clip and
19005 num_clips unconditionally.
19006 (struct face): Define members font_info and extra unconditionally.
19007
19008 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19009 ftfont_info only when HAVE_LIBOTF is defined.
19010
190112008-02-01 Andreas Schwab <schwab@suse.de>
19012
19013 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19014 and end.
19015
190162008-02-01 Jason Rumney <jasonr@gnu.org>
19017
19018 * w32font.c (w32font_driver): Add new fields.
19019
190202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19021
19022 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19023 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19024 (LIBES): Add @M17N_FLT_CFLAGS@.
19025
19026 * composite.c (compose_text): Don't treat the new style
19027 composition specially.
19028
19029 * emacs.c (main): Call syms_of_font unconditionally.
19030
19031 * font.h (FONT_ENTITY_NOT_LOADABLE)
19032 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19033 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19034 (struct font_driver): New member shape.
19035 (font_registry_charsets): Extern it.
19036 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19037 (font_otf_capability, font_drive_otf): Delete their externs.
19038
19039 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19040 (font_charset_alist, font_registry_charsets): Move from xfont.c
19041 and rename.
19042 (font_prop_validate_otf): New function.
19043 (font_property_table): Register it for QCotf.
19044 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19045 (font_drive_otf): Delete.
19046 (font_prepare_composition): New arg F. Adjust for the change of
19047 lispy gstring.
19048 (font_find_for_lface): New arg C.
19049 (font_load_for_face): Adjust for the change of font_find_for_lface.
19050 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19051 lispy gstring.
19052 (Ffont_shape_text): New function.
19053 (Fopen_font): If the font size is not given, use 12-pixel.
19054 (Ffont_at): New arg STRING.
19055 (syms_of_font): Initalize font_charset_alist.
19056 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19057 conditionally.
19058
19059 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19060 fonts of the same font-spec. Change the format of RFONT-DEF.
19061 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19062 Adjust for the change of RFONT-DEF.
19063 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19064
19065 * ftfont.h: New file.
19066
19067 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19068 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19069 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19070 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19071 font_otf_capability and font_drive_otf, set ftfont_shape.
19072 (ftfont_list): Adjust for the change of :otf property value.
19073 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19074 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19075 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19076 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19077 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19078 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19079
19080 * w32term.c (x_draw_composite_glyph_string_foreground):
19081 Adjust for the change of lispy gstring.
19082
19083 * xdisp.c (handle_composition_prop): Adjust for the change of
19084 lispy gstring. Call a function for auto-composition with the
19085 third arg it->window.
19086 (fill_composite_glyph_string): Adjust for the change of lispy string.
19087 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19088
19089 * xfaces.c (set_font_frame_param): Adjust for the change of
19090 font_find_for_lface.
19091
19092 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19093 (xfont_registry_charsets): Likewise. Change caller.
19094 (syms_of_xfont): Don't handle x_font_charset_alist.
19095
19096 * xftfont.c: Include "ftfont.h".
19097 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19098 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19099 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19100 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19101 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19102 Set xftfont_driver.shape to xftfont_shape.
19103
19104 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19105 the change of lispy gstring.
19106
191072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19108
19109 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19110
191112008-02-01 Jason Rumney <jasonr@gnu.org>
19112
19113 * w32font.c (w32font_draw): Fill background manually.
19114
191152008-02-01 Jason Rumney <jasonr@gnu.org>
19116
19117 * font.c (Qfontp): Remove unused symbol.
19118 (QCantialias): New symbol.
19119 (syms_of_font): Define it.
19120 (font_property_table): Set a validator for QCantialias.
19121
19122 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19123 Define if not already.
19124 (QCfamily): Share with xfaces.c.
19125 (Qstandard, Qsubpixel, Qnatural): New symbols.
19126 (syms_of_w32font): Define them. Don't define QCfamily here.
19127 (w32_antialias_type, lispy_antialias_type): New functions.
19128 (w32_enumfont_pattern_entity): New arg requested_font.
19129 Set antialias parameter if non-default was requested.
19130 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19131
191322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19133
19134 * lread.c (read1): Undo the previous change.
19135
191362008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19137
19138 * frame.c (Fdelete_frame): Call font_update_drivers only when
19139 USE_FONT_BACKEND is defined.
19140
191412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19142
19143 * font.h (struct font_bitmap): New member bits_per_pixel.
19144 (struct font_driver): New members start_for_frame and end_for_frame.
19145 (struct font_data_list): New struct.
19146 (font_put_frame_data, font_get_frame_data): Extern them.
19147
19148 * frame.h (struct frame): New member font_data_list.
19149
19150 * font.c (font_update_drivers): Call driver->start_for_frame and
19151 driver->end_for_frame at proper timings.
19152 (font_put_frame_data, font_get_frame_data): New functions.
19153 (Ffont_spec): Add usage in the docstring.
19154
19155 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19156 (Fdelete_frame): Call font_update_drivers.
19157
19158 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19159 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19160 (xftfont_get_xft_draw): New function.
19161 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19162 (xftfont_end_for_frame): New function.
19163 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19164
19165 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19166 Change argument. Cache GCs in the per-frame data.
19167 (struct ftxfont_frame_data): New struct.
19168 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19169 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19170 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19171 (ftxfont_end_for_frame): New function.
19172 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19173
19174 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19175
191762008-02-01 Kenichi Handa <handa@m17n.org>
19177
19178 * xselect.c (Vselection_coding_system)
19179 (Vnext_selection_coding_system): Delete them.
19180 (syms_of_xselect): Don't declare selection-coding-system and
19181 next-selection-coding-system. They are declared in select.el.
19182
191832008-02-01 Jason Rumney <jasonr@gnu.org>
19184
19185 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19186
19187 * w32fns.c: Include imm.h.
19188 (get_composition_string_fn, get_ime_context_fn): New optional
19189 system functions.
19190 (globals_of_w32fns): Load them from imm32.dll.
19191 (ignore_ime_char): New flag.
19192 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19193 WM_IME_ENDCOMPOSITION messages.
19194
19195 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19196 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19197
191982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19199
19200 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19201 (READCHAR_REPORT_MULTIBYTE): New macro.
19202 (readchar): New 2nd arg MULTIBYTE.
19203 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19204 Make symbol's name multibyte according to the multibyteness of the
19205 source.
19206
192072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19208
19209 * xfaces.c (face_for_overlay_string): Call lookup_face with
19210 correct arguments (fix of synching with the trunk).
19211
192122008-02-01 Kenichi Handa <handa@m17n.org>
19213
19214 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19215 (font_prop_validate_non_neg, font_prop_validate_spacing):
19216 Delete argument prop_index.
19217 (font_property_table): Change arguments to validater. Change Callers.
19218 (font_lispy_object): Delete.
19219 (font_at): Use font_find_object instead fo font_lispy_object.
19220
192212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19222
19223 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19224 and file names.
19225
192262008-02-01 Jason Rumney <jasonr@gnu.org>
19227
19228 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19229 (font_matches_spec): Remove debug output.
19230 (add_font_entity_to_list): Avoid using substituted fonts.
19231
192322008-02-01 Jason Rumney <jasonr@gnu.org>
19233
19234 * doc.c (Fsnarf_documentation):
19235 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19236
192372008-02-01 Miles Bader <miles@gnu.org>
19238
19239 * dispextern.h (struct glyph_row): Only define "clip" field if
19240 HAVE_WINDOW_SYSTEM is defined.
19241
192422008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19243
19244 Fix up multi-tty merge.
19245
19246 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19247 and indentation.
19248
19249 * xfaces.c (free_realized_face, clear_face_gcs):
19250 Include font_done_for_face in the input_blocked section, just in case.
19251
19252 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19253 (get_char_face_and_encoding): Undo last change and remove the *other*
19254 duplicate definition (i.e. keep the one that's better scoped and that
19255 includes code for the font-backend).
19256
19257 * terminal.c (create_terminal): Default keyboard_coding to
19258 `no-conversion' and terminal_coding to `undecided'.
19259
19260 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19261
19262 * fontset.c (free_realized_fontsets): Check that the table entry does
19263 contain a fontset before trying to compare it to `base'.
19264
19265 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19266 syms_of_charset, and syms_of_coding earlier because init_window_once
19267 now needs Vcoding_system_hash_table to be setup.
19268
19269 * coding.h (default_buffer_file_coding): Remove.
19270
19271 * coding.c (default_buffer_file_coding): Remove.
19272 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19273 than ->symbol, and use the terminal-local coding system.
19274 (syms_of_coding): Don't setup the coding-systems that are not
19275 terminal-local.
19276 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19277
19278 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19279 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19280
19281 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19282 in chartab.c and were re-added here by mistake.
19283 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19284
19285 * doc.c (Fsnarf_documentation):
19286 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19287 src to etc.
19288
19289 * ChangeLog.10: Add mistakenly removed entry.
19290
192912008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19292
19293 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19294
192952008-02-01 Miles Bader <miles@gnu.org>
19296
19297 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19298 Add extra args to FACE_FOR_CHAR.
19299
193002008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19303 in sequence.
19304
19305 * chartab.c (map_sub_char_table, map_char_table): If the range
19306 contains just one character, call the function with that character
19307 even if the depth is not 3.
19308
193092008-02-01 Jason Rumney <jasonr@gnu.org>
19310
19311 * w32font.c (w32font_text_extents): Calculate metrics for the
19312 whole string.
19313
193142008-02-01 Jason Rumney <jasonr@gnu.org>
19315
19316 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19317
193182008-02-01 Jason Rumney <jasonr@gnu.org>
19319
19320 * w32term.c (x_set_glyph_string_clipping): Use
19321 get_glyph_string_clip_rects.
19322 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19323 Adjust for the change of struct glyph_string.
19324
19325 * w32font.c (w32font_draw): Do clipping here.
19326
193272008-02-01 Kenichi Handa <handa@m17n.org>
19328
19329 * xftfont.c (xftfont_draw): Adjust for the change of struct
19330 glyph_string.
19331
19332 * xterm.c (x_set_glyph_string_clipping): Use
19333 get_glyph_string_clip_rects.
19334 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19335 Adjust for the change of struct glyph_string.
19336
19337 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19338 the resulting clip(s}.
19339 (expose_overlaps): Add arg r. Change callers. Set it to
19340 row->clip temporarily.
19341 (expose_window): Redraw rows overlapping the exposed area.
19342
19343 * dispextern.h (struct glyph_row): New member clip.
19344 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19345 clip_height, new member clip, and num_clips.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * data.c (Fchar_or_string_p): Fix docstring.
19350
193512008-02-01 Kenichi Handa <handa@m17n.org>
19352
19353 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19354 create a temporary XftDraw object.
19355
193562008-02-01 Kenichi Handa <handa@m17n.org>
19357
19358 * font.c (Ffontp): Fix docstring.
19359
19360 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19361 strong evidence of ISO-2022.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19366 SYNTAX_ENTRY_FOLLOW_PARENT.
19367
193682008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19369
19370 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19371 its type.
19372 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19373 Update to the new type of weak_hash_tables and next_weak.
19374
19375 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19376 a plain C pointer to Lisp_Hash_Table.
19377
19378 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19379 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19380 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19381 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19382 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19383 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19384 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19385 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19386 (GC_EQ): Remove since they've been identical to their non-GC_
19387 alter-egos ever since the markbit was eradicated.
19388
19389 * alloc.c:
19390 * buffer.c:
19391 * buffer.h:
19392 * data.c:
19393 * fileio.c:
19394 * filelock.c:
19395 * fns.c:
19396 * frame.h:
19397 * lisp.h:
19398 * macterm.c:
19399 * print.c:
19400 * process.c:
19401 * w32fns.c:
19402 * w32menu.c:
19403 * w32term.c:
19404 * xfns.c:
19405 * xmenu.c:
19406 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19407
194082008-02-01 Kenichi Handa <handa@m17n.org>
19409
19410 * chartab.c (map_sub_char_table): Make it work for the top-level
19411 char-table. Fix handling of parent char-table.
19412 (map_char_table): Adjust for the above change.
19413
194142008-02-01 Jason Rumney <jasonr@gnu.org>
19415
19416 * w32font.c (Qgdi): Rename from Qw32.
19417
194182008-02-01 Jason Rumney <jasonr@gnu.org>
19419
19420 * w32bdf.c (get_quoted_string): Make function static.
19421
194222008-02-01 Kenichi Handa <handa@m17n.org>
19423
19424 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19425 bigger ascent and descent than those of the font, use them as
19426 font's ascent and descent.
19427
194282008-02-01 Kenichi Handa <handa@m17n.org>
19429
19430 * Makefile.in (${lispsource}international/charprop.el): Move this
19431 target within "#ifdef HAVE_UNIDATA" and "#endif".
19432
194332008-02-01 Kenichi Handa <handa@m17n.org>
19434
19435 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19436 (shortlisp): Add ../lisp/language/tai-viet.el.
19437
194382008-02-01 Ulrich Mueller <ulm@gentoo.org>
19439
19440 * Makefile.in (${lispsource}international/charprop.el): Depend on
19441 temacs${EXEEXT}.
19442
194432008-02-01 Jason Rumney <jasonr@gnu.org>
19444
19445 * w32font.c (w32font_close): Delete the GDI font object.
19446
19447 * w32menu.c: Include character.h.
19448
19449 * w32proc.c: Likewise.
19450
19451 * w32select.c: Likewise.
19452
19453 * makefile.w32-in (w32proc.o): Depend on character.h.
19454
194552008-02-01 Jason Rumney <jasonr@gnu.org>
19456
19457 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19458
19459 * w32menu.c (syms_of_w32menu): Likewise.
19460
19461 * w32proc.c (syms_of_ntproc): Likewise.
19462
19463 * w32select.c (syms_of_w32select): Likewise.
19464
19465 * w32term.c (syms_of_w32term): Likewise.
19466
194672008-02-01 Jason Rumney <jasonr@gnu.org>
19468
19469 * w32font.c (w32font_draw): Delete brush after using it.
19470
194712008-02-01 Jason Rumney <jasonr@gnu.org>
19472
19473 * w32font.c (w32font_open): Don't set font_idx.
19474 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19475 to font settings.
19476 (w32font_draw): Fill background explicitly.
19477
194782008-02-01 Jason Rumney <jasonr@gnu.org>
19479
19480 * w32term.c (w32_initialize): Don't call w32font_initialize.
19481
19482 * w32font.c (w32font_info): Remove subranges.
19483 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19484 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19485 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19486 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19487 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19488 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19489 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19490 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19491 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19492 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19493 New symbols.
19494 (font_callback_data): New struct.
19495 (w32font_list, w32font_match): Use it.
19496 (w32font_open): Don't populate subranges.
19497 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19498 (w32font_encode_char): Always return unicode code-point as-is.
19499 (w32font_text_extents): Supply a transformation matrix to
19500 GetGlyphOutline. Never look up by glyph index. Avoid looping
19501 twice. Use unicode version of GetTexExtentPoint32 instead of
19502 glyph index version.
19503 (set_fonts_frame): Remove.
19504 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19505 set frame parameter. Use backward compatible fake foundries.
19506 Save generic family in extra slot under QCfamily. Make width slot
19507 constant. Save QCspacing value. Save list of scripts instead of
19508 binary subranges.
19509 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19510 (add_font_entity_to_list): Use font_callback_data struct. Filter
19511 unwanted fonts.
19512 (add_one_font_entity_to_list): Use font_callback_data struct.
19513 (w32_registry): Default to iso10646_1.
19514 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19515 string font registries. Don't fill in font name if it is a generic
19516 family name, fill family instead. Use spacing, family and script
19517 extra info to fill pitch, family and charset fields.
19518 (list_all_matching_fonts): Use font_callback_data struct.
19519 (unicode_range_for_char): Remove.
19520 (font_supported_scripts): New function.
19521 (w32font_initialize): Remove.
19522 (syms_of_w32font): Update which symbols are defined.
19523
195242008-02-01 Jason Rumney <jasonr@gnu.org>
19525
19526 * font.c (font_pixel_size): Reverse assq_no_quit args.
19527
19528 * w32term.h (FONT_WIDTH): Report max width, not average.
19529 (FONT_MAX_WIDTH): Remove.
19530 (FONT_AVG_WIDTH): New macro.
19531
19532 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19533 redefinition of FONT_WIDTH.
19534
19535 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19536 (w32_cache_char_metrics): Use FONT_WIDTH.
19537
19538 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19539
195402008-02-01 Jason Rumney <jasonr@gnu.org>
19541
19542 * w32font.c (w32font_open): Make lfHeight negative.
19543
19544 * w32fns.c (x_default_font_parameter): Use new style font name.
19545 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19546
195472008-02-01 Jason Rumney <jasonr@gnu.org>
19548
19549 * w32font.c (QCsubranges): New symbol.
19550 (w32font_open, w32font_has_char): Get subranges from subproperty
19551 of extra.
19552 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19553 (syms_of_w32font): Define :subranges symbol.
19554
19555 * font.c (font_put_extra): Expose externally.
19556
19557 * font.h (font_put_extra): Move declaration from font.c.
19558
19559 * font.c (Ffont_get): Use font driver to determine otf capability.
19560 (adjust_anchor): Check if driver defines anchor_point before using.
19561
19562 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19563 (w32font_draw): Use options.
19564 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19565 Fix detection of truetype fonts.
19566 (registry_to_w32_charset): Handle charsets other than iso8859-1
19567 expressed as lisp symbols.
19568 (w32_registry): Express charset as lisp symbol.
19569 (fill_in_logfont): Reverse pixel and point height logic.
19570 Don't set width here. Set quality to default.
19571
19572 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19573 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19574
19575 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19576 Remove redundant loop and allocation.
19577
19578 * makefile.w32-in (font.o, w32font.o): New objects.
19579 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19580 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19581
19582 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19583 STORE_XCHARB a valid l-value.
19584
19585 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19586 calculations for non-Truetype fonts.
19587 (x_draw_glyph_string): Sync with xterm.c.
19588 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19589 Remove redundant code.
19590 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19591
19592 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19593 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19594
19595 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19596 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19597
19598 * w32font.c: New file for w32 font backend.
19599
196002008-02-01 Kenichi Handa <handa@m17n.org>
19601
19602 * term.c: Don't include "buffer.h" twice.
19603
196042008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * character.c (Funibyte_string): New function.
19607 (syms_of_character): Defsubr it.
19608
196092008-02-01 Jason Rumney <jasonr@gnu.org>
19610
19611 * w32term.c [USE_FONT_BACKEND]:
19612 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19613 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19614 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19615 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19616 (x_free_frame_resources): Sync with xterm.c.
19617
196182008-02-01 Andreas Schwab <schwab@suse.de>
19619
19620 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19621 char-table size.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19630 font_otf_gpos, add font_drive_otf.
19631
19632 * fontset.c (fontset_find_font): Pay attention to font size
19633 specified for a font.
19634 (reorder_font_vector): Check contents of font_def.
19635
19636 * font.c (struct otf_list): Delete it.
19637 (otf_list): Make it a lisp variable.
19638 (otf_open): Use lispy otf_list.
19639 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19640 (check_otf_features): New function.
19641 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19642 New functions.
19643 (font_drive_otf): New function merging font_otf_gsub and
19644 font_otf_gpos.
19645 (font_open_for_lface): New arg spec. Change argument order.
19646 (font_load_for_face): Adjust for the change of font_open_for_lface.
19647 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19648 Ffont_otf_gpos.
19649 (syms_of_font): Staticpro otf_list. Delete defsubr of
19650 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19651
19652 * xfaces.c (set_font_frame_param): Adjust for the change of
19653 font_open_for_lface.
19654
19655 * font.h (font_open_for_lface): Adjust prototype.
19656 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19657 member otf_drive.
19658 (font_otf_gsub, font_otf_gpos): Delete externs.
19659 (font_drive_otf): Extern it.
19660
196612008-02-01 Kenichi Handa <handa@m17n.org>
19662
19663 * font.c (font_at): If the window W is not on a window system,
19664 return Qnil.
19665
19666 * coding.c (produce_chars, encode_coding): Don't call
19667 insert_from_gap if no characters to produce.
19668
196692008-02-01 Kenichi Handa <handa@m17n.org>
19670
19671 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19672 Fclear_face_cache.
19673
19674 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19675
196762008-02-01 Miles Bader <miles@gnu.org>
19677
19678 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19679 Parse "--disable-font-backend" option.
19680 (standard_args): Add "--disable-font-backend" option.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * fontset.c (fontset_find_font): New function.
19685 (fontset_font): Use fontset_find_font.
19686 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19687 Register the specified font for all Latin characters.
19688 (new_fontset_from_font): Register the specified font for all Latin
19689 characters.
19690 (dump_fontset): For a realized fontset, include the base fontset
19691 name in the returned vector.
19692
196932008-02-01 Kenichi Handa <handa@m17n.org>
19694
19695 * character.h (CHAR_STRING): Cast C to unsigned on calling
19696 char_string.
19697
19698 * character.c (char_string): Type of arg C changed to unsigned.
19699 Signal an error if C is an invalid character code.
19700
19701 * editfns.c (general_insert_function, Fchar_to_string):
19702 Use CHARACTERP, not INTEGERP.
19703
197042008-02-01 Kenichi Handa <handa@m17n.org>
19705
19706 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19707 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19708
19709 * regex.c (analyse_first): Fix for multibyte characters in "case
19710 charset:" and "case categoryspec:".
19711
197122008-02-01 Andreas Schwab <schwab@suse.de>
19713
19714 * Makefile.in (LIBES): Move standard libraries to the end.
19715
197162008-02-01 Kenichi Handa <handa@m17n.org>
19717
19718 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19719 nonzero, don't shrink the buffer nextb.
19720
19721 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19722
19723 * coding.c (coding_alloc_by_making_gap): New arg offset.
19724 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19725 offset.
19726 (decode_coding_iso_2022): Update coding->safe_charsets.
19727 (decode_coding_gap): Temporarily set
19728 current_buffer->text->inhibit_shrinking to 1.
19729
197302008-02-01 Kenichi Handa <handa@m17n.org>
19731
19732 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19733 indexing into elements of s->cmp and s->char2b.
19734
197352008-02-01 Juanma Barranquero <lekktu@gmail.com>
19736
19737 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19738
197392008-02-01 Kenichi Handa <handa@m17n.org>
19740
19741 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19742 target_multibyte instead of multibyte.
19743 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19744 (bcmp_translate): Change the argument name from multibyte to
19745 target_multibyte.
19746
197472008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 These changes are to compile a regexp into a pattern that can be
19750 used both for multibyte and unibyte targets.
19751
19752 * Makefile.in (search.o): Depend on charset.h.
19753
19754 * character.c (multibyte_char_to_unibyte_safe): New function.
19755
19756 * search.c: Include "charset.h".
19757 (compile_pattern_1): Delete argument multibyte. Don't set
19758 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19759 (compile_pattern): Don't compare cp->buf.target_multibyte.
19760 Compare cp->buf.charset_unibyte.
19761 (compile_pattern): Set cp->buf.target_multibyte.
19762
19763 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19764
19765 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19766
19767 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19768 multibyte. Change callers.
19769 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19770 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19771 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19772 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19773 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19774 (regex_compile): Make the compiled pattern usable both for
19775 multibyte and unibyte targets.
19776 (analyse_first): Make the fastmap usable both for multibyte and
19777 unibyte targets.
19778 (TRANSLATE_VIA_MULTIBYTE): Delete.
19779 (re_match_2_internal): Pay attention to the case that the
19780 multibyteness of bufp and target may be different.
19781
197822008-02-01 Kenichi Handa <handa@m17n.org>
19783
19784 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19785 empty box occupy at least one column width.
19786
197872008-02-01 Miles Bader <miles@gnu.org>
19788
19789 * Makefile.in: Remove redundant HAVE_XFT clause.
19790
197912008-02-01 Kenichi Handa <handa@m17n.org>
19792
19793 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19798 being nil.
19799
198002008-02-01 Kenichi Handa <handa@m17n.org>
19801
19802 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19803
198042008-02-01 Kenichi Handa <handa@m17n.org>
19805
19806 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19807
198082008-02-01 Kenichi Handa <handa@m17n.org>
19809
19810 * search.c (simple_search): Fix previous change.
19811
198122008-02-01 Kenichi Handa <handa@m17n.org>
19813
19814 * xftfont.c (ftfont_font_format): Extern declaration.
19815
19816 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19817
19818 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19819 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19820
19821 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19822 (ftfont_font_format): Fix previous change.
19823
19824 * font.h (Ffont_xlfd_name): EXFUN it.
19825
19826 * font.c (font_parse_xlfd): Fix the array size of `f'.
19827 (register_font_driver): Use EQ to compare driver->type.
19828
19829 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19830 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19831 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19832
198332008-02-01 Kenichi Handa <handa@m17n.org>
19834
19835 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19836 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * xfont.c (xfont_open): Set font->format.
19841
19842 * xftfont.c (xftfont_open): Set font->format.
19843
19844 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19845 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19846 (ftfont_open): Set font->format.
19847 (ftfont_font_format): New function.
19848
19849 * font.h (struct font): New member format.
19850
19851 * font.c (Qopentype): New variable.
19852 (syms_of_font): Defsym it.
19853 (Fquery_font): Change the format of the last element of the return
19854 value.
19855
198562008-02-01 Kenichi Handa <handa@m17n.org>
19857
19858 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19859 last resort.
19860
198612008-02-01 Kenichi Handa <handa@m17n.org>
19862
19863 * coding.c (detect_coding_charset): Fix detection of multi-byte
19864 charset.
19865
198662008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19867
19868 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19869
198702008-02-01 Kenichi Handa <handa@m17n.org>
19871
19872 * xdisp.c (get_next_display_element): Set it->face_id for the
19873 first component of a composition.
19874 (x_produce_glyphs): Check if the font is changed or not for composition.
19875
198762008-02-01 Kenichi Handa <handa@m17n.org>
19877
19878 * fontset.c (Qlatin): New variable.
19879 (syms_of_fontset): Define it as a lisp symbol.
19880 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19881
198822008-02-01 Kenichi Handa <handa@m17n.org>
19883
19884 * font.c (font_unparse_fcname): Pay attention to the case that
19885 some of font property is a null string.
19886
198872008-02-01 Kenichi Handa <handa@m17n.org>
19888
19889 * term.c: Include "composite.h".
19890 (encode_terminal_code): Output all components of composition.
19891 Check the size of encode_terminal_src.
19892 (produce_glyphs): For composition, call produce_composite_glyph.
19893 (append_composite_glyph, produce_composite_glyph): New functions.
19894
19895 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19896 is not found, get font_info from the current ascii face.
19897
198982008-02-01 Kenichi Handa <handa@m17n.org>
19899
19900 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19901 buffer-file-name to Qnil before calling insert_from_buffer.
19902
19903 * font.c (font_unparse_fcname): Pay attention to the case that
19904 foundry is a null string.
19905
199062008-02-01 Kenichi Handa <handa@m17n.org>
19907
19908 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19909
19910 * font.c (Qunicode_sip): New variable.
19911 (syms_of_font): Declare it as a Lisp symbol.
19912
19913 * font.h (Qunicode_sip): Extern it.
19914
199152008-02-01 Kenichi Handa <handa@m17n.org>
19916
19917 * composite.c (get_composition_id): Pay attention to TAB component.
19918
19919 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19920 TAB. Adjust for the change of s->char2b which always points to
19921 the first element of allocated memory.
19922
19923 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19924
19925 * xdisp.c (handle_composition_prop): Set it->c to the first
19926 non-TAB component.
19927 (fill_composite_glyph_string): Change argument.
19928 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19929 (x_produce_glyphs): Fix handling of left/right padding.
19930
199312008-02-01 Kenichi Handa <handa@m17n.org>
19932
19933 * coding.c (detect_coding_system): Fix for handling off
19934 inhibit_iso_escape_detection. Fix for the case that no coding
19935 system is defined for a specific coding category.
19936
199372008-02-01 Kenichi Handa <handa@m17n.org>
19938
19939 * font.c (font_matching_entity): Delete unused local var.
19940
19941 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19942 opening a font.
19943
19944 * fileio.c (Finsert_file_contents): On recovering a file, assume
19945 Unix-like eol.
19946 (choose_write_coding_system): On auto-saving a file, force
19947 Unix-like eol.
19948
19949 * coding.c (setup_coding_system): Fix setting of
19950 coding->common_flags based on eol_type.
19951 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19952 inherit from it.
19953
199542008-02-01 Kenichi Handa <handa@m17n.org>
19955
19956 * alloc.c (NSTATICS): Increas to 0x600.
19957
199582008-02-01 Kenichi Handa <handa@m17n.org>
19959
19960 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19961 (ftfont_list): Don't check :name property.
19962 (ftfont_match): New function.
19963 (ftfont_pattern_entity): If the pattern doesn't contain
19964 FC_SPACING, don't assume FC_MONO.
19965
19966 * font.h (struct font_driver): New member `match'.
19967 (font_update_drivers): Adjust prototype.
19968
19969 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19970 property of FONT.
19971 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19972 them unconditionally.
19973 (font_matching_entity): New function.
19974 (font_open_by_name): Try font_matching_entity if exact match is
19975 not found.
19976 (font_update_drivers): Delete the arg FONT. Return a list of
19977 actually used backends. Don't free faces, font caches here.
19978 Don't store data in frame parameters. Don't call x_set_font.
19979 (Ffont_spec): Store :name property as is.
19980 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19981 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19982 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19983 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19984 Call font->driver->otf_gsub instead of font_otf_gsub.
19985
19986 * frame.c (x_set_font_backend): Do more works that were done in
19987 font_update_drivers before.
19988
19989 * xfont.c (xfont_match): New function.
19990 (xfont_driver): Set xfont_driver.match to xfont_match.
19991 (xfont_draw): Set font in GC if necessary.
19992
19993 * ftxfont.c (ftxfont_match): New function.
19994 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19995
19996 * xftfont.c (xftfont_match): New function.
19997 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19998
199992008-02-01 Kenichi Handa <handa@m17n.org>
20000
20001 * font.h (struct font): New member scalable.
20002 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20003 (font_otf_gsub): Adjust prototype.
20004
20005 * font.c (font_otf_capability): Fix handling of the default langsys.
20006 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20007 Check the contents of SPEC.
20008 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20009 (check_gstring): New function.
20010 (REPLACEMENT_CHARACTER): New macro.
20011 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20012 glyph codes of GSTRING.
20013 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20014 (font_prepare_composition): Set cmp->glyph_len.
20015 (font_open_entity): Set font->scalable.
20016 (Ffont_get): Handle :otf property.
20017 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20018 functions.
20019 (Fquery_font): Use font->font.full_name.
20020 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20021 Sfont_otf_alternates.
20022
20023 * ftfont.c (ftfont_open): Set font->font.full_name and
20024 font->font.name properly. Fix calculation of font->font.height
20025 and font->min_width.
20026
20027 * ftxfont.c (ftxfont_create_gcs): New function.
20028 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20029 (ftxfont_draw_backgrond): Fix filling region.
20030 (ftxfont_default_fid): New function.
20031 (ftxfont_open): Set xfont->fid to the return value of
20032 ftxfont_default_fid.
20033 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20034 (ftxfont_done_face): Free only GCs that are created by
20035 ftxfont_create_gcs.
20036 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20037
20038 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20039 Clip to src->width, etc (not src->clip_XXX).
20040
20041 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20042 FontBackend frame parameter.
20043
200442008-02-01 Kenichi Handa <handa@m17n.org>
20045
20046 * font.h (struct font_driver_list): New member `on'.
20047 (Fclear_font_cache): EXFUN it.
20048 (font_update_drivers): Extern it.
20049
20050 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20051 (font_list_entities): Check driver_list->on.
20052 (register_font_driver): Initalize `on' member to 0.
20053 (font_update_drivers): New function.
20054 (Fclear_font_cache): Check driver_list->on.
20055
20056 * frame.h (Qfont_backend): Extern it.
20057 (x_set_font_backend): Extern it.
20058
20059 * frame.c (Qfont_backend): New variable.
20060 (frame_parms): New element for font-backend.
20061 (x_set_font_backend): New function.
20062
20063 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20064 FontBackend frame parameter.
20065 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20066 x_set_font_backend.
20067
20068 * xfont.c (xfont_list): Don't try listing by :name property if the
20069 name is not for XLFD.
20070
200712008-02-01 Kenichi Handa <handa@m17n.org>
20072
20073 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20074 (LGLYPH_SET_TO): New macros.
20075 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20076 element of G is vector or not.
20077 (font_at): Extern it.
20078
20079 * font.c: Include window.h.
20080 (font_lispy_object): New function.
20081 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20082 end of valid glyph.
20083 (font_close_object): Fix getting (struct font *).
20084 (font_at): New function.
20085 (Ffont_get): If FONT is a font-object, get entity from it.
20086 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20087 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20088 range check.
20089 (Ffont_at): New function.
20090 (syms_of_font): Defsubr Sfont_at.
20091
20092 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20093 before the entry for Qcomposition.
20094 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20095 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20096 the font in gstring.
20097 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20098 LGLYPH_FORM (g) to detect the end of valid glyph.
20099 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20100 we are composing with gstring.
20101
20102 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20103 Check if adjustment is vector or not.
20104
20105 * Makefile.in (font.o): Make it depends on window.h.
20106
201072008-02-01 Kenichi Handa <handa@m17n.org>
20108
20109 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20110 adjustment is vector or not.
20111
201122008-02-01 Miles Bader <miles@gnu.org>
20113
20114 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20115
201162008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20119 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20120 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20121
20122 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20123 (DEVICE_DELTA): Fix typo.
20124 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20125 LGLYPH format.
20126
20127 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20128 the change of LGLYPH format.
20129
201302008-02-01 Kenichi Handa <handa@m17n.org>
20131
20132 * ftfont.c (ftfont_list): Fix typo.
20133 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20134
201352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20136
20137 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20138
20139 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20140 xftface_info is non-NULL.
20141
201422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20143
20144 * ftfont.c (ftfont_list): Move misplaced #endif.
20145
201462008-02-01 Kenichi Handa <handa@m17n.org>
20147
20148 * ftfont.c (ftfont_list): Pay attention to the case that
20149 FC_CAPABILITY is not defined.
20150
201512008-02-01 Kenichi Handa <handa@m17n.org>
20152
20153 * xftfont.c (xftfont_open): Set charset related members to -1.
20154
20155 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20156 QCname.
20157 (ftfont_open): Set charset related members to -1.
20158
20159 * fontset.c (Votf_script_alist): New variable.
20160 (syms_of_fontset): Initialize it.
20161 (fontset_font): Delete unused variable.
20162
20163 * fontset.h (Votf_script_alist): Extern it.
20164
20165 * font.c (font_find_for_lface): Optimize code.
20166
20167 * font.h (font_close_object, font_merge_old_spec): Extern them.
20168
201692008-02-01 Kenichi Handa <handa@m17n.org>
20170
20171 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20172 (syms_of_font): Initialize them.
20173 (font_pixel_size): Allow float value in dpi.
20174 (font_prop_validate_type): Delete.
20175 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20176 Change caller.
20177 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20178 (font_prop_validate_extra): Delete.
20179 (font_prop_validate_spacing): New function.
20180 (font_property_table): Add elements for all known properties.
20181 (get_font_prop_index): Rename from check_font_prop_name. New
20182 argument FROM. Change caller.
20183 (font_prop_validate): Validate all known properties.
20184 (font_put_extra): Delete argument force. Change caller.
20185 (font_expand_wildcards): Make it static. Fix the way of shrinking
20186 the possible range.
20187 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20188 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20189 Change caller.
20190 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20191 (font_parse_fcname): Delete argument merge. Fix parsing of point
20192 size. Don't validate properties values here. Change caller.
20193 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20194 (font_open_by_name): Delete unused variable.
20195 (Ffont_spec): Likewise. Validate property values.
20196 (Ffont_match_p): New function.
20197
20198 * font.h (QCscalable): Extern it.
20199 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20200
20201 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20202
20203 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20204 (xfont_list_pattern): New function.
20205 (xfont_list): Use xfont_list_pattern.
20206
202072008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * font.h (Flist_fonts): EXFUN it.
20210
202112008-02-01 Jason Rumney <jasonr@gnu.org>
20212
20213 * w32term.c (w32_initialize): Add back smoothing_type and
20214 smoothing_enabled definitions.
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20219 s->face->font on determining underline position.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20224 (font_has_char): Accept font-object too.
20225 (font_find_for_lface): Try at first with a size specified in face.
20226
202272008-02-01 Kenichi Handa <handa@m17n.org>
20228
20229 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20230 font_open_by_name.
20231
202322008-02-01 Kenichi Handa <handa@m17n.org>
20233
20234 * font.h (QCspacing, QCdpi): Extern them.
20235 (enum font_spacing): New enum.
20236 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20237
20238 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20239 (QCspacing, QCdpi): New variables.
20240 (syms_of_font): Initialize them.
20241 (font_pixel_size): New function.
20242 (font_put_extra): New function.
20243 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20244 in FONT_EXTRA.
20245 (font_parse_fcname): Handle enumerated values (e.g. bold).
20246 Fix handling font size. Add QCname property that contains only
20247 unknown properties.
20248 (font_score): Change argument. Change caller. Pay attention to
20249 FONT_PIXEL_SIZE_QUANTUM.
20250 (font_sort_entites, font_list_entities, font_find_for_lface)
20251 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20252 (Ffont_spec): Add QCname property that contains only unknown properties.
20253
20254 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20255 include weight in listing pattern, instead check weight of each
20256 listed font. Don't include scalable in pattern. Pay attention to
20257 FONT_PIXEL_SIZE_QUANTUM.
20258
202592008-02-01 Kenichi Handa <handa@m17n.org>
20260
20261 * font.c (font_parse_fcname): Fix parsing of point-size.
20262 (font_unparse_fcname): Produce symbolic names for style properties.
20263 (font_list_entities): Handle float size correctly.
20264 (font_open_by_name): Prefer `normal' property values if the name
20265 doesn't specify them.
20266
20267 * fontset.c (Finternal_char_font): Use font_get_name, not
20268 Ffont_xlfd_name.
20269
20270 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20271 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20272 pattern. Don't force scalable.
20273
20274 * xftfont.c (xftfont_open): For generating a name, start from
20275 96-byte buffer.
20276
202772008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20278
20279 * frame.h (x_new_fontset2): Fix prototype.
20280
202812008-02-01 Kenichi Handa <handa@m17n.org>
20282
20283 * font.h (struct font_driver): Delete member parse_name.
20284 (font_match_p, font_get_spec, font_parse_fcname)
20285 (font_unparse_fcname): Extern them.
20286 (font_get_name): Adjust prototype.
20287
20288 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20289 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20290 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20291 unnecessary checks for weight, slant, and swidth.
20292 (font_parse_fcname): New function.
20293 (font_unparse_fcname): New function.
20294 (font_parse_name): New function.
20295 (font_match_p): New function.
20296 (font_get_name): Change return value to Lisp string.
20297 (font_get_spec): New function.
20298 (Qunspecified, Qignore_defface): Don't extern them.
20299 (font_find_for_lface): Assume that LFACE is fully specified.
20300 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20301 object, use it for FACE.
20302 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20303 driver->parse_name.
20304 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20305
20306 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20307 prototype.
20308
20309 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20310 argument F. Don't call Fnew_fontset. Instead, directly call
20311 make_fontset.
20312
20313 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20314
20315 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20316 of x_new_fontset2.
20317
20318 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20319 (Qsans__serif): New variables.
20320 (ftfont_generic_family_list): New variable.
20321 (syms_of_ftfont): Initialize the above variables.
20322 (ftfont_pattern_entity): Delete argument NAME.
20323 (ftfont_list_generic_family): New function.
20324 (ftfont_parse_name): Delete this function.
20325 (ftfont_list): Try generic family only when FcFontList found no font.
20326 (ftfont_list_family): Fix args to FcObjectSetBuild.
20327
20328 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20329 object in attrs[LFACE_FONT_INDEX].
20330 (set_lface_from_font_name): Cancel all changes for font-backend.
20331 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20332 function.
20333 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20334 font object in QCfont attribute.
20335 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20336 (realize_default_face) [USE_FONT_BACKEND]: Call
20337 set_lface_from_font_and_fontset.
20338
20339 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20340 "fixed", and signal error here if no suitable font was found.
20341
20342 * xfont.c (xfont_parse_name): Delete this function.
20343
20344 * xftfont.c (xftfont_open): Change coding style of error
20345 handling. Generate fontconfig's fontname pattern.
20346
20347 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20348 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20349
20350 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20351 Both args FONTSET and FONT_OBJECT must be existing ones.
20352
203532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20354
20355 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20360
20361 * font.h (struct font): Fix typo.
20362
20363 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20364 XLFD_XXX_INDEX.
20365 (enum xlfd_field_mask): New enum.
20366 (intern_font_field): Changed argument. Change caller. If digits
20367 are followed by non-digits, return a symbol.
20368 (font_expand_wildcards): New function.
20369 (font_parse_xlfd): Fix wildcard handling.
20370 (Ffont_spec): If :name is specified, reflect the info in the other
20371 properties.
20372
20373 * ftfont.c (ftfont_pattern_entity): Fix typo.
20374 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20375 locale.
20376
203772008-02-01 Kenichi Handa <handa@m17n.org>
20378
20379 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20380
20381 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20382 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20383 registry doesn't specify encoding part.
20384 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20385 (font_open_by_name): At first try parsing the name.
20386 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20387 as Lisp symbols.
20388
20389 * fontset.c (reorder_font_vector): Pay attention to the case that
20390 the 3rd element of font_def is nil.
20391 (fontset_font): For the default fontset, append one more fontset
20392 elements for a script-based font specification. Don't add script
20393 attribute on finding a font.
20394 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20395 font name.
20396 (fontset_ascii_font): If a font can't be opened, return nil.
20397
20398 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20399 (ftfont_pattern_entity): New function.
20400 (ftfont_get_cache): Assume that freetype_font_cache is already
20401 initialized.
20402 (ftfont_list): Handle the case that a file is specified in font
20403 name. Use ftfont_pattern_entity to generate entities.
20404 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20405 (syms_of_ftfont): Initialize freetype_font_cache.
20406
20407 * xftfont.c (xftfont_open): Make the font name fontconfig's
20408 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20409 (xftfont_close): Free font->font.name if not NULL.
20410
20411 * xfont.c (xfont_list): If script is specified for a font, return
20412 null_vector.
20413 (xfont_list_family): Declare argument type.
20414
20415 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20416 name, set LFACE_FONT (lface) to nil.
20417
20418 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20419 return Qnil.
20420
204212008-02-01 Kenichi Handa <handa@m17n.org>
20422
20423 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20424 (standard_args): Add "-enable-font-backend".
20425
204262008-02-01 Kenichi Handa <handa@m17n.org>
20427
20428 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20429 (struct xftdraw_list, xftdraw_list): Delete them.
20430 (register_xftdraw, check_xftdraw): Delete them.
20431 (xftfont_prepare_face): Don't call register_xftdraw.
20432 (xftfont_done_face): Don't call check_xftdraw.
20433 (xftfont_draw): Get background color only when with_background is
20434 nonzero.
20435
20436 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 These changes are for the new font handling codes.
20441
20442 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20443 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20444 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20445 (FONTSRC, FONTOBJ): New variables.
20446 (obj): Add $(FONTOBJ).
20447 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20448 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20449 @LIBOTF_LIBS@.
20450 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20451 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20452
20453 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20454
20455 * character.h (Vscript_representative_chars): Extern it.
20456
20457 * character.c (Vscript_representative_chars): New variable.
20458 (syms_of_character): Declare it as a Lisp variable.
20459
20460 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20461 enable_font_backend is nonzero, accept the composition method
20462 COMPOSITION_WITH_GLYPH_STRING.
20463
20464 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20465 enumeration COMPOSITION_WITH_GLYPH_STRING.
20466
20467 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20468 members clip_x, clip_y, clip_width, and clip_height.
20469 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20470
20471 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20472 --enable-font-backend. Call syms_of_font.
20473
20474 * fns.c (assoc_no_quit): New function.
20475
20476 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20477 (face_for_font, new_fontset_from_font)
20478 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20479
20480 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20481 (fontset_font, fontset_ascii, face_for_char)
20482 (make_fontset_for_ascii_face, Ffont_info)
20483 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20484 is nonzero, use font-backend mechanism.
20485 (find_font_encoding): Make it non-static.
20486 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20487 New functions.
20488
20489 * frame.h (struct frame): New members resx and resy.
20490 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20491 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20492
20493 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20494 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20495
20496 * lisp.h (assoc_no_quit): Extern it.
20497
20498 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20499 Through out the file, use FONT_INFO_FROM_FACE instead of
20500 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20501 rif->per_char_metric.
20502 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20503 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20504 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20505 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20506 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20507 nonzero, use font-backend mechanism.
20508 (get_per_char_metric): New function.
20509
20510 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20511 (set_lface_from_font_name)
20512 (set_font_frame_param, free_realized_face)
20513 (prepare_face_for_display, clear_face_gcs)
20514 (Finternal_set_font_selection_order, realize_x_face)
20515 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20516 font-backend mechanism.
20517 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20518 (load_face_font) [USE_FONT_BACKEND]: Abort.
20519 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20520 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20521
20522 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20523 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20524 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20525 nonzero, register all available font drivers. Call
20526 x_default_font_parameter for deciding a font.
20527 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20528
20529 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20530 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20531 (x_set_glyph_string_clipping_exactly)
20532 (x_compute_glyph_string_overhangs)
20533 (x_draw_glyph_string_foreground)
20534 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20535 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20536 enable_font_backend is nonzero, use font-backend mechanism.
20537 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20538
205392008-02-01 Kenichi Handa <handa@m17n.org>
20540
20541 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20542 system_eol_type.
20543 (syms_of_coding): Initialize system_eol_type.
20544
20545 * process.c (Fset_process_coding_system): Inherit system's eol
20546 format if necessary.
20547
205482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20549
20550 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20551
205522008-02-01 Kenichi Handa <handa@m17n.org>
20553
20554 * coding.c (decode_eol): Pay attention to buffer relocation in
20555 del_range_2.
20556 (decode_coding): Call decode_eol before restoring undo_list.
20557
205582008-02-01 Kenichi Handa <handa@m17n.org>
20559
20560 * charset.c (Fdefine_charset_internal): Fix setting of
20561 emacs_mule_bytes.
20562
205632008-02-01 Kenichi Handa <handa@m17n.org>
20564
20565 * keyboard.c (read_char): Check if C is a character or not before
20566 looking up Vkeyboard_translate_table.
20567
205682008-02-01 Kenichi Handa <handa@m17n.org>
20569
20570 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20571 condition to terminate the loop.
20572
205732008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * coding.c (produce_composition): Compare charbuf[i] instead of
20576 args[i] against 0.
20577 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20578
205792008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20582 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20583 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20584 detect_coding.
20585 (emacs_mule_char): Handle old style (Emacs 20) component character
20586 of a composition.
20587 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20588 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20589 composition rule.
20590 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20591
205922008-02-01 Kenichi Handa <handa@m17n.org>
20593
20594 * coding.c (encode_coding_ccl): Allocate destination dynamically
20595 when necessary.
20596
205972008-02-01 Kenichi Handa <handa@m17n.org>
20598
20599 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20600 the loop. When quitted, show a proper error message.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20605 src->clip_head and src->clip_tail temporarily instead of src->hl.
20606
20607 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20608 character sequence.
20609 (Fccl_execute_on_string): Use ASET, not XSET.
20610
206112008-02-01 Kenichi Handa <handa@m17n.org>
20612
20613 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20614
206152008-02-01 Kenichi Handa <handa@m17n.org>
20616
20617 * coding.c (decode_coding): Fix the condition of terminating the
20618 decoding loop.
20619
206202008-02-01 Kenichi Handa <handa@m17n.org>
20621
20622 * data.c (Faset): On setting a character bigger than 255 in a
20623 unibyte string, signal an error instead of make the string multibyte.
20624
206252008-02-01 Kenichi Handa <handa@m17n.org>
20626
20627 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20628 made by a mapping table.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20633 not.
20634 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20635 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20636
20637 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20638 s->face is NULL or not.
20639
206402008-02-01 Kenichi Handa <handa@m17n.org>
20641
20642 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20643 (x_draw_glyph_string): Fix drawing of right_overhang and
20644 left_overhang around/on cursor.
20645
20646 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20647
206482008-02-01 Kenichi Handa <handa@m17n.org>
20649
20650 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20651
206522008-02-01 Kenichi Handa <handa@m17n.org>
20653
20654 * coding.c (Fdefine_coding_system_internal)
20655 (Fdefine_coding_system_alias): Avoid a duplicated element in
20656 Vcoding_system_alist.
20657
206582008-02-01 Kenichi Handa <handa@m17n.org>
20659
20660 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20661
20662 * coding.c (Qcoding_system_define_form): New variable.
20663 (syms_of_coding): Intern and staticpro it.
20664 (Fcoding_system_p): Check Qcoding_system_define_form.
20665 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20666
20667 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20668 Fcoding_system_p.
20669 (CHECK_CODING_SYSTEM): If ID is not available, call
20670 Fcheck_coding_system.
20671 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20672 Try also Fcheck_coding_system.
20673
206742008-02-01 Kenichi Handa <handa@m17n.org>
20675
20676 * coding.c (code_conversion_restore): GCPRO arg.
20677
206782008-02-01 Kenichi Handa <handa@m17n.org>
20679
20680 * character.c (lisp_string_width): Check multibyteness of STRING.
20681
206822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20683
20684 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20685 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20686 (decode_mac_font_name): Use decode_coding_c_string instead of
20687 decode_coding.
20688 (x_load_font): Initialize fontp->fontset to -1. Set
20689 fontp->encoding_type.
20690
206912008-02-01 Kenichi Handa <handa@m17n.org>
20692
20693 * search.c (search_buffer): Give up BM search on case-fold-search
20694 if one of a target character has a case-equivalence of different
3b59c351 20695 byte length even if that target character is an ASCII.
aac0c6e3
MR
20696 (simple_search): Fix calculation of byte length of matched text.
20697 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20698
206992008-02-01 Kenichi Handa <handa@m17n.org>
20700
20701 * coding.c (decode_coding): Fix handling of invalid bytes.
20702
207032008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20706 Unicode characters.
20707
207082008-02-01 Kenichi Handa <handa@m17n.org>
20709
20710 * coding.c (encode_coding_object): If a pre-write-conversion
20711 function makes a new buffer, kill it.
20712
207132008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * coding.c (QCascii_compatible_p): New variable.
20716 (syms_of_coding): Initialize it.
20717 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20718 calling string_char.
20719 (record_conversion_result): Add `default:' case.
20720 (coding_charset_list): Delete unused variable `coding_type'.
20721 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20722 property in the plist of the coding system.
20723 (Fcoding_system_put): Check QCascii_compatible_p.
20724
207252008-02-01 Miles Bader <miles@gnu.org>
20726
20727 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20728 removed calculation of frame `f', as it's now used.
20729
207302008-02-01 Kenichi Handa <handa@m17n.org>
20731
20732 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20733 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20734 (UNIDATA): New variable.
20735 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20736 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20737 $(RUN_TEMACS) unconditionally.
20738
207392008-02-01 Kenichi Handa <handa@m17n.org>
20740
20741 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20742 (admindir): New variable.
20743 ($(lispsource)international/charprop.el): New target.
20744
207452008-02-01 Miles Bader <miles@gnu.org>
20746
20747 * character.c (chars-in-region): Remove obsolete function.
20748 (syms_of_character): Remove its initialization.
20749
207502008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20751
20752 * w32select.c (validate_coding_system)
20753 (setup_windows_coding_system): New functions.
20754 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20755 setup_windows_coding_system.
20756 (setup_config, Fw32_get_clipboard_data): Use
20757 validate_coding_system.
20758 (Fx_selection_exists): Move call to setup_config to a place
20759 where signals are allowed.
20760
20761 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20762 (Fcheck_coding_system): Add declarations.
20763
207642008-02-01 Kenichi Handa <handa@m17n.org>
20765
20766 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20767
207682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20769
20770 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20771 string as the second argument for x_new_fontset.
20772
207732008-02-01 Kenichi Handa <handa@m17n.org>
20774
20775 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20776 (encode_coding_object): Use safe_call instead of call2.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20781
20782 * Makefile.in (lisp): Include charprop.el.
20783
207842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20785
20786 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20787 Not sure if it's unnecessary.
20788
207892008-02-01 Steven Tamm <steventamm@mac.com>
20790
20791 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20792 some possibly unnecessary fontset checking code that crashed
20793 when creating a new frame.
20794
207952008-02-01 Kenichi Handa <handa@m17n.org>
20796
20797 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20798 lookup_face.
20799
20800 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20801
20802 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20803
208042008-02-01 Kenichi Handa <handa@m17n.org>
20805
20806 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20807 (coding_charset_list): New function.
20808
20809 * coding.h (coding_charset_list): Extern it.
20810
208112008-02-01 Kenichi Handa <handa@m17n.org>
20812
20813 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20814 concatenation of family and registry.
20815
208162008-02-01 Kenichi Handa <handa@m17n.org>
20817
20818 * character.h (BYTE8_STRING): Fix typo.
20819
20820 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20821 string to multibyte (sync to HEAD).
20822
20823 * casefiddle.c (casify_region): Handle changes in byte-length
20824 using replace_range_2 (sync to HEAD).
20825
208262008-02-01 Andreas Schwab <schwab@suse.de>
20827
20828 * chartab.c (map_char_table): GCPRO table and arg.
20829
208302008-02-01 Kenichi Handa <handa@m17n.org>
20831
20832 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20833 already at limit.
20834
208352008-02-01 Kenichi Handa <handa@m17n.org>
20836
20837 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20838 instead of fast_c_string_match_ignore_case.
20839 (find_font_encoding): Change argument to Lisp_Object. Use
20840 fast_string_match_ignore_case instead of
20841 fast_c_string_match_ignore_case. Change caller.
20842
208432008-02-01 Kenichi Handa <handa@m17n.org>
20844
20845 * xdisp.c (get_next_display_element): In unibyte case, decide to
20846 display in octal form by checking a character by
20847 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20848
20849 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20850
20851 * character.c (unibyte_has_multibyte_table): New variable.
20852
20853 * character.h (unibyte_has_multibyte_table): Extern it.
20854 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20855
208562008-02-01 Kenichi Handa <handa@m17n.org>
20857
20858 * coding.c (encode_coding_iso_2022): Fix handling of charset
20859 annotation.
20860
208612008-02-01 Kenichi Handa <handa@m17n.org>
20862
20863 * coding.c (setup_coding_system): If coding_system is nil, use
20864 Qundecided.
20865 (Fterminal_coding_system): Return nil if terminal coding system is
20866 `undecided'.
20867 (syms_of_coding): Define coding-system `undecided' here. Setup
20868 terminal_coding as `undecided'.
20869
208702008-02-01 Kenichi Handa <handa@m17n.org>
20871
20872 * xdisp.c (message_dolog, set_message_1): Call
20873 unibyte_char_to_multibyte with arg type int.
20874
20875 * lread.c (read1): Fix reading of a char-table.
20876
20877 * print.c (print_object): Include sub char-table in circularities
20878 detection.
20879
208802008-02-01 Kenichi Handa <handa@m17n.org>
20881
20882 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20883 Append the found sequences in car of ARGS instead of prepending.
20884
208852008-02-01 Kenichi Handa <handa@m17n.org>
20886
20887 * fileio.c (report_file_error): Make a unibyte string from
20888 strerror (errorno).
20889 (Fsubstitute_in_file_name): Fix the arg to
20890 unibyte_char_to_multibyte. It is evaluated twice.
20891
208922008-02-01 Kenichi Handa <handa@m17n.org>
20893
20894 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20895
208962008-02-01 Kenichi Handa <handa@m17n.org>
20897
20898 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20899 BOM is not found.
20900 (detect_coding, detect_coding_system): Optimization for ISO-2022
20901 when no 8-bit data is found.
20902
209032008-02-01 Jason Rumney <jasonr@gnu.org>
20904
20905 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20906
209072008-02-01 Kenichi Handa <handa@m17n.org>
20908
20909 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20910 CHARS.
20911
209122008-02-01 Steven Tamm <steventamm@mac.com>
20913
20914 * macterm.c (mac_encode_char): Add charset argument and update
20915 to use encoding_type.
20916 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20917 switch to pure fontset.
20918 (decode_mac_font_name): Temporarily remove decoding.
20919 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20920 (x_load_font): Temporarily remove encoding.
20921
209222008-02-01 Kenichi Handa <handa@m17n.org>
20923
20924 * xfaces.c (Fface_font): If frame is not on a window system,
20925 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20926 refer to face->font.
20927 (split_font_name_into_vector, build_font_name_from_vector)
20928 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20929 when HAVE_WINDOW_SYSTEM is defined.
20930
209312008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20934 (x_produce_glyphs): Fix setting of members of cmp in case
20935 cmp->glyph_len is zero.
20936
20937 * fontset.c (Fset_fontset_font): Fix docstring.
20938 (Ffontset_info): Make it backward compatible. New arg ALL.
20939
209402008-02-01 Kim F. Storm <storm@cua.dk>
20941
20942 * process.c (read_process_output): Grow decoding_buf when needed;
20943 this could cause a crash in allocate_string and compact_small_strings.
20944
209452008-02-01 Kenichi Handa <handa@m17n.org>
20946
20947 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20948
209492008-02-01 Kenichi Handa <handa@m17n.org>
20950
20951 * coding.c (setup_coding_system): Set coding->common_flags
20952 correctly for raw-text.
20953 (consume_chars): On encoding unibyte text by raw-text, don't check
20954 multibyte form.
20955 (encode_coding): On encoding by raw-text, never use translation tables.
20956
20957 * fileio.c (e_write): Short cut for the case of no encoding.
20958
209592008-02-01 Kenichi Handa <handa@m17n.org>
20960
20961 * coding.c (detect_coding, detect_coding_system): Delete unused
20962 variables.
20963
209642008-02-01 Kenichi Handa <handa@m17n.org>
20965
20966 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20967 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20968
209692008-02-01 Kenichi Handa <handa@m17n.org>
20970
20971 * coding.c (Ffind_coding_systems_region_internal): Include
20972 raw-text and no-conversion in the result.
20973
209742008-02-01 Kenichi Handa <handa@m17n.org>
20975
20976 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20977 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20978 FONT_DEF.
20979 (font_def_arg, add_arg, from_arg, to_arg): New args.
20980 (set_fontset_font): Change argument.
20981 (Fset_fontset_font): Fix for the case that TARGET is a script
20982 name and charset name.
20983 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20984
209852008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * fontset.c (fontset_font): Rename from fontset_face. Change return
20988 value.
20989 (face_suitable_for_char_p, face_for_char): Adjust for the change
20990 of fontset_font.
20991 (make_fontset_for_ascii_face): Fix setting of the fontset element
20992 for ASCII.
20993 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20994 to get a font name.
20995 (Ffontset_info): Adjust for the change of fontset_font.
20996
20997 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20998
20999 * character.h (LEADING_CODE_LATIN_1_MIN)
21000 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21001
210022008-02-01 Kenichi Handa <handa@m17n.org>
21003
21004 * editfns.c (check_translation): New function.
21005 (Ftranslate_region_internal): Handle M:N mapping.
21006
210072008-02-01 Kenichi Handa <handa@m17n.org>
21008
21009 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21010
210112008-02-01 Kenichi Handa <handa@m17n.org>
21012
21013 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21014 goto invalid_code.
21015 (decode_coding_iso_2022): Fix handling of invalid designation.
21016
21017 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21018 after calling code_conversion_save.
21019
210202008-02-01 Kenichi Handa <handa@m17n.org>
21021
21022 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21023
21024 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21025
21026 * fontset.c: Include "intervals.h".
21027 (fontset_face): Fix comparing of Lisp_Objects.
21028 (free_face_fontset, new_fontset_from_font_name): Fix
21029 Lisp_Object/int mixup.
21030
21031 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21032
21033 * coding.c: Add many prototypes for static functions.
21034 (get_translation_table): Allow max_lookup to be NULL.
21035 (decode_coding, Ffind_coding_systems_region_internal)
21036 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21037 get_translation_table with max_lookup NULL.
21038
210392008-02-01 Kenichi Handa <handa@m17n.org>
21040
21041 * coding.c (get_translation_table): Declare it as Lisp_Object.
21042 (LOOKUP_TRANSLATION_TABLE): New macro.
21043 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21044 instead of CHAR_TABLE_REF.
21045
210462008-02-01 Kenichi Handa <handa@m17n.org>
21047
21048 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21049 annotation data format.
21050 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21051 Change arguments FROM and TO to single argument NCHARS. Change caller.
21052 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21053 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21054 (decode_coding_ccl, decode_coding_charset): Pay attention to
21055 coding->charbuf_used.
21056 (get_translation): New function.
21057 (produce_chars): New arguments translation_table and last_block.
21058 Translate characters here. Return number of carryover chars.
21059 Change caller.
21060 (produce_composition): New argument pos. Change caller.
21061 Adjust for the change of annotation data format.
21062 (produce_charset, produce_annotation): Likewise.
21063 (decode_coding, encode_coding): Don't call translate_chars.
21064 (consume_chars): New arg translation_table. Change caller.
21065 (translate_chars): Delete.
21066 (syms_of_coding): Make translation-table's number of extra slots 2.
21067
210682008-02-01 Kenichi Handa <handa@m17n.org>
21069
21070 * search.c (simple_search): Fix setting this_pos_byte in backward
21071 search.
21072
21073 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21074 byte sequence.
21075 (detect_coding_ccl): Fix setting of the variable valids.
21076
210772008-02-01 Kenichi Handa <handa@m17n.org>
21078
21079 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21080
21081 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21082
21083 * editfns.c (Ftranslate_region_internal): Rename from
21084 Ftranslate_region. Accept a char-table in TABLE.
21085 (syms_of_editfns): Defsubr Stranslate_region_internal.
21086
21087 * xfaces.c (set_lface_from_font_name): If a font is specified for
21088 a frame, generate a fontset from the font.
21089 (build_scalable_font_name): If the scalable font is requested for
21090 a specific size, don't change that size.
21091 (try_font_list): Try a scalable font also in the case that a
21092 pattern string is specified.
21093
210942008-02-01 Kenichi Handa <handa@m17n.org>
21095
21096 * xfaces.c (Fface_font): New optional arg CHARACTER.
21097
210982008-02-01 Kenichi Handa <handa@m17n.org>
21099
21100 * charset.h (CHARSET_OFFSET): New macro.
21101
211022008-02-01 Kenichi Handa <handa@m17n.org>
21103
21104 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21105
21106 * fontset.c (fontset_face): Handle the case that repertory is a
21107 char-table.
21108 (find_font_encoding): Return nil for unknown encoding.
21109 (Fset_fontset_font): Ignore a font of unknown encoding.
21110
211112008-02-01 Kenichi Handa <handa@m17n.org>
21112
21113 * keymap.c (describe_vector): Handle default value of a char table.
21114
21115 * fontset.c (fontset_face): Handle fallback fonts correctly.
21116 (Ffontset_info): Return infomation about fallback fonts.
21117
211182008-02-01 Kenichi Handa <handa@m17n.org>
21119
21120 * fontset.c (FONTSET_DEFAULT): New macro.
21121 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21122 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21123 the case that it is nil.
21124 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21125 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21126
21127 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21128 subset or superset.
21129
211302008-02-01 Kenichi Handa <handa@m17n.org>
21131
21132 * emacs.c (main): Call init_charset after syms_of_XXX.
21133
21134 * charset.c (Vcharset_map_directory): Delete.
21135 (Vcharset_map_path): New variable.
21136 (load_charset_map_from_file): Use Vcharset_map_path instead.
21137 (init_charset): Initialize Vcharset_map_path.
21138 (syms_of_charset): Delete declaration of "charset-map-directory",
21139 add declaration of "charset-map-path".
21140
211412008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21144 ASCII only string.
21145
21146 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21147
21148 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21149 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21150
211512008-02-01 Kenichi Handa <handa@m17n.org>
21152
21153 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21154
21155 * coding.c (QCmnemonic, QCdefalut_char)
21156 (QCdecode_translation_table, QCencode_translation_table)
21157 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21158 (get_translation_table): Return a list of translation tables if
21159 necessary.
21160 (decode_coding): Call get_translation_table with ENCODEP 0.
21161 (char_encodable_p): If translation_table is non-nil, always call
21162 translate_char.
21163 (Fdefine_coding_system_internal): Accept list of translation
21164 tables as :encode-translation-table and :decode-translation-table.
21165 (Fcoding_system_put): New function.
21166 (syms_of_coding): Declare new symbols. Defsubr
21167 Scoding_system_put.
21168 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21169 typically JISX0212.
21170
21171 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21172 when the charset is superset type.
21173
21174 * character.c (translate_char): Accept list of translation tables.
21175
211762008-02-01 Kenichi Handa <handa@m17n.org>
21177
21178 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21179 (CODING_ATTR_TRANS_TBL): New macro.
21180
21181 * coding.c (get_translation_table): New function.
21182 (translate_chars): Fix the bug of skipping annotation data.
21183 (decode_coding, encode_coding): Utilize get_translation_table.
21184 (char_encodable_p, Funencodable_char_position): Translate char if
21185 necessary.
21186 (Ffind_coding_systems_region_internal)
21187 (Fcheck_coding_systems_region): Setup translation table for encode
21188 in a coding system attribute vector in advance.
21189 (Fdefine_coding_system_internal): Allow a symbol as translation
21190 table. For shift-jis type coding system, allow 4th charset.
21191
211922008-02-01 Kenichi Handa <handa@m17n.org>
21193
21194 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21195
21196 * xdisp.c (get_next_display_element): Pass -1 as POS to
21197 FACE_FOR_CHAR if displaying a C-string.
21198
211992008-02-01 Kenichi Handa <handa@m17n.org>
21200
21201 * composite.c (get_composition_id): Handle xoff and yoff in a
21202 composition rule.
21203
21204 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21205 (struct composition): New member lbearing and rbearing.
21206
21207 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21208 (x_get_glyph_overhangs): Handle a composition glyph.
21209 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21210
21211 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21212 composition glyph.
21213
212142008-02-01 Kenichi Handa <handa@m17n.org>
21215
21216 * print.c: Include charset.h.
21217 (Vprint_charset_text_property): New variable.
21218 (Qdefault): Extern it.
21219 (PRINT_STRING_NON_CHARSET_FOUND)
21220 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21221 (print_check_string_result): New variable.
21222 (print_check_string_charset_prop): New function.
21223 (print_prune_charset_plist): New variable.
21224 (print_prune_string_charset): New function.
21225 (print_object): Call print_prune_string_charset if
21226 Vprint_charset_text_property is not t.
21227 (print_interval): Print nothing if interval->plist is nil.
21228 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21229 variable. Init and staticpro print_prune_charset_plist.
21230
212312008-02-01 Kenichi Handa <handa@m17n.org>
21232
21233 * fontset.c (new_fontset_from_font_name): Use the specified font
21234 for all characters in the new fontset.
21235
21236 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21237 OBJECT args.
21238
21239 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21240 OBJECT args for composition too.
21241
21242 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21243 OBJECT args.
21244
212452008-02-01 Kenichi Handa <handa@m17n.org>
21246
21247 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21248
21249 * fontset.c (reorder_font_vector): Adjust for the change of
21250 FONT_DEF format.
21251 (fontset_face): New arg id. Change caller.
21252 (face_for_char): New args pos and object.
21253 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21254 (fs_query_fontset): Check NAME by Fassoc too.
21255 (Fset_fontset_font): Allow non-XLFD font name.
21256 (Ffontset_info): Adjust for the change of FONT_DEF format.
21257
21258 * fontset.h (face_for_char): Adjust prototype.
21259
21260 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21261 (append_space, extend_face_to_end_of_line)
21262 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21263 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21264
21265 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21266 POS and OBJECT args.
21267
21268 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21269 POS and OBJECT args.
21270
212712008-02-01 Jason Rumney <jasonr@gnu.org>
21272
21273 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21274 of GlobalAlloc'ed memory.
21275
212762008-02-01 Kenichi Handa <handa@m17n.org>
21277
21278 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21279
21280 * charset.h (charset_table_used): Delete extern.
21281
21282 * charset.c (charset_table_used): Make it static.
21283 (map_charset_chars): Fix args to c_function with.
21284
21285 * chartab.c (map_sub_char_table_for_charset): Fix args to
21286 c_function with.
21287
21288 * coding.h (enum coding_result_code): Delete
21289 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21290
21291 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21292 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21293 (Vlast_code_conversion_error): New variables.
21294 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21295 (ONE_MORE_BYTE): Record error if any instead of signaling an
21296 error. If non-ASCII multibyte char is found, return the negative
21297 value of the code. All callers changed to check it.
21298 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21299 (record_conversion_result): New function. Change all codes setting
21300 coding->result to call this function.
21301 (detect_coding_utf_8, decode_coding_utf_8)
21302 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21303 Don't use the local variable incomplete.
21304 (emacs_mule_char): Change the second arg to `const'.
21305 (decode_coding): Fix of flushing out unprocessed data.
21306 (make_conversion_work_buffer): Fix making of a work buffer.
21307 (decode_coding_object): Return coding->dst_object.
21308
21309 * fontset.c (set_fontset_font): Fix args.
21310
21311 * lisp.h (CHARACTERBITS): Define as 22.
21312
21313 * process.c (send_process): Be sure to set coding->src_multibyte.
21314
21315 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21316
213172008-02-01 Kenichi Handa <handa@m17n.org>
21318
21319 * xdisp.c (handle_auto_composed_prop): Give limit to
21320 Fnext_single_char_property_change.
21321
213222008-02-01 Kenichi Handa <handa@m17n.org>
21323
21324 * composite.c (syms_of_composite): Don't make the composition hash
21325 table weak.
21326
21327 * fontset.c (Fset_fontset_font): Fix docstring.
21328
21329 * lisp.h (detect_coding_system): Adjust prototype.
21330
21331 * fileio.c (kill_workbuf_unwind): Delete this function.
21332 (Finsert_file_contents): Adjust the call of detect_coding_system.
21333 Get conversion_buffer by code_conversion_save. Use the macro
21334 CODING_MAY_REQUIRE_DECODING. After decoding, update
21335 coding_system.
21336
21337 * coding.h (make_conversion_work_buffer): Delete extern.
21338 (code_conversion_save): Extern it.
21339
21340 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21341 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21342 (decode_coding_utf_8): Don't do eol converion.
21343 (detect_coding_utf_16): Check coding->src_chars, not
21344 coding->src_bytes. Add heuristics for those that have no signature.
21345 (decode_coding_emacs_mule, decode_coding_iso_2022)
21346 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21347 Don't do eol converion.
21348 (adjust_coding_eol_type): Return a new coding system.
21349 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21350 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21351 each change.
21352 (decode_coding): Pay attention to undo_list. Do eol conversion for
21353 all types of coding-systems (if necessary).
21354 (Vcode_conversion_work_buf_list): Delete it.
21355 (Vcode_conversion_reused_workbuf): Rename from
21356 Vcode_conversion_reused_work_buf.
21357 (Vcode_conversion_workbuf_name): New variable.
21358 (reused_workbuf_in_use): New variable.
21359 (make_conversion_work_buffer): Delete the arg DEPTH.
21360 (code_conversion_restore): Change argument to cons.
21361 (code_conversion_save): Delete the argument BUFFER. Change callers.
21362 (detect_coding_system): New argument src_chars. Change callers.
21363 Fix for utf-16 detection.
21364 (init_coding_once): Don't use ISO_carriage_return.
21365 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21366 reused_workbuf_in_use.
21367
213682008-02-01 Kenichi Handa <handa@m17n.org>
21369
21370 * keymap.c (store_in_keymap): Pay attention to the case that idx
21371 is a cons specifying a character range.
21372
213732008-02-01 Kenichi Handa <handa@m17n.org>
21374
21375 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21376 HANDLED_RECOMPUTE_PROPS.
21377
21378 * coding.c (Fdefine_coding_system_internal): Fix checking of
21379 ascii compatibility.
21380
213812008-02-01 Kenichi Handa <handa@m17n.org>
21382
21383 * charset.c (find_charsets_in_text): Delete unused locale variable.
21384 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21385
21386 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21387 Resync charset_list to Vemacs_mule_charset_list.
21388
21389 * keymap.c (store_in_keymap): Pay attention to the case that idx
21390 is a cons specifying a character range.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * composite.c (update_compositions): Bind inhibit-read-only, etc
21395 to t before calling remove-list-of-text-properties.
21396
21397 * print.c (print_object): Always print ASCII chars as is.
21398
213992008-02-01 Kenichi Handa <handa@m17n.org>
21400
21401 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21402
21403 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21404 is a char table.
21405
214062008-02-01 Kenichi Handa <handa@m17n.org>
21407
21408 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21409
214102008-02-01 Kenichi Handa <handa@m17n.org>
21411
21412 * xfaces.c (set_lface_from_font_name): Fix for the case that
21413 FONTNAME is not fontset name.
21414
214152008-02-01 Kenichi Handa <handa@m17n.org>
21416
21417 * fns.c (base64_encode_1): Fix previous change.
21418
214192008-02-01 Kenichi Handa <handa@m17n.org>
21420
21421 * fontset.c (set_fontset_font): New function.
21422 (Fset_fontset_font): If a font is specified for a charset, use
21423 map_charset_chars to store the font spec in a fontset.
21424
214252008-02-01 Kenichi Handa <handa@m17n.org>
21426
21427 * fontset.c (fontset_face): Create a fallback fontset on demand.
21428 (make_fontset): Don't create a fallback fontset here.
21429 (free_face_fontset): Free a fallback fontset (if any) too.
21430 (n_auto_fontsets): Delete this variable.
21431 (auto_fontset_alist): New variable.
21432 (new_fontset_from_font_name): Check auto_fontset_alist.
21433 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21434 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21435 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21436 Defsubr Sfontset_list_all.
21437
214382008-02-01 Kenichi Handa <handa@m17n.org>
21439
21440 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21441
214422008-02-01 Kenichi Handa <handa@m17n.org>
21443
21444 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21445
214462008-02-01 Kenichi Handa <handa@m17n.org>
21447
21448 * editfns.c (Fgoto_char): Fix docstring.
21449
214502008-02-01 Kenichi Handa <handa@m17n.org>
21451
21452 * insdel.c (insert_from_gap): Adjust intervals correctly.
21453
214542008-02-01 Jason Rumney <jasonr@gnu.org>
21455
21456 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21457 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21458 (w32_initialize): Try to load it.
21459 (x_get_font_repertory): Use it if available.
21460 (w32_encode_char): Add shortcut for unicode output.
21461
21462 * w32fns.c (w32_load_system_font): Default charset to -1.
21463 (x_to_w32_charset): Match all fonts for unicode.
21464 (w32_to_x_charset): New parameter matching. Don't return partial
21465 or wildcard charsets.
21466 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21467 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21468 (w32_to_x_font): Match charset to real charset.
21469 (enum_font_cb2): Always list unicode versions.
21470
21471 * makefile.w32-in (temacs): Increase EMHEAP.
21472
214732008-02-01 Jason Rumney <jasonr@gnu.org>
21474
21475 * w32term.c (w32_encode_char): New charset parameter.
21476 font_info.encoding becomes encoding_type.
21477 (x_get_font_repertory): New function. Warning: stub only!
21478 (x_new_font): Return quickly if font already set.
21479 (x_new_fontset): fontsetname parameter is Lisp_Object.
21480 Use new fs_query_fontset. Try new_fontset_from_font_name.
21481 Use fontset_name for return value.
21482
21483 * w32term.h: Declare x_get_font_repertory.
21484
21485 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21486 place of find_charset_in_text. Use encode_coding_object in place
21487 of encode_coding.
21488 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21489 decode_coding.
21490
21491 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21492 of x_new_fontset.
21493 (w32_load_system_font): Initialize charset as unicode.
21494 font_info.encoding becomes encoding_type.
21495 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21496 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21497 (syms_of_w32fns): Set get_font_repertory_func.
21498
21499 * w32console.c: Include character.h. Use terminal_encode_buffer
21500 from term.c.
21501 (write_glyphs): Use new version of encode_terminal_code. Use
21502 encode_coding_object in place of encode_coding.
21503
21504 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21505 encoding becomes encoding_type.
21506
21507 * term.c (terminal_encode_buffer): Make externally visible.
21508
21509 * makefile.w32-in: Add character.h dependancies.
21510 (character.o, chartab.o): New targets.
21511
215122008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21515 CODING_ID_EOL_TYPE.
21516
215172008-02-01 Andreas Schwab <schwab@suse.de>
21518
21519 * coding.c (produce_chars): Revert last change.
21520
215212008-02-01 Kenichi Handa <handa@m17n.org>
21522
21523 * charset.h (charset_unicode): Extern it.
21524
21525 * charset.c (string_xstring_p): Check by (C >= 0x100).
21526 (find_charsets_in_text): Change format of the arc CHARSETS. New
21527 arg MULTIBYTE.
21528 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21529 change of find_charsets_in_text.
21530 (Fsplit_char): Fix doc. Never return unknown.
21531
21532 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21533
21534 * coding.c (Fdefine_coding_system_alias): Update
21535 Vcoding_system_list.
21536
21537 * fontset.c (load_font_get_repertory): Pay attention to the case
21538 that ENCODING of a font is specified by a char-table.
21539
21540 * xterm.c (x_get_font_repertory): Handle the case that the
21541 encoding of font is other than Unicode.
21542
215432008-02-01 Kenichi Handa <handa@m17n.org>
21544
21545 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21546 if a character is encodable by the terminal coding system. If
21547 not, produces proper number of `?'s. Update
21548 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21549 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21550
215512008-02-01 Kenichi Handa <handa@m17n.org>
21552
21553 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21554 variables.
21555 (encode_terminal_code): Change argument. Encode multiple
21556 characters at once. Store the result of encoding in
21557 terminal_encode_buffer.
21558 (write_glyphs, insert_glyphs): Adjust for the change of
21559 encode_terminal_code.
21560 (term_init): Initialize terminal_encode_buffer and
21561 terminal_encode_buf_size.
21562
21563 * coding.c (consume_chars): If coding->src_object is nil, don't
21564 check annotation.
21565
215662008-02-01 Kenichi Handa <handa@m17n.org>
21567
21568 * character.c (char_string): Use ASCII_CHAR_P instead of
21569 SINGLE_BYTE_CHAR_P.
21570
215712008-02-01 Kenichi Handa <handa@m17n.org>
21572
21573 * xdisp.c (handle_auto_composed_prop): Check if the last
21574 characters of auto-composed region is newly composed with the
21575 following characters.
21576 (handle_composition_prop): Fix checking of point being inside
21577 composition.
21578
215792008-02-01 Kenichi Handa <handa@m17n.org>
21580
21581 * fns.c (concat): Don't change multibyteness of the result by
21582 concatenating an 8-bit character.
21583
21584 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21585 multibyteness of the result when newelt is an 8-bit character.
21586
215872008-02-01 Dave Love <fx@gnu.org>
21588
21589 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21590 EMACS_INT.
21591
21592 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21593
21594 * xfaces.c (face_numeric_value): Declare dim size_t.
21595 (Finternal_lisp_face_equal_p): Remove unused f.
21596
21597 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21598 (MATRIX_ROW): Remove unused vars.
21599 (draw_glyphs, x_insert_glyphs, fast_find_position)
21600 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21601 byte/char counts.
21602
21603 * regex.c (regex_compile): Remove unused var.
21604
21605 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21606
21607 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21608 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21609
21610 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21611
21612 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21613
21614 * fileio.c (Fwrite_region): Remove unused var.
21615
21616 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21617 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21618
21619 * composite.c (Fremove_list_of_text_properties): Declare.
21620
21621 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21622 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21623 (coding_inherit_eol_type): Remove unused attrs.
21624 (detect_coding): Cast arg of detect_eol.
21625
21626 * charset.c (syms_of_charset): Remove unused var p.
21627 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21628 byte/char counts.
21629
21630 * casetab.c (set_case_table): Remove unused var.
21631
21632 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21633 unused vars.
21634
216352008-02-01 Dave Love <fx@gnu.org>
21636
21637 * xterm.c (x_bitmap_mask): Declare.
21638
216392008-02-01 Dave Love <fx@gnu.org>
21640
21641 * xterm.c (x_term_init): Fix type error.
21642
21643 * lisp.h: Add Funibyte_char_to_multibyte.
21644
21645 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21646 (Fset_coding_system_priority): Doc fix.
21647
21648 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21649
21650 * indent.c (check_composition): Make start and end EMACS_INT.
21651
21652 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21653
21654 * xdisp.c (handle_composition_prop, check_point_in_composition):
21655 Make buffer positions EMACS_INT.
21656
21657 * composite.c (find_composition, run_composition_function)
21658 (update_compositions, Ffind_composition_internal): Make buffer
21659 positions EMACS_INT.
21660
21661 * composite.h (find_composition, update_compositions): Make
21662 position args EMACS_INT.
21663
21664 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21665
21666 * intervals.c (get_property_and_range):
21667 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21668
21669 * unexalpha.c: Don't include varargs.h.
21670
216712008-02-01 Dave Love <fx@gnu.org>
21672
21673 * coding.h (ENCODE_UTF_8): New.
21674
21675 * Makefile.in (gtkutil.o): Depend on coding.h.
21676
21677 * coding.c (Fset_coding_system_priority): Doc fix.
21678
216792008-02-01 Kenichi Handa <handa@m17n.org>
21680
21681 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21682 the case of auto saving.
21683
216842008-02-01 Andreas Schwab <schwab@suse.de>
21685
21686 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21687 `range' from GC.
21688
216892008-02-01 Kenichi Handa <handa@m17n.org>
21690
21691 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21692
216932008-02-01 Kenichi Handa <handa@m17n.org>
21694
21695 * fileio.c (choose_write_coding_system): Return a decided coding system.
21696 (Fwrite_region): Set Vlast_coding_system_used to the return value
21697 of choose_write_coding_system.
21698
216992008-02-01 Kenichi Handa <handa@m17n.org>
21700
21701 * charset.c (Fset_charset_priority): Pay attention to duplicated
21702 arguments.
21703
21704 * coding.c (QCcategory): New variable.
21705 (syms_of_coding): Defsym it. Set all elements of
21706 Vcoding_category_table and their symbol values.
21707 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21708 coding-category-XXX, and coding-category-list.
21709 (Fdefine_coding_system_internal): Add category in the plist.
21710
217112008-02-01 Kenichi Handa <handa@m17n.org>
21712
21713 * callproc.c (Fcall_process): Handle carryover correctly.
21714
21715 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21716 (raw_text_coding_system): Check NILP (coding_system).
21717 (coding_inherit_eol_type): Check NILP (coding_system) and
21718 NILP (parent).
21719 (consume_chars): Fix for the case of raw-text.
21720
21721 * process.c (read_process_output): Handle carryover correctly.
21722
217232008-02-01 Dave Love <fx@gnu.org>
21724
21725 * regex.c (re_search_2): Fix last change.
21726
217272008-02-01 Kenichi Handa <handa@m17n.org>
21728
21729 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21730 target_multibyte. Even in a unibyte case, return a converted
21731 multibyte char.
21732 (GET_CHAR_AFTER): New macro.
21733 (PATFETCH): Translate via multibyte char.
21734 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21735 (SETUP_MULTIBYTE_RANGE): New macro.
21736 (regex_compile): Setup compiled code so that its multibyteness
21737 matches that of a target. Fix the handling of "[X-YZ]" using
21738 SETUP_MULTIBYTE_RANGE.
21739 (analyse_first) <charset>: For filling fastmap for all multibyte
21740 characters, don't check by BASE_LEADING_CODE_P.
21741 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21742 the same as RE_MULTIBYTE_P (bufp) now.
21743 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21744 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21745 (TRANSLATE_VIA_MULTIBYTE): New macro.
21746 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21747 It is the same as RE_MULTIBYTE_P (bufp) now.
21748 <exactn>: Translate via multibyte.
21749 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21750 translate it.
21751 <charset, charset_not>: Fetch a character by
21752 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21753 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21754 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21755 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21756 by GET_CHAR_AFTER.
21757 (bcmp_translate): Likewise.
21758
21759 * search.c (compile_pattern): Check the member target_multibyte,
21760 not the member multibyte of buf.
21761
21762 * lread.c (read1): While reading a string, set force_singlebyte
21763 and force_multibyte correctly.
21764
21765 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21766 up of unibyte_to_multibyte_table.
21767
217682008-02-01 Kenichi Handa <handa@m17n.org>
21769
21770 * coding.c (setup_coding_system): If coding has
21771 post-read-conversion or pre-write-conversion, set
21772 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21773 respectively.
21774 (decode_coding_gap): Run post-read-conversion if any.
21775
21776 * fileio.c (Finsert_file_contents): Even if we read into a
21777 unibyte buffer, check if we must decode the result or not.
21778
217792008-02-01 Kenichi Handa <handa@m17n.org>
21780
21781 * coding.c (make_conversion_work_buffer): Change the work buffer
21782 name to the same one as that of Emacs 21.
21783
217842008-02-01 Kenichi Handa <handa@m17n.org>
21785
21786 * coding.h (make_conversion_work_buffer): Adjust prototype.
21787 (code_conversion_restore): Don't extern it.
21788
21789 * coding.c (detected_mask): Delete unused variable.
21790 (decode_coding_iso_2022): Pay attention to the byte sequence of
21791 CTEXT extended segment, and retain those bytes as is.
21792 (decode_coding_ccl): Delete unused variable `valids'.
21793 (setup_coding_system): Delete unused variable `category'.
21794 (consume_chars): Delete unused variable `category'. Make it work
21795 for non-multibyte case.
21796 (make_conversion_work_buffer): Change argument.
21797 (saved_coding): Delete unused variable.
21798 (code_conversion_restore): Don't check saved_coding->destination.
21799 (code_conversion_save): New function.
21800 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21801 instead of record_unwind_protect.
21802 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21803 (detect_coding_system): Delete unused variable `mask'.
21804 (Fdefine_coding_system_internal): Delete unused variable id.
21805
21806 * fileio.c (kill_workbuf_unwind): New function.
21807 (Finsert_file_contents): On replacing, call
21808 make_conversion_work_buffer with correct args, and call
21809 record_unwind_protect with the first arg kill_workbuf_unwind.
21810
21811 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21812
218132008-02-01 Kenichi Handa <handa@m17n.org>
21814
21815 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21816 (fontset_add): Fix for the case that TO is less than TO1.
21817 (Ffontset_info): Don't use fallback fontset on checking the
21818 default fontset.
21819 (dump_fontset): New function for debugging.
21820
21821 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21822 coding_type is Qcharset.
21823
218242008-02-01 Kenichi Handa <handa@m17n.org>
21825
21826 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21827 (map_char_table): Don't inherit the value from the parent on
21828 initializing VAL. Adjust for the above change.
21829
218302008-02-01 Kenichi Handa <handa@m17n.org>
21831
21832 * coding.c (Qsignature, Qendian): Delete these variables.
21833 (syms_of_coding): Don't initialize them.
21834 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21835 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21836 detect_info->found.
21837 (decode_coding_utf_16): Don't detect BOM here.
21838 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21839 is NOT utf_16_without_bom.
21840 (setup_coding_system): For a coding system of type utf-16, check
21841 if the attribute :endian is Qbig or not (not nil or not), and set
21842 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21843 (detect_coding): If coding type is utf-16 and BOM detection is
21844 required, detect it.
21845 (Fdefine_coding_system_internal): For a coding system of type
21846 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21847
218482008-02-01 Kenichi Handa <handa@m17n.org>
21849
21850 * coding.c (coding_set_source): Fix for the case that the current
21851 buffer is different from coding->src_object.
21852 (decode_coding_object): Don't use the conversion work buffer if
21853 DST_OBJECT is a buffer.
21854
218552008-02-01 Dave Love <fx@gnu.org>
21856
21857 * lread.c (read_emacs_mule_char) [len==2]: Index
21858 emacs_mule_charset correctly.
21859
218602008-02-01 Dave Love <fx@gnu.org>
21861
21862 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21863 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21864 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21865 treated specially.)
21866 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21867 (detected_mask): Remove Big5 bits.
21868
218692008-02-01 Kenichi Handa <handa@m17n.org>
21870
21871 The following changes are to make the font rescaling facility
21872 compatible with Emacs 21.
21873
21874 * xfaces.c (Vface_font_rescale_alist): Rename from
21875 Vface_resizing_fonts.
21876 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21877 (font_rescale_ratio): Rename from font_resizing_ratio.
21878 (split_font_name): Set font->rescale_ratio.
21879 (better_font_p): Pay attention to font->rescale_ratio.
21880 (build_scalable_font_name): Likewise. Change RESX, and RESY
21881 fields.
21882 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21883
218842008-02-01 Kenichi Handa <handa@m17n.org>
21885
21886 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21887 (Qutf_16_le): Remove these variables.
21888 (syms_of_coding): Don't DEFSYM them.
21889 (decode_coding_utf_16): Fix handling of BOM.
21890 (encode_coding_utf_16): Fix handling of BOM.
21891
218922008-02-01 Kenichi Handa <handa@m17n.org>
21893
21894 * fileio.c (Finsert_file_contents): On replacing, before decoding
21895 the file into the work buffer, set point of the work buffer to the end.
21896
218972008-02-01 Dave Love <fx@gnu.org>
21898
21899 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21900
219012008-02-01 Dave Love <fx@gnu.org>
21902
21903 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21904 and fix C types.
21905
219062008-02-01 Kenichi Handa <handa@m17n.org>
21907
21908 * xdisp.c (SKIP_GLYPHS): New macro.
21909 (set_cursor_from_row): Pay attention to string display properties.
21910
21911 * category.c (copy_category_entry): Fix for the case that RANGE
21912 is an integer.
21913
21914 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21915
21916 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21917
219182008-02-01 Kenichi Handa <handa@m17n.org>
21919
21920 * charset.c (Fcharset_id_internal): New function.
21921 (syms_of_charset): Defsubr it.
21922
21923 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21924 with the last arg charset_list acquired from coding.
21925 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21926 the attribute coding_attr_ccl_valids.
21927
21928 * coding.h (enum define_coding_ccl_arg_index): Set the first
21929 member coding_arg_ccl_decoder to coding_arg_max.
21930
21931 * ccl.h (ccl_driver): Adjust prototype.
21932
21933 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21934 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21935 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21936 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21937 last arg Qnil.
21938
219392008-02-01 Kenichi Handa <handa@m17n.org>
21940
21941 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21942 call encode_char.
21943
21944 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21945
219462008-02-01 Dave Love <fx@gnu.org>
21947
21948 * composite.c (syms_of_composite): Make composition_hash_table weak.
21949
219502008-02-01 Kenichi Handa <handa@m17n.org>
21951
21952 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21953 (font_name_registry): Don't extern them.
21954 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21955
21956 * fontset.h (Qfontset): Don't extern it.
21957 (new_fontset_from_font_name): Extern it.
21958
21959 * fontset.c: Give 8 extra slots to fontset objects.
21960 (Qfontset_info): New variable.
21961 (syms_of_fontset): Defsym it.
21962 (FONTSET_FALLBACK): New macro.
21963 (fontset_face): Try also the default fontset.
21964 (make_fontset): Realize a fallback fontset from the default fontset.
21965 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21966 using split_font_name_into_vector and build_font_name_from_vector.
21967 (Fset_fontset_font): Access the elements of font_spec by enum
21968 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21969 name by using split_font_name_into_vector.
21970 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21971 generate a proper font name from the fontset name. Update
21972 Vfontset_alias_alist.
21973 (n_auto_fontsets): New variable.
21974 (new_fontset_from_font_name): New function.
21975 (Ffont_info): Store the information about fonts generated from the
21976 default fontset in the first extra slot of the returned char-table.
21977
21978 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21979 (font_name_registry): Delete function.
21980 (split_font_name_into_vector): New function.
21981 (build_font_name_from_vector): New function.
21982 (font_list): The argument REGISTRY is now a list of registry names.
21983 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21984 specifies an explicit font name, return the name as is. Make a
21985 list of registy names.
21986
21987 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21988 of x_new_fontset.
21989 (Fx_create_frame): Don't call x_new_fontset here. Just use
21990 x_list_fonts to check the existence of fonts.
21991
21992 * xterm.h (x_new_fontset): Adjust prototype.
21993
21994 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21995 string. Use new_fontset_from_font_name to create a fontset from a
21996 font name.
21997
219982008-02-01 Kenichi Handa <handa@m17n.org>
21999
22000 * syntax.c (Vfind_word_boundary_function_table): New name for
22001 Vnext_word_boundary_function_table.
22002 (find-word-boundary-function-table): New name for
22003 next-word-boundary-function-table.
22004
220052008-02-01 Dave Love <fx@gnu.org>
22006
22007 * Makefile.in: Fix some dependencies.
22008
22009 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22010 set it to nil before returning.
22011
22012 * composite.c (update_compositions): Fix type error.
22013
22014 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22015
220162008-02-01 Kenichi Handa <handa@m17n.org>
22017
22018 * xterm.c (x_new_font): Optimize for the case that the font is
22019 already set for the frame.
22020
220212008-02-01 Kenichi Handa <handa@m17n.org>
22022
22023 * chartab.c (char_table_ascii): Check if the char table contents
22024 is sub-char-table or not.
22025 (char_table_set, char_table_set_range): Fix argument to
22026 char_table_ascii.
22027
22028 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22029 (detect_coding_utf_8, detect_coding_utf_16)
22030 (detect_coding_emacs_mule, detect_coding_iso_2022)
22031 (detect_coding_sjis, detect_coding_big5)
22032 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22033 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22034 sequence is valid in this coding system. Change callers.
22035 (MAX_ANNOTATION_LENGTH): New macro.
22036 (ADD_ANNOTATION_DATA): New macro.
22037 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22038 ADD_ANNOTATION_DATA. Change the format of annotation data.
22039 (ADD_CHARSET_DATA): New macro.
22040 (emacs_mule_char): New argument ID. Change callers.
22041 (decode_coding_emacs_mule, decode_coding_iso_2022)
22042 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22043 Produce charset annotation data in coding->charbuf.
22044 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22045 to charset annotation data in coding->charbuf.
22046 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22047 coding->common_flags if the coding system is iso-2022 based and
22048 uses designation.
22049 (produce_composition): Adjust for the new annotation data format.
22050 (produce_charset): New function.
22051 (produce_annotation): Handle charset annotation.
22052 (handle_composition_annotation, handle_charset_annotation): New
22053 functions.
22054 (consume_chars): Handle charset annotation. Utilize the above two
22055 functions.
22056 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22057 buffer, get the deleted text as a string and set
22058 coding->src_object to that string.
22059 (detect_coding, detect_coding_system): Use the new struct
22060 coding_detection_info.
22061
22062 * coding.h (struct coding_detection_info): New structure.
22063 (struct coding_system): Adjust prototype of the member `detector'.
22064 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22065
220662008-02-01 Kenichi Handa <handa@m17n.org>
22067
22068 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22069
220702008-02-01 Dave Love <fx@gnu.org>
22071
22072 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22073 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22074 to new local and nullify apropos_accumulate before returning.
22075 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22076
220772008-02-01 Kenichi Handa <handa@m17n.org>
22078
22079 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22080 correctly.
e3eea1fc 22081
aac0c6e3
MR
220822008-02-01 Dave Love <fx@gnu.org>
22083
22084 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22085
220862008-02-01 Kenichi Handa <handa@m17n.org>
22087
22088 The following changes are to make character composition happen
22089 automatically on displaying.
22090
22091 * Makefile.in (lisp, shortlisp): Add composite.elc.
22092
22093 * composite.h (Qauto_composed, Vauto_composition_function)
22094 (Qauto_composition_function): Extern them.
22095
22096 * composite.c (Vcomposition_function_table)
22097 (Qcomposition_function_table): Delete variables.
22098 (Qauto_composed, Vauto_composition_function)
22099 (Qauto_composition_function): New variables.
22100 (run_composition_function): Don't call
22101 compose-chars-after-function.
22102 (update_compositions): Clear `auto-composed' text property.
22103 (compose_chars_in_text): Delete this function.
22104 (syms_of_composite): Staticpro Qauto_composed and
22105 Qauto_composition_function. Declare Vauto_composition_function as
22106 a Lisp variable.
22107
22108 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22109
22110 * xdisp.c (it_props): Add an entry for Qauto_composed.
22111 (handle_auto_composed_prop): New function.
22112
22113 * xselect.c (selection_data_to_lisp_data): Don't call
22114 compose_chars_in_text.
22115
221162008-02-01 Dave Love <fx@gnu.org>
22117
22118 * keyboard.c (read_char): Modify checking around use of
22119 Vkeyboard_translate_table.
22120
22121 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22122 and fix C types.
22123
221242008-02-01 Kenichi Handa <handa@m17n.org>
22125
22126 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22127 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22128 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22129 the case that the last byte is '\r' correctly.
22130 (decode_coding): Flush out the unprocessed data correctly.
22131 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22132
221332008-02-01 Dave Love <fx@gnu.org>
22134
22135 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22136 Add XK_ISO... case.
22137 (xaw_scroll_callback): Revert last change.
22138
221392008-02-01 Kenichi Handa <handa@m17n.org>
22140
22141 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22142
221432008-02-01 Kenichi Handa <handa@m17n.org>
22144
22145 * xfaces.c (Vface_resizing_fonts): New variable.
22146 (struct font_name): New member `resizing_ratio'.
22147 (font_resizing_ratio): New function.
22148 (split_font_name): Set font->resizing_ratio.
22149 (better_font_p): Pay attention to font->resizing_ratio.
22150 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22151 RESX, and RESY fields.
22152 (try_alternative_families): Try scalable fonts if
22153 Vscalable_fonts_allowed is not Qt.
22154 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22155
221562008-02-01 Dave Love <fx@gnu.org>
22157
22158 * xterm.c (xaw_scroll_callback): Cast correctly.
22159
221602008-02-01 Dave Love <fx@gnu.org>
22161
22162 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22163 (lispy_kana_keys): Comment out.
22164 (make_lispy_event) [XK_kana_A]: Comment out.
22165
22166 * xterm.c (xaw_scroll_callback): Cast call_data.
22167 (XTread_socket): Deal with ASCII keysyms.
22168 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22169
221702008-02-01 Dave Love <fx@gnu.org>
22171
22172 * xterm.c (Vx_keysym_table): New.
22173 (syms_of_xterm): Initialize it.
22174 (XTread_socket): Use it.
22175 From head: Eliminate incorrect optimization that tried to avoid
22176 decoding the output of X*LookupString.
22177 (x_get_font_repertory): Delete charset declaration.
22178
221792008-02-01 Kenichi Handa <handa@m17n.org>
22180
22181 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22182 return 0.
22183 (Fdefine_coding_system_internal): Setup
22184 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22185
221862008-02-01 Dave Love <fx@gnu.org>
22187
22188 * coding.c (Fcheck_coding_system): Doc fix.
22189
22190 * editfns.c (Finsert_byte): Return a proper value.
22191
221922008-02-01 Kenichi Handa <handa@m17n.org>
22193
22194 * coding.c (decode_coding): Fix args to translate_chars. Pay
22195 attention to Vstandard_translation_table_for_decode.
22196 (encode_coding): Fix args to translate_chars. Pay attention to
22197 Vstandard_translation_table_for_encode.
22198
22199 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22200 SINGLE_BYTE_CHAR_P.
22201
22202 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22203 not by SINGLE_BYTE_CHAR_P.
22204
22205 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22206 SINGLE_BYTE_CHAR_P.
22207
22208 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22209 SINGLE_BYTE_CHAR_P.
22210
22211 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22212 by SINGLE_BYTE_CHAR_P.
22213
22214 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22215 SINGLE_BYTE_CHAR_P.
22216
222172008-02-01 Dave Love <fx@gnu.org>
22218
22219 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22220
222212008-02-01 Dave Love <fx@gnu.org>
22222
22223 * fns.c (Flanginfo): Fix typo.
22224
22225 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22226
222272008-02-01 Kenichi Handa <handa@m17n.org>
22228
22229 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22230 (detect_coding_emacs_mule, detect_coding_iso_2022)
22231 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22232 incomplete byte sequence. Don't update *mask when correctly detected.
22233 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22234 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22235 (detect_coding, detect_coding_system): Adjust for the changes above.
22236
222372008-02-01 Kenichi Handa <handa@m17n.org>
22238
22239 * character.c (char_string): Rename from
22240 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22241 (string_char): Rename from string_char.
22242
22243 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22244 if C is greater than MAX_3_BYTE_CHAR.
22245 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22246 string_char instead of string_char_with_unification.
22247
222482008-02-01 Dave Love <fx@gnu.org>
22249
22250 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22251
222522008-02-01 Kenichi Handa <handa@m17n.org>
22253
22254 * keymap.c (push_key_description): Pay attention to force_multibyte.
22255
22256 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22257
222582008-02-01 Dave Love <fx@gnu.org>
22259
22260 * charset.c (define_charset_internal): Rename `supprementary'.
22261
22262 * Makefile.in (lisp, shortlisp): Remove latin-N.
22263
222642008-02-01 Dave Love <fx@gnu.org>
22265
22266 * xfns.c (x_window, x_window): Use use_xim.
22267
22268 * xterm.c (use_xim): Initialize.
22269 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22270 (x_term_init): Maybe set use_xim.
22271
22272 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22273
222742008-02-01 Kenichi Handa <handa@m17n.org>
22275
22276 * search.c (search_buffer): Fix case-fold-search of multibyte
22277 characters.
22278 (boyer_moore): Rename the last argument to char_high_bits.
22279
222802008-02-01 Kenichi Handa <handa@m17n.org>
22281
22282 * xdisp.c (display_string): Fix for the case of zero width glyph.
22283
22284 * xfns.c (x_set_font): Change the error message of the case that
22285 x_new_fontset returns Qt.
22286
22287 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22288 (Finternal_set_lisp_face_attribute): Use signal_error for the
22289 error of invalid fontset.
22290
22291 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22292 fontset, return Qt.
22293
222942008-02-01 Dave Love <fx@gnu.org>
22295
22296 * unexelf.c (unexec): Make .got handling not SGI-specific.
22297
22298 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22299
22300 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22301
22302 * keyboard.c (read_key_sequence): Fix type error.
22303
22304 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22305 type error.
22306
22307 * fontset.c (fontset_add): Return Lisp_Object.
22308
223092008-02-01 Dave Love <fx@gnu.org>
22310
22311 * charset.h (charset_ordered_list_tick): Declare extern.
22312
223132008-02-01 Kenichi Handa <handa@m17n.org>
22314
22315 The following changes (and some of 2008-02-01 changes of mine) are
22316 for handling syntax, category, and case conversion for unibyte
22317 characters by converting them to multibyte on the fly. With these
22318 changes, we don't have to setup syntax and case tables for unibyte
22319 characters in each language environment.
22320
22321 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22322 multibyte if necessary.
22323
22324 * bytecode.c (Fbyte_code): Likewise.
22325
22326 * character.h (LEADING_CODE_LATIN_1_MIN)
22327 (LEADING_CODE_LATIN_1_MAX): New macros.
22328 (unibyte_to_multibyte_table): Extern it.
22329 (unibyte_char_to_multibyte): New macro.
22330 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22331 (CHAR_LEADING_CODE): New macro.
22332 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22333
22334 * character.c (unibyte_to_multibyte_table): New variable.
22335 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22336 (multibyte_char_to_unibyte): If C is an eight-bit character,
22337 convert it to the corresponding byte value.
22338
22339 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22340 not 1, signals an error. Update the elements of
22341 unibyte_to_multibyte_table.
22342 (init_charset_once): Initialize unibyte_to_multibyte_table.
22343 (syms_of_charset): Define the charset `iso-8859-1'.
22344
22345 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22346 as is without converting it to unibyte. In a unibyte buffer,
22347 convert C to multibyte before checking the syntax.
22348
22349 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22350
22351 * minibuf.c (Fminibuffer_complete_word): Use the macro
22352 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22353
22354 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22355
22356 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22357 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22358 that is zero, convert an eight-bit char to multibyte.
22359 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22360 non-emacs case.
22361 (PATFETCH): Convert an eight-bit char to multibyte.
22362 (HANDLE_UNIBYTE_RANGE): New macro.
22363 (regex_compile): Setup the compiled pattern for multibyte chars
22364 even if the given regex string is unibyte. Use PATFETCH_RAW
22365 instead of PATFETCH in many places. To handle `charset'
22366 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22367 only for ASCII chars.
22368 (analyse_first) <exactn>: Simplify because the compiled pattern
22369 is multibyte.
22370 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22371 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22372 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22373 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22374 multibyte always 1.
22375 (re_search_2): In emacs, set the locale variable multibyte to 1,
22376 otherwise to 0. New local variable target_multibyte. Check it
22377 to decide the multibyteness of STR1 and STR2. If
22378 target_multibyte is zero, convert unibyte chars to multibyte
22379 before translating and checking fastmap.
22380 (TARGET_CHAR_AND_LENGTH): New macro.
22381 (re_match_2_internal): In emacs, set the locale variable multibyte
22382 to 1, otherwise to 0. New local variable target_multibyte. Check
22383 it to decide the multibyteness of STR1 and STR2. Use
22384 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22385 <charset, charset_not>: If multibyte is nonzero, check fastmap
22386 only for ASCII chars. Call bcmp_translate with
22387 target_multibyte, not with multibyte.
22388 <begline>: Declare the local variable C as `unsigned'.
22389 (bcmp_translate): Change the last arg name to target_multibyte.
22390
22391 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22392 the regexp pattern and the matching target. Set cp->buf.multibyte
22393 to the multibyteness of the regexp pattern. Set
22394 cp->but.target_multibyte to the multibyteness of the matching target.
22395 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22396 FETCH_STRING_CHAR_ADVANCE.
22397 (Freplace_match): Convert unibyte chars to multibyte.
22398
22399 * syntax.c (char_quoted, back_comment, scan_words)
22400 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22401 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22402 unibyte chars to multibyte.
22403 (skip_chars): Delete the arg syntaxp, and move the code for
22404 handling syntaxes to skip_syntaxes. Change callers.
22405 Fix the case that the multibyteness of STRING and the current
22406 buffer doesn't match.
22407 (skip_syntaxes): New function.
22408 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22409 SINGLE_BYTE_CHAR_P.
22410
224112008-02-01 Kenichi Handa <handa@m17n.org>
22412
22413 * xfaces.c (QCfontset): New variable.
22414 (LFACE_FONTSET): New macro.
22415 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22416 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22417 (Finternal_set_lisp_face_attribute)
22418 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22419 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22420 check also LFACE_FONTSET_INDEX.
22421 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22422 attrs[LFACE_FONT_INDEX].
22423 (syms_of_xfaces): Intern and staticpro QCfontset.
22424
22425 * dispextern.h (enum lface_attribute_index): New member
22426 LFACE_FONTSET_INDEX.
22427
22428 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22429
224302008-02-01 Kenichi Handa <handa@m17n.org>
22431
22432 * coding.c (coding_set_destination): Fix coding->destination for
22433 the case converting a region.
22434 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22435 (encode_coding_object): Fix coding->dst_pos and
22436 coding->dst_pos_byte for the case converting a region.
22437
22438 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22439
22440 * character.h (BYTE8_STRING): New macro.
22441
22442 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22443
224442008-02-01 Kenichi Handa <handa@m17n.org>
22445
22446 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22447 characters by octal form.
22448
22449 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22450
22451 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22452 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22453 _fetch_multibyte_char_len.
22454 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22455
22456 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22457
22458 * casefiddle.c (casify_object): Simplify. Handle the case that
22459 the case conversion change the byte length.
22460 (casify_region): Likewise.
22461
22462 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22463
22464 * character.c (_fetch_multibyte_char_len): Delete this variable.
22465 (syms_of_character): Setup Vprintable_chars.
22466
22467 * editfns.c (Fchar_equal): Fix for the unibyte case.
22468 (Finsert_byte): New function.
22469 (syms_of_editfns): Defsubr it.
22470
22471 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22472 of direct code 0x3ffff.
22473
22474 * search.c (Freplace_match): Fix for the unibyte case.
22475
224762008-02-01 Kenichi Handa <handa@m17n.org>
22477
22478 * lread.c (safe_to_load_p): Fix the logic.
22479
22480 * syntax.c (scan_words): Don't treat characters belonging to
22481 different scripts as constituting a word.
22482
22483 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22484
22485 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22486
22487 * emacs.c (main): In the case of --unibyte, instead of aborting on
22488 finding non-empty buffer, make it unibyte.
22489
224902008-02-01 Kenichi Handa <handa@m17n.org>
22491
22492 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22493 to create a fontset.
22494
224952008-02-01 Dave Love <fx@gnu.org>
22496
22497 * character.c (Funibyte_char_to_multibyte): Doc fix.
22498
22499 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22500
225012008-02-01 Kenichi Handa <handa@m17n.org>
22502
22503 * fontset.c (fontset_add): Make the type `int'.
22504 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22505
22506 * character.c (unibyte_char_to_multibyte)
22507 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22508 charset_unibyte, not charset_primary.
22509
22510 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22511
22512 * charset.c (charset_unibyte): Rename from charset_primary.
22513 (Funibyte_charset): Rename from Fprimary_charset.
22514 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22515 (syms_of_charset): Adjust for the above changes.
22516
22517 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22518 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22519 it->multibyte_p is zero.
22520
22521 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22522 Delete extern.
22523
225242008-02-01 Kenichi Handa <handa@m17n.org>
22525
22526 * coding.c (Fdefine_coding_system_internal): Fix category setting
22527 for a coding system of type iso-2022.
22528
225292008-02-01 Kenichi Handa <handa@m17n.org>
22530
22531 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22532
225332008-02-01 Kenichi Handa <handa@m17n.org>
22534
22535 * syntax.c (Vnext_word_boundary_function_table): New variable.
22536 (next-word-boundary-function-table): Declare it as a Lisp variable
22537 in syms_of_syntax.
22538 (scan_words): Call functions in Vnext_word_boundary_function_table
22539 if any.
22540
22541 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22542
22543 * fontset.c (fs_load_font): If fontp->charset is not negative,
22544 return fontp without setting its members.
22545
225462008-02-01 Dave Love <fx@gnu.org>
22547
22548 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22549
22550 * m/sparc.h (HAVE_ALLOCA): Delete.
22551
22552 * s/irix6-5.h: Don't include strings.h.
22553 (bcopy, bzero, bcmp): Don't undef.
22554
22555 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22556
22557 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22558 (TIOCSIGSEND): Don't test IRIX6.
22559 (bcopy, bzero, bcmp): Define conditionally.
22560
225612008-02-01 Kenichi Handa <handa@m17n.org>
22562
22563 * buffer.c (Qas, Qmake, Qto): New variables.
22564 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22565 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22566
22567 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22568 we are inserting a process output into a multibyte buffer.
22569
22570 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22571 multibyte_char_to_unibyte.
22572
22573 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22574 by the primary charset, make it eight-bit char.
22575 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22576
22577 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22578 (charset_8_bit__control, charset_8_bit_graphic)
22579 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22580 (define_charset_internal): New function.
22581 (syms_of_charset): Call define_charset_internal for pre-defined
22582 charsets.
22583
22584 * charset.h (charset_8_bit): Extern it.
22585
22586 * coding.c (make_conversion_work_buffer): Adjust for the change
22587 of Fset_buffer_multibyte.
22588 (encode_coding_raw_text): Increment p0 in the loop.
22589
22590 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22591
22592 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22593 for the change of Fset_buffer_multibyte.
22594
22595 * fns.c (Fstring_to_multibyte): New function.
22596 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22597
225982008-02-01 Dave Love <fx@gnu.org>
22599
22600 * xfns.c (x_put_x_image): Declare args.
22601
22602 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22603 (try_font_list): Declare an arg.
22604
22605 * xdisp.c (message2_nolog, set_message): Declare an arg.
22606
22607 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22608
22609 * syntax.c (scan_sexps_forward): Declare an arg.
22610
22611 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22612 Declare an arg.
22613
22614 * lisp.h (Fnew_fontset): Declare.
22615
22616 * keymap.c (push_key_description): Call CHARACTERP correctly.
22617
22618 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22619 (face_for_char): Delete unused vars.
22620 (Fset_fontset_font): Doc fix. Delete unused vars.
22621
22622 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22623
22624 * composite.c (update_compositions): Declare arg.
22625
22626 * cm.c (calccost, cmgoto): Declare args.
22627
22628 * charset.c: Remove `emacs' conditional. Doc fixes.
22629 (map_char_table_for_charset): Declare.
22630
22631 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22632
22633 * ccl.c: Remove `emacs' conditional.
22634
226352008-02-01 Kenichi Handa <handa@m17n.org>
22636
22637 The following changes are to allow specifying multiple font
22638 patterns for a character range (specified by script or charset).
22639
22640 * Makefile.in (abbrev.o): Depend on syntax.h.
22641 (xfaces.o): Depend on charset.h.
22642
22643 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22644 SINGLE_BYTE_CHAR_P.
22645
22646 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22647
22648 * character.h (Vchar_script_table): Extern it.
22649
22650 * character.c (Vscript_alist): Delete.
22651 (Vchar_script_table, Qchar_script_table): New variable.
22652 (syms_of_character): Declare Vchar_script_table as a lisp variable
22653 and initialize it.
22654
22655 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22656 have property char-table-extra-slots, make no extra slot.
22657
22658 * dispextern.h (struct face): Delete member `charset'.
22659 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22660 SINGLE_BYTE_CHAR_P.
22661 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22662 Add prototypes.
22663 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22664 (generate_ascii_font_name): Rename from generate_ascii_font.
22665
22666 * fontset.h (get_font_repertory_func): New prototype.
22667 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22668 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22669
22670 * fontset.c (Qprepend, Qappend): New variables.
22671 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22672 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22673 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22674 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22675 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22676 (load_font_get_repertory): New functions.
22677 (fontset_set): Delete.
22678 (fontset_face): New arg FACE. Return face ID, not face.
22679 Complete re-write to handle new fontset structure. Change caller.
22680 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22681 (face_for_char): Don't call lookup_face.
22682 (make_fontset_for_ascii_face): New arg FACE.
22683 (fs_load_font): New arg CHARSET_ID. Don't check
22684 Vfont_encoding_alist here.
22685 (find_font_encoding): New function.
22686 (list_fontsets): Use STRINGP, not ! NILP.
22687 (accumulate_script_ranges): New function.
22688 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22689 re-written to handle new fontset structure.
22690 (Ffontset_font): Return a copy of element.
22691 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22692 docstring of font-encoding-alist.
22693
22694 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22695 (Fset_fotset_font): Fix arguments to 5.
22696
22697 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22698
22699 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22700 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22701 (highlight_trailing_whitespace): Adjust for the change of
22702 lookup_named_face.
22703
22704 * xfaces.c: Include charset.h.
22705 (load_face_font): Delete argument C. Change caller.
22706 (generate_ascii_font_name): Rename from generate_ascii_font.
22707 (font_name_registry): New function.
22708 (cache_face): Store ascii faces before non-ascii faces in buckets.
22709 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22710 Lookup only ascii faces.
22711 (lookup_non_ascii_face): New function.
22712 (lookup_named_face): Delete argument C. Change caller.
22713 (lookup_derived_face): Delete argument C. Change caller.
22714 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22715 a string, just call font_list with it.
22716 (choose_face_font): Delete arguments FACE and C. New arg
22717 FONT_SPEC. Change caller.
22718 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22719 Change caller.
22720 (realize_non_ascii_face): New function.
22721 (realize_x_face): Call load_face_font here.
22722 (realize_tty_face): Delete argument C. Change caller.
22723 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22724 get a face ID.
22725 (dump_realized_face): Don't print charset of FACE.
22726
22727 * xfns.c (x_set_font): Always call x_new_fontset and
22728 store_frame_parameter.
22729 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22730 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22731
22732 * xterm.h (x_get_font_repertory): Extern it.
22733
22734 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22735 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22736 it->multibyte_p is zero.
22737 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22738 (x_new_fontset): If FONTSETNAME doesn't match any existing
22739 fontsets, create a new one.
22740 (x_get_font_repertory): New function.
22741
227422008-02-01 Kenichi Handa <handa@m17n.org>
22743
22744 * coding.c (Ffind_coding_systems_region_internal): Detect an
22745 ASCII only string correctly.
22746
22747 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22748 version is 0.
22749
227502008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * lread.c: Include "coding.h".
22753 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22754 (load_each_byte, unread_char): New variables.
22755 (readchar_backlog): Delete.
22756 (readchar): Return a character unless load_each_byte is nonzero.
22757 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22758 cons. If unread_char is not -1, simply return it.
22759 (unreadchar): Handle the case that readcharfun is
22760 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22761 (read_multibyte): Delete.
22762 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22763 (read_emacs_mule_char): New functions.
22764 (Fload): Even if the file doesn't have the extension ".elc", if
22765 safe_to_load_p returns a positive version number, assume that the
22766 file contains bytecompiled code. If the version is less than 22,
22767 load the file while decoding multibyte sequences by emacs-mule.
22768 (readevalloop): Don't use readchar_backlog.
22769 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22770 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22771 (read_escape): Delete the arg BYTEREP.
22772 (read1): Set load_each_byte to 1 temporarily while handling
22773 #@NUMBER. Don't call read_multibyte.
22774 (read_vector): Call Fread with a cons. If readcharfun is
22775 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22776 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22777 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22778 and Qload_force_doc_strings.
22779
227802008-02-01 Kenichi Handa <handa@m17n.org>
22781
22782 * xdisp.c (face_before_or_after_it_pos): Call
22783 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22784
227852008-02-01 Kenichi Handa <handa@m17n.org>
22786
22787 * character.h (TRAILING_CODE_P): New macro.
22788 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22789 (string_char_with_unification): Fix prototype.
22790 (Vscript_alist): Extern it.
22791
22792 * character.c (Vscript_alist): New variable.
22793 (string_char_with_unification, str_as_unibyte)
22794 (string_escape_byte8): Add `const' to local variables.
22795 (syms_of_character): Declare script-alist as a Lisp variable.
22796
22797 * charset.h (Vcharset_ordered_list): Extern it.
22798 (charset_ordered_list_tick): Extern it.
22799 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22800 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22801 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22802 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22803 (Funify_charset): Adjust for the change of Funify_charset.
22804
22805 * charset.c (charset_ordered_list_tick): New variable.
22806 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22807 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22808 deunify instead of unify a charset.
aac0c6e3
MR
22809 (string_xstring_p): Add `const' to local variables.
22810 (find_charsets_in_text): Add `const' to arguments and local variables.
22811 (encode_char): Adjust for the change of Funify_charset. Fix
22812 detecting of invalid code.
22813 (Fset_charset_priority): Increment charset_ordered_list_tick.
22814 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22815 and TO_CODE.
22816
22817 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22818 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22819 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22820 (decode_coding_ccl, consume_chars)
22821 (Ffind_coding_systems_region_internal)
22822 (Fcheck_coding_systems_region): Add `const' to local variables.
22823
22824 * print.c (print_object): Use octal form for printing the
22825 contents of a bool vector.
22826
228272008-02-01 Dave Love <fx@gnu.org>
22828
22829 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22830 <version == 20>: Refuse to load.
22831
228322008-02-01 Dave Love <fx@gnu.org>
22833
22834 * fns.c: Move coding.h.
22835 (Qcodeset, Qdays, Qmonths): New.
22836 (concat): Use CHARACTERP instead of INTEGERP.
22837 (Flocale_codeset): Delete.
22838 (Flanginfo): New function.
22839 (syms_of_fns): Change accordingly.
22840
22841 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22842
228432008-02-01 Dave Love <fx@gnu.org>
22844
22845 * casetab.c (init_casetab_once, init_casetab_once): Fix
22846 CHAR_TABLE_SET call.
22847
22848 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22849
22850 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22851
22852 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22853 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22854 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22855
22856 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22857
22858 * coding.c (ENCODE_DESIGNATION, decode_eol)
22859 (make_conversion_work_buffer, code_conversion_restore)
22860 (Fdefine_coding_system_internal): Convert Lisp types.
22861 (code_conversion_restore): Use EQ, not ==.
22862 (Fencode_coding_string): Fix code_convert_string call.
22863
22864 * coding.h (code_convert_region): Fix prototype.
22865
22866 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22867
22868 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22869 (Ffontset_info): Convert Lisp types.
22870
22871 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22872
22873 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22874
22875 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22876
22877 * chartab.c: Include "...h", not <...h> in some cases.
22878
22879 * callproc.c (Fcall_process): Remove unused variables.
22880
228812008-02-01 Dave Love <fx@gnu.org>
22882
22883 * coding.c (Fset_coding_system_priority): Allow null arg list.
22884
228852008-02-01 Dave Love <fx@gnu.org>
22886
22887 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22888 (Fself_insert_and_exit): Use CHARACTERP.
22889
22890 * callproc.c (Fcall_process): Remove unused vars.
22891
22892 * xterm.c (XTread_socket): Add extra dead keysyms.
22893
22894 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22895
22896 * dispextern.h: Remove prototypes for redraw_frame,
22897 redraw_garbaged_frames.
22898
22899 * cmds.c (Fself_insert_command): Use CHARACTERP.
22900
22901 * chartab.c (make_sub_char_table): Remove unused var.
22902 (Fset_char_table_default, Fmap_char_table): Doc fix.
22903
22904 * keymap.c (access_keymap): Remove generic char code.
22905 (push_key_description): Use CHARACTERP.
22906
229072008-02-01 Dave Love <fx@gnu.org>
22908
22909 * charset.c: Doc fixes.
22910 (Funify_charset): Extra checking.
22911
229122008-02-01 Dave Love <fx@gnu.org>
22913
22914 * lread.c: Remove some unused variables.
22915 (safe_to_load_p): If safe, return the magic number version byte.
22916 (Fload): Maybe use load-with-code-conversion.
22917
229182008-02-01 Kenichi Handa <handa@m17n.org>
22919
22920 * category.c (Fmodify_category_entry): Don't modify the contents
22921 of category_set for characters out of the range. Avoid
22922 unnecessary modification.
22923
22924 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22925 Vchar_unify_table. The default value of the table is now nil.
22926
22927 * character.c (syms_of_character): Setup Vchar_width_table for
22928 eight-bit-control and raw-byte chars.
22929
22930 * charset.h (enum define_charset_arg_index): Delete
22931 charset_arg_parents and add charset_arg_subset and
22932 charset_arg_superset.
22933 (enum charset_attr_index): Delete charset_parents and add
22934 charset_subset and charset_superset.
22935 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22936 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22937 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22938 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22939 (CHARSET_SUPERSET): New macros.
22940 (charset_work): Extern it.
22941 (ENCODE_CHAR): Use charset_work.
22942 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22943 (map_charset_chars): Extern it.
22944
22945 * charset.c (load_charset_map): Set the default value of encoder
22946 and deunifier char-tables to nil.
22947 (map_charset_chars): Change argument. Change callers. Use
22948 map_char_table_for_charset instead of map_char_table.
22949 (Fmap_charset_chars): New optional args from_code and to_code.
22950 (Fdefine_charset_internal): Adjust for the change of
22951 `define-charset' (:parents -> :subset or :superset).
22952 (charset_work): New variable.
22953 (encode_char, syms_of_charset): Adjust for the change of
22954 Fdefine_charset_internal.
22955 (Ffind_charset_string): Setup the vector `charsets' correctly.
22956
22957 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22958 the previous change.
22959 (char_table_ref_and_range): Adjust for the above change.
22960 (map_sub_char_table_for_charset): New function.
22961 (map_char_table_for_charset): New function.
22962
22963 * keymap.c (describe_vector): Handle a char-table directly here.
22964 (describe_char_table): Delete.
22965
22966 * lisp.h (map_charset_chars): Delete.
22967
229682008-02-01 Dave Love <fx@gnu.org>
22969
22970 * fns.c (count_combining): Comment out (unused).
22971 (Flocale_codeset): New.
22972 (syms_of_fns): Defsubr it.
22973
22974 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22975 (size_t): Remove.
22976
229772008-02-01 Dave Love <fx@gnu.org>
22978
22979 * Makefile.in (chartab.o): Depend on charset.h.
22980
229812008-02-01 Kenichi Handa <handa@m17n.org>
22982
22983 * character.c (syms_of_character): Set the default value of
22984 Vprintable_chars to Qnil.
22985
229862008-02-01 Dave Love <fx@gnu.org>
22987
22988 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22989
229902008-02-01 Kenichi Handa <handa@m17n.org>
22991
22992 * charset.c (load_charset_map): Handle the case that from < to
22993 correctly.
22994
22995 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22996 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22997 Pay attention to raw-8-bit chars.
22998
229992008-02-01 Kenichi Handa <handa@m17n.org>
23000
23001 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23002 It is not bytecompiled now.
23003
23004 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23005 (charset_jisx0208): New variables.
23006 (Fdefine_charset_internal): Setup them if appropriate.
23007 (init_charset_once): Initialize them to -1.
23008
23009 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23010 (charset_jisx0208): Extern them.
23011
23012 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23013 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23014 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23015 (setup_iso_safe_charsets): Fix arguments to Fassq.
23016 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23017 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23018 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23019 (encode_coding_iso_2022): Change the 1st arg to
23020 ENCODE_ISO_CHARACTER to a variable.
23021
230222008-02-01 Kenichi Handa <handa@m17n.org>
23023
23024 * charset.h (enum define_charset_arg_index): New enums
23025 charset_arg_min_code and charset_arg_max_code.
23026 (struct charset): New member char_index_offset.
23027
23028 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23029 Take charset->char_index_offset into account.
23030 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23031 args[charset_arg_max_code]. Setup charset.char_index_offset.
23032 (syms_of_charset): Fix args to Fdefine_charset_internal.
23033
230342008-02-01 Dave Love <fx@gnu.org>
23035
23036 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23037
230382008-02-01 Dave Love <fx@gnu.org>
23039
23040 * coding.c: Doc fixes.
23041 (Fcoding_system_aliases): Fix return value.
23042 (Qmac): Remove (duplicated) definition.
23043
230442008-02-01 Dave Love <fx@gnu.org>
23045
362654a6
JB
23046 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23047 New functions.
aac0c6e3
MR
23048
23049 * character.c (Fstring): Doc fix.
23050
23051 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23052
362654a6 23053 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23054 (font-encoding-alist): Doc fix.
23055
230562008-02-01 Dave Love <fx@gnu.org>
23057
23058 * term.c (costs_set): Declare static, non-initialized for pcc.
23059 (encode_terminal_code): Remove unused var.
23060
23061 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23062 for K&R.
23063
23064 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23065
23066 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23067 (suffixes): Move out of make_subsidiaries for K&R.
23068
23069 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23070
23071 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23072
230732008-02-01 Dave Love <fx@gnu.org>
23074
23075 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23076
23077 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23078
230792008-02-01 Yong Lu <lyongu@asia-infonet.com>
23080
23081 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23082
23083 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23084
230852008-02-01 Kenichi Handa <handa@m17n.org>
23086
23087 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23088 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23089
230902008-02-01 Kenichi Handa <handa@m17n.org>
23091
23092 * coding.c (decode_coding_charset): Adjust for the change of
23093 Fdefine_coding_system_internal.
23094 (Fdefine_coding_system_internal): For a coding system of
23095 `charset' type, store a list of charset IDs in
23096 `charset_attr_charset_valids' element of coding attributes.
23097
230982008-02-01 Kenichi Handa <handa@m17n.org>
23099
23100 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23101 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23102 caller. Handle 2-byte and 3-byte charsets correctly.
23103 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23104 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23105 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23106 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23107 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23108 sequence.
23109 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23110 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23111 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23112 and alt&rule composition.
23113 (decode_coding_iso_2022): Handle composition correctly.
23114 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23115
23116 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23117 re-defining a charset. If the charset has :emacs-mule-id, setup
23118 emacs_mule_bytes.
23119 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23120
231212008-02-01 Kenichi Handa <handa@m17n.org>
23122
23123 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23124 (encode_coding_big5, encode_coding_charset): If coding requires safe
23125 encoding, produce a character specified by
23126 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23127
231282008-02-01 Dave Love <fx@gnu.org>
23129
23130 * xterm.c (XSetIMValues): Declare.
23131
23132 * process.c: Conditionally include sys/wait.h, pty.h.
23133
23134 * print.c (print_object): Fix print format for 64-bit systems.
23135
23136 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23137
23138 * buffer.c (emacs_strerror): Declare.
23139
23140 * fontset.c (Fclear_face_cache): Declare.
23141 (accumulate_font_info): Comment-out (unused).
23142 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23143 variables.
23144
23145 * character.h (string_escape_byte8): Declare.
23146
23147 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23148 unused vars.
23149 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23150 (Fmap_charset_chars): Doc fix.
23151
23152 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23153 (Fset_coding_system_priority, Fset_coding_system_priority)
23154 (Fdefine_coding_system_internal): Doc fix.
23155
231562008-02-01 Dave Love <fx@gnu.org>
23157
23158 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23159
231602008-02-01 Kenichi Handa <handa@m17n.org>
23161
23162 * character.c (string_escape_byte8): Make multibyte string with
23163 correct size.
23164
23165 * charset.c (Fmake_char): Delete unnecessary code.
23166
231672008-02-01 Kenichi Handa <handa@m17n.org>
23168
23169 * xfns.c (x_encode_text): Allocate coding.destination here, and
23170 call encode_coding_object with dst_object Qnil.
23171
23172 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23173 multibyte form correctly.
23174
23175 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23176 against Vfont_encoding_alist.
23177
23178 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23179 handling of charset list.
23180 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23181 (decode_coding_object): Move point to coding->dst_pos before
23182 calling post-read-conversion function.
23183 (encode_coding_object): Give correct arguments to
23184 pre-write-conversion. Ignore the return value of
23185 pre-write-conversion function. Pay attention to the case that
23186 pre-write-conversion changes the current buffer. If dst_object is
23187 Qt, even if coding->src_bytes is zero, allocate at least one byte
23188 to coding->destination.
23189
23190 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23191
23192 * charset.c (Fmake_char): Make it more backward compatible.
23193 (Fmap_charset_chars): Fix docstring.
23194
231952008-02-01 Dave Love <fx@gnu.org>
23196
23197 * coding.c: Doc fixes.
23198 (Fdefine_coding_system_alias): Use names, not symbols, in
23199 coding-system-alist.
23200
232012008-02-01 Kenichi Handa <handa@m17n.org>
23202
23203 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23204 of calling free_realized_face.
23205
232062008-02-01 Yong Lu <lyongu@asia-infonet.com>
23207
23208 * charset.c (read_hex): Don't treat SPC as a comment starter.
23209 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23210 (Fdecode_char): Fix typo.
23211
232122008-02-01 Kenichi Handa <handa@m17n.org>
23213
23214 * charset.h (struct charset): New member `code_space_mask'.
23215
23216 * coding.c (coding_set_source): Delete the local variable beg_byte.
23217 (encode_coding_charset, Fdefine_coding_system_internal):
23218 Delete the local variable charset.
23219 (Fdefine_coding_system_internal): Setup
23220 attrs[coding_attr_charset_valids] correctly.
23221
23222 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23223 member to check if CODE is valid or not.
23224 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23225 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23226 is within the range of charset->min_code and carset->max_code.
23227
232282008-02-01 Dave Love <fx@gnu.org>
23229
23230 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23231
23232 * dispextern.h (generate_ascii_font): Fix return type.
23233
23234 * xfaces.c (generate_ascii_font): Fix arg declaration.
23235
23236 * coding.c (coding_inherit_eol_type)
23237 (Fset_terminal_coding_system_internal)
23238 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23239
232402008-02-01 Kenichi Handa <handa@m17n.org>
23241
23242 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23243 multiple charsets correctly.
23244
232452008-02-01 Kenichi Handa <handa@m17n.org>
23246
23247 * search.c (boyer_moore): Fix handling of multibyte character
23248 translation.
23249
23250 * xdisp.c (display_mode_element): When the variable `elt' is
23251 changed, update `this' and `lisp_string'.
23252
232532008-02-01 Kenichi Handa <handa@m17n.org>
23254
23255 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23256
23257 * callproc.c (Fcall_process): Be sure to give the current buffer
23258 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23259
23260 * charset.c (struct charset_map_entries): New struct.
23261 (load_charset_map): Rename from parse_charset_map. New args
23262 entries and n_entries. Change caller.
23263 (load_charset_map_from_file): Rename from load_charset_map.
23264 Change caller. New arg control_flag. Call load_charset_map at
23265 the tail.
23266 (load_charset_map_from_vector): New function.
23267 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23268 (encode_char): If the charset is compact, change a character index
23269 to a code point.
23270
23271 * coding.c (coding_alloc_by_making_gap): Check the case that the
23272 source and destination are the same correctly.
23273 (decode_coding_raw_text): Set coding->consumed_char and
23274 coding->consumed to 0.
23275 (produce_chars): If coding->chars_at_source is nonzero, update
23276 coding->consumed_char and coding->consumed before calling
23277 alloc_destination.
23278 (Fdefine_coding_system_alias): Register ALIAS in
23279 Vcoding_system_alist.
23280 (syms_of_coding): Define `no-conversion' coding system at the tail.
23281
23282 * fileio.c (Finsert_file_contents): Set coding_system instead of
23283 val. If the current buffer is multibyte, always call
23284 decode_coding_gap.
23285
23286 * xfaces.c (try_font_list): Give higher priority to fontset's
23287 family than face's family.
23288
232892008-02-01 Kenichi Handa <handa@m17n.org>
23290
23291 * callproc.c (Fcall_process): Be sure to give the current buffer
23292 to decode_coding_c_string.
23293
23294 * xfaces.c (try_font_list): Give a family specified in a fontset
23295 higher priority than a family specified in a face.
23296
232972008-02-01 Kenichi Handa <handa@m17n.org>
23298
23299 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23300 Fix arguments to insert_from_buffer.
23301
23302 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23303
233042008-02-01 Kenichi Handa <handa@m17n.org>
23305
23306 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23307 (decode_coding_gap): Set coding->dst_multibyte correctly.
23308
233092008-02-01 Kenichi Handa <handa@m17n.org>
23310
23311 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23312 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23313 (encode_coding_utf_16): Substitute coding->default_char for
23314 non-Unicode characters.
23315 (decode_coding): Don't call record_insert here.
23316 (setup_coding_system): Initialize `surrogate' of
23317 coding->spec.utf_16 to 0.
23318 (EMIT_ONE_BYTE): Fix for multibyte case.
23319
23320 * insdel.c (insert_from_gap): Call record_insert.
23321
233222008-02-01 Kenichi Handa <handa@m17n.org>
23323
23324 * casefiddle.c (casify_region): Fix multibyte case.
23325
23326 * character.c (c_string_width): Add return type `int'.
23327 (char_string_with_unification): Delete arg ADVANCED.
23328
23329 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23330 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23331 (CHAR_STRING_ADVANCE): Make it do-while statement.
23332
23333 * chartab.c (sub_char_table_set_range): Optimize for the case
23334 DEPTH == 3. Add workaround code for a GCC optimization bug.
23335
23336 * charset.c (parse_charset_map): Remove an unused variable.
23337
23338 * coding.c: Delete unused variables.
23339
23340 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23341 earlier. If inserted is zero and the coding system doesn't
23342 require flushing, don't call decode_coding_gap.
23343
23344 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23345
233462008-02-01 Kenichi Handa <handa@m17n.org>
23347
23348 The following changes are for using Unicode as an internal
23349 character model, and use UTF-8 format for buffer/string
23350 representation.
23351
23352 * .gdbinit (xchartable): Adjust for the change of char table structure.
23353 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23354
23355 * Makefile.in (obj): Add character.o and chartab.o.
23356 (lisp, shortlisp): Remove utf-8.elc.
23357 (*.o): For many files, change dependency on charset.h to
23358 character.h, and add dependency on character.h.
23359 (character.o, chartab.o): New targets.
23360
23361 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23362 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23363 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23364 of "charset.h".
23365
23366 * dired.c, filelock.c: Include "character.h".
23367
23368 * alloc.c: Include "character.h" instead of "charset.h".
23369 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23370 (syms_of_alloc): Remove defsubr for Smake_char_table.
23371
23372 * buffer.c: Include "character.h" instead of "charset.h", don't
23373 include "coding.h".
23374 (Fset_buffer_multibyte): Adjust for UTF-8.
23375
23376 * buffer.h: EXFUN Fbuffer_live_p.
23377
23378 * callproc.c: Include "character.h" instead of "charset.h".
23379 (Fcall_process): Big change for the new code-conversion APIs.
23380
23381 * casetab.c: Include "character.h" instead of "charset.h".
23382 (set_canon, set_identity, shuffle): Adjust for the new
23383 map_char_table spec.
23384 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23385 accessing the char table structure.
23386
23387 * chartab.c: New file that implements char table.
23388
23389 * category.c: Include "character.h".
23390 (copy_category_entry): New function.
23391 (copy_category_table): Call map_char_table and copy_category_entry.
23392 (Fmake_category_table): Initialize all top-level slots.
23393 (char_category_set): New function.
23394 (modify_lower_category_set): Delete.
23395 (Fmodify_category_entry): Call char_table_ref_and_range.
23396
23397 * category.h (CATEGORY_SET): Just call char_category_set.
23398
23399 * ccl.c: Include "character.h".
23400 (Qccl, Qcclp): New variables.
23401 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23402 it's less than 256.
23403 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23404 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23405 and DST type.
23406 (ccl_driver): Change types of argument, adjust code accordingly.
23407 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23408 ccl_driver.
23409 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23410
23411 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23412 New members src_multibyte, dst_multibyte, consumed, and produced.
23413 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23414 (CODING_SPEC_CCL_PROGRAM): New macro.
23415 (ccl_driver): Update prototype.
23416 (Qccl, Qcclp, Fccl_program_p): Extern them.
23417 (CHECK_CCL_PROGRAM): New macro.
23418
23419 * character.c, character.h, chartab.c: New files.
23420
23421 * charset.c: Mostly re-written. Move character and multibyte sequence
23422 handling codes to character.c.
23423
23424 * charset.h: Mostly re-written. Move character and multibyte sequence
23425 handling codes to character.h.
23426
23427 * coding.c, coding.h: Mostly re-written.
23428
23429 * composite.c: Include "character.h" instead of "charset.h".
23430 (CHAR_WIDTH): Move to character.h.
23431 (HASH_KEY, HASH_VALUE): Delete.
23432
23433 * composite.h (enum composition_method): Change order of enumeration
23434 symbols.
23435
23436 * data.c: Include "character.h" instead of "charset.h".
23437 (Faref): Call CHAR_TABLE_REF for a char table.
23438 (Faset): Call CHAR_TABLE_SET for a char table.
23439
23440 * dispextern.h (free_realized_face, check_face_attribytes)
23441 (generate_ascii_font): Extern them.
23442 (free_realized_multibyte_face): Delete extern.
23443
23444 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23445 table structure.
23446
23447 * editfns.c: Include "character.h" instead of "charset.h".
23448 (Fchar_to_string): Always call CHAR_STRING.
23449
23450 * emacs.c (main): Call init_charset_once, init_charset,
23451 syms_of_chartab, and syms_of_character.
23452
23453 * fileio.c: Include "character.h" instead of "charset.h".
23454 (Finsert_file_contents): Big change for the new code-conversion API.
23455 (choose_write_coding_system, Fwrite_region): Likewise.
23456 (build_annotations_2): Delete.
23457 (e_write): Big change for the new code-conversion API.
23458
23459 * fns.c: Include "character.h" instead of "charset.h".
23460 (copy_sub_char_table): Move to chartab.c.
23461 (Fcopy_sequence): Call copy_char_table for a char table.
23462 (concat): Delete codes calling count_multibyte.
23463 (string_char_to_byte, string_byte_to_char): Adjust for the new
23464 multibyte form.
23465 (internal_equal): Adjust for the change of char table structure.
23466 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23467 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23468 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23469 (char_table_translate, optimize_sub_char_table)
23470 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23471 chartab.c.
23472 (char_table_ref_and_index): Delete.
23473 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23474 (Fmd5): Call preferred_coding_system instead of accessing
23475 Vcoding_category_list. Adjust for the new code-conversion API.
23476 (syms_of_fns): Move defsubr for char table related functions to
23477 chartab.c.
23478
23479 * fontset.c: Mostly re-written.
23480
23481 * fontset.h (struct font_info): Change type of the member encoding_type.
23482 (enum FONT_SPEC_INDEX): New enum.
23483 (fontset_font_pattern, fs_load_font): Update prototype.
23484 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23485
23486 * indent.c: Include "character.h" instead of "charset.h".
23487 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23488
23489 * insdel.c: Include "character.h" instead of "charset.h".
23490 (copy_text): Don't refer to Vnonascii_translation_table.
23491 (insert_from_gap): New function.
23492
23493 * keyboard.c: Include "character.h" instead of "charset.h".
23494 (command_loop_1): Never call direct_output_forward_char before
23495 a non-ASCII character.
23496 (read_char): If Vkeyboard_translate_table is a char table, always
23497 translate a character.
23498
23499 * keymap.c: Include "character.h".
23500 (store_in_keymap): Handle the case that IDX is a cons.
23501 (Fdefine_key): Handle the case that KEY is a cons and the car part
23502 is also a cons (range).
23503 (push_key_description): Adjust for the new character code.
23504 (describe_vector): Call describe_char_table for a char table.
23505 (describe_char_table): New function.
23506
23507 * keymap.h (describe_char_table): Extern it.
23508
23509 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23510 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23511 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23512 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23513 Delete.
23514 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23515 structure.
23516 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23517 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23518 (CHARTAB_SIZE_BITS_3): New macros.
23519 (chartab_size): Extern it.
23520 (struct Lisp_Char_Table): Re-design.
23521 (struct Lisp_Sub_Char_Table): New structure.
23522 (HASH_KEY, HASH_VALUE): Move from fns.c.
23523 (CHARACTERBITS): Define as 22.
23524 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23525 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23526 (GC_SUB_CHAR_TABLE_P): New macro.
23527 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23528 (code_convert_string_norecord): Deleted extern.
23529 (init_character_once, syms_of_character, init_charset)
23530 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23531
23532 * lread.c: Include "character.h".
23533 (read_multibyte): New arg NBYTES.
23534 (read_escape): Change the meaning of returned *BYTEREP.
23535 (to_multibyte): Delete.
23536 (read1): Adjust the handling of char table and string.
23537
23538 * print.c: Include "character.h" instead of "charset.h".
23539 (print_string): Convert 8-bit raw bytes to octal form by
23540 string_escape_byte8.
23541 (print_object): Adjust for the new multibyte form. Print 8-bit
23542 raw bytes always in octal form. Handle sub char table correctly.
23543
23544 * process.c: Include "character.h" instead of "charset.h".
23545 (read_process_output, send_process): Adjust for the new
23546 code-conversion API.
23547
23548 * puresize.h (BASE_PURESIZE): Increase.
23549
23550 * regex.c: Include "character.h" instead of "charset.h".
23551 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23552 (regex_compile): Accept a range whose starting and ending
23553 character have different leading bytes.
23554 (analyse_first): Adjust for the above change.
23555
23556 * search.c: Include "character.h" instead of "charset.h".
23557 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23558 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23559
23560 * syntax.c: Include "character.h" instead of "charset.h".
23561 (syntax_parent_lookup): Delete.
23562 (Fmodify_syntax_entry): Accept a cons as CHAR.
23563 (skip_chars): Adjust for the new multibyte form.
23564 (init_syntax_once): Call char_table_set_range instead of directly
23565 accessing the structure of a char table.
23566
23567 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23568 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23569 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23570 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23571
23572 * term.c: Include "buffer.h" and "character.h".
23573 (encode_terminal_code, write_glyphs): Adjust for the new
23574 code-conversion API.
23575 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23576
23577 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23578
23579 * xdisp.c: Include "character.h".
23580 (get_next_display_element): Adjust for the new multibyte form.
23581 (disp_char_vector): Adjust for the new char table structure.
23582 (decode_mode_spec_coding): Adjust for the new structure of
23583 coding system.
23584 (decode_mode_spec): Adjust for the new code-conversion API.
23585
23586 * xfaces.c: Include "character.h" instead of "charset.h".
23587 (load_face_font): Adjust for the change of choose_face_font and
23588 FS_LOAD_FONT.
23589 (generate_ascii_font): New function.
23590 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23591 (set_font_frame_param): Adjust for the change of choose_face_font.
23592 (free_realized_face): Make it public.
23593 (free_realized_faces_for_fontset): Rename from
23594 free_realized_multibyte_face. Free also faces realized for ASCII.
23595 (choose_face_font): Change arguments. Adjust for the change of
23596 fontset_font_pattern and FS_LOAD_FONT.
23597
23598 * xfns.c: Include "character.h".
23599 (x_encode_text): Adjust for the new code-conversion API.
23600
23601 * xselect.c: Don't include "charset.h".
23602 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23603
23604 * xterm.c: Include "character.h".
23605 (x_encode_char): New argument CHARSET. Change caller.
23606 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23607 Call ENCODE_CHAR instead of SPLIT_CHAR.
23608 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23609 CHAR_WIDTH instead of CHARSET_WIDTH.
23610 (XTread_socket): Adjust for the new code-conversion API.
23611 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23612 (x_load_font): Adjust for the change of struct font.
23613
236142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23615
23616 * xfaces.c (face_at_buffer_position): Remove unused vars.
23617
236182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23619
23620 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23621 Fix overflow checking.
23622
236232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23624
23625 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23626 Cancel previous change.
23627
236282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23629
23630 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23631 ccl->eight_bit_control. Fix check for buffer overflow.
23632 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23633 (ccl_driver): Initialize extra_bytes to 0.
23634
236352008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23636
23637 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23638 return it ORed with ctrl_modifier.
23639
236402008-01-29 Miles Bader <miles@gnu.org>
23641
23642 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23643
236442008-01-28 Jason Rumney <jasonr@gnu.org>
23645
23646 * w32.c (stat): Don't double check for networked drive.
23647
236482008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23649
23650 * window.c (run_window_configuration_change_hook): New function.
23651 Code extracted from set_window_buffer. Set the selected frame.
23652 (set_window_buffer): Use it.
23653 * window.h (run_window_configuration_change_hook): Declare.
23654 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23655
23656 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23657
236582008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23659
23660 * Makefile.in: Remove references to unused macros.
23661
236622008-01-26 Eli Zaretskii <eliz@gnu.org>
23663
23664 * w32.c (g_b_init_get_sid_sub_authority)
23665 (g_b_init_get_sid_sub_authority_count): New static variables.
23666 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23667 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23668 (init_user_info): Use them to retrieve uid and gid.
23669 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23670 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23671 st_uid and st_gid of the file.
23672
236732008-01-26 Jason Rumney <jasonr@gnu.org>
23674
23675 * w32.c (logon_network_drive): New function.
23676 (stat): Use it.
23677
236782008-01-26 Chong Yidong <cyd@stupidchicken.com>
23679
23680 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23681 invisible text covered with an ellipsis.
23682
236832008-01-25 Richard Stallman <rms@gnu.org>
23684
23685 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23686 jump back to beginning. Move some other initializations after that.
23687 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23688 New variables.
23689 (syms_of_xdisp): Init them.
23690
23691 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23692
23693 * buffer.c (reset_buffer_local_variables):
23694 Implement `permanent-local-hook'.
23695 (Qpermanent_local_hook): New variable.
23696 (syms_of_buffer): Init and staticpro it.
23697
236982008-01-25 Michael Albinus <michael.albinus@gmx.de>
23699
23700 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23701
237022008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23703
23704 * fns.c (Fclrhash): Return TABLE.
23705
237062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23707
23708 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23709 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23710 is set even without positional changes.
23711 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23712
23713 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23714
237152008-01-23 Jason Rumney <jasonr@gnu.org>
23716
23717 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23718
23719 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23720 the unicode range available in MULE by locale-coding-system.
23721 Improve dbcs lead byte detection. Set event timestamp and modifiers
23722 earlier.
23723
237242008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23725
23726 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23727 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23728 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23729 when used on child processes.
23730
237312008-01-21 Michael Albinus <michael.albinus@gmx.de>
23732
23733 * dbusbind.c (Fdbus_method_return_internal): Rename from
23734 Fdbus_method_return.
23735 (Fdbus_unregister_object): Move to dbus.el.
23736 (Fdbus_call_method, Fdbus_method_return_internal)
23737 (Fdbus_send_signal): Improve debug messages.
23738
237392008-01-20 Martin Rudalics <rudalics@gmx.at>
23740
23741 * undo.c (undo_inhibit_record_point): New variable.
23742 (syms_of_undo): Initialize it.
23743 (record_point): Don't record point when undo_inhibit_record_point
23744 is set.
23745
237462008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23747
23748 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23749
23750 * xdisp.c (Qauto_hscroll_mode): New var.
23751 (syms_of_xdisp): Initialize it.
23752 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23753 window's buffer.
23754 (hscroll_windows): Don't check automatic_hscrolling_p here.
23755
23756 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23757 vscroll if we're setting window-buffer to the value it already has.
23758
237592008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23760
23761 * m/intel386.h: Remove references to XENIX.
23762
237632008-01-17 Andreas Schwab <schwab@suse.de>
23764
23765 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23766 instead of HAVE_X86_64_LIB64_DIR.
23767 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23768
237692008-01-17 Glenn Morris <rgm@gnu.org>
23770
23771 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23772 to HAVE_X86_64_LIB64_DIR.
23773
237742008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23775
23776 * s/irix3-3.h:
23777 * s/irix4-0.h:
23778 * s/386-ix.h:
23779 * s/domain.h:
23780 * s/hpux9-x11r4.h:
23781 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23782
23783 * sysdep.c: Remove code containing references to symbols defined
23784 by unsupported systems.
23785
237862008-01-16 Glenn Morris <rgm@gnu.org>
23787
23788 * coding.c (select-safe-coding-system-function): Doc fix.
23789
237902008-01-15 Glenn Morris <rgm@gnu.org>
23791
23792 * config.in: Revert 2008-01-13 change: this is a generated file.
23793
237942008-01-13 Tom Tromey <tromey@redhat.com>
23795
23796 * lisp.h: Fix typo.
23797
237982008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23799
23800 * m/sequent-ptx.h:
23801 * m/sequent.h:
23802 * s/ptx.h:
23803 * s/ptx4-2.h:
23804 * s/ptx4.h: Remove files for systems no longer supported.
23805
23806 * callproc.c (Fcall_process): Fix previous change.
23807
238082008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23809
23810 * unexsunos4.c: Remove file, system not supported anymore.
23811
23812 * m/mips.h:
23813 * m/intel386.h:
23814 * callproc.c:
23815 * config.in:
23816 * ecrt0.c:
23817 * emacs.c:
23818 * fileio.c:
23819 * frame.c:
23820 * getpagesize.h:
23821 * keyboard.c:
23822 * lread.c:
23823 * process.c:
23824 * puresize.h:
23825 * sysdep.c:
23826 * systty.h:
23827 * syswait.h:
23828 * unexec.c:
23829 * xdisp.c:
23830 * alloc.c: Remove code containing references to symbols defined by
23831 unsupported systems.
23832
238332008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23834
23835 * coding.c (detect_coding_mask): Fix previous change.
23836
238372008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23838
23839 * coding.c (detect_coding_iso2022): New arg
23840 latin_extra_code_state. Allow Latin extra codes only
23841 when *latin_extra_code_state is nonzero.
23842 (detect_coding_mask): If there is a NULL byte, detect the encoding
23843 as UTF-16 or binary. If Latin extra codes exist, detect the
23844 encoding as ISO-2022 only when there's no other proper encoding is
23845 found.
23846
238472008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23848
23849 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23850 #ifdef MAC_OS.
23851
238522008-01-08 Richard Stallman <rms@gnu.org>
23853
23854 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23855
238562008-01-06 Nick Roberts <nickrob@snap.net.nz>
23857
23858 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23859 menu bar in parentheses.
23860
238612008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23862
23863 * m/7300.h:
23864 * m/acorn.h:
23865 * m/alliant-2800.h:
23866 * m/alliant.h:
23867 * m/alliant1.h:
23868 * m/alliant4.h:
23869 * m/altos.h:
23870 * m/amdahl.h:
23871 * m/apollo.h:
23872 * m/att3b.h:
23873 * m/aviion-intel.h:
23874 * m/aviion.h:
23875 * m/celerity.h:
23876 * m/clipper.h:
23877 * m/cnvrgnt.h:
23878 * m/convex.h:
23879 * m/cydra5.h:
23880 * m/delta88k.h:
23881 * m/dpx2.h:
23882 * m/dual.h:
23883 * m/elxsi.h:
23884 * m/f301.h:
23885 * m/gould-np1.h:
23886 * m/gould.h:
23887 * m/i860.h:
23888 * m/ibmps2-aix.h:
23889 * m/ibmrt-aix.h:
23890 * m/ibmrt.h:
23891 * m/irist.h:
23892 * m/is386.h:
23893 * m/isi-ov.h:
23894 * m/mega68.h:
23895 * m/mg1.h:
23896 * m/news-r6.h:
23897 * m/news-risc.h:
23898 * m/news.h:
23899 * m/nh3000.h:
23900 * m/nh4000.h:
23901 * m/ns16000.h:
23902 * m/ns32000.h:
23903 * m/nu.h:
23904 * m/orion.h:
23905 * m/orion105.h:
23906 * m/paragon.h:
23907 * m/pfa50.h:
23908 * m/plexus.h:
23909 * m/pyramid.h:
23910 * m/pyrmips.h:
23911 * m/sh3el.h:
23912 * m/sps7.h:
23913 * m/sr2k.h:
23914 * m/stride.h:
23915 * m/sun1.h:
23916 * m/sun2.h:
23917 * m/sun3-68881.h:
23918 * m/sun3-fpa.h:
23919 * m/sun3-soft.h:
23920 * m/sun3.h:
23921 * m/sun386.h:
23922 * m/symmetry.h:
23923 * m/tad68k.h:
23924 * m/tahoe.h:
23925 * m/targon31.h:
23926 * m/tek4300.h:
23927 * m/tekxd88.h:
23928 * m/tower32.h:
23929 * m/tower32v3.h:
23930 * m/ustation.h:
23931 * m/wicat.h:
23932 * m/xps100.h:
23933 * s/cxux.h:
23934 * s/cxux7.h:
23935 * s/dgux.h:
23936 * s/dgux4.h:
23937 * s/dgux5-4-3.h:
23938 * s/dgux5-4r2.h:
23939 * s/esix.h:
23940 * s/esix5r4.h:
23941 * s/hiuxmpp.h:
23942 * s/hiuxwe2.h:
23943 * s/iris3-5.h:
23944 * s/iris3-6.h:
23945 * s/isc2-2.h:
23946 * s/isc3-0.h:
23947 * s/isc4-0.h:
23948 * s/isc4-1.h:
23949 * s/newsos5.h:
23950 * s/newsos6.h:
23951 * s/osf1.h:
23952 * s/osf5-0.h:
23953 * s/riscix1-1.h:
23954 * s/riscix12.h:
23955 * s/sco4.h:
23956 * s/sco5.h:
23957 * s/sunos4-0.h:
23958 * s/sunos4-1.h:
23959 * s/sunos413.h:
23960 * s/sunos4shr.h:
23961 * s/umax.h:
23962 * s/unipl5-2.h:
23963 * s/xenix.h:
23964 * cxux-crt0.s:
23965 * unexapollo.c:
23966 * unexconvex.c:
23967 * unexenix.c:
23968 * unexsni.c: Remove files for systems no longer supported.
23969
23970 * m/intel386.h: Remove references to unsupported systems.
23971
23972 * w32.c (get_emacs_configuration): Remove reference to i860.
23973
23974 * sysdep.c: Remove dead code.
23975
239762008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23977
23978 * s/rtu.h:
23979 * m/masscomp.h: Remove files. Platform is obsolete.
23980
239812008-01-04 Michael Albinus <michael.albinus@gmx.de>
23982
23983 * dbusbind.c (Fdbus_method_return): New function.
23984 (xd_read_message): Add the serial number to the event.
23985 (Fdbus_register_method): Activate the function.
23986
239872008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23988
23989 * keyboard.c (read_key_sequence): Fix typo.
23990
239912008-01-03 Michael Albinus <michael.albinus@gmx.de>
23992
23993 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23994 (xd_signature, xd_append_arg): Handle element type detection for
23995 empty arrays.
23996 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23997 SDATA () calls; this must be solved more general.
23998 (Fdbus_register_signal): Use SBYTES instead of strlen.
23999
240002008-01-03 Magnus Henoch <magnus@zemdatav>
24001
24002 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24003 unsigned int for byte values (necessary for big-endian platform).
24004 (Fdbus_call_method): Handle the case of no returned arguments.
24005
240062007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24007
24008 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24009
240102007-12-31 Magnus Henoch <mange@freemail.hu>
24011
24012 * dbusbind.c (xd_signature): Signature of variant is just "v".
24013
240142007-12-30 Michael Albinus <michael.albinus@gmx.de>
24015
24016 * dbusbind.c: Fix several errors and compiler warnings.
24017 Reported by Tom Tromey <tromey@redhat.com>.
24018 (XD_ERROR, XD_DEBUG_MESSAGE)
24019 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24020 (xd_append_arg): Part for basic D-Bus types rewritten.
24021 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24022 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24023 appropriate.
24024 (xd_read_message): Return Qnil. Don't signal an error; it is not
24025 useful during event reading.
24026 (Fdbus_register_signal): Signal an error if the check for
24027 FUNCTIONP fails.
24028 (Fdbus_register_method): New function. The implementation is not
24029 complete, the call of the function signals an error therefore.
24030 (Fdbus_unregister_object): New function, renamed from
24031 Fdbus_unregister_signal. The initial check signals an error, if
24032 the object is not well formed.
24033
240342007-12-30 Richard Stallman <rms@gnu.org>
24035
24036 * textprop.c (get_char_property_and_overlay):
24037 Signal error if POSITION is out of range in a buffer.
24038
240392007-12-29 Martin Rudalics <rudalics@gmx.at>
24040
24041 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24042 because the original parameters are in pure storage now.
24043
240442007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24045
24046 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24047
240482007-12-22 Eli Zaretskii <eliz@gnu.org>
24049
24050 * callint.c (syms_of_callint) <command-history>: Add reference to
24051 history-length in the doc string.
24052
240532007-12-17 Jason Rumney <jasonr@gnu.org>
24054
24055 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24056 before passing as wParam.
24057
240582007-12-22 Michael Albinus <michael.albinus@gmx.de>
24059
24060 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24061 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24062 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24063 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24064 as number.
24065 (Fdbus_call_method): Fix docstring.
24066
240672007-12-21 Michael Albinus <michael.albinus@gmx.de>
24068
24069 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24070 New macros.
24071 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24072 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24073 Simplify.
24074 (xd_signature): New function.
24075 (xd_append_arg): Compute also signatures. Major rewrite.
24076 (xd_retrieve_arg): Make debug messages friendly.
24077 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24078 Check for signatures of arguments.
24079
240802007-12-19 Michael Albinus <michael.albinus@gmx.de>
24081
24082 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24083 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24084 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24085 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24086 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24087 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24088 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24089 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24090 (xd_retrieve_value): Remove. Functionality included in ...
24091 (xd_append_arg): New function.
24092 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24093
240942007-12-16 Michael Albinus <michael.albinus@gmx.de>
24095
24096 * dbusbind.c (top): Include <stdio.h>.
24097 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24098 dbus_message_new_method_call and dbus_message_new_signal.
24099 (Fdbus_register_signal): Rename unique_name to uname.
24100 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24101 non-existing unique name. Fix typos in matching rule. Return an
24102 object which is useful in Fdbus_unregister_signal.
24103 (Fdbus_unregister_signal): Reimplementation, in order to remove
24104 only the corresponding entry.
24105 (Vdbus_registered_functions_table): Change the order of entries.
24106 Apply these changes in xd_read_message and Fdbus_register_signal.
24107
241082007-12-16 Andreas Schwab <schwab@suse.de>
24109
24110 * fileio.c (Finsert_file_contents): Fix overflow check to not
24111 depend on undefined integer overflow.
24112
241132007-12-14 Jason Rumney <jasonr@gnu.org>
24114
24115 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24116 for characters above 127.
24117
241182007-12-13 Jason Rumney <jasonr@gnu.org>
24119
24120 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24121 before dereferencing array.
24122 (lookup_vk_code): Remove zero comparison.
24123
241242007-12-14 Michael Albinus <michael.albinus@gmx.de>
24125
24126 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24127 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24128 Use `unsigned int' instead of `uint'.
24129 (xd_read_message, Fdbus_register_signal): Split expressions into
24130 multiple lines before operators "&&" and "||", according to the
24131 GNU Coding Standards.
24132
241332007-12-14 Eli Zaretskii <eliz@gnu.org>
24134
24135 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24136
241372007-12-12 Juri Linkov <juri@jurta.org>
24138
24139 * buffer.c (Frename_buffer): In interactive spec replace
24140 `read-buffer' with `read-string' that uses `buffer-name-history'
24141 as history, and the current buffer's name as default.
24142
241432007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24144
24145 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24146 manipulating the backtrace manually.
24147 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24148 (struct backtrace, backtrace_list): Remove.
24149 (command_loop_1): Remove dead var `no_direct'.
24150
24151 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24152 preserve non-built-in buffer-local variables.
24153 (Fkill_all_local_variables): Don't re-create&re-set permanent
24154 buffer-local variables.
24155
241562007-12-09 Juri Linkov <juri@jurta.org>
24157
24158 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24159 Lisp code that uses `read-buffer' with current buffer as default.
24160
241612007-12-08 Michael Albinus <michael.albinus@gmx.de>
24162
24163 * dbusbind.c (xd_read_message): Generate an event for every
24164 registered handler. There might be several handlers registered
24165 for the same signal.
24166 (Fdbus_register_signal): Don't overwrite a registration for the
24167 same signal. Add a new registration if handlers are different.
24168 (Vdbus_registered_functions_table): Rework doc string.
24169
241702007-12-07 Michael Albinus <michael.albinus@gmx.de>
24171
24172 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24173 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24174 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24175 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24176 Unify argument lists.
24177 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24178 arguments and hash table keys. Use unique name for service.
24179 (Fdbus_unregister_signal): Remove checks.
24180 (Vdbus_registered_functions_table): Fix doc string.
24181
241822007-12-05 Magnus Henoch <mange@freemail.hu>
24183
24184 * process.c (make_process): Initialize pty_flag to 0.
24185
241862007-12-05 Jason Rumney <jasonr@gnu.org>
24187
24188 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24189 specified XBMs.
24190
241912007-12-05 Richard Stallman <rms@gnu.org>
24192
24193 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24194
241952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24196
24197 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24198 New variable.
24199 (mac_try_close_socket) [MAC_OSX]: New function.
24200 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24201 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24202
24203 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24204 Use mac_try_close_socket.
24205
242062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24207
24208 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24209 reloc_base.
24210 (copy_dysymtab): Compute relocation base here.
24211 (rebase_reloc_address) [__ppc64__]: New function.
24212 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24213 changed.
24214
242152007-12-05 Jason Rumney <jasonr@gnu.org>
24216
24217 * w32proc.c (sys_spawnve): Quote args with wildcards.
24218
242192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24220
24221 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24222 __objc_* sections.
24223 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24224
242252007-12-05 Michael Albinus <michael.albinus@gmx.de>
24226
24227 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24228 Move check for Vdbus_registered_functions_table to
24229 xd_read_queued_messages.
24230 (xd_read_queued_messages): Protect xd_read_message calls by
24231 internal_condition_case_1.
24232
242332007-12-04 Michael Albinus <michael.albinus@gmx.de>
24234
24235 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24236 Qdbus_system_bus and Qdbus_session_bus, respectively.
24237 (Vdbus_intern_symbols): Remove.
24238 (Vdbus_registered_functions_table): New hash table.
24239 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24240 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24241 Rewrite in order to manage registered functions by hash table
24242 Vdbus_registered_functions_table.
24243
242442007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24245
24246 * xterm.c: Update URL to Window Manager Specification in comment.
24247
242482007-12-02 Michael Albinus <michael.albinus@gmx.de>
24249
24250 * config.in (HAVE_DBUS): Add.
24251
24252 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24253 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24254 (obj): Add $(DBUS_OBJ).
24255 (LIBES): Add $(DBUS_LIBS).
24256 (dbusbind.o): New target.
24257
24258 * dbusbind.c: New file.
24259
24260 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24261
24262 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24263 (Qdbus_event): New Lisp symbol.
24264 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24265 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24266 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24267
24268 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24269
242702007-12-01 Richard Stallman <rms@gnu.org>
24271
24272 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24273
242742007-11-30 Jason Rumney <jasonr@gnu.org>
24275
24276 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24277 (w32con_reset_terminal_modes): Clear screen buffer.
24278 (w32_face_attributes): Don't use color indexes that are out of range.
24279 Only reverse the default colors.
24280
24281 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24282 WINDOWSNT.
24283
24284 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24285
242862007-11-29 Jason Rumney <jasonr@gnu.org>
24287
24288 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24289 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24290 if the terminal colors are initialized.
24291 (unspecified_fg, unspecified_bg): Remove unused declarations.
24292
242932007-11-29 Andreas Schwab <schwab@suse.de>
24294
24295 * keyboard.c (apply_modifiers): Fix typo.
24296
242972007-11-29 Richard Stallman <rms@gnu.org>
24298
24299 * keymap.c (Fcurrent_local_map): Doc fix.
24300
243012007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24302
24303 * s/gnu-kfreebsd.h: New file.
24304
243052007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24306
24307 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24308 Don't cast redundantly.
24309
24310 * keyboard.c (KEY_TO_CHAR): New macro.
24311 (parse_modifiers, apply_modifiers): Accept integer arguments.
24312 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24313 for chars and symbol keys.
24314 After doing such remapping, apply function-key-map again.
24315
243162007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24317
24318 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24319 compiled anymore.
24320
243212007-11-26 Andreas Schwab <schwab@suse.de>
24322
24323 * process.c (list_processes_1): Fix indentation level of the
24324 command column.
24325
243262007-11-23 Andreas Schwab <schwab@suse.de>
24327
24328 * editfns.c (Fformat): Handle %c specially since it requires the
24329 argument to be of type int.
24330
243312007-11-23 Markus Triska <markus.triska@gmx.at>
24332
24333 * emacs.c (main): Call init_editfns before init_process, since
24334 init_process sets Vprocess_connection_type depending on OS release.
24335
243362007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24337
24338 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24339 (find_symbol_value): Use do_symval_forwarding.
24340
24341 * data.c (set_internal): Set the value in the `cons-cell' (for
24342 Buffer_Local_values) not only for frame-local variables.
24343
243442007-11-22 Andreas Schwab <schwab@suse.de>
24345
24346 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24347 values to sprintf.
24348 * keymap.c (Fsingle_key_description): Likewise.
24349 * print.c (print_object): Likewise.
24350
243512007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24352
24353 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24354 file for image is nil.
24355
243562007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24357
24358 * term.c: Include stdarg.h.
24359 (fatal): Implement using varargs.
24360 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24361
243622007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24363
24364 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24365 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24366 Update call to buffer_slot_type_mismatch.
24367 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24368 (buffer_slot_type_mismatch): Update.
24369 * buffer.c (buffer_local_types): Remove.
24370 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24371 (defvar_per_buffer): Set the type in the buffer_objfwd.
24372
243732007-11-21 Jason Rumney <jasonr@gnu.org>
24374
24375 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24376 CreateFileMapping returns NULL on failure.
24377
243782007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24379
24380 * search.c (Fset_match_data): Remove the `evaporate' feature.
24381 (unwind_set_match_data): Don't use the `evaporate' feature.
24382
243832007-11-21 Jason Rumney <jasonr@gnu.org>
24384
24385 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24386
24387 * w32console.c (w32con_write_glyphs): Remove unused variables.
24388
243892007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24390
24391 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24392
24393 * s/darwin.h (MULTI_KBOARD): Remove.
24394
24395 * macfns.c (x_create_tip_frame, Fx_create_frame)
24396 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24397
243982007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24399
24400 * buffer.c (Fbuffer_local_value): Remove redundant test.
24401 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24402 than in `current-buffer' to match the comment.
24403 Do the swap using swap_in_global_binding.
24404
24405 * data.c (store_symval_forwarding, set_internal):
24406 * eval.c (specbind): Remove dead code.
24407
24408 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24409 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24410 Since we do not want to see internal Lisp_*fwd objects here.
24411
244122007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24413
24414 * sysdep.c (init_system_name): Use getaddrinfo if available.
24415
24416 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24417 (x_scroll_bar_note_movement): start, end, with, height in struct
24418 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24419
244202007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24421
24422 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24423
244242007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24425
24426 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24427 This undoes Richard's change of 14-Oct-2002.
24428
24429 * alloc.c (allocate_other_vector):
24430 * lisp.h (allocate_other_vector): Remove.
24431
24432 * window.c (struct save_window_data): Move non-lisp data to the end
24433 and make it `int' rather than Lisp_Object.
24434 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24435 Done wrap/unwrap integer values.
24436 (Fset_window_configuration, compare_window_configurations):
24437 Update use of fields to their new types.
24438
24439 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24440 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24441 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24442 (SET_SCROLL_BAR_X_WINDOW): Remove.
24443 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24444 Access the new x_window field directly.
24445 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24446 Don't wrap/unwrap integers into Lisp_Objects.
24447 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24448 (x_scroll_bar_report_motion):
24449 Don't wrap/unwrap integers into Lisp_Objects.
24450 (x_term_init): Use SDATA.
24451 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24452 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24453 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24454 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24455 * xfns.c (x_set_background_color):
24456 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24457 Access the new x_window field directly.
24458
24459 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24460 (allocate_pseudovector): Make non-static.
24461
24462 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24463 (allocate_pseudovector): Declare.
24464 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24465
244662007-11-15 Andreas Schwab <schwab@suse.de>
24467
24468 * editfns.c (Fformat): Correctly format EMACS_INT values.
24469 Also take precision into account when formatting an integer.
24470
24471 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24472
244732007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24474
24475 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24476 (syms_of_keyboard): Defsubr it.
24477
24478 * data.c (swap_in_global_binding): Fix longstanding bug where
24479 store_symval_forwarding was not called with the right second argument,
24480 thus causing objfwd-ing from being dropped.
24481
244822007-11-14 Juanma Barranquero <lekktu@gmail.com>
24483
24484 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24485 (Fx_display_pixel_height, Fx_display_planes)
24486 (Fx_display_color_cells, Fx_server_max_request_size)
24487 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24488 (Fx_display_visual_class, Fx_display_save_under):
24489 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24490 (Fx_display_pixel_height, Fx_display_planes)
24491 (Fx_display_color_cells, Fx_server_max_request_size)
24492 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24493 (Fx_display_mm_height, Fx_display_mm_width)
24494 (Fx_display_backing_store, Fx_display_visual_class)
24495 (Fw32_select_font, Fx_display_save_under):
24496 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24497 (Fx_display_pixel_height, Fx_display_planes)
24498 (Fx_display_color_cells, Fx_server_max_request_size)
24499 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24500 (Fx_display_save_under): Fix typos in docstrings.
24501
245022007-11-14 Juanma Barranquero <lekktu@gmail.com>
24503
24504 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24505 corresponding to deleted entries; they are an implementation detail.
24506 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24507 Remove variables.
24508 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24509 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24510 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24511 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24512 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24513 (Fw32_define_rgb_color, Fw32_load_color_file)
24514 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24515 Fix typos in docstrings.
24516 (Fx_server_version): Reflow docstring.
24517 (Fw32_shell_execute): Doc fixes.
24518
245192007-11-13 Juanma Barranquero <lekktu@gmail.com>
24520
24521 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24522 if w32_parse_hot_key returned nil.
24523
245242007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24525
24526 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24527
245282007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24529
aac0c6e3
MR
24530 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24531
24532 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24533
24534 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24535 Remove W32_SCROLL_BAR_CLICK_EVENT.
24536
24537 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24538 Add MULTIMEDIA_KEY_EVENT.
24539
24540 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24541 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24542 (make_lispy_event) [WINDOWSNT]: Use it to translate
24543 MULTIMEDIA_KEY_EVENT.
24544
24545 * w32term.h (WM_APPCOMMAND): Define if not already.
24546 (GET_APPCOMMAND_LPARAM): Likewise.
24547
24548 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24549 WM_APPCOMMAND.
24550
24551 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24552 (syms_of_w32fns): Export and initialize it.
24553 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24554
245552007-11-09 Chong Yidong <cyd@stupidchicken.com>
24556
24557 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24558 twice.
24559
24560 * xdisp.c (handle_face_prop): Fix last change.
24561
245622007-11-09 Richard Stallman <rms@gnu.org>
24563
24564 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24565 not just for after-strings and before-strings.
24566 Call face_for_overlay_string and pass the overlay to it.
24567 (handle_display_prop): Determine whether property came from an overlay.
24568 Pass OVERLAY arg to handle_single_display_spec.
24569 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24570 (load_overlay_strings): Fill in it->string_overlays.
24571 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24572
24573 * xfaces.c (face_for_overlay_string): Function renamed from
24574 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24575
24576 * dispextern.h (struct it): New elt string_overlays.
24577 New elt from_overlay, also in stack.
24578 Rearrange a few elements.
24579 (face_for_overlay_string): Decl renamed from
24580 face_at_buffer_position_no_overlays, and add argument.
24581
245822007-11-09 Richard Stallman <rms@gnu.org>
24583
24584 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24585 to get the base face for an overlay string.
24586
24587 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24588
24589 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24590
24591 * xdisp.c (handle_stop): Move some code out of loop.
24592
245932007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24594
24595 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24596 Fix conversion from Lisp object to ATSUFontID.
24597
245982007-11-09 Jason Rumney <jasonr@gnu.org>
24599
24600 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24601
246022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24603
24604 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24605 Don't assume regions are aligned to page boundary.
24606 (print_load_command_name): Add LC_UUID if defined.
24607
246082007-11-09 Richard Stallman <rms@gnu.org>
24609
24610 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24611
246122007-11-07 Jason Rumney <jasonr@gnu.org>
24613
24614 * s/windows95.h: Remove.
24615
246162007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24617
24618 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24619 abort with a message on unhandled store_type values.
24620
246212007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24622
24623 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24624 Remove HAVE_X11R5 and HAVE_X11R4.
24625
246262007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24627
24628 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24629
246302007-11-01 Johan Bockgård <bojohan@gnu.org>
24631
24632 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24633 Don't set s->stippled_p here, since it has already been set by
24634 x_set_glyph_string_gc from x_draw_glyph_string.
24635
246362007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24637
24638 * sunfns.c: Remove file.
24639
24640 * m/sun386.h:
24641 * m/sun2.h:
24642 * m/sparc.h: Remove Sun windows code.
24643
246442007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24645
24646 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24647 (init_keyboard): Set current_kboard's window-system to nil.
24648 (tty_read_avail_input): Typo.
24649 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24650
246512007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24652
24653 * s/usg5-4.h:
24654 * s/usg5-3.h:
24655 * s/ptx.h:
24656 * m/is386.h:
24657 * m/ibmps2-aix.h:
24658 * Makefile.in: Remove all mentions of X10.
24659
24660 * dispnew.c (syms_of_display): Don't mention version 10.
24661
246622007-10-28 Juanma Barranquero <lekktu@gmail.com>
24663
24664 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24665 ($(BLD)/abbrev.$(O)): Remove.
24666
246672007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24668
24669 Rewrite abbrev.c in Elisp.
24670 * image.c (Qcount): Don't declare as extern.
24671 (syms_of_image): Initialize and staticpro `Qcount'.
24672 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24673 * emacs.c (main): Don't call syms_of_abbrev.
24674 * Makefile.in (obj): Remove abbrev.o.
24675 (abbrev.o): Remove.
24676 * abbrev.c: Remove.
24677
246782007-10-26 Martin Rudalics <rudalics@gmx.at>
24679
24680 * window.c (window_min_size_2): Don't count header-line.
24681
246822007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24683
24684 * frame.h (struct frame): Move all bit fields after the first bit
24685 field to take advantage of the available space. Group all the
24686 chars together to reduce wasted space due to padding.
24687
246882007-10-26 Juanma Barranquero <lekktu@gmail.com>
24689
24690 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24691
24692 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24693 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24694 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24695 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24696 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24697 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24698 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24699 (last_marked, mark_object_loop_halt): Make static.
24700
24701 * frame.c (syms_of_frame) <delete-frame-functions>:
24702 Fix typo in docstring.
24703
247042007-10-25 Juanma Barranquero <lekktu@gmail.com>
24705
24706 * w32.c (init_environment): Fix tiny memory leak.
24707 (w32_get_resource): Remove unused variable `ok'.
24708
247092007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24710
24711 Make `window-system' into a keyboard-local variable (rather than
24712 frame-local as done originally by multi-tty).
24713
24714 * keyboard.h (struct kboard): Add Vwindow_system.
24715 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24716 (mark_kboards): Mark Vwindow_system.
24717
24718 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24719 (init_display): Don't set the obsolete `window-system' frame-param.
24720
24721 * xterm.c (x_term_init):
24722 * w32term.c (w32_create_terminal):
24723 * term.c (init_tty): Set Vwindow_system.
24724 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24725 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24726
24727 * xfns.c (Fx_create_frame, x_create_tip_frame):
24728 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24729 * macfns.c (Fx_create_frame):
24730 Don't set the obsolete `window-system' frame-param.
24731
24732 * frame.h (Qwindow_system): Remove.
24733 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24734 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24735
247362007-10-24 Richard Stallman <rms@gnu.org>
24737
24738 * frame.c (x_figure_window_size): For fullscreen case,
24739 set USPosition | PPosition without clobbering rest of window_prompting.
24740
24741 * keyboard.c (Fcurrent_idle_time): Doc fix.
24742
24743 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24744
247452007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24746
24747 * process.c (unwind_request_sigio): Only define if __ultrix__.
24748
24749 * callproc.c (child_setup): Remove spurious *.
24750
24751 * lisp.h (Fget_text_property): Declare.
24752 (have_menus_p): Declare it here rather than in sys-dep header files.
24753 * macterm.h (have_menus_p):
24754 * msdos.h (have_menus_p):
24755 * xterm.h (have_menus_p): Remove.
24756
24757 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24758 (Fmake_variable_frame_local): Just check the variable's const-ness
24759 rather than checking nil or t.
24760
247612007-10-22 Jason Rumney <jasonr@gnu.org>
24762
24763 * w32fns.c: Include math.h.
24764 (w32_abort): Declaration moved to nt/config.nt.
24765
24766 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24767 (abort): Redefinition moved to nt/config.nt.
24768
24769 * m/windowsnt.h: Remove.
24770
247712007-10-22 Juanma Barranquero <lekktu@gmail.com>
24772
24773 * emacs.c (Fdump_emacs): Fix typo in message.
24774 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24775 <installation-directory>: Reflow docstring.
24776
247772007-10-22 Juri Linkov <juri@jurta.org>
24778
24779 * minibuf.c: Allow minibuffer default to be a list of default values.
24780 With empty input use the first element of this list as returned default.
24781 (string_to_object)
24782 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24783 (read_minibuf): If defalt is cons, set histstring to its car.
24784 (Fread_string): If default_value is cons, set val to its car.
24785 (Fread_buffer): If def is cons, use its car.
24786 (Fcompleting_read): If defalt is cons, set val to its car.
24787
247882007-10-21 Michael Albinus <michael.albinus@gmx.de>
24789
24790 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24791
247922007-10-20 Juanma Barranquero <lekktu@gmail.com>
24793
24794 * doc.c (Fdocumentation): Check for advice in all cases.
24795
247962007-10-19 Chong Yidong <cyd@stupidchicken.com>
24797
24798 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24799
248002007-10-19 Richard Stallman <rms@gnu.org>
24801
24802 * doc.c (Fdocumentation): Check for and handle an advised function.
24803
248042007-10-19 Juanma Barranquero <lekktu@gmail.com>
24805
24806 * process.c (Fset_process_filter): Doc fix.
24807
248082007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24809
24810 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24811 which caused key-translation-map to applied repeatedly (thus breaking
24812 double-mode).
24813
248142007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24815
24816 * xselect.c (x_own_selection, x_handle_selection_clear)
24817 (x_clear_frame_selections):
24818 * w32menu.c (list_of_panes, list_of_items):
24819 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24820 * textprop.c (validate_plist, interval_has_all_properties)
24821 (interval_has_some_properties, interval_has_some_properties_list)
24822 (add_properties, text_property_list):
24823 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24824 * minibuf.c (Fassoc_string):
24825 * macselect.c (x_own_selection, x_clear_frame_selections)
24826 (Fx_disown_selection_internal):
24827 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24828 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24829
248302007-10-17 Chong Yidong <cyd@stupidchicken.com>
24831
24832 * process.c: Link to libs for calling res_init() if available.
24833 (Fmake_network_process): Call res_init() before getaddrinfo or
24834 gethostbyname, if possible.
24835
248362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24837
24838 * lread.c (read1): Set pvectype for char_tables.
24839
24840 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24841 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24842 Add type checks.
24843 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24844
24845 * alloc.c (free_misc): Use XMISCTYPE.
24846 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24847
248482007-10-17 Glenn Morris <rgm@gnu.org>
24849
24850 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24851 (syms_of_minibuf): Add Qcompletion_ignore_case.
24852 * dired.c (Qcompletion_ignore_case): Change to external.
24853 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24854 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24855 (Fread_file_name): Use it rather than intern'ing.
24856
24857 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24858 (Fread_coding_system): Ignore case of user input.
24859
248602007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24861
24862 * xdisp.c (handle_display_prop): Ignore display specs after
24863 replacing one when string text is being replaced.
24864 (handle_single_display_spec): Pretend as if characters with display
24865 property haven't been consumed only when buffer text is being replaced.
24866
248672007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24868
24869 * xfns.c (Fx_create_frame, Fx_display_list):
24870 * window.c (window_fixed_size_p, enlarge_window)
24871 (shrink_window_lowest_first):
24872 * macterm.c (init_font_name_table):
24873 * macfns.c (Fx_create_frame, Fx_display_list):
24874 * lread.c (close_load_descs):
24875 * keyboard.c (read_char_x_menu_prompt):
24876 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24877 * coding.c (code_convert_region_unwind): Test the type of an object
24878 rather than just !NILP before extracting data from it.
24879
24880 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24881
24882 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24883 (XMISCANY): New macro.
24884 (XMISCTYPE): Use it.
24885 (struct Lisp_Misc_Any): New type.
24886 (union Lisp_Misc): Use it.
24887 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24888 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24889 (find_symbol_value, set_internal, default_value, Fset_default)
24890 (Fmake_variable_buffer_local, Fmake_local_variable)
24891 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24892 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24893 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24894 * alloc.c (allocate_buffer): Set the size and tag.
24895 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24896 Use XMISCANY.
24897 (die): Follow the GNU convention for error messages.
24898 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24899 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24900 tag any more.
24901 (set_buffer_internal_1):
24902 * frame.c (store_frame_param):
24903 * eval.c (specbind):
24904 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24905
24906 * doc.c (Fsnarf_documentation): Simplify.
24907
249082007-10-14 Juanma Barranquero <lekktu@gmail.com>
24909
24910 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24911 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24912
249132007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24914
24915 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24916
249172007-10-14 Juanma Barranquero <lekktu@gmail.com>
24918
24919 * eval.c (do_autoload): Don't save autoloads.
24920
24921 * data.c (Ffset): Save autoload of the function being set.
24922
249232007-10-07 John Paul Wallington <jpw@pobox.com>
24924
24925 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24926 parameter before setting up faces.
24927
249282007-10-13 Eli Zaretskii <eliz@gnu.org>
24929
24930 * ccl.c (Fregister_code_conversion_map):
24931 * keyboard.c (append_tool_bar_item): Reformat last change.
24932
24933 * lisp.h (eabs): Rename from `abs'. All callers changed.
24934
249352007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24936
24937 * buffer.c (add_overlay_mod_hooklist):
24938 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24939 * fontset.c (make_fontset):
24940 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24941 (append_tool_bar_item):
24942 * macmenu.c (grow_menu_items):
24943 * w32menu.c (grow_menu_items):
24944 * xmenu.c (grow_menu_items): Use larger_vector.
24945
249462007-10-13 Eli Zaretskii <eliz@gnu.org>
24947
24948 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24949 selected frame'' on MSDOS).
24950
249512007-10-12 Martin Rudalics <rudalics@gmx.at>
24952
24953 * frame.c (Qexplicit_name): New variable.
24954 (x_report_frame_params): Report it in parameter alist.
24955 (syms_of_frame): Intern and staticpro it.
24956
249572007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24958
24959 * macfns.c (x_create_tip_frame): Set terminal for frame.
24960
249612007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24962
24963 * frame.c (Qenvironment): Remove.
24964 (syms_of_frame) <Qenvironment>: Don't initialize.
24965 (Fdelete_frame): Don't treat the `environment' param specially.
24966 * frame.h (Qenvironment): Don't declare.
24967 * callproc.c (set_initial_environment): Don't set unused frame param.
24968
24969 * frame.c (Fframe_with_environment): Remove.
24970 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24971
24972 * lisp.h (Fframe_with_environment): Don't declare.
24973
249742007-10-10 Juanma Barranquero <lekktu@gmail.com>
24975
24976 * indent.c (indent_tabs_mode, last_known_column)
24977 (last_known_column_modified): Make static.
24978 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24979
249802007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24981
24982 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24983
249842007-10-09 Jason Rumney <jasonr@gnu.org>
24985
24986 * w32term.c (x_set_window_size): Disable code that attempts to tell
24987 Lisp code about a size change before it actually happens.
24988
249892007-10-09 Richard Stallman <rms@gnu.org>
24990
24991 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24992 return HANDLED_RETURN.
24993
249942007-10-08 Martin Rudalics <rudalics@gmx.at>
24995
24996 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24997 when there's an unread command event.
24998
24999 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25000 window autoselection act appropriately when leaving selected frame.
25001 (syms_of_frame): Initialize focus_follows_mouse.
25002 * frame.h (focus_follows_mouse): Extern it.
25003 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25004 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25005 * msdos.c (dos_rawgetc): Likewise.
25006 * w32term.c (w32_read_socket): Likewise.
25007 * xterm.c (handle_one_xevent): Likewise.
25008 * xdisp.c (syms_of_xdisp): In doc-string of
25009 mouse-autoselect-window mention focus-follows-mouse.
25010
250112007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25012
25013 * macterm.c (mac_load_query_font): Fix missing return value.
25014 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25015 Add BLOCK_INPUT.
25016
250172007-10-08 Richard Stallman <rms@gnu.org>
25018
25019 * xdisp.c (get_window_cursor_type): Implement documented behavior
25020 for cursor-in-non-selected-windows = t.
25021
250222007-10-08 Jason Rumney <jasonr@gnu.org>
25023
25024 * w32.c (w32_get_resource): Always close registry keys.
25025
250262007-10-08 Jason Rumney <jasonr@gnu.org>
25027
25028 * makefile.w32-in (LIBS): Add COMCTL32.
25029
25030 * w32fns.c (globals_of_w32fns): Init common controls.
25031
250322007-10-08 Richard Stallman <rms@gnu.org>
25033
25034 * image.c (our_memory_buffer): Rename from omfib_buffer.
25035
250362007-10-08 Richard Stallman <rms@gnu.org>
25037
25038 * buffer.c (Foverlays_at): Doc fix.
25039
250402007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25041
25042 * fns.c (Fplist_put): Preserve uneven tail data.
25043
250442007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25045
25046 * termhooks.h (enum event_kind): Remove trailing comma.
25047
25048 * frame.h (enum): Remove trailing comma.
25049
250502007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25051
25052 * w32proc.c (delete_child): Don't terminate threads of zombies.
25053
250542007-10-08 Martin Rudalics <rudalics@gmx.at>
25055
25056 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25057
25058 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25059 last-repeatable-command.
25060 (init_kboard): Initialize Vlast_repeatable_command.
25061 (command_loop_1): Set it to real_this_command unless that was
25062 bound to an input event.
25063 (mark_kboards): Mark it.
25064
250652007-10-08 Richard Stallman <rms@gnu.org>
25066
25067 * eval.c (condition-case): Doc fix.
25068
250692007-10-08 Masatake YAMATO <jet@gyve.org>
25070
25071 * xfaces.c (tty_supports_face_attributes_p): Fix code
25072 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25073 was copied and not edited.
25074
250752007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25076
25077 Add new `input-decode-map' keymap and use it for terminal
25078 escape sequences.
25079 * keyboard.h (struct kboard): Add Vinput_decode_map.
25080 Remove Vlocal_key_translation_map.
25081 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25082 (init_kboard): Init input-decode-map.
25083 Replace local-key-translation-map back with key-translation-map.
25084 (syms_of_keyboard): Declare input-decode-map.
25085 Remove local-key-translation-map. Update docstrings.
25086 (mark_kboards): Mark Vinput_decode_map.
25087 Don't mark Vlocal_key_translation_map.
25088 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25089 Replace local-key-translation-map back with key-translation-map.
25090 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25091 Bind in input-decode-map rather than function-key-map.
25092
25093 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25094 This was made redundant by the previous introduction of XSETPVECTYPE.
25095
250962007-10-09 Richard Stallman <rms@gnu.org>
25097
25098 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25099
251002007-09-29 Richard Stallman <rms@gnu.org>
25101
25102 * eval.c (internal_condition_case_2, internal_condition_case_1)
25103 (internal_condition_case): Reenable abort if x_catching_errors ()
25104 to see if that really happens and why.
25105
251062007-10-06 Andreas Schwab <schwab@suse.de>
25107
25108 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25109
251102007-10-04 Juanma Barranquero <lekktu@gmail.com>
25111
25112 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25113
251142007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25115
25116 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25117
251182007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25119
25120 * window.h (struct window):
25121 * window.c (struct save_window_data, struct saved_window):
25122 * termhooks.h (struct terminal):
25123 * process.h (struct Lisp_Process):
25124 * frame.h (struct frame):
25125 * buffer.h (struct buffer):
25126 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25127 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25128 The size field of (pseudo)vectors is now unsigned.
25129 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25130
25131 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25132 Turn `count' into an integer.
25133
25134 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25135 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25136 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25137 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25138 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25139
25140 * alloc.c (allocate_pseudovector): New fun.
25141 (ALLOCATE_PSEUDOVECTOR): New macro.
25142 (allocate_window, allocate_terminal, allocate_frame)
25143 (allocate_process): Use it.
25144 (mark_vectorlike): New function.
25145 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25146 (mark_terminals): Use it.
25147 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25148 (Fmake_byte_code): Use XSETPVECTYPE.
25149
25150 * frame.c (Fframe_parameters): Minor simplification.
25151
25152 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25153
25154 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25155
25156 * buffer.c (Fget_buffer_create, init_buffer_once):
25157 * lread.c (defsubr):
25158 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25159
25160 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25161 defined differently in the m/*.h files.
25162 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25163 (XSETPVECTYPE): New macro.
25164 (XSETPSEUDOVECTOR): Use it.
25165
25166 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25167 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25168
25169 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25170 * lread.c (defvar_per_buffer):
25171 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25172
25173 * window.c (candidate_window_p): Only consider as visible frames that
25174 are on the same terminal.
25175
25176 * m/ibms390x.h (MARKBIT): Remove unused macro.
25177
251782007-10-01 Juanma Barranquero <lekktu@gmail.com>
25179
25180 * lread.c (Fload): Fix typo in docstring.
25181
251822007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25183
25184 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25185 of a non-zero value can't yield zero.
25186
251872007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25188
25189 * term.c (term_clear_mouse_face, term_mouse_highlight)
25190 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25191
25192 * print.c (safe_debug_print): Use XHASH.
25193
25194 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25195 Lisp elements such as tags.
25196 (XHASH): New macro.
25197 (EQ): Use it.
25198 (SREF, SSET, STRING_COPYIN): Use SDATA.
25199 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25200
25201 * alloc.c (mark_terminal): Remove left-over declaration.
25202 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25203 (allocate_vectorlike): Remove type argument. Adjust callers.
25204 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25205 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25206
25207 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25208 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25209 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25210 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25211 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25212 Use them.
25213
25214 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25215 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25216 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25217
252182007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25219
25220 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25221 loaded by default.
25222
252232007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25224
25225 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25226 on this tty.
25227 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25228
25229 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25230 Update all users.
25231 (handle_one_term_event): Use Gpm_DrawPointer.
25232 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25233 Signal errors instead of returning nil. Always return nil.
25234 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25235 Make it a noop if gpm-mouse was not activated.
25236 (syms_of_term): Update names.
25237
252382007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25239
25240 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25241 (init_sys_modes): Check that gpm_tty is the current tty.
25242
25243 * alloc.c (allocate_terminal): Set the vector size to only count the
25244 lisp fields. Initialize those to nil.
25245 (mark_object): Don't treat terminals specially.
25246 (mark_terminal): Remove.
25247 (mark_terminals): Use mark_object instead.
25248
25249 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25250 the GC to the beginning.
25251
25252 * indent.h:
25253 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25254
25255 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25256
252572007-09-25 Jason Rumney <jasonr@gnu.org>
25258
25259 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25260
25261 * w32console.c (create_w32cons_output): Remove.
25262
25263 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25264
25265 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25266 (reset_sys_modes): Use reset_terminal_modes_hook.
25267
252682007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25269
25270 * eval.c (do_autoload): Don't output any message.
25271
252722007-09-24 Juri Linkov <juri@jurta.org>
25273
25274 * emacs.c (standard_args): Change priority of "--no-splash"
25275 from 40 to 3. Add "--no-desktop" with the same priority.
25276
252772007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25278
25279 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25280 and optimize the case where they are all 1.
25281
252822007-09-23 Johannes Weiner <hannes@saeurebad.de>
25283
25284 * lisp.h (abs): Define if not defined.
25285 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25286 Don't define `abs', since it's defined in lisp.h.
25287
252882007-09-22 Eli Zaretskii <eliz@gnu.org>
25289
25290 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25291 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25292 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25293 (init_tty): Use DEV_TTY instead of "/dev/tty".
25294 [WINDOWSNT]: No need to protect from NAME arg being null.
25295
252962007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25297
25298 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25299 up the tty state.
25300
253012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25302
25303 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25304 (gpm_tty): Change its type.
25305 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25306 (gpm_tty): Change its type and initialize it.
25307 (Fterm_open_connection): Check the frame is indeed a tty.
25308 Use the new gpm_tty.
25309 (Fterm_close_connection): Use the new gpm_tty.
25310 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25311 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25312
253132007-09-21 Juanma Barranquero <lekktu@gmail.com>
25314
25315 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25316 underline_color, to draw strike-through.
25317
253182007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25319
25320 * lisp.h (allocate_terminal): Declare.
25321
25322 * window.c (candidate_window_p): Consider frames that are being placed
25323 by the user as somewhere between visible and iconified.
25324 (window_loop): Prefer windows on the current frame.
25325 (Fselect_window): Move the use of select-frame to the beginning so we
25326 can just delegate all the work (it'll call us back anyway).
25327
25328 * frame.c (Qdisplay_environment_variable):
25329 * frame.h (Qdisplay_environment_variable): Delete.
25330
25331 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25332 of the first arg, since that value may be a union.
25333
25334 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25335 parameter rather than Qdisplay_environment_variable. If all else
25336 fails, look for DISPLAY in initial-environment.
25337
253382007-09-21 Glenn Morris <rgm@gnu.org>
25339
25340 * Makefile.in (emacstool): Remove target.
25341 (lisp, shortlisp): Remove termdev.elc.
25342
253432007-09-21 Markus Triska <markus.triska@gmx.at>
25344
25345 * xterm.c (x_delete_display): Compile session management conditionally.
25346
253472007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25348
25349 * callproc.c (getenv_internal_1): New function.
25350 (getenv_internal): Use it.
25351 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25352
25353 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25354 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25355 (Fset_terminal_parameter): Work with dead terminals as well.
25356 (Fmodify_terminal_parameters): Remove.
25357
25358 * terminal.c (get_terminal): Handle terminals.
25359 Make sure the terminal returned is live.
25360 (create_terminal): Use allocate_terminal.
25361 (mark_terminals): Move to alloc.c.
25362 (delete_terminal): Use terminal->name as liveness status.
25363 NULL out fields after freeing their contents.
25364 Don't deallocate the object.
25365 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25366 rather than an int.
25367 (Fterminal_live_p): Accept non-integer arguments.
25368 (Fterminal_list): Return terminal objects rather than an ints.
25369
25370 * alloc.c (enum mem_type): New member for `terminal' objects.
25371 (allocate_terminal): New function.
25372 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25373 Handle terminals.
25374 (mark_terminal): New fun.
25375 (mark_terminals): Move from terminal.c.
25376
25377 * term.c (get_tty_terminal): Don't treat output_initial specially.
25378 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25379 (delete_tty): Use terminal->name as liveness status.
25380
25381 * termhooks.h (struct terminal): Make it into a pseudovector.
25382 Remove `deleted' replaced by checking `name's nullness.
25383
25384 * print.c (print_object): Handle terminals.
25385
25386 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25387 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25388
25389 * frame.c (make_terminal_frame):
25390 * keyboard.c (tty_read_avail_input):
25391 * w32term.c (x_delete_terminal):
25392 * xfns.c (Fx_create_frame, x_create_tip_frame):
25393 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25394
253952007-09-20 Glenn Morris <rgm@gnu.org>
25396
25397 * process.c (Fmake_network_process): Doc fix.
25398
253992007-09-19 Jason Rumney <jasonr@gnu.org>
25400
25401 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25402
254032007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25404
25405 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25406 Fix a C warning regarding variable constness.
25407
25408 * xterm.c (handle_one_xevent): Fix a C warning.
25409
254102007-09-18 Jason Rumney <jasonr@gnu.org>
25411
25412 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25413
254142007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25415
25416 * gtkutil.c (gdpy_def): New variable.
25417 (xg_initialize): Initialize gdpy_def.
25418 (xg_display_close): If no other display exists, set gdpy_def to a
25419 new connection.
25420
254212007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25422
25423 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25424 when we have no file name for the icon.
25425 (xg_tool_bar_expose_callback): Remove.
25426 (xg_create_tool_bar): Don't connect expose signal to
25427 xg_tool_bar_expose_callback.
25428 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25429
254302007-09-16 Andreas Schwab <schwab@suse.de>
25431
25432 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25433 values instead of zapping them.
25434
254352007-09-14 Glenn Morris <rgm@gnu.org>
25436
25437 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25438 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25439 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25440 scope and rename to omfib_buffer for clarity.
25441 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25442
254432007-09-14 Kenichi Handa <handa@m17n.org>
25444
25445 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25446
254472007-09-13 Jason Rumney <jasonr@gnu.org>
25448
25449 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25450
25451 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25452
25453 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25454 (mac_term_init): Call here instead, passing rif.
25455
254562007-09-13 Glenn Morris <rgm@gnu.org>
25457
25458 * s/hpux.h: No longer define `static' as nothing.
25459
254602007-09-13 Johan Bockgård <bojohan@gnu.org>
25461
25462 * callint.c (Fcall_interactively): Remove unused var `fun'.
25463
254642007-09-12 Romain Francoise <romain@orebokech.com>
25465
25466 * window.c (prefer_window_split_horizontally, display_buffer):
25467 Revert 2007-09-08 change.
25468
254692007-09-12 Glenn Morris <rgm@gnu.org>
25470
25471 * alloca.c: Remove file.
25472 * Makefile.in (alloca): Do not undef.
25473 (allocaobj, alloca.o): Remove.
25474 (otherobj): Remove allocaobj.
25475 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25476 * regex.c (C_ALLOCA): Remove all references and code that was only
25477 used when this was defined.
25478 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25479 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25480 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25481
25482 * Makefile.in (SOURCES, unlock, relock): Delete.
25483
25484 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25485 (menu_grab_callback): All uses changed.
25486
25487 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25488 (x_reply_selection_request): All uses changed.
25489
254902007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25491
25492 * lread.c (load_warn_old_style_backquotes): Change message to look
25493 better when it appears in the middle of byte-compiler messages.
25494
254952007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25496
25497 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25498
25499 * xterm.c (x_create_terminal): Add comment.
25500
25501 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25502
255032007-09-10 Richard Stallman <rms@gnu.org>
25504
25505 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25506
255072007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25508
25509 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25510 (DEFUN): Document `intspec', use it instead of `prompt'.
25511
25512 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25513
25514 * data.c (Finteractive_form): If the interactive specification starts
25515 with a `(', use it as a Lisp form.
25516
25517 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25518 name and file modes.
25519
25520 * callint.c (Fcall_interactively): Comment fixes.
25521
255222007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25523
25524 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25525 and compiled functions.
25526
255272007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25528
25529 * window.c (prefer_window_split_horizontally): New variable.
25530 (display_buffer): Consider splitting window horizontally depending
25531 on prefer_window_split_horizontally.
25532
255332007-09-08 Eli Zaretskii <eliz@gnu.org>
25534
25535 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25536
255372007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25538
25539 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25540
25541 * frame.c (x_set_frame_parameters): Check number is positive before
25542 using XFASTINT.
25543
25544 * window.c (freeze_window_start): Don't presume selected_window holds
25545 a window object.
25546 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25547
255482007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25549
25550 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25551
255522007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25553
25554 * window.c (Vsplit_window_preferred_function): New var.
25555 (Fdisplay_buffer): Use it.
25556 (syms_of_window): Export, and initialize it.
25557
255582007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25559
25560 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25561
255622007-09-06 Glenn Morris <rgm@gnu.org>
25563
25564 * gtkutil.c (menu_grab_callback) <cnt>:
25565 * xselect.c (x_reply_selection_request) <cnt>: Move static
25566 variable to file scope.
25567
255682007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25569
25570 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25571 consistent values of selected_frame and selected_window.
25572
255732007-09-04 Jason Rumney <jasonr@gnu.org>
25574
25575 * w32console.c (initialize_w32_display): Zero unused hooks.
25576
255772007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25578
25579 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25580 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25581
255822007-09-04 Jason Rumney <jasonr@gnu.org>
25583
25584 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25585 in w32console.c. Set up input. Remove XXX comments that have been
25586 confirmed as correct.
25587
25588 * s/ms-w32.h (MULTI_KBOARD): Define.
25589
25590 * w32console.c (one_and_only_w32cons): Remove.
25591 (initialize_w32_display): Take terminal argument.
25592
25593 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25594 initialize_w32_display.
25595 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25596
25597 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25598
25599 * keyboard.c (discard_mouse_events): Discard it.
25600 (make_lispy_event): Translate it to a lisp event.
25601 (lispy_wheel_names): Add wheel-left and right events.
25602 (syms_of_keyboard): Enlarge wheel_syms.
25603
25604 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25605 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25606
25607 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25608
25609 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25610 from WM_MOUSEHWHEEL.
25611 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25612
25613 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25614 terminal.
25615
25616 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25617 keyboard for the terminal.
25618
256192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25620
25621 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25622 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25623 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25624 and resume-tty-function to resume-tty-hook.
25625 (Fsuspend_tty, Fresume_tty): Use new names.
25626
256272007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25628
25629 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25630 if it starts with "n:".
25631
256322007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25633
25634 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25635
256362007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25637
25638 * frame.h:
25639 * frame.c (Qterm_environment_variable): Remove.
25640 (syms_of_frame): Don't init and staticpro it.
25641
25642 * callproc.c (getenv_internal): Remove special case for $TERM.
25643
25644 * callproc.c (Vinitial_environment): New variable.
25645 (set_initial_environment): Initialize it.
25646 (syms_of_callproc): Declare it.
25647 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25648 TERM under which a process runs is never related to the TERM in which
25649 Emacs is running.
25650
256512007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25652
25653 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25654 * s/darwin.h: ... do it here.
25655
256562007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25657
25658 * lisp.h (set_initial_environment): Rename from set_global_environment.
25659
25660 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25661 removed by mistake on the multi-tty branch.
25662
25663 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25664 (Fmodify_frame_parameters): Return a value.
25665
25666 * image.c (png_load): Comment-out var only used in commented-out code.
25667
25668 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25669 before passing it to mark_object.
25670
25671 * xfaces.c (internal_resolve_face_name): Return a value.
25672 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25673
25674 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25675 (x_icon): Comment-out var only used in commented-out code.
25676
256772007-08-29 Romain Francoise <romain@orebokech.com>
25678
25679 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25680 QUIT hasn't been provided.
25681
256822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25683
25684 * callproc.c (child_setup, getenv_internal): Use the
25685 display-environment-variable and term-environment-variable frame params.
25686 (set_initial_environment): Initialise Vprocess_environment.
25687
25688 * config.in: Disable multi-keyboard support on a mac.
25689
25690 * frame.c (Qterm_environment_variable)
25691 (Qdisplay_environment_variable): New variables.
25692 (syms_of_frame): Intern and staticpro them.
25693 (Fmake_terminal_frame): Disable output method test.
25694
25695 * frame.h: Declare them here.
25696
25697 * macfns.c (x_set_mouse_color): Get rif from the frame.
25698 (x_set_tool_bar_lines): Don't use updating_frame.
25699 (mac_window): Add 2 new parameters for consistency with other systems.
25700 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25701 frame parameters following what is done in X11 and w32. Don't use
25702 FRAME_MAC_DISPLAY_INFO.
25703 (Fx_open_connection, start_hourglass): Remove window-system check.
25704 (x_create_tip_frame): Get the keyboard from the terminal.
25705
25706 * macmenu.c: Reorder includes.
25707 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25708
25709 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25710 terminal parameter.
25711 (x_clear_frame): Add a frame parameter.
25712 (note_mouse_movement): Get rif from the frame.
25713 (mac_term_init): Initialize the terminal.
25714 (mac_initialize): Make static and move terminal initialization ...
25715 (mac_create_terminal): ... to this new function.
25716
25717 * macterm.h (struct mac_display_info): Add terminal.
25718 (mac_initialize): Delete declaration.
25719
25720 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25721
25722 * sysdep.c: Comment out text after #endif.
25723
25724 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25725 is defined. Better initialize ttys in windows. Use terminal
25726 specific mouse_position_hook.
25727
25728 * termhooks.h (union display_info): Add mac_display_info.
25729
25730 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25731 Set the default minibuffer frame, window_system and the rest of the
25732 frame parameters following what is done in X11.
25733
25734 * w32term.c (w32_initialize): Make static.
25735
25736 * xselect.c (x_handle_selection_clear): Only access
25737 terminal->kboard when MULTI_KBOARD is defined.
25738
25739 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25740 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25741
257422007-08-29 Jason Rumney <jasonr@gnu.org>
25743
25744 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25745 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25746
25747 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25748 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25749
25750 * keyboard.c (restore_kboard_configuration): Only define when
25751 MULTI_KBOARD defined.
25752
25753 * makefile.w32-in: Update dependancies from Makefile.in.
25754 (OBJ1): Add terminal.$(O)
25755
25756 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25757 Don't define function body.
25758 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25759
25760 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25761
25762 * w32.c (request_sigio, unrequest_sigio): Remove.
25763
25764 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25765 (w32con_clear_frame, w32con_clear_end_of_line)
25766 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25767 (w32con_delete_glyphs, w32con_set_terminal_window)
25768 (scroll_line, w32_sys_ring_bell): Add frame arg.
25769 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25770 Add terminal arg.
25771 (PICK_FRAME): Remove.
25772 (w32con_write_glyphs): Use frame specific terminal coding.
25773 (one_and_only_w32cons): New global variable.
25774 (initialize_w32_display): Use it for storing hooks.
25775 (create_w32cons_output): New function.
25776
25777 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25778 arg a frame.
25779
25780 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25781 Set window_system.
25782 (x_set_tool_bar_lines): Don't use updating_frame.
25783 (Fx_create_frame): Set terminal and ref count.
25784 (Fx_open_connection): Remove window-system check.
25785
25786 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25787
25788 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25789 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25790 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25791 Add frame arg.
25792 (x_delete_terminal, w32_create_terminal): New functions.
25793 (w32_term_init): Create a terminal.
25794 (w32_initialize): Move terminal specific initialization to
25795 w32_create_terminal.
25796
25797 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25798 (w32_clear_rect, w32_clear_area): Use background from frame.
25799 (w32_display_info): Add terminal.
25800 (w32_sys_ring_bell, x_delete_display): Declare here.
25801
25802 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25803
25804 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25805
258062007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25807
25808 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25809 Fix get_named_tty calls for the controlling tty.
25810
258112007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25812
194d44e7 25813 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25814
258152007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25816
25817 * term.c (tty_insert_glyphs): Add missing first parameter.
25818
258192007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25820
25821 * buffer.c (Fbuffer_list, Fbury_buffer):
25822 Take frame->buried_buffer_list into account.
25823
25824 * cm.c (current_tty): New variable, for cmputc().
25825 (cmputc): Use it.
25826 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25827 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25828 (cmgoto): Add tty parameter. Pass it on to calccost().
25829 Use emacs_tputs() instead of tputs().
25830
25831 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25832 tputs().
25833 (current_tty): New variable, for cmputc().
25834 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25835
25836 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25837 (internal_condition_case, internal_condition_case_1)
25838 (internal_condition_case_2): Don't abort when x_catching_errors.
25839
25840 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25841 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25842 prevent crashes caused by bogus longjmps in read_char.
25843
25844 * keymap.h (Fset_keymap_parent): Add EXFUN.
25845
25846 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25847 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25848 Remove redundant definition.
25849
25850 * macfns.c (x_set_mouse_color, x_make_gc):
25851 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25852
25853 * w32term.c (x_free_frame_resources):
25854 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25855 (w32_initialize): Use the accessor macros for terminal characteristics.
25856
25857 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25858 Use the accessor macros for terminal characteristics.
25859 * msdos.c (internal_terminal_init): Use the accessor macros for
25860 terminal characteristics.
25861 (ScreenVisualBell, internal_terminal_init):
25862 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25863
25864 * termopts.h (no_redraw_on_reenter): Declare.
25865
25866 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25867 (mark_terminals, mark_ttys): Declare.
25868 (Fgarbage_collect): Call them.
25869 (mark_object): Mark buried_buffer_list.
25870
25871 * prefix-args.c: Include stdlib.h for exit.
25872
25873 * syssignal.h: Add comment.
25874
25875 * indent.c: Include stdio.h.
25876
25877 * window.h (Vinitial_window_system): Declare.
25878 (Vwindow_system): Delete declaration.
25879
25880 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25881
25882 * image.c (lookup_image): Don't initialize `c' until the xasserts
25883 have been run.
25884
25885 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25886 FRAME_FOREGROUND_PIXEL.
25887
25888 * print.c (print_preprocess): Don't lose print_depth levels while
25889 iterating.
25890
25891 * widget.c (update_from_various_frame_slots):
25892 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25893
25894 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25895 frames.
25896 (window_internal_height): Remove bogus make_number call.
25897 (init_window_once): Call make_terminal_frame with two zero parameters.
25898
25899 * fileio.c (Fread_file_name): Update comment.
25900
25901 * callint.c (Fcall_interactively):
25902 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25903 Make sure it is correctly unwound.
25904
25905 * xsmfns.c (x_session_close): New function.
25906
25907 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25908 Delete declarations.
25909
25910 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25911 (x_output): Remove background_pixel and foreground_pixel fields.
25912 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25913 (x_delete_device, x_session_close): Declare.
25914
25915 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25916 (read_filtered_event): Call `read_char' with a local
25917 `wrong_kboard_jmpbuf'.
25918
25919 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25920 Don't call single_kboard_state. Use FRAME_RIF.
25921
25922 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25923 systems.
25924
25925 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25926 (Fframe_with_environment, Fset_input_meta_mode)
25927 (Fset_quit_char): EXFUN.
25928 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25929 (init_sys_modes, reset_sys_modes): Update prototypes.
25930 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25931
25932 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25933 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25934 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25935 Delete declarations.
25936 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25937 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25938 New declarations.
25939
25940 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25941 already does that during init_display(). Call syms_of_keymap
25942 before syms_of_keyboard. Call `syms_of_terminal'.
25943 Call set_initial_environment, not set_process_environment.
25944 (shut_down_emacs): Call reset_all_sys_modes() instead of
25945 reset_sys_modes().
25946
25947 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25948 (internal_resolve_face_name, resolve_face_name_error): New functions.
25949 (resolve_face_name): Protect against loops and errors thrown by Fget.
25950 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25951 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25952
25953 * scroll.c: Replace CURTTY() with local variables throughout the
25954 file (where applicable).
25955 (calculate_scrolling, calculate_direct_scrolling)
25956 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25957 characteristics.
25958
25959 * keymap.c (Vfunction_key_map): Remove.
25960 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25961 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25962 (Vkey_translation_map): Remove.
25963 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25964 (Fdescribe_buffer_bindings)
25965 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25966 Update for terminal-local key-translation-map.
25967
25968 * Makefile.in (callproc.o): Update dependencies.
25969 (lisp, shortlisp): Add termdev.elc.
25970 (obj): Add terminal.o.
25971 (terminal.o): Add dependencies.
25972 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25973 (data.o, fns.o): Add termhooks.h dependency.
25974 (SOME_MACHINE_LISP): Add dnd.elc.
25975 (minibuf.o): Fix typo.
25976 Update dependencies.
25977
25978 * data.c (do_symval_forwarding, store_symval_forwarding)
25979 (find_symbol_value): Use the selected frame's keyboard, not
25980 current_kboard.
25981
25982 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25983 Vwindow_system.
25984
25985 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25986 Fmenu_bar_open.
25987 (syms_of_xmenu): Update defsubr.
25988 (mouse_position_for_popup, Fx_popup_menu)
25989 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25990 (set_frame_menubar, free_frame_menubar)
b97439ce 25991 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25992 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25993 an X frame.
25994
25995 * xselect.c (x_own_selection): Abort if not an X frame.
25996 (some_frame_on_display): Check if it is an X frame.
25997 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25998
25999 * coding.c: Include frame.h and termhooks.h.
26000 (terminal_coding, keyboard_coding): Delete.
26001 (Fset_terminal_coding_system_internal)
26002 (Fset_keyboard_coding_system_internal)
26003 (Fkeyboard_coding_system)
26004 (Fterminal_coding_system): Add a terminal parameter.
26005 Get terminal_coding from the terminal.
26006 (init_coding_once): Don't call setup_coding_system here.
26007
26008 * dispextern.h (set_scroll_region, turn_off_insert)
26009 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26010 (tty_clear_end_of_line, tty_setup_colors)
26011 (delete_tty, updating_frame)
26012 (produce_special_glyphs, produce_glyphs, write_glyphs)
26013 (insert_glyphs): Remove.
26014 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26015 (tty_turn_off_highlight, get_tty_size): Add declaration.
26016 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26017
26018 * frame.h (enum output_method): Add output_initial.
26019 (struct x_output): Delete.
26020 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26021 Access foreground_pixel and background_pixel directly from the frame.
26022 (tty_display): Delete.
26023 (struct frame): Add buried_buffer_list, foreground_pixel,
26024 background_pixel and terminal. Delete kboard.
26025 (union output_data): Add tty.
26026 (FRAME_KBOARD): Get the kboard from the terminal.
26027 (FRAME_INITIAL_P): New macro.
26028 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26029 (Qterm_environment_variable, Qdisplay_environment_variable)
26030 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26031 New declarations.
26032
26033 * termchar.h (tty_output, tty_display_info): New structures.
26034 (tty_list): Declare.
26035 (FRAME_TTY, CURTTY): New macros.
26036 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26037 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26038 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26039 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26040
26041 * callproc.c: Include frame.h and termhooks.h, for terminal
26042 parameters.
26043 (add_env): New function.
26044 (child_setup): Use it.
26045 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26046 (getenv_internal): Fix get_terminal_param call.
26047 (Fgetenv_internal, egetenv): Update doc.
26048 (syms_of_callproc): Initialize Vprocess_environment to nil.
26049 Register and initialize them. Remove obsolete defvars. Update doc
26050 strings.
26051 (child_setup): Handle Vlocal_environment_variables.
26052 (getenv_internal): Add terminal parameter.
26053 Handle Vlocal_environment_variables.
26054 (Fgetenv_internal): Add terminal parameter.
26055 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26056 environment in a frame (not terminal) parameter. Update doc strings.
26057 (set_initial_environment): Rename from set_global_environment.
26058 Store Emacs environment in initial frame parameter.
26059
26060 * xdisp.c (redisplay_internal): Update references to
26061 `previous_terminal_frame'.
26062 (display_mode_line, Fformat_mode_line): Replace calls to
26063 `push_frame_kboard' with `push_kboard'.
26064 (get_glyph_string_clip_rects): Add extra parentheses and
26065 braces to prevent compiler warnings.
26066 (calc_pixel_width_or_height): Add xassert to check that the
26067 frame is alive. Don't call `lookup_image' on a termcap frame.
26068 (message2_nolog, message3_nolog, redisplay_internal)
26069 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26070 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26071 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26072 (Fx_display_pixel_width, Fx_display_pixel_height)
26073 (Fx_display_planes, Fx_display_color_cells)
26074 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26075 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26076 (Fx_display_backing_store, Fx_display_visual_class)
26077 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26078 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26079
26080 * xfns.c (x_set_foreground_color x_set_background_color)
26081 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26082 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26083 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26084 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26085 terminal that is being deleted.
26086 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26087 frame parameter, and make sure it overrides any user-supplied setting.
26088 (Fx_close_connection, Fx_synchronize): Unify argument names with
26089 the rest of the DEFUNs.
26090
26091 * dispnew.c (Fsend_string_to_terminal): Update call to
26092 `get_tty_terminal'.
26093 (Fredraw_frame, Fsend_string_to_terminal)
26094 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26095 FRAME_TERMCAP_P and FRAME_TTY.
26096 (window_change_signal): Don't believe width/height values that are
26097 impossibly small.
26098 (Vinitial_window_system): Rename from Vwindow_system.
26099 (termscript, Wcm, rif): Delete.
26100
26101 * termhooks.h (struct terminal): New struct containing the
26102 previously global text display hooks and new members NAME,
26103 DELETED and PARAM_ALIST.
26104 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26105 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26106 (FRAME_RIF): New macros.
26107 (get_terminal_param, get_device): New declarations.
26108 (termscript): Delete declaration.
26109
26110 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26111 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26112 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26113 FRAME_FOREGROUND_PIXEL.
26114 (x_fully_uncatch_errors): Disable definition.
26115 (x_scroll_bar_expose): Fix reference to foreground pixel.
26116 (XTread_socket): Disable loop on all X displays.
26117 (x_delete_terminal): Don't set terminal->deleted and let
26118 delete_terminal delete the frames on the terminal.
26119 (x_delete_display): Doc update to reflect changes in
26120 delete_terminal.
26121 (x_display_info) <terminal>: Move member earlier in the struct.
26122 (deleting_tty): Remove old variable.
26123 (Fsuspend_tty): Call clear_tty_hooks.
26124 (Fresume_tty, init_tty): Call set_tty_hooks.
26125 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26126 errors on X frames.
26127 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26128 (handle_one_xevent): Initialize `f' to NULL.
26129 (x_delete_terminal, x_create_terminal): New functions.
26130 (XTset_terminal_modes, XTreset_terminal_modes)
26131 (XTread_socket, x_connection_closed, x_term_init)
26132 (x_term_init, x_delete_display): Add terminal parameter.
26133 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26134 X connections.
26135
26136 * frame.c: Include termchar.h.
26137 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26138 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26139 (Qdisplay_environment_variable): New vars.
26140 (Fframep): Deal with output_initial.
26141 (Fframe-live-p): Doc fix.
26142 (Fwindow-system): New function.
26143 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26144 (make_terminal_frame): Don't create frames on a terminal that is
26145 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26146 (store_frame_param): Check for found_for_frame before calling XFRAME.
26147 (Fmake_terminal_frame): Handle NULL tty names correctly.
26148 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26149 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26150 frames to refer to a deleted frame in their 'environment parameter.
26151 (Fframe_with_environment): New function.
26152 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26153 (get_future_frame_param): New function.
26154 (Fmake_terminal_frame): Use it.
26155 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26156
26157 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26158 * sysdep.c (reset_sys_modes): Update for renames.
26159
26160 * keyboard.c (tty_read_avail_input): New function.
26161 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26162 (syms_of_keyboard): Defsubr them.
26163 (Fset_input_meta_mode, Fset_quit_char): New functions.
26164 (Fset_input_mode): Split to above functions.
26165 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26166 parameter. Use it in call to `read_char'.
26167 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26168 Set wrong_kboard_jmpbuf correctly in recursive calls.
26169 Use current_kboard to access Vkeyboard_translate_table.
26170 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26171 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26172 Update longjmp invocations. Remember the original current_kboard,
26173 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26174 changes it. Comment out unnecessary calls to
26175 `record_single_kboard_state' and `any_kboard_state'.
26176 Update recursive calls.
26177 (wrong_kboard_jmpbuf): Remove global variable.
26178 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26179 Handle deleted interrupted_kboards correctly; that is a legal
26180 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26181 and read_char calls. Abort if interrupted_kboard died in read_char.
26182 (any_kboard_state, single_kboard_state)
26183 (push_frame_kboard): Remove function.
26184 (pop_kboard): Switch out of single_kboard mode if the kboard has
26185 been deleted. Remove unused variable. Help debugging by not
26186 changing current_kboard unnecessarily. Set current_kboard to the
26187 kboard of the selected frame when the stored kboard object has
26188 been deleted before pop_kboard.
26189 (temporarily_switch_to_single_kboard): Change first parameter to a
26190 frame pointer. Throw an error when caller wants to change kboards
26191 while in single_kboard mode. Don't push_kboard if we weren't in
26192 single kboard state. Don't pop_kboard if we popped into any
26193 kboard state.
26194 (restore_kboard_configuration): Abort if pop_kboard changed the
26195 kboard in single_kboard mode. Call pop_kboard only after setting
26196 up single_kboard mode.
26197 (Frecursive_edit): Switch to single_kboard mode only in nested
26198 command loops.
26199 (cmd_error, command_loop, command_loop_1, timer_check):
26200 Comment out unnecessary call to `any_kboard_state' and
26201 `record_single_kboard_state'.
26202 (delete_kboard): Exit single_kboard mode if we have just deleted
26203 that kboard. Use FRAME_KBOARD.
26204 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26205 `fatal_error_signal'.
26206 (record_single_kboard_state): Don't push_kboard if we weren't in
26207 single kboard state. Don't pop_kboard if we popped into any
26208 kboard state.
26209 (push_frame_kboard): Rename to push_kboard.
26210 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26211 (read_avail_input): Read input from all terminals.
26212 (mark_kboards): Also mark Vkeyboard_translate_table.
26213 (kbd_buffer_store_event_hold): Simplify condition.
26214 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26215 (Vkeyboard_translate_table): Move to struct kboard.
26216 (init_kboard): Initialize Vkeyboard_translate_table.
26217 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26218 Vkeyboard_translate_table. Update doc strings. Update docs of
26219 local-function-key-map and function-key-map.
26220
26221 * terminal.c: New file.
26222
26223 * term.c: Include errno.h.
26224 (Vring_bell_function, device_list, initial_device)
26225 (next_device_id, ring_bell, update_begin, update_end)
26226 (set_terminal_window, cursor_to, raw_cursor_to)
26227 (clear_to_end, clear_frame, clear_end_of_line)
26228 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26229 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26230 (syms_of_term): Move their initialization to terminal.c.
26231 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26232 (Ftty_display_color_cells)
26233 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26234 (clear_tty_hooks, set_tty_hooks)
26235 (init_tty, maybe_fatal): New functions.
26236 (Ftty_type): Return nil if terminal is not on a tty instead of
26237 throwing an error. Doc update.
26238 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26239 Doc update. Initialize new subrs and variables.
26240 (delete_tty): Use terminal->deleted.
26241 (tty_set_terminal_modes): Rename from set_terminal_modes.
26242 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26243 (set_scroll_region): Rename to `tty_set_scroll_region'.
26244 (turn_on_insert): Rename to `tty_turn_on_insert'.
26245 (turn_off_insert): Rename to `tty_turn_off_insert'.
26246 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26247 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26248 (toggle_highligh): Rename to `tty_toggle_highlight'.
26249 (background_highlight): Rename to `tty_background_highlight'.
26250 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26251 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26252 (tty_set_scroll_region, tty_background_highlight)
26253 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26254 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26255 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26256 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26257 Add static modifier.
26258 (tty_reset_terminal_modes, tty_set_terminal_window)
26259 (tty_set_scroll_region, tty_background_highlight)
26260 (tty_highlight_if_desired, tty_cursor_to)
26261 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26262 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26263 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26264 renames.
26265
262662007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26267
26268 * keyboard.c: Qrtl is new.
26269 (parse_tool_bar_item): Handle :rtl keyword.
26270 (syms_of_keyboard): Intern :rtl keyword.
26271
26272 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26273
26274 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26275 so no Lisp code is executed.
26276 (file_for_image, find_rtl_image): New functions.
26277 (xg_get_image_for_pixmap): Use file_for_image.
26278 (update_frame_tool_bar): If direction is RTL, use RTL image if
26279 defined. Use Gtk stock images if defined.
26280
262812007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26282
26283 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26284 for nonexistent or zero-width glyph in composition glyph.
26285
262862007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26287
26288 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26289
26290 * xdisp.c (Finvisible_p): New function.
26291 (syms_of_xdisp): defsubr it.
26292
262932007-08-24 Juanma Barranquero <lekktu@gmail.com>
26294
26295 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26296 Doc fixes.
26297
262982007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26299
26300 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26301
263022007-08-24 Martin Rudalics <rudalics@gmx.at>
26303
26304 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26305 whether decoding has modified buffer contents.
26306
263072007-08-24 Jason Rumney <jasonr@gnu.org>
26308
26309 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26310 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26311 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26312 (init_svg_functions) [HAVE_NTGUI]: New function.
26313 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26314 (svg_load_image): Use them.
26315 (svg_load_image) [HAVE_NTGUI]: Implement background.
26316
263172007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26318
26319 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26320 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26321 (LIBX): Remove @RSVG_LIBS@.
26322 (LIBES): Add $(RSVG_LIBS).
26323
26324 * image.c (svg_load_image): Blend with specified background if exists.
26325 Use IMAGE_BACKGROUND. Add Mac OS Support.
26326
26327 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26328 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26329 Remove macros.
26330 [MAC_OSX] (socket_callback): Do nothing.
26331 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26332 ReceiveNextEvent.
26333 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26334 socket_callback.
26335 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26336
263372007-08-22 Glenn Morris <rgm@gnu.org>
26338
26339 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26340
263412007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26342
26343 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26344
26345 * image.c: Add support for SVG images. Some additional comments
26346 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26347 (svg_image_p): New function to test for SVG image.
26348 (svg_load): New function to load SVG image.
26349 (svg_load_image): New function, helper for svg_load.
26350 (Qsvg): New Lisp_object.
26351 (svg_keyword_index): New enum.
26352 (svg_format): New static `image_keyword' struct.
26353 (svg_type): New static `image_type' struct.
26354 (librsvg/rsvg.h): Include it.
26355
263562007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26357
26358 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26359
263602007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26361
26362 * lread.c (Qold_style_backquotes): New var.
26363 (syms_of_lread): Init and staticpro it.
26364 (load_warn_old_style_backquotes): New fun.
26365 (Fload): Use them to warn about old style backquotes.
26366 (end_of_file_error, Fload): Remove unused vars.
26367
26368 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26369
26370 * lread.c (Vold_style_backquotes): New var.
26371 (syms_of_lread): Init and export it to Elisp.
26372 (read1): Set it when we find an old-style (back)quote.
26373
263742007-08-22 Jason Rumney <jasonr@gnu.org>
26375
26376 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26377
263782007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26379
26380 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26381
263822007-08-19 Richard Stallman <rms@gnu.org>
26383
26384 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26385
263862007-08-19 Andreas Schwab <schwab@suse.de>
26387
26388 * alloc.c (pure): Round PURESIZE up.
26389
263902007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26391
26392 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26393 active frame.
26394
263952007-08-16 Richard Stallman <rms@gnu.org>
26396
26397 * eval.c (Fcommandp): Add parens to clarify.
26398
26399 * minibuf.c (Fall_completions): Use enum for type of table.
26400
26401 * emacs.c (USAGE2): Improve text.
26402
264032007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26404
26405 * term.c (tty_default_color_capabilities): Declare static
26406 variables in file scope, to avoid HPUX compiler problem.
26407
264082007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26409
26410 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26411 to gtk_toolbar_insert.
26412
264132007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26414
26415 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26416
26417 * insdel.c (reset_var_on_error): New fun.
26418 (signal_before_change, signal_after_change):
26419 Use it to reset (after|before)-change-functions to nil in case of error.
26420 Bind inhibit-modification-hooks to t.
26421 Don't bind (after|before)-change-functions to nil while they run.
26422
264232007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26424
26425 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26426 filling pixmap with stippled background.
26427
264282007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26429
26430 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26431 Don't use invisible frame as parent window for repositioning.
26432
264332007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26434
26435 * print.c (new_backquote_output): Rename from old_backquote_output.
26436 (print): Inverse its logic (according to its name) so as to match the
26437 behavior of new_backquote_flag in lread.c.
26438
264392007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26440
26441 * gmalloc.c (posix_memalign): New function.
26442
26443 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26444 ActivateControl/DeactivateControl here.
26445 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26446 frame-notice-user-settings is non-nil.
26447 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26448 for kEventParamFMFontStyle.
26449 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26450 mac_pass_command_to_system and mac_pass_control_to_system here.
26451 (XTread_socket): Call ActivateControl/DeactivateControl here.
26452 (XTread_socket) [TARGET_API_MAC_CARBON]:
26453 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26454 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26455 for window repositioning.
26456
264572007-08-08 Glenn Morris <rgm@gnu.org>
26458
26459 * Replace `iff' in doc-strings and comments.
26460
264612007-08-07 Chong Yidong <cyd@stupidchicken.com>
26462
26463 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26464
264652007-08-07 Martin Rudalics <rudalics@gmx.at>
26466
26467 * fileio.c (Finsert_file_contents): Run format-decode and
26468 after_insert_file_functions on entire buffer when REPLACE is
26469 non-nil and inhibit modification_hooks and point_motion_hooks.
26470 For consistency, run after_insert_file_functions iff something
26471 got inserted. Move signal_after_change and update_compositions
26472 after code running after_insert_file_functions. Make sure that
26473 undo_list doesn't record intermediate steps of the decoding process.
26474
264752007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26476
26477 * emacs.c (main)
26478 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26479 Call malloc_enable_thread on interactive startup.
26480
26481 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26482 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26483 [USE_PTHREAD]: Conditionalize with it.
26484 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26485 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26486 New functions.
26487
264882007-08-06 Chong Yidong <cyd@stupidchicken.com>
26489
26490 * xdisp.c (redisplay_window): When restoring original buffer
26491 position, make sure it is still valid.
26492
26493 * image.c (png_load): Ignore png-supplied background color.
26494
264952007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26496
26497 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26498 Use kCFAbsoluteTimeIntervalSince1970.
26499
26500 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26501 New variable.
26502 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26503 event loop should be quit.
26504 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26505 Quit dialog event loop if quit_dialog_event_loop is set.
26506
26507 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26508 (Selection): New typedef. Use instead of ScrapRef.
26509 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26510 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26511 (mac_clear_selection): Rename from clear_scrap.
26512 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26513 scrap_has_target_type. All uses changed.
26514 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26515 (mac_selection_has_target_p): New functions.
26516 (mac_put_selection_value): Rename from put_scrap_string.
26517 (mac_get_selection_value): Rename from get_scrap_string.
26518 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26519 (put_scrap_private_timestamp, scrap_has_target_type)
26520 (get_scrap_private_timestamp): Remove functions.
26521 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26522 (x_own_selection, x_get_local_selection):
26523 Use mac_valid_selection_value_p.
26524 (x_own_selection): Don't use put_scrap_private_timestamp.
26525 Record OWNERSHIP-INFO into Vselection_alist instead.
26526 (x_get_local_selection): Don't check type if request is local.
26527 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26528 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26529
265302007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26531
26532 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26533 add comment explaining why.
26534
265352007-08-03 Richard Stallman <rms@gnu.org>
26536
26537 * fileio.c (Fvisited_file_modtime): Use make_time.
26538
265392007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26540
26541 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26542 build.
26543
265442007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26545
26546 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26547
265482007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26549
26550 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26551
265522007-07-30 Richard Stallman <rms@gnu.org>
26553
26554 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26555
265562007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26557
26558 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26559
265602007-07-28 Nick Roberts <nickrob@snap.net.nz>
26561
26562 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26563 remote default-directory.
26564
26565 * buffer.c (mode-line-format): Update doc string.
26566
265672007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26568
26569 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26570 scroll bar gap.
26571 (x_scroll_bar_create): Set bar->fringe_extended_p.
26572 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26573 on frame edge. Check fringe background extension. Don't clear
26574 extended fringe background area.
26575
26576 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26577 (w32_fill_area): Enclose multiple statements with do ... while (0).
26578
26579 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26580 Extend fringe background to scroll bar gap.
26581 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26582 Set bar->fringe_extended_p.
26583 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26584 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26585 background extension. Don't clear extended fringe background area.
26586
26587 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26588 New member fringe_extended_p.
26589
265902007-07-25 Glenn Morris <rgm@gnu.org>
26591
26592 * Relicense all FSF files to GPLv3 or later.
26593
26594 * COPYING: Switch to GPLv3.
26595
265962007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26597
26598 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26599
26600 * data.c (Finteractive_form): Check for the presence of an
26601 `interactive-form' symbol property more thoroughly.
26602
26603 * data.c (Finteractive_form): Use an `interactive-form' property if
26604 present, analogous to the function-documentation property.
26605
266062007-07-24 Jason Rumney <jasonr@gnu.org>
26607
26608 * w32fns.c (x_real_positions): Get real position from OS instead of
26609 calculating it.
26610
266112007-07-23 Jason Rumney <jasonr@gnu.org>
26612
26613 * filelock.c (current_lock_owner): Allow for @ sign in username.
26614
266152007-07-22 Nick Roberts <nickrob@snap.net.nz>
26616
26617 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26618 remote default-directory.
26619
26620 * buffer.c (mode-line-format): Describe above case in doc string.
26621
266222007-07-20 Eli Zaretskii <eliz@gnu.org>
26623
26624 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26625 Define if not defined.
26626
266272007-07-18 Jason Rumney <jasonr@gnu.org>
26628
26629 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26630
266312007-07-18 Richard Stallman <rms@gnu.org>
26632
26633 * data.c (Fsetq_default): Doc fix.
26634
26635 * eval.c (Fsetq): Doc fix.
26636
266372007-07-18 Juanma Barranquero <lekktu@gmail.com>
26638
26639 * coding.c (Ffind_operation_coding_system):
26640 * eval.c (For, Fand): Doc fixes.
26641 Reported by Johan Bockgård.
26642
266432007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26644
26645 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26646
26647 * xterm.h: Declare x_ewmh_activate_frame.
26648
26649 * xterm.c (x_ewmh_activate_frame): New function.
26650 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26651
266522007-07-17 Martin Rudalics <rudalics@gmx.at>
26653
26654 * window.c (Fdisplay_buffer): If largest or LRU window is the
26655 only window, split it even if it is not eligible for splitting.
26656 This restores the original behavior broken by the 2007-07-15
26657 change.
26658
266592007-07-17 Glenn Morris <rgm@gnu.org>
26660
26661 * abbrev.c (abbrev_check_chars): New function.
26662 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26663 Call abbrev_check_chars to check abbrev characters are word
26664 constituents. Doc fix.
26665
266662007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26667
26668 * process.c (Fstart_process, Fmake_network_process)
26669 (read_process_output): Fix up last changes.
26670
266712007-07-16 Eli Zaretskii <eliz@gnu.org>
26672
26673 * makefile.w32-in (clean): Don't delete *~.
26674
266752007-07-16 Andreas Schwab <schwab@suse.de>
26676
26677 * window.c (Fdisplay_buffer): Use NILP.
26678 (Fset_window_scroll_bars): Likewise.
26679
266802007-07-15 Martin Rudalics <rudalics@gmx.at>
26681
26682 * window.c (window_min_size_2): New function.
26683 (window_min_size_1, size_window, Fdisplay_buffer)
26684 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26685 windows without mode- or header-lines when window-min-height is
26686 too small.
26687 (size_window): Reset nodelete_p after testing it, following an
26688 earlier note by Kim F. Storm.
26689 (display_buffer): Do not set split_height_threshold to twice the
26690 value of window_min_height to avoid changing the value of a
26691 customizable variable. Rather explicitly check whether the
26692 height of the window that shall be splitted is at least as large
26693 as split_height_threshold.
26694 (Fwindow_full_width_p): New defun.
26695 (syms_of_window): Defsubr it.
26696
26697 * window.h: Add EXFUN for Fwindow_full_width_p.
26698
266992007-07-14 Jason Rumney <jasonr@gnu.org>
26700
26701 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26702
267032007-07-14 Richard Stallman <rms@gnu.org>
26704
26705 * eval.c (maybe_call_debugger): New function.
26706 (find_handler_clause): Use maybe_call_debugger.
26707 Call it when the handler says `debug'.
26708 Eliminate DEBUGGER_VALUE_PTR.
26709 (Fsignal): Eliminate debugger_value.
26710 (Qdebug): New variable.
26711 (syms_of_eval): Initialize it.
26712
267132007-07-14 Juanma Barranquero <lekktu@gmail.com>
26714
26715 * eval.c (Fprogn):
26716 * keyboard.c (Ftrack_mouse):
26717 * print.c (Fwith_output_to_temp_buffer):
26718 * window.c (Fsave_window_excursion): Doc fix.
26719
267202007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26721
26722 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26723
267242007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26725
26726 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26727 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26728 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26729 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26730 Remove unused encoding_carryover.
26731 * process.c: Adjust all functions accordingly.
26732
267332007-07-12 Richard Stallman <rms@gnu.org>
26734
26735 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26736
267372007-07-11 Jason Rumney <jasonr@gnu.org>
26738
26739 * makefile.w32-in (LIBS): Include OLE32.
26740
26741 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26742 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26743
267442007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26745
26746 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26747 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26748 from a Lisp_Object into a bare pointer.
26749 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26750 Adjust the code correspondingly.
26751
26752 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26753
26754 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26755 (term_show_mouse_face): Remove unused var `j'.
26756 (handle_one_term_event): Remove unused vars `i' and `j'.
26757 Don't cast return value of ttyname since it's not necessary.
26758
267592007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26760
26761 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26762 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26763
26764 * fns.c (map_char_table): Use an array of int for `indices' rather than
26765 an array of Lisp_Objects (which are only ever integers anyway).
26766 (Fmap_char_table): Update caller.
26767 * lisp.h: Update prototype.
26768 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26769 * fontset.c (Ffontset_info):
26770 * casetab.c (set_case_table): Update callers.
26771
26772 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26773
26774 * keymap.c (struct accessible_keymaps_data)
26775 (struct where_is_internal_data): New structures.
26776 (accessible_keymaps_1, where_is_internal_1): Use them to change
26777 interface to adhere to the one used by map_keymap.
26778 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26779 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26780
26781 * keymap.h (map_keymap_function_t): More informative prototype.
26782
267832007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26784
26785 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26786 (looking_at_1): Don't change search_regs and last_thing_searched
26787 if `inhibit-changing-match-data' is non-nil.
26788 (string_match_1, search_buffer, set_search_regs): Likewise.
26789 (syms_of_search): Add Lisp level definition for
26790 `inhibit-changing-match-data' and set it to nil.
26791 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26792 start and end of the match, instead of using values in search_regs.
26793
267942007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26795
26796 * minibuf.c (Fcompleting_read): New value `confirm-only'
26797 for `require-match'.
26798
267992007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26800
26801 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26802 part of the 2007-06-27 change to syms_of_fileio.
26803
268042007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26805
26806 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26807 Check WINDOWP before using XWINDOW. Consolidate return statements.
26808
268092007-06-27 Richard Stallman <rms@gnu.org>
26810
26811 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26812
268132007-06-27 Juanma Barranquero <lekktu@gmail.com>
26814
26815 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26816
268172007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26818
26819 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26820 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26821 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26822 (_free_internal, memalign): Use them.
26823 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26824 Initialize to PTHREAD_MUTEX_INITIALIZER.
26825 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26826 (morecore_nolock): Rename from morecore. All uses changed.
26827 Use only nolock versions of internal allocation functions.
26828 (_malloc_internal_nolock, _realloc_internal_nolock)
26829 (_free_internal_nolock): New functions created from
26830 _malloc_internal, _realloc_internal, and _free_internal.
26831 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26832 Copy hook value to automatic variable before its use.
26833 (memalign): Copy hook value to automatic variable before its use.
26834
268352007-06-26 Kenichi Handa <handa@m17n.org>
26836
26837 * coding.c (Ffind_operation_coding_system): Docstring improved.
26838 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26839
268402007-06-25 David Kastrup <dak@gnu.org>
26841
26842 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26843 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26844 cater for additional parameter.
26845
26846 * keymap.h: Adjust number of parameters to `current-active-maps'.
26847
26848 * doc.c (Fsubstitute_command_keys): Adjust call of
26849 `current-active-maps'.
26850
268512007-06-25 David Kastrup <dak@gnu.org>
26852
26853 * callint.c (Fcall_interactively): Make the parsing of interactive
26854 specs somewhat more readable.
26855
268562007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26857
26858 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26859 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26860 if extended background has already been filled.
26861
268622007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26863
26864 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26865 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26866
26867 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26868 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26869 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26870 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26871 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26872 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26873 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26874 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26875 Run timers during dialog popup.
26876 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26877
268782007-06-21 Jason Rumney <jasonr@gnu.org>
26879
26880 * image.c (convert_mono_to_color_image): Swap fore and background.
26881
268822007-06-20 Jason Rumney <jasonr@gnu.org>
26883
26884 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26885 (w32_free_bdf_font): Unmap memory not handle.
26886
268872007-06-20 Sam Steingold <sds@gnu.org>
26888
26889 * gmalloc.c (__morecore): Fix the declaration to comply with the
26890 definition.
26891
268922007-06-20 Juanma Barranquero <lekktu@gmail.com>
26893
26894 * w32term.c (w32_delete_display): Remove leftover declaration.
26895 (w32_define_cursor, w32_initialize): Make static.
26896
26897 * w32.c (_wsa_errlist): Fix typo in error message.
26898 (init_environment): Ignore any environment variable from the
26899 registry having a null value.
26900
269012007-06-20 Glenn Morris <rgm@gnu.org>
26902
26903 * Makefile.in (LIBGIF): Default to -lgif.
26904
269052007-06-17 Jason Rumney <jasonr@gnu.org>
26906
26907 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26908 unicode strings.
26909
269102007-06-16 Juanma Barranquero <lekktu@gmail.com>
26911
26912 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26913 Fix typo in docstring.
26914
269152007-06-16 Eli Zaretskii <eliz@gnu.org>
26916
26917 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26918 and their keybindings.
26919
269202007-06-15 Chong Yidong <cyd@stupidchicken.com>
26921
26922 * composite.c (update_compositions): Fix last fix.
26923
269242007-06-14 Jason Rumney <jasonr@gnu.org>
26925
26926 * w32.c (get_process_times_fn): New function pointer.
26927 (globals_of_w32): Intialize it if present in kernel32.dll.
26928 (w32_get_internal_run_time): New function.
26929
26930 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26931
269322007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26933
26934 * composite.c (update_compositions): Check the validness of
26935 compositions.
26936
269372007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26938
26939 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26940 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26941
26942 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26943 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26944
26945 * macgui.h (USE_MAC_TOOLBAR): New define.
26946
26947 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26948 Return immediately unless popup is activated.
26949
26950 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26951 background to scroll bar gap.
26952 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26953 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26954 scroll bars on frame edge. Check fringe background extension.
26955 Don't clear extended fringe background area.
26956 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26957 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26958 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26959 [USE_MAC_TOOLBAR]: New macros.
26960 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26961 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26962 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26963 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26964 [USE_MAC_TOOLBAR]: New functions.
26965 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26966 manually if previous repositioning has failed.
26967 (mac_handle_keyboard_event): Use precomputed event kind.
26968 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26969 as tool bar item click. Handle mouse movement over tool bar items.
26970
26971 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26972 toolbar_win_gravity.
26973 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26974 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26975 Add externs.
26976
26977 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26978 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26979
269802007-06-14 Chong Yidong <cyd@stupidchicken.com>
26981
26982 * image.c (search_image_cache): Remove unused variable.
26983
269842007-06-13 Chong Yidong <cyd@stupidchicken.com>
26985
26986 * xfns.c, xmenu.c: Link to xaw3d if available.
26987
269882007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26989
26990 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26991 frame_foreground and frame_background.
26992
26993 * image.c (lookup_image): Save frame foreground and background colors.
26994 (search_image_cache): Check if saved and current frame colors match.
26995
269962007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26997
26998 * regex.c (regex_compile): Remove the `regnum' counter.
26999 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27000
270012007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27002
27003 * term.c: Include intervals.h to declare Fget_text_property.
27004
270052007-06-10 Jason Rumney <jasonr@gnu.org>
27006
27007 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27008
270092007-06-08 Juanma Barranquero <lekktu@gmail.com>
27010
27011 * callint.c (Fcall_interactively):
27012 * editfns.c (Fdelete_and_extract_region):
27013 * fileio.c (Fread_file_name):
27014 * fns.c (Fmapconcat):
27015 * keyboard.c (cmd_error_internal):
27016 * keymap.c (Fkey_description):
27017 * lread.c (openp):
27018 * minibuf.c (read_minibuf):
27019 * search.c (wordify):
27020 * sunfns.c (sel_read):
27021 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27022 * xfns.c (x_default_scroll_bar_color_parameter):
27023 * xmenu.c (menu_help_callback):
27024 * xselect.c (Fx_get_atom_name):
27025 * xterm.c (x_term_init): Use empty_unibyte_string.
27026
270272007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27028
27029 * alloc.c (init_strings): Initialize canonical empty strings.
27030 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27031 canonical empty string when the requested size is 0.
27032
27033 * emacs.c (empty_unibyte_string): Rename from empty_string.
27034 (empty_multibyte_string): New canonical empty string.
27035 (syms_of_emacs): Don't initialize empty_string.
27036
27037 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27038 string, if appropriate.
27039 (empty_unibyte_string, empty_multibyte_string): New externs.
27040 (empty_string): Remove extern.
27041
27042 * lread.c (syms_of_lread): Use empty_unibyte_string.
27043
270442007-06-07 Jason Rumney <jasonr@gnu.org>
27045
27046 * s/ms-w32.h: Don't define HAVE_TZNAME.
27047
27048 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27049
270502007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27051
27052 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27053
27054 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27055 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27056
27057 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27058 Don't call next handler.
27059 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27060 Remove argument. Install handler to application.
27061 (set_frame_menubar): Don't change deep_p.
27062 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27063 FRAME_OUTER_TO_INNER_DIFF_Y.
27064 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27065 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27066 [HAVE_DIALOGS]: New macros.
27067 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27068 Use them.
27069 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27070
27071 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27072 init_service_handler. All callers changed. Return OSStatus value.
27073
27074 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27075 All callers changed so as not to call SetPortWindowPort.
27076 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27077 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27078 mac_draw_string_common.
27079 (mac_draw_image_string_qd): Likewise.
27080 (mac_draw_string_common): Use them. Add INLINE.
27081 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27082 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27083 GetGlobalMouse.
27084 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27085 and FRAME_OUTER_TO_INNER_DIFF_Y.
27086 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27087 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27088 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27089 repositioning window to mac_handle_window_event.
27090 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27091 saving window location to mac_handle_window_event
27092 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27093 (install_menu_target_item_handler): Remove argument in extern.
27094 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27095 Also accept command events.
27096 (do_keystroke): New function created from XTread_socket.
27097 (init_command_handler): Remove functions.
27098 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27099 and save window location by kEventWindowShowing and kEventWindowHiding
27100 handlers here. Don't call next handler for window state change and
27101 focus events.
27102 (mac_handle_application_event, mac_handle_keyboard_event)
27103 [TARGET_API_MAC_CARBON]: New functions.
27104 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27105 kEventWindowShowing and kEventWindowHiding events. Move installation
27106 of mouse, font, text input and menu target item handlers to
27107 install_application_handler.
27108 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27109 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27110 New function.
27111 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27112 Register it.
27113 (XTread_socket) [TARGET_API_MAC_CARBON]:
27114 Consolidate SendEventToEventTarget calls.
27115 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27116 Move application activation handler to mac_handle_application_event.
27117 Move keyboard handler to mac_handle_keyboard_event.
27118 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27119 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27120 init_command_handler. Call install_application_handler.
27121
27122 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27123 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27124
271252007-06-07 Glenn Morris <rgm@gnu.org>
27126
27127 * emacs.c (main): Use `emacs-copyright' in --version output.
27128
271292007-06-06 Chong Yidong <cyd@stupidchicken.com>
27130
27131 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27132
271332007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27134
27135 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27136
27137 * macgui.h: Replace WindowPtr with WindowRef.
27138
27139 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27140 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27141 Replace ControlHandle with ControlRef.
27142 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27143
27144 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27145 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27146 Replace ControlHandle with ControlRef.
27147 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27148 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27149
27150 * macterm.h (struct scroll_bar): Rename member control_handle_low
27151 and control_handle_high to control_ref_low and control_ref_high.
27152 All uses changed.
27153 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27154 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27155 respectively. All uses changed.
27156 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27157 (install_window_handler, remove_window_handler): Replace WindowPtr
27158 with WindowRef in externs.
27159
271602007-06-05 Juanma Barranquero <lekktu@gmail.com>
27161
27162 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27163
271642007-06-03 Nick Roberts <nickrob@snap.net.nz>
27165
27166 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27167
27168 * frame.c (Fmouse_position, Fmouse_pixel_position):
27169 Condition on HAVE_GPM too.
27170
27171 * term.c (term_mouse_highlight): Remove unused variables.
27172 (Fterm_open_connection): Set gpm_zerobased to 1.
27173 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27174 Use zero based co-ordinates.
27175 (handle_one_term_event): Report a drag as mouse movement too.
27176
27177 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27178
271792007-06-03 Chong Yidong <cyd@stupidchicken.com>
27180
27181 * image.c (search_image_cache): New function. Require background
27182 color match if background color is unspecified in the image spec.
27183 (uncache_image, lookup_image): Use it.
27184
271852007-06-01 Juanma Barranquero <lekktu@gmail.com>
27186
27187 * window.c (Fshrink_window): Reflow docstring.
27188
271892007-06-02 Chong Yidong <cyd@stupidchicken.com>
27190
27191 * Version 22.1 released.
27192
271932007-06-01 Richard Stallman <rms@gnu.org>
27194
27195 * xfns.c (x_encode_text): Add GCPRO.
27196
271972007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27198
27199 * xfns.c (x_set_name_internal): Save encoded name before
27200 x_encode_text in case string data is relocated.
27201
272022007-05-31 Richard Stallman <rms@gnu.org>
27203
27204 * buffer.c (syms_of_buffer): Doc fix.
27205
272062007-05-30 Nick Roberts <nickrob@snap.net.nz>
27207
27208 * sysdep.c (init_sys_modes): Add rather than replace with
27209 O_NONBLOCK.
27210
27211 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27212 term_mouse_moveto.
27213
27214 * termhooks.h (term_mouse_moveto): New extern.
27215
27216 * term.c (mouse_face_window): Rename...
27217 (Qmouse_face_window): ...to this.
27218 (term_show_mouse_face, term_clear_mouse_face)
27219 (term_mouse_highlight): Use Qmouse_face_window.
27220 (term_mouse_moveto): New function.
27221 (term_mouse_position): Make it work.
27222 (syms_of_term): Uncomment assignment to mouse_position_hook.
27223 Staticpro Qmouse_face_window.
27224
272252007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27226
27227 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27228 around current_column call.
27229
272302007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27231
27232 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27233 * xdisp.c (next_element_from_buffer):
27234 * window.c (delete_window):
27235 * term.c (term_mouse_highlight):
27236 * msdos.c (getdefdir):
27237 * macterm.c (mac_create_bitmap_from_bitmap_data)
27238 (init_font_name_table):
27239 * fns.c (Fsxhash):
27240 * data.c (Fmake_local_variable):
27241 * ccl.c (ccl_driver): Likewise.
27242
272432007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27244
27245 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27246 Call mac_wakeup_from_rne on window size change.
27247
272482007-05-25 Chong Yidong <cyd@stupidchicken.com>
27249
27250 * image.c (uncache_image): Fix typo.
27251
272522007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27253
27254 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27255
272562007-05-22 Richard Stallman <rms@gnu.org>
27257
27258 * xterm.c (x_connection_closed): Remove NO_RETURN.
27259
272602007-05-22 Martin Rudalics <rudalics@gmx.at>
27261
27262 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27263
272642007-05-21 Chong Yidong <cyd@stupidchicken.com>
27265
27266 * image.c (uncache_image): New function.
27267 (Fimage_refresh): New function.
27268
272692007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27270
27271 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27272
272732007-05-20 Nick Roberts <nickrob@snap.net.nz>
27274
27275 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27276 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27277
272782007-05-20 Nick Roberts <nickrob@snap.net.nz>
27279
27280 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27281 conditional on [HAVE_GPM_H].
27282
272832007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27284
27285 * syntax.c (skip_chars): Update syntax-table only after we checked that
27286 the new location is valid.
27287
272882007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27289
27290 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27291 mac_get_window_bounds.
27292
272932007-05-20 Nick Roberts <nickrob@snap.net.nz>
27294
27295 * Makefile.in (LIBGPM): Allow it to be set from configure.
27296 If set then link Emacs with it.
27297
27298 * config.in: Regenerate.
27299
27300 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27301 New externs.
27302
27303 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27304 Include gpm.h.
27305 (handle_one_term_event, term_gpm): New externs.
27306
27307 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27308 and allow it to be interrupted by SIGIO.
27309
27310 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27311 (wait_reading_process_output): Wait on gpm_fd too.
27312 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27313 (add_gpm_wait_descriptor_called_flag): New variable.
27314 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27315
27316 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27317 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27318 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27319 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27320 (make_lispy_event): Add case GPM_CLICK_EVENT.
27321 (read_avail_input): Handle mouse input.
27322
27323 * term.c (write_glyphs_with_face): New function.
27324 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27325 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27326 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27327 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27328 (last_mouse_x, last_mouse_y): New variables.
27329 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27330 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27331 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27332 (Fterm_close_connection): New functions.
27333 (term_init): Initialise mouse_face_window.
27334
273352007-05-19 Chong Yidong <cyd@stupidchicken.com>
27336
27337 * xdisp.c (redisplay_window): If first window line is a
27338 continuation line, recompute the new window start instead of
27339 recentering.
27340
273412007-05-18 Glenn Morris <rgm@gnu.org>
27342
27343 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27344 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27345
273462007-05-17 Glenn Morris <rgm@gnu.org>
27347
27348 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27349
273502007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27351
27352 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27353 dead key repeat and up events.
27354
273552007-05-14 Chong Yidong <cyd@stupidchicken.com>
27356
27357 * image.c (pbm_load): Check image size for monochrome pbm.
27358
273592007-05-13 Chong Yidong <cyd@stupidchicken.com>
27360
27361 * xterm.c (XTread_socket): Revert last change.
27362
273632007-05-12 Chong Yidong <cyd@stupidchicken.com>
27364
27365 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27366
27367 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27368
273692007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27370
27371 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27372 mixup (YAILOM).
27373
273742007-05-07 Andreas Schwab <schwab@suse.de>
27375
27376 * keymap.c (Flookup_key): Fix typo in last change.
27377
273782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27379
27380 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27381 mapping for unibyte strings.
27382
273832007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27384
27385 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27386 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27387
273882007-04-29 Richard Stallman <rms@gnu.org>
27389
27390 * insdel.c (replace_range): For undo, record insertion first.
27391
273922007-04-29 Andreas Schwab <schwab@suse.de>
27393
27394 * lisp.h (VECSIZE): Use OFFSETOF.
27395
273962007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27397
27398 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27399 disabled lines.
27400
274012007-04-28 Richard Stallman <rms@gnu.org>
27402
27403 * lread.c (read_escape): In a string, \s is always space.
27404
274052007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27406
27407 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27408
27409 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27410 submenu for menu bar items.
27411
27412See ChangeLog.10 for earlier changes.
27413
27414;; Local Variables:
27415;; coding: utf-8
27416;; add-log-time-zone-rule: t
aac0c6e3
MR
27417;; End:
27418
e3eb1dae 27419 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27420
27421 This file is part of GNU Emacs.
27422
27423 GNU Emacs is free software: you can redistribute it and/or modify
27424 it under the terms of the GNU General Public License as published by
27425 the Free Software Foundation, either version 3 of the License, or
27426 (at your option) any later version.
27427
27428 GNU Emacs is distributed in the hope that it will be useful,
27429 but WITHOUT ANY WARRANTY; without even the implied warranty of
27430 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27431 GNU General Public License for more details.
27432
27433 You should have received a copy of the GNU General Public License
27434 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27435
27436;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40