* xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
[bpt/emacs.git] / src / ChangeLog
CommitLineData
426994c3
PE
12011-03-09 Paul Eggert <eggert@cs.ucla.edu>
2
071048a3
PE
3 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
4 or move locals to avoid shadowing.
5
426994c3 6 * terminal.c (store_terminal_param): Now static.
5489860b 7
032f1620 8 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 9 (set_frame_menubar): Remove unused local.
d4323972 10 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
11 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
12 since they might point to immutable storage.
281585b0
PE
13 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
14 since it's unused otherwise.
032f1620 15
367c19e5
PE
16 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
17 Add a FIXME comment, since the code still doesn't look right.
9f36b9fd
PE
18 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
19 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 20 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
21 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
22 does not deduce are never used uninitialized.
70739cbe 23
07b48fa9
PE
24 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
25
8868a238 26 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
27 * window.c (window_loop, size_window):
28 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 29
7e5cf297 30 * window.c (display_buffer): Now static.
d6550a9f
PE
31 (size_window): Mark variables that gcc -Wuninitialized
32 does not deduce are never used uninitialized.
a586633d
PE
33 * window.h (check_all_windows): New decl, to forestall
34 gcc -Wmissing-prototypes diagnostic.
5b555da1 35 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 36
f6095868
PE
37 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
38 shadowing.
39 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
40 Include <limits.h>.
41 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
42 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
43 (load_charset_map): Mark variables that gcc -Wuninitialized
44 does not deduce are never used uninitialized.
0ac2c299 45 (load_charset): Abort instead of using uninitialized var.
f6095868 46
f38b440c
PE
47 * coding.c (coding_set_source, coding_set_destination):
48 Use "else { /* comment */ }" rather than "else /* comment */;"
49 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
50 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
51 a block, when the outer 'i' will do.
52 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
53 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
54 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
55 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
56 (Fdecode_sjis_char, Fdefine_coding_system_internal):
57 Rename locals to avoid shadowing.
58 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
59 * coding.c (emacs_mule_char, encode_invocation_designation):
60 Now static, since they're not used elsewhere.
413bb2db 61 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 62 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
63 (decode_coding_emacs_mule): Mark variables that gcc
64 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
65 (detect_coding_iso_2022): Initialize a local variable that might
66 be used uninitialized. Leave a FIXME because it's not clear that
67 this initialization is needed.
5f58e762
PE
68 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
69 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
70 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
71 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
72 Remove unused macros.
f38b440c 73
232b38b9 74 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 75 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 76 * character.c (string_count_byte8): Likewise.
232b38b9 77
fb90da1b
PE
78 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
79 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
80
fb93dbc2
PE
81 * chartab.c (copy_sub_char_table): Now static, since it's not used
82 elsewhere.
5c156ace
PE
83 (sub_char_table_ref_and_range, char_table_ref_and_range):
84 Rename locals to avoid shadowing.
bbcd0949 85 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 86
7d3b3862 87 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 88 (BIDI_BOB): Remove unused macro.
7d3b3862 89
6be7d3da
PE
90 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
91 deduce are never used uninitialized.
92
75f8807f 93 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 94
50938595
PE
95 * tparam.h: New file.
96 * term.c, tparam.h: Include it.
97 * deps.mk (term.o, tparam.o): Depend on tparam.h.
98 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
99 Move these decls to tparam.h, and make them agree with what
100 is actually in tparam.c. The previous trick of using incompatible
101 decls in different modules does not conform to the C standard.
102 All callers of tparam changed to use tparam's actual API.
103 * tparam.c (tparam1, tparam, tgoto):
104 Use const pointers where appropriate.
105
fbceeba2
PE
106 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
107 * cm.h (struct cm): Likewise.
108 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
109 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
110 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
111 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
112 (turn_on_face, init_tty): Likewise.
113 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 114
7f3f1250
PE
115 * term.c (term_mouse_position): Rename local to avoid shadowing.
116
e6ca6543
PE
117 * alloc.c (mark_ttys): Move decl from here ...
118 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
119
ef272f1f
CY
1202011-03-06 Chong Yidong <cyd@stupidchicken.com>
121
122 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
123 change.
367c19e5 124
5489860b
PE
1252011-03-06 Paul Eggert <eggert@cs.ucla.edu>
126
5f349a89
PE
127 current_column: Now returns EMACS_INT, fixing some iftc
128 that was introduced in the 2002-06-02 change "temporarily"; see
129 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
130 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
131 * cmds.c (internal_self_insert): Likewise.
132 * indent.c (Fcurrent_column): Likewise.
133 * keymap.c (describe_command): Likewise.
134 * minibuf.c (read_minibuf): Likewise.
135 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
136 to int.
137 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
138 Likewise.
139 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
140 not int or double, if they might contain a column number.
141 * indent.c (current_column, Findent_to, indented_beyond_p):
142 (compute_motion, vmotion): Likewise.
143 * keymap.c (describe_command): Likewise.
144 * xdisp.c (pint2str): Likewise.
145 * indent.c (last_known_column): Now EMACS_INT, not int.
146 * minibuf.c (minibuf_prompt_width): Likewise.
147 * indent.c (current_column, current_column_1, position_indentation):
148 Return EMACS_INT, not double.
149 * lisp.h (current_column): Likewise.
150 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
151 All callers changed.
152 * lisp.h (indented_beyond_p): Likewise.
153
e9588e2e
PE
154 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
155 from xdisp.c, and make static, since these are used only here.
156 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
157 Remove decls.
158
1e12733b 159 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 160 * xdisp.c (redisplay_window): Likewise.
1e12733b 161
5489860b
PE
162 * xdisp.c: Rename or move local decls to avoid shadowing.
163 (init_iterator, handle_fontified_prop, handle_single_display_spec):
164 (message_dolog, message_with_string, redisplay_internal):
165 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
166 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
167 (display_line, display_string, rows_from_pos_range):
168 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
169 Rename or move local decls.
7b781e9f 170 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
171 (produce_glyphless_glyph): Make a pointer "const"
172 since it might point to immutable storage.
d8a3e89e 173 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 174 (SKIP_GLYPHS): Removed unused macro.
5489860b 175
aa248733
MS
1762011-03-06 Michael Shields <shields@msrl.com> (tiny change)
177
178 * window.c (Fnext_window): Doc fix. (Bug#5567)
179
04cb6840
CY
1802011-03-05 Chong Yidong <cyd@stupidchicken.com>
181
182 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
183
22c28cb8 1842011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
185
186 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
187
6c0dea8a
PE
1882011-03-02 Paul Eggert <eggert@cs.ucla.edu>
189
190 Work around some portability problems with symlinks.
191
192 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
193 generate a special message for it. Suggested by Eli Zaretskii in
194 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
195 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
196 Simplify the code by assuming that the readlink and symlink calls
197 exist, even if they always fail on this host.
198 (Ffile_readable_p): Likewise, for fifos.
199 * config.in: Regenerate.
200
52eb77a6
CY
2012011-02-27 Chong Yidong <cyd@stupidchicken.com>
202
203 * frame.c (store_frame_param): Don't store value directly in
204 buffer_list and buried_buffer_list; copy the list and remove dead
205 buffers (Bug#7898).
206
0f7bb05d
EZ
2072011-02-27 Eli Zaretskii <eliz@gnu.org>
208
40be44e2
EZ
209 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
210
01c35094 211 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 212
0f7bb05d
EZ
213 * w32.c (symlink, readlink): New stub functions.
214
27786b2f
PE
2152011-02-27 Paul Eggert <eggert@cs.ucla.edu>
216
c783d15b
PE
217 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
218 This avoids a gcc warning in some configurations.
219
76c1cebc
PE
220 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
221
0ff162fc
PE
222 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
223 (set_menu_bar_lines, x_get_resource_string): New decls.
224 * msdos.c (set_menu_bar_lines): Omit decl.
225
fdb0b28b
PE
226 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
227 It's always given int values and used as an int. This suppresses
228 a gcc "comparison of unsigned expression >= 0" warning in some
229 configurations.
230
27786b2f
PE
231 * dispnew.c: Rename locals to avoid shadowing.
232 (update_text_area, scrolling_window, update_frame_1): Rename locals.
233
09ad5a91
PE
2342011-02-26 Paul Eggert <eggert@cs.ucla.edu>
235
236 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
237 (copy_glyph_row_contents): Remove; not used.
238 (frame_row_to_window, check_current_matrix_flags):
239 (window_change_signal): Now static, since they're not used elsewhere.
240 (check_current_matrix_flags): Surround with "#if 0", since its
241 only use is in a comment. Maybe both the comment and the "#if 0"
242 stuff should be removed?
243
d2d37ddc
PE
244 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
245 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
246 contexts that actually need it.
247
003fa8b6
EZ
2482011-02-26 Eli Zaretskii <eliz@gnu.org>
249
250 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
251 (lstat): Define for DJGPP < 2.04.
252
b1894766
PE
2532011-02-25 Paul Eggert <eggert@cs.ucla.edu>
254
255 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
256 as per recent filemodestring API change. Reported by Jonas Öster in
257 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
258
2c6584e8
BK
2592011-02-23 Ben Key <bkey76@gmail.com> (tiny change)
260
261 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
262 directly, for bar cursors.
263
2642011-02-23 Chong Yidong <cyd@stupidchicken.com>
265
266 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
267 into the frame's cursor_width.
268
617a0e83
SM
2692011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
270
271 * print.c (print_object): Never print old-style backquotes.
272 Obey escapeflag for hash tables as well.
273
cce7d530 2742011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
275
276 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 277 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 278
8d40723d
PE
2792011-02-22 Paul Eggert <eggert@cs.ucla.edu>
280
281 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
282
aa0f73d1
WJ
2832011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
284
285 * lread.c (openp): Correct Boolean typo in last commit.
286
bdaa0745
AR
2872011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
288
289 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 290 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 291
f68c809d
PE
2922011-02-22 Paul Eggert <eggert@cs.ucla.edu>
293
294 Assume S_ISLNK etc. work, since gnulib supports this.
295 * config.in: Regenerate.
296 * dired.c (lstat): Remove.
297 (file_name_completion): Assume S_ISDIR works.
298 (file_name_completion_stat): Assume S_ISLNK works.
299 Do not bother calling stat unless lstat says it's a symlink.
300 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
301 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
302 (check_writable, Ffile_writable_p, Fset_file_times):
303 Assume S_ISDIR works.
304 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
305 fifos exist.
2f8f196d 306 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
307 * filelock.c (S_ISLNK): Remove.
308 * lread.c (openp): Assume S_ISDIR works.
309 * xrdb.c (S_ISDIR): Remove.
310
25c51af3
EZ
3112011-02-21 Eli Zaretskii <eliz@gnu.org>
312
313 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 314 lib/makefile.w32-in.
25c51af3
EZ
315 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
316 (GLOBAL_SOURCES): Remove filemode.c.
317 (OBJ1): Remove $(BLD)/filemode.$(O).
318
5c185672
PE
3192011-02-21 Paul Eggert <eggert@cs.ucla.edu>
320
321 Import filemode module from gnulib.
322 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
323 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
324 (filemode.o): Remove; this is now in ../lib.
325 * dired.c: Include <filemode.h>.
326 (filemodestring): Remove now-redundant decl.
327 * config.in: Regenerate.
328
32159fc3
CS
3292011-02-20 Eli Zaretskii <eliz@gnu.org>
330
331 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
332 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
333
2f8f196d 3342011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
335
336 * makefile.w32-in: Remove md5.$(O).
337 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
338 lib/makefile.w32-in.
339
61353ac8 3402011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 341
61353ac8
PE
342 Import crypto/md5 and stdint modules from gnulib.
343 * Makefile.in (base_obj): Remove md5.o, since this file
344 is in lib now.
345 * config.in: Regenerate.
346 * md5.h, md5.h: Move to ../lib.
347 * deps.mk (md5.o): Remove.
348 (fns.o): Depend on ../lib/md5.h, not md5.h.
349
9d9d12cd
EZ
3502011-02-19 Eli Zaretskii <eliz@gnu.org>
351
f601db19
EZ
352 * termcap.c (tputs): Don't declare baud_rate.
353
9d9d12cd
EZ
354 * s/msdos.h (strtold): Define to _strtold.
355
aa56f361
SM
3562011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
357
cbe81f1d
SM
358 * process.c (Fstart_process, Fmake_serial_process)
359 (Fmake_network_process, server_accept_connection):
360 Use empty_unibyte_string.
361
362 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
363
aa56f361
SM
364 * lread.c (Qdir_ok): New constant.
365 (syms_of_lread): Initialize it.
366 (openp): Don't ignore directories if the predicate returns dir-ok.
367
d6de49a1
EZ
3682011-02-18 Eli Zaretskii <eliz@gnu.org>
369
42af913d
EZ
370 * xdisp.c (display_line): Fix the change made for bug#7939.
371
d6de49a1
EZ
372 * terminal.c (create_terminal): Use default-keyboard-coding-system
373 and default-terminal-coding-system to initialize coding systems of
374 the new terminal. (Bug#7840)
375
b286858c
SM
3762011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
377
378 * lisp.h (BYTE_MARK_STACK): New macro.
379 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
380
381 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
382 (struct byte_stack): Only define `top' and `bottom' if used.
383 (mark_byte_stack): Only define if used.
384 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
385 is not set.
386 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
387
388 * term.c (OUTPUT_IF): Use OUTPUT.
389
390 * alloc.c (Fgarbage_collect): When using stack scanning, don't
391 redundantly scan byte-code stacks, catchlist, and handlerlist.
392
124c9ff0
JD
3932011-02-17 Jan Djärv <jan.h.d@swipnet.se>
394
395 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
396 (Fns_read_file_name): Replace B_ with BVAR.
397
398 * nsterm.m (ns_term_init): Use KVAR.
399
05c65251
EZ
4002011-02-16 Eli Zaretskii <eliz@gnu.org>
401
026d69ec
EZ
402 * msdos.c (internal_terminal_init): Use KVAR.
403
05c65251
EZ
404 * w32fns.c (Fx_create_frame): Use KVAR.
405
406 * w32term.c (w32_create_terminal): Use KVAR.
407
408 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 409 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
410
411 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
412
b286858c
SM
413 * fileio.c (Finsert_file_contents, Fwrite_region):
414 Remove references to buffer_file_type.
05c65251
EZ
415 (syms_of_fileio): Don't intern and staticpro
416 find-buffer-file-type.
417
418 * callproc.c (syms_of_callproc): Remove references to
419 buffer_file_type.
420
421 * buffer.c (reset_buffer_local_variables): Don't set
422 buffer_file_type.
423 (init_buffer_once): Likewise.
424 (syms_of_buffer): Don't define buffer-file-type.
425
426 * buffer.h (struct buffer): Remove buffer_file_type.
427
1344aad4
TT
4282011-02-16 Tom Tromey <tromey@parfait>
429
15f58304
EZ
430 * callint.c (Fcall_interactively): Update for change to field names.
431 * doc.c (Fsubstitute_command_keys): Update for change to field names.
432 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 433 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 434 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
435 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
436 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 437 Update for change to field names.
1344aad4
TT
438 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
439 (echo_length, echo_truncate, cmd_error, command_loop_1)
440 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
441 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
442 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
443 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
444 Update for change to field names.
445 * xfns.c (Fx_create_frame): Update for change to field names.
446 * xterm.c (x_connection_closed, x_term_init): Update for change to
447 field names.
1344aad4 448 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 449 Update for change to field names.
1344aad4 450 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 451 Update for change to field names.
1344aad4 452 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 453 (delete_frame): Update for change to field names.
1344aad4
TT
454 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
455 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
456 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
457
eb4916d7
TT
4582011-02-16 Tom Tromey <tromey@redhat.com>
459
460 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
461
4b4deea2
TT
4622011-02-16 Tom Tromey <tromey@parfait>
463
464 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
465 * xfaces.c (compute_char_face): Replace B_ with BVAR.
466 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
467 (message_dolog, update_echo_area, ensure_echo_area_buffers)
468 (with_echo_area_buffer, setup_echo_area_for_printing)
469 (set_message_1, update_menu_bar, update_tool_bar)
470 (text_outside_line_unchanged_p, redisplay_internal)
471 (try_scrolling, try_cursor_movement, redisplay_window)
472 (try_window_reusing_current_matrix, row_containing_pos)
473 (try_window_id, get_overlay_arrow_glyph_row, display_line)
474 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
475 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
476 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
477 BVAR.
478 * window.c (window_display_table, unshow_buffer, window_loop)
479 (window_min_size_2, set_window_buffer, Fset_window_buffer)
480 (select_window, Fforce_window_update, temp_output_buffer_show)
481 (Fset_window_configuration, save_window_save): Replace B_ with
482 BVAR.
483 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
484 Replace B_ with BVAR.
485 * undo.c (record_point, record_insert, record_delete)
486 (record_marker_adjustment, record_first_change)
487 (record_property_change, Fundo_boundary, truncate_undo_list)
488 (Fprimitive_undo): Replace B_ with BVAR.
489 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
490 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
491 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
492 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
493 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
494 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
495 (string_match_1, fast_looking_at, newline_cache_on_off)
496 (search_command, search_buffer, simple_search, boyer_moore)
497 (Freplace_match): Replace B_ with BVAR.
498 * process.c (get_process, list_processes_1, Fstart_process)
499 (Fmake_serial_process, Fmake_network_process)
500 (read_process_output, send_process, exec_sentinel)
501 (status_notify, setup_process_coding_systems): Replace B_ with
502 BVAR.
503 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
504 (strout, print_string, temp_output_buffer_setup, print_object):
505 Replace B_ with BVAR.
506 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
507 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
508 Replace B_ with BVAR.
4b4deea2
TT
509 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
510 (set_marker_both, set_marker_restricted_both, unchain_marker):
511 Replace B_ with BVAR.
512 * lread.c (readchar, unreadchar, openp, readevalloop)
513 (Feval_buffer, Feval_region): Replace B_ with BVAR.
514 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
515 * keymap.c (Flocal_key_binding, Fuse_local_map)
516 (Fcurrent_local_map, push_key_description)
517 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
518 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
519 (read_key_sequence): Replace B_ with BVAR.
520 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
521 * intervals.c (set_point_both, get_local_map): Replace B_ with
522 BVAR.
523 * insdel.c (check_markers, insert_char, insert_1_both)
524 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
525 (adjust_after_replace, replace_range, del_range_2)
526 (modify_region, prepare_to_modify_buffer)
527 (Fcombine_after_change_execute): Replace B_ with BVAR.
528 * indent.c (buffer_display_table, recompute_width_table)
529 (width_run_cache_on_off, current_column, scan_for_column)
530 (Findent_to, position_indentation, compute_motion, vmotion):
531 Replace B_ with BVAR.
532 * fringe.c (get_logical_cursor_bitmap)
533 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
534 with BVAR.
535 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
536 * font.c (font_at): Replace B_ with BVAR.
537 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
538 Replace B_ with BVAR.
539 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
540 (unlock_buffer): Replace B_ with BVAR.
541 * fileio.c (Fexpand_file_name, Ffile_directory_p)
542 (Ffile_regular_p, Ffile_selinux_context)
543 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
544 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
545 (Finsert_file_contents, choose_write_coding_system)
546 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
547 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
548 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
549 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
550 (save_excursion_restore, Fprevious_char, Fchar_before)
551 (general_insert_function, Finsert_char, Finsert_byte)
552 (make_buffer_string_both, Finsert_buffer_substring)
553 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
554 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
555 (Ftranslate_region_internal, save_restriction_restore)
556 (Fchar_equal): Replace B_ with BVAR.
557 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
558 * dispextern.h (WINDOW_WANTS_MODELINE_P)
559 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
560 * dired.c (directory_files_internal): Replace B_ with BVAR.
561 * data.c (swap_in_symval_forwarding, set_internal)
562 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
563 Replace B_ with BVAR.
564 * composite.c (fill_gstring_header)
565 (composition_compute_stop_pos, composition_adjust_point)
566 (Ffind_composition_internal): Replace B_ with BVAR.
567 * coding.c (decode_coding, encode_coding)
568 (make_conversion_work_buffer, decode_coding_gap)
569 (decode_coding_object, encode_coding_object)
570 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
571 (Funencodable_char_position, Fcheck_coding_systems_region):
572 Replace B_ with BVAR.
573 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
574 with BVAR.
575 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
576 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
577 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
578 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
579 * category.h (Vstandard_category_table): Replace B_ with BVAR.
580 * category.c (check_category_table, Fcategory_table)
581 (Fset_category_table, char_category_set): Replace B_ with BVAR.
582 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
583 BVAR.
584 * casefiddle.c (casify_object, casify_region): Replace B_ with
585 BVAR.
586 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
587 with BVAR.
588 * callint.c (check_mark, Fcall_interactively): Replace B_ with
589 BVAR.
590 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
591 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
592 with BVAR.
593 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
594 (get_truename_buffer, Fget_buffer_create)
595 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
596 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
597 (Fbuffer_local_value, buffer_lisp_local_variables)
598 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
599 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
600 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
601 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
602 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
603 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
604 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
605 (record_overlay_string, overlay_strings, init_buffer_once)
606 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
607
8678d9e4 6082011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
609
610 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
611 window is changed inside calls to do_pending_window_change.
612 (Bug#8020)
613
1f5d53eb
PE
6142011-02-16 Paul Eggert <eggert@cs.ucla.edu>
615
616 Remove no-longer needed getloadavg symbols.
617 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
618 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
619 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
620 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
621 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
622 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
623 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
624 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
625 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
626 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
627 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
628 (LDAV_SYMBOL): Remove.
629 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
630 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
631
632 Import getloadavg module from gnulib.
633 * deps.mk (getloadavg.o): Remove; gnulib now does this.
634 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
635 now does this.
636 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
637 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
638 * config.in: Regenerate.
639
8017fd6b
EZ
6402011-02-15 Eli Zaretskii <eliz@gnu.org>
641
642 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
643
75b43359
MWD
6442011-02-14 Michael Welsh Duggan <md5i@md5i.com>
645
646 * print.c (float_to_string): Ensure that a decimal point is
647 printed if using dtoastr (Bug#8033).
648
fc3ca113
EZ
6492011-02-14 Eli Zaretskii <eliz@gnu.org>
650
1f5d53eb 651 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
652 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
653
fc3ca113
EZ
654 * dired.c (directory_files_internal):
655 * fileio.c (Finsert_file_contents):
656 * insdel.c (prepare_to_modify_buffer):
657 * xdisp.c (pos_visible_p):
658 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
659 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
660 Use B_ for the MS-Windows build.
661
3928f2b6
JD
6622011-02-14 Jan Djärv <jan.h.d@swipnet.se>
663
664 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
665 resource that specifies helvetica for menus and dialogs.
666
667 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
668 (apply_systemfont_to_menu): Set resources *menubar*font and
669 *popup*font. Remove defflt.
b286858c
SM
670 (set_frame_menubar, create_and_show_popup_menu):
671 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 672
4bb81cc2
TT
6732011-02-14 Tom Tromey <tromey@redhat.com>
674
fc3ca113
EZ
675 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
676
4bb81cc2
TT
677 * keyboard.h: Remove obsolete comment.
678
5d8ea120
TT
6792011-02-14 Tom Tromey <tromey@parfait>
680
681 * composite.c (fill_gstring_header)
682 (composition_compute_stop_pos, composition_adjust_point)
683 (Ffind_composition_internal): Use B_.
684 * intervals.c (set_point_both, get_local_map): Use B_.
685 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
686 * process.c (get_process, list_processes_1, Fstart_process)
687 (Fmake_serial_process, Fmake_network_process)
688 (read_process_output, send_process, exec_sentinel)
689 (status_notify, setup_process_coding_systems): Use B_.
690 * bytecode.c (Fbyte_code): Use B_.
691 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
692 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
693 (skip_syntaxes, scan_lists): Use B_.
694 * lread.c (readchar, unreadchar, openp, readevalloop)
695 (Feval_buffer, Feval_region): Use B_.
696 * print.c (printchar, strout, print_string, PRINTDECLARE)
697 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
698 (print_object): Use B_.
699 * font.c (font_at): Use B_.
b286858c
SM
700 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
701 Use B_.
5d8ea120
TT
702 * callint.c (check_mark, Fcall_interactively): Use B_.
703 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
704 (save_excursion_restore, Fprevious_char, Fchar_before)
705 (general_insert_function, Finsert_char, Finsert_byte)
706 (make_buffer_string_both, Finsert_buffer_substring)
707 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
708 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
709 (Ftranslate_region_internal, save_restriction_restore)
710 (Fchar_equal): Use B_.
711 * data.c (swap_in_symval_forwarding, set_internal)
712 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
713 Use B_.
714 * undo.c (record_point, record_insert, record_delete)
715 (record_marker_adjustment, record_first_change)
716 (record_property_change, Fundo_boundary, truncate_undo_list)
717 (Fprimitive_undo): Use B_.
718 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
719 (string_match_1, fast_looking_at, newline_cache_on_off)
720 (search_command, search_buffer, simple_search, boyer_moore)
721 (Freplace_match): Use B_.
722 * indent.c (buffer_display_table, recompute_width_table)
723 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
724 (Findent_to, position_indentation, compute_motion, vmotion):
725 Use B_.
5d8ea120
TT
726 * casefiddle.c (casify_object, casify_region): Use B_.
727 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
728 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
729 * fileio.c (Fexpand_file_name, Ffile_directory_p)
730 (Ffile_regular_p, Ffile_selinux_context)
731 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
732 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
733 (Finsert_file_contents, choose_write_coding_system)
734 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
735 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
736 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
737 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
738 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
739 (set_marker_both, set_marker_restricted_both, unchain_marker):
740 Use B_.
5d8ea120
TT
741 * insdel.c (check_markers, insert_char, insert_1_both)
742 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
743 (adjust_after_replace, replace_range, del_range_2)
744 (modify_region, prepare_to_modify_buffer)
745 (Fcombine_after_change_execute): Use B_.
746 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
747 (unlock_buffer): Use B_.
748 * keymap.c (Flocal_key_binding, Fuse_local_map)
749 (Fcurrent_local_map, push_key_description)
750 (Fdescribe_buffer_bindings): Use B_.
751 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
752 (read_key_sequence): Use B_.
753 * fringe.c (get_logical_cursor_bitmap)
754 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
755 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
756 * xfaces.c (compute_char_face): Use B_.
757 * character.c (chars_in_text, Fget_byte): Use B_.
758 * category.c (check_category_table, Fcategory_table)
759 (Fset_category_table, char_category_set): Use B_.
760 * coding.c (decode_coding, encode_coding)
761 (make_conversion_work_buffer, decode_coding_gap)
762 (decode_coding_object, encode_coding_object)
763 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
764 (Funencodable_char_position, Fcheck_coding_systems_region):
765 Use B_.
5d8ea120
TT
766 * charset.c (Ffind_charset_region): Use B_.
767 * window.c (window_display_table, unshow_buffer, window_loop)
768 (window_min_size_2, set_window_buffer, Fset_window_buffer)
769 (select_window, Fforce_window_update, temp_output_buffer_show)
770 (Fset_window_configuration, save_window_save): Use B_.
771 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
772 (message_dolog, update_echo_area, ensure_echo_area_buffers)
773 (with_echo_area_buffer, setup_echo_area_for_printing)
774 (set_message_1, update_menu_bar, update_tool_bar)
775 (text_outside_line_unchanged_p, redisplay_internal)
776 (try_scrolling, try_cursor_movement, redisplay_window)
777 (try_window_reusing_current_matrix, row_containing_pos)
778 (try_window_id, get_overlay_arrow_glyph_row, display_line)
779 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
780 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
781 (get_window_cursor_type, note_mouse_highlight): Use B_.
782 * frame.c (make_frame_visible_1): Use B_.
783 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
784 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
785 (WINDOW_WANTS_MODELINE_P): Use B_.
786 * syntax.h (Vstandard_syntax_table): Update.
787 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
788 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
789 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
790 * character.h (FETCH_CHAR_ADVANCE): Update.
791 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
792 * category.h (Vstandard_category_table): Update.
793 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
794 names.
795 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
796 * buffer.c (swapfield_): New macro.
797 (Fbuffer_swap_text): Use swapfield_ where appropriate.
798 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
799 (Fget_buffer_create, clone_per_buffer_values)
800 (Fmake_indirect_buffer, reset_buffer)
801 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
802 (Fbuffer_local_value, buffer_lisp_local_variables)
803 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
804 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
805 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
806 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
807 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
808 (Fbuffer_swap_text, Fset_buffer_multibyte)
809 (swap_out_buffer_local_variables, record_overlay_string)
810 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
811 Use B_.
812 * buffer.h (struct buffer): Rename all Lisp_Object fields.
813 (BUFFER_INTERNAL_FIELD, B_): New macro.
814 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
815
42f60557
JD
8162011-02-14 Jan Djärv <jan.h.d@swipnet.se>
817
818 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
819 is null.
820
2f9a22e2
J
8212011-02-13 Jan Djärv <jan.h.d@swipnet.se>
822
823 * callproc.c (Fcall_process):
824 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
825 comment.
826
84eb0351 8272011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
828
829 * window.c (select_window): Check inhibit_point_swap argument when
830 deciding whether to return immediately.
831
84eb0351 8322011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
833
834 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
835 zero (Bug#7348).
836
84eb0351
CY
8372011-02-12 Chong Yidong <cyd@stupidchicken.com>
838
839 * config.in (TERMINFO): New definition.
840
841 * s/netbsd.h: Use it to choose between terminfo and termcap
842 (Bug#7642).
843
33d605d0
PE
8442011-02-12 Paul Eggert <eggert@cs.ucla.edu>
845
846 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
847 The difference doesn't matter here, in practice, and sizeof is
848 more portable to non-GCC compilers. Also, this makes the code
849 match the already-existing comment.
850
c0ad4ea5
AS
8512011-02-12 Andreas Schwab <schwab@linux-m68k.org>
852
853 * process.c (create_process): Reset SIGPIPE handler in the child.
854 * callproc.c (Fcall_process): Likewise. (Bug#5238)
855
50fd938f
EZ
8562011-02-12 Eli Zaretskii <eliz@gnu.org>
857
858 * xdisp.c <this_line_min_pos>: New variable.
859 (move_it_in_display_line_to): Record in this_line_min_pos the
860 smallest position iterated across.
861 (display_line): Use this_line_min_pos to record the smallest
862 position in the line even if it is not displayed due to
863 hscrolling. (Bug#7939)
864
af59aa6e
PE
8652011-02-12 Paul Eggert <eggert@cs.ucla.edu>
866
cec81b22
PE
867 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
868 * md5.h (ATTRIBUTE_ALIGNED): New macro.
869 (struct md5_ctx): Use it.
870
af59aa6e
PE
871 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
872 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
873 defined.
874 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
875 FC_HINT_STYLE is supported.
876
02c3706c
JD
8772011-02-11 Jan Djärv <jan.h.d@swipnet.se>
878
879 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
880 Make sure we don't do x_catch_errors twice.
881
5ac75e8f
GM
8822011-02-10 Glenn Morris <rgm@gnu.org>
883
884 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
885
d37f40ed
EZ
8862011-02-09 Eli Zaretskii <eliz@gnu.org>
887
5ac75e8f
GM
888 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
889 New macros.
d37f40ed
EZ
890 (globals.h, gl-stamp): New targets.
891 (clean): Clean gl-stamp and globals.h.
892
33cd3ee4
AS
8932011-02-09 Andreas Schwab <schwab@linux-m68k.org>
894
895 * Makefile.in (gl-stamp): Create globals.h here.
896 (globals.h): Don't do it here.
897 (mostlyclean): Clean globals.h and gl-stamp.
898
f9f2e7f5
PE
8992011-02-09 Paul Eggert <eggert@cs.ucla.edu>
900
901 * Makefile.in ($(otherobj)): Depend on globals.h.
902 Otherwise 'make -j10' failed on my host, because the build lacked
903 necessary dependencies, e.g., vm-limit.o depends on globals.h.
904
00b3c7ac
TT
9052011-02-08 Tom Tromey <tromey@redhat.com>
906
907 * Makefile.in (NS_OBJC_OBJ): New variable.
908 (base_obj): Rename from 'obj'.
909 (obj): New variable.
910 (globals.h, gl-stamp, $(obj)): New targets.
911 (GLOBAL_SOURCES): New variable.
912 * globals.h: Remove.
913 * nsselect.m (Vselection_alist): Define. Reverts part of
914 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
915 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
916 variable.
917 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
918
8f3b2e12
KH
9192011-02-08 Kenichi Handa <handa@m17n.org>
920
921 * font.c (Ffont_get): Do not cache :otf value.
922
4f043d0f
PE
9232011-02-07 Paul Eggert <eggert@cs.ucla.edu>
924
925 conform to C89 pointer rules
926
927 * dired.c (scmp, file_name_completion):
928 Change types between char * and unsigned char *, to satisfy C89
929 rules about pointer type compatibility.
47ce90e4 930 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 931 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
932 * alloc.c (make_string, make_specified_string, make_pure_string):
933 Likewise.
57ace6d0 934 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
935 * print.c (float_to_string, PRINTFINISH, printchar, strout):
936 (print_object): Likewise.
e7f8264d
PE
937 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
938 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
939 (Fformat): Likewise.
a2db9982 940 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
941 * fns.c (string_make_multibyte, string_to_multibyte):
942 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
943 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
944 Likewise.
4a25e32a 945 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
946 * process.c (read_process_output, send_process, Fprocess_send_region):
947 Likewise.
0ca76b1e 948 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
949 * doprnt.c (doprnt): Likewise.
950 * indent.c (compute_motion): Likewise.
efe0234f 951 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 952 * ralloc.c (resize_bloc): Likewise.
b19beacc 953 * image.c (tiff_load): Likewise.
c45e5276 954 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
955 * character.c (strwidth): Make its argument const char *, not const
956 unsigned char *, since more callers prefer it that way. All callers
957 changed.
4f043d0f 958
9eee99eb
PE
9592011-02-06 Paul Eggert <eggert@cs.ucla.edu>
960
4c83cffc
PE
961 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
962 Emacs assumes two's complement elsewhere, but the assumption is
963 easy to remove here, and this suppresses a warning with Sun C 5.8.
964
82470039
PE
965 conform to C89 pointer rules
966
967 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
968 (same_x_server, x_term_init):
9eee99eb
PE
969 Change types between char * and unsigned char *, to satisfy C89
970 rules about pointer type compatibility.
82470039
PE
971 * doc.c (get_doc_string, Fsnarf_documentation):
972 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
973 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
974 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 975 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
976 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
977 Likewise.
01c9aa3a 978 * keymap.c (Ftext_char_description): Likewise.
637de37e 979 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
980 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
981 (DRIVE_LETTER) [defined DOS_NT]:
982 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
983 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
984 (search_embedded_absfilename, Fsubstitute_in_file_name):
985 (barf_or_query_if_file_exists, Fmake_directory_internal):
986 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
987 (Finsert_file_contents, Fwrite_region):
988 Likewise.
b68864e5
PE
989 * insdel.c (insert, insert_and_inherit, insert_before_markers):
990 (insert_before_markers_and_inherit, insert_1, insert_1_both):
991 Likewise. This changes these functions' signatures, which is
992 more convenient since most callers use char *. All remaining
993 callers changed.
994 * editfns.c (general_insert_function): Change signature to
995 match changes to insert functions' signatures.
b286858c
SM
996 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
997 Use explicit cast when converting between void * and function pointer
01c9aa3a 998 types, as C89 requires this.
9eee99eb 999
32299e33
PE
10002011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1001
1002 don't ignore chdir failure
1003 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1004 failure and exit.
1005 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1006 remaining unchecked chdir calls in this function; some DOS/NT
1007 expert needs to fix them.
1008 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1009 in this function; some NextStep expert needs to fix them.
1010
233ba4d9 10112011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
1012
1013 * xfaces.c (Finternal_set_lisp_face_attribute):
1014 Try to clarify some error messages. (Bug#2659)
1015
233ba4d9 10162011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
1017
1018 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1019 current_column cache (bug#7946).
1020
233ba4d9 10212011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
1022
1023 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1024
1025 * xftfont.c (xftfont_open): Likewise.
1026
233ba4d9 10272011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
1028
1029 * window.c (Fselect_window): Add missing return value.
1030
d67985d3
PE
10312011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1032
25a48bd0
PE
1033 xstrcasecmp: conform to C89 pointer rules
1034 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1035 to const char *, since they're usually low-level C strings, and
1036 this stays compatible with C89 pointer rules. All callers changed.
1037
2f8f196d 1038 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
1039 (define_charset_internal): Switch between char * and unsigned char *.
1040
2f8f196d 1041 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
1042 (xmenu_show, xdialog_show): Declare local var as char *, not
1043 const char *, to stay compatible with C89 const rules.
1044
2f8f196d 1045 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
1046 (store_mode_line_noprop, display_string, reseat_to_string):
1047 (c_string_pos, number_of_chars, message_dolog):
1048 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1049 (display_mode_element, display_string):
1050 Switch between char * and unsigned char * to stay compatible wth
1051 C89 pointer rules.
1052
2f8f196d 1053 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
1054 (re_wctype): Add cast, as C89 does not allow assigning between
1055 char * and unsigned char *.
1056 (regex_compile): Likewise.
1057
d67985d3
PE
1058 sync from gnulib to remove HAVE_STDBOOL_H
1059 * config.in: Regenerate.
1060
a5d733f5
EZ
10612011-02-04 Eli Zaretskii <eliz@gnu.org>
1062
f90e08f5
EZ
1063 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1064 Replace all uses of lisp.h with $(LISP_H), and all uses of
1065 process.h with $(PROCESS_H).
1066 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1067 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1068
be50df37
EZ
1069 * deps.mk: Update for recent changes: gnutls support, gnulib
1070 imports, addition of globals.h.
1071
f90e08f5
EZ
1072 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1073 ../lib/ignore-value.h.
a5d733f5 1074
67342916
PE
10752011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1076
1077 allow C code to suppress warnings about ignored return values
1078
1079 We need to go through the code and for each such warning, either
1080 fix the code to pay attention to the returned value, or tell GCC
1081 that we really do want to ignore the returned value. Here is one
1082 example of how to do the latter.
1083 * sysdep.c: Include <ignore-value.h>.
1084 (sys_subshell): Suppress an undesirable warning about not checking
1085 the returned value of 'write', as there's nothing useful one can
1086 do with that returned value.
1087
36941b32
JD
10882011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1089
1090 * xterm.c (x_connection_closed): Remove all calls that calls
1091 XSync (Bug#7949).
1092
3082f617
EZ
10932011-02-01 Eli Zaretskii <eliz@gnu.org>
1094
1095 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1096 TIFFClientOpen.
1097
4df0af9b
JD
10982011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1099
1100 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1101 (x_session_check_input): Change args and return type so it can be used
1102 as argument to add_read_fd. Make static. Remove call to select.
1103 Call kbd_buffer_store_event for emacs_event.
1104 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1105 (ice_conn_watch_CB): Call add_read_fd.
1106
1107 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1108 x_session_check_input.
1109 (x_session_initialized): Remove definition.
1110 (x_initialize): Remove setting of x_session_initialized.
1111
1112 * xterm.h (x_session_check_input): Remove declaration.
1113
a4180391
PE
11142011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1115
1116 format-time-string now supports subsecond time stamp resolution
b286858c 1117 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
1118 for consistency with its new argument and with gnulib nstrftime.
1119 All callers changed. New argument NS.
1120 (Fformat_time_string): Check that the time argument's microseconds
1121 component, if any, is in range; this avoids integer overflow and
1122 also nstrftime needs this. Document %N.
1123
14beddf4 11242011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
1125
1126 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1127 of int. All uses adjusted.
1128 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1129 (svg_load_image): Remove casts.
1130
14beddf4 11312011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
1132
1133 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1134 function definitions for compiling with libpng-1.5.
1135 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1136 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1137 (Bug#7908).
1138
70b0d280
EZ
11392011-01-31 Eli Zaretskii <eliz@gnu.org>
1140
8b3c625b
EZ
1141 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1142
70b0d280
EZ
1143 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1144 ($(BLD)/strftime.$(O)): Remove prerequisites.
1145
16fab143
PE
11462011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1147
1148 src/emacs.c now gets version number from configure.in
1149 * emacs.c (emacs_version): Set to VERSION so that it
1150 is determined automatically from ../configure.in.
1151
546961a9
JM
11522011-01-31 Jim Meyering <meyering@redhat.com>
1153
1154 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1155 Use xmalloc rather than malloc.
1156
42a5b22f
PE
11572011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1158
16c3e636
PE
1159 strftime: import from gnulib
1160 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1161 * deps.mk (strftime.o): Remove.
1162 * editfns.c: Include <strftime.h>, supplied by gnulib.
1163 (emacs_strftimeu): Remove decl.
1164 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1165 emacs_strftimeu.
1166 * config.in: Regenerate.
1167 * strftime.c: Remove; we now use strftime from gnulib.
1168
42a5b22f
PE
1169 Use SSDATA when the context wants char *.
1170 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1171 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1172 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1173 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1174 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1175 Use SSDATA (not SDATA) when the context of the expression wants
1176 char * (not unsigned char *).
1177
2787bba3
JD
11782011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1179
1180 * .gdbinit: Read global lisp variables as globals.f_V*.
1181
4ec88040
AS
11822011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1183
1184 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1185 All uses changed.
1186 (PROP_SAVE): Likewise.
1187
b6bcd048
CY
11882011-01-29 Chong Yidong <cyd@stupidchicken.com>
1189
1190 * keyboard.c (make_lispy_position): Fix typo in last change
1191 (Bug#7935).
1192
f915f0f7
EZ
11932011-01-29 Eli Zaretskii <eliz@gnu.org>
1194
1195 * s/ms-w32.h (HAVE_MKTIME): Remove.
1196
1197 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1198 (GNULIB): New variable.
1199 (LIBS): Add $(GNULIB).
1200 $(TEMACS): Depend on $(GNULIB).
1201 <top-level>: Fix font-lock disrupted by a lone `"'.
1202
497a1925
JD
12032011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1204
1205 * nsselect.m (ns_string_from_pasteboard): Get length of string
1206 and use make_string instead of build_string (Bug#7934).
1207 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1208 instead of stringWithUTF8String (Bug#7934).
1209
2f8f196d 12102011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 1211
2f8f196d
JB
1212 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1213 descenders would not become one pixel too tall (Bug#7887).
481ae085 1214
6b918613
CY
12152011-01-28 Chong Yidong <cyd@stupidchicken.com>
1216
1217 * keyboard.c (make_lispy_position): For clicks on right fringe or
1218 margin, compute text position using the X coordinate relative to
1219 the left of the text area (Bug#7839).
1220
9e269017
KH
12212011-01-28 Kenichi Handa <handa@m17n.org>
1222
1223 * ftfont.c (ftfont_spec_pattern): Check each extra property
1224 value.
1225
17dd1fc8
SM
12262011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1227
1228 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1229
372fb76b
CY
12302011-01-27 Chong Yidong <cyd@stupidchicken.com>
1231
1232 * font.c (font_parse_fcname): Undefine a temporary macro.
1233
e7f7fbaa
SM
12342011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1235
1236 Let the debugger continue to the normal handler (bug#7825).
1237 * eval.c (maybe_call_debugger): Declare before new use.
1238 (find_handler_clause): Don't call debugger any more.
1239 Ignore Vstack_trace_on_error.
1240 Use XCAR/XCDR.
1241 (syms_of_eval): Remove Vstack_trace_on_error.
1242 (Fsignal): Only modify handlerlist when we know we need to do it.
1243 Call the debugger when necessary.
1244 * globals.h (Vstack_trace_on_error): Remove.
1245
6608a7d8
CY
12462011-01-26 Chong Yidong <cyd@stupidchicken.com>
1247
1248 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1249
06d8ace5 12502011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
1251
1252 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1253 the buffer's point-max (bug#7876).
1254
06d8ace5 12552011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
1256
1257 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 1258 Remove unused case (Bug#6811).
19634648 1259
8ab70320
JD
12602011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1261
1262 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1263 setFrameTopLeftPoint is constrained.
1264
51b59d79
PE
12652011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1266
9055082e
PE
1267 Check return values of some library calls.
1268 * emacs.c (main): Check dup result.
1269 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1270 (frame_name_fnn_p): Check strtol result.
1271
5c7d01a5 1272 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1273 when calling XpmCreatePixmapFromData.
1274
51b59d79
PE
1275 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1276 * lisp.h (SSDATA): New macro.
1277 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1278 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1279 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1280 * xsmfns.c (SSDATA): Likewise.
1281
e6b84b30
MR
12822011-01-22 Martin Rudalics <rudalics@gmx.at>
1283
1284 * window.c (select_window): New function.
1285 (Fselect_window): Call it.
1286 (inhibit_point_swap): Variable deleted.
1287 (Fset_window_configuration): Call select_window directly.
1288
3fb69558
JD
12892011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1290
1291 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1292
449ab399
JD
12932011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1294
e2f79c8d
JD
1295 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1296 screen, not the window screen.
1297 (x_set_window_size): Remove constraints.
1298 Calculate origin.y only if zooming is 0 and without referring to a
1299 screen.
1300 (windowWillResize): Don't modify frameSize.
1301 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1302 (initFrameFromEmacs): Initialize ns_userRect.
1303 (windowShouldZoom): Set zooming to one. Remove all other code.
1304 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1305 Zero it after restore.
1306 (constrainFrameRect): New method for EmacsWindow.
1307 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1308 windowWillResize.
1309
1310 * nsterm.h (ns_output): Add dont_constrain and zooming.
1311 (EmacsView): Add ns_userRect.
1312
449ab399
JD
1313 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1314 if ns_alternate_modifier is none.
1315
e885315d
JD
13162011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1317
1318 * unexmacosx.c: Add comment about include order.
1319
bb1c6663
GM
13202011-01-20 Glenn Morris <rgm@gnu.org>
1321
c11136ec
GM
1322 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1323 Give it a doc string.
1324 * globals.h: Add Vread_expression_history.
1325
bb1c6663
GM
1326 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1327 Give it a doc string.
1328 * globals.h: Add Vkbd_macro_termination_hook.
1329
9aea757b
CY
13302011-01-20 Chong Yidong <cyd@stupidchicken.com>
1331
1332 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1333
e1ef0dac
PE
13342011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1335
1336 Fix X11 compilation failure.
1337 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1338 * xselect.c (Vselection_alist): Remove declaration, moving its
1339 documentation to globals.h. This fixes a compilation failure
1340 induced by the earlier change to globals.h today.
1341
fb9d0f5a
JD
13422011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1343
8beb828a
JD
1344 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1345
fb9d0f5a
JD
1346 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1347 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1348 (ns_input_spi_name, ns_input_spi_arg)
1349 (ns_alternate_modifier, ns_right_alternate_modifier)
1350 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1351 (ns_right_control_modifier, ns_function_modifier)
1352 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1353 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1354 (x_underline_at_descent_line): Remove declaration.
1355 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1356
01c35094 1357 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
1358 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1359 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1360
1361 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1362 Remove declaration.
1363
1364 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1365 globals.h.
1366 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1367
1368 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1369 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1370 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1371
1372 * globals.h (struct emacs_globals): Add f_ns_input_file,
1373 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1374 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1375 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1376 f_ns_right_alternate_modifier, f_ns_command_modifier,
1377 f_ns_right_command_modifier, f_ns_control_modifier,
1378 f_ns_right_control_modifier, f_ns_function_modifier,
1379 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1380 f_Vns_version_string, f_Vns_sent_selection_hooks,
1381 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1382 and corresponding defines.
1383
4e55715e
SS
13842011-01-19 Sam Steingold <sds@gnu.org>
1385
1386 * w32.c (check_windows_init_file): Remove declarations of
1387 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 1388 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 1389
ef79d2fa
TT
13902011-01-19 Tom Tromey <tromey@redhat.com>
1391
1392 * window.c: Fix error introduced by previous patch.
1393
29208e82
TT
13942011-01-18 Tom Tromey <tromey@parfait>
1395
1396 * globals.h: New file.
1397 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1398 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1399 (Vwindow_system_version): Remove declaration.
1400 * w32term.h (Vw32_enable_palette)
1401 (Vx_pixel_size_width_font_regexp): Remove declaration.
1402 * w32menu.c (Voverriding_local_map)
1403 (Voverriding_local_map_menu_flag): Remove declaration.
1404 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1405 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1406 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1407 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1408 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1409 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1410 (w32_use_full_screen_buffer): Remove declaration.
1411 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1412 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1413 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1414 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1415 (no_redraw_on_reenter, visible_bell): Remove declaration.
1416 * sysdep.c (Vsystem_name): Remove declaration.
1417 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1418 * menu.h (Vmenu_updating_frame): Remove declaration.
1419 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1420 Remove declaration.
1421 * lisp.h (Vafter_init_time, Vafter_load_alist)
1422 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1423 (Vcompletion_regexp_list, Vcurrent_load_list)
1424 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1425 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1426 (Vexec_directory, Vexec_path, Vexec_suffixes)
1427 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1428 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1429 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1430 (Vinstallation_directory, Vinvocation_directory)
1431 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1432 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1433 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1434 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1435 (Vscalable_fonts_allowed, Vselect_active_regions)
1436 (Vshell_file_name, Vstandard_input, Vstandard_output)
1437 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1438 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1439 (Vuser_login_name, Vwindow_scroll_functions)
1440 (Vwindow_system_version, Vx_no_window_manager)
1441 (Vx_resource_class, Vx_resource_name, baud_rate)
1442 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1443 (history_delete_duplicates, inhibit_x_resources)
1444 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1445 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
1446 (use_dialog_box, use_file_dialog): Remove declaration.
1447 Include globals.h.
29208e82 1448 * keymap.h (Voverriding_local_map)
b286858c
SM
1449 (Voverriding_local_map_menu_flag, meta_prefix_char):
1450 Remove declaration.
29208e82
TT
1451 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1452 (Vinput_method_function, Vkey_translation_map)
1453 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1454 (do_mouse_tracking, extra_keyboard_modifiers)
1455 (num_nonmacro_input_events): Remove declaration.
1456 * intervals.h (Vchar_property_alias_alist)
1457 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1458 (Vtext_property_default_nonsticky): Remove declaration.
1459 * gtkutil.h (x_gtk_file_dialog_help_text)
1460 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1461 (x_gtk_whole_detached_tool_bar): Remove declaration.
1462 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1463 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1464 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1465 (focus_follows_mouse): Remove declaration.
1466 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1467 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
1468 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1469 Remove declaration.
29208e82
TT
1470 * font.h (Vfont_log): Remove declaration.
1471 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1472 (Vdos_windows_version, dos_codepage, dos_country_code)
1473 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
1474 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1475 Remove declaration.
1476 * disptab.h (Vglyph_table, Vstandard_display_table):
1477 Remove declaration.
29208e82
TT
1478 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1479 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1480 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1481 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1482 (inverse_video, mode_line_in_non_selected_windows)
1483 (tool_bar_button_relief, tool_bar_max_label_size)
1484 (underline_minimum_offset)
1485 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1486 Remove declaration.
1487 * composite.h (Vauto_composition_function)
1488 (Vcomposition_function_table): Remove declaration.
1489 * commands.h (Vexecuting_kbd_macro)
1490 (Vminibuffer_local_completion_map)
1491 (Vminibuffer_local_filename_completion_map)
1492 (Vminibuffer_local_filename_must_match_map)
1493 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1494 (Vminibuffer_local_ns_map, Vthis_command)
1495 (Vunread_command_events, cursor_in_echo_area)
1496 (last_command_event, last_nonmenu_event, unread_command_char):
1497 Remove declaration.
1498 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1499 (Vdefault_file_name_coding_system)
1500 (Vdefault_process_coding_system, Vfile_name_coding_system)
1501 (Vlast_coding_system_used, Vlocale_coding_system)
1502 (Vselect_safe_coding_system_function)
1503 (Vtranslation_table_for_input, coding_system_require_warning)
1504 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
1505 (eol_mnemonic_unix, inherit_process_coding_system):
1506 Remove declaration.
1507 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1508 Remove declaration.
29208e82
TT
1509 * character.h (Vauto_fill_chars, Vchar_direction_table)
1510 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1511 (Vscript_representative_chars, Vtranslation_table_vector)
1512 (Vunicode_category_table): Remove declaration.
1513 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1514 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1515 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1516 (inhibit_modification_hooks): Remove declaration.
1517 * xterm.c (syms_of_xterm): Update.
1518 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1519 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1520 (x_mouse_click_focus_ignore_position)
1521 (x_underline_at_descent_line)
1522 (x_use_underline_position_properties): Remove.
1523 * xsmfns.c (syms_of_xsmfns): Update.
1524 (Vx_session_id, Vx_session_previous_id): Remove.
1525 * xsettings.c (syms_of_xsettings): Update.
1526 (Vxft_settings, use_system_font): Remove.
1527 * xselect.c (syms_of_xselect): Update.
1528 (Vselection_converter_alist, Vx_lost_selection_functions)
1529 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1530 * xfns.c (syms_of_xfns): Update.
1531 (Vgtk_version_string, Vmotif_version_string)
1532 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1533 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1534 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1535 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1536 (Vx_sensitive_text_pointer_shape)
1537 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1538 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1539 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1540 Remove.
1541 * xfaces.c (syms_of_xfaces): Update.
1542 (Vface_default_stipple, Vface_font_rescale_alist)
1543 (Vface_ignored_fonts, Vface_new_frame_defaults)
1544 (Vface_remapping_alist, Vfont_list_limit)
1545 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1546 * xdisp.c (syms_of_xdisp): Update.
1547 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1548 (Vdisplay_pixels_per_inch, Vfontification_functions)
1549 (Vframe_title_format, Vglobal_mode_string)
1550 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1551 (Vicon_title_format, Vinhibit_redisplay)
1552 (Vline_number_display_limit, Vline_prefix)
1553 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1554 (Vmenu_updating_frame, Vmessage_log_max)
1555 (Vmouse_autoselect_window, Vnobreak_char_display)
1556 (Voverlay_arrow_position, Voverlay_arrow_string)
1557 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1558 (Vresize_mini_windows, Vshow_trailing_whitespace)
1559 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1560 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1561 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1562 (Vwindow_text_change_functions, Vwrap_prefix)
1563 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1564 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1565 (highlight_nonselected_windows, hscroll_margin)
1566 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1567 (inhibit_menubar_update, inhibit_try_cursor_movement)
1568 (inhibit_try_window_id, inhibit_try_window_reusing)
1569 (line_number_display_limit_width)
1570 (make_cursor_line_fully_visible_p, message_truncate_lines)
1571 (mode_line_inverse_video, multiple_frames, overline_margin)
1572 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1573 (tool_bar_max_label_size, underline_minimum_offset)
1574 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1575 Remove.
1576 * window.c (syms_of_window): Update.
1577 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1578 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1579 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1580 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1581 (mode_line_in_non_selected_windows, next_screen_context_lines)
1582 (window_min_height, window_min_width): Remove.
1583 (scroll_margin): Remove declaration.
1584 * w32term.c (syms_of_w32term): Update.
1585 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1586 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1587 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1588 (w32_use_visible_system_caret, x_underline_at_descent_line)
1589 (x_use_underline_position_properties): Remove.
1590 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1591 Remove declaration.
1592 * w32select.c (syms_of_w32select): Update.
1593 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1594 * w32proc.c (syms_of_ntproc): Update.
1595 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1596 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1597 (Vw32_start_process_inherit_error_mode)
1598 (Vw32_start_process_share_console)
1599 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1600 (Vsystem_name): Remove declaration.
1601 * w32font.c (syms_of_w32font): Update.
1602 (Vw32_charset_info_alist): Remove.
1603 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1604 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1605 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1606 (Vw32_enable_palette, Vw32_lwindow_modifier)
1607 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1608 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1609 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1610 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1611 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1612 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1613 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1614 (Vx_sensitive_text_pointer_shape)
1615 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1616 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1617 (w32_mouse_move_interval)
1618 (w32_pass_extra_mouse_buttons_to_system)
1619 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1620 (w32_strict_fontnames, w32_strict_painting): Remove.
1621 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1622 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
1623 (w32_num_mouse_buttons, w32_use_visible_system_caret):
1624 Remove declaration.
29208e82
TT
1625 * w32console.c (syms_of_ntterm): Update.
1626 (w32_use_full_screen_buffer): Remove.
1627 (Vtty_defined_color_alist): Remove declaration.
1628 * w16select.c (syms_of_win16select): Update.
1629 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1630 * undo.c (syms_of_undo): Update.
1631 (Vundo_outer_limit, Vundo_outer_limit_function)
1632 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1633 Remove.
1634 * textprop.c (syms_of_textprop): Update.
1635 (Vchar_property_alias_alist, Vdefault_text_properties)
1636 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1637 Remove.
1638 * terminal.c (syms_of_terminal): Update.
1639 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1640 * term.c (syms_of_term): Update.
1641 (Vresume_tty_functions, Vsuspend_tty_functions)
1642 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
1643 Remove.
1644 * syntax.c (syms_of_syntax): Update.
1645 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
1646 (open_paren_in_column_0_is_defun_start)
1647 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
1648 (words_include_escapes): Remove.
1649 * search.c (syms_of_search): Update.
1650 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
1651 * process.c (syms_of_process): Update.
1652 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
1653 (delete_exited_processes): Remove.
1654 * print.c (syms_of_print): Update.
1655 (Vfloat_output_format, Vprint_charset_text_property)
1656 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
1657 (Vprint_length, Vprint_level, Vprint_number_table)
1658 (Vstandard_output, print_escape_multibyte)
1659 (print_escape_newlines, print_escape_nonascii, print_quoted):
1660 Remove.
1661 * msdos.c (syms_of_msdos): Update.
1662 (Vdos_unsupported_char_glyph): Remove.
1663 (unibyte_display_via_language_environment): Remove declaration.
1664 * minibuf.c (syms_of_minibuf): Update.
1665 (Vcompletion_regexp_list, Vhistory_add_new_input)
1666 (Vhistory_length, Vminibuffer_completing_file_name)
1667 (Vminibuffer_completion_confirm)
1668 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
1669 (Vminibuffer_exit_hook, Vminibuffer_help_form)
1670 (Vminibuffer_history_position, Vminibuffer_history_variable)
1671 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
1672 (Vread_buffer_function, Vread_expression_map)
1673 (completion_ignore_case, enable_recursive_minibuffers)
1674 (history_delete_duplicates, minibuffer_allow_text_properties)
1675 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
1676 Remove.
1677 * marker.c (syms_of_marker): Update.
1678 (byte_debug_flag): Remove.
1679 * macros.c (syms_of_macros): Update.
1680 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
1681 * lread.c (syms_of_lread): Update.
1682 (Vafter_load_alist, Vbyte_boolean_vars)
1683 (Vbytecomp_version_regexp, Vcurrent_load_list)
1684 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
1685 (Vload_history, Vload_path, Vload_read_function)
1686 (Vload_source_file_function, Vload_suffixes, Vobarray)
1687 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
1688 (Vread_symbol_positions_list, Vread_with_symbol_positions)
1689 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
1690 (force_load_messages, load_convert_to_unibyte)
1691 (load_dangerous_libraries, load_force_doc_strings)
1692 (load_in_progress): Remove.
1693 * keymap.c (syms_of_keymap): Update.
1694 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
1695 (Vminibuffer_local_completion_map)
1696 (Vminibuffer_local_filename_completion_map)
1697 (Vminibuffer_local_filename_must_match_map)
1698 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1699 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
1700 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
1701 Remove.
1702 * keyboard.c (syms_of_keyboard): Update.
1703 (Vauto_save_timeout, Vcommand_error_function)
1704 (Vcommand_hook_internal, Vdeactivate_mark)
1705 (Vdeferred_action_function, Vdeferred_action_list)
1706 (Vdisable_point_adjustment, Vdouble_click_time)
1707 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
1708 (Vfunction_key_map, Vglobal_disable_point_adjustment)
1709 (Vhelp_char, Vhelp_event_list, Vhelp_form)
1710 (Vinput_method_function, Vinput_method_previous_message)
1711 (Vkey_translation_map, Vlast_event_frame)
1712 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
1713 (Vminibuffer_message_timeout, Voverriding_local_map)
1714 (Voverriding_local_map_menu_flag, Vpost_command_hook)
1715 (Vpre_command_hook, Vprefix_help_command)
1716 (Vsaved_region_selection, Vselect_active_regions)
1717 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
1718 (Vthis_command, Vthis_command_keys_shift_translated)
1719 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
1720 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
1721 (Vtty_erase_char, Vunread_command_events)
1722 (Vunread_input_method_events, Vunread_post_input_method_events)
1723 (auto_save_interval, cannot_suspend, do_mouse_tracking)
1724 (double_click_fuzz, extra_keyboard_modifiers)
1725 (inhibit_local_menu_bar_menus, last_command_event)
1726 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
1727 (menu_prompting, meta_prefix_char, num_input_keys)
1728 (num_nonmacro_input_events, polling_period, unread_command_char):
1729 Remove.
1730 * insdel.c (syms_of_insdel): Update.
1731 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
1732 * indent.c (syms_of_indent): Update.
1733 (indent_tabs_mode): Remove.
1734 * image.c (syms_of_image): Update.
1735 (Vimage_cache_eviction_delay, Vimage_types)
1736 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
1737 (cross_disabled_images): Remove.
1738 * fringe.c (syms_of_fringe): Update.
1739 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
1740 * frame.c (syms_of_frame): Update.
1741 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
1742 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
1743 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
1744 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
1745 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
1746 Remove.
1747 * fontset.c (syms_of_fontset): Update.
1748 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
1749 (Vfontset_alias_alist, Vignore_relative_composition)
1750 (Votf_script_alist, Vuse_default_ascent)
1751 (Vvertical_centering_font_regexp): Remove.
1752 * font.c (syms_of_font): Update.
1753 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
1754 (Vfont_weight_table, Vfont_width_table): Remove.
1755 * fns.c (syms_of_fns): Update.
1756 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
1757 * filelock.c (syms_of_filelock): Update.
1758 (Vtemporary_file_directory): Remove.
1759 * fileio.c (syms_of_fileio): Update.
1760 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
1761 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
1762 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
1763 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
1764 (Vinhibit_file_name_operation, Vset_auto_coding_function)
1765 (Vwrite_region_annotate_functions)
1766 (Vwrite_region_annotations_so_far)
1767 (Vwrite_region_post_annotation_function)
1768 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
1769 (Vw32_get_true_file_attributes): Remove declaration.
1770 * eval.c (syms_of_eval): Update.
1771 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
1772 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
1773 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
1774 (debug_on_next_call, debug_on_quit, debugger_may_continue)
1775 (max_lisp_eval_depth, max_specpdl_size): Remove.
1776 * emacs.c (syms_of_emacs): Update.
1777 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
1778 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
1779 (Vinstallation_directory, Vinvocation_directory)
1780 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
1781 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
1782 (Vsystem_configuration, Vsystem_configuration_options)
1783 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
1784 (inhibit_x_resources, noninteractive1): Remove.
1785 * editfns.c (syms_of_editfns): Update.
1786 (Vbuffer_access_fontified_property)
1787 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
1788 (Voperating_system_release, Vsystem_name, Vuser_full_name)
1789 (Vuser_login_name, Vuser_real_login_name): Remove.
1790 * dosfns.c (syms_of_dosfns): Update.
1791 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
1792 (dos_codepage, dos_country_code, dos_decimal_point)
1793 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
1794 (dos_super_key, dos_timezone_offset): Remove.
1795 * doc.c (syms_of_doc): Update.
1796 (Vbuild_files, Vdoc_file_name): Remove.
1797 * dispnew.c (syms_of_display): Update.
1798 (Vglyph_table, Vinitial_window_system)
1799 (Vredisplay_preemption_period, Vstandard_display_table)
1800 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
1801 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
1802 * dired.c (syms_of_dired): Update.
1803 (Vcompletion_ignored_extensions): Remove.
1804 (Vw32_get_true_file_attributes): Remove declaration.
1805 * dbusbind.c (syms_of_dbusbind): Update.
1806 (Vdbus_debug, Vdbus_registered_buses)
1807 (Vdbus_registered_objects_table): Remove.
1808 * data.c (syms_of_data): Update.
1809 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
1810 * composite.c (syms_of_composite): Update.
1811 (Vauto_composition_function, Vauto_composition_mode)
1812 (Vcompose_chars_after_function, Vcomposition_function_table):
1813 Remove.
1814 * coding.c (syms_of_coding): Update.
1815 (Vcharset_revision_table, Vcoding_category_list)
1816 (Vcoding_system_alist, Vcoding_system_for_read)
1817 (Vcoding_system_for_write, Vcoding_system_list)
1818 (Vdefault_process_coding_system, Venable_character_translation)
1819 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1820 (Vlast_coding_system_used, Vlatin_extra_code_table)
1821 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1822 (Vprocess_coding_system_alist)
1823 (Vselect_safe_coding_system_function)
1824 (Vstandard_translation_table_for_decode)
1825 (Vstandard_translation_table_for_encode)
1826 (Vtranslation_table_for_input, coding_system_require_warning)
1827 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1828 (eol_mnemonic_unix, inherit_process_coding_system)
1829 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1830 (inhibit_null_byte_detection): Remove.
1831 * cmds.c (syms_of_cmds): Update.
1832 (Vpost_self_insert_hook): Remove.
1833 * charset.c (syms_of_charset): Update.
1834 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1835 (inhibit_load_charset_map): Remove.
1836 * character.c (syms_of_character): Update.
1837 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1838 (Vchar_width_table, Vprintable_chars)
1839 (Vscript_representative_chars, Vtranslation_table_vector)
1840 (Vunicode_category_table): Remove.
1841 * ccl.c (syms_of_ccl): Update.
1842 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1843 (Vtranslation_hash_table_vector): Remove.
1844 * category.c (syms_of_category): Update.
1845 (Vword_combining_categories, Vword_separating_categories): Remove.
1846 * callproc.c (syms_of_callproc): Update.
1847 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1848 (Vexec_directory, Vexec_path, Vexec_suffixes)
1849 (Vinitial_environment, Vprocess_environment)
1850 (Vshared_game_score_directory, Vshell_file_name): Remove.
1851 * callint.c (syms_of_callint): Update.
1852 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1853 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1854 * bytecode.c (syms_of_bytecode): Update.
1855 (Vbyte_code_meter, byte_metering_on): Remove.
1856 * buffer.c (syms_of_buffer): Update.
1857 (Vafter_change_functions, Vbefore_change_functions)
1858 (Vchange_major_mode_hook, Vfirst_change_hook)
1859 (Vinhibit_read_only, Vkill_buffer_query_functions)
1860 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1861 * alloc.c (syms_of_alloc): Update.
1862 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1863 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1864 (cons_cells_consed, floats_consed, garbage_collection_messages)
1865 (gc_cons_threshold, gcs_done, intervals_consed)
1866 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1867 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1868
1869 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1870 (DEFVAR_INT): Assume global is in `globals'.
1871 * alloc.c (globals): Define.
1872
448c0820
TT
18732011-01-18 Tom Tromey <tromey@redhat.com>
1874
1875 * image.c (Vimagemagick_render_type): Remove redundant
1876 definition.
1877
8442d95d
TT
18782011-01-18 Tom Tromey <tromey@redhat.com>
1879
1880 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1881 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1882 (redisplay_window): Update.
1883 (syms_of_xdisp): Update.
1884
cab0ba98
TT
18852011-01-18 Tom Tromey <tromey@redhat.com>
1886
1887 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1888 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1889 Declare.
1890 * gtkutil.c (xg_uses_old_file_dialog):
1891 (xg_get_file_with_chooser):
1892 (xg_tool_bar_detach_callback): Don't redeclare globals.
1893
422745d0
TT
18942011-01-18 Tom Tromey <tromey@redhat.com>
1895
1896 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1897 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1898
7cae64b4
PE
18992011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1900
1901 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1902 defined __GNUC__. ../configure now checks for this GCC feature,
1903 which is now also supported by IBM and Oracle compilers.
1904 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1905 since Solaris malloc returns mult-of-8.
1906
a9faac5c 19072011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1908
1909 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1910
a3e44e79 19112011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1912
6e8e6bf2
PE
1913 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1914 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1915 * data.c (Fnumber_to_string): Use it.
1916 * print.c (float_to_string, print_object): Likewise.
1917
4004364e
PE
1918 Include <unistd.h> unilaterally.
1919 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1920 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1921 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1922 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1923 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1924 * xterm.c:
1925 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1926 unistd.h is always present now, possibly supplied by gnulib.
1927
e84aba69
PE
1928 * mktime.c: Remove; moving to ../lib.
1929
1e11dbe3
PE
1930 Use gnulib's mktime module.
1931 * deps.mk (mktime.o): Remove rule.
1932
fa2c4f56
PE
1933 Use gnulib's ftoastr module.
1934 * print.c: Include ftoastr.h.
1935 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1936 Remove; no longer needed.
1937 (float_to_string): Use dtoastr rather than rolling our own code,
1938 which had an off-by-one bug on non-IEEE hosts.
1939
9a514d4a
PE
1940 Automate syncing from gnulib.
1941 * Makefile.in (lib): New macro.
1942 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1943 ($(lib)/libgnu.a): New rule.
1944 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1945
717c30e0
PE
1946 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1947 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1948 so change the type of 'ign' to unsigned int from int.
1949
8865d794
PE
1950 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1951
4ef36a7b
PE
1952 * xterm.h (struct x_display_info): Remove stray semicolon.
1953 The extra semicolon didn't conform to the C standard.
1954 Problem reported by Sun cc.
1955
6df4097e
PE
1956 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1957 These changes make compilation easier to follow with Sun cc.
1958 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1959 EMACS_INT values without provoking overflow diagnostics.
1960 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1961 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1962 diagnostic with signed left shift.
9fba3563 1963
410ed5c3
PE
1964 * fileio.c (make_temp_name): Remove unreachable code.
1965
97be3ce3
PE
1966 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1967 Previously it was marked by preceding it with "return;", but
1968 Sun cc complains about this.
1969
9fba3563
PE
1970 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1971 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1972 which fixed Bug#2370. Caught by Sun cc.
1973
6dc1d2d3
MR
19742011-01-15 Martin Rudalics <rudalics@gmx.at>
1975
1976 * window.c (inhibit_point_swap): New variable.
1977 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1978 point this time.
1979 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1980 of setting selected_window to nil (Bug#7728).
1981
f853f599
TH
19822011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1983
8dabbfd6
SM
1984 * image.c (imagemagick_load_image, Finit_image_library):
1985 Free intermediate image after creating a MagickWand from it.
1986 Terminate MagickWand environment after image loading.
f853f599 1987
2bc92a93
MA
19882011-01-10 Michael Albinus <michael.albinus@gmx.de>
1989
1990 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1991 unexpected return values.
1992 (Fdbus_register_method): Remove connection initialization.
1993
19942011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1995
1996 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1997 used by Fdbus_register_service.
1998 (QCdbus_request_name_replace_existing): Likewise.
1999 (QCdbus_request_name_do_not_queue): Likewise.
2000 (QCdbus_request_name_reply_primary_owner): Likewise.
2001 (QCdbus_request_name_reply_in_queue): Likewise.
2002 (QCdbus_request_name_reply_exists): Likewise.
2003 (QCdbus_request_name_reply_already_owner): Likewise.
2004 (Fdbus_register_service): New function.
2005 (Fdbus_register_method): Use Fdbus_register_service to do the name
2006 registration.
2007 (syms_of_dbusbind): Add symbols dbus-register-service,
2008 :allow-replacement, :replace-existing, :do-not-queue,
2009 :primary-owner, :existing, :in-queue and :already-owner.
2010
21a76236
CY
20112011-01-09 Chong Yidong <cyd@stupidchicken.com>
2012
2013 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2014 when removing extra buttons.
2015
3d91e302
CY
20162011-01-08 Chong Yidong <cyd@stupidchicken.com>
2017
2018 * fns.c (Fyes_or_no_p): Doc fix.
2019
0d23ffb5
AS
20202011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2021
2022 * fns.c (Fyes_or_no_p): Add usage.
2023
9dc3366b
GM
20242011-01-08 Glenn Morris <rgm@gnu.org>
2025
d0981f82
GM
2026 * makefile.w32-in ($(EMACS)):
2027 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2028
9dc3366b
GM
2029 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2030 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2031
466cbae9
AS
20322011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2033
2034 * image.c (imagemagick_load_image): Fix some resource leaks and
2035 error handling.
2036
8c51d2a2
CY
20372011-01-07 Chong Yidong <cyd@stupidchicken.com>
2038
2039 * fns.c (Fyes_or_no_p): Accept format string args.
2040
66b7b0fe
GM
20412011-01-07 Glenn Morris <rgm@gnu.org>
2042
2043 * emacs.c (no_site_lisp): New int.
2044 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2045 (main): Set no_site_lisp.
2046 (standard_args): Add --no-site-lisp.
2047 * lisp.h (no_site_lisp): New int.
2048 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2049 directories to Vload_path.
2050
2018939f
AS
20512011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2052
2053 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2054
6ed843e5
MA
20552011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2056
8dabbfd6 2057 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
2058 dont_register_service. Updated docstring accordingly.
2059
3f9b7090
GM
20602011-01-04 Glenn Morris <rgm@gnu.org>
2061
2062 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2063
d82bce4a
EZ
20642011-01-03 Eli Zaretskii <eliz@gnu.org>
2065
2066 * image.c (png_jmpbuf): Remove definition.
2067 (my_png_error, png_load): Don't use png_jmpbuf.
2068
7c420169
CY
20692011-01-02 Eli Zaretskii <eliz@gnu.org>
2070
2071 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2072
20732011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
2074
2075 * image.c <Qlibpng_version>: New variable.
2076 (syms_of_image): Intern and staticpro it. Set its value to the
2077 version of PNG library we were compiled with.
2078 (my_png_error, png_load): Avoid GCC warnings about direct access
2079 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
2080 (png_jmpbuf): New macro.
2081 (my_png_error, png_load): Use it instead of #ifdef'ing according
2082 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 2083
7c420169 20842011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
2085
2086 * .gdbinit (xgetptr): Fix the union+lsb case.
2087 (xbacktrace): Fix the union case.
2088
7c420169 20892011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
2090
2091 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2092 different from selected-window's.
2093
7c420169 20942011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 2095
71fe378d
EZ
2096 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2097 equivalent of a menu item when the key sequence is given by the
2098 `:keys' attribute. (Bug#7662)
2099
2e4ab211
EZ
2100 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2101 the basic faces are supported.
2102
7c420169 21032011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
2104
2105 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2106
7c420169 21072011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
2108
2109 * xdisp.c (Fformat_mode_line): Fix last change.
2110
7c420169 21112011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
2112
2113 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2114 faces (Bug#7587).
2115
7c420169 21162011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
2117
2118 * fileio.c (Fexpand_file_name): One more doc fix.
2119
3afff00e
CY
21202011-01-01 Chong Yidong <cyd@stupidchicken.com>
2121
2122 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2123 image or label in the container.
2124 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2125 (xg_show_toolbar_item): Function deleted.
2126 (xg_tool_item_stale_p): New function.
2127 (update_frame_tool_bar): Calculate tool-bar style once per call.
2128 Instead of hiding text labels, omit them. Don't use
2129 xg_show_toolbar_item; create new GtkToolItems from scratch if
2130 necessary, instead of trying to re-use them. This avoids an
2131 annoying animation when changing tool-bars.
2132
aeb7e951
JD
21332010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2134
2135 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2136 title and buffer filename only for RepresentedFilename.
2137 Handle bad UTF-8 in buffer name (Bug#7517).
2138
5bbb4727
JD
21392010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2140
2141 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2142
2143 * nsfns.m (ns_set_name_iconic): Remove.
2144 (ns_set_name_internal): New function (Bug#7517).
2145 (Vicon_title_format): Extern declare.
2146 (ns_set_name): Call ns_set_name_internal.
2147 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2148 (x_implicitly_set_name): Ditto.
2149 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2150 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2151
f1aab3ff
ŠN
21522010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2153
2154 * window.c (syms_of_window): Add missing defsubr for
2155 window-use-time.
2156
365525b3
AS
21572010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2158
2159 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2160 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2161
59fc5cf9
AS
21622010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2163
2f7c71a1
AS
2164 * buffer.c: Remove unused declarations.
2165 * buffer.h: Likewise.
2166 * charset.h: Likewise.
2167 * composite.h: Likewise.
2168 * dispextern.h: Likewise.
2169 * dispnew.c: Likewise.
2170 * font.h: Likewise.
2171 * fontset.c: Likewise.
2172 * fontset.h: Likewise.
2173 * intervals.h: Likewise.
2174 * keymap.h: Likewise.
2175 * lisp.h: Likewise.
2176 * syntax.c: Likewise.
2177 * syntax.h: Likewise.
2178 * termhooks.h: Likewise.
2179 * window.h: Likewise.
2180 * xsettings.h: Likewise.
2181 * xterm.c: Likewise.
2182 * xterm.h: Likewise.
2183
2184 * chartab.c (sub_char_table_ref): Make static.
2185 * dispnew.c (line_hash_code, required_matrix_height)
2186 (required_matrix_width): Likewise.
2187 * eval.c (interactive_p, apply_lambda): Likewise.
2188 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2189 Likewise.
2190 * font.c (QCadstyle, QCregistry, font_make_spec)
2191 (font_parse_fcname, font_encode_char, font_at): Likewise.
2192 * frame.c (x_frame_get_arg): Likewise.
2193 * keymap.c (get_keyelt): Likewise.
2194 * lread.c (read_filtered_event): Likewise.
2195 * print.c (write_string_1): Likewise.
2196 * window.c (delete_window, window_height, window_width)
2197 (foreach_window): Likewise.
2198 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2199 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2200 (xembed_send_message): Likewise.
2201
2202 * eval.c (run_hook_list_with_args): Delete.
2203 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2204 * terminal.c (get_terminal_param): Likewise.
2205 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2206
c4b607ed
AS
2207 * scroll.c: Fix comment.
2208
59fc5cf9
AS
2209 * dispnew.c (add_window_display_history)
2210 (add_frame_display_history, glyph_row_slice_p)
2211 (find_glyph_row_slice, flush_stdout)
2212 (check_matrix_pointer_lossage, matrix_row)
2213 (check_matrix_invariants, check_window_matrix_pointers)
2214 (check_matrix_pointers, window_to_frame_vpos)
2215 (window_to_frame_hpos): Prototize.
2216 * textprop.c (erase_properties): Likewise.
2217
a65b85b5
SM
22182010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2219
17870c01
SM
2220 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2221 (print_preprocess): Fix handling of uninterned symbols in last change.
2222
a65b85b5
SM
2223 * print.c (print, print_preprocess, print_object): Use a hash table
2224 rather than a linear table for Vprint_number_table.
2225
f13183cf
CY
22262010-12-20 Chong Yidong <cyd@stupidchicken.com>
2227
2228 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2229
94975270
CY
22302010-12-20 Chong Yidong <cyd@stupidchicken.com>
2231
2232 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2233 (parse_tool_bar_item): Use it to obtain image separators for
2234 displays not using native tool-bar separators.
2235
2236 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2237 specially, since this is now done in parse_tool_bar_item.
2238
ef1b0ba7
SM
22392010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2240
2241 Minor clean up to silence some gcc warnings.
2242 * window.c (Fset_window_buffer):
2243 * xterm.c (x_set_frame_alpha): Restructure code to silence
2244 compiler warning.
2245 (handle_one_xevent): Remove unused var `p'.
2246 (do_ewmh_fullscreen): Remove unused var `lval'.
2247 (xembed_set_info): Remove unused var `atom'.
2248 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2249 compiler warning.
2250 * fontset.c (fontset_id_valid_p, dump_fontset):
2251 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2252 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2253 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2254 label only when it's used.
2255 * image.c (x_create_bitmap_from_xpm_data):
2256 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2257 its callers.
2258 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2259 `consumed_chars'.
2260 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2261 (decode_coding_emacs_mule): Remove unused label `retry'.
2262 (detect_eol): Add parens to silence compiler warning.
2263 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2264 it's used to silence the compiler.
2265 (make_number): Modernize k&r declaration.
2266 (mark_char_table): Add parens to silence compiler warning.
2267
4039c786
CY
22682010-12-17 Chong Yidong <cyd@stupidchicken.com>
2269
2270 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2271 tool-bar maps.
2272 (menu_separator_name_p): New function, from gtkutil.c.
2273 (separator_names): Move from gtkutil.c.
2274
2275 * keyboard.h (menu_separator_name_p): Add prototype.
2276
2277 * gtkutil.c (XG_BIN_CHILD): New macro.
2278 (xg_get_menu_item_label, xg_update_menubar)
2279 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2280 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2281 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2282 (create_menus, xg_update_submenu, update_frame_tool_bar):
2283 Use menu_separator_name_p.
4039c786
CY
2284
2285 * nsmenu.m (name_is_separator): Function deleted.
2286 (addItemWithWidgetValue): Use menu_separator_name_p.
2287
2288 * w32menu.c (name_is_separator): Function deleted.
2289 (add_menu_item): Use menu_separator_name_p.
2290
aa936e8e
JD
22912010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2292
2293 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2294 same as the background, use the face forground as cursor.
2295
f49d1f52 22962010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2297
2298 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2299
f49d1f52 23002010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 2301
f0559026
EZ
2302 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2303 (face_before_or_after_it_pos, next_element_from_string)
2304 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2305 calculations of maximum string length before calling
2306 string_char_and_length and STRING_CHAR_AND_LENGTH.
2307 (string_char_and_length): Update commentary: MAXLEN is no longer
2308 needed.
2309
f49d1f52 23102010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
2311
2312 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2313 as (Qsave_session arg).
2314
2315 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2316 (smc_die_CB): Make an event with arg Qt.
2317 (Fhandle_save_session): If event has Qt as argument,
2318 call Fkill_emacs (Bug#7552).
2319
f49d1f52
SM
23202010-12-13 Chong Yidong <cyd@stupidchicken.com>
2321
2322 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2323
23242010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
2325
2326 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2327
f49d1f52 23282010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
2329
2330 * dispextern.h (struct it): New member overlay_strings_charpos.
2331
2332 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2333 charpos where we computed n_overlay_strings.
2334 (next_overlay_string): Load overlay strings at recorded position,
2335 which may not be the same as the iterator's charpos (Bug#7016).
2336
f49d1f52 23372010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
2338
2339 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2340 obscured due to a vscroll (Bug#7537).
2341
f49d1f52 23422010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
2343
2344 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2345
2346 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2347 Use FRAME_TOOLBAR_HEIGHT.
2348 (x_set_offset): Handle XNegative and YNegative in
2349 f->size_hint_flags (Bug#7510).
2350
39321b94
EZ
23512010-12-11 Eli Zaretskii <eliz@gnu.org>
2352
2353 * w32fns.c (Fx_show_tip): Call try_window with last argument
2354 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2355 solved. Round up the tip height to an integral multiple of the
2356 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2357 (Bug#7398)
2358
ec1b9b17
GM
23592010-12-08 Glenn Morris <rgm@gnu.org>
2360
2361 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2362
3c2317e8
LMI
23632010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2364
2365 * xml.c (parse_region): Ignore blank HTML nodes.
2366 (make_dom): Return CDATA sections (like <style>foo</style>) as
2367 text nodes.
2368
bba3e508
SM
23692010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2370
2371 * lread.c (read1): Allow newstyle unquote outside of backquote.
2372 Disallow old-style backquotes inside new-style backquotes.
2373 Don't count unquotes to figure out when we're "syntactically inside
2374 but semantically outside of a backquote" any more.
2375 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2376 to all contexts.
2377
d23d8608
CY
23782010-12-05 Chong Yidong <cyd@stupidchicken.com>
2379
2380 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2381
d6a003a8
AS
23822010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2383
2384 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2385 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2386 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2387
201ef780
AS
23882010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2389
2390 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2391 bit-field.
2392 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2393 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2394 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2395 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2396 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2397 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2398 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2399 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2400 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2401 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2402 * m/hp800.h: Remove file.
2403 * m/mips.h: Remove file.
2404
146490c3
JD
24052010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2406
2407 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2408 with cursor color and draw a rectangle around the image (Bug#7412).
2409
babc8f0d
AS
24102010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2411
2412 * frame.c (x_set_font): Remove unused variable.
2413
9583e9a0
JD
24142010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2415
dd723bbd
JD
2416 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2417
9583e9a0
JD
2418 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2419 drawing text under filled box cursor (Bug#7479).
2420
07976ae3 24212010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2422
2423 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2424 i.e. integer.
bba3e508 2425 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2426 (init_charset_once): Likewise.
2427
bba3e508
SM
2428 * charset.h (emacs_mule_charset): Adjust the prototype.
2429 Delete duplicated extern.
b84ae584
KH
2430
2431 * coding.c (emacs_mule_char): Adjust for the change of
2432 emacs_mule_charset.
2433
2434 * lread.c (read_emacs_mule_char): Adjust for the change of
2435 emacs_mule_charset.
2436
07976ae3 24372010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2438
2439 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2440 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2441
07976ae3 24422010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2443
2444 * alloc.c (mark_terminals): Ensure that the image cache is marked
2445 even if the terminal object was marked earlier (Bug#6301).
2446
35f1de62
CY
24472010-11-21 Chong Yidong <cyd@stupidchicken.com>
2448
2449 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2450
07976ae3 24512010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2452
2453 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2454 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2455 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2456
8547874a
EZ
24572010-11-26 Eli Zaretskii <eliz@gnu.org>
2458
228482b2
EZ
2459 * xdisp.c (set_message_1): Force paragraph direction in echo area
2460 be left-to-right.
2461
8547874a
EZ
2462 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2463 when the click is on the header or mode line.
2464
1e2dddbe
EZ
24652010-11-25 Eli Zaretskii <eliz@gnu.org>
2466
2467 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2468 `cursor' property of the first character in overlay strings.
12365240 2469 (Bug#7474) (Bug#7481)
1e2dddbe 2470
50795d1f
JD
24712010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2472
2473 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2474 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2475 (keyDown): Parse left and right keys separately (Bug#7458).
2476 Compare Left key masks exactly (Bug#7458).
50795d1f 2477
f8ab8c1f
EZ
24782010-11-23 Eli Zaretskii <eliz@gnu.org>
2479
2480 * intervals.c (temp_set_point_both): Define before calling, to
2481 avoid GCC warnings.
2482
2e8a4797
DN
24832010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2484
b29116ef
DN
2485 * nsmenu.m: Use #include <config.h> instead of "config.h".
2486
b932f8b1 2487 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2488 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2489 Move declarations ...
2490 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2491 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2492 ... here.
2493
42c8bc9b
DN
2494 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2495 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2496 (gdb_pvec_type):
2497 * print.c (print_output_debug_flag):
2498 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2499 (safe_debug_print): New declaration.
2500
2e8a4797
DN
2501 * xterm.c:
2502 * systty.h:
2503 * sound.c: Include <sys/ioctl.h> unconditionally.
2504
b609f591
YM
25052010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2506
2507 * alloc.c (mark_maybe_object): Return early if given a Lisp
2508 integer (Bug#6301).
2509
731e263a
KB
25102010-11-21 Ken Brown <kbrown@cornell.edu>
2511
2512 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2513
b7d1e144
JD
25142010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2515
2516 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2517 Define (Bug#7458).
2518 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2519 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2520 NSRightControlKeyMask also (Bug#7458).
2521 (keyDown): Ditto (Bug#7458).
2522 (syms_of_nsterm): Defvar ns-right-command-modifier and
2523 ns-right-control-modifier (Bug#7458).
2524
b7982059
DN
25252010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2526
bee3419f
DN
2527 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2528 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2529
b7982059
DN
2530 * intervals.h (temp_set_point, temp_set_point_both):
2531 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2532
01664ed1
KB
25332010-11-20 Ken Brown <kbrown@cornell.edu>
2534
2535 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2536
7c2d713b
EZ
25372010-11-20 Eli Zaretskii <eliz@gnu.org>
2538
2539 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2540 \xNNNNNN for hex-code display of glyphless characters.
2541
d2bd5189
JD
25422010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2543
2544 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2545 Set important to ! vert_only.
2546 (xg_show_toolbar_item): Don't show label horizontally if
2547 tool item isn't important.
2548 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2549 xg_make_tool_item, or update important on existing tool item.
2550
2551 * keyboard.c (QCvert_only): New variable.
2552 (parse_tool_bar_item): Check for QCvert_only.
2553 (syms_of_keyboard): Initialize QCvert_only.
2554
2555 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2556
d9a95e67
EZ
25572010-11-20 Eli Zaretskii <eliz@gnu.org>
2558
2559 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2560 same in-line.
2561
b6557553
AS
25622010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2563
2564 * xfaces.c (lookup_face): Make static.
2565 * dispnew.c (copy_row_except_pointers): Likewise.
2566 * syntax.c (dec_bytepos): Likewise.
2567 (inc_bytepos): Remove.
2568 * dispextern.h (lookup_face): Remove declaration.
2569
f48fe1f0
EZ
25702010-11-19 Eli Zaretskii <eliz@gnu.org>
2571
2572 * xdisp.c (set_cursor_from_row): Display cursor after all the
2573 glyphs that come from an overlay. Don't overstep the last glyph
2574 when skipping glyphs from an overlay. (Bug#6687)
2575
654ef137
DN
25762010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2577
84dfc8a7
DN
2578 * alloc.c (refill_memory_reserve): Move declaration ...
2579 * lisp.h (refill_memory_reserve): ... here.
2580
94fa3833
DN
2581 * strftime.c (_strftime_copytm): Add declaration.
2582
dde990a0
DN
2583 * callproc.c (syms_of_callproc): Use intern_c_string.
2584
50c77428
DN
2585 Move declarations from .c files to .h files.
2586 * process.c (timers_run):
2587 * minibuf.c (quit_char):
2588 * lread.c (read_emacs_mule_char):
2589 * keyboard.c (minibuf_level, message_enable_multibyte)
2590 (pending_malloc_warning):
2591 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2592 (Qonly): Remove declarations.
2593 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2594 (Vselect_active_regions):
2f8f196d 2595 * keyboard.h (timers_run): Add declarations.
50c77428 2596
654ef137
DN
2597 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2598 (tm_diff): Convert definitions to standard C.
2599 (extra_args_spec_iso): Remove, unused.
2600
4a47c275 26012010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
2602
2603 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2604
2605 * config.in (HAVE_G_TYPE_INIT): New symbol.
2606
4a47c275 26072010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
2608
2609 * lread.c (Fload): Mention `load-in-progress' and
2610 `load-file-name'. (Bug#7346)
2611
86520d8c
EZ
2612 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2613 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2614 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2615 subprocesses. Use buffer_free only ifdef subprocesses.
2616
2617 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2618 the subprocesses version, not in the non-subprocesses one.
2619
794a4b6d
EZ
2620 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2621
146d267b
EZ
26222010-11-17 Eli Zaretskii <eliz@gnu.org>
2623
2624 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2625 lines on text-mode terminals. (bug#7417)
2626
fad0d565
SM
26272010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2628
2629 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2630 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2631
6b4bb703
KH
26322010-11-17 Kenichi Handa <handa@m17n.org>
2633
2634 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2635 change (set charset-ID list instead of charset-symbol list).
2636
9173a8fb
CY
26372010-11-16 Chong Yidong <cyd@stupidchicken.com>
2638
2639 * keyboard.c (make_lispy_position): For text area clicks, record Y
2640 pixel position relative to the text area, excluding header line.
2641 Also change X and Y to Lisp_Objects, not pointers; don't return
2642 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
2643 buffer_posn_from_coords counting from the start of the text area.
2644 (Fposn_at_x_y, make_lispy_event): Callers changed.
2645
2646 * window.c (coordinates_in_window): Change X and Y to ints rather
2647 than pointers; don't return coordinates via pointers.
2648 (struct check_window_data): Change X and Y from pointers to ints.
2649 (window_from_coordinates): Remove args WX and WY; don't return
2650 coordinates via pointers.
2651 (Fcoordinates_in_window_p, window_from_coordinates):
2652 (check_window_containing, Fwindow_at): Callers changed.
2653 (window_relative_x_coord): New function.
2654
2655 * window.h (window_from_coordinates, window_relative_x_coord):
2656 Update prototypes.
2657
2658 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
2659 the start of the text area.
2660
2661 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
2662 call. Use window_relative_x_coord.
2663 (note_mouse_highlight): Change window_from_coordinates call.
2664
2665 * w32term.c (w32_read_socket):
2666 * msdos.c (dos_rawgetc):
2667 * xterm.c (handle_one_xevent): Likewise.
2668
d2762c86
DN
26692010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2670
2671 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
2672 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
2673 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
2674 Convert definitions to standard C.
2675 * regex.c: Do not include <stdlib.h>, config.h does it.
2676 Include unistd.h.
2677 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
2678 (regerror, regfree): Convert definitions to standard C.
2679 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
2680 (__mktime_internal): Convert definitions to standard C.
2681
c2f0866a
DN
26822010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2683
42a7e7f1
DN
2684 * w32proc.c:
2685 * w32inevt.c:
2686 * w32heap.c:
2687 * w32.c: Remove config.h include guards.
2688
67802943
DN
2689 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
2690 No code changes.
2691
f0e1af46
DN
2692 * process.c: Include <sys/ioctl.h> unconditionally,
2693 keyboard.c already does it.
2694
c2f0866a
DN
2695 * keyboard.c (pending_malloc_warning): Add const to match
2696 definition in alloc.c.
2697 (Fset_input_interrupt_mode): Simplify #ifdefs.
2698
92d3ab7e
DN
26992010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2700
12e610e8
DN
2701 Clean up systty.h macros.
2702 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
2703 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
2704 definition in all uses.
2705 (EMACS_TTY_TABS_OK): Remove, it has a single user.
2706 * sysdep.c (discard_tty_input, child_setup_tty)
2707 (init_sys_modes, tabs_safe_p, reset_sys_modes):
2708 * emacs.c (shut_down_emacs):
2709 * callproc.c (child_setup):
2710 * term.c (dissociate_if_controlling_tty): Inline removed macros.
2711
92d3ab7e
DN
2712 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
2713
a3e6bad4
CY
27142010-11-14 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * w32fns.c (Fx_create_frame):
2717 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
2718 resource here; it's now done at startup.
2719
5a232ffb
J
27202010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2721
2722 * xterm.c (set_wm_state): Add Qnil to final cons.
2723
2724 * xselect.c (x_send_client_event): Remove unused variables cons and
2725 size.
2726
24021b38
YM
27272010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2728
2f8f196d 2729 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
2730 arg NAME_TABLE.
2731 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
2732 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
2733 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
2734 Add const to array elements.
2735 (scroll_bar_parts): Make static. Fix position of const.
2736
2737 * w32fns.c (lispy_function_keys): Add const to extern.
2738
2739 * w32inevt.c (lispy_function_keys): Likewise.
2740
afa42fe3
CY
27412010-11-14 Chong Yidong <cyd@stupidchicken.com>
2742
2743 * xfns.c (Fx_create_frame): Don't check for the cursorColor
2744 resource here; it's now done at startup.
2745
53260a94
DN
27462010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2747
c865c575 2748 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 2749
c865c575 2750 Fix compilation on Solaris.
ff2e8052
DN
2751 * sysdep.c: Do not #include <term.h>.
2752 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
2753
53260a94
DN
2754 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
2755
933e29ff
J
27562010-11-13 Jan Djärv <jan.h.d@swipnet.se>
2757
2758 * xterm.c (set_wm_state): Don't put Atom in cons, call
2759 make_fixnum_or_float on them first.
2760 (x_term_init): Initialize Xatom_net_supporting_wm_check and
2761 Xatom_net_supported correctly.
2762
2763 * xselect.c (x_send_client_event): Move CHECK_STRING ...
2764 (Fx_send_client_event): to here.
2765
a048073e
MR
27662010-11-13 Martin Rudalics <rudalics@gmx.at>
2767
2768 * window.c (Fwindow_use_time): New function.
2769
0eb025fb
EZ
27702010-11-13 Eli Zaretskii <eliz@gnu.org>
2771
2772 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
2773 zero-width characters.
2774
2775 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
2776
2777 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
2778 box before drawing the glyphs inside it.
2779
2780 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
2781
bba3e508
SM
2782 * dispextern.h (enum glyphless_display_method):
2783 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
2784 All users changed.
0eb025fb 2785
bba3e508
SM
2786 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2787 Fix comments.
0eb025fb
EZ
2788 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
2789 whitespace in "[]", to simulate a box. Don't use uninitialized
2790 variable `width'.
2791
c869cc37
JD
27922010-11-11 Julien Danjou <julien@danjou.info>
2793
2d9074ba
JD
2794 * xsettings.c (init_xsettings): Use already fetch atoms.
2795
2796 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
2797 from dpyinfo.
2798
2799 * xselect.c (Fx_send_client_event): Split and create
2800 x_send_client_event.
2801
2802 * lisp.h: Do not EXFUN Fx_send_client_event.
2803
2804 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
2805 from dpyinfo.
2806 (wm_supports): Use atoms from dpyinfo.
2807 (do_ewmh_fullscreen): Use atoms from dpyinfo.
2808 (x_ewmh_activate_frame): Use atoms from dpyinfo.
2809 (xembed_set_info): Use atoms from dpyinfo.
2810 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
2811 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
2812 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
2813 Get all atoms in one round-trip.
2814 (set_wm_state): Use x_send_client_event rather than
2815 Fx_send_client_event, using Atom directly.
2816 (x_ewmh_activate_frame): Ditto.
2817 (x_set_sticky): Pass atoms to set_wm_state.
2818 (do_ewmh_fullscreen): Ditto.
2819
2d9074ba
JD
2820 * xterm.h (x_display_info): Add Xatom_net_supported,
2821 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2822 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2823
c869cc37
JD
2824 * xfns.c (Fx_show_tip): Fix typo in docstring.
2825
1a4236ea
SM
28262010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2827
2828 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2829 it's not negative.
2830
3106121c
YM
28312010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2832
2833 * font.c (font_filter_properties): Add const to array elements of
2834 properties args.
2835
2836 * font.h (font_filter_properties): Likewise.
2837
2838 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2839 elements.
2840
2841 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2842
da1fec2b
MA
28432010-11-10 Michael Albinus <michael.albinus@gmx.de>
2844
2845 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2846 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2847 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2848 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2849 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2850
bd6bc222
GM
28512010-11-10 Glenn Morris <rgm@gnu.org>
2852
2853 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2854
c0098065
EZ
28552010-11-09 Eli Zaretskii <eliz@gnu.org>
2856
bd6bc222 2857 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 2858
d607b96b 28592010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
2860
2861 * image.c (free_image): Don't garbage the frame here, since this
2862 function can be called while redisplaying (Bug#7210).
2863 (uncache_image): Garbage the frame here (Bug#6426).
2864
d607b96b 28652010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 2866
d607b96b
SM
2867 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2868 parent is the root window. Check this after traversing window tree.
184765cc 2869
d607b96b 2870 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 2871
d607b96b 2872 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 2873
d607b96b
SM
2874 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2875 before traversing window tree (Bug#5721).
c2e124a9 2876
27f92be7
J
28772010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2878
66b16767
J
2879 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2880
25f38310
SM
2881 * xdisp.c (note_mode_line_or_margin_highlight):
2882 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 2883
a971c0a7
EZ
28842010-11-06 Eli Zaretskii <eliz@gnu.org>
2885
2886 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2887 adjust width of tool-tip frame to the width of text, excluding the
2888 stretch glyph at the beginning of R2L glyph rows.
2889
2890 * w32fns.c (Fx_show_tip): Likewise.
2891
80417b95
JD
28922010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2893
2894 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2895 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2896
28118eb6
EZ
28972010-11-05 Eli Zaretskii <eliz@gnu.org>
2898
c1fc2d3a 2899 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2900
2901 * term.c: Remove static mouse_face_* variables. All users
2902 changed.
2903 (term_show_mouse_face, term_clear_mouse_face)
2904 (fast_find_position, term_mouse_highlight): Functions deleted.
2905 (tty_draw_row_with_mouse_face): New function.
2906 (term_mouse_movement): Call note_mouse_highlight instead of
2907 term_mouse_highlight.
2908
bbf534ce
EZ
2909 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2910 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2911 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2912 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2913 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2914 Replace Display_Info with Mouse_HLInfo everywhere where
2915 mouse_face_* members were accessed for mouse highlight purposes.
2916
2917 * xterm.c (x_update_window_begin, x_update_window_end)
2918 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2919 (handle_one_xevent, x_free_frame_resources, x_term_init):
2920 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2921 members were accessed for mouse highlight purposes.
2922
2923 * w32term.c (x_update_window_begin, x_update_window_end)
2924 (x_update_end, w32_read_socket, x_free_frame_resources)
2925 (w32_initialize_display_info): Replace Display_Info with
2926 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2927 for mouse highlight purposes.
2928
2929 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2930 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2931 unless the frame is on a window-system.
c1fc2d3a 2932 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2933 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2934 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2935 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2936 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2937 Replace Display_Info with Mouse_HLInfo everywhere where
2938 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2939 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2940 HAVE_WINDOW_SYSTEM conditional.
2941 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2942 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2943 (try_window_id) [HAVE_GPM || MSDOS]:
2944 Call x_clear_window_mouse_face.
d009ae66 2945 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2946 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2947 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2948 calling draw_glyphs directly.
d009ae66
EZ
2949 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2950 (cursor_in_mouse_face_p, rows_from_pos_range)
2951 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2952 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2953 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2954 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2955 fragments.
2956 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2957 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2958 integer.
2959 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2960 (x_consider_frame_title, tool_bar_lines_needed):
2961 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2962 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2963 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2964 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2965 part.
d009ae66
EZ
2966
2967 * dispnew.c (mirror_make_current): Set Y coordinate of the
2968 mode-line and header-line rows.
c1fc2d3a
EZ
2969 (init_display): Setup initial frame's output_data for text
2970 terminal frames.
d009ae66 2971
c1fc2d3a
EZ
2972 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2973 its own definition on msdos.c.
d009ae66
EZ
2974
2975 * msdos.c (show_mouse_face, clear_mouse_face)
2976 (fast_find_position, IT_note_mode_line_highlight)
2977 (IT_note_mouse_highlight): Functions deleted.
2978 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2979 instead of IT_note_mouse_highlight.
2980 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2981 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2982 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2983 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2984 where mouse_face_* members were accessed for mouse highlight
2985 purposes.
2986
2987 * msdos.h (initialize_msdos_display): Add prototype.
2988
2989 * frame.h (MOUSE_HL_INFO): New macro.
2990
2991 * lisp.h (Mouse_HLInfo): New data type.
2992
2993 * xterm.h (struct x_display_info):
2994 * w32term.h (struct w32_display_info):
2995 * nsterm.h (struct ns_display_info):
2996 * termchar.h (struct tty_display_info): Use it instead of
2997 mouse_face_* members.
2998
2999 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3000 1st argument.
3001 (frame_to_window_pixel_xy, note_mouse_highlight)
3002 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3003 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3004 HAVE_WINDOW_SYSTEM conditional.
3005 (draw_row_with_mouse_face): Declare prototype.
3006 (tty_draw_row_with_mouse_face): Declare prototype.
3007
6e8d7c47
EZ
30082010-11-05 Eli Zaretskii <eliz@gnu.org>
3009
bba3e508
SM
3010 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3011 Remove unused variables.
6e8d7c47 3012
f31ba3f0
AR
30132010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3014
3015 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3016 logic pointed out by Eli Zaretskii.
3017
448e17d6
LMI
30182010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3019
0c3a9a9f
GM
3020 * coding.c (coding-category-list): Refer to set-coding-system-priority
3021 instead of the obsolete set-coding-priority in the doc string.
448e17d6 3022
3fdebbf9 30232010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 3024
2f8f196d 3025 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
3026 correct value.
3027 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3028 don't change the method signature, change the return.
3029
30302010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
3031
3032 * nsfont.m (nsfont_draw)
3033 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 3034 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 3035
17c0c952
JD
30362010-11-03 Julien Danjou <julien@danjou.info>
3037
3038 * image.c (gif_load): Add support for transparency and specified
3039 :background.
3040
b18fad6d
KH
30412010-11-01 Kenichi Handa <handa@m17n.org>
3042
3043 * dispextern.h (lookup_glyphless_char_display): Extern it.
3044
3045 * termhooks.h (struct terminal): New member charset_list.
3046
3047 * coding.c (Fset_terminal_coding_system_internal): Set the
3048 `charset_list' member of struct terminal.
3049
a8039db1 3050 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
3051 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3052
3053 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3054 (lookup_glyphless_char_display): Set it->what at the end.
3055 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3056 (last_glyphless_glyph_merged_face_id): Make them non-static.
3057
a8039db1
JB
3058 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3059 Fix the arg with_background for font->driver->draw.
65b6b59a 3060
a8039db1 30612010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 3062
a8039db1
JB
3063 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3064 Surround chp by parentheses.
0269bd90 3065
a8039db1 30662010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
3067
3068 Implement various display methods for glyphless characters.
3069
3070 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3071 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3072 (Qzero_width): New variables.
3073 (THIN_SPACE_WIDTH): New macro.
01c35094 3074 (lookup_glyphless_char_display): New function.
b2cca856
KH
3075 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3076 (last_glyphless_glyph_merged_face_id): New variables.
3077 (get_next_display_element): Check glyphless characters.
3078 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3079 last_glyphless_glyph_face_id.
3080 (fill_glyphless_glyph_string): New function.
3081 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3082 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3083 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3084 (x_produce_glyphs): If a suitable font is not found, produce a
3085 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3086 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3087 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3088 Qzero_width.
3089 (Vglyphless_char_display): Declare it as a Lisp variable.
3090
3091 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
3092 (struct glyph): Change the size of the member "type" to 3.
3093 Add glyphless to the union slice and u.
b2cca856
KH
3094 (enum display_element_type): Add IT_GLYPHLESS.
3095 (enum glyphless_display_method): New enum.
3096 (struct it): New member glyphless_method.
3097 (Vglyphless_char_display): Extern it.
3098
3099 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3100 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3101
a8039db1 3102 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
3103 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3104
3105 * nsterm.m (ns_draw_glyph_string): Handle the case
3106 GLYPHLESS_GLYPH (the detail is not yet implemented).
3107
c8c59954
GM
31082010-10-31 Glenn Morris <rgm@gnu.org>
3109
80696982
GM
3110 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3111
c8c59954
GM
3112 * frame.c (syms_of_frame) <tool-bar-mode>:
3113 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3114
46eadc7a
CY
31152010-10-31 Chong Yidong <cyd@stupidchicken.com>
3116
3117 * xterm.c (x_connection_closed): Print informative error message
3118 when aborting on GTK. This requires using shut_down_emacs
3119 directly instead of Fkill_emacs.
3120
ffe75e6b
EZ
31212010-10-29 Eli Zaretskii <eliz@gnu.org>
3122
3123 * emacs.c (main): Call syms_of_filelock unconditionally.
3124
3125 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3126 clause, but keep part of it conditioned on CLASH_DETECTION.
3127
9d794026
GM
31282010-10-29 Glenn Morris <rgm@gnu.org>
3129
4f4f2973
GM
3130 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3131 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3132 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3133 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3134 Sync docs between X, W32, NS.
3135
9d794026
GM
3136 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3137 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3138
d46f6bbb
JB
31392010-10-26 Juanma Barranquero <lekktu@gmail.com>
3140
3141 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3142 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3143
2e35f1a2
EZ
31442010-10-26 Eli Zaretskii <eliz@gnu.org>
3145
3146 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 3147 zero or negative. (Bug#7281)
2e35f1a2 3148
8daaeda6
J
31492010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3150
3151 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3152
6a5c2175
GM
31532010-10-25 Glenn Morris <rgm@gnu.org>
3154
3155 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3156
7c051dd8
GM
31572010-10-24 Glenn Morris <rgm@gnu.org>
3158
3159 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3160 (Fx_window_property, Fx_file_dialog):
3161 * xfns.c (Fx_synchronize, Fx_change_window_property)
3162 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3163
23c261f5
CY
31642010-10-24 Chong Yidong <cyd@stupidchicken.com>
3165
3166 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3167
d414c713 31682010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
3169
3170 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3171
3172 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3173 Deprecate use as a boolean flag.
3174
947f5e01
JM
31752010-10-24 Jim Meyering <jim@meyering.net>
3176
3177 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3178
65807d73
GM
31792010-10-24 Glenn Morris <rgm@gnu.org>
3180
f5f25615
GM
3181 * w16select.c (syms_of_win16select) <selection-coding-system>:
3182 <next-selection-coding-system>:
3183 * w32select.c (syms_of_w32select) <selection-coding-system>:
3184 <next-selection-coding-system>:
3646b86d
GM
3185 Sync docs with select.el.
3186
46710489
GM
3187 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3188 Lisp version.
3189
ea883883
GM
3190 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3191 Sync doc with the xterm.c version.
3192
65807d73
GM
3193 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3194 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3195
f3d87560
GM
31962010-10-23 Glenn Morris <rgm@gnu.org>
3197
66c6abf0 3198 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 3199 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 3200 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 3201 <hourglass-delay>: Sync docs with Lisp.
f3d87560 3202
7b7e2c18
EZ
32032010-10-23 Eli Zaretskii <eliz@gnu.org>
3204
d1d6801e 3205 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
3206
3207 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3208 (mouse_face_from_string_pos): New function, replaces
3209 fast_find_string_pos.
3210 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
3211 (note_mode_line_or_margin_highlight): Support bidi-reordered
3212 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
3213 (note_mouse_highlight): When bidi reordering is turned on in a
3214 buffer, call next-single-property-change and
ef1b0ba7
SM
3215 previous-single-property-change with last argument nil.
3216 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 3217 glyph that stands for no text beyond the line end.
1f382a02
EZ
3218 (row_containing_pos): Don't return too early when CHARPOS is in a
3219 bidi-reordered continued line. Return immediately when the first
3220 hit is found in a line that is not continued, or when an exact
3221 match for CHARPOS is found.
d1d6801e
EZ
3222 (rows_from_pos_range): New function.
3223 (mouse_face_from_buffer_pos): Use it instead of calling
3224 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3225 function to support mouse highlight in bidi-reordered lines and
3226 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3227 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3228 that the former is always above the latter or identical to it.
1554d88e 3229 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
3230 (coords_in_mouse_face_p): New function, bidi-aware.
3231 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3232 Call it instead of comparing with mouse-face members of dpyinfo.
3233 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3234 usage of hpos and vpos.
544bbc31 3235
dee186b6
J
32362010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3237
3238 * xrdb.c: Include keyboard.h for MOTIF.
3239
3240 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3241 MOTIF (Bug#7263).
3242
3243 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
3244 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3245 Make ANSI prototypes.
dee186b6 3246
5fb59edb
GM
32472010-10-22 Glenn Morris <rgm@gnu.org>
3248
3249 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3250 Remove ccl and duplicate mouse.
3251
8b78d5e3
CY
32522010-10-21 Chong Yidong <cyd@stupidchicken.com>
3253
3254 * insdel.c (prepare_to_modify_buffer): Don't set
3255 saved-region-selection if modification hooks are disabled.
3256
b8a47412
CY
32572010-10-19 Chong Yidong <cyd@stupidchicken.com>
3258
3259 * cmds.c (Fdelete_char): Doc fix.
3260
ca3fa302 32612010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
3262
3263 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3264
ca3fa302 32652010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
3266
3267 Fix incorrect font metrics when the same font is opened with
3268 different pixelsizes.
3269
3270 * xftfont.c: Include composite.h.
3271 (xftfont_shape): New function.
3272 (syms_of_xftfont): Set xftfont_driver.shape.
3273
c978536f
JD
32742010-10-18 Julien Danjou <julien@danjou.info>
3275
3276 * frame.c (Fframe_pointer_visible_p):
3277 Add `frame-pointer-visible-p' to get the pointer visibility.
3278
4b2d9ec2
LMI
32792010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3280
3281 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3282 non-"EAGAIN"-like error to signal to Emacs that the socket should
3283 be closed.
3284
9cf66cf2
EZ
32852010-10-15 Eli Zaretskii <eliz@gnu.org>
3286
c3911ead
EZ
3287 * unexcoff.c (make_hdr): Fix prototype according to changes in
3288 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3289
9cf66cf2
EZ
3290 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3291
be98da05
TH
32922010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3293
3294 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3295 made building the X menu fail.
cc98b256 3296 (really-oldXMenu): Fix my previous fix.
be98da05 3297
220d91b8 32982010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3299
3300 Fix handling of font properties on Windows (bug#6303).
3301 * font.c (font_filter_properties): New function, refactored from
3302 ftfont_filter_properties.
3303 * font.h (font_filter_properties): Declare.
3304 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3305 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3306 (w32font_filter_properties): New function.
3307 (w32font_driver): Add w32font_filter_properties.
3308
220d91b8 33092010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 3310
c0943d3d 3311 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
3312 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3313
24f981c9
JB
33142010-10-14 Juanma Barranquero <lekktu@gmail.com>
3315
3316 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3317 * w32font.c (w32_generic_family):
3318 * w32inevt.c (key_event):
3319 * w32menu.c (fill_in_menu):
3320 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3321 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3322 * w32term.c (w32_read_socket): Make static.
3323
850690cc
JB
33242010-10-13 Juanma Barranquero <lekktu@gmail.com>
3325
3326 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3327 prototypes; all callers changed.
3328
5e371708
JB
33292010-10-13 Juanma Barranquero <lekktu@gmail.com>
3330
3331 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3332 (OBJ2): New macro.
3333 (WIN32OBJ, FONTOBJ): Remove.
3334 (OBJ1): Redistribute object files with OBJ2.
3335 (LIBS, $(TEMACS)): Use TLIB2.
3336 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3337 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3338
2e288d54
JB
33392010-10-13 Juanma Barranquero <lekktu@gmail.com>
3340
3341 * emacs.c (Vdynamic_library_alist)
3342 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3343 Doc fix.
3344
3345 * lisp.h (Vdynamic_library_alist): Declare extern.
3346
3347 * image.c (Vimage_library_alist)
3348 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3349 (lookup_image_type): Use Vdynamic_library_alist.
3350 (Finit_image_library): Doc fix.
3351
aba1381b
DN
33522010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3353
3354 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3355 (lispdir): Remove trailing /, update all uses.
3356
4c14013d 33572010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
3358
3359 * nsterm.m (Qleft): Declare.
01c35094 3360 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
3361 (NSRightAlternateKeyMask): New define.
3362 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3363 ns_right_alternate_modifier isn't Qleft.
3364 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3365 as emacs modifier for NSRightAlternateKeyMask.
3366 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3367
355cdaf3
LMI
33682010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3369
3370 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3371 gnutls is ready, return EAGAIN as the errno.
3372
4c620157
DN
33732010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3374
edfd76ce
DN
3375 * vm-limit.c:
3376 * unexhp9k800.c:
3377 * unexelf.c:
3378 * unexaix.c:
3379 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3380
a4daeecf
DN
3381 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3382 (PROFILING_LDFLAGS): Remove, not needed anymore.
3383
01c35094 3384 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
3385 (CRT_DIR): Move near potential user.
3386 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 3387
4c620157
DN
3388 * sysdep.c (LPASS8): Remove, unused.
3389 (emacs_ospeed): Change from being a global to a local in the only
3390 user: init_baud_rate.
3391
b845653d
LMI
33922010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3393
3394 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 3395 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 3396 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 3397 gnutls_read. This allows us to actually read lots of data from
b845653d 3398 the GnuTLS stream.
2e6c74c5
LMI
3399 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3400 According to the documentation, this is correct, and it seems to
3401 make things work.
b845653d 3402
3625b3e2
CY
34032010-10-09 Chong Yidong <cyd@stupidchicken.com>
3404
3405 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3406
8b1c619f
MA
34072010-10-08 Michael Albinus <michael.albinus@gmx.de>
3408
3409 * keyboard.c: Revert last change; it was not intended to be
3410 synchronized with the trunk.
3411
93d50df8
KH
34122010-10-08 Kenichi Handa <handa@m17n.org>
3413
2b7c9342 3414 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3415
4628bef1 34162010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3417
3418 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3419 (Fdbus_init_bus): ... here. (Bug#7113)
3420
4628bef1 34212010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3422
3423 * buffer.c (before-change-functions, after-change-functions):
3424 Three-year overdue doc fix following 2007-08-13 change.
3425
4628bef1 34262010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3427
3428 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3429 eol-format, inherit from the system's default.
3430 (complement_process_encoding_system): Make a new coding system
3431 inherit the original eol-format.
3432
4628bef1 34332010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3434
3435 * coding.c (complement_process_encoding_system): New function.
3436
3437 * coding.h (complement_process_encoding_system): Extern it.
3438
3439 * callproc.c (Fcall_process): Complement the coding system for
3440 encoding arguments.
3441 (Fcall_process_region): Complement the coding system for encoding
3442 the input to the process.
3443
3444 * process.c (Fstart_process): Complement the coding system for
3445 encoding arguments.
3446 (send_process): Complement the coding system for encoding what
3447 sent to the process.
3448
4628bef1 34492010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3450
3451 * xfont.c (xfont_open): Fix setting of font->average_width from
3452 :avgwidth property (Bug#7123).
3453
4628bef1 34542010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3455
3456 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3457 is more portable.
3458
3459 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3460 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3461 has not defined SIGIO.
3462
389454fb
CY
34632010-10-08 Chong Yidong <cyd@stupidchicken.com>
3464
3465 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3466 draw the outermost line using the black relief, for legibility.
3467 Omit drawing the four corner pixels.
3468
51b403bd
CY
34692010-10-04 Chong Yidong <cyd@stupidchicken.com>
3470
3471 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3472 (read_key_sequence): Inline echo_prompt.
3473 (echo_dash): Add a dash only if key is continued (Bug#7137).
3474
3e6ae1a4
DN
34752010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3476
3477 Remove O_RDONLY, O_WRONLY definitions, not needed.
3478 * unexcoff.c:
3479 * lread.c:
3480 * fileio.c:
3481 * doc.c:
3482 * callproc.c:
3483 * alloc.c:
3484 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3485
c1ae068b
LMI
34862010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3487
3488 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3489
3490 * gnutls.c: Add property list symbol holders.
3491 (emacs_gnutls_handshake): Clarify how sockets are passed to
3492 GnuTLS.
3493 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3494 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3495 and keyfiles to be a list of file names. Default to "NORMAL" for
3496 the priority string. Improve logging.
3497
e2afe435
GM
34982010-10-03 Glenn Morris <rgm@gnu.org>
3499
3500 * fileio.c (Vdirectory_sep_char): Remove.
3501
dd5ecd6b
DN
35022010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3503
b5437a05
DN
3504 * termhooks.h: Remove #ifdef CONSP.
3505
4777478a
DN
3506 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3507
a3d5088d
DN
3508 Include <fcntl.h> unconditionally.
3509 * termcap.c:
3510 * sysdep.c:
3511 * lread.c:
3512 * keyboard.c:
3513 * filelock.c:
3514 * fileio.c:
3515 * doc.c:
3516 * callproc.c:
3517 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3518 does it.
3519
82719735
DN
3520 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3521
9de940b5
DN
3522 * sysdep.c (flush_pending_output): Remove code, does not do
3523 anything on any platform.
3524
57507bf8 3525 Remove unused code.
bba3e508
SM
3526 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3527 Remove select emulation, all systems support select.
57507bf8
DN
3528 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3529 * process.c (create_process): Remove #if 0 code.
3530
dd5ecd6b
DN
3531 Remove unused arguments for unexec.
3532 The third one is never used, and the last two are always passed as zero.
3533 * emacs.c (unexec): Add declaration.
3534 (Fdump_emacs): Only pass the first two arguments to unexec.
3535 Simplify #ifdef.
3536 * unexw32.c (unexec):
3537 * unexsol.c (unexec):
3538 * unexhp9k800.c (unexec):
3539 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3540 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3541 (find_section): Use const.
3542 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3543 (unexec_error): Declare it NO_RETURN.
3544 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3545 it as an argument, remove data_start and entry_address arguments, unused.
3546 (unexec): Remove bss_start, data_start and
3547 entry_address arguments.
3548 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3549 it as an argument, remove data_start and entry_address arguments, unused.
3550 (unexec): Remove bss_start, data_start and
3551 entry_address arguments.
3552
74f1829d
JB
35532010-10-03 Juanma Barranquero <lekktu@gmail.com>
3554
7f467e14
JB
3555 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3556
74f1829d
JB
3557 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3558 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3559 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3560 Fix typos in docstrings.
3561 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3562 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3563
6926550f
CY
35642010-10-03 Chong Yidong <cyd@stupidchicken.com>
3565
3566 * keyboard.c (command_loop_1): Make sure the mark is really alive
3567 before using it (Bug#7044).
3568
54b65f7b
JB
35692010-10-02 Juanma Barranquero <lekktu@gmail.com>
3570
3571 * makefile.w32-in (tags): Rename target to full-tags.
3572
383ebd15
EZ
35732010-10-02 Eli Zaretskii <eliz@gnu.org>
3574
3575 * emacs.c (main): Remove !WINDOWSNT conditional.
3576 (Fkill_emacs): Don't mention exemption on MS-Windows.
3577
9c524fcb
GM
35782010-10-02 Glenn Morris <rgm@gnu.org>
3579
3226d6ca
GM
3580 * character.c (Fchar_bytes): Remove obsolete function.
3581 (syms_of_character): Remove Schar_bytes.
3582
9c524fcb
GM
3583 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3584 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3585 in batch-mode.
3586 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3587 (kill-emacs-hook): Doc fix.
3588
1b217849
LMI
35892010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3590
3591 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 3592 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
3593 renamed to reflect that these are the libxml functions.
3594
54cc6a83
EZ
35952010-10-01 Eli Zaretskii <eliz@gnu.org>
3596
0ebf79de
EZ
3597 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3598 screen dimensions in tty->Wcm.
3599
54cc6a83
EZ
3600 * xdisp.c (set_cursor_from_row): When the row is truncated and
3601 point is outside the range of displayed characters, position the
3602 cursor inside the scroll margin. (Bug#6349)
3603
321401d1
DN
36042010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3605
4cacd822
DN
3606 Do not include stdlib.h and string.h, config.h does it.
3607 * xfont.c:
3608 * w32term.c:
3609 * w32reg.c:
3610 * w32inevt.c:
3611 * w32heap.c:
3612 * w32console.c:
3613 * w16select.c:
3614 * unexsol.c:
3615 * term.c:
3616 * sound.c:
3617 * scroll.c (m):
3618 * gtkutil.c:
3619 * font.c:
3620 * filelock.c:
3621 * fileio.c:
3622 * dosfns.c:
3623 * dbusbind.c:
3624 * bidi.c:
3625 * callproc.c:
3626 * process.c:
3627 * msdos.c:
3628 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3629
bba3e508
SM
3630 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3631 defines it.
0781e7ab 3632
9bf58201
DN
3633 * process.c: Move #include <pty.h> earlier.
3634 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3635 (pty_name): Move definition later.
3636
088dcc3e
DN
3637 * nsselect.m (syms_of_nsselect):
3638 * nsmenu.m (syms_of_nsmenu):
3639 * nsfns.m (syms_of_nsfns):
3640 * msdos.c (syms_of_msdos):
4cacd822 3641
088dcc3e
DN
3642 * image.c (syms_of_image):
3643 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
3644
321401d1
DN
3645 * point.h: Remove, unused.
3646
73077a9a
EZ
36472010-10-01 Eli Zaretskii <eliz@gnu.org>
3648
3649 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
3650 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
3651 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
3652
55e572ef
DN
36532010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3654
3655 * xml.c (parse_string): Use const.
3656
d4b6d95d
LMI
36572010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
3658
ef1b0ba7
SM
3659 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
3660 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
3661 the level to 8 to produce more useful backtraces for bug reports.
3662
e4b6db12
DN
36632010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3664
3665 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
3666
1becef93
JB
36672010-09-30 Juanma Barranquero <lekktu@gmail.com>
3668
3669 * w32console.c (vga_stdcolor_name): Remove unused function;
3670 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
3671
df7fcaff
LMI
36722010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
3673
bac5cef8
LMI
3674 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
3675 (Fgnutls_boot): Start the handshake.
3676 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
3677 (Fgnutls_boot): Remove some debugging messages.
3678 Change indentation throughout to use the Emacs style.
3679 (emacs_gnutls_handshake): Cast the fds to something that's
3680 possibly the expected length.
3681 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 3682
df7fcaff
LMI
3683 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
3684
3685 * process.c (make_process): Set the gnutls_p field to zero by
3686 default.
3687 (read_process_output): Always call the gnutls_read function if the
3688 stream is a gnutls stream.
3689 (send_process): Ditto for writes.
3690
3691 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
3692 or write anything until the state is GNUTLS_STAGE_READY.
3693 (Fgnutls_boot): Mark the stream as being a gnutls stream.
3694
d585695f
EZ
36952010-09-29 Eli Zaretskii <eliz@gnu.org>
3696
af7ef32d
EZ
3697 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
3698 NEUTRAL_DIR.
3699 (handle_invisible_prop, iterate_out_of_display_property)
3700 (next_element_from_buffer): If bidi_it.first_elt is set, call
3701 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
3702 (Bug#7128)
3703
d585695f
EZ
3704 * print.c (print_object): Fix format string and argument types for
3705 printing a Lisp_Misc_Marker.
3706
3707 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
3708 (load_overlay_strings, get_overlay_strings_1)
3709 (get_overlay_strings, forward_to_next_line_start)
3710 (back_to_previous_visible_line_start, reseat, reseat_to_string)
3711 (get_next_display_element, next_element_from_string)
3712 (next_element_from_c_string, next_element_from_buffer)
3713 (move_it_vertically_backward, move_it_by_lines, add_to_log)
3714 (message_dolog, message_log_check_duplicate, message2_nolog)
3715 (message3, message3_nolog, vmessage, set_message, set_message_1)
3716 (hscroll_window_tree, text_outside_line_unchanged_p)
3717 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
3718 (find_last_unchanged_at_beg_row)
3719 (find_first_unchanged_at_end_row, row_containing_pos)
3720 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
3721 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
3722 Use EMACS_INT for buffer and string positions.
d585695f
EZ
3723
3724 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
3725 (row_containing_pos): Adjust prototype.
3726
3727 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
3728 (message2_nolog, set_message): Adjust prototypes.
3729
a6f3211f
SM
37302010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3731
3732 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
3733 (Fgnutls_boot): Use SDATA.
3734 (Fgnutls_handshake): Remove unused var `max_log_level'.
3735
e0720500
MA
37362010-09-27 Michael Albinus <michael.albinus@gmx.de>
3737
11a5af7c 3738 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
3739 (Bug#7113)
3740
d8a4b27a
J
37412010-09-27 Jan Djärv <jan.h.d@swipnet.se>
3742
42d3022b
J
3743 * xgselect.c (xg_select): Clear file descriptors not set from
3744 rfds and wfds.
3745
d8a4b27a
J
3746 * process.c (wait_reading_process_output): Add missing FD_CLR
3747 for write_mask (must mirror connect_wait_mask).
3748
8ed70bf3
LMI
37492010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
3750
3751 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
3752 prefix.
3753 (Fgnutls_boot): Use changed process members. Use log level with a
3754 function parameter to set it. Bring back Emacs-level debugging
3755 messages at log level 1 and 2.
3756
3757 * process.c (make_process): Initialize gnutls_log_level.
3758
3759 * process.h: Add gnutls_log_level and rename x509_cred and
3760 anon_cred to have the gnutls_ prefix for consistency.
3761
3762 * gnutls.h (GNUTLS_LOG): Add convenience macro.
3763
bedf4aab
JB
37642010-09-27 Juanma Barranquero <lekktu@gmail.com>
3765
3766 * w32.c (g_b_init_get_sid_identifier_authority)
3767 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
3768 Remove, not used.
3769 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
3770 (init_winsock): Remove useless assignment.
3771 (open_process_token, get_token_information, lookup_account_sid)
3772 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
3773 (get_security_descriptor_owner, get_security_descriptor_group)
3774 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
3775 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
3776 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
3777 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
3778 (unc_volume_file_attributes, convert_from_time_t)
3779 (create_toolhelp32_snapshot, process32_first, process32_next)
3780 (open_thread_token, impersonate_self, revert_to_self)
3781 (get_process_memory_info, get_process_working_set_size)
3782 (global_memory_status, global_memory_status_ex, socket_to_fd)
3783 (shutdown_handler): Make static.
3784
08609ffd
MA
37852010-09-27 Michael Albinus <michael.albinus@gmx.de>
3786
3787 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
3788 (xd_pending_messages): Functions removed.
3789 (xd_read_queued_messages): Add parameters fd, *data, for_read in
3790 order to be compatible with add_read_fd. Determine bus from data,
3791 and call xd_read_message just for this bus.
3792 (xd_add_watch): Use xd_read_queued_messages as callback function.
3793 Add data.
3794
3795 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
3796
d2e9d0bb
LMI
37972010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
3798
ef1b0ba7 3799 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 3800 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 3801
4be9765d
KH
38022010-09-27 Kenichi Handa <handa@m17n.org>
3803
3804 These changes are to remove restriction on the number of glyphs in
3805 one composition.
3806
3807 * dispextern.h (struct glyph): Change the member "slice" to union.
3808 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 3809 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
3810
3811 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3812 instead of glyph->slice.
3813 (marginal_area_string): Likewise.
3814
3815 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3816 glyph->u.cmp.
3817 (append_composite_glyph): Likewise.
3818
3819 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3820 glyph->u.cmp.
3821 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3822 (append_composite_glyph): Likewise.
3823 (fill_image_glyph_string): Use glyph->slice.img instead of
3824 glyph->slice.
3825 (append_glyph, produce_image_glyph, append_stretch_glyph)
3826 (note_mouse_highlight): Likewise.
3827
3fad2ad2
J
38282010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3829
bf05eed6
J
3830 * process.c (add_keyboard_wait_descriptor)
3831 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
3832 (wait_reading_process_output): Don't pass write_mask to select
3833 if SELECT_CANT_DO_WRITE_MASK is defined.
3834 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 3835
3fad2ad2
J
3836 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3837 (delete_write_fd): Declare.
3838
3839 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3840 (write_mask): New variable.
ef1b0ba7 3841 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 3842 (fd_callback_info): New variable.
70e31436
JB
3843 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3844 New functions.
3fad2ad2
J
3845 (Fmake_network_process): FD_SET write_mask.
3846 (deactivate_process): FD_CLR write_mask.
3847 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
3848 check_connect removed. check_write is new. Remove references to gpm.
3849 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
3850 NON_BLOCKING_CONNECT) instead of Connecting.
3851 Loop over file descriptors and call callbacks in fd_callback_info
3852 if file descriptor is ready for I/O.
3853 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3854 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3855 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
3856 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3857 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
3858 (init_process): Initialize write_mask and fd_callback_info.
3859
3860 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3861
3862 * dbusbind.c: Include process.h.
3863 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3864 (xd_read_message_1): New functions.
70e31436
JB
3865 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3866 Handle watch for both read and write.
3fad2ad2
J
3867 (Fdbus_init_bus): Also register xd_toggle_watch.
3868 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3869 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3870 to dbus_connection_flush.
70e31436 3871 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
3872 Call xd_read_message_1 until status is COMPLETE.
3873
dce4c2ac
DN
38742010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3875
3876 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
3877 (init_tty): Reorder code to reduce the number of #ifdefs.
3878 No code changes.
dce4c2ac 3879
8af55556
TZ
38802010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3881
3882 * process.h: Set up GnuTLS support.
3883
3884 * process.c (make_process, Fstart_process)
3885 (read_process_output, send_process): Set up GnuTLS support for
3886 process input/output file descriptors.
3887
3888 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3889
3890 * gnutls.c: The source code for GnuTLS support in Emacs.
3891
3892 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3893
3894 * config.in: Set up GnuTLS support.
3895
3896 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3897 (obj, LIBES): Set up GnuTLS support.
3898
83e245c4
JB
38992010-09-26 Juanma Barranquero <lekktu@gmail.com>
3900
3901 * w32.c (get_emacs_configuration_options): Fix previous change.
3902
d24ec09a
CY
39032010-09-25 Chong Yidong <cyd@stupidchicken.com>
3904
3905 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3906 alive before using it (Bug#6977).
3907
b7bdc47c
LMI
39082010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3909
a952d5f3
LMI
3910 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3911
3912 * dispextern.h: EMACS_INT/int fixup.
3913
3914 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3915 fixup.
3916
b7bdc47c
LMI
3917 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3918
41118bd3
EZ
39192010-09-25 Eli Zaretskii <eliz@gnu.org>
3920
2452438f
EZ
3921 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3922 (Fselect_window, window_scroll_pixel_based)
3923 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3924 Use EMACS_INT for buffer positions.
3925
3926 * textprop.c (validate_interval_range, interval_of)
3927 (property_change_between_p, Fadd_text_properties)
3928 (set_text_properties_1, Fremove_text_properties)
3929 (Fremove_list_of_text_properties, Ftext_property_any)
3930 (Ftext_property_not_all, copy_text_properties)
3931 (text_property_list, extend_property_ranges)
3932 (verify_interval_modification): Use EMACS_INT for buffer
3933 positions.
3934
f877c546
EZ
3935 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3936 for buffer positions.
3937
3938 * process.c (read_process_output, send_process)
3939 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3940 and string positions and size.
3941
da43f021
EZ
3942 * print.c (print_object, print_string, strout): Use EMACS_INT for
3943 string indices.
3944
3945 * minibuf.c (string_to_object): Use EMACS_INT for string position
3946 and size.
3947
3948 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3949
3950 * lread.c <read_from_string_index, read_from_string_index_byte>
3951 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3952 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3953 buffer positions and string length.
3954
41118bd3
EZ
3955 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3956 EMACS_INT.
3957 (echo_truncate, adjust_point_for_property, read_char)
3958 (gen_help_event, make_lispy_event, modify_event_symbol)
3959 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3960 for buffer positions and string length.
3961
3962 * keyboard.h (gen_help_event): Adjust prototype.
3963
3964 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3965
3966 * commands.h <last_point_position>: Declare EMACS_INT.
3967
3968 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3969 (truncate_echo_area): Accept EMACS_INT argument.
3970
3971 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3972
3973 * lisp.h (truncate_echo_area): Adjust prototype.
3974
3975 * composite.c (composition_adjust_point): Return EMACS_INT.
3976
3977 * composite.h (composition_adjust_point): Adjust prototype.
3978
ba3033ee
JB
39792010-09-25 Juanma Barranquero <lekktu@gmail.com>
3980
3981 * process.c (Fmake_network_process): When arg :host is 'local,
3982 use address 127.0.0.1, not name "localhost". (Bug#6781)
3983
4f3a2f8d
EZ
39842010-09-24 Eli Zaretskii <eliz@gnu.org>
3985
5816888b
EZ
3986 * indent.c (Fcurrent_indentation, indented_beyond_p)
3987 (compute_motion): Use EMACS_INT for buffer position variables.
3988
3989 * lisp.h (indented_beyond_p): Adjust prototype.
3990
3991 * buffer.c (overlay_strings): Return EMACS_INT.
3992
3993 * buffer.h (overlay_strings): Adjust prototype.
3994
3995 * region-cache.c (pp_cache): Adjust format to arguments.
3996
3997 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3998 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3999 (verror): Use EMACS_INT for size of allocated buffer.
4000
ace1712c
EZ
4001 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4002 positions.
4003
4004 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
4005 (set_cursor_from_row, find_first_unchanged_at_end_row):
4006 Use EMACS_INT for buffer positions.
ace1712c 4007
f5276b75 4008 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
4009
4010 * dispnew.c (increment_matrix_positions)
4011 (increment_row_positions, copy_glyph_row_contents)
4012 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4013 positions.
4014
4015 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
4016 (increment_matrix_positions, increment_row_positions):
4017 Adjust prototypes.
ace1712c
EZ
4018
4019 * data.c (Faref, Faset): Use EMACS_INT for string length and
4020 positions.
4021
4022 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4023 characters to insert.
4024
4025 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4026 position and size.
4027
4f3a2f8d
EZ
4028 * syntax.c (scan_words, update_syntax_table)
4029 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
4030 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4031 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
4032
4033 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4034
4035 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4036 positions.
4037
db063399
LMI
40382010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4039
f0812d35
LMI
4040 * scroll.c (calculate_scrolling, line_ins_del)
4041 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4042 conversion.
4043
f5c7fc27
LMI
4044 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4045 (region_cache_backward, region_cache_forward)
4046 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4047 conversion.
4048
db063399
LMI
4049 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4050
4051 * eval.c (verror): Fix EMACS_INT/int conversion.
4052
07914cd0 4053 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
4054 (print_preprocess, print_check_string_charset_prop)
4055 (print_object): Fix EMACS_INT/int conversion.
4056
4057 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4058
e6d4aefa
EZ
40592010-09-24 Eli Zaretskii <eliz@gnu.org>
4060
69481da7
EZ
4061 * callproc.c (Fcall_process): Use EMACS_INT for count of
4062 characters read from the subprocess.
4063
61bfec98
EZ
4064 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4065 positions.
4066 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4067 positions.
4068
145582a0
EZ
4069 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4070 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4071 length.
4072 (advance_to_char_boundary, Fset_buffer_multibyte)
4073 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4074 (overlay_touches_p, record_overlay_string, overlay_strings)
4075 (recenter_overlay_lists, fix_start_end_in_overlays)
4076 (modify_overlay, Fmove_overlay, report_overlay_modification)
4077 (evaporate_overlays): Use EMACS_INT for buffer positions.
4078
bba3e508
SM
4079 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4080 Adjust prototypes.
145582a0 4081
446470a9
EZ
4082 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4083 positions.
4084
e6d4aefa
EZ
4085 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4086 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4087 (Fsubstring_no_properties, substring_both, Ffillarray)
4088 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4089 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4090 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4091 (Fmd5): Use EMACS_INT for buffer and string positions and length
4092 variables and arguments.
4093
4094 * lisp.h (substring_both): Adjust prototype.
4095
eb652396
JB
40962010-09-24 Juanma Barranquero <lekktu@gmail.com>
4097
4098 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4099 * w32fns.c (clipboard_sequence_fn): Don't declare.
4100 (globals_of_w32fns): Don't initialize it.
4101
266a86bd 41022010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
4103
4104 * syntax.c (back_comment): Detect the case where a 1-char comment
4105 starter is also the 2nd char of a 2-char comment ender.
4106
266a86bd 41072010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
4108
4109 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4110
40283062
LMI
41112010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4112
db063399
LMI
4113 * eval.c (verror): EMACS_INT/int cleanup.
4114
faf8b5bc
LMI
4115 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4116 unwind_protect more than 2GB worth of functions.
4117
4118 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4119
40283062
LMI
4120 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4121 string and avoid compiler warnings.
4122 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4123 all users.
4124
4125 * lread.c (oblookup): EMACS_INT/int cleanup.
4126
4127 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4128
fe3537c3
EZ
41292010-09-23 Eli Zaretskii <eliz@gnu.org>
4130
4131 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4132
4133 * lisp.h (clip_to_bounds): Adjust prototype.
4134
4135 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4136
0350982f
LMI
41372010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4138
84c9ce05
LMI
4139 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4140
4141 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4142
4143 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4144 cleanup.
4145
0350982f
LMI
4146 * lisp.h: Change the definition of all marker.c functions that
4147 take and return buffer stuff to be EMACS_INT instead of int.
4148
4149 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4150 (buf_charpos_to_bytepos, bytepos_to_charpos)
4151 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4152 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4153 for all buffer positions.
4154
c50bd0d2
CY
41552010-09-23 Chong Yidong <cyd@stupidchicken.com>
4156
4157 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4158 (split_interval_right, find_interval, next_interval)
4159 (delete_node, delete_interval, interval_deletion_adjustment)
4160 (adjust_intervals_for_deletion, merge_interval_right)
4161 (merge_interval_left, graft_intervals_into_buffer)
4162 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4163
4164 * intervals.h (traverse_intervals): Update prototype.
4165
14162469
EZ
41662010-09-23 Eli Zaretskii <eliz@gnu.org>
4167
c098fdb8
EZ
4168 * indent.c (compute_motion): Use EMACS_INT for arguments to
4169 region_cache_forward.
4170
bba3e508
SM
4171 * region-cache.c (struct boundary, struct region_cache):
4172 Use EMACS_INT for positions.
c098fdb8
EZ
4173 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4174 (delete_cache_boundaries, set_cache_region)
4175 (invalidate_region_cache, know_region_cache)
bba3e508
SM
4176 (region_cache_forward, region_cache_backward, pp_cache):
4177 Use EMACS_INT for buffer positions.
c098fdb8
EZ
4178
4179 * region-cache.h (know_region_cache, invalidate_region_cache)
4180 (region_cache_forward, region_cache_backward): Adjust prototypes.
4181
4182 * search.c (string_match_1, fast_c_string_match_ignore_case)
4183 (looking_at_1, scan_buffer, scan_newline)
4184 (find_next_newline_no_quit, find_before_next_newline)
4185 (search_command, trivial_regexp_p, search_buffer, simple_search)
4186 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4187 and string positions and length.
4188
caefdbe7
EZ
4189 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4190 (find_before_next_newline): Adjust prototypes.
c098fdb8 4191
29cdc13e
EZ
4192 * editfns.c (transpose_markers, update_buffer_properties)
4193 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4194 (get_pos_property, Fconstrain_to_field)
4195 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4196 (Fchar_after, Fchar_before, Finsert_char)
4197 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
4198 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4199 Use EMACS_INT for buffer and string position variables.
c098fdb8 4200 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
4201
4202 * lisp.h (clip_to_bounds): Adjust prototype.
4203
e79123aa
EZ
4204 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4205 (balance_an_interval, split_interval_right, split_interval_left)
4206 (find_interval, next_interval, update_interval)
4207 (adjust_intervals_for_insertion, delete_node, delete_interval)
4208 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4209 (offset_intervals, merge_interval_right, merge_interval_left)
4210 (graft_intervals_into_buffer, adjust_for_invis_intang)
4211 (move_if_not_intangible, get_local_map, copy_intervals)
4212 (copy_intervals_to_string, compare_string_intervals)
4213 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 4214 and for interval tree size.
e79123aa
EZ
4215
4216 * intervals.h (traverse_intervals, split_interval_right)
4217 (split_interval_left, find_interval, offset_intervals)
4218 (graft_intervals_into_buffer, copy_intervals)
4219 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4220 (update_interval): Adjust prototypes.
4221
579c18d0
EZ
4222 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4223 Use EMACS_INT for buffer position variables and arguments.
4224
4225 * composite.c (get_composition_id, find_composition)
4226 (run_composition_function, compose_text)
4227 (composition_gstring_width, autocmp_chars)
4228 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4229 for buffer positions and string length variables and arguments.
4230
4231 * composite.h (get_composition_id, find_composition, compose_text)
4232 (composition_gstring_width): Adjust prototypes.
4233
4234 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4235
bba3e508
SM
4236 * xdisp.c (store_mode_line_noprop, display_mode_element):
4237 Use EMACS_INT for string positions.
579c18d0
EZ
4238
4239 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4240 position arguments.
4241
4242 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
4243
4244 * character.c (parse_str_as_multibyte, str_as_multibyte)
4245 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 4246 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
4247 (strwidth, lisp_string_width, multibyte_chars_in_text):
4248 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4249
4250 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 4251 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
4252 (c_string_width, strwidth, lisp_string_width):
4253 Adjust prototypes.
14162469 4254
579c18d0
EZ
4255 * font.c (font_intern_prop): Use EMACS_INT for string length
4256 variables.
4257
4258 * font.c (font_intern_prop): Use EMACS_INT for string length
4259 variables.
4260
14162469
EZ
4261 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4262 variables.
4263
4264 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4265 (Fmake_string): Protect against too large strings.
4266 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4267 (live_misc_p): Use ptrdiff_t instead of int for pointer
4268 differences.
4269 (string_bytes, check_sblock, check_string_free_list)
4270 (allocate_string_data, compact_small_strings, Fmake_string)
4271 (Fmake_bool_vector, make_string, make_unibyte_string)
4272 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4273 (make_specified_string_string, Fmake_list, Fmake_vector):
4274 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4275 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4276 (Fpurecopy): Use EMACS_INT for string size.
4277 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4278 for vector size.
4279
4280 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4281 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4282 (make_pure_string, string_bytes, check_point_in_composition):
4283 Adjust prototypes.
14162469 4284
c8a66ab8
EZ
42852010-09-22 Eli Zaretskii <eliz@gnu.org>
4286
4287 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4288 (check_translation): Use EMACS_INT for buffer positions and
4289 length.
4290
4291 * undo.c (record_marker_adjustment, record_delete)
4292 (record_change, record_point, record_insert)
4293 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4294 buffer positions.
4295
4296 * lisp.h (record_marker_adjustment, record_delete)
4297 (record_change, record_point, record_insert)
4298 (record_property_change, Fprimitive_undo): Adjust prototypes.
4299
38c54d9d
JB
43002010-09-22 Juanma Barranquero <lekktu@gmail.com>
4301 Eli Zaretskii <eliz@gnu.org>
4302
4303 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4304
413d18e7
EZ
43052010-09-22 Eli Zaretskii <eliz@gnu.org>
4306
4307 * minibuf.c (Fminibuffer_contents)
4308 (Fminibuffer_contents_no_properties)
4309 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4310 positions.
4311
4312 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4313 mark.
4314
4315 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4316 (allocate_string_data): Accept EMACS_INT for string length.
4317
4318 * editfns.c (Ffield_string, Ffield_string_no_properties)
4319 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4320 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4321 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4322 (Ffield_end): Use EMACS_INT for buffer positions.
4323
4324 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4325 point with mark.
4326
4327 * lisp.h (allocate_string_data, make_uninit_string)
4328 (make_uninit_multibyte_string, make_buffer_string)
4329 (make_buffer_string_both): Adjust prototypes.
4330
4b9832a6
CY
43312010-09-22 Chong Yidong <cyd@stupidchicken.com>
4332
4333 * xml.c: Switch to GNU indentation.
4334 (make_dom): Change parse tree format to match xml.el.
4335 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4336 (Fxml_parse_string_internal): Rename from xml-parse-string.
4337
86282aab
KH
43382010-09-22 Kenichi Handa <handa@m17n.org>
4339
4340 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4341 only if we are not at a composition.
4342 (set_iterator_to_next): Give it->end_charpos to
4343 composition_compute_stop_pos.
4344 (set_iterator_to_next, next_element_from_buffer): Likewise.
4345
4346 * dispnew.c (buffer_posn_from_coords): Fix position when the
4347 current display element is a grapheme cluster in bidi-reordered
4348 region.
4349
840b985a
AR
43502010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4351
4352 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4353 the regions may overlap.
4354
5bc88f4b
JB
43552010-09-21 Juanma Barranquero <lekktu@gmail.com>
4356
4357 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4358
92bc9a36
DN
43592010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4360
d19e096e
DN
4361 * emacs.c: Do not include sys/ioctl.h, not needed.
4362
92bc9a36
DN
4363 * doprnt.c: Do not include stdlib.h, config.h does it.
4364 Move #include before macro definition.
4365
15f844ac
DN
43662010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4367
48e24408
DN
4368 * Makefile.in (temacs): Link using $(CC) not $(LD).
4369 (LD_FIRSTFLAG): Define using autoconf.
4370 (LD): Remove.
4371
65539506
DN
4372 Remove HAVE_TERMIOS definitions.
4373 * s/usg5-4-common.h (HAVE_TERMIOS):
4374 * s/template.h (HAVE_TERMIOS):
4375 * s/gnu-linux.h (HAVE_TERMIOS):
4376 * s/darwin.h (HAVE_TERMIOS):
4377 * s/cygwin.h (HAVE_TERMIOS):
4378 * s/bsd-common.h (HAVE_TERMIOS):
4379 * s/aix4-2.h (HAVE_TERMIOS):
4380 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4381 defined on all non-MS platforms.
4382 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4383
15f844ac
DN
4384 * xterm.c (xt_action_hook): Use const.
4385
7d701334
JB
43862010-09-20 Juanma Barranquero <lekktu@gmail.com>
4387
4388 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4389 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4390 (gethostname) [!HAVE_SOCKETS]: Remove.
4391 (SOCK_REPLACE_HANDLE): Remove macro.
4392 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4393 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4394 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4395 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4396
f3ec267a
EZ
43972010-09-18 Eli Zaretskii <eliz@gnu.org>
4398
4399 * deps.mk (xml.o): Add dependencies.
4400
93acd23d
JB
4401 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4402 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4403
4404 * bidi.c (bidi_paragraph_init): Accept an additional argument
4405 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4406 search back until a paragraph with a strong directional character
4407 is found, and use that to determine paragraph's base direction.
4408
4409 * dispextern.h (bidi_paragraph_init): Update prototype.
4410
69e847be
EZ
44112010-09-17 Eli Zaretskii <eliz@gnu.org>
4412
4413 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4414 of w32api >= 3.15. (Bug#6989)
4415
283357a7
LMI
44162010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4417
4418 * process.c (wait_reading_process_output): Don't message about
4419 accept-process-output unless the time limit really is zero.
4420
4ddb20d6
SM
44212010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4422
4423 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4424 int/Lisp_Object mixup).
4425
e24ad6dd
J
44262010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4427
4428 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4429 not HELP.
4430
fb0cf781
J
44312010-09-17 Stephen Berman <stephen.berman@gmx.net>
4432
4433 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4434 bar's pixel width to Lisp (Bug#7048).
4435
4ddb20d6
SM
44362010-09-14 Juanma Barranquero <lekktu@gmail.com>
4437
4438 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4439
318a04c6
J
44402010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4441
4442 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4443 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4444
78a21772
KH
44452010-09-17 Kenichi Handa <handa@m17n.org>
4446
4447 * ftfont.c (ftfont_check_otf): Fix previous change.
4448
fa3f6039
KH
44492010-09-14 Kenichi Handa <handa@m17n.org>
4450
4451 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4452 existence of GSUB or GPOS.
4453
2b5491fa
JB
44542010-09-14 Juanma Barranquero <lekktu@gmail.com>
4455
4456 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4457
c97c655f
LMI
44582010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4459
ef1b0ba7 4460 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4461 what it does.
4462 (parse_string): Return nil when the document can't be parsed.
4463
6664fc59 44642010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4465
4466 * xterm.c (get_current_vm_state): New function.
4467 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4468 want_fullscreen so set_wm_state calls are few (Bug#7013).
4469 (x_handle_net_wm_state): Move code to get_current_vm_state and
4470 call that function.
4471
6664fc59 44722010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4473
4474 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4475
6664fc59 44762010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4477
4478 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4479 we may use designation or locking-shift.
4480
6664fc59 44812010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4482
4483 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4484 sequence when the source is multibyte.
4485
1da70e99
AS
44862010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4487
6664fc59
JB
4488 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4489 Don't make first argument optional. Doc fix.
1da70e99 4490
26632d8d
LMI
44912010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4492
4493 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4494 parameters for the doc string.
4495
21fa8e37
LMI
44962010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4497
4498 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4499
5616cc54
SM
45002010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4501
4502 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4503 (syms_of_fns): Don't defsubr Sy_or_n_p.
4504 * lisp.h: Don't declare Fy_or_n_p.
4505 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4506
381408e2
LMI
45072010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4508
4509 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4510
45112010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4512
4513 * xml.c: New file.
4514 (Fhtml_parse_buffer): New function to interface to the libxml2
4515 html parsing function.
4516
733946e7
JB
45172010-09-05 Juanma Barranquero <lekktu@gmail.com>
4518
4519 * biditype.h: Regenerate.
4520
7574650a
AS
45212010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4522
4523 * nsimage.m (ns_load_image): Check argument types.
4524
4525 * image.c: Remove all uses of gcpro.
4526 (xpm_load): Check all lisp types.
4527 (pbm_load): Likewise.
4528 (png_load): Likewise.
4529 (jpeg_load): Likewise.
4530 (tiff_load): Likewise.
4531 (gif_load): Likewise.
4532 (imagemagick_load_image): Likewise.
4533 (imagemagick_load): Likewise.
4534 (svg_load): Likewise.
4535 (gs_load): Likewise.
4536
6e6b8e25
EZ
45372010-09-04 Eli Zaretskii <eliz@gnu.org>
4538
bba3e508
SM
4539 * w32uniscribe.c (uniscribe_shape): Update commentary.
4540 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
4541 hold them in the logical order.
4542 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4543 return glyph codes in the logical order.
4544
dbfe4532
AS
45452010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4546
4547 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 4548 (imagemagick_load_image): Fix type mismatch.
5e5992c2 4549 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 4550
6d7cc563
JD
45512010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4552
4553 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4554
4555 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4556
4557 * xselect.c: Remove declaration of cut-buffer objects and functions.
4558 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4559 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4560 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4561 (Fx_rotate_cut_buffers_internal): Remove.
4562 (syms_of_xselect): Remove defsubr of above.
4563 Remove intern of QCUT_BUFFERn.
4564
8f4e9110
SM
45652010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4566
4567 * cmds.c (Vblink_paren_function): Remove.
4568 (internal_self_insert): Make it insert N chars at a time.
4569 Don't call blink-paren-function.
4570 (Fself_insert_command): Adjust accordingly.
4571 (syms_of_cmds): Don't declare blink-paren-function.
4572
d419e1d9
KH
45732010-08-31 Kenichi Handa <handa@m17n.org>
4574
4575 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4576 characters.
4577
4578 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
4579 (produce_glyphs): Don't set it->char_to_display here.
4580 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
4581 (produce_special_glyphs): Set temp_it.char_to_display before
4582 calling produce_glyphs.
4583
4584 * xdisp.c (get_next_display_element): Set it->char_to_display
4585 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4586 characters.
4587 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4588 calling PRODUCE_GLYPHS.
4589 (append_space_for_newline): Save and store it->char_to_display.
4590 Set it->char_to_display before calling PRODUCE_GLYPHS.
4591 (extend_face_to_end_of_line): Set it->char_to_display before
4592 calling PRODUCE_GLYPHS.
4593 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4594 character to its byte value.
4595 (get_char_glyph_code): New function.
4596 (produce_stretch_glyph): Set it2.char_to_display too before
4597 calling x_produce_glyphs.
4598 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
4599 non-ASCII characters. Don't set it->char_to_display here.
4600 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 4601 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 4602
b819f760
SM
46032010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4604
4605 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4606
07fa68a7
CY
46072010-08-31 Chong Yidong <cyd@stupidchicken.com>
4608
4609 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4610
cd196f12
SM
46112010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4612
4613 * marker.c (Fcopy_marker): Make the first arg optional.
4614
49a752bb
KH
46152010-08-30 Kenichi Handa <handa@m17n.org>
4616
4617 * composite.c (composition_update_it): Fix computing of
4618 cmp_it->width.
4619
769ae9e1
KH
46202010-08-29 Kenichi Handa <handa@m17n.org>
4621
9e69cb05 4622 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 4623 corresponding bytes.
9e69cb05 4624
4520b858
J
46252010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4626
4627 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4628
fe50eb41
KH
46292010-08-26 Kenichi Handa <handa@m17n.org>
4630
4631 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4632 on calling composition_compute_stop_pos.
4633
f6aa6ec6
KH
46342010-08-25 Kenichi Handa <handa@m17n.org>
4635
9dfdbc0a
KH
4636 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4637 :otf.
4638
f6aa6ec6
KH
4639 * composite.c (composition_compute_stop_pos): Don't break
4640 composition at PT.
4641 (composition_reseat_it): Likewise. Fix calculation of character
4642 position starting a composition.
4643 (Fcomposition_get_gstring): Don't limit the number of components
4644 for automatic composition.
4645
ff94e32c
KH
46462010-08-25 Kenichi Handa <handa@m17n.org>
4647
4648 * composite.c (composition_compute_stop_pos): In forward search,
4649 pay attention to the possibility that some character after ENDPOS
4650 will be composed with charactrs before ENDPOS.
4651
1c409d0b
CY
46522010-08-24 Chong Yidong <cyd@stupidchicken.com>
4653
4654 * keyboard.c (command_loop_1): Don't clobber primary selection
4655 during handle-switch-frame (Bug#6872).
4656
0c372655
MA
46572010-08-23 Michael Albinus <michael.albinus@gmx.de>
4658
4659 * dbusbind.c: Accept UNIX domain sockets as bus address.
4660 (Fdbus_close_bus): New function.
4661 (Vdbus_registered_buses): New variable.
4662 (xd_initialize): Implement string as bus address.
4663 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
4664 (Fdbus_get_unique_name, Fdbus_call_method)
4665 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4666 (Fdbus_method_error_internal, Fdbus_send_signal)
4667 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
4668 check. This is done in xd_initialize_bus. Adapt doc string, if
4669 necessary.
4670 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
4671 Vdbus_registered_buses.
4672 (Vdbus_registered_objects_table): Create hash.
4673
7133b7ee
JL
46742010-08-22 Juri Linkov <juri@jurta.org>
4675
4676 * keyboard.c (Fexecute_extended_command): Move reading a command name
4677 with `completing-read' to a new Elisp function `read-extended-command'.
4678 Call it to read a command to `function' (bug#5364, bug#5214).
4679
198a7a97
CY
46802010-08-22 Chong Yidong <cyd@stupidchicken.com>
4681
4682 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
4683
b0126eac 46842010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
4685
4686 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
4687 instead of SAFE_ALLOCA.
4688
b0126eac 46892010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
4690
4691 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
4692 (Bug#6214).
4693
b0126eac 46942010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
4695
4696 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
4697
b0126eac
CY
46982010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4699
4700 * doc.c (Fsnarf_documentation): Initialize skip_file before
4701 build-files test.
4702
692f3ddc 47032010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 4704
692f3ddc
JB
4705 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
4706 New definitions.
b0126eac
CY
4707 (HAVE_TERMIO): Remove.
4708
5f2f0bc1
EZ
47092010-08-22 Eli Zaretskii <eliz@gnu.org>
4710
b613941b
EZ
4711 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4712
a583bbef
EZ
4713 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
4714 for w32.
4715
4716 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
4717 it's done in nt/config.nt.
4718
4719 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
4720
5f2f0bc1
EZ
4721 * unexcoff.c (report_error, make_hdr, write_segment)
4722 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
4723 Convert argument lists and prototypes to ANSI C.
4724 (make_hdr, write_segment): Remove unused variables.
4725 (unexec): Remove commented-out line. Initialize `new' to shut up
4726 compiler warnings.
4727
a7ebc409
DN
47282010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
4729
4730 Simplify termio code.
4731 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
4732 HAVE_TERMIO code is obsolete.
4733 Replace HAVE_TERMIOS conditionals with !DOS_NT.
4734 * systty.h: Do not define HAVE_TCATTR.
4735 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
4736 Do not define EMACS_HAVE_TTY_PGRP. Only define
4737 EMACS_GET_TTY_PGRP for !DOS_NT.
4738 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
4739 sys/ioctl.h and termios.h, systty.h does it.
4740 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
4741 (init_baud_rate): Remove HAVE_TERMIO code.
4742 (child_setup_tty): Remove HAVE_TERMIO code.
4743 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
4744 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
4745 (new_ltchars, new_tchars): Remove, unused.
4746 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
4747 code. Remove special casing for __mips__, it was a no-op.
4748 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
4749 (init_sys_modes): Remove HPUX special case.
4750 * process.c: Include stdlib.h unconditionally. Do not include
4751 fcntl.h, systty.h does it. Remove conditional code for
4752 HAVE_SERIAL, it is always true.
4753 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
4754 always true when SIGNALS_VIA_CHARACTERS is true.
4755 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
4756 !WINDOWSNT means HAVE_TERMIOS.
4757 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
4758 conditional, which is true for all HAVE_TERMIOS systems.
4759 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
4760 instead of HAVE_TERMIOS.
4761 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
4762 EMACS_HAVE_TTY_PGRP.
4763 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
4764 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
4765 anyway.
4766
914f049b 47672010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
4768
4769 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
4770 mirroring pixel positions.
4771
d931da8c
DN
47722010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
4773
b5c76d0c
DN
4774 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
4775 write only.
4776 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
4777 malloc_sbrk_used, nothing uses them.
4778
74815588
DN
4779 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
4780 defined, unconditionally defined in lisp.h.
4781
f5817d1c
DN
4782 * term.c: Do not include <termios.h>, systty.h does it.
4783
d931da8c
DN
4784 * s/unixware.h (HAVE_TCATTR):
4785 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
4786 systty.h defines it when HAVE_TERMIOS is defined.
4787
ff2de6d2 47882010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 4789
b43c883c 4790 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 4791 terminals: add one-character offset for R2L lines.
b43c883c 4792
491a1546
EZ
4793 * emacs.c <emacs_version>: Add a comment regarding
4794 msdos/mainmake.v2's dependency on the syntax of this declaration.
4795
2396cbba
EZ
47962010-08-20 Eli Zaretskii <eliz@gnu.org>
4797
4798 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
4799 position for R2L lines by mirroring the pixel position wrt the
4800 text are box. Improve commentary.
4801
7df6150a
AS
48022010-08-20 Andreas Schwab <schwab@linux-m68k.org>
4803
4804 * image.c (imagemagick_clear_image): Remove debugging output.
4805
a2e5caf7
SM
48062010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4807
4808 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
4809 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
4810 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
4811 self-insert-face.
4812 (syms_of_cmds): Initialize the new vars.
4813
20d60baf
JR
48142010-08-19 Jason Rumney <jasonr@gnu.org>
4815
cc477da7
JR
4816 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4817
20d60baf
JR
4818 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4819
2c0ac867
J
48202010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4821
4822 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4823
93352106
EZ
48242010-08-18 Eli Zaretskii <eliz@gnu.org>
4825
4826 * xterm.c (x_draw_bar_cursor):
4827 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4828 R2L, draw the bar cursor on its right rather than on its left.
4829
c785836d
SM
48302010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4831
0193499f
SM
4832 * eval.c (Fdefmacro): Only obey one declaration.
4833
c785836d
SM
4834 * casefiddle.c (casify_region): Setup gl_state.
4835
9cb728a5
J
48362010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4837
4838 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4839
e1e18511
J
48402010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4841
1d77b63e 4842 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 4843
64cb6c78
J
48442010-08-18 David De La Harpe Golden <david@harpegolden.net>
4845
4846 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4847 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4848 QPRIMARY => NXPrimaryPboard.
4849 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4850 NXPrimaryPboard => QPRIMARY.
4851 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4852 NXSecondaryPboard = SecondarySelection.
4853 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4854
0c9b8993
GM
48552010-08-18 Joakim Verona <joakim@verona.se>
4856
4857 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4858 defined:
4859 (imagemagick_image_p): New function to test for ImageMagic image.
4860 (imagemagick_load): New function to load ImageMagick image.
4861 (imagemagick_load_image): New function, helper for imagemagick_load.
4862 (imagemagick-types): New function.
4863 (Qimagemagick): New Lisp_object.
4864 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 4865
c3554f68
SM
48662010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4867
4868 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4869 is a string.
4870
1ff2e434
J
48712010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4872
4873 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4874 x_set_tool_bar_position handler.
4875
0cc56427
EZ
48762010-08-17 Eli Zaretskii <eliz@gnu.org>
4877
4878 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4879 x_set_tool_bar_position handler, needed to support changes from
4880 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4881
e45a249b
JD
48822010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4883
2f8f196d 4884 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 4885 declaration (Bug#6863).
573d150b 4886 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 4887
e45a249b
JD
4888 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4889
4890 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4891
7c23dd44
CY
48922010-08-16 Chong Yidong <cyd@stupidchicken.com>
4893
4894 * keyboard.c (command_loop_1): Avoid setting selection twice,
4895 since it's done in deactivate-mark as well.
4896 (Vselect_active_regions): Change default to t. Replace `lazy'
4897 with non-default value `only', meaning only set PRIMARY for
4898 temporarily active regions.
4899
4900 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4901 select-active-regions.
4902
0005830c
J
49032010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4904
4905 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4906 isn't a string.
4907
603dfc72
AS
49082010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4909
4910 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4911
c25ce9d0
J
49122010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4913
c3554f68
SM
4914 * keyboard.c (parse_tool_bar_item): malloc buf.
4915 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4916 new_lbl (Bug#6855).
c25ce9d0 4917
5872c762
EZ
49182010-08-14 Eli Zaretskii <eliz@gnu.org>
4919
b236615c
EZ
4920 * xterm.c (x_draw_stretch_glyph_string):
4921 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4922 the cursor on the right edge of the stretch glyph.
4923
c3554f68
SM
4924 * xdisp.c (window_box_right_offset, window_box_right):
4925 Fix commentary.
b236615c 4926
5872c762
EZ
4927 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4928 direction when point is inside a run of whitespace characters.
4929
4930 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4931
e66f9a1b
JR
49322010-08-14 Jason Rumney <jasonr@gnu.org>
4933
4934 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4935
79d6f59e
CY
49362010-08-14 Chong Yidong <cyd@stupidchicken.com>
4937
4938 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4939
1c9b4129
JR
49402010-08-13 Jason Rumney <jasonr@gnu.org>
4941
4942 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4943 (MessageBoxW_Proc): New function typedef.
4944 (unicode-message-box): New function pointer.
2f8f196d 4945 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 4946
2b4e6277
J
49472010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4948
4949 * frame.h (Qtool_bar_position): Declare.
4950
4951 * xfns.c (Fx_create_frame): Call x_default_parameter for
4952 Qtool_bar_position.
4953
94c97d85
EZ
49542010-08-13 Eli Zaretskii <eliz@gnu.org>
4955
8ee81892
EZ
4956 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4957 (report_error, report_error_1): Ditto.
4958 (write_segment): Remove "#if 0" unused code.
4959 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4960 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4961 (start_of_text): Remove unused function (was used only if NO_REMAP
4962 was NOT defined).
4963
891ef8f7
EZ
4964 * msdos.c (IT_set_face): Fix format string to match argument
4965 types.
4966 (IT_write_glyphs, IT_note_mode_line_highlight)
4967 (IT_set_frame_parameters): Remove unused variables.
4968 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4969 (IT_set_terminal_modes): Disambiguate expression in if clause.
4970 (Fmsdos_remember_default_colors): Return Qnil.
4971 (IT_set_frame_parameters): Add parens to disambiguate boolean
4972 expression for logging the cursor type to termscript.
4973 (keyboard_layout_list, keypad_translate_map)
4974 (grey_key_translate_map): Add braces in inner initializers.
4975 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4976 (dos_rawgetc): Remove unused label.
4977 (XMenuActivate): Add braces to remove ambiguous `else'.
4978 (dos_ttraw): Always return a value.
4979 (spawnve): Declare.
4980 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4981
4982 * dosfns.h (x_set_title): Declare.
4983
4984 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4985 Remove unused variables.
4986
4987 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4988 variables.
4989 (init_dosfns): Declare get_lim_data.
4990 (system_process_attributes): Declare Fget_internal_run_time.
4991
38e41e0e
EZ
4992 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4993 list to be consistent with menu.h.
4994
94c97d85
EZ
4995 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4996 warnings due to mixing of "char *" and "const char *".
4997
c5683ceb
SM
49982010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4999
5000 Introduce a new comment style "c" flag.
5001 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5002 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5003 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5004 (syntax_prefix_flag_p): New function.
5005 (Fstring_to_syntax): Understand new "c" flag.
5006 (Finternal_describe_syntax_value): Recognize new flag; use the
5007 SYNTAX_FLAGS_* macros.
5008 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5009 comment style to accomodate the new styles.
5010 (back_comment, forw_comment, Fforward_comment, scan_lists)
5011 (scan_sexps_forward): Update code to obey the new comment style flag.
5012
5013 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5014
5015 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5016
7aee76f4
J
50172010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5018
3a46642b
J
5019 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5020 first.
94dff98f 5021 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
5022
5023 * gtkutil.h (xg_check_special_colors): Declare.
5024
5025 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5026 (xg_create_frame_widgets): Connect theme name changes to
5027 style_changed_cb.
5028
42ca4633
J
5029 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5030 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5031 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 5032 string literal. file is const char*.
42ca4633
J
5033
5034 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5035 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5036 props. Free them at the end.
5037
5038 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5039
c5683ceb
SM
5040 * xrdb.c (get_system_app): Make path const and use char *p for
5041 non-const char.
42ca4633
J
5042
5043 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 5044 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
5045 char *.
5046 (button_names): Is const char *.
5047 (xdialog_show): error_name and pane_string is const.
5048
5049 * process.h (synch_process_death): Is const char*.
5050
5051 * w32menu.c (w32_menu_show):
5052 * nsmenu.m (ns_menu_show): error parameter is const char **.
5053
5054 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5055 is const char **.
5056
5057 * menu.c (Fx_popup_menu): error_name is const.
5058
5059 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5060 with unsigned char and XtPointer with void *.
5061
5062 * gtkutil.h: Replace widget_value with struct _widget_value.
5063 (enum button_type, struct _widget_value): Remove and use the one from
5064 keyboard.h.
5065
5066 * gtkutil.c (get_utf8_string): Always return an allocated string.
5067 Parameter is const.
5068 (create_dialog, xg_create_one_menuitem, create_menus)
5069 (xg_item_label_same_p, xg_update_menu_item): Free result from
5070 get_utf8_string.
5071 (xg_separator_p, xg_item_label_same_p): label is const.
5072
5073 * font.h (font_open_by_name): Make name const.
5074
5075 * font.c (font_open_by_name): Make name const.
5076
5077 * floatfns.c (matherr): Use a const char* variable for x->name.
5078
5079 * emacs.c (main): Pass char[] to putenv instead of literal.
5080
5081 * callproc.c (synch_process_death): Make const.
5082 (Fcall_process): Make signame const.
5083
9c5bd55a
J
5084 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5085 (addDisplayItemWithImage): Use const char*.
5086
5087 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5088 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5089
5090 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5091
5092 * keyboard.h (_widget_value): name, value and key are const char*.
5093
7aee76f4
J
5094 * unexmacosx.c (unexec_error): Use const char *.
5095
09d93395
DN
50962010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5097
5098 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5099 (font_parse_name, font_open_by_name):
09d93395 5100 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5101 (font_parse_name, font_open_by_name): Remove const.
09d93395 5102
671d409f
AS
51032010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5104
5105 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5106 definition.
5107
5108 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5109 * m/amdx86-64.h: Likewise.
5110 * m/arm.h: Likewise.
5111 * m/hp800.h: Likewise.
5112 * m/ia64.h: Likewise.
5113 * m/ibmrs6000.h: Likewise.
5114 * m/ibms390.h: Likewise.
5115 * m/intel386.h: Likewise.
5116 * m/iris4d.h: Likewise.
5117 * m/m68k.h: Likewise.
5118 * m/macppc.h: Likewise.
5119 * m/mips.h: Likewise.
5120 * m/sh3.h: Likewise.
5121 * m/sparc.h: Likewise.
5122 * m/template.h: Likewise.
5123 * m/vax.h: Likewise.
5124 * m/xtensa.h: Likewise.
5125 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5126 WORDS_BIG_ENDIAN.
5127 * lisp.h: Likewise.
5128 * md5.c: Likewise.
5129 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5130
8ea90aa3
DN
51312010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5132
5133 Use const char* instead of char*.
5134 Reduce the number of warnings with -Wwrite-strings.
5135 * xrdb.c (get_environ_db, get_system_name):
5136 * unexelf.c (find_section):
5137 * term.c (string_cost, string_cost_one_line, per_line_cost)
5138 (get_named_tty, init_tty):
5139 * sysdep.c (sys_subshell):
5140 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5141 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5142 * search.c (Freplace_match):
5143 * process.c (Fmake_network_process, send_process, init_process):
5144 * lread.c (Fload, init_lread):
5145 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5146 * keyboard.c (parse_tool_bar_item, struct event_head):
5147 * gtkutil.h (xg_get_font_name):
5148 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5149 (make_widget_for_menu_item, make_menu_item, create_menus)
5150 (xg_make_tool_item):
5151 * font.c (parse_matrix, font_parse_name):
5152 * floatfns.c (rounding_driver, float_error_fn_name):
5153 * filelock.c (get_boot_time_1, lock_file_1):
5154 * fileio.c (barf_or_query_if_file_exists, check_writable):
5155 * editfns.c (get_system_name, get_operating_system_release)
5156 (Fencode_time, Fset_time_zone_rule):
5157 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5158 * buffer.c (defvar_per_buffer): Use const.
5159
7815fe19 51602010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 5161
692f3ddc 5162 * charset.c: Include <stdlib.h>.
7a84eee5
KH
5163 (struct charset_sort_data): New struct.
5164 (charset_compare): New function.
692f3ddc 5165 (Fsort_charsets): New function.
7a84eee5
KH
5166 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5167
5168 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5169 number in CTEXT extended segment.
5170
7815fe19 51712010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
5172
5173 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5174 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5175
7815fe19 51762010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
5177
5178 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5179 (Fhash_table_size): Fix typos in docstrings.
5180 (Fmake_hash_table): Doc fix.
5181
7815fe19 51822010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
5183
5184 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5185 Doc fix (bug#5625).
5186
7815fe19 51872010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
5188
5189 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5190 the MSDOS definition.
5191
1b6d8cf0
DN
51922010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5193
675e2c69
DN
5194 Use const char* instead of char*.
5195 * xterm.c (x_create_toolkit_scroll_bar):
5196 * xfont.c (xfont_list_pattern):
5197 * xfns.c (x_default_scroll_bar_color_parameter)
5198 (xic_create_fontsetname, x_default_font_parameter)
5199 (x_screen_planes):
5200 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5201 (store_mode_line_string, decode_mode_spec, display_string):
5202 * menu.c (digest_single_submenu):
5203 * keymap.h (initial_define_key, initial_define_lispy_key):
5204 * keymap.c (initial_define_key, initial_define_lispy_key):
5205 * image.c (image_error, image_keyword):
5206 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5207 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5208 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5209 (ftfont_list, ftfont_match):
5210 * frame.c (frame_parm_table):
5211 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5212 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5213 (font_add_log, font_deferred_log):
5214 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5215 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5216 (font_add_log, font_deferred_log):
5217 * emacs.c (argmatch):
5218 * dispextern.h (struct it):
5219 * coding.c (ENCODE_DESIGNATION):
5220 * charset.c (define_charset_internal): Use const.
5221
25717ca1
DN
5222 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5223
c5683ceb
SM
5224 * xrdb.c: Remove include guard.
5225 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
5226 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5227 realloc->xrealloc instead of using #defines.
5228
efb41e21
EZ
52292010-08-08 Eli Zaretskii <eliz@gnu.org>
5230
cd21226d 5231 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
5232 * editfns.c (Fline_beginning_position, Fline_end_position):
5233 State in the doc strings that start and end of line are in the
5234 logical order.
cd21226d 5235
efb41e21
EZ
5236 * xdisp.c (display_line): Move the handling of overlay arrow after
5237 the call to find_row_edges. (Bug#6699)
5238
746812d9
CY
52392010-08-07 Chong Yidong <cyd@stupidchicken.com>
5240
5241 * keyboard.c (command_loop_1):
5242 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5243
9852377f
CY
52442010-08-07 Chong Yidong <cyd@stupidchicken.com>
5245
5246 * insdel.c (prepare_to_modify_buffer): Save active region text to
5247 Vsaved_region_selection.
5248
5249 * xselect.c (QPRIMARY): Move to keyboard.c.
5250
5251 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
5252 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5253 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 5254
0e9c8657
JB
52552010-08-07 Juanma Barranquero <lekktu@gmail.com>
5256
5257 * alloc.c (lisp_malloc):
5258 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5259 * charset.h (emacs_mule_charset):
5260 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5261 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5262 (bitch_at_user):
5263 * lisp.h (Fcheck_coding_system, Fget_text_property)
5264 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5265 Remove duplicate declarations.
5266
648801d1
DN
52672010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5268
32bc6709
DN
5269 * process.c: Simplify include logic.
5270
3ef1d108
DN
5271 * keyboard.h (quit_char): Add declaration.
5272 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5273 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5274 Add declarations.
3ef1d108
DN
5275 * sysdep.c:
5276 * w32.c: Remove the above declarations.
5277
97ec208f
DN
5278 Remove extern declarations in .c files, .h files have them.
5279 * xterm.c:
5280 * xdisp.c:
97ec208f
DN
5281 * msdos.c:
5282 * image.c:
5283 * gtkutil.c:
5284 * fileio.c:
5285 * eval.c: Remove declarations.
5286
94eed851
DN
5287 * frame.c (frame_params): Make const.
5288
36e053eb
DN
5289 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5290
0e843971
DN
5291 * emacs.c (emacs_copyright, emacs_version): Make static.
5292 (Vinitial_window_system, Vauto_save_list_file_name)
5293 (Vinhibit_redisplay): Remove declarations.
5294 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5295 for AIX.
5296
648801d1
DN
5297 Use const for some arrays and functions.
5298 * xterm.h (xg_set_icon_from_xpm_data):
5299 * xfns.c (xg_set_icon_from_xpm_data):
5300 * term.c (fkeys):
5301 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5302 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5303 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5304 (frame.c frame_parms):
5305 * emacs-icon.h (gnu_xpm_bits):
5306 * callint.c (callint_argfuns): Use const.
5307
8646d999
J
53082010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5309
5310 * sysdep.c: Move include term.h last of includes (Bug#6812).
5311
cb4545ad
EZ
53122010-08-06 Eli Zaretskii <eliz@gnu.org>
5313
5314 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5315
5316 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5317
5318 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5319
da7e2be6
JB
53202010-08-06 Juanma Barranquero <lekktu@gmail.com>
5321
5322 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5323
3d608a86
J
53242010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5325
7908fb60
J
5326 * xterm.h (x_get_focus_frame): Declare.
5327
5328 * keyboard.h (poll_for_input_1): Unconditionally declare.
5329
4094bf36
J
5330 * nsterm.h (x_set_menu_bar_lines): Declare.
5331
5332 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5333
3d608a86
J
5334 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5335
5336 * window.c: Include menu.h.
5337
5338 * unexmacosx.c (print_region_list, print_regions)
5339 (build_region_list, find_emacs_zone_regions)
5340 (unexec_regions_merge, read_load_commands, dump_it)
5341 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5342
5343 * term.c: Check HAVE_SYS_IOCTL_H.
5344
686b968e 5345 * sysdep.c: Check HAVE_TERM_H.
3d608a86 5346
686b968e 5347 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
5348
5349 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5350 (ns_ring_bell, ns_defined_color, hide_hourglass)
5351 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5352 Convert to ANSI C prototypes.
5353 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5354 before code.
5355
5356 * nsterm.h : Include sysselect.h.
5357 (x_sync, x_get_focus_frame, x_set_mouse_position)
5358 (x_set_mouse_pixel_position, x_make_frame_visible)
5359 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5360 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5361 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5362 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 5363 Declare.
3d608a86
J
5364
5365 * nsmenu.m (popup_activated, name_is_separator)
5366 (syms_of_nsmenu): Convert to ANSI C prototypes.
5367 (runMenuAt): Prototypes and move declarations before code.
5368
5369 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5370
5371 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5372 prototypes.
5373
5374 * nsfns.m (have_menus_p, ns_display_info_for_name)
5375 (x_set_cursor_type, ns_appkit_version_str)
5376 (ns_appkit_version_int, ns_do_applescript)
5377 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5378 (syms_of_nsfns): Convert to ANSI C prototypes.
5379
5380 * menu.h (x_set_menu_bar_line): Declare.
5381 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5382
5383 * lisp.h (fmod_float): Declare.
5384
5385 * image.c (xpm_scan, xpm_make_color_table_v)
5386 (xpm_put_color_table_v, xpm_get_color_table_v)
5387 (xpm_make_color_table_h, xpm_put_color_table_h)
5388 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5389 (xpm_load): Convert to ANSI C prototypes.
5390
5391 * emacs.c: Include nsterm.h if HAVE_NS.
5392
5393 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5394
fce70521
DN
53952010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5396
5397 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5398 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5399 (socket_options): Use const char* for name.
5400
a11889ab
JB
54012010-08-06 Juanma Barranquero <lekktu@gmail.com>
5402
5403 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5404
5405 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5406 Don't declare xmalloc_widget_value and digest_single_submenu.
5407
5408 * w32font.c (Qlatin): Remove declaration.
5409
5410 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5411
c95b508f 5412 * dired.c (compile_pattern): Restore declaration.
a11889ab 5413
6254cdda
DN
54142010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5415
04bab72c
DN
5416 Remove extern declarations in .c files, .h files have them.
5417 * data.c:
5418 * dired.c:
5419 * editfns.c:
5420 * filelock.c:
5421 * fns.c:
5422 * font.c:
5423 * fontset.c:
5424 * frame.c:
5425 * fringe.c:
5426 * ftfont.c:
5427 * gtkutil.c:
5428 * indent.c:
5429 * keyboard.c:
5430 * keymap.c:
5431 * lread.c:
5432 * menu.c:
5433 * print.c:
5434 * search.c:
5435 * sound.c:
5436 * window.c:
5437 * xdisp.c:
5438 * xfaces.c:
5439 * xfns.c:
5440 * xfont.c:
5441 * xftfont.c:
5442 * xmenu.c:
5443 * xterm.c: Remove declarations.
5444
dff94ed5
DN
5445 Cleanup syssignal.h.
5446 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5447 (main_thread): Move down to remove #ifdef.
5448 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5449 Remove conditional definition following unconditional ones.
5450
99f3388e
DN
5451 * lisp.h: Remove HAVE_SHM code, unused.
5452 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5453 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5454 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5455 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5456 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5457 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5458 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5459 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5460 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5461 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5462 (Qwindow_scroll_functions, Vafter_load_alist)
5463 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5464 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5465 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5466 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5467 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5468 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5469 (initial_argv, last_nonmenu_event, load_in_progress)
5470 (noninteractive_need_newline, scroll_margin): Add declarations.
5471
bba3e508
SM
5472 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5473 Remove declarations, menu.h has them.
99f3388e
DN
5474 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5475 (Vinput_method_function, Qinput_method_function)
5476 (Qevent_symbol_element_mask, last_event_timestamp):
5477 * dispextern.h (Voverflow_newline_into_fringe):
5478 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5479 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5480 (syms_of_w32font, syms_of_nsfont):
5481 * fontset.h (find_font_encoding, Qlatin):
5482 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5483 (Vtool_bar_mode, set_frame_menubar):
5484 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5485 * xterm.h (Qx_gtk_map_stock):
5486 * keymap.h (meta_prefix_char): Add declarations.
5487
9f5dd6f2
DN
5488 * term.c: Remove dead code.
5489
6254cdda
DN
5490 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5491 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5492 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5493 which is what was there before BSD_PGRPS was removed.
5494
29cf3e20
EZ
54952010-08-05 Eli Zaretskii <eliz@gnu.org>
5496
5497 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5498
5499 * unexcoff.c: Renamed from unexec.c.
5500
aaa0a19a
SM
55012010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5502
5503 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5504
8d1d9587
JB
55052010-08-03 Johan Bockgård <bojohan@gnu.org>
5506
5507 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5508 (Bug#6744)
8d1d9587 5509
9a747ba6
JD
55102010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5511
4d464ae4
JD
5512 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5513 to TRUE if depth of screen is < 16.
5514
ac01763e
JD
5515 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5516 USE_GTK_TOOLTIP.
e0d62a9b
JB
5517 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5518 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5519 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5520 USE_GTK_TOOLTIP.
5521 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5522
5523 * xterm.h (USE_GTK_TOOLTIP): New define.
5524 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5525
9a747ba6
JD
5526 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5527 to Control-D (Bug#6771).
5528
7b0815ba
JB
55292010-08-02 Juanma Barranquero <lekktu@gmail.com>
5530
5531 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5532 Wording by Drew Adams <drew.adams@oracle.com>.
5533
aa1859f5
J
55342010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5535
5536 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5537 ttip_lbl.
5538
5539 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5540 calling gtk_widget_queue_draw.
5541 (x_free_frame_resources): Call xg_free_frame_widgets.
5542
5543 * xfns.c (x_gtk_use_system_tooltips): New variable.
5544 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5545 new gtkutil tooltip functions to show the tooltip.
5546 (Fx_hide_tip): Call xg_hide_tooltip.
5547 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5548
5549 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5550 (xg_show_tooltip, xg_hide_tooltip): Declare.
5551
5552 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
5553 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5554 New functions.
aa1859f5
J
5555 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5556 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5557 Remove code that is commented out.
5558
76417ef4
SM
55592010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5560
5561 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5562
16041401
CY
55632010-07-31 Chong Yidong <cyd@stupidchicken.com>
5564
5565 * xselect.c (x_own_selection): Use list4.
5566
2c09a58f
DN
55672010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5568
5569 * buffer.c (Qwindow): Do not define, already defined in data.c.
5570 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5571
59df9fdd 55722010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 5573
59df9fdd
JB
5574 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5575 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5576 * config.in: Undef HAVE_DIRENT_H.
1c97e857 5577 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 5578 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 5579
1b231651
DN
55802010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5581
5582 Rename s/usg5-4.h -> s/usg5-4-common.h.
5583 * s/usg5-4.h: Rename file to ...
5584 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5585 * s/unixware.h:
5586 * s/sol2-6.h:
5587 * s/irix6-5.h: Update includes accordingly.
5588
bfeabdc3
JD
55892010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5590
2ebf1083
J
5591 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5592
bfeabdc3 5593 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
5594 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5595 Remove toolbar_height.
5596 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
5597 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5598 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5599 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5600
5601 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5602
5603 * xfns.c (x_set_tool_bar_position): New function.
5604 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5605 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 5606 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
5607
5608 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5609 and FRAME_TOOLBAR_LEFT_WIDTH.
5610
5611 * gtkutil.h (xg_change_toolbar_position): Declare.
5612
5613 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5614 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5615 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5616 (xg_create_frame_widgets): Create a hobox for placing widgets
5617 vertically. Use gtk_box_pack_start.
ef1b0ba7 5618 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
5619 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5620 (xg_update_frame_menubar, free_frame_menubar): Change to
5621 xg_height_or_width_changed.
5622 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5623 size correctly. Remove hardcoded 4, instead use handlebox size -
5624 toolbar size.
5625 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 5626 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
5627 (xg_pack_tool_bar): POS is a new parameter.
5628 Set orientation of tool bar based on pos.
5629 Only make handlebox_widget if NULL.
5630 Check if tool bar goes to vbox or hbox depending on pos.
5631 (xg_update_tool_bar_sizes): New function.
686b968e 5632 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
5633 height, call xg_update_tool_bar_sizes instead.
5634 (free_frame_tool_bar): Remove from hbox or vbox depending on
5635 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5636 (xg_change_toolbar_position): New function.
5637
5638 * frame.h (struct frame): Add tool_bar_position.
5639 (Qbottom): Declare.
5640
5641 * frame.c (Qtool_bar_position): New variable.
5642 (make_frame): Set tool_bar_position to Qtop.
5643 (frame_parms): Add tool-bar-position.
5644 (x_report_frame_params): Store tool_bar_position.
5645 (x_set_fringe_width): Reset wm size hint after fringe changes.
5646
26469a38
DN
56472010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5648
5649 Make lisp_time_argument declaration work on all systems.
5650 * lisp.h (lisp_time_argument): Move declaration ...
5651 * systime.h (lisp_time_argument): ... here
5652 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
5653
8848b728
JD
56542010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5655
5656 * vm-limit.c (POINTER): Add typedef for it.
5657 (start_of_data): Change return type from POINTER to char *.
5658
5659 * frame.h (Qtty_color_mode): Move declaration out of ifdef
5660 HAVE_WINDOW_SYSTEM.
5661
76fd1ee9
DN
56622010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5663
0441987e
DN
5664 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
5665 Remove reference to __osf__, unused.
5666
56a000c7
DN
5667 * mem-limits.h: Remove duplicated includes.
5668 (NULL): Remove definition, unused.
5669 (POINTER): Remove definition.
5670 (start_of_data): Use char* in prototype, as the function
5671 definition does.
5672
e6cba650
DN
5673 Remove extern declarations from .c files, and them to .h files.
5674 * keyboard.h (Qhelp_echo, waiting_for_input)
5675 (input_available_clear_time, ignore_mouse_drag_p)
5676 (Vdouble_click_time, real_this_command, Vthis_original_command):
5677 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
5678 (Voverriding_local_map_menu_flag):
5679 * lisp.h (Qinteractive_form, use_file_dialog)
5680 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
5681 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
5682 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5683 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
5684 (Qfunction, debug_on_next_call, Qfield)
5685 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
5686 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
5687 (Qfile_directory_p, Qinsert_file_contents)
5688 (Qcompletion_ignore_case, Qcompletion_ignore_case)
5689 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
5690 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
5691 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
5692 (Qminibuffer_prompt)
5693 (Vtemporary_file_directory,char_ins_del_vector, Qface):
5694 * xterm.h (gray_bitmap_width, gray_bitmap_height)
5695 (gray_bitmap_bits, xic_create_fontsetname):
5696 * coding.h (Vtranslation_table_for_input): Add extern declarations.
5697
5698 * xsmfns.c (Vuser_login_name):
5699 * xrdb.c (Vdouble_click_time):
5700 * xfaces.c (xic_create_fontsetname):
5701 * w32select.c (waiting_for_input):
5702 * print.c (minibuffer_auto_raise):
5703 * msdos.c (Qhelp_echo):
5704 * macros.c (real_this_command):
5705 * keymap.c (Voverriding_local_map):
5706 * xterm.c (poll_for_input_1, gray_bitmap_width)
5707 (gray_bitmap_height, gray_bitmap_bits;
5708 * xmenu.c ( Voverriding_local_map)
5709 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
5710 (use_file_dialog, Xt_app_con):
5711 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
5712 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
5713 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
5714 (Qtool_bar_lines, ignore_mouse_drag_p):
5715 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
5716 (Qrear_nonsticky, nconc2):
5717 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
5718 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
5719 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
5720 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
5721 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
5722 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
5723 (gc_in_progress):
5724 * doc.c (Voverriding_local_map, Qremap):
5725 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
5726 (Vcompletion_regexp_list):
5727 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
5728 (Qcompletion_ignore_case):
5729 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
5730 (Vhistory_length, Vthis_original_command, real_this_command)
5731 (Qface, Qminibuffer_prompt, history_delete_duplicates):
5732 * image.c (Qrisky_local_variable):
5733 * fontset.c (QCname):
5734 * fns.c (minibuffer_auto_raise, QCname):
5735 * dispnew.c (char_ins_del_cost):
5736 * composite.c (font_fill_lglyph_metrics):
5737 * cmds.c (Qface, Vtranslation_table_for_input):
5738 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
5739 * ccl.c (charset_unicode):
5740 * callproc.c (Vtemporary_file_directory):
5741 * buffer.c (emacs_strerror): Remove extern declarations.
5742
5743 * data.c (Qwindow): Make non-static, used from other files too.
5744 * frame.c (validate_x_resource_name): Remove shadow definition for i.
5745
76fd1ee9
DN
5746 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
5747 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5748 * s/usg5-4.h (COFF):
5749 * s/template.h:
5750 * s/msdos.h (COFF, NO_REMAP):
5751 * s/ms-w32.h (NO_REMAP):
5752 * s/hpux10-20.h (NO_REMAP):
5753 * m/sparc.h (SEGMENT_MASK):
5754 * m/m68k.h (NO_REMAP):
5755 * m/intel386.h (SEGMENT_MASK):
5756 * m/arm.h (NO_REMAP):
5757 * m/alpha.h (COFF):
5758 * m/template.h: Remove references to unused defines.
5759
8a52f00a
JD
57602010-07-28 Jan Djärv <jan.h.d@swipnet.se>
5761
5762 * xsettings.c (Ftool_bar_get_system_style): Also check for
5763 Qtext_image_horiz.
5764
5765 * xdisp.c (Qtext_image_horiz): Define.
5766 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 5767 to documentation of tool-bar-style.
8a52f00a
JD
5768
5769 * lisp.h (Qtext_image_horiz): Declare.
5770
5771 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
5772 style text_image_horiz.
5773
89dc303e
DN
57742010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5775
60799703
DN
5776 * emacs.c (Fkill_emacs): Remove return statement.
5777
37254dc1
DN
5778 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
5779 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
5780 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
5781 Remove local extern declarations.
37254dc1 5782
71c7345a
DN
5783 * xmenu.c: Do not included lwlib.h, not needed.
5784
6ba577cb
DN
5785 * m/iris4d.h (XUINT, XSET): Remove, not needed.
5786
fdb183d6
DN
5787 * process.c: Move definitions earlier to minimize #ifdefs.
5788
5789 * xterm.h (x_get_customization_string, x_load_resources)
5790 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
5791 (x_check_errors, x_property_data_to_lisp, defined_color)
5792 (xic_set_xfontset, x_defined_color): Use const.
5793
5794 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
5795 (x_text_icon, x_check_errors, x_connection_closed): Use const.
5796
5797 * xselect.c (selection_data_to_lisp_data)
5798 (x_property_data_to_lisp):
5799 * xrdb.c (x_get_string_resource, file_p)
5800 (x_get_customization_string, magic_file_p, search_magic_path)
5801 (get_system_app, get_user_app, x_load_resources, x_get_resource)
5802 (x_get_string_resource): Use const.
5803
5804 * xfns.c: Include xlwmenu.h when USE_LUCID.
5805 (x_defined_color, xic_set_xfontset): Use const.
5806 (Fx_hide_tip): Remove local extern declaration.
5807
5808 * xfaces.c (Qmouse_face): Remove declaration.
5809 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 5810 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
5811
5812 * xdisp.c (do_mouse_tracking): Remove declaration.
5813 (add_to_log): Use const.
5814
5815 * minibuf.c (Qmouse_face): Remove declaration.
5816
5817 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5818
5819 * keyboard.h (do_mouse_tracking): Add declaration.
5820
5821 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5822 (QCdata, QCtype, Qcenter): Remove declarations.
5823
5824 * frame.c (x_get_resource_string, x_get_string_resource)
5825 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5826 (x_default_parameter): Use const.
5827
5828 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5829 (QCheight, QCsize, QCname): Remove declarations.
5830
5831 * emacs.c (main): Remove local extern declaration.
5832
5833 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5834 declarations.
5835
5836 * dispnew.c: Remove duplicate #include <unistd.h>.
5837 (update_window, update_frame_1, init_display): Remove local extern
5838 declarations.
5839
5840 * dispextern.h (add_to_log): Remove declaration.
5841 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5842 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5843
5844 * dired.c (scmp): Add const.
5845 (directory_files_internal): Remove local extern declaration.
5846
5847 * data.c (Finteractive_form): Use const.
5848
5849 * composite.c (syms_of_composite): Remove local extern declarations.
5850
5851 * charset.c (add_to_log): Remove declaration.
5852
5853 * character.c (strwidth, parse_str_to_multibyte): Add const.
5854
5855 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5856
5857 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5858
89dc303e 5859 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
5860 (Lisp_Subr): Make doc and intspec constant.
5861 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5862 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5863 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5864 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5865 (display_arg): Add declarations.
89dc303e 5866
0ed082fe 58672010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
5868
5869 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5870
0ed082fe
JB
5871 * window.c (Fwindow_height): Doc fix (bug#6518).
5872
58732010-07-27 Juanma Barranquero <lekktu@gmail.com>
5874
5875 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5876
ccaf0336
DN
58772010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5878
977105dc
DN
5879 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5880 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5881 functions.
5882
f5ada890
DN
5883 * frame.h (Qtty_color_mode): Add declaration.
5884
ccaf0336
DN
5885 * lisp.h (Ftop_level, Fexit_recursive_edit)
5886 (Fabort_recursive_edit): Mark as NO_RETURN.
5887
dfe3c90f
KH
58882010-07-26 Kenichi Handa <handa@m17n.org>
5889
5890 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5891 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5892
7d383292
JB
58932010-07-26 Juanma Barranquero <lekktu@gmail.com>
5894
5895 * lread.c (unreadpure, mapatoms_1): Make static.
5896
da31e629
JB
58972010-07-25 Juanma Barranquero <lekktu@gmail.com>
5898
5899 * terminfo.c (tparam): Fix prototype of tparm.
5900
7bfa6d77
AS
59012010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5902
dcc19aac
AS
5903 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5904 find start of text segment.
5905 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5906 is defined.
5907
7bfa6d77
AS
5908 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5909
63f9a672
KB
59102010-07-25 Ken Brown <kbrown@cornell.edu>
5911
5912 * vm-limit.c (check_memory_limits): Fix previous change;
5913 accidentally reverted an earlier change.
5914
24933075
KB
59152010-07-25 Ken Brown <kbrown@cornell.edu>
5916
5917 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5918 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5919
361358ea
JB
59202010-07-25 Juanma Barranquero <lekktu@gmail.com>
5921
5922 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5923 * dired.c (opendir, readdir): Fix prototypes.
5924 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5925 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5926 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5927 (telldir): Remove declaration.
5928 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5929 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5930 * syssignal.h (strsignal): Fix prototype.
5931 * term.c (tparam): Fix prototype.
5932 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5933 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5934 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5935 and __morecore.
5936 * w32gui.h (XParseGeometry): Fix prototype.
5937 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5938 * w32term.c (my_set_focus): Declare inside #if 0.
5939 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5940 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5941 (drain_message_queue, get_next_msg, post_msg, parse_button)
5942 (ClipboardSequence_Proc): Fix prototypes.
5943 (wait_for_sync): Remove declaration.
5944
630b9592
JB
59452010-07-24 Juanma Barranquero <lekktu@gmail.com>
5946
5947 * w32fns.c (w32_to_x_color): Remove, unused.
5948
6a0d6611
AS
59492010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5950
5951 * lisp.h: Remove leftover P_.
5952
4e8608ff
DN
59532010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5954
5955 * ecrt0.c, unexalpha.c: Remove files, unused.
5956
c8197983
AS
59572010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5958
5959 * cmds.c (internal_self_insert): Make static.
5960 * lisp.h (internal_self_insert): Remove declaration.
5961
97b372d7
JB
59622010-07-23 Juanma Barranquero <lekktu@gmail.com>
5963
33ac0414
JB
5964 * alloc.c (free_float):
5965 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5966 * frame.c (delete_frame_handler):
5967 * ralloc.c (reorder_bloc):
5968 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5969 Remove unused static functions.
5970
94da8397
JB
5971 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5972 it is called only from NS code.
5973
2e6c8532
JB
5974 * w32term.c (my_set_focus): #ifdef away; it is called only from
5975 "#ifdef 0" code.
5976
97b372d7
JB
5977 * w32fns.c (x_edge_detection):
5978 * xfaces.c (may_use_scalable_font_p):
5979 Remove obsolete static declarations.
5980
7c3320d8
JB
59812010-07-20 Juanma Barranquero <lekktu@gmail.com>
5982
5983 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5984 (emacs_blocked_realloc, uninterrupt_malloc):
5985 * fringe.c (w32_reset_fringes):
5986 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5987 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5988 * sound.c (be2hs, do_play_sound):
5989 * vm-limit.c (get_lim_data, ret_lim_data):
5990 * w32term.c (x_free_frame_resources):
5991 * xfaces.c (x_create_gc, x_free_gc):
5992 Convert definitions to standard C.
5993
d5273788
SM
59942010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5995
5996 * eval.c (Feval, Ffuncall): Use the new names.
5997
5998 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5999 (DEFUN): Add braces around the union initialisation and use ## to
6000 specify the right union alternative and avoid a cast.
6001
8d16a259
JB
60022010-07-18 Juanma Barranquero <lekktu@gmail.com>
6003
6004 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6005
3b8eff32
CY
60062010-07-17 Chong Yidong <cyd@stupidchicken.com>
6007
6008 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6009
499322ce
J
60102010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6011
6012 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6013 is related to the menu bar (Bug#6499).
a628ad9d 6014 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 6015
f6003da5 60162010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
6017
6018 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6019
6020 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6021
6022 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6023 i.e. don't put back ButtonRelease (Bug#6608).
6024
6025 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6026 instead of Window. Call xg_event_is_for_menubar when
6027 USE_GTK (Bug#6499).
6028
6029 * gtkutil.h (xg_event_is_for_menubar): Declare.
6030
6031 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6032
f6003da5 60332010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
6034
6035 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6036 when it's the same as the old foreground. (Bug#6609)
6037
23243f29
J
60382010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6039
6040 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6041 widget is non-null (Bug#6645).
6042
2b23d2a6
AS
60432010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6044
01b564ff
AS
6045 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6046 Convert old-style definition.
6047
2b23d2a6
AS
6048 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6049 timestamp argument.
6050
c4affd2c
EZ
60512010-07-15 Eli Zaretskii <eliz@gnu.org>
6052
6053 * fringe.c (update_window_fringes): Restore mistakenly reverted
6054 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6055
cf28cebc
J
60562010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6057
6058 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6059 (SET_SAVED_KEY_EVENT): Remove (not used).
6060 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6061 remove size parameter.
6062 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6063 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6064 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6065 ButtonRelease.
6b2c4bd9
J
6066 (x_set_window_size_1): scroll_bar_actual_width is always
6067 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
6068
6069 * xdisp.c (pending_menu_activation): Remove extern declaration.
6070 (prepare_menu_bars): Remove setting of pending_menu_activation.
6071
6072 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
6073 (x_activate_menubar): Set popup_activated_flag for Xt also.
6074 Remove setting of pending_menu_activation.
cf28cebc
J
6075 (set_frame_menubar): Remove check of pending_menu_activation.
6076 Declare menubar_size before code. Correct spelling in comment.
6077
f6c1c771
KH
60782010-07-14 Kenichi Handa <handa@m17n.org>
6079
6080 * font.c (font_open_entity): Cancel previous change.
6081 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6082
20477505
EZ
60832010-07-13 Eli Zaretskii <eliz@gnu.org>
6084
77defa9a
EZ
6085 Remove subprocesses #ifdefs.
6086 * process.c <inhibit_sentinels>: Move to the common part.
6087 (Fwaiting_for_user_input_p): Move to the common part; return nil
6088 if async subprocesses aren't supported.
6089 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6090 MS-DOS. Remove "#ifdef subprocesses".
6091 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6092 (gettimeofday): Remove "#ifdef subprocesses".
6093 (wait_without_blocking): Remove function.
6094 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6095 Remove "#ifdef subprocesses".
6096 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6097 compiled on MS-DOS.
6098 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6099 wait_for_termination on MS-DOS.
6100 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6101 initialization of inhibit_sentinels.
6102 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6103 subprocesses" conditional.
6104 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6105 wait_for_termination, since `buffer' cannot be an integer when
6106 async subprocesses are not supported
6107 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6108 for ifdefing away the call to Fprocess_status.
6109
20477505
EZ
6110 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6111 away the entire body of the function.
6112
b3ffc17c
DN
61132010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6114
01faa934
DN
6115 Remove subprocesses #ifdefs from term.c.
6116 * process.c (add_keyboard_wait_descriptor)
6117 (delete_keyboard_wait_descriptor): Move to common section, do
6118 nothing when subprocesses is not defined.
a628ad9d
JB
6119 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6120 Remove subprocesses #ifdefs.
01faa934 6121
b3ffc17c
DN
6122 Convert maybe_fatal to standard C.
6123 * lisp.h (verror): Declare.
6124 * eval.c (verror): New function containing the code from ...
6125 (error): ... this. Call verror.
6126 * term.c (vfatal): New function containing the code from ...
6127 (fatal): ... this. Call vfatal.
6128 (maybe_fatal): Convert to standard C, use variable number of
6129 arguments. Declare as non-return.
6130 (init_tty): Fix maybe_fatal call.
6131
0521f580
DN
61322010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6133
6134 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6135 (_scroll_bar_note_movement): Convert definitions to standard C.
6136 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6137 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6138
ebd15611
DN
61392010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6140
6141 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6142 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6143 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6144 (xaw_jump_callback, xaw_scroll_callback)
6145 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
6146 (x_wm_set_size_hint, x_activate_timeout_atimer):
6147 Convert definitions to standard C.
ebd15611
DN
6148 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6149 (popup_activate_callback, popup_deactivate_callback)
6150 (menu_highlight_callback, menubar_selection_callback)
6151 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6152 (free_frame_menubar, popup_selection_callback, as)
6153 (create_and_show_popup_menu, dialog_selection_callback)
6154 (create_and_show_dialog):
6155 * xfns.c (hack_wm_protocols, x_window):
6156 * xfaces.c (x_update_menu_appearance):
6157 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6158 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6159 (set_frame_size, update_wm_hints, setup_frame_gcs)
6160 (update_various_frame_slots, update_from_various_frame_slots)
6161 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6162 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6163 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6164
de06a2dd
AS
61652010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6166
a628ad9d 6167 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 6168
fc549af9
EZ
61692010-07-12 Eli Zaretskii <eliz@gnu.org>
6170
6171 * process.c (setup_process_coding_systems): Move to the part
6172 shared by non-subprocesses systems, and make its body empty when
6173 subprocesses is not defined.
6174 (close_process_descs): Move to the part shared by non-subprocesses
6175 systems.
1408902e
EZ
6176 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6177 ANSI C.
fc549af9 6178
d5a3eaaf
AS
61792010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6180
6181 * editfns.c (transpose_markers): Convert old-style definition.
6182 * emacs.c (abort, shut_down_emacs, fixup_locale)
6183 (synchronize_system_time_locale)
6184 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6185 * floatfns.c (extract_float, matherr, init_floatfns)
6186 (syms_of_floatfns): Likewise.
6187 * fns.c (make_hash_table): Likewise.
6188 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6189 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6190 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6191 (ftfont_variation_glyphs): Likewise.
6192 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6193 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6194 * lread.c (read_filtered_event): Likewise.
6195 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6196 * process.c (wait_reading_process_output): Likewise.
6197 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6198 * search.c (search_buffer, boyer_moore): Likewise.
6199 * syntax.c (scan_sexps_forward): Likewise.
6200 * xdisp.c (try_scrolling): Likewise.
6201 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6202 (face_at_string_position): Likewise.
6203 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6204 * xselect.c (x_get_window_property, receive_incremental_selection)
6205 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6206 Likewise.
6207 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6208
6f704c76
DN
62092010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6210
ded80a25
DN
6211 * callproc.c (child_setup): Remove subprocesses conditional.
6212 Remove code dealing with SET_EMACS_PRIORITY, unused.
6213
49d937f4 6214 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
6215 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6216
6217 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6218 (__do_global_dtors, __main): Use void in definition.
6219 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6220 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6221 the only users from ...
6222 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6223 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6224 (HAVE_VOLATILE): Remove, unused.
6225
6f704c76
DN
6226 Convert more function definitions to standard C.
6227 * xdisp.c (window_box_edges, handle_single_display_spec)
6228 (display_string): Convert definition to standard C.
6229 * scroll.c (do_direct_scrolling, scrolling_1):
6230 * dispnew.c (allocate_matrices_for_frame_redisplay)
6231 (mirrored_line_dance):
6232 * coding.c (code_convert_string):
6233 * charset.c (map_charset_chars):
6234 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6235 (Fregister_ccl_program, Fregister_code_conversion_map):
6236 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6237 (head_table): Make static and const.
6238
e6cfa7c3
AS
62392010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6240
6241 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6242 (PROFILING_LDFLAGS): Set from substitution.
6243 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6244 CFLAGS last.
6245
892dd565
KH
62462010-07-12 Kenichi Handa <handa@m17n.org>
6247
6f2cdcd1
KH
6248 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6249 (shortlisp): Likewise.
6250
892dd565
KH
6251 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6252
6253 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6254 of FONT_ENTITY_INDEX.
6255 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6256 property, get the property value dynamically.
6257 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 6258 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 6259 return value changed.
bba3e508 6260 (syms_of_font): Adjust for the above change.
892dd565 6261
ae96d47a
AS
62622010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6263
c8fc18ee
AS
6264 * blockinput.h: Remove obsolete comment.
6265
89887d67
AS
6266 * lisp.h: Include <stddef.h>.
6267 (OFFSETOF): Don't define.
6268 (VECSIZE): Use offsetof instead of OFFSETOF.
6269 (PSEUDOVECSIZE): Likewise.
6270 * process.c (conv_sockaddr_to_lisp): Likewise.
6271 * alloc.c: Don't include <stddef.h>.
6272 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6273
ae96d47a
AS
6274 * process.c: Remove obsolete comment.
6275
635c0aa1
CY
62762010-07-11 Chong Yidong <cyd@stupidchicken.com>
6277
6278 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6279
a64df650
AS
62802010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6281
8966b757
AS
6282 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6283 index, rindex.
6284 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6285 * editfns.c (Fuser_full_name, Fformat): Likewise.
6286 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6287 * fileio.c (Ffile_symlink_p): Likewise.
6288 * filelock.c (current_lock_owner): Likewise.
6289 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6290 * fontset.c (fontset_pattern_regexp): Likewise.
6291 * lread.c (read1): Likewise.
6292 * sysdep.c (init_system_name): Likewise.
6293 * xfns.c (select_visual): Likewise.
6294 * s/hpux10-20.h (index, rindex): Don't define.
6295 * s/ms-w32.h (index): Likewise.
6296 * s/usg5-4.h: Likewise.
6297
cf237e27
AS
6298 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6299
a8fe7202
AS
6300 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6301 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6302 (egetenv): Likewise.
6303 * doprnt.c (doprnt): Likewise.
6304 * editfns.c (set_time_zone_rule, format2): Likewise.
6305 * emacs.c (decode_env_path): Likewise.
6306 * eval.c (signal_error, error): Likewise.
6307 * insdel.c (replace_range_2): Likewise.
6308 * keyboard.c (cmd_error_internal): Likewise.
6309 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6310 * print.c (write_string, write_string_1, print_error_message):
6311 Likewise.
6312 * vm-limit.c (warn_function, memory_warnings): Likewise.
6313 * xdisp.c (message1, message1_nolog, message_with_string)
6314 (vmessage, message, message_nolog): Likewise.
6315 * emacs.c: Remove duplicate declaration.
6316 * keyboard.h: Likewise.
6317 * lisp.h: Update prototypes.
6318
bb8e180f
AS
6319 * eval.c: Fix indentation problem.
6320
01c35094 6321 * keyboard.c: Include "process.h".
83380e65 6322
a64df650
AS
6323 * eval.c: Remove obsolete noinline declaration.
6324 * fns.c: Likewise.
6325
6a8033e1
KR
63262010-07-11 Ken Raeburn <raeburn@raeburn.org>
6327
6328 * doprnt.c (doprnt): Take a va_list argument instead of count and
6329 pointer.
6330 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 6331 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
6332 changed to take a va_list argument.
6333 (message): New variadic wrapper.
6334 (message_nolog): Now a variadic function, calling vmessage.
6335 * lisp.h: Include stdarg.h for va_list.
6336 (doprnt, error, message, message_nolog): Decls updated.
6337
462aa963
EZ
63382010-07-11 Eli Zaretskii <eliz@gnu.org>
6339
6340 * process.c (syms_of_process) <delete-exited-processes>: Define
6341 even if !subprocesses.
6342 (delete_exited_processes): Ditto.
6343
6344 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6345 (delete_exited_processes): Don't define.
6346
48104462
CY
63472010-07-10 Chong Yidong <cyd@stupidchicken.com>
6348
6349 * frame.c (make_frame): Initialize menu_bar_lines and
6350 tool_bar_lines members.
bba3e508
SM
6351 (make_initial_frame, make_terminal_frame):
6352 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
6353
6354 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6355
f388c88a
EZ
63562010-07-10 Eli Zaretskii <eliz@gnu.org>
6357
6358 * process.c: Reshuffle #include's. Condition some of the global
6359 and static variables on `subprocesses'.
6360 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6361 Leave only one implementation.
6362 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6363 (kill_buffer_processes, Flist_system_processes)
6364 (Fprocess_attributes, init_process, syms_of_process): Unify the
6365 implementations for with subprocesses and without them.
6366
723f5a07
J
63672010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6368
6369 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6370 correct size for Motif.
6371 (free_frame_menubar): Call x_set_window_size to update frame size.
6372
6373 * xfns.c (x_window): Set borderWidth to 0 for pane and
6374 EmacsFrame. Frame size calculation is wrong otherwise.
6375
2536a4b7
MA
63762010-07-09 Michael Albinus <michael.albinus@gmx.de>
6377
6378 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6379 allows to suppress errors when polling in Emacs' main loop.
6380 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6381 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6382 (Fdbus_method_error_internal, Fdbus_send_signal)
6383 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6384 (Fdbus_register_method): Use it. (Bug#6579)
6385
5842a27b
DN
63862010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6387
6388 * alloc.c: Convert DEFUNs to standard C.
6389 * buffer.c:
6390 * bytecode.c:
6391 * callint.c:
6392 * callproc.c:
6393 * casefiddle.c:
6394 * casetab.c:
6395 * category.c:
6396 * character.c:
6397 * charset.c:
6398 * chartab.c:
6399 * cmds.c:
6400 * coding.c:
6401 * composite.c:
6402 * data.c:
6403 * dbusbind.c:
6404 * dired.c:
6405 * dispnew.c:
6406 * doc.c:
6407 * dosfns.c:
6408 * editfns.c:
6409 * emacs.c:
6410 * eval.c:
6411 * fileio.c:
6412 * filelock.c:
6413 * floatfns.c:
6414 * fns.c:
6415 * font.c:
6416 * fontset.c:
6417 * frame.c:
6418 * fringe.c:
6419 * image.c:
6420 * indent.c:
6421 * insdel.c:
6422 * keyboard.c:
6423 * keymap.c:
6424 * lread.c:
6425 * macros.c:
6426 * marker.c:
6427 * menu.c:
6428 * minibuf.c:
6429 * msdos.c:
6430 * nsfns.m:
6431 * nsmenu.m:
6432 * nsselect.m:
6433 * print.c:
6434 * process.c:
6435 * search.c:
6436 * sound.c:
6437 * syntax.c:
6438 * term.c:
6439 * terminal.c:
6440 * textprop.c:
6441 * undo.c:
6442 * w16select.c:
6443 * w32console.c:
6444 * w32fns.c:
6445 * w32font.c:
6446 * w32menu.c:
6447 * w32proc.c:
6448 * w32select.c:
6449 * window.c:
6450 * xdisp.c:
6451 * xfaces.c:
6452 * xfns.c:
6453 * xmenu.c:
6454 * xselect.c:
6455 * xsettings.c:
6456 * xsmfns.c: Likewise.
6457
d568829b
EZ
64582010-07-08 Eli Zaretskii <eliz@gnu.org>
6459
6460 * process.c (kbd_is_on_hold, hold_keyboard_input)
6461 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6462
52214050
J
64632010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6464
6465 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6466 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6467 unless USE_LUCID.
6468
313d9eb2
DN
64692010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6470
a628ad9d
JB
6471 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6472 declaration.
d8825aa3 6473
295d0d8f
DN
6474 Clean up include guards.
6475 * tparam.c: Remove include guards for config.h, string.h and code
6476 that assumes #ifndef emacs.
6477 * termcap.c:
6478 * unexalpha.c:
6479 * sysdep.c:
6480 * filemode.c:
6481 * filelock.c:
6482 * bidi.c: Likewise.
6483
49d9e6b0
DN
6484 Remove prefix-args.c
6485 * prefix-args.c: Remove file.
6486 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6487 * Makefile.in (temacs${EXEEXT}): Remove references to
6488 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6489 (mostlyclean): Remove reference to prefix-args.
6490 (prefix-args): Remove.
6491
313d9eb2
DN
6492 Simplify cstart_of_data, start_of_code and related code.
6493 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6494 (start_of_data): Merge into start_of_data function.
6495 * sysdep.c (start_of_text): Remove. Move simplified versions of
6496 it in the only users: unexaix.c and unexec.c.
6497 (read_input_waiting): Remove local declaration of quit_char.
6498 (start, etext): Remove declarations.
6499 (start_of_data): Merge with the version in mem-limits.h and move
6500 to vm-limits.c.
6501 * vm-limit.c (start_of_data): Merged and simplified version of the
6502 code formerly in mem-limits.h and sysdep.c.
6503 * unexec.c (start): New declaration, moved from sysdep.c.
6504 (start_of_text): Simplified version of the code formerly in sysdep.c.
6505 * unexaix.c (start_of_text): Simplified version of the code
6506 formerly in sysdep.c.
6507 * m/alpha.h (HAVE_TEXT_START): Remove.
6508 (TEXT_START): Move ...
6509 * unexalpha.c (TEXT_START): ... here.
6510 * s/hpux10-20.h (TEXT_START): Remove.
6511 * s/darwin.h (TEXT_START):
6512 * m/mips.h (TEXT_START):
6513 * m/macppc.h (HAVE_TEXT_START):
6514 * m/m68k.h (TEXT_START):
6515 * m/iris4d.h (TEXT_START):
6516 * m/intel386.h (TEXT_START):
6517 * m/ibmrs6000.h (TEXT_START):
6518 * m/ia64.h (HAVE_TEXT_START):
6519 * s/msdos.h (TEXT_START): Likewise.
6520
72af86bd
AS
65212010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6522
6523 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6524 (overrun_check_free, xstrdup, allocate_string)
6525 (allocate_string_data, compact_small_strings, Fmake_string)
6526 (make_unibyte_string, make_multibyte_string)
6527 (make_string_from_bytes, make_specified_string, make_float)
6528 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6529 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6530 memcpy, memmove, memset, memcmp.
6531 * atimer.c (start_atimer, set_alarm): Likewise.
6532 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6533 (mmap_realloc, init_buffer_once): Likewise.
6534 * callint.c (Fcall_interactively): Likewise.
6535 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6536 (getenv_internal_1): Likewise.
6537 * casefiddle.c (casify_object): Likewise.
6538 * ccl.c (ccl_driver): Likewise.
6539 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6540 * charset.c (load_charset_map_from_file)
6541 (load_charset_map_from_file, load_charset_map_from_vector)
6542 (Fdefine_charset_internal): Likewise.
6543 * cm.c (Wcm_clear): Likewise.
6544 * coding.c (decode_eol, decode_coding_object)
6545 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6546 * data.c (Faset): Likewise.
6547 * dired.c (directory_files_internal, file_name_completion_stat):
6548 Likewise.
6549 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6550 (clear_glyph_row, copy_row_except_pointers)
6551 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6552 (save_current_matrix, restore_current_matrix)
6553 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6554 (mirror_line_dance, scrolling_window): Likewise.
6555 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6556 Likewise.
6557 * doprnt.c (doprnt): Likewise.
6558 * editfns.c (Fuser_full_name, make_buffer_string_both)
6559 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6560 * emacs.c (sort_args): Likewise.
6561 * eval.c (Fapply, Ffuncall): Likewise.
6562 * fileio.c (Ffile_name_directory, make_temp_name)
6563 (Fexpand_file_name, search_embedded_absfilename)
6564 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6565 (auto_save_error): Likewise.
6566 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6567 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6568 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6569 (Fmake_hash_table): Likewise.
6570 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6571 * ftfont.c (ftfont_text_extents): Likewise.
6572 * getloadavg.c (getloadavg): Likewise.
6573 * image.c (define_image_type, make_image, make_image_cache)
6574 (x_create_x_image_and_pixmap, xbm_image_p)
6575 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6576 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6577 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6578 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6579 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6580 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6581 Likewise.
6582 * indent.c (scan_for_column, compute_motion): Likewise.
6583 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6584 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6585 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6586 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6587 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6588 (store_user_signal_events, menu_bar_items, tool_bar_items)
6589 (process_tool_bar_item, append_tool_bar_item)
6590 (read_char_minibuf_menu_prompt, read_key_sequence)
6591 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6592 Likewise.
6593 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6594 Likewise.
6595 * lisp.h (STRING_COPYIN): Likewise.
6596 * lread.c (Fload, read1, oblookup): Likewise.
6597 * msdos.c (Frecent_doskeys): Likewise.
6598 * nsfns.m (Fx_create_frame): Likewise.
6599 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6600 Likewise.
6601 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6602 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6603 Likewise.
6604 * nsmenu.m (ns_update_menubar): Likewise.
6605 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6606 * print.c (print_unwind, printchar, strout, print_string)
6607 (print_error_message): Likewise.
6608 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6609 (Fmake_network_process, Fnetwork_interface_list)
6610 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6611 (init_process): Likewise.
6612 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6613 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6614 Likewise.
6615 * scroll.c (do_scrolling, do_direct_scrolling)
6616 (scrolling_max_lines_saved): Likewise.
6617 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6618 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6619 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6620 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6621 (emacs_set_tty): Likewise.
6622 * term.c (encode_terminal_code, calculate_costs)
6623 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6624 Likewise.
6625 * termcap.c (tgetst1, gobble_line): Likewise.
6626 * termhooks.h (EVENT_INIT): Likewise.
6627 * tparam.c (tparam1): Likewise.
6628 * unexalpha.c (unexec): Likewise.
6629 * unexec.c (write_segment): Likewise.
6630 * unexmacosx.c (unexec_write_zero): Likewise.
6631 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6632 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6633 * w32font.c (w32font_list_family, w32font_text_extents)
6634 (w32font_list_internal, w32font_match_internal)
6635 (w32font_open_internal, compute_metrics, Fx_select_font):
6636 Likewise.
6637 * w32menu.c (set_frame_menubar, add_menu_item)
6638 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6639 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6640 * w32uniscribe.c (uniscribe_list_family): Likewise.
6641 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6642 * window.c (make_window, replace_window, set_window_buffer)
6643 (Fsplit_window): Likewise.
6644 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
6645 (add_to_log, message3, x_consider_frame_title)
6646 (append_space_for_newline, extend_face_to_end_of_line)
6647 (decode_mode_spec_coding, init_glyph_string): Likewise.
6648 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
6649 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
6650 (face_attr_equal_p, make_realized_face, make_face_cache)
6651 (free_realized_faces, lookup_named_face, smaller_face)
6652 (face_with_height, lookup_derived_face)
6653 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
6654 (Finternal_set_font_selection_order, realize_default_face)
6655 (compute_char_face, face_at_buffer_position)
6656 (face_for_overlay_string, face_at_string_position, merge_faces):
6657 Likewise.
6658 * xfns.c (xic_create_fontsetname, Fx_create_frame)
6659 (Fx_window_property, x_create_tip_frame)
6660 (Fx_backspace_delete_keys_p): Likewise.
6661 * xfont.c (xfont_list, xfont_match, xfont_list_family)
6662 (xfont_text_extents): Likewise.
6663 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
6664 * xrdb.c (magic_file_p, x_get_resource): Likewise.
6665 * xselect.c (x_queue_event, x_get_window_property)
6666 (receive_incremental_selection): Likewise.
6667 * xsmfns.c (x_session_check_input): Likewise.
6668 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
6669 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
6670 Likewise.
6671 * character.h (BCOPY_SHORT): Removed.
6672 * config.in: Regenerate.
6673 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
6674 * emacs.c (main) [PROFILING]: Don't declare
6675 dump_opcode_frequencies.
6676 * lisp.h (safe_bcopy): Remove declaration.
6677 (memset) [!HAVE_MEMSET]: Declare.
6678 (memcpy) [!HAVE_MEMCPY]: Likewise.
6679 (memmove) [!HAVE_MEMMOVE]: Likewise.
6680 (memcmp) [!HAVE_MEMCMP]: Likewise.
6681 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
6682 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
6683 Don't define.
6684 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
6685 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
6686 (BCOPY_DOWNWARD_SAFE): Don't define.
6687 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
6688 (memcpy) [!HAVE_MEMCPY]: Define.
6689 (memmove) [!HAVE_MEMMOVE]: Define.
6690 (memcmp) [!HAVE_MEMCMP]: Define.
6691
cb768704
J
66922010-07-07 Jan Djärv <jan.h.d@swipnet.se>
6693
6694 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
6695 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6696 New functions.
cb768704
J
6697 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
6698 select on empty input mask.
6699 (init_process): Initialize kbd_is_on_hold to 0.
6700
6701 * process.h (hold_keyboard_input, unhold_keyboard_input)
6702 (kbd_on_hold_p): Declare.
6703
6704 * keyboard.c (input_available_signal): Declare.
6705 (kbd_buffer_nr_stored): New function.
6706 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
6707 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
6708 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
6709 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
6710 (tty_read_avail_input): If input is on hold, return.
6711 Don't read more that free slots in kbd_buffer (Bug#6571).
6712
3a8ce822
EZ
67132010-07-07 Eli Zaretskii <eliz@gnu.org>
6714
6715 * msdos.h:
6716 * msdos.c:
6717 * dosfns.c:
6718 * w16select.c: Convert function definitions to ANSI C.
6719
a628ad9d
JB
6720 * msdos.h (ctrl_break_func, install_ctrl_break_check):
6721 Remove unused prototypes.
3a8ce822 6722
cf84bb53
JB
67232010-07-07 Juanma Barranquero <lekktu@gmail.com>
6724
6725 * coding.c, sysdep.c: Convert some more functions to standard C.
6726
1a4990fb
JB
67272010-07-07 Juanma Barranquero <lekktu@gmail.com>
6728
6729 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
6730 (encode_coding_object): Use SPECPDL_INDEX.
6731 (syms_of_coding): Use DOS_NT.
6732
c0f2f16b
DN
67332010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
6734
48fb6855
DN
6735 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
6736
c0f2f16b
DN
6737 Make the function member of Lisp_Subr use standard C prototypes.
6738 * lisp.h (struct Lisp_Subr): Use a union for the function member.
6739 (DECL_ALIGN): Add a cast for the function.
6740 * eval.c (Feval, Ffuncall): Use the proper type for each type
6741 function call.
6742
67aecef9
CY
67432010-07-06 Chong Yidong <cyd@stupidchicken.com>
6744
6745 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
6746 fringe face id, so face-remapping-alist works (Bug#6091).
6747
b56ceb92
JB
67482010-07-06 Juanma Barranquero <lekktu@gmail.com>
6749
6750 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
6751 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
6752 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
6753
7af07b96
AS
67542010-07-06 Andreas Schwab <schwab@linux-m68k.org>
6755
6756 * xterm.c (x_get_keysym_name): Change type of parameter to int.
6757 * lisp.h: Declare x_get_keysym_name.
6758 * keyboard.c (modify_event_symbol): Don't declare
6759 x_get_keysym_name here.
6760
69e24e34
DN
67612010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
6762
6763 * ecrt0.c: Revert conversion to standard C.
6764
d3da34e0 67652010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
6766
6767 * vm-limit.c (memory_warnings):
6768 * keyboard.c (modify_event_symbol):
6769 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6770 (round2, emacs_rint):
6771 * process.c (send_process, old_sigpipe): Convert function
6772 definitions and declarations to standard C.
6773
67742010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
6775
6776 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
6777 * xdisp.c: Convert function definitions to standard C.
6778
6779 * cm.c (cmputc): Arg C is now int, not char.
6780 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
6781
00be444c
J
67822010-07-05 James Cloos <cloos@jhcloos.com>
6783
6784 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
6785
6786 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
6787 _NET_WM_ICON_NAME atoms.
6788
6789 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
6790 and _NET_WM_ICON_NAME properties, too, matching what is
6791 done in the Gtk+ case.
6792
e4c8d29a
J
67932010-07-05 Jan Djärv <jan.h.d@swipnet.se>
6794
ff919460
J
6795 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
6796
e4c8d29a
J
6797 * xsmfns.c (SSDATA): New macro.
6798 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
6799 passed to strlen/strcpy/strcat.
bba3e508
SM
6800 (create_client_leader_window): Surround with #ifndef USE_GTK.
6801 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
6802
6803 * xsettings.c (something_changedCB, parse_settings)
6804 (apply_xft_settings): Reformat prototype.
6805 (something_changedCB, init_gconf): Remove unused variable i.
6806 (read_settings): Remove unused variable long_len.
6807
6808 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
6809 (xg_get_image_for_pixmap, create_dialog)
6810 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
6811 (menuitem_highlight_callback, make_menu_item)
6812 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6813 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6814 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6815 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6816 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6817 (xg_tool_bar_item_expose_callback): Reformat prototype.
6818 (xg_update_menubar): GList *group => GSList *group.
6819 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6820 before use.
6821 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6822 to GTK_IMAGE (wimage).
6823
dd4c5104
DN
68242010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6825
898b4c5c
DN
6826 * atimer.c: Use "" instead of <> for local includes for
6827 consistency with the rest of the code.
6828
dd4c5104
DN
6829 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6830 * xrdb.c (get_system_name):
6831 * window.c (shrink_windows):
6832 * syntax.c (forw_comment):
6833 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6834 (ins_del_costs):
6835 * mem-limits.h (start_of_data):
6836 * lread.c (readevalloop):
6837 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6838 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6839 * frame.c (x_get_focus_frame):
6840 * floatfns.c (fmod_float):
6841 * fileio.c (choose_write_coding_system):
6842 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6843 (malloc_initialize_hook, sort_args, synchronize_locale):
6844 * doprnt.c (doprnt):
6845 * dired.c (compile_pattern):
6846 * data.c (fmod_float):
6847 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6848 (map_char_table_for_charset):
6849 * charset.c (define_charset_internal):
6850 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6851 to standard C.
6852
9a39b306 68532010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 6854 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
6855
6856 * lread.c (read1): Fix up last change to not mess up `c'.
6857
e6cb2cbb
JB
68582010-07-04 Juanma Barranquero <lekktu@gmail.com>
6859
6860 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6861
438105ed
JB
68622010-07-04 Juanma Barranquero <lekktu@gmail.com>
6863
6864 Fix prototypes.
6865
e5447b22 6866 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 6867 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
6868 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6869 arg, as required by internal_condition_case_1.
dcc7404b 6870 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
6871 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6872 (analyse_first): Fix "const const".
e5447b22 6873 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 6874 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 6875 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 6876
971de7fb
DN
68772010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6878
6879 * alloc.c: Convert function definitions to standard C.
6880 * atimer.c:
6881 * bidi.c:
6882 * bytecode.c:
6883 * callint.c:
6884 * callproc.c:
6885 * casefiddle.c:
6886 * casetab.c:
6887 * category.c:
6888 * ccl.c:
6889 * character.c:
6890 * charset.c:
6891 * chartab.c:
6892 * cmds.c:
6893 * coding.c:
6894 * composite.c:
6895 * data.c:
6896 * dbusbind.c:
6897 * dired.c:
6898 * dispnew.c:
6899 * doc.c:
6900 * doprnt.c:
6901 * ecrt0.c:
6902 * editfns.c:
6903 * fileio.c:
6904 * filelock.c:
6905 * filemode.c:
6906 * fns.c:
6907 * font.c:
6908 * fontset.c:
6909 * frame.c:
6910 * fringe.c:
6911 * ftfont.c:
6912 * ftxfont.c:
6913 * gtkutil.c:
6914 * indent.c:
6915 * insdel.c:
6916 * intervals.c:
6917 * keymap.c:
6918 * lread.c:
6919 * macros.c:
6920 * marker.c:
6921 * md5.c:
6922 * menu.c:
6923 * minibuf.c:
6924 * prefix-args.c:
6925 * print.c:
6926 * ralloc.c:
6927 * regex.c:
6928 * region-cache.c:
6929 * scroll.c:
6930 * search.c:
6931 * sound.c:
6932 * strftime.c:
6933 * syntax.c:
6934 * sysdep.c:
6935 * termcap.c:
6936 * terminal.c:
6937 * terminfo.c:
6938 * textprop.c:
6939 * tparam.c:
6940 * undo.c:
6941 * unexelf.c:
6942 * window.c:
6943 * xfaces.c:
6944 * xfns.c:
6945 * xfont.c:
6946 * xftfont.c:
6947 * xgselect.c:
6948 * xmenu.c:
6949 * xrdb.c:
6950 * xselect.c:
6951 * xsettings.c:
6952 * xsmfns.c:
6953 * xterm.c: Likewise.
6954
ae492bec
EZ
69552010-07-03 Eli Zaretskii <eliz@gnu.org>
6956
76ea4cc9
EZ
6957 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6958 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6959 `reverse' is specified in the frame parameters.
6960 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6961 internal-set-lisp-face-attribute. Initialize screen colors from
6962 initial_screen_colors[] when f->default_face_done_p is zero,
6963 instead of depending on being called with default-frame-alist as
6964 the alist argument.
6965
6966 * xfaces.c (update_face_from_frame_parameter): Move out of
6967 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6968 with HAVE_WINDOW_SYSTEM.
6969
1e6255ae
EZ
6970 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6971 to menu-bar-mode, if not set in the frame parameters or in
6972 default-frame-alist.
6973
ae492bec
EZ
6974 * w32console.c (sys_tputs): Adjust argument list to prototype in
6975 term.c.
6976
3a35a84c
JB
69772010-07-03 Juanma Barranquero <lekktu@gmail.com>
6978
6979 * lisp.h (memory_warnings): Fix prototype.
6980
6981 * cm.h (evalcost): Fix prototype.
6982
6983 * cm.c (evalcost): Fix arg type.
6984
c532d349
DN
69852010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6986
6987 * term.c (term_clear_mouse_face, Fidentity):
6988 * syssignal.h (signal_handler_t):
6989 * lisp.h (memory_warnings):
6990 * coding.h (preferred_coding_system):
6991 * cm.h (evalcost):
6992 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6993
c0b36d46
EZ
69942010-07-02 Eli Zaretskii <eliz@gnu.org>
6995
6996 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6997 from prototypes.
6998
6999 * msdos.h (load_pixmap): Don't define away.
7000
383e0970
J
70012010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7002
f57e2426
J
7003 * lisp.h:
7004 * atimer.h: Remove define for P_.
7005
7006 * alloc.c: Remove __P and P_ from .c and .m files.
7007 * atimer.c:
7008 * buffer.c:
7009 * callint.c:
7010 * category.c:
7011 * charset.c:
7012 * chartab.c:
7013 * cm.c:
7014 * coding.c:
7015 * composite.c:
7016 * data.c:
7017 * dired.c:
7018 * dispnew.c:
7019 * doc.c:
7020 * editfns.c:
7021 * emacs.c:
7022 * eval.c:
7023 * fileio.c:
7024 * filelock.c:
7025 * fns.c:
7026 * font.c:
7027 * fontset.c:
7028 * frame.c:
7029 * ftfont.c:
7030 * ftxfont.c:
7031 * gmalloc.c:
7032 * gtkutil.c:
7033 * image.c:
7034 * indent.c:
7035 * intervals.c:
7036 * keyboard.c:
7037 * keymap.c:
7038 * lread.c:
7039 * marker.c:
7040 * menu.c:
7041 * minibuf.c:
7042 * print.c:
7043 * process.c:
7044 * scroll.c:
7045 * search.c:
7046 * sound.c:
7047 * strftime.c:
7048 * syntax.c:
7049 * sysdep.c:
7050 * term.c:
7051 * terminal.c:
7052 * textprop.c:
7053 * unexalpha.c:
7054 * w32console.c:
7055 * w32fns.c:
7056 * w32font.c:
7057 * w32menu.c:
7058 * w32term.c:
7059 * w32uniscribe.c:
7060 * window.c:
7061 * xdisp.c:
7062 * xfaces.c:
7063 * xfns.c:
7064 * xfont.c:
7065 * xftfont.c:
7066 * xmenu.c:
7067 * xselect.c:
7068 * xterm.c: Likewise.
7069
383e0970 7070 Remove P_ and __P macros.
f57e2426
J
7071 * atimer.h: Remove P_ and __P macros.
7072 * buffer.h:
383e0970
J
7073 * category.h:
7074 * ccl.h:
7075 * character.h:
7076 * charset.h:
7077 * cm.h:
7078 * coding.h:
7079 * composite.h:
7080 * dispextern.h:
7081 * disptab.h:
9e892c8d 7082 * dosfns.h:
383e0970
J
7083 * font.h:
7084 * fontset.h:
7085 * frame.h:
7086 * gtkutil.h:
7087 * indent.h:
7088 * intervals.h:
7089 * keyboard.h:
7090 * keymap.h:
7091 * lisp.h:
7092 * macros.h:
7093 * md5.h:
7094 * menu.h:
7095 * msdos.h:
7096 * nsterm.h:
7097 * puresize.h:
7098 * region-cache.h:
7099 * syntax.h:
7100 * syssignal.h:
7101 * systime.h:
7102 * termhooks.h:
9e892c8d 7103 * w32font.h:
383e0970
J
7104 * w32term.h:
7105 * widget.h:
7106 * window.h:
7107 * xgselect.h:
7108 * xsettings.h:
7109 * xterm.h: Likewise.
7110
98601119
DN
71112010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7112
d9170db5
DN
7113 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7114
98601119
DN
7115 Cleanup old code.
7116 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7117 * syssignal.h: Remove code for Lynx, not supported anymore.
7118 * vm-limit.c: Remove unused code the depends on emacs not being
7119 defined and NO_LIM_DATA being defined.
7120 * mem-limits.h: Remove dead code.
7121
1f984e12
J
71222010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7123
c49d071a
J
7124 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7125
9d5405ec
J
7126 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7127 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7128
7a18115b
J
7129 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7130 parameters, they are already absolute.
7131
a628ad9d
JB
7132 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7133 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 7134
a628ad9d 7135 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 7136
a628ad9d
JB
7137 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7138 Update FRAME_TOOLBAR_HEIGHT.
581a8100 7139
a628ad9d
JB
7140 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7141 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 7142
c1ef4455
CY
71432010-06-30 Chong Yidong <cyd@stupidchicken.com>
7144
bba3e508
SM
7145 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7146 Don't check default-frame-alist.
c1ef4455 7147
ce8f5a9a
AS
71482010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7149
7150 * process.c (create_process): Avoid using invalid file descriptors.
7151
7152 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7153
bf935339
J
71542010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7155
7156 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7157 Improve documentation. Return font regardless of use_system_font.
7158 (syms_of_xsettings): Improve documentation for font-use-system-font.
7159
7c33a057
CY
71602010-07-10 Chong Yidong <cyd@stupidchicken.com>
7161
2ec1b5ee
CY
7162 * xfaces.c (realize_face): Garbage the frame if a face is removed
7163 (Bug#6593).
7164
71652010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7166
7167 * keyboard.c: Remove duplicate <setjmp.h>.
7168 (read_key_sequence): Remove volatile qualifiers.
7169
71702010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7171
7172 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7173 (struct glyph_row): New members left_fringe_offset and
7174 right_fringe_offset.
7175
7176 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7177 specially.
7178 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7179 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7180
7181 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 7182 Take account of bitmap offset.
2ec1b5ee
CY
7183 (draw_window_fringes): Take account of window vscroll.
7184 (update_window_fringes): Likewise. Extend top-aligned top indicator
7185 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7186 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7187 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7188
71892010-07-04 Juanma Barranquero <lekktu@gmail.com>
7190
7191 * w32fns.c (Qtooltip): Declare.
7192 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7193
71942010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7195
7196 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7197 grab on just Press (Bug#6499).
7198
71992010-07-02 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * frame.c (Qtooltip): New var.
7202 (delete_frame): Use it. Fix faulty if statement. Don't update
7203 mode line for tooltip frames. Suggested by Martin Rudalics.
7204
7205 * xfns.c (x_create_tip_frame):
7206 * w32fns.c (x_create_tip_frame): Use it.
7207
72082010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
7209
7210 * xftfont.c (xftfont_open): Check font width one by one also when
7211 spacing is dual.
7212
7213 * ftfont.c (ftfont_open): Ditto.
7214
6259c2ec
GM
72152010-06-30 Glenn Morris <rgm@gnu.org>
7216
a46007e9
GM
7217 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7218
6259c2ec
GM
7219 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7220
7221 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7222 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7223 * s/darwin.h (SYSTEM_MALLOC):
7224 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7225
5d1d3d04
J
72262010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7227
7228 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7229 (ns_get_screen): Don't assign integer to f.
7230 (Fx_display_color_cells): Declarations before statements.
7231
e547b051
J
72322010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7233
5fc8e5bc
J
7234 * xfns.c (x_default_font_parameter): Remove got_from_system
7235 (Bug#6526).
7236
e547b051 7237 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
7238 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7239 New defines based on what configure finds.
e547b051
J
7240
7241 * xterm.c (XTflash): Use gtk_widget_get_window.
7242 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7243 gtk_adjustment_get_page_size.
7244 (handle_one_xevent): Use gtk_widget_get_mapped.
7245 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7246 messages.
7247
7248 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7249
7250 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7251 HAVE_GTK_FILE_SELECTION_NEW.
7252
bba3e508
SM
7253 * gtkutil.c (xg_display_open, xg_display_close):
7254 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
7255 (xg_display_open): Return type is void.
7256 (gtk_widget_set_has_window)
7257 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7258 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7259 (gtk_adjustment_set_page_increment)
7260 (gtk_adjustment_get_step_increment): #define these if not found
7261 by configure.
7262 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
7263 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7264 Use gtk_widget_get_window.
e547b051
J
7265 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7266 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7267 (create_dialog): Use gtk_dialog_get_action_area and
7268 gtk_dialog_get_content_area.
7269 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7270 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7271 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7272 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7273 Use g_object_ref and g_object_unref.
7274 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7275 Use gtk_widget_get_sensitive.
e547b051
J
7276 (xg_update_submenu): Use remove_submenu.
7277 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7278 properties instead to get old x and y position.
7279 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7280 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7281 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7282 (xg_get_tool_bar_widgets): New function.
7283 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7284 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7285 (toolbar_set_orientation): New #define based on if configure
7286 finds gtk_orientable_set_orientation.
7287 (xg_create_tool_bar): Call toolbar_set_orientation.
7288 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7289 instead of gtk_box_pack_start_defaults.
7290
b9229673
CY
72912010-06-28 Chong Yidong <cyd@stupidchicken.com>
7292
7293 * cmds.c (Fdelete_backward_char): Move into Lisp.
7294
bbc803b0
DN
72952010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7296
7297 * s/freebsd.h (BSD4_2): Remove redundant definition.
7298 bsd-common.h defines it already.
7299
6431f2e6
CY
73002010-06-27 Chong Yidong <cyd@stupidchicken.com>
7301
7302 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7303 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7304 tool-bar-mode, which are now set using these X resources at
7305 startup, to determine the defaults (Bug#2249).
7306
7307 * w32fns.c (Fx_create_frame):
7308 * nsfns.m (Fx_create_frame): Likewise.
7309
7310 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7311
8c079ebb
JB
73122010-06-24 Juanma Barranquero <lekktu@gmail.com>
7313
7314 * gtkutil.c (xg_update_scrollbar_pos):
7315 Avoid C99 mid-block variable declaration.
7316
e9b7ab96
JD
73172010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7318
bc869eca
JD
7319 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7320
2b7e356a 7321 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
7322
7323 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7324 if height is less than scroll bar min size.
7325 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7326
e9b7ab96
JD
7327 * xfns.c (x_default_font_parameter): Try to open font from system
7328 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7329
a628ad9d 73302010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
7331
7332 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7333
70c4cfbb
EZ
73342010-06-20 Eli Zaretskii <eliz@gnu.org>
7335
7336 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7337 most-positive-fixnum, be extra accurate when scrolling window
7338 start, to avoid missing the cursor line.
7339
ad5a12b5
EZ
73402010-06-19 Eli Zaretskii <eliz@gnu.org>
7341
7342 * xdisp.c (try_scrolling): Compute the limit for searching point
7343 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
7344 of 10 screen lines.
7345 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
7346 and
7347 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7348 for details.
7349
2a64315a 73502010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
7351
7352 * editfns.c (Fbyte_to_string): Pacify compiler.
7353
288cf4e9
SM
73542010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7355
7356 * lread.c (read1): Phase out old-style backquotes a bit more.
7357
6e6e5760
EZ
73582010-06-12 Eli Zaretskii <eliz@gnu.org>
7359
cbc4fd20
EZ
7360 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7361 bidimirror.h.
7362
7363 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7364
317fbf33
EZ
7365 * bidi.c (bidi_initialize): Remove explicit initialization of
7366 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 7367 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 7368 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
7369
7370 * biditype.h: New file.
7371
cbc4fd20
EZ
7372 * bidimirror.h: New file.
7373
6e6e5760
EZ
7374 * window.c (syms_of_window): Doc fix (bug#6409).
7375
4176cba2
RF
73762010-06-12 Romain Francoise <romain@orebokech.com>
7377
7378 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7379 ediff-hook.
7380
cb4bfcb5
GM
73812010-06-10 Glenn Morris <rgm@gnu.org>
7382
64c60c2f
GM
7383 * editfns.c (Fbyte_to_string): Pacify compiler.
7384
cb4bfcb5
GM
7385 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7386
2ec1b5ee
CY
73872010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7388
7389 * alloc.c (Fmake_byte_code): Don't access undefined argument
7390 (Bug#6517).
7391
73922010-06-25 Chong Yidong <cyd@stupidchicken.com>
7393
7394 * xdisp.c (next_element_from_image): Ensure that after-strings are
7395 read the next time we hit handle_stop (Bug#1336).
7396
73972010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7398
7399 * lread.c (read1): Signal error if #s is not followed by paren.
7400
74012010-06-19 Chong Yidong <cyd@stupidchicken.com>
7402
7403 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7404
7405 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7406
74072010-06-15 Glenn Morris <rgm@gnu.org>
7408
7409 * editfns.c (Fbyte_to_string): Pacify compiler.
7410
e454a4a3
SM
74112010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7412
7413 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7414 Check `object's type before accessing its guts.
7415
c1b1acc2
DN
74162010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7417
7418 * s/usg5-4.h: Fix previous change.
7419 Suggested by Lawrence Mitchell <wence@gmx.li>
7420
657d4c0b
AS
74212010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7422
7423 * minibuf.c (Fall_completions): Add more checks.
7424
9b27fd9f
JB
74252010-06-08 Juanma Barranquero <lekktu@gmail.com>
7426
7427 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7428
a99ebb40
DN
74292010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7430
d7c5d87d
DN
7431 * lread.c (X_OK): Remove, unused.
7432
0263a941
DN
7433 * dispnew.c: Remove obsolete comment.
7434
a99ebb40
DN
7435 Remove INCLUDED_FCNTL.
7436 * xterm.c (INCLUDED_FCNTL):
7437 * callproc.c (INCLUDED_FCNTL):
7438 * alloc.c (INCLUDED_FCNTL):
7439 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7440 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7441
13b5221f
MR
74422010-06-07 Martin Rudalics <rudalics@gmx.at>
7443
7444 * window.c (Fselect_window): Move `record_buffer' up to the
7445 beginning of this function, so the buffer gets recorded
7446 even if the selected window does not change.
7447 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7448
5220357f
JB
74492010-06-07 Juanma Barranquero <lekktu@gmail.com>
7450
7451 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7452 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7453
3085237c
DN
74542010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7455
7456 Remove BSTRING related code, all platforms define it.
7457 * s/usg5-4.h (BSTRING): Remove definition.
7458 * s/template.h (BSTRING):
7459 * s/msdos.h (BSTRING):
7460 * s/ms-w32.h (BSTRING):
7461 * s/hpux10-20.h (BSTRING):
7462 * s/gnu-linux.h (BSTRING):
7463 * s/darwin.h (BSTRING):
7464 * s/cygwin.h (BSTRING):
7465 * s/bsd-common.h (BSTRING):
7466 * s/aix4-2.h (BSTRING): Likewise.
7467 * sysdep.c: Remove code depending on BSTRING not being defined.
7468
409f2919
JB
74692010-06-05 Juanma Barranquero <lekktu@gmail.com>
7470
7471 Remove obsolete macro BASE_LEADING_CODE_P.
7472 * character.h (BASE_LEADING_CODE_P): Remove.
7473 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7474 * buffer.c (Fset_buffer_multibyte):
7475 * indent.c (scan_for_column, compute_motion):
7476 * insdel.c (count_combining_before, count_combining_after):
7477 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7478
087fc47a
JB
74792010-06-04 Juanma Barranquero <lekktu@gmail.com>
7480
7481 Turn `directory-sep-char' into a noop.
7482
7483 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7484 (DIRECTORY_SEP): Define unconditionally.
7485
7486 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7487
7488 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7489 call dostounix_filename directly.
7490
7491 * fileio.c (CORRECT_DIR_SEPS): Remove.
7492 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7493 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7494 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7495 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7496
7497 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7498 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7499
0eb7675e
AS
75002010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7501
a628ad9d
JB
7502 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7503 (Bug#6346)
0eb7675e 7504
78edd3b7
JB
75052010-06-03 Juanma Barranquero <lekktu@gmail.com>
7506
7507 * ccl.c (Fccl_program_p): Fix typo in docstring.
7508
eb697db5
DN
75092010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7510
7511 Move UNEXEC definition to autoconf.
7512 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7513 * s/sol2-10.h (UNEXEC):
7514 * s/irix6-5.h (UNEXEC):
7515 * s/hpux10-20.h (UNEXEC):
7516 * s/gnu-linux.h (UNEXEC):
7517 * s/darwin.h (UNEXEC):
7518 * s/cygwin.h (UNEXEC):
7519 * s/bsd-common.h (UNEXEC):
7520 * s/aix4-2.h (UNEXEC):
7521 * m/alpha.h (UNEXEC): Likewise.
7522 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7523
aa3830c4
JB
75242010-06-03 Juanma Barranquero <lekktu@gmail.com>
7525
7526 Remove obsolete pre-unicode2 macros.
7527 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7528 * composite.c (composition_reseat_it):
7529 * data.c (Faset):
7530 * fns.c (Ffillarray):
7531 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7532 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7533
d234d13e
JL
75342010-06-03 Juri Linkov <juri@jurta.org>
7535
7536 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7537 (Fswitch_to_buffer): Remove unused variable `err'.
7538
0d4bcf4d
GM
75392010-06-03 Glenn Morris <rgm@gnu.org>
7540
e23dc1e2
GM
7541 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7542
05b09564
GM
7543 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7544 now that AH_BOTTOM does it.
7545
824e2978
GM
7546 * m/hp800.h (HAVE_ALLOCA):
7547 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7548
0d4bcf4d
GM
7549 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7550 Remove NOT_C_CODE tests, it is always true now.
7551
c55d2abf
DN
75522010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7553
08a494a3
DN
7554 Fix config.h includes.
7555 * xsettings.c:
7556 * xgselect.c:
7557 * nsterm.m:
7558 * nsselect.m:
7559 * nsimage.m:
7560 * nsfont.m:
7561 * nsfns.m:
7562 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7563 other files do.
7564
75934b1d
DN
7565 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7566
9f32a766
DN
7567 * s/sol2-6.h: Remove obsolete comments.
7568
c55d2abf
DN
7569 Remove unnecessary alloca.h includes.
7570 * keymap.c: Do not include alloca.h, config.h does that.
7571 * sysdep.c: Likewise. Do not define fwrite, not used.
7572
06ac62b4
SM
75732010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7574
7575 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7576 the HAVE_TERMIO where it belongs (bug#6149).
7577
1ab8293c
SM
75782010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7579
7580 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7581 of bug#6305).
7582
6dcfd253
EZ
75832010-05-30 Eli Zaretskii <eliz@gnu.org>
7584
7585 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7586 state is always cached (bug#6306).
7587
6d26bbb2
EZ
75882010-05-29 Eli Zaretskii <eliz@gnu.org>
7589
06fa4a23
EZ
7590 Fix cursor motion in bidi-reordered continued lines.
7591 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7592 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
7593 over continuation lines in bidi-reordered buffers.
7594 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
7595 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7596
f5783df3
MA
75972010-05-28 Michael Albinus <michael.albinus@gmx.de>
7598
7599 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7600
7d56b2dd
KH
76012010-05-28 Kenichi Handa <handa@m17n.org>
7602
7603 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7604 Don't sheck SPEC if it is nil.
7605 (font_list_entities): Call font_delete_unmatched if
b925d231 7606 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 7607
e58d4ff7
GM
76082010-05-28 Glenn Morris <rgm@gnu.org>
7609
7610 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7611
f1a5d776
CY
76122010-05-27 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7615 whether to trash.
7616 (internal_delete_file, Frename_file): Callers changed.
7617 (delete_by_moving_to_trash): Doc fix.
7618 (Fdelete_directory_internal): Don't move to trash.
7619
7620 * callproc.c (delete_temp_file):
7621 * buffer.c (Fkill_buffer): Callers changed.
7622
7623 * lisp.h: Update prototype.
7624
f44a59e6
CY
76252010-05-27 Chong Yidong <cyd@stupidchicken.com>
7626
7627 * xdisp.c (redisplay_window): After redisplay, check if point is
7628 still valid before setting it (Bug#6177).
7629
81ac4f35
GM
76302010-05-27 Glenn Morris <rgm@gnu.org>
7631
7632 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7633 Convert comments to Makefile format.
7634
7635 * Makefile.in (bootstrap-clean): No more Makefile.c.
7636
ccd89fb3
GM
76372010-05-26 Glenn Morris <rgm@gnu.org>
7638
90278cb6
GM
7639 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7640 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7641
ccd89fb3
GM
7642 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7643 Remove.
7644 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7645
b7050583
KH
76462010-05-26 Kenichi Handa <handa@m17n.org>
7647
7648 * composite.c (composition_compute_stop_pos): Fix condition for
7649 backward scanning.
7650
e5458003
GM
76512010-05-25 Glenn Morris <rgm@gnu.org>
7652
c345fe90
GM
7653 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7654 Move before TEMACS_LDFLAGS.
7655 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7656 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7657
2e0689ab
GM
7658 * Makefile.in (NOT_C_CODE): No longer define.
7659 (config.h): No longer include.
7660
8009a5e8
GM
7661 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
7662 variables it may reference.
7663
e5458003
GM
7664 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
7665 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
7666
10f72a37
KH
76672010-05-25 Kenichi Handa <handa@m17n.org>
7668
7669 * dispextern.h (struct composition_it): New members rule_idx and
7670 charpos.
7671
7672 * xdisp.c (set_iterator_to_next): While scanning backward, assume
7673 that the character positions of IT point the last character of the
7674 current grapheme cluster.
7675 (next_element_from_composition): Don't change character positions
7676 of IT.
7677 (append_composite_glyph): Set glyph->charpos to
7678 it->cmp_it.charpos.
7679
7680 * composite.c (autocmp_chars): Change the first argument to RULE,
7681 and try composition with RULE only.
7682 (composition_compute_stop_pos): Record the index number of the
7683 composition rule in CMP_IT->rule_idx.
7684 (composition_reseat_it): Call autocmp_chars repeatedly until the
7685 correct rule of the composition is found.
7686 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
7687 is at the last character of the current grapheme cluster when
7688 CMP_IT->reversed_p is nonzero.
7689
171eda53 76902010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 7691
171eda53
SM
7692 * editfns.c (Fbyte_to_string): New function.
7693
66a9f7f4
SM
76942010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7695
7696 * process.c (Fmake_network_process): Set :host to nil if it's not used.
7697 Suggested by Masatake YAMATO <yamato@redhat.com>.
7698
d8c315d1
EZ
76992010-05-23 Eli Zaretskii <eliz@gnu.org>
7700
171eda53 7701 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 7702
f5b416d2 77032010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7704
7705 * s/netbsd.h: If terminfo is found, use it in preference to
7706 termcap. (Bug#6190) [Backport from trunk]
7707
0416466c
EZ
77082010-05-19 Eli Zaretskii <eliz@gnu.org>
7709
11117830 7710 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
7711
7712 * dispextern.h (struct glyph_row): New members minpos and maxpos.
7713 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
7714 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
7715 and maxpos members instead of start.pos and end.pos, respectively.
7716
7717 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
7718 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
7719 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
7720 (try_window_reusing_current_matrix, try_window_id):
7721 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
7722 (init_from_display_pos, init_iterator): Use EMACS_INT for
7723 character and byte positions.
66a9f7f4 7724 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
7725 arguments for minimum and maximum buffer positions seen by
7726 display_line for this row. Don't use iterator to find the
7727 position following the maximum one; instead, increment the
11117830
EZ
7728 position found by display_line directly. Fix logic; eol_pos
7729 should be tested before the rest. Handle the case of characters
7730 delivered from display vector (bug#6036). Fix tests related to
7731 it->method. Handle the truncated_on_right_p rows.
7732 (RECORD_MAX_MIN_POS): New macro.
7733 (display_line): Use it to record the minimum and maximum buffer
7734 positions for glyphs in the row being assembled. Record the
7735 position of the newline that terminates the line. If word wrap is
7736 in effect, restore minimum and maximum positions seen up to the
7737 wrap point, when iterator returns to it.
7738 (try_window_reusing_current_matrix): Give up if in bidi-reordered
7739 row and cursor not already at point. Restore original pre-bidi
7740 code for unidirectional buffers.
d36fe237
EZ
7741
7742 * dispnew.c (increment_row_positions, check_matrix_invariants):
7743 Increment and check row->start.pos and row->end.pos, in addition
7744 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
7745
11117830
EZ
7746 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
7747 Display truncated_on_left_p and truncated_on_right_p flags.
7748 Formatting fixes.
7749 (pmtxrows): Display the ordinal number of each row. Don't display
7750 rows beyond the last one.
7751
7752 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
7753 it is not copied by bidi_copy_it.
7754
6e83d800
EZ
77552010-05-22 Eli Zaretskii <eliz@gnu.org>
7756
7757 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
7758 (Bug#6237)
7759
110683ad
CY
77602010-05-22 Chong Yidong <cyd@stupidchicken.com>
7761
7762 * image.c (Fimage_flush): Rename from image-refresh.
7763
98fe5161
CY
77642010-05-21 Chong Yidong <cyd@stupidchicken.com>
7765
7766 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
7767 just one window.
7768
7769 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
7770 (clear_image_cache): If the number of cached images is unusually
7771 large, decrease the cache eviction delay (Bug#6230).
7772
e8752c66
GM
77732010-05-21 Glenn Morris <rgm@gnu.org>
7774
66dbf213
GM
7775 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
7776 Move these rules to ns.mk.
7777 * ns.mk: New file.
7778
04384b2d
GM
7779 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
7780
e8752c66
GM
7781 * Makefile.in (CANNOT_DUMP): New, set by configure.
7782 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
7783
2e2bbddb
JL
77842010-05-20 Juri Linkov <juri@jurta.org>
7785
7786 * fileio.c (Fdelete_file): Change interative spec to use
7787 `read-file-name' like in `find-file-read-args' where the default
7788 value is `default-directory' instead of `buffer-file-name'.
7789 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
7790
31c4aaf6
KR
77912010-05-20 Kevin Ryde <user42@zip.com.au>
7792
7793 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
7794 (Voverriding_terminal_local_map, Vsystem_key_alist)
7795 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
7796
9d5cf9b6
GM
77972010-05-20 Glenn Morris <rgm@gnu.org>
7798
7799 * Makefile.in (DEPDIR): New constant.
7800 (DEPFLAGS): Set with configure, not cpp.
7801 (MKDEPDIR): New, set by configure.
7802 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
7803 (clean): Use $DEPDIR.
7804 (deps_frag): Include from configure.
7805 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
7806 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
7807
bba3e508
SM
7808 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
7809 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 7810
7f34aec3
GM
78112010-05-19 Glenn Morris <rgm@gnu.org>
7812
d494e8f2
GM
7813 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7814
c1d0dcfd
GM
7815 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7816 (GNULIB_VAR): Remove.
7817 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7818
7819 * m/ibms390x.h (LINKER):
7820 * m/macppc.h (LINKER) [GNU_LINUX]:
7821 * s/aix4-2.h (ORDINARY_LINK):
7822 * s/cygwin.h (LINKER):
7823 * s/darwin.h (ORDINARY_LINK):
7824 * s/gnu.h (ORDINARY_LINK):
7825 * s/netbsd.h (LINKER):
7826 * s/usg5-4.h (ORDINARY_LINK):
7827 Move to configure.
7828
7f34aec3
GM
7829 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7830
754790b6
CY
78312010-05-18 Chong Yidong <cyd@stupidchicken.com>
7832
7833 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7834 prevent stack overflow if number of arguments is too large
7835 (Bug#6214).
7836
161e44d1
JB
78372010-05-18 Juanma Barranquero <lekktu@gmail.com>
7838
7839 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7840
be4ff9da
GM
78412010-05-18 Glenn Morris <rgm@gnu.org>
7842
9539dc5d
GM
7843 * s/gnu-linux.h: Combine two conditionals.
7844
7845 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
7846 $(POST_ALLOC_OBJ).
7847
40dc6bf4
GM
7848 * Makefile.in (RALLOC_OBJ): New, set by configure.
7849 (rallocobj): Replace with the previous variable.
7850 (otherobj): Use $RALLOC_OBJ.
7851
7852 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7853 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7854
be4ff9da
GM
7855 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7856 (gmallocobj, vmlimitobj): Replace with previous two variables.
7857 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7858
16455a85
GM
78592010-05-17 Glenn Morris <rgm@gnu.org>
7860
7861 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7862 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7863
5fdb7468
GM
78642010-05-16 Glenn Morris <rgm@gnu.org>
7865
7ca1f3f9
GM
7866 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7867
7541dad5
GM
7868 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7869
da53fab9
GM
7870 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7871 trailing "/".
7872
b02a6645
GM
7873 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7874 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7875
8877ca0f
GM
7876 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7877 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7878 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7879 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7880 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7881
5fdb7468
GM
7882 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7883 Remove ${STARTFLAGS}, nothing ever sets it.
7884
95adb4b1
DN
78852010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7886
7887 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7888
676b6304
GM
78892010-05-16 Glenn Morris <rgm@gnu.org>
7890
9beab9ce
GM
7891 * Makefile.in (LIBX_BASE): Always define.
7892
8a95f0e7
GM
7893 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7894
676b6304
GM
7895 * Makefile.in (LIBXT): Always define.
7896
6e546d18
GM
78972010-05-15 Glenn Morris <rgm@gnu.org>
7898
4235ca47 7899 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7900
6e546d18
GM
7901 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7902 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7903
8c5ff6dd
KR
79042010-05-15 Ken Raeburn <raeburn@raeburn.org>
7905
560bb7ae 7906 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7907 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7908
8b4eb796
KR
7909 * emacs.c (main): Initialize initial-environment and
7910 process-environment before generating from env, not after.
7911
8c5ff6dd
KR
7912 Handle --version reasonably in CANNOT_DUMP configuration.
7913 * emacs.c (emacs_version, emacs_copyright): New string variables.
7914 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7915 (syms_of_emacs): Defvar them, and initialize them from the C
7916 string variables.
7917 (main): If initialization hasn't been done, print initial version
7918 info from the C strings, instead of starting an interactive session.
7919
dbd3f723
EZ
79202010-05-15 Eli Zaretskii <eliz@gnu.org>
7921
d20e1419
EZ
7922 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7923 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7924 (bidi_paragraph_init): Remove redundant assertion that we are at
7925 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7926
7927 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7928 (syms_of_xdisp): Defsubr it.
7929
d36fe237
EZ
7930 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7931
dbd3f723
EZ
7932 * Makefile.in: Fix MSDOS-related comments.
7933
02be533b
GM
79342010-05-15 Glenn Morris <rgm@gnu.org>
7935
1a82cca9
GM
7936 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7937 (really-lwlib, really-oldXMenu): Always define.
7938 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7939
3df7b338
GM
7940 * Makefile.in: Simplify cpp conditional.
7941
2b5f541b
GM
7942 * Makefile.in (${ns_appdir}): Simplify using umask.
7943
02be533b
GM
7944 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7945
4e2db1fe
SM
79462010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7947
7948 * eval.c (specbind): Remove left-over duplicate test.
7949 Disallow let-binding frame-local vars. Add comment.
7950
4b292a22
EZ
79512010-05-14 Eli Zaretskii <eliz@gnu.org>
7952
2fe72643 7953 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7954 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7955 (bidi_init_it): Call it.
7956 (bidi_cache_iterator_state): Enlarge the cache if needed.
7957
4e2db1fe 7958 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7959 bidi_get_next_char_visually. All callers changed.
7960
82ebc97b
KH
79612010-05-14 Kenichi Handa <handa@m17n.org>
7962
7963 * dispextern.h (struct composition_it): New member reversed_p.
7964
7965 * composite.c (composition_compute_stop_pos): Search backward if
7966 ENDPOS < CHARPOS.
7967 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7968 Set CMP_IT->reversed_p.
b4b6e17e 7969 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7970
4e2db1fe
SM
7971 * xdisp.c (set_iterator_to_next):
7972 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7973 scanning backward. Call composition_compute_stop_pos if scan
7974 direction is changed.
7975 (next_element_from_buffer): Call composition_compute_stop_pos with
7976 negative ENDPOS if we are scanning backward.
7977 (next_element_from_composition): Pay attention to
7978 IT->cmp_it.reversed_p.
7979
0e5d7800
KH
79802010-05-14 Kenichi Handa <handa@m17n.org>
7981
560bb7ae 7982 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7983
cb027b32
GM
79842010-05-14 Glenn Morris <rgm@gnu.org>
7985
177b0288
GM
7986 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7987
fbc00890
GM
7988 * Makefile.in (mktime, X11, register): Move undefs to configure.
7989
f14d1dfd
GM
7990 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7991 (MSDOS_X_OBJ): New variable.
7992 (MSDOS_SUPPORT_REAL): New constant.
7993 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7994 (obj): Use MSDOS_X_OBJ.
7995 (lisp): Use MSDOS_SUPPORT as a variable.
7996
11842bd8
GM
7997 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7998 (GPM_MOUSE_SUPPORT): Now it's a constant.
7999 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8000 not cpp.
8001
489d31a4 8002 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 8003 (ns_appresdir): Remove, unused.
e20f1f07 8004
489d31a4
GM
8005 * Makefile.in (SHELL): Move outside cpp section.
8006
cb027b32
GM
8007 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8008
5a903aa9
GM
80092010-05-13 Glenn Morris <rgm@gnu.org>
8010
3369c79f
GM
8011 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8012 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8013
d5e982a6
GM
8014 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8015 HAVE_WINDOW_SYSTEM must be too.
8016
6192e163
GM
8017 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8018 (lisp): Remove WINNT_SUPPORT.
8019
472c5d6b
GM
8020 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8021 Let configure set these variables (to empty) in this case as well.
8022
0116466b
GM
8023 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8024 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8025
5a903aa9
GM
8026 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8027 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8028 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8029 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8030 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 8031 the values output by configure.
5a903aa9
GM
8032 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8033
1a0d7c06
GM
80342010-05-12 Glenn Morris <rgm@gnu.org>
8035
b5457f14
GM
8036 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8037 (LINKER_WAS_SPECIFIED): Remove.
8038
1a0d7c06
GM
8039 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8040 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8041 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8042 * s/cygwin.h (LIB_GCC):
8043 * s/freebsd.h (LIB_GCC):
8044 * s/gnu-linux.h (LIB_GCC):
8045 * s/msdos.h (LIB_GCC):
8046 * s/netbsd.h (LIB_GCC):
8047 Move to configure.
8048
d1ddd1d0 80492010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
8050
8051 * ftfont.c: Fix incorrect parentheses of #if condition for
8052 definining M17N_FLT_USE_NEW_FEATURE.
8053
acddf8ae
GM
80542010-05-11 Glenn Morris <rgm@gnu.org>
8055
8056 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8057 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8058
ae5e04fa
EZ
80592010-05-10 Eli Zaretskii <eliz@gnu.org>
8060
8061 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8062 unibyte buffers. See
8063 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8064
7490175b
GM
80652010-05-10 Glenn Morris <rgm@gnu.org>
8066
97efb629
GM
8067 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8068 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8069 (LIBES): Use LIBS_SYSTEM as a variable.
8070 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8071 * s/aix4-2.h (LIBS_SYSTEM):
8072 * s/freebsd.h (LIBS_SYSTEM):
8073 * s/hpux10-20.h (LIBS_SYSTEM):
8074 * s/sol2-6.h (LIBS_SYSTEM):
8075 * s/unixware.h (LIBS_SYSTEM):
8076 Move to configure.
8077
7490175b
GM
8078 * s/aix4-2.h (MAIL_USE_LOCKF):
8079 * s/bsd-common.h (MAIL_USE_FLOCK):
8080 * s/darwin.h (MAIL_USE_FLOCK):
8081 * s/gnu-linux.h (MAIL_USE_FLOCK):
8082 * s/irix6-5.h (MAIL_USE_FLOCK):
8083 * s/template.h (MAIL_USE_FLOCK):
8084 Move to configure.
8085
0235128c 80862010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
8087
8088 * Version 23.2 released.
8089
0235128c 80902010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
8091
8092 * composite.c (autocmp_chars): Save point as marker before calling
8093 auto-composition-function (Bug#5984).
8094
8095 * lisp.h (restore_point_unwind): Add prototype.
8096
8097 * fileio.c (restore_point_unwind): Remove static attribute.
8098
0235128c 80992010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
8100
8101 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8102 new feature of libotf and m17n-flt.
0235128c
SM
8103 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8104 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
8105 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8106 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8107 that OUT is NULL. Use OTF_drive_gsub_with_log and
8108 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8109 OTF_drive_gpos.
8110 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
8111 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8112 Setup mflt_enable_new_feature and mflt_try_otf.
8113
4721152c
J
81142010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8115
8116 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8117
8118 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8119 box and toolbar (Bug #6139).
8120 (xg_create_tool_bar): Remove comment (Bug #6139).
8121 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8122 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8123
ee0a16cf
JB
81242010-05-08 Juanma Barranquero <lekktu@gmail.com>
8125
8126 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8127 Update dependencies.
8128
96d79611
EZ
81292010-05-08 Eli Zaretskii <eliz@gnu.org>
8130
8131 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8132 R2L lines.
8133
40c17879
GM
81342010-05-08 Glenn Morris <rgm@gnu.org>
8135
7b42b29f
GM
8136 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8137
40c17879
GM
8138 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8139 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8140 (termcapobj): Replace with TERMCAP_OBJ.
8141 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8142 (LIBES): Use LIBS_TERMCAP as a variable.
8143
8144 * s/freebsd.h (osreldate.h): No longer include, since this file
8145 does not use __FreeBSD_version any more.
8146
8147 * s/aix4-2.h (TERMINFO):
8148 * s/cygwin.h (TERMINFO):
8149 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8150 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8151 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8152 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8153 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8154 * s/irix6-5.h (TERMINFO):
8155 * s/netbsd.h (LIBS_TERMCAP):
8156 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8157 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8158 * s/usg5-4.h (TERMINFO):
8159 Move to configure.
8160
94b612ad
SM
81612010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8162
8163 * eval.c (unbind_to): Don't unbind a local binding into the global
8164 binding when the local binding disappeared. Inversely, don't unbind
8165 a global binding into a newly created local binding.
8166 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8167 can specify the frame to use, when applicable. Adjust callers.
8168
15e12598 81692010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 8170 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
8171
8172 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8173
f724825e
EZ
81742010-05-07 Eli Zaretskii <eliz@gnu.org>
8175
5cba3209
EZ
8176 * w32fns.c: Include w32.h.
8177 (Fw32_shell_execute): Decode the error message before passing it
8178 to `error'. (Bug#6126)
8179
d16bdfc3
EZ
8180 * msdos.c (dos_set_window_size):
8181 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8182 instead of `XSYMBOL (foo)->value'.
8183
59d93e87
EZ
81842010-05-07 Eli Zaretskii <eliz@gnu.org>
8185
9fdec8bc
EZ
8186 Fix the MS-DOS build, broken by autoconfiscation.
8187
8188 * Makefile.in: Don't use Make-style comments past the "start of
8189 cpp stuff" line.
8190 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8191
8192 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8193 edited directly by msdos/sed1v2.inp).
f724825e 8194
2f86b22b
GM
81952010-05-07 Glenn Morris <rgm@gnu.org>
8196
8197 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8198 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8199 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8200 move out of cpp section.
8201 * s/freebsd.h (LD_SWITCH_SYSTEM):
8202 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8203 * s/netbsd.h (LD_SWITCH_SYSTEM):
8204 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8205
49ebbd65
DN
82062010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8207
8208 Define LIB_STANDARD and START_FILES using autoconf.
8209 * s/usg5-4.h (LIB_STANDARD):
8210 * s/netbsd.h (START_FILES):
8211 * s/irix6-5.h (LIB_STANDARD):
8212 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8213 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8214 * s/freebsd.h (START_FILES):
8215 * s/darwin.h (START_FILES):
8216 * s/cygwin.h (START_FILES):
8217 * s/aix4-2.h (LIB_STANDARD):
8218 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8219 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8220 autoconf, not cpp.
8221
d43c06d6
DN
82222010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8223
28823648
DN
8224 Remove NEED_BSDTTY and NEED_UNISTD_H.
8225 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8226 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8227 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8228 <sys/ptyio.h> and <unistd.h>.
8229
aca00430
DN
8230 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8231
d43c06d6
DN
8232 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8233 * s/gnu.h (START_FILES): Remove empty definition.
8234
3e56b11d
JD
82352010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8236
8237 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8238
e3cf0cde
GM
82392010-05-06 Glenn Morris <rgm@gnu.org>
8240
8241 * Makefile.in (CPP, LN_S): Remove unused variables.
8242
774b9a60
SM
82432010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8244
8245 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8246
4ab92842
LM
82472010-05-05 Lawrence Mitchell <wence@gmx.li>
8248
8249 * m/sparc.h: Fix typo in earlier change.
8250
178f2507
SM
82512010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8252
8253 Misc tweaks.
8254 * eval.c (Fdefvaralias): Remove unintended nested if.
8255 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8256
80f00217 82572010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
8258
8259 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8260
ef03a4e6
DN
82612010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8262
58eb6cf0
DN
8263 Remove BSD_PGRPS.
8264 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8265 * s/gnu-linux.h (BSD_PGRPS): Remove.
8266 * term.c (dissociate_if_controlling_tty):
8267 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8268 (init_sys_modes, reset_sys_modes):
8269 * emacs.c (main):
8270 * callproc.c (Fcall_process, child_setup): Remove code depending
8271 on BSD_PGRPS.
8272
ef03a4e6
DN
8273 Remove POSIX_SIGNALS.
8274 * s/usg5-4.h (POSIX_SIGNALS):
8275 * s/netbsd.h (POSIX_SIGNALS):
8276 * s/msdos.h (POSIX_SIGNALS):
8277 * s/ms-w32.h (POSIX_SIGNALS):
8278 * s/hpux11.h (POSIX_SIGNALS):
8279 * s/gnu.h (POSIX_SIGNALS):
8280 * s/gnu-linux.h (POSIX_SIGNALS):
8281 * s/freebsd.h (POSIX_SIGNALS):
8282 * s/darwin.h (POSIX_SIGNALS):
8283 * s/cygwin.h (POSIX_SIGNALS):
8284 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8285 * s/unixware.h:
8286 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8287 * process.c (create_process):
8288 * syssignal.h:
8289 * sysdep.c (wait_for_termination, init_signals):
8290 * process.c (create_process):
8291 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8292 remove all code that assumes the contrary.
8293
49628785
GM
82942010-05-04 Glenn Morris <rgm@gnu.org>
8295
27a2cdfc
GM
8296 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8297 variable.
8298 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8299 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8300 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8301 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8302 LD_SWITCH_SYSTEM_tmp.
8303 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8304 New variables, set by configure.
8305
eb21eab5
GM
8306 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8307 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8308 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8309 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8310 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8311
49628785
GM
8312 * s/aix4-2.h (C_SWITCH_SYSTEM):
8313 * m/alpha.h (C_SWITCH_MACHINE):
8314 Move to configure.in.
8315 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8316 New variables, set by configure.
8317 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8318 $c_switch_machine and $c_switch_system.
8319
7dff330b
DN
83202010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8321
8322 * s/hpux10-20.h (LIB_STANDARD): New definition.
8323 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8324 on it, not used anymore.
8325
53967e09
CY
83262010-05-03 Chong Yidong <cyd@stupidchicken.com>
8327
8328 * eval.c (internal_condition_case_n): Rename from
8329 internal_condition_case_2.
8330 (internal_condition_case_2): New function.
8331
8332 * xdisp.c (safe_call): Use internal_condition_case_n.
8333
8334 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8335 (internal_delete_file, Frename_file): Callers changed.
8336
8337 * buffer.c (Fkill_buffer):
8338 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8339
8340 * lisp.h: Update prototypes.
8341
3dee6fdb
GM
83422010-05-03 Glenn Morris <rgm@gnu.org>
8343
8344 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8345 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8346 (LIBXT): Set with configure, not cpp.
8347 (LIBX): Remove.
8348 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8349
a101e0fb
DN
83502010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8351
8352 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8353 The FreeBSD is not needed, the default works, Solaris version is
8354 not needed, and the remaining case is not supported by configure.
8355
f63d0028
JD
83562010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8357
8358 * xsmfns.c (CHDIR_OPT): New define.
8359 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8360 restarting emacs.
8361
8362 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8363 shut_down_emacs.
8364
8365 * emacs.c (USAGE1): Mention --chdir.
8366 (main): Handle --chdir.
8367 (standard_args): Add --chdir.
8368 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8369 #5552).
8370
e4814a9f
DN
83712010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8372
cd03c74a
DN
8373 Remove LD_SWITCH_MACHINE.
8374 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8375 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8376
c3a398a1
DN
8377 Clean up IRIX code.
8378 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8379 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8380
87e7285c
DN
8381 Clean up AIX code.
8382 * m/ibmrs6000.inp: Remove file, unused.
8383 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8384 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8385 definition ...
8386 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8387
80f00217
JB
8388 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8389 unused.
e4814a9f 8390
59ca28de
EZ
83912010-05-01 Eli Zaretskii <eliz@gnu.org>
8392
197daef4
EZ
8393 Emulate POSIX_SIGNALS on MS-Windows.
8394
8395 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8396 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
8397
8398 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8399 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8400 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8401
80f00217
JB
8402 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8403 New stubs.
197daef4 8404
af7c7572
EZ
8405 Miscellaneous fixes of bidi display.
8406
59ca28de
EZ
8407 * xdisp.c (find_row_end): New function, refactored from display_line.
8408 (display_line): Use it.
017ea819
EZ
8409 (extend_face_to_end_of_line): In almost-filled rows, extend only
8410 if the row is R2L and not continued.
166e930d 8411 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8412 Preserve overlay and string info in row->end.
166e930d
EZ
8413 (insert_left_trunc_glyphs): Support addition of left truncation
8414 glyphs to R2L rows.
b47e0dcf 8415 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8416 glyph between adjacent windows. Fix a crash when a display string
8417 is continued to the next line. Don't return zero if cursor was
8418 found by `cursor' property of a display string.
b47e0dcf
EZ
8419 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8420 test for that explicitly.
59ca28de 8421
7acac9f4
GM
84222010-05-01 Glenn Morris <rgm@gnu.org>
8423
8424 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8425 for clarity.
8426 (OTHER_OBJ): Remove.
8427 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8428 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8429
45841e65
KK
84302010-05-01 Karel Klíč <kklic@redhat.com>
8431
8432 * fileio.c (Ffile_selinux_context): Context functions may return null.
8433
afc61943
DN
84342010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8435
80f00217 8436 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8437
5a1bb006
GM
84382010-04-30 Glenn Morris <rgm@gnu.org>
8439
8440 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8441 (OTHER_OBJ): Define as a separate variable, for clarity.
8442
210af043
J
84432010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8444
2f8f196d 8445 * xsettings.c: Include limits.h and update file comment.
210af043 8446
0a7df391
GM
84472010-04-30 Glenn Morris <rgm@gnu.org>
8448
d5096f16
GM
8449 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8450 Set with configure, not cpp.
8451 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8452
7eb1ac33
GM
8453 * Makefile.in (mallocobj): Remove.
8454 (otherobj): Simplify using @OTHER_OBJ@.
8455
517d086b
GM
8456 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8457 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8458 Don't bother making nsgui.h dependency platform-specific.
8459
0a7df391
GM
8460 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8461
d6d23852
SM
84622010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8463
d2630aef
SM
8464 * process.c (read_process_output, exec_sentinel): Don't burp if the
8465 sentinel/filter kills the current buffer (bug#6060).
8466
f9dddf52 8467 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8468 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8469 Remove unused var `args'.
8470 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8471 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8472 * doc.c (store_function_docstring): Use XSETCAR.
8473
f1e3642a
GM
84742010-04-28 Glenn Morris <rgm@gnu.org>
8475
faf535f8
GM
8476 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8477 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8478
c40f9449
GM
8479 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8480
658f86ca
GM
8481 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8482 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8483
bc0b5f61
GM
8484 * Makefile.in (FONT_OBJ): New, set by configure.
8485 (FONT_DRIVERS): Use $FONT_OBJ.
8486
294c50a0
GM
8487 * Makefile.in (LIBXMU): Set with configure, not cpp.
8488 * s/aix4-2.h (LIBXMU):
8489 * s/hpux10-20.h (LIBXMU):
8490 Remove definition, now set in configure.
8491
e6ec4e99
GM
8492 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8493
f1e3642a
GM
8494 * m/amdx86-64.h [i386]: Move this test to configure.in.
8495
c6ea2936
GM
84962010-04-27 Glenn Morris <rgm@gnu.org>
8497
8fdac2c3
GM
8498 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8499 * s/unixware.h (NEED_LIBW): Remove definition.
8500
986fb647
GM
8501 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8502 (TOOLKIT_LIBW): New, set by configure.
8503 (@X_TOOLKIT_TYPE@): No longer define it.
8504
c6ea2936
GM
8505 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8506 (MOTIF_LIBW): Set with configure, not cpp.
8507 * s/aix4-2.h (LIB_MOTIF):
8508 * s/gnu-linux.h (LIB_MOTIF):
8509 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8510
aaa36002
DN
85112010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8512
8513 Reduce CPP usage.
8514 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8515 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8516 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8517 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8518 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8519
b678dd8b
GM
85202010-04-27 Glenn Morris <rgm@gnu.org>
8521
76cda504
GM
8522 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8523 since the defaults (set by the system file) are fine in most cases.
8524 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8525 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8526 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8527 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8528 Remove definitions, since they are set correctly in s/gnu-linux.h.
8529 * s/freebsd.h (START_FILES, LIB_STANDARD):
8530 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8531 * s/hpux10-20.h (START_FILES):
8532 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8533 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8534
b678dd8b
GM
8535 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8536 (MOTIF_LIBW): Use $LIBXP.
8537 (otherobj): Use $WIDGET_OBJ.
8538
9452ded1
DN
85392010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8540
7e10844c
DN
8541 * Makefile.in (LIBS_MACHINE): Remove, unused.
8542
9452ded1
DN
8543 Use autoconf instead of cpp for LIB_MATH.
8544 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8545 * s/cygwin.h (LIB_MATH): Likewise.
8546 * Makefile.in (LIB_MATH): Do not define with cpp.
8547 (LIBES): Use autoconf for LIB_MATH.
8548
fcebfc6a
KH
85492010-04-26 Kenichi Handa <handa@m17n.org>
8550
8551 * composite.c (Ffind_composition_internal): Fix the return value
8552 for an automatic composition.
8553
39e2ad1b
DN
85542010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8555
8556 Remove all NO_ARG_ARRAY uses.
8557 * fns.c (concat2, concat3, nconc2):
8558 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8559 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8560 * m/xtensa.h (NO_ARG_ARRAY):
8561 * m/template.h (NO_ARG_ARRAY):
8562 * m/sparc.h (NO_ARG_ARRAY):
8563 * m/sh3.h (NO_ARG_ARRAY):
8564 * m/mips.h (NO_ARG_ARRAY):
8565 * m/macppc.h (NO_ARG_ARRAY):
8566 * m/iris4d.h (NO_ARG_ARRAY):
8567 * m/intel386.h (NO_ARG_ARRAY):
8568 * m/ibms390x.h (NO_ARG_ARRAY):
8569 * m/ibms390.h (NO_ARG_ARRAY):
8570 * m/ibmrs6000.h (NO_ARG_ARRAY):
8571 * m/ia64.h (NO_ARG_ARRAY):
8572 * m/hp800.h (NO_ARG_ARRAY):
8573 * m/arm.h (NO_ARG_ARRAY):
8574 * m/amdx86-64.h (NO_ARG_ARRAY):
8575 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8576
adf4f59c
EZ
85772010-04-25 Eli Zaretskii <eliz@gnu.org>
8578
6bdf5d65
EZ
8579 * xdisp.c (display_line): Don't assume 2nd call to
8580 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
8581 (iterate_out_of_display_property): New function, body from pop_it.
8582 (pop_it): Use it.
adf4f59c 8583
dfbbda83
GM
85842010-04-24 Glenn Morris <rgm@gnu.org>
8585
8586 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8587 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8588 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8589 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8590
2d4018aa
EZ
85912010-04-24 Eli Zaretskii <eliz@gnu.org>
8592
a49884a6
EZ
8593 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8594 use `get_next_display_element' and `set_iterator_to_next' to
8595 advance to the next character, when looking for the character that
8596 begins the next row.
8597
76db6fcc 8598 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
8599 definition of "struct Lisp_Symbol".
8600
70eab5c1
GM
86012010-04-24 Glenn Morris <rgm@gnu.org>
8602
8603 * Makefile.in (CRT_DIR): New variable, set by configure.
8604 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8605 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8606
1ad4cc3d
DN
86072010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8608
e769f484
DN
8609 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8610
4196ff33
DN
8611 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8612
879b0ee4
DN
8613 Remove redundant flags.
8614 * s/freebsd.h (C_SWITCH_SYSTEM):
8615 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8616 * s/netbsd.h (C_SWITCH_SYSTEM):
8617 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8618 of these.
8619
03cbbcb8
DN
8620 Simplify m/intel386.h.
8621 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8622 user: ecrt0.c.
8623 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8624 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8625 the only user: s/unixware.h.
8626 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8627 from m/intel386.h.
bba3e508
SM
8628 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8629 Definitions moved here from m/intel386.h.
03cbbcb8 8630
1ad4cc3d
DN
8631 * m/mips.h: Remove #if 0 code.
8632
8785b888
EZ
86332010-04-23 Eli Zaretskii <eliz@gnu.org>
8634
728588cc
EZ
8635 Fix display of composed characters from L2R scripts in bidi buffers.
8636 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8637 After advancing IT past the composition, resync the bidi iterator
8638 with IT's position. (Bug#5977)
8639
a63f80b4
DN
86402010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8641
8642 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
8643 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
8644
ff5dec5c
SM
86452010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8646
8647 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
8648
8785b888
EZ
86492010-04-23 Eli Zaretskii <eliz@gnu.org>
8650
58ccf243 8651 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
8652 * xdisp.c (pop_it): When the stack is popped after displaying
8653 from a string, bidi-iterate to exit from the text portion covered
8654 by the `display' property or overlay. (Bug#5988, bug#5920)
8655
feeb1604
DN
86562010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8657
8e324eb6
DN
8658 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
8659 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
8660
809fcaba
DN
8661 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
8662 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
8663
ed710380
DN
8664 Simplify STARTFILES definition.
8665 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
8666 relying on Makefile.in to define it.
8667 * s/cygwin.h (START_FILES): Likewise.
8668 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
8669
feeb1604
DN
8670 Clean up Solaris code.
8671 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
8672 (LIB_MOTIF): Remove, configure takes care of this.
8673 (NOT_USING_MOTIF): Remove, unused.
8674 * xrdb.c: Remove #if 0-ed #include.
8675 (SYSV): Remove conditional for old SysV.
8676 * sysdep.c (closedir): Remove conditional code for Solaris,
8677 Solaris has closedir.
8678
a0d0b563
JD
86792010-04-22 Jan Djärv <jan.h.d@swipnet.se>
8680
8681 * xsettings.c (read_and_apply_settings): Check if current_font is
8682 NULL before strcmp (Bug#6001).
8683
56bae7c7
DN
86842010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
8685
8686 Clean up HP-UX files.
8687 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
8688 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
8689 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
8690 * s/hpux10-20.h: ... to the only user, here.
8691
372b7a95
EZ
86922010-04-21 Eli Zaretskii <eliz@gnu.org>
8693
8694 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
8695 use buffer-local values of paragraph-start and paragraph-separate.
8696 <paragraph_start_re, paragraph_separate_re>: Rename from
8697 fallback_paragraph_start_re and fallback_paragraph_separate_re.
8698 (Bug#5992)
8699
f904c0f9
JD
87002010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8701
8702 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
8703 current_tool_bar_style are new.
8704 (store_config_changed_event): Rename from store_font_changed_event.
8705 (XSETTINGS_TOOL_BAR_STYLE): New define.
8706 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
8707 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
8708 HAVE_XFT.
8709 (something_changedCB): store_font_changed_event is now
c4cc8b9a 8710 store_config_changed_event.
bba3e508
SM
8711 (parse_settings): Rename from parse_xft_settings.
8712 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 8713 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
8714 (apply_xft_settings): Take current settings as parameter. Do not
8715 call read_(xft)_settings.
8716 (read_and_apply_settings): New function.
bba3e508
SM
8717 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
8718 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 8719 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
8720 Call read_and_apply_settings unconditionally.
8721 (xsettings_initialize): Call init_xsettings.
8722 (Ftool_bar_get_system_style): New function.
8723 (syms_of_xsettings): Define Qmonospace_font_name and
8724 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 8725 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 8726 dynamic-setting.
01c35094 8727 Move misplaced HAVE_GCONF.
f904c0f9
JD
8728
8729 * xsettings.h (Ftool_bar_get_system_style): Declare.
8730
8731 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
8732 Qtext, Qboth, Qboth_horiz are new.
8733 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
8734 Vtool_bar_style, tool_bar_max_label_size.
8735
8736 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
8737
8738 * keyboard.c: QClabel is new.
8739 (parse_tool_bar_item): Take out QClabel from tool bar items.
8740 Try to construct a label if ther is no QClabel.
8741 (syms_of_keyboard): Intern :label as QClabel.
8742
8743 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
8744 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
8745 New.
8746
8747 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
8748 dynamic-setting.el.
8749
8750 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
8751 (xg_make_tool_item, xg_show_toolbar_item): New function.
8752 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
8753 Call xg_make_tool_item to make a tool bar item.
8754 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
8755
8756 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
8757 into account for toolbars.
8758
c632dfda
JD
87592010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8760
8761 * data.c (make_blv): Declarations before code (Bug#5993).
8762
10efe302
GM
87632010-04-21 Glenn Morris <rgm@gnu.org>
8764
8765 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
8766 Define using autoconf, not cpp.
8767 (LIBXSM): New variable, set by autoconf.
8768 (LIBXT): Use $LIBXSM.
8769
4285ac5a
DN
87702010-04-21 Dan Nicolaescu <local_user@dannlt>
8771
3ec759e7
DN
8772 Remove NOMULTIPLEJOBS, unused.
8773 * s/template.h (NOMULTIPLEJOBS):
8774 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
8775
4285ac5a
DN
8776 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8777 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
8778 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
8779 detects -znocombreloc and passes it to the linker
8780 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
8781
2807228d
GM
87822010-04-21 Glenn Morris <rgm@gnu.org>
8783
8784 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
8785
574c05e2
KK
87862010-04-21 Karel Klíč <kklic@redhat.com>
8787
8788 * Makefile.in (LIBSELINUX_LIBS): New.
8789 (LIBES): Add $LIBSELINUX_LIBS.
8790 * eval.c, lisp.h (call7): New function.
8791 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
8792 (Ffile_selinux_context, Fset_file_selinux_context):
8793 New functions.
8794 (Fcopy_file): New parameter preserve-selinux-context.
8795 (Frename_file): Preserve selinux context when renaming by copy-file.
8796
91eac4bb 87972010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 8798 Eli Zaretskii <eliz@gnu.org>
91eac4bb 8799
50426a04
JB
8800 Don't depend on cm.c or termcap.c on Windows, use stubs.
8801 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
8802 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
8803 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
8804 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
8805 (sys_tputs, sys_tgetstr): New stubs.
8806 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
8807 (tputs, tgetstr): New; define to sys_*.
91eac4bb 8808
938efb77
JB
88092010-04-20 Juanma Barranquero <lekktu@gmail.com>
8810
8811 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8812
b4bf28b7
SM
88132010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8814
8b1e1112
SM
8815 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8816 Just signal a warning rather than an error when inside a let.
8817 (Fmake_variable_frame_local): Add the same test.
8818
933ac235
SM
8819 * font.c (syms_of_font): Make the style table vars read-only.
8820
b4bf28b7
SM
8821 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8822 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8823
8824 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8825
93d68d0c
EZ
88262010-04-20 Eli Zaretskii <eliz@gnu.org>
8827
8828 Fix R2L paragraph display on TTY.
8829
8830 * xdisp.c (unproduce_glyphs): New function.
8831 (display_line): Use it when produced glyphs are discarded from R2L
8832 glyph rows.
8833 (append_composite_glyph): In R2L rows, prepend the glyph rather
8834 than appending it.
8835
8836 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8837 rather than append it. Set up the resolved_level and bidi_type
8838 attributes of the appended glyph.
283ccc18
EZ
8839 (produce_special_glyphs): Mirror the backslash continuation
8840 character in R2L lines.
93d68d0c 8841
283ccc18 8842 Implement display of R2L paragraphs in GUI sessions.
26cdf528 8843
283ccc18
EZ
8844 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8845 append_stretch_glyph.
bba3e508
SM
8846 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8847 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
8848 (append_stretch_glyph): In reversed row, prepend the glyph rather
8849 than append it. Set resolved_level and bidi_type of the glyph.
8850 (extend_face_to_end_of_line): If the row is reversed, prepend a
8851 stretch glyph whose width is such that the rightmost glyph will be
8852 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
8853 TTY frames in testing whether a line needs face extension.
8854 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
8855 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8856 region face.
bba3e508
SM
8857 (set_cursor_from_row, display_line):
8858 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 8859 row->continuation_lines_width.
283ccc18
EZ
8860 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8861 are at ZV. Fixes a crash when reseated to ZV by
8862 try_window_reusing_current_matrix.
45903529
EZ
8863 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8864 which happens with R2L glyph rows. Fixes a crash when inserting a
8865 character at end of an R2L line.
283ccc18
EZ
8866 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8867 treat them as having zero-width characters. Improve comments.
8868 Don't reverse pos_before and pos_after for reversed glyph rows.
8869 Set cursor.x to negative value when the cursor might be on the
8870 left fringe.
8871 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8872 left fringe, not the right one.
f951a506
EZ
8873 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8874 (erase_phys_cursor): For reversed cursor_row, support cursor on
8875 the left fringe.
8876
283ccc18
EZ
8877 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8878 of continuation indicators on the fringes.
8879 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8880 left fringe.
8881
f951a506
EZ
8882 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8883 draw cursor on the left fringe.
8884
8885 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8886 cursor on the left fringe.
8887
f951a506
EZ
8888 * dispnew.c (update_text_area): Handle reversed desired rows when
8889 the cursor is on the left fringe.
8890 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8891 below, not by 0, for when the cursor is on the left fringe.
8892
3bb49aaf
JD
88932010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8894
8895 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8896 widget is a scrollbar.
8897
c0be27fd
KH
88982010-04-20 Kenichi Handa <handa@m17n.org>
8899
8900 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8901 only when the arg CHARSET_LIST is nil.
8902
ce5b453a
SM
89032010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8904
8905 Make variable forwarding explicit rather the using special values.
8906 Basically, this makes the structure of buffer-local values and object
8907 forwarding explicit in the type of Lisp_Symbols rather than use
8908 special Lisp_Objects for that. This tends to lead to slightly more
8909 verbose code, but is more C-like, simpler, and makes it easier to make
8910 sure we handled all cases, among other things by letting the compiler
8911 help us check it.
8912 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8913 Removing forwarding objects.
8914 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8915 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8916 explicit rather than hiding them inside Lisp_Object "values".
8917 (XFWDTYPE): New macro.
8918 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8919 (XBUFFER_LOCAL_VALUE): Remove.
8920 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8921 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8922 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8923 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8924 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8925 Remove the Lisp_Misc_* header.
8926 (struct Lisp_Buffer_Local_Value): Redefine.
8927 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8928 (struct Lisp_Misc_Any): Add filler to get the right size.
8929 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8930 Lisp_Intfwd.
8931 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8932 (DEFVAR_KBOARD): Allocate a forwarding object.
8933 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8934 (let_shadows_global_binding_p): New function.
8935 (union Lisp_Val_Fwd): New type.
8936 (make_blv): New function.
8937 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8938 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8939 (swap_in_symval_forwarding, find_symbol_value, Fset)
8940 (let_shadows_buffer_binding_p, set_internal, default_value)
8941 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8942 (Fkill_local_variable, Fmake_variable_frame_local)
8943 (Flocal_variable_p, Flocal_variable_if_set_p)
8944 (Fvariable_binding_locus):
8945 * xdisp.c (select_frame_for_redisplay):
8946 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8947 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8948 * frame.c (store_frame_param):
8949 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8950 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8951 value structure.
8952 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8953 (clone_per_buffer_values): Only adjust markers into the current buffer.
8954 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8955 (Fbuffer_local_value, set_buffer_internal_1)
8956 (swap_out_buffer_local_variables):
8957 Adapt to the new symbol value structure.
8958 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8959 (defvar_per_buffer): Take a new arg for the fwd object.
8960 (buffer_lisp_local_variables): Return a proper alist (different fix
8961 for bug#4138).
8962 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8963 (Fgarbage_collect): Don't handle buffer_defaults specially.
8964 (mark_object): Handle new symbol value structure rather than the old
8965 special Lisp_Misc_* objects.
8966 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8967 * term.c (set_tty_color_mode):
8968 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8969 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8970 a buffer_local_flags.
8971 * print.c (print_object): Get rid of impossible forwarding objects.
8972
fd3998ff
EZ
89732010-04-19 Eli Zaretskii <eliz@gnu.org>
8974
8975 * bidi.c (bidi_get_type, bidi_get_category)
8976 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8977 (bidi_type_of_next_char, bidi_level_of_next_char):
8978 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8979
e42cd1a7
JB
89802010-04-19 Juanma Barranquero <lekktu@gmail.com>
8981
8982 * dired.c (Ffile_attributes): Fix typo in docstring.
8983
6e104790 89842010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8985
8986 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8987 NSInteger (Bug#5811).
8988
6e104790 89892010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8990
8991 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8992 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8993
6e104790 89942010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8995
8996 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8997
6e104790
SM
89982010-04-19 Chong Yidong <cyd@stupidchicken.com>
8999
9000 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9001 terminal frames (Bug#5837).
9002
37dcfea0
EZ
90032010-04-19 Eli Zaretskii <eliz@gnu.org>
9004
d1da276f
EZ
9005 * .gdbinit (xsubchartable): New command.
9006
37dcfea0
EZ
90072010-04-19 Eli Zaretskii <eliz@gnu.org>
9008
9009 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 9010 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
9011 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9012 and
9013 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9014
e9515805
SM
90152010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9016
9017 * alloc.c (Fpurecopy): Hash-cons if requested.
9018 (syms_of_alloc): Update purify-flag docstring.
9019
22aa44a8
JD
90202010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9021
9022 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9023 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9024
ebb5722e
EZ
90252010-04-17 Eli Zaretskii <eliz@gnu.org>
9026
9027 Fix a crash when an NSM character is inserted at BEGV.
9028
9029 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9030 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9031 NEUTRAL_B or UNKNOWN_BT.
9032
0f4442ef
EZ
90332010-04-16 Eli Zaretskii <eliz@gnu.org>
9034
9035 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9036 other rows with cursor unless they are different from this row and
9037 this row is part of a continued line. (Bug#5943)
9038
7d4e45f8
DN
90392010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9040
9041 * s/freebsd.h: Restore osreldate.h include.
9042 Suggested by Naohiro Aota.
9043
5ba5ec85
J
90442010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9045
9046 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9047
20af301d
CY
90482010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9049
9050 * s/cygwin.h: Avoid linking against static libgcc.
9051
a4b000fb
JL
90522010-04-15 Juri Linkov <juri@jurta.org>
9053
9054 * window.c: Add Qscroll_command.
9055 Remove Vscroll_preserve_screen_position_commands.
9056 (window_scroll_pixel_based, window_scroll_line_based): Check the
9057 `scroll-command' property on the last command instead of searching
9058 the last command in Vscroll_preserve_screen_position_commands.
9059 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9060 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9061 (scroll-preserve-screen-position): Doc fix.
9062 (Vscroll_preserve_screen_position_commands): Remove variable.
9063
bc319ba4
DN
90642010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9065
6bb24457
DN
9066 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9067
19d4c244
DN
90682010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9069
9070 Reduce cpp use in Makefile.in.
9071 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9072 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9073 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9074 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9075 (CRT0_COMPILE): Remove, inline it in the only user.
9076
32129746
JL
90772010-04-14 Juri Linkov <juri@jurta.org>
9078
9079 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9080 `scroll-up-command' and `M-v' from `scroll-down' to
9081 `scroll-down-command'.
9082
9013a7f8
JL
90832010-04-14 Juri Linkov <juri@jurta.org>
9084
9085 * window.c (Vscroll_preserve_screen_position_commands): New variable
9086 with the default value as the list of Qscroll_down and Qscroll_up.
9087 (window_scroll_pixel_based, window_scroll_line_based): Search the
9088 last command in the list Vscroll_preserve_screen_position_commands
9089 instead of comparing with Qscroll_up and Qscroll_down.
9090
4bef8d26
JD
90912010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9092
92848133
JD
9093 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9094 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9095 does that.
9096
4bef8d26
JD
9097 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9098 to zero.
9099
58b963f7
SM
91002010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9101
84164a0d
SM
9102 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9103
2b0a91e7
SM
9104 Try to solve the problem of spurious EOF chars in long lines of text
9105 sent to interactive subprocesses.
9106 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9107 (system_process_attributes): Remove unused var `ttotal'.
9108 * process.c (send_process): Don't bother breaking long line with EOF
9109 chars when talking to ttys any more.
9110 (wait_reading_process_output): Output a warning when called in such
9111 a way that it could block without being interruptible.
9112
58b963f7
SM
9113 Try to detect file modification within the same second.
9114 * buffer.h (struct buffer): New field modtime_size.
9115 * buffer.c (reset_buffer): Initialize it.
9116 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9117 (Fverify_visited_file_modtime): Check it.
9118 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9119 (Fset_visited_file_modtime): Set (or clear) it.
9120
01f5787b
SM
91212010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9122
9123 * process.c (status_notify): Remove unused var `ro'.
9124
83725342
JD
91252010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9126
9127 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9128 more than one visual (Bug#5938).
9129
b9465836
DN
91302010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9131
50426a04
JB
9132 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9133 Undefine.
b9465836 9134
8d9c8ece
DN
91352010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9136
b1f52161
DN
9137 Remove C_SWITCH_SYSTEM_TEMACS.
9138 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9139 (malloc, realloc, free): Use emacs, not temacs for conditional
9140 definition.
9141
9142 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9143 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9144
8d9c8ece
DN
9145 Use autoconf, not cpp for some variables.
9146 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9147 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9148 (ALL_CFLAGS): Use them as make variables.
9149 (really-lwlib, really-oldXMenu): Do not pass them.
9150
1ecb2d3f
JD
91512010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9152
9153 * xmenu.c (apply_systemfont_to_dialog): New.
9154 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9155
3a4fa2f2
SM
91562010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9157
97e53006
SM
9158 * process.c (exec_sentinel): Preserve current-buffer.
9159
3a4fa2f2
SM
9160 * process.c (read_process_output): Move the save-current-buffer to
9161 apply to both the filter and the non-filter branches.
9162
88df7221
DN
91632010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9164
9165 * s/msdos.h (UNEXEC): New definition.
9166
5634ff85
YM
91672010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9168
6eff5c3d
YM
9169 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9170 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9171
9172 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9173 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9174 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9175 TRY_WINDOW_CHECK_MARGINS.
9176
9177 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
9178 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9179 width only when it is for padding.
5634ff85 9180
b13aef54
J
91812010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9182
9183 * xfns.c (Fx_show_tip): Call try_window in a loop until
9184 fonts_changed_p is zero (Bug#2423).
9185
21d28484
EZ
91862010-04-08 Eli Zaretskii <eliz@gnu.org>
9187
9188 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9189 the end of TEXT_AREA. (Bug#5856)
9190
0269ef77
JD
91912010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9192
9193 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9194 HAVE_GCONF.
9195
5930fe97
EZ
91962010-04-08 Eli Zaretskii <eliz@gnu.org>
9197
9198 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9199 prev.orig_type, for resolving type of NSM. (Bug#5858)
9200
99852628
JD
92012010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9202
9203 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9204 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9205 in current_font.
9206 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
9207 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9208 New functions.
9209 (syms_of_xsettings): Initialize current_font.
9210 defsubr Sfont_get_system_normal_font.
99852628 9211
686b968e
JB
9212 * xsettings.h (Ffont_get_system_normal_font)
9213 (xsettings_get_system_normal_font): Declare.
99852628
JD
9214
9215 * xfns.c (extern xlwmenu_default_font): Remove.
9216 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9217 to xlwmenu.c.
9218
9219 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9220 menu items in UTF-8.
9221
2f8f196d 9222 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 9223 (apply_systemfont_to_menu): New function.
bba3e508
SM
9224 (set_frame_menubar, create_and_show_popup_menu):
9225 Call apply_systemfont_to_menu.
99852628 9226
7fc874c4
J
92272010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9228
9229 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9230 FRAME_LINE_TO_PIXEL_Y.
9231
9232 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9233 pixelwidth/height.
9234
863bf481
DN
92352010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9236
5e5a3b92
DN
9237 Simplify code for HP machines.
9238 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9239 for GNU_LINUX, not needed.
9240 (UNEXEC, NEED_BSDTTY): Move definitions...
9241 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9242
863bf481
DN
9243 * m/iris4d.h (UNEXEC): Move definition ...
9244 * s/irix6-5.h (UNEXEC): ... here.
9245
3e6bec3b
JD
92462010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9247
9248 * xfns.c (set_machine_and_pid_properties): New function.
9249 (Fx_create_frame): Call set_machine_and_pid_properties.
9250
2912322b
SM
92512010-04-03 Eli Zaretskii <eliz@gnu.org>
9252
bba3e508
SM
9253 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9254 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
9255 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9256
2912322b
SM
9257 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9258 in this function. (Bug#5703)
9259
92602010-04-03 Chong Yidong <cyd@stupidchicken.com>
9261
9262 * nsterm.h: Fix last change.
9263
c435b432
DN
92642010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9265
a568f507
DN
9266 * m/intel386.h (NO_REMAP): Move definition ...
9267 * s/msdos.h (NO_REMAP): ... here.
9268
4cd9f6c2
DN
9269 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9270
c435b432
DN
9271 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9272 used on those platforms.
9273
42a2c622
DN
92742010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9275
9276 Remove extern errno declarations.
9277 * xterm.c:
9278 * xrdb.c:
9279 * w32term.c:
9280 * unexec.c:
9281 * unexaix.c:
9282 * sysdep.c:
9283 * process.c:
9284 * lread.c:
9285 * keyboard.c:
9286 * floatfns.c:
9287 * filelock.c:
9288 * fileio.c:
9289 * emacs.c (main):
9290 * ecrt0.c:
9291 * dispnew.c:
9292 * callproc.c:
9293 * buffer.c: Remove errno extern declarations.
9294 * s/netbsd.h (NEED_ERRNO): Remove.
9295
8224f93d
DN
92962010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9297
9298 Remove all uses of LIBX11_SYSTEM.
9299 * Makefile.in (LIBX11_SYSTEM): Remove.
9300 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9301 instead.
9302
814062c7
EZ
93032010-04-01 Eli Zaretskii <eliz@gnu.org>
9304
ed68db4d
EZ
9305 Remove support for DJGPP v1.x (bug#5813).
9306
9307 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
9308 * s/msdos.h:
9309 * unexec.c (make_hdr, copy_text_and_data):
9310 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 9311 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
9312 (IT_set_terminal_modes, __write, _rename, gethostname)
9313 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9314 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9315 the value of __DJGPP__.
ed68db4d
EZ
9316 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9317 compatibility code.
8224f93d
DN
9318 * lread.c:
9319 * gmalloc.c (memalign):
9320 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9321 * emacs.c (main):
9322 * dosfns.c (init_dosfns):
ed68db4d
EZ
9323 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9324
52f4d8d5
EZ
93252010-04-01 Eli Zaretskii <eliz@gnu.org>
9326
814062c7
EZ
9327 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9328 string with `cursor' property comes from an `after-string'
9329 overlay. (Bug#5816)
9330
0dc2e11d
GM
93312010-04-01 Glenn Morris <rgm@gnu.org>
9332
9333 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9334 Define as Makefile variables.
9335 (LIBX): Use above variables rather than directly using autoconf.
9336
1d29df59
DN
93372010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9338
9339 Clean up BSD_SYSTEM use.
9340 * xterm.c:
9341 * process.c:
9342 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9343 for including <sys/ioctl.h>.
9344 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9345 code is only used for MSDOS.
9346
1546c559
JL
93472010-03-31 Juri Linkov <juri@jurta.org>
9348
9349 * image.c: Add `Qextension_data'.
9350 (syms_of_image): Initialize and staticpro `Qextension_data'.
9351 (Fimage_metadata): Rename from `Fimage_extension_data'.
9352 (gif_load): Put GIF extension data to the property
9353 `Qextension_data'.
9354
6521c534
CY
93552010-03-31 Chong Yidong <cyd@stupidchicken.com>
9356
9357 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9358 * nsterm.h: Fix prototype.
9359
52c30783
EZ
93602010-03-31 Eli Zaretskii <eliz@gnu.org>
9361
9362 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9363 trailing whitespace in right-to-left rows.
9364
855a0da7
SM
93652010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9366
9367 Get rid of the direct_output optimizations.
9368 * keyboard.c (nonundocount): Remove extern declaration.
9369 (command_loop_1): Remove brittle optimisation for cheap and
9370 common operations.
9371 * xdisp.c (redisplay_internal): Don't bother checking
9372 redisplay_performed_directly_p any more.
9373 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9374 any more.
9375 * dispnew.c (redisplay_performed_directly_p)
9376 (direct_output_for_insert, direct_output_forward_char):
9377 * dispextern.h (redisplay_performed_directly_p)
9378 (direct_output_for_insert, direct_output_forward_char): Remove.
9379 * cmds.c (nonundocount): Make it static.
9380
85738751 93812010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
9382
9383 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9384
85738751 93852010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
9386
9387 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9388 invisible (Bug#5766).
9389
85738751 93902010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 9391
855a0da7
SM
9392 * xdisp.c (x_consider_frame_title, update_window_cursor):
9393 Remove HAVE_NS conditionals.
194d44e7 9394 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
9395
9396 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9397 filename for the title.
9398 (ns_set_doc_edited): Do nothing if the selected window is a
9399 minibuffer window.
9400
9401 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9402 ns_set_doc_edited.
9403
9404 * nsterm.m: Remove unneeded prototype.
9405
85738751 94062010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9407
9408 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9409 in the DOC file. (Bug#5336)
9410
85738751 94112010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9412
9413 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9414
75d1428c
SM
94152010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9416
9417 * window.c (keys_of_window): Remove redundant/overridden bindings.
9418
82043cfb
EZ
94192010-03-30 Eli Zaretskii <eliz@gnu.org>
9420
9421 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9422 Restore original behavior when the iterator is not bidi_p.
9423
b5dd0ae7
DN
94242010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9425
9426 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9427
bd924a5d
EZ
94282010-03-30 Eli Zaretskii <eliz@gnu.org>
9429
9430 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9431 are outside the range of cached character positions.
9432
3580374b
JB
94332010-03-30 Juanma Barranquero <lekktu@gmail.com>
9434
9435 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9436
a7b02820
EZ
94372010-03-30 Eli Zaretskii <eliz@gnu.org>
9438
9439 Initial support for bidirectional editing.
9440
9441 * Makefile.in (obj): Include bidi.o.
9442 (bidi.o): New target.
9443
9444 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9445 ($(BLD)/bidi.$(O)): New target.
9446
9447 * bidi.c: New file.
9448
9449 * buffer.h (struct buffer): New members bidi_display_reordering
9450 and bidi_paragraph_direction.
9451
9452 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9453 and bidi_paragraph_direction.
9454 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9455 and bidi-paragraph-direction.
9456 (Fbuffer_swap_text): Swap the values of
9457 bidi_display_reordering and bidi_paragraph_direction.
9458
9459 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9460 (bidi_type_t, bidi_dir_t): New types.
9461 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9462 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9463 prev_stop, base_level_stop, and eol_pos.
9464 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9465 (IT_STACK_SIZE): Enlarge to 5.
9466 (struct glyph_row): New member reversed_p.
9467 <string_buffer_position>: Update prototype.
9468 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9469 glyph_row if bidi_it.paragraph_dir == R2L.
9470 (struct glyph): New members resolved_level and bidi_type.
9471
9472 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9473 processing or buffer's direction is right-to-left.
9474 (prepare_desired_row): Preserve the reversed_p flag.
9475 (row_equal_p): Compare the reversed_p attributes as well.
9476
bba3e508
SM
9477 * xdisp.c (init_iterator): Initialize it->bidi_p.
9478 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9479 buffer's value of bidi_paragraph_direction.
9480 (reseat_1): Initialize bidi_it.first_elt.
9481 (set_iterator_to_next, next_element_from_buffer): Use the value of
9482 paragraph_embedding to determine the paragraph direction.
9483 (set_iterator_to_next): Under bidi reordering, call
9484 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9485 new_paragraph flag is set in the bidi iterator.
9486 (next_element_from_buffer): If bidi_it.first_elt is set,
9487 initialize paragraph direction and find the first character to
9488 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9489 prime the bidi iterator starting at the line's beginning.
9490 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9491 non-linearity of the bidi iteration. Likewise for when we back up
9492 beyond the previous stop_charpos. When moving across stop_charpos,
9493 record it in prev_stop.
9494 (display_line): Set row->end and it->start for the next row to the
9495 next character in logical order. Always extend reversed_p rows to
9496 the end of line, even if they end at ZV. Copy the reversed_p flag
9497 to the next glyph row. Keep calling set_cursor_from_row for
9498 bidi-reordered rows even if we already have a possible candidate
9499 for cursor position. Set row_end after all the row's glyphs have
9500 been produced, by looping over the glyphs. Record the position
9501 after EOL in it->eol_pos, and use it to set end_pos of the last
9502 row produced for a continued line.
9503 <Qright_to_left, Qleft_to_right>: New variables.
9504 (syms_of_xdisp): Initialize and staticpro them.
9505 (string_buffer_position_lim): New function.
9506 (string_buffer_position): Most of code moved to
9507 string_buffer_position_lim. Last argument and return value are
9508 now EMACS_INT; all callers changed.
9509 (set_cursor_from_row): Rewritten to support bidirectional text and
9510 reversed glyph rows.
bba3e508
SM
9511 (text_outside_line_unchanged_p, try_window_id):
9512 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9513 paragraph direction can be affected by the change.
9514 (append_glyph, append_composite_glyph)
9515 (produce_image_glyph, append_stretch_glyph): Set the
9516 resolved_level and bidi_type members of each glyph.
9517 (append_glyph): If the glyph row is reversed, prepend the glyph
9518 rather than appending it.
9519 (handle_stop_backwards): New function.
9520 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 9521 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
9522 base_level_stop for the new position.
9523 (handle_invisible_prop): Under bidi iteration, skip invisible text
9524 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9525 paragraph direction. Update IT->prev_stop after skipping
9526 invisible text.
9527 (move_it_in_display_line_to): New variables prev_method
9528 and prev_pos. Compare for strict equality in
9529 BUFFER_POS_REACHED_P.
9530 (try_cursor_movement): Examine all the candidate rows that occlude
9531 point, to return the best match. If rows are bidi-reordered
9532 and point moved backwards, back up to the row that is not a
9533 continuation line, and start looking for a suitable row from
9534 there.
9535
9536 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9537 rather than appending, if the glyph_row's reversed_p flag is set.
9538 Set the resolved_level and bidi_type members of each glyph.
9539
9540 * .gdbinit (pbiditype): New command.
9541 (pgx): Use it to display bidi level and type of the glyph.
9542 (pitx): Display some bidi information about the iterator.
9543 (prowlims, pmtxrows): New commands.
9544
32a8894e
DN
95452010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9546
9547 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9548 * s/usg5-4.h (LIBS_DEBUG):
9549 * s/irix6-5.h (C_DEBUG_SWITCH):
9550 * s/gnu-linux.h (LIBS_DEBUG):
9551 * s/darwin.h (LIBS_DEBUG):
9552 * s/bsd-common.h (LIBS_DEBUG):
9553 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9554 * m/iris4d.h (LIBS_DEBUG):
9555 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9556
9557 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9558 (LIBS_DEBUG): Remove definition.
9559
649dbf36
CY
95602010-03-27 Chong Yidong <cyd@stupidchicken.com>
9561
9562 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9563 Windows.
9564
cad4261f
YM
95652010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9566
9567 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9568 `connect' (Bug#5723).
9569
cd591dbc
HE
95702010-03-25 Helmut Eller <eller.helmut@gmail.com>
9571
9572 * process.c (Fmake_network_process): Call `select' for interrupted
9573 `connect' rather than creating new socket (Bug#5173).
9574
e867cb5d 95752010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
9576
9577 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9578
9579 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9580
9581 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9582
e867cb5d 95832010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
9584
9585 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9586 XLoadQueryFont.
9587
e867cb5d 95882010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
9589
9590 * coding.c (decode_coding_ccl): Fix previous change for the
9591 multibyte case.
fb608df3
KH
9592 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9593 case that the output buffer is fullfilled.
9594 (encode_coding): Setup ccl program here.
fbdc1721 9595
5845f0ed
DN
95962010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9597
814fb708
DN
9598 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9599
5845f0ed
DN
9600 Simplify LIBS_MACHINE definitions.
9601 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9602 * m/iris4d.h (LIBS_MACHINE): Likewise.
9603 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9604 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 9605 * s/netbsd.h: Remove commented out code.
5845f0ed 9606
b7064064
DN
96072010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9608
df7734b2
DN
9609 Remove dead code dealing with POSIX_SIGNALS.
9610 * atimer.c (set_alarm): Remove dead code, all USG systems define
9611 POSIX_SIGNALS.
9612 * data.c (arith_error): Likewise.
9613 * keyboard.c (input_available_signal, handle_user_signal)
9614 (interrupt_signal): Likewise.
9615 * process.c (sigchld_handler): Likewise.
9616 (create_process): Remove if 0 code. Remove HPUX conditional when
9617 !defined (POSIX_SIGNALS), it cannot be true.
9618 * syssignal.h: Remove USG5_4 and USG conditionals when
9619 !POSIX_SIGNALS, they cannot be true.
9620
b7064064
DN
9621 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9622 NO_SOCK_SIGIO, not used anymore.
9623
55da5ee3
DN
96242010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9625
0be96e3a
DN
9626 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9627 support vax on BSDs.
9628
55da5ee3
DN
9629 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9630 * s/aix4-2.h (ORDINARY_LINK): ... here.
9631
c0282183
AS
96322010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9633
82c3d67a
AS
9634 * Makefile.in (abs_builddir): Define.
9635 (bootstrap_exe): Use it.
9636 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 9637
3613edce
SM
96382010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9639
9640 * Makefile.in (bootstrap_exe): Use an absolute name.
9641
7f110ddc
DN
96422010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9643
22e87574
DN
9644 Remove support for old GNU/Linux using libc version 5.
9645 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
9646 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
9647
05a670e6
DN
9648 Consolidate redundant definitions in s/bsd-common.h.
9649 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9650 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9651 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
9652 doing it in all files that include this one.
9653 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9654 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9655 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9656 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9657 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9658 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9659 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9660 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9661 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9662
2968f561
DN
9663 Consolidate redundant definitions.
9664 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
9665 it's undefined in all files that include this one.
9666 (POSIX_SIGNALS): Define here instead of doing it in all files that
9667 include this one.
9668 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9669 (POSIX_SIGNALS): Do not define.
9670 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9671 (POSIX_SIGNALS): Do not define.
9672 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9673 (POSIX_SIGNALS): Do not define.
9674
15d25dc0
DN
9675 Remove support for old UNIX System V systems.
9676 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
9677 * s/usg-5-4-2.h: Remove.
9678
07e339e4
DN
9679 Remove support for Solaris on PPC and for old versions.
9680 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
9681 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
9682 that cancel each other.
9683 * s/sol2-3.h:
9684 * s/sol2-4.h:
9685 * s/sol2-5.h: Remove.
9686 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
9687 (NO_REMAP): Remove, unused.
9688 (UNEXEC): Move definition ...
9689 * s/aix4-2.h (UNEXEC): ... here.
9690
7f110ddc
DN
9691 * s/openbsd.h: Remove support for non-ELF and for systems that do
9692 not support shared libraries.
9693 * s/netbsd.h:
9694 * s/freebsd.h: Likewise.
9695
605f35cd
DN
96962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9697
9698 Remove non-working support for lynxos 3.0.
9699 * s/lynxos.h: Remove file.
9700
9701 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
9702 COFF_BSD_SYMBOLS, nothing defines it anymore.
9703
aed71cf4
DN
97042010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9705
9706 Remove obsolete uses of HAVE_SHM.
9707 * emacs.c (standard_args):
9708 (Fdump_emacs):
9709 (syms_of_emacs): Remove code depending on HAVE_SHM.
9710
9711 * alloc.c: Remove HAVE_SHM dependent definition.
9712
9713 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
9714
aded53ff
GM
97152010-03-18 Glenn Morris <rgm@gnu.org>
9716
17284745
GM
9717 * emacs.c (USAGE4): Hard-code bug address.
9718 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
9719 (bug_reporting_address): Remove.
9720 (main): Don't call bug_reporting_address.
9721
aded53ff
GM
9722 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
9723 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
9724
303500aa
CY
97252010-03-15 Chong Yidong <cyd@stupidchicken.com>
9726
9727 * xfns.c (Fx_create_frame):
9728 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
9729 on left.
9730
cef3058f
CY
97312010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
9732
9733 * editfns.c (Fformat): Account for string precision when computing
9734 field width (Bug#5710).
9735
a647d59d
CY
97362010-03-12 Chong Yidong <cyd@stupidchicken.com>
9737
4fa42018
CY
9738 * xfns.c (Fx_create_frame): Set default to Qright.
9739
a647d59d
CY
9740 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
9741 all window systems.
9742
6da23aaa
EZ
97432010-03-12 Eli Zaretskii <eliz@gnu.org>
9744
a96f6398 9745 These changes remove termcap.c from the build on Posix platforms.
83d02def 9746 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
9747 (MSDOS_OBJ): ...to here.
9748 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
9749 now identical to when LIBS_TERMCAP is defined.
9750
9751 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9752
9753 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
9754
a96f6398 9755 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 9756
288f9fc0
CY
97572010-03-10 Chong Yidong <cyd@stupidchicken.com>
9758
9759 * Branch for 23.2.
9760
d48cd3f4
SM
97612010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9762
9763 Cleanup setup of gl_state in various parts of the code.
9764 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
9765 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
9766 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
9767 (skip_chars):
9768 * regex.c (regex_compile): Use it.
9769 (re_compile_pattern): Don't set gl_state.current_syntax_table since
9770 it's now set in regex_compile when/if we need it.
9771
618db430
SM
97722010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
9773
c0335e02
SM
9774 Make it possible to C-g in a tight bytecode loop again (bug#5680).
9775 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
9776 (QUIT): Use it to consolidate code and remove redundancy.
9777 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
9778
254c06a8
SM
9779 * regex.c (regex_compile): Setup gl_state as well.
9780
618db430
SM
9781 * syntax.c (skip_chars): Setup gl_state (bug#3823).
9782 (in_classes): Use CONSP before XCAR/XCDR.
9783
233f0c9f
CY
97842010-03-03 Chong Yidong <cyd@stupidchicken.com>
9785
9786 * keymap.c (Fwhere_is_internal): Use Fequal to compare
9787 definitions, so that keyboard macros are correctly handled
9788 (Bug#5481).
9789
75f80e63
EZ
97902010-03-02 Eli Zaretskii <eliz@gnu.org>
9791
9792 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
9793 text that could be relocated inside the call to emacs_mule_char.
9794 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
9795 (CODING_DECODE_CHAR): Add a comment describing its purpose.
9796
dcfb9bc4
KH
97972010-03-02 Kenichi Handa <handa@m17n.org>
9798
fc9a17bc
KH
9799 * character.c (parse_str_as_multibyte): Fix handling of the
9800 multibyte form of raw-bytes.
9801 (str_as_multibyte): Likewise.
9802
dcfb9bc4
KH
9803 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
9804 form of raw-bytes.
9805
412c01b6
CY
98062010-02-28 Chong Yidong <cyd@stupidchicken.com>
9807
9808 * charset.c (load_charset_map_from_file)
9809 (load_charset_map_from_vector): Zero out allocated
9810 charset_map_entries before using them.
9811
df7e1ea0
AS
98122010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9813
9814 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9815
fe69a722
CY
98162010-02-27 Chong Yidong <cyd@stupidchicken.com>
9817
4ed28cf4
CY
9818 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9819 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 9820
7379cfce
KH
98212010-02-26 Kenichi Handa <handa@m17n.org>
9822
f88cc4d6
KH
9823 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9824
7379cfce
KH
9825 * xdisp.c (reseat_to_string): Fix previous change.
9826
cf2fdcfb
CY
98272010-02-26 David Reitter <david.reitter@gmail.com>
9828
9829 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9830 Lisp_Object (Bug#4736).
9831
cc6c7c75
KH
98322010-02-25 Kenichi Handa <handa@m17n.org>
9833
9834 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9835
32e737d7
JD
98362010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9837
9838 * xterm.c (XTflash): Move declarations before statements.
9839
9840 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9841 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9842 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9843 (xg_create_tool_bar): Remove unused variables.
9844 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 9845 (xg_create_frame_widgets): Remove variable grav.
32e737d7 9846
676cae9f
CY
98472010-02-21 Chong Yidong <cyd@stupidchicken.com>
9848
9849 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9850
886cc2b8
SM
98512010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9852
9853 * term.c (fatal): Add a final \n if needed (bug#5596).
9854
ddb2d8e2
CY
98552010-02-18 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9858
2a4f8d3d
GM
98592010-02-18 Glenn Morris <rgm@gnu.org>
9860
9861 * callint.c (Finteractive): Doc fix.
9862
ebaf11b6
KH
98632010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9864
886cc2b8
SM
9865 * coding.c (record_conversion_result):
9866 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
9867 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9868 memory allocation error.
9869
d0396581
KH
98702010-02-17 Kenichi Handa <handa@m17n.org>
9871
886cc2b8
SM
9872 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9873 Fix for the case that the output buffer is fullfilled.
d0396581
KH
9874 (decode_coding): Setup ccl program here. Keep looping when the
9875 decoder stopped because the output buffer is
9876 fullfilled (bug#5534).
9877
9878 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9879
98599f74
JD
98802010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9881
471e4f04 9882 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 9883 bug #5571.
886cc2b8 9884 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 9885 overdrawn.
98599f74 9886
182659ae
JD
98872010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9888
9889 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9890 doing_interact here.
9891 (ice_connection_closed): New function.
9892 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9893 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9894 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9895 returns I/O error.
9896 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9897 bug #5512.
9898
9be32c4e 98992010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9900
9901 * nsfont.m (nsfont_open): The system's value for the font descent
9902 is negative, so round it down to avoid clipping.
9903
a2f3eb19
CY
99042010-02-06 Chong Yidong <cyd@stupidchicken.com>
9905
9906 * charset.c (load_charset_map_from_file)
9907 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9908 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9909
3088147c
CY
99102010-02-05 Chong Yidong <cyd@stupidchicken.com>
9911
9912 * charset.c (load_charset_map_from_file): Allocate large
9913 charset_map_entries structure on the heap rather than the stack.
9914 (Bug#5526).
9915
b57d9029
KH
99162010-01-31 Kenichi Handa <handa@m17n.org>
9917
9918 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9919 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9920
c67d885b
CY
99212010-01-31 Chong Yidong <cyd@stupidchicken.com>
9922
9923 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9924 <deactivated@gmail.com> (Bug#3605).
9925
8fab2362
CY
99262010-01-31 David De La Harpe Golden <david@harpegolden.net>
9927
9928 * fileio.c (Frename_file): Correctly rename symlinks to
9929 directories (Bug#5496).
9930
cb2a62f2
CY
99312010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9932
9933 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9934
944c7a26
AS
99352010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9936
9937 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9938
c024ac08
CY
99392010-01-29 Chong Yidong <cyd@stupidchicken.com>
9940
9941 * frame.c (DEFAULT_ROWS): Change default to 35.
9942
9943 * xfns.c (x_default_font_parameter): Change default XFT font to
9944 monospace-10 (Bug#3643).
9945
af93af83
EZ
99462010-01-29 Eli Zaretskii <eliz@gnu.org>
9947
9948 * w32inevt.c (key_event): Remove unnecessary comparison of
9949 event->uChar.AsciiChar with 128.
9950
ca0eb708
CY
99512010-01-28 Chong Yidong <cyd@stupidchicken.com>
9952
b242dbfc
CY
9953 * fileio.c (Frename_file): Fix last change (Bug#5487).
9954
ca0eb708
CY
9955 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9956
9957 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9958
45d45af5
JD
99592010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9960
9961 * xfns.c (Fx_create_frame): Remove window size matching code from
9962 2010-01-15.
a73f9c9d 9963 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9964
7e233730
JR
99652010-01-27 Jason Rumney <jasonr@gnu.org>
9966
9967 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9968 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9969
86e893e3
KH
99702010-01-27 Kenichi Handa <handa@m17n.org>
9971
9972 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9973 pattern string (Bug#4209).
86e893e3 9974
8719abec
CY
99752010-01-27 David De La Harpe Golden <david@harpegolden.net>
9976
9977 * fileio.c (Frename_file): Call copy-directory and
9978 delete-directory for directories, in order to handle cross-device
9979 renaming (Bug#3353).
9980
844794c8
JD
99812010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9982
aa3e13b5 9983 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9984 sizes 24 and 10. Bug #3643.
844794c8 9985
bd4b5750
SM
99862010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9987
8dc1adf6 9988 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9989 * keymap.c (shadow_lookup): Add `remap' arg.
9990 (describe_map, describe_vector): Update calls to shadow_lookup.
9991 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9992 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9993 perform remapping during shadow_lookup check of remapped_sequences.
9994
285d07e2
CY
99952010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9996
9997 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9998 png_check_sig, which has been removed in libpng 1.4.
9999
c6d09b8d
CY
100002010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10001
10002 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10003 lacks this header file).
10004
3d782998
YM
100052010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10006
10007 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10008 as in Emacs 22.
10009
2aff7c53
YM
100102010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10011
10012 * lisp.h (make_pure_string): String pointer arg now points to const.
10013
10014 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10015 args now point to const.
10016
74327f7a
EZ
100172010-01-22 Eli Zaretskii <eliz@gnu.org>
10018
10019 * lread.c (Fload): Don't treat files without .elc extension as
10020 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10021 them. (bug#5303)
10022
4d1e6632
KH
100232010-01-20 Kenichi Handa <handa@m17n.org>
10024
10025 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10026 treat the source as actual byte sequence.
10027
1fdede8f
AM
100282010-01-19 Alan Mackenzie <acm@muc.de>
10029
10030 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 10031 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
10032 `signal_after_change_p' to `coherent_change_p', and make the
10033 invocation of `modify_region' conditional on it.
10034
67477f30
JD
100352010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10036
10037 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10038 for debug purpose.
10039 (syms_of_xsettings): Declare xft-settings.
10040
244b023e
CY
100412010-01-18 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10044
617364fe
CY
100452010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10048
4fe22cdf
CY
100492010-01-16 Chong Yidong <cyd@stupidchicken.com>
10050
10051 * emacs.c (standard_args): Adjust arg priorities to reflect how
10052 they are processed in startup.el.
10053
e118d2be
AS
100542010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10055
10056 * Makefile.in (lisp, shortlisp): Update.
10057
523ae620
SM
100582010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10059
10060 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10061 code, link the new kboard into all_kboard before running Lisp code,
10062 and protect the new terminal with GCPRO (Bug#5365).
10063 (x_term_init): Remove unused var `atom'.
10064 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10065
f0d13888
JD
100662010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10067
10068 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10069 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10070 to find out usable size of the desktop. Don't make frames larger than
ac146f82 10071 this. Bug #3643.
f0d13888 10072
cc320f07
KH
100732010-01-15 Kenichi Handa <handa@m17n.org>
10074
10075 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10076
7ffdf101
CY
100772010-01-15 Chong Yidong <cyd@stupidchicken.com>
10078
10079 * nsterm.m (Qnone): Define.
10080
10081 * nsfns.m (Qnone): Move definition to nsterm.m.
10082
d12bd917
KH
100832010-01-14 Kenichi Handa <handa@m17n.org>
10084
10085 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10086 systems.
10087
d9a7c140
KH
100882010-01-14 Kenichi Handa <handa@m17n.org>
10089
10090 Make auto-composition work on all buffers even if they are
10091 fundamental mode.
10092
10093 * composite.c (Vauto_composition_mode): New variable.
10094 (composition_compute_stop_pos): Check Vauto_composition_mode
10095 instead of Vauto_composition_function.
10096 (composition_adjust_point, Ffind_composition_internal): Likewise.
10097 (syms_of_composite): Declare Lisp variable
10098 "auto-composition-mode" here.
10099
63286bb2
CY
101002010-01-13 Chong Yidong <cyd@stupidchicken.com>
10101
10102 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10103 during call to vendor-specific-keysyms (Bug#5365).
10104
c2623ee7
YM
101052010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10106
10107 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10108 Call SIGNAL_THREAD_CHECK (Bug#5333).
10109
10110 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10111 Call SIGNAL_THREAD_CHECK.
10112
0b5397c2
SM
101132010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10114
10115 Try to fix bug#5314. This is probably not the final word, tho.
10116 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10117 recent-auto-save-p as a side-effect.
10118 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10119 * buffer.c (Fkill_buffer, reset_buffer):
10120 * editfns.c (Fsubst_char_in_region):
10121 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10122 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10123
dc954cb2
KH
101242010-01-13 Kenichi Handa <handa@m17n.org>
10125
10126 Display buffer name, etc. in mode line by composing correctly.
10127
10128 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10129 STRING is not nil.
0b5397c2 10130 (display_mode_element): Adjust for the change of
dc954cb2
KH
10131 decode_mode_spec and display_line.
10132 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10133 (display_string): Handle the case that STRING is non-null and
10134 LISP_STRING is not nil.
10135
0b5397c2
SM
10136 * xterm.c (x_draw_composite_glyph_string_foreground):
10137 Pay attention to s->face->overstrike.
dc954cb2
KH
10138
10139 * composite.c (composition_reseat_it): Don't check PT if STRING is
10140 non nil.
10141
4a00eaca
YM
101422010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10143
10144 * keyboard.c (read_char): Don't apply previous change when current
10145 buffer is unchanged by command execution.
10146
60abb287
JD
101472010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10148
10149 * keyboard.c (read_char): Return after executing from special map.
10150
893db5bc
GM
101512010-01-12 Glenn Morris <rgm@gnu.org>
10152
10153 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10154 bug-gnu-emacs rather than emacs-pretest-bug.
10155
4d03ece0
CY
101562010-01-11 Chong Yidong <cyd@stupidchicken.com>
10157
10158 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10159 initializing the Lisp variables that depend on them.
10160
1df47e38
YM
101612010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10162
10163 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10164 Clear areas that will not be updated after change of menu bar lines.
10165 Clear the menu bar window's current matrix when the window gets empty.
10166
2f1c6384
CY
101672010-01-09 Chong Yidong <cyd@stupidchicken.com>
10168
e398c61c
CY
10169 * intervals.h, textprop.c (extend_property_ranges): Return value
10170 and args changed. Discard properties that begin at or after the
10171 new end (Bug#5306).
10172
10173 * editfns.c (Fformat): Caller changed.
10174
e5a29a10
CY
10175 * nsterm.m (ns_set_default_prefs): Delete function.
10176 (syms_of_nsterm): Initialize ns_command_modifier,
10177 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10178 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10179
2f1c6384
CY
10180 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10181 position (Bug#4040).
10182
d427a9fa
EZ
101832010-01-09 Eli Zaretskii <eliz@gnu.org>
10184
10185 * editfns.c (Ffloat_time): Doc fix.
10186
21b9df2f
JD
101872010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10188
10189 * xfns.c (Fx_create_frame): Don't create frame larger than display
10190 by default bug#3643.
10191
4b00d3b1
YM
101922010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10193
10194 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10195 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10196 windows above internal border.
10197
10198 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10199 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10200 windows above internal border.
10201
10202 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10203 tool bar windows specially.
10204
10205 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10206
10207 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10208 specially.
10209 (XTflash): Take account of menu bar height.
10210
10211 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10212 specially.
10213
5075d853
JD
102142010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10215
ac146f82 10216 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
10217 also be true before we can return early (bug #5339).
10218
474217c8
CY
102192010-01-06 David Reitter <david.reitter@gmail.com>
10220
10221 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10222 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10223 (Bug#3233).
10224
c0e6d47d
JD
102252010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10226
d0cf45b7
JD
10227 * font.c (font_open_entity): Enable chache and call cached_font_ok
10228 for the driver if defined.
10229 (QCuser_spec): New symbol.
10230 (font_spec_from_name): Save name as user-spec.
10231 (font_load_for_lface): Keep user-spec instead of name.
10232 (font_open_by_name): Save name as user-spec.
10233 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 10234 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
10235
10236 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10237 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10238 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10239
10240 * font.h (struct font_driver): Add cached_font_ok.
10241
c0e6d47d
JD
10242 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10243
7c583cd8
JD
102442010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10245
10246 * xterm.c (x_new_font): Move code for setting rows/cols before
10247 resizing ...
ac146f82 10248 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
10249
10250 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
10251 (xg_frame_resized, xg_frame_set_char_size):
10252 Call xg_clear_under_internal_border.
7c583cd8 10253 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 10254
03f77f0a
CY
102552010-01-05 Chong Yidong <cyd@stupidchicken.com>
10256
10257 * keyboard.c (read_key_sequence): Catch keyboard switch after
10258 making a new tty frame (Bug#5095).
10259
2a1ef5be
KH
102602010-01-05 Kenichi Handa <handa@m17n.org>
10261
10262 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10263
e3eb1dae
SM
102642010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10265
10266 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10267 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10268 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10269
777013f2
MA
102702010-01-03 Michael Albinus <michael.albinus@gmx.de>
10271
10272 * dbusbind.c (xd_add_watch): Improve debug message.
10273 (xd_remove_watch): Improve debug message. If DATA is the session
10274 bus, unset D-Bus session environment.
10275 (Fdbus_init_bus): Pass the bus as argument to
10276 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10277
8932b1c2
CY
102782010-01-01 Chong Yidong <cyd@stupidchicken.com>
10279
87231e2c
CY
10280 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10281
4801c5fa
CY
10282 * lread.c (syms_of_lread): Make it clearer that these are the
10283 names of loaded files (Bug#5068).
10284
8932b1c2
CY
10285 * eval.c (run_hook_with_args): Handle the case where the global
10286 value has the obsolete single-function form (Bug#5026).
10287
11e3c684
CY
102882009-12-27 Chong Yidong <cyd@stupidchicken.com>
10289
10290 * minibuf.c (Fall_completions): Minor optimization.
10291
5b28ce35
EZ
102922009-12-26 Eli Zaretskii <eliz@gnu.org>
10293
5ce6e4f4
JB
10294 * .gdbinit (pgx): Fix display of composite glyphs.
10295 Display cmp.from and cmp.to as well.
10296 (pitx): Fix last change.
5b28ce35 10297
bcffff46
KH
102982009-12-25 Kenichi Handa <handa@m17n.org>
10299
10300 * composite.h (composition_adjust_point): Update prototype.
10301
10302 * composite.c (composition_reseat_it): Don't make a composition
10303 spanning over point.
10304 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10305 composable characters.
10306 (composition_adjust_point): New arg NEW_PT. Callers changed.
10307
10308 * keyboard.c (command_loop_1): Force redisplay if the last point
10309 was within a composition.
10310 (adjust_point_for_property): Don't adjust point for automatic
10311 composition when called after buffer modification.
10312
3f670e9a
EZ
103132009-12-19 Eli Zaretskii <eliz@gnu.org>
10314
5ce6e4f4
JB
10315 * .gdbinit (pitx): Don't use enum names, use their values.
10316 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
10317 (pgx): Don't use enum names, use their values.
10318 (pitmethod): New helper command.
10319 (pitx): Use it to display iteration method.
10320 (pgrowit): New command.
10321
ad903955
EZ
10322 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10323
3f670e9a
EZ
10324 Update dependencies in Makefile.in.
10325
10326 * Makefile.in (alloc.o): Depend on termhooks.h.
10327 (atimer.o): Depend on blockinput.h.
10328 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10329 and frame.h.
10330 (callint.o): Depend on systime.h, coding.h, and composite.h.
10331 (callproc.o): Depend on buffer.h.
10332 (casefiddle.o): Don't depend on charset.h.
10333 (casetab.o): Depend on character.h.
10334 (ccl.o): Depend on composite.h.
10335 (chartab.o): Depend on ccl.h.
10336 (cm.o): Depend on dispextern.h.
10337 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10338 (coding.o): Don't depend on $(INTERVALS_H).
10339 (composite.o): Don't depend on dispextern.h explicitly (it's in
10340 $(INTERVALS_H)). Depend on ccl.h.
10341 (data.o): Depend on systime.h, coding.h, composite.h,
10342 dispextern.h, font.h, and ccl.h.
10343 (dired.o): Depend on composite.h.
10344 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10345 composite.h (it's in $(INTERVALS_H)).
10346 (doc.o): Depend on systime.h, coding.h, and composite.h.
10347 (editfns.o): Don't depend explicitly on dispextern.h.
10348 (emacs.o): Depend on frame.h and coding.h.
10349 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10350 (fileio.o): Depend on frame.h and commands.h. Don't depend
10351 explicitly on dispextern.h.
10352 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10353 composite.h.
10354 (fns.o): Don't depend on termhooks.h.
10355 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10356 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10357 coding.h, $(INTERVALS_H), window.h, xterm.h.
10358 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10359 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10360 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10361 fontset.h, ccl.h, and ftfont.h.
10362 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10363 (gtkutil.o): Depend on dispextern.h and composite.h.
10364 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10365 termhooks.h, and ccl.h.
10366 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10367 (intervals.o): Depend on systime.h and coding.h.
10368 (keyboard.o): Depend on composite.h and coding.h.
10369 (keymap.o): Depend on coding.h and frame.h.
10370 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10371 (macros.o): Depend on systime.h, coding.h, and composite.h.
10372 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10373 and atimer.h.
10374 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10375 dispextern.h explicitly.
0b5397c2
SM
10376 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10377 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
10378 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10379 (regex.o): Don't depend on charset.h.
10380 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10381 (search.o): Don't depend explicitly on composite.h.
10382 (sound.o): Depend on atimer.h and systime.h.
10383 (syntax.o): Don't depend explicitly on composite.h.
10384 (sysdep.o): Depend on coding.h and composite.h.
10385 (term.o): Depend on xterm.h and buffer.h.
10386 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10387 (textprop.o): Don't depend on dispextern.h explicitly.
10388 (undo.o): Depend on dispextern.h.
10389 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10390 dispextern.h and composite.h explicitly.
10391 (xdisp.o): Depend on ccl.h.
10392 (xfaces.o): Depend on coding.h and ccl.h.
10393 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10394 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10395 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10396 ftfont.h.
10397 (xgselect.o): New dependency.
10398 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10399 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10400 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10401 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10402 (xsmfns.o): Depend on frame.h and dispextern.h.
10403 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10404 sysselect.h.
10405
7a6f7fea
AS
104062009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10407
10408 * font.c (Fclear_font_cache): Pass correct cache argument to
10409 font_clear_cache.
10410
f4c21026
AS
104112009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10412
10413 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10414 twice.
10415
f7ab0997
CY
104162009-12-15 Chong Yidong <cyd@stupidchicken.com>
10417
10418 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10419 calling file-remote-p. Reported by Jim Meyering.
10420
fa8e045a
MA
104212009-12-15 Michael Albinus <michael.albinus@gmx.de>
10422
10423 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10424 avoid compiler warnings. (Bug #5217)
fa8e045a 10425
a63dba42
KH
104262009-12-14 Kenichi Handa <handa@m17n.org>
10427
10428 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10429 in 8-bit encoding.
10430
5ce6e4f4 104312009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10432
10433 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10434 tooltip windows.
10435
223e5fc6
JD
104362009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10437
36acb2a7
JD
10438 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10439 Xatom_net_window_type.
10440
10441 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10442 Xatom_net_window_type.
10443
b8f00677
JD
10444 * xterm.c (my_log_handler): New function.
10445 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10446 so we can filter out buggy messages. (Bug #5120).
b8f00677 10447
e5f0bc9a
JD
10448 * xterm.c (xg_scroll_callback): Parameter list changed,
10449 use parameter GtkScrollType to determine scroll/line/page.
10450 Only allow dragging if a button < 4 is grabbed (bug #5177).
10451 (xg_end_scroll_callback): New function.
10452 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10453 xg_create_scroll_bar.
10454
10455 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10456 (scroll_end_callback): Remove.
10457 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10458 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10459 bug #5177.
e5f0bc9a
JD
10460 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10461 bug #5177.
10462
10463 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10464 (xg_create_scroll_bar): Add GCallback end_callback.
10465
223e5fc6
JD
10466 * xftfont.c (QClcdfilter): New variable.
10467 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10468 (syms_of_xftfont): Initialize QClcdfilter.
10469
3c055b77
JD
104702009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10471
10472 * xsettings.c (struct xsettings): Add member seen.
10473 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10474 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10475 (apply_xft_settings): Only update Xft settings with what member seen
10476 indicates as new.
10477
05fe33ff
EZ
104782009-12-12 Eli Zaretskii <eliz@gnu.org>
10479
c4cc8b9a 10480 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10481 (struct glyph): Use EMACS_INT for charpos.
10482 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10483 region_beg_charpos, region_end_charpos,
10484 redisplay_end_trigger_charpos, and also for
10485 iterator_stack_entry.end_charpos and
10486 iterator_stack_entry.stop_charpos.
10487
e8d7886a
JD
104882009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10489
5ce6e4f4 10490 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10491 (xg_create_scroll_bar): Call scroll_end_callback on button release
10492 event (bug #5177).
10493 (xg_event_is_for_scrollbar): != replaced with ==.
10494
d0db2ec8
KH
104952009-12-12 Kenichi Handa <handa@m17n.org>
10496
10497 * ftfont.c (struct ftfont_info): New member matrix.
10498 (ftfont_open): Setup xftfont_info->matrix.
10499 (MFLTFontFT): New member matrix.
10500 (FLOOR, CEIL, ROUND): New macros.
10501 (ftfont_get_metrics): Handle matrix transformation.
10502 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10503
10504 * xftfont.c (struct xftfont_info): New member matrix.
10505 (xftfont_open): Setup xftfont_info->matrix.
10506
105072009-12-10 Kenichi Handa <handa@m17n.org>
10508
10509 * xdisp.c (append_space_for_newline): Consider face-remapping.
10510
2cc7b62f
AS
105112009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10512
b87dd913
AS
10513 * xsettings.c: Include "keyboard.h".
10514
eba5eb94
AS
10515 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10516
2cc7b62f
AS
10517 Fix implicit function declarations.
10518 * cmds.c: Include "frame.h".
10519 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10520 * frame.h: Move declaration of delete_frame outside of
10521 HAVE_WINDOW_SYSTEM.
10522
a4ef73c8
CY
105232009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10524
10525 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10526
10527 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10528 GTK builds.
10529
944a300c
AS
105302009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10531
10532 * unexelf.c (unexec): Don't search for .data twice.
10533
022eef62
CY
105342009-12-05 Chong Yidong <cyd@stupidchicken.com>
10535
426ac949
CY
10536 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10537 if push failed.
10538 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10539 of push_display_prop (Bug#5000).
10540
022eef62
CY
10541 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10542 value of font_list_entities (Bug#5085).
10543
be95bee9
JB
105442009-12-04 Juanma Barranquero <lekktu@gmail.com>
10545
10546 Fix `string-to-number' to deal consistently with integers and floats.
10547 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10548 trailing characters, not just whitespace.
10549 (read1): Pass new arg 0 to keep old behavior.
10550 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10551 trailing chars, as it is already done for integers. Doc fixes.
10552 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10553
24c2d7ce
EZ
105542009-12-04 Eli Zaretskii <eliz@gnu.org>
10555
0b5397c2
SM
10556 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10557 Delete unused enumeration value.
24c2d7ce 10558
7e694795
EZ
105592009-12-03 Eli Zaretskii <eliz@gnu.org>
10560
10561 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10562
84b31826
SM
105632009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10564
10565 * process.c (Fmake_network_process): Fix up the tests for
10566 "connectionless socket", so they DTRT for seqpacket sockets as well.
10567
f00c449b
SM
105682009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10569
10570 * process.c (Qseqpacket): New symbol.
10571 (HAVE_SEQPACKET): New macro.
10572 (Fmake_network_process): Accept new :type `seqpacket'.
10573 (init_process): Add `seqpacket' feature when applicable.
10574 (syms_of_process): Initialize Qseqpacket.
10575
8096a0ff
YM
105762009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10577
10578 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10579 if entity is Qnil.
10580
3e0de07f
SM
105812009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10582
10583 * print.c (print_preprocess): Preprocess the key_and_value table of
10584 hashtables, even tho they're "hidden" (bug#5082).
10585
abeafb2a
JD
105862009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10587
10588 * frame.c (frame_make_pointer_invisible)
10589 (frame_make_pointer_visible): Declare f before statements.
10590
4bf47195
EZ
105912009-11-28 Eli Zaretskii <eliz@gnu.org>
10592
10593 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10594 omitted dependencies on lisp.h.
10595
c525b3f2
JD
105962009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10597
ece2d4ed
JD
10598 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10599 is NULL.
10600
10601 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10602
10603 * frame.c (frame_make_pointer_invisible)
3e0de07f 10604 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
10605 frame.
10606
c525b3f2
JD
10607 * search.c (simple_search): Remove warning by making *p const.
10608
2f00e299
DN
106092009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10610
10611 * xdisp.c (power_letter): Remove duplicate const.
10612
084b049b
JD
106132009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10614
a1fadc6f
JD
10615 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10616
5ce6e4f4 10617 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
10618 defaults (bug #5025).
10619
28259cac
SM
106202009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10621
10622 * insdel.c (adjust_markers_for_delete): Move it in the
10623 right direction! (bug#4803)
10624
e8e14166
YM
106252009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10626
10627 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10628
10629 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10630
86677b58
GM
106312009-11-24 Glenn Morris <rgm@gnu.org>
10632
10633 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10634
581e51e8
JD
106352009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10636
cfc86c7a
JD
10637 * Makefile.in: Must create deps for ecrt0.o in its rule.
10638
581e51e8
JD
10639 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10640 because that is what Gtk+ font dialog understands.
10641
10642 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
10643 of Fcopy_sequence.
10644 (font_open_by_name): Put name given into QCname for font-object returned.
10645
10646 * frame.c (x_set_font): Save original font name as frame parameter
10647 font-parameter.
10648
10649 * xsettings.c (set_default_xft_settings): New function.
10650 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
10651 is found.
10652
8b264ecb
AS
106532009-11-22 Andreas Schwab <schwab@linux-m68k.org>
10654
10655 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
10656 searching backwards through multibyte buffer.
10657
872870b2
JD
106582009-11-21 Jan Djärv <jan.h.d@swipnet.se>
10659
10660 * xterm.c: #include xgselect.h.
10661 (x_initialize): Call xgselect_initialize.
10662
10663 * xsettings.c (something_changedCB): C++ comments => C comments.
10664 (init_gconf): Do not deal with any GLib file descriptors, xg_select
10665 does that now.
10666
10667 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
10668 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
10669 (scroll_bar_button_cb): Remove.
5ce6e4f4 10670 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
10671 event.
10672 (xg_create_scroll_bar): Don't bind button-press-event and
10673 button-release-event.
10674
10675 * process.c: Include xgselect.h if defined (USE_GTK) ||
10676 defined (HAVE_GCONF).
10677 (wait_reading_process_output): Call xg_select for the same condition.
10678
10679 * xgselect.c (xg_select): New function to better integrate with
10680 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
10681
10682 * xgselect.h: New file, declare xg_select, xgselect_initialize.
10683
10684 * Makefile.in (XOBJ): Add xgselect.o.
10685
62a6e103
AS
106862009-11-21 Andreas Schwab <schwab@linux-m68k.org>
10687
0b5397c2
SM
10688 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
10689 Remove ignored second argument. All callers changed.
62a6e103
AS
10690 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
10691 (RE_STRING_CHAR_AND_LENGTH): Likewise.
10692 * xdisp.c (string_char_and_length): Likewise.
10693
b0ca0f33
DN
106942009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10695
10696 * xterm.c (x_new_font):
10697 * print.c (print_object):
10698 * cmds.c (Fself_insert_command): Move declarations before statements.
10699
dd5a6279
CY
107002009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
10701
10702 * s/cygwin.h: Remove unneeded linker flags.
10703
4a8e097d
JD
107042009-11-20 Jan Djärv <jan.h.d@swipnet.se>
10705
0d1d0d26
JD
10706 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
10707
10708 * xsettings.h: Declare xsettings_get_system_font.
10709
10710 * xsettings.c (xsettings_get_system_font): New function.
10711 (init_gconf): No use initiating gconf unless we have Xft also.
10712 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
10713 HAVE_GCONF.
10714
4a8e097d
JD
10715 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
10716 add a blank entry so it doesn't collapse into nothing.
10717
8ab1650e
SM
107182009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10719
10720 * lread.c (Funintern): Comment out last change.
10721
82c602f0
RS
107222009-11-19 Richard Stallman <rms@gnu.org>
10723
10724 * lread.c (Funintern): Error if symbol is t or nil.
10725
87e32266
SM
107262009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10727
10728 * insdel.c (make_gap_larger): Don't make as many assumptions about the
10729 representation of Lisp integers.
10730 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10731
1b9ac145
AS
107322009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10733
10734 * lisp.h: Remove declaration of Ffont_get_system_font.
10735 * xfns.c: Move include of "xsettings.h".
10736 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
10737
dfb3c4c6
JD
107382009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10739
87e32266
SM
10740 * xsettings.c (something_changedCB, Ffont_get_system_font):
10741 Check use_system_font.
dfb3c4c6
JD
10742 (syms_of_xsettings): DEFVAR font-use-system-font.
10743
9370c1d8
AS
107442009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10745
25fe851a
AS
10746 * xfns.c (x_default_font_parameter): Remove dead assignment.
10747
9370c1d8
AS
10748 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
10749
637fa988
JD
107502009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10751
87e32266 10752 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 10753 not have FC_LCD_*. #define them if not there.
a6eb20d8 10754
87e32266 10755 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 10756
637fa988
JD
10757 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
10758
10759 * xterm.c (handle_one_xevent): Call xft_settings_event for
10760 ClientMessage, PropertyNotify and DestroyNotify.
10761 (x_term_init): If we have XFT, get DPI from Xft.dpi.
10762 Call xsettings_initialize.
10763
10764 * xftfont.c (xftfont_fix_match): New function.
10765 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
10766 Call xftfont_fix_match after XftFontMatch.
10767
10768 * xfont.c (xfont_driver): Initialize all members.
10769
87e32266
SM
10770 * xfns.c (x_default_font_parameter):
10771 Try font from Ffont_get_system_font.
637fa988
JD
10772 Do not get font from x_default_parameter if we got one from
10773 Ffont_get_system_font.
87e32266 10774 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
10775
10776 * w32font.c (w32font_driver): Initialize all members.
10777
10778 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
10779
10780 * lisp.h: Declare syms_of_xsettings.
10781
87e32266
SM
10782 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
10783 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
10784
10785 * ftfont.c (ftfont_filter_properties): New function.
10786
10787 * frame.c (x_set_font): Remove unused variable lval.
10788
87e32266 10789 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
10790
10791 * font.c (font_put_extra): Don't return if val is nil, it means
10792 boolean option is off.
10793 (font_parse_fcname): Collect all extra properties in extra_props
10794 and call filter_properties for all drivers with extra_props and
10795 font as parameter.
87e32266
SM
10796 (font_open_entity): Do not use cache, it does not pick up new
10797 fontconfig settings like hinting.
637fa988
JD
10798 (font_load_for_lface): If spec had a name in it, store it in entity.
10799
a73f9c9d 10800 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
10801
10802 * config.in: HAVE_GCONF is new.
10803
10804 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
10805 xsettings.o is new.
10806
5a942932
KH
108072009-11-17 Kenichi Handa <handa@m17n.org>
10808
10809 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
10810 back to the default font in case that no suitable font is found.
10811
b7c7a4d1
SM
108122009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10813
10814 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10815 Suggested by Chad Brown <yandros@mit.edu>.
10816 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10817
072f1e39
JD
108182009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10819
10820 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10821
5d1e70a2
AS
108222009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10823
87e32266 10824 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 10825
a53cfbe5
JD
108262009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10827
473a99b7
JD
10828 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10829 has a parent.
10830
a53cfbe5 10831 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 10832 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
10833
10834 * config.in: Generated (AUTO_DEPEND).
10835
f04bb9b2
MA
108362009-11-13 Michael Albinus <michael.albinus@gmx.de>
10837
b7c7a4d1 10838 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
10839 Vdbus_registered_functions_table, because it contains also
10840 properties. Fix docstring.
b7c7a4d1 10841 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 10842
8f11f7ec
SM
108432009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10844
10845 * alloc.c (mark_object): Don't reprocess marked strings.
10846 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10847 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10848
8a605fe8
KH
108492009-11-13 Kenichi Handa <handa@m17n.org>
10850
8f11f7ec 10851 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
10852 semantics of Vword_combining_categories.
10853 (Vword_combining_categories): Describe the slight change of the
10854 semantics.
10855
241c4680
EZ
108562009-11-13 Eli Zaretskii <eliz@gnu.org>
10857
10858 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10859
10860 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10861
5d58e44c
SM
108622009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10863
10864 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10865
5e13f9d3
JB
108662009-11-12 Juanma Barranquero <lekktu@gmail.com>
10867
10868 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10869
cf54c754
DR
108702009-11-11 David Reitter <david.reitter@gmail.com>
10871
10872 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10873 variables to fix 2009-11-09 change.
10874
a4ada374
DN
108752009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10876
91433552
DN
10877 * process.c (ifflag_def): Make flag_sym constant.
10878 (Fnetwork_interface_info): Use a constant pointer.
10879 (ifflag_table):
10880 * xfns.c (cursor_bits):
10881 * xdisp.c (power_letter):
10882 * termcap.c (speeds, esctab):
10883 * sysdep.c (baud_convert):
10884 * keyboard.c (lispy_accent_codes, modifier_names):
10885 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10886 (jpeg_format, tiff_format, gif_format, svg_format)
10887 (interlace_start, interlace_increment, gs_format):
10888 * gtkutil.c (separator_names):
10889 * fringe.c (swap_nibble):
10890 * fns.c (base64_value_to_char, base64_char_to_value):
10891 * fileio.c (make_temp_name_tbl):
10892 * coding.c (suffixes): Make constant.
10893
f4265f6c
DN
10894 * frame.c (make_initial_frame):
10895 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10896 build_string.
10897 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10898
04420943
DN
10899 * s/freebsd.h:
10900 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10901
0a5d24ae
DN
10902 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10903 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10904
a4ada374
DN
10905 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10906 * xterm.c (syms_of_xterm):
10907 * xfaces.c (syms_of_xfaces):
10908 * xdisp.c (syms_of_xdisp):
10909 * lread.c (syms_of_lread):
10910 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10911 build_string.
91433552 10912
a4ada374
DN
10913 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10914
af98fc7f
SM
109152009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10916
8ab1650e 10917 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10918
e90292a9
JD
109192009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10920
10921 * keyboard.h: Declare timer_check.
10922
10923 * keyboard.c (timer_check_2): New function that does what the old
10924 timer_check did.
10925 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10926 returned, i.e. don't return -1 with timers pending.
10927
10928 * process.c: Remove extern declaration of timer_check.
10929
10930 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10931 even if timer_check returned -1.
10932
af98fc7f
SM
10933 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10934 xg_dialog_data.
e90292a9
JD
10935 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10936 the event loop.
10937 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10938 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10939 Destroy the dialog after xg_dialog_run.
10940
045b83c0
SM
109412009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10942
10943 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10944
1fb99a3a
JD
109452009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10946
10947 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10948
04e452cb
JB
109492009-11-09 Juanma Barranquero <lekktu@gmail.com>
10950
10951 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10952
ef7417fd
SM
109532009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10954
10955 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10956 w32menu.c, and nsmenu.m.
10957 Simplify the obsolete case where position is nil.
10958 (cleanup_popup_menu): New function, moved from nsmenu.m.
10959 (struct skp): Remove slot `notreal'.
10960 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10961 adjust callers.
10962 (single_menu_item): Adjust call to parse_menu_item.
10963 (syms_of_menu): Defsubr x-popup-menu.
10964 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10965 (keymap_panes): Don't export any more.
10966 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10967 (xmenu_show): Declare.
10968 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10969 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10970 * keyboard.h (parse_menu_item): Update declaration.
10971 * xmenu.c (Fx_popup_menu): Remove.
10972 (syms_of_xmenu): Don't defsubr x-popup-menu.
10973 * w32menu.c (Fx_popup_menu): Remove.
10974 (syms_of_w32menu): Don't defsubr x-popup-menu.
10975 * nsmenu.m (cleanup_popup_menu): Remove.
10976 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10977 moved to menu.c's Fx_popup_menu.
10978 (Fx_popup_menu): Remove.
10979 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10980 menu_items (it's done in menu.c already).
10981
424d6179
SM
109822009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10983
10984 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10985 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10986
c0df13a6 109872009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10988
10989 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10990 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10991 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10992 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10993
2de9f71c
SM
109942009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10995
10996 Let integers use up 2 tags to give them one extra bit and thus double
10997 their range.
10998 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10999 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11000 New macros.
11001 (enum Lisp_Type): Use them. Give explicit values.
11002 (Lisp_Type_Limit): Remove.
11003 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11004 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11005 Pay attention to USE_2_TAGS_FOR_INTS.
11006 (INTEGERP): Use LISP_INT_TAG_P.
11007 * fns.c (internal_equal): Simplify the default case.
11008 (sxhash): Use case_Lisp_Int.
11009 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11010 any more.
11011 (Ftype_of): Use case_Lisp_Int.
11012 (store_symval_forwarding): Take into account the fact that Ints can
11013 now have more than one tag.
11014 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 11015 (buffer_slot_type_mismatch):
2de9f71c
SM
11016 * xfaces.c (face_attr_equal_p):
11017 * print.c (print_object):
11018 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11019 Use case_Lisp_Int.
11020
323637a2
EZ
110212009-11-06 Eli Zaretskii <eliz@gnu.org>
11022
7ac65b38
EZ
11023 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11024
323637a2
EZ
11025 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11026 warning.
11027
e511451f
JD
110282009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11029
11030 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11031
11032 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11033
11034 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11035 ButtonPressRelease and MotionNotify (bug#4870).
11036
5e2327cf
DN
110372009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11038
5adc433e
DN
11039 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11040
d67b4f80
DN
11041 * xterm.c (syms_of_xterm):
11042 * xselect.c (syms_of_xselect):
11043 * xmenu.c (syms_of_xmenu):
11044 * xfns.c (syms_of_xfns):
11045 * xfaces.c (syms_of_xfaces):
11046 * xdisp.c (syms_of_xdisp):
11047 * window.c (syms_of_window):
11048 * w32fns.c (syms_of_w32fns):
11049 * undo.c (syms_of_undo):
11050 * textprop.c (syms_of_textprop):
11051 * terminal.c (syms_of_terminal):
11052 * syntax.c (syms_of_syntax):
11053 * sound.c (syms_of_sound):
11054 * search.c (syms_of_search):
11055 * print.c (syms_of_print):
11056 * minibuf.c (syms_of_minibuf):
11057 * macros.c (syms_of_macros):
11058 * keymap.c (syms_of_keymap, initial_define_key)
11059 (initial_define_lispy_key):
11060 * keyboard.c (syms_of_keyboard):
11061 * insdel.c (syms_of_insdel):
11062 * image.c (syms_of_image):
11063 * fringe.c (syms_of_fringe):
11064 * frame.c (syms_of_frame):
11065 * fontset.c (syms_of_fontset):
11066 * fns.c (syms_of_fns):
11067 * fns.c (syms_of_fns):
11068 * fileio.c (syms_of_fileio):
11069 * fileio.c (syms_of_fileio):
11070 * eval.c (syms_of_eval):
11071 * doc.c (syms_of_doc):
11072 * dispnew.c (syms_of_display):
11073 * dired.c (syms_of_dired):
11074 * dbusbind.c (syms_of_dbusbind):
11075 * data.c (syms_of_data):
11076 * composite.c (syms_of_composite):
11077 * coding.c (syms_of_coding):
11078 * cmds.c (syms_of_cmds):
11079 * charset.c (define_charset_internal, syms_of_character):
11080 * ccl.c (syms_of_ccl):
11081 * category.c (syms_of_category, init_category_once):
11082 * casetab.c (syms_of_casetab):
11083 * casefiddle.c (syms_of_casefiddle):
11084 * callint.c (syms_of_callint):
11085 * bytecode.c (syms_of_bytecode):
11086 * buffer.c (keys_of_buffer, syms_of_buffer):
11087 * alloc.c (syms_of_alloc):
11088 * process.c (syms_of_process, init_process):
11089 * lread.c (syms_of_lread, init_obarray):
11090 * font.c (build_style_table):
11091 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11092 intern_c_string, calls to make_pure_string with
11093 make_pure_c_string. Use pure_cons instead of Fcons.
11094
5e2327cf
DN
11095 * process.c (socket_options): Make it const.
11096 (set_socket_option, init_process): Use a const pointer.
11097
11098 * lread.c (intern_c_string): New function.
11099 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11100 (defvar_int): Uset it. Make the name const char*.
11101
11102 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11103 (defvar_int): Update prototypes.
11104 (DEFUN, EXFUN): Support for prototypes is now required.
11105 (intern_c_string): New prototype.
11106 (struct Lisp_Subr): Make symbol_name constant.
11107
11108 * font.c (struct table_entry): Remove unused member. Make NAMES
11109 constant.
11110 (weight_table, slant_table, width_table): Make constant.
11111
11112 * emacs.c (struct standard_args): Make name and longname constant.
11113
11114 * character.h (DEFSYM): Use intern_c_string.
11115
a56eaaef
DN
111162009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11117
11118 * alloc.c (make_pure_c_string): New function.
11119
11120 * eval.c (Fautoload): Purecopy all arguments.
11121
f6a07420
KH
111222009-11-05 Kenichi Handa <handa@m17n.org>
11123
11124 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11125 the buffer in case of replace.
11126
5d28d4b1
DN
111272009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11128
11129 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11130
b349d111
SM
111312009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11132
d528b1ce
SM
11133 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11134 when applicable (bug#4851).
11135
b349d111
SM
11136 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11137 (P_): Support for prototypes is now required.
11138
c38eb027
CY
111392009-10-31 Chong Yidong <cyd@stupidchicken.com>
11140
11141 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11142 (Bug#4827).
11143
0405f8d9
EZ
111442009-10-30 Eli Zaretskii <eliz@gnu.org>
11145
d528b1ce 11146 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 11147
ca0a881a
DN
111482009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11149
11150 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11151
d528b1ce
SM
11152 * lread.c (Fload): Purecopy the file name when building
11153 Vpreloaded_file_list.
ca0a881a 11154
47e0e0e4
JR
111552009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11156
11157 * w32fns.c (syms_of_w32fns): Change default value of
11158 w32-scroll-lock-modifier to nil. (Bug#2827)
11159
057bce6f
JB
111602009-10-26 Juanma Barranquero <lekktu@gmail.com>
11161
782a943e 11162 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 11163
242bc74c
AS
111642009-10-26 Andreas Schwab <schwab@redhat.com>
11165
11166 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11167
522d013a
JB
111682009-10-26 Juanma Barranquero <lekktu@gmail.com>
11169
11170 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11171 For delta < 0, skip check that only makes sense when the mini-window
11172 is going to be enlarged. (Bug#4534)
11173
18060980
CY
111742009-10-25 Chong Yidong <cyd@stupidchicken.com>
11175
11176 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11177 string in menu maps (Bug#4471).
11178
fec8f0fe
CY
111792009-10-24 Chong Yidong <cyd@stupidchicken.com>
11180
11181 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11182 FRAME_NS_VIEW on terminal frames (Bug#4765).
11183
10d66ec0
AS
111842009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11185
1cae01f7
AS
11186 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11187 DBUS_TYPE_UINTnn separately to get proper sign extension.
11188
58a12889
AS
11189 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11190 can properly handle unsigned types.
d528b1ce 11191 (make_uid, make_gid): Remove.
58a12889 11192
987c9327
AS
11193 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11194 types again.
11195
522d013a 11196 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
11197 (system_process_attributes): Likewise.
11198
905a9ed3
DN
111992009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11200
11201 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11202
11203 * eval.c (Fautoload): Purecopy the filename. Simplify.
11204
11205 * category.c (Fdefine_category): Purecopy docstring.
11206
a599b3e8
AS
112072009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11208
7b792fc9
AS
11209 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11210
a599b3e8
AS
11211 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11212
b35ac83e
CY
112132009-10-23 Chong Yidong <cyd@stupidchicken.com>
11214
11215 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11216 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11217 (Bug#4775).
11218
e8903e00
SM
112192009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11220
11221 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11222 (init_fileio_once):
11223 * lisp.h (init_fileio_once): Remove.
11224 * emacs.c (main): Don't call init_fileio_once.
11225
8f43cbf3
DN
112262009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11227
11228 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11229
26898943
AS
112302009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11231
11232 * doprnt.c (doprnt): Fix overflow check.
11233
5c646d5a
JD
112342009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11235
3132a7ea
JD
11236 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11237
5c646d5a
JD
11238 * xterm.h (x_wait_for_event): Declare it.
11239
11240 * xterm.c (pending_event_wait): New variable.
11241 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11242 see pending_event_wait.eventtype.
11243 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
11244 (x_new_font): Call change_frame_size with new rows/columns before we
11245 try to resize the frame.
5c646d5a 11246 (x_wait_for_event): New function.
d528b1ce
SM
11247 (x_set_window_size_1): Don't change gravity unless change_gravity
11248 is set.
5c646d5a
JD
11249 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11250 don't change frame size, instead wait for the ConfigureNotify.
11251 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11252 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11253 (x_initialize): Initialize pending_event_wait.
11254
11255 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11256 size.
11257
11258 * widget.c (EmacsFrameSetValues): Add comment.
11259 (EmacsFrameSetCharSize): Just call x_set_window_size.
11260
11261 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11262 x_wait_for_event.
d528b1ce 11263 (flush_and_sync): Remove again.
5c646d5a
JD
11264 (xg_get_font_name): Suggest monospace if no previous font is known.
11265
e9c1637d
SM
112662009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11267
11268 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11269 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11270
5a72cccb
YM
112712009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11272
11273 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11274 processing pending events when event is filtered for input method.
ab04798f 11275 (Bug#3681)
5a72cccb 11276
2629aa37
JB
112772009-10-20 Juanma Barranquero <lekktu@gmail.com>
11278
11279 * fns.c: Add #endif accidentally removed in previous change.
11280
c3417a74
DN
112812009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11282
11283 * fns.c: Remove code for unsupported system: MAC_OS.
11284 * image.c: Likewise. Include setjmp.h.
11285
9685cef2
JD
112862009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11287
11288 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11289 pixel -1 (bug #4742).
11290
d7306fe6
DN
112912009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11292
019d2c4c
DN
11293 * process.c (create_pty): Remove conditionals for no longer
11294 supported systems: UNIPLUS and RTU.
11295
ee6bacd4
DN
11296 * xterm.c:
11297 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11298
d7306fe6
DN
11299 * alloc.c: Do not define struct catchtag.
11300 * eval.c: Move struct catchtag definition ...
11301 * lisp.h: ... here.
11302
11303 * image.c: Move png.h #include earlier to avoid warnings.
11304
11305 * xterm.c:
11306 * xsmfns.c:
11307 * xselect.c:
11308 * xrdb.c:
11309 * xmenu.c:
11310 * xftfont.c:
11311 * xfont.c:
11312 * xfns.c:
11313 * xfaces.c:
11314 * xdisp.c:
11315 * window.c:
11316 * widget.c:
11317 * w32xfns.c:
11318 * w32uniscribe.c:
11319 * w32term.c:
11320 * w32select.c:
11321 * w32reg.c:
11322 * w32proc.c:
11323 * w32menu.c:
11324 * w32inevt.c:
11325 * w32heap.c:
11326 * w32font.c:
11327 * w32fns.c:
11328 * w32console.c:
11329 * w32.c:
11330 * w16select.c:
11331 * vm-limit.c:
11332 * unexsol.c:
11333 * unexec.c:
11334 * unexcw.c:
11335 * unexaix.c:
11336 * undo.c:
11337 * tparam.c:
11338 * textprop.c:
11339 * terminfo.c:
11340 * terminal.c:
11341 * termcap.c:
11342 * term.c:
11343 * syntax.c:
11344 * sound.c:
11345 * sheap.c:
11346 * search.c:
11347 * scroll.c:
11348 * region-cache.c:
11349 * regex.c:
11350 * ralloc.c:
11351 * process.c:
11352 * print.c:
b024548b
DN
11353 * nsterm.m:
11354 * nsselect.m:
11355 * nsmenu.m:
11356 * nsimage.m:
11357 * nsfont.m:
11358 * nsfns.m:
d7306fe6
DN
11359 * msdos.c:
11360 * minibuf.c:
11361 * menu.c:
11362 * marker.c:
11363 * macros.c:
11364 * keymap.c:
11365 * keyboard.c:
11366 * intervals.c:
11367 * insdel.c:
11368 * indent.c:
11369 * gtkutil.c:
11370 * ftxfont.c:
11371 * ftfont.c:
11372 * fringe.c:
11373 * frame.c:
11374 * fontset.c:
11375 * font.c:
11376 * fns.c:
11377 * floatfns.c:
11378 * filelock.c:
11379 * fileio.c:
11380 * emacs.c:
11381 * editfns.c:
11382 * dosfns.c:
11383 * doprnt.c:
11384 * doc.c:
11385 * dispnew.c:
11386 * dired.c:
11387 * dbusbind.c:
11388 * data.c:
11389 * composite.c:
11390 * coding.c:
11391 * cmds.c:
11392 * cm.c:
11393 * chartab.c:
11394 * charset.c:
11395 * character.c:
11396 * ccl.c:
11397 * category.c:
11398 * casetab.c:
11399 * casefiddle.c:
11400 * callproc.c:
11401 * callint.c:
11402 * bytecode.c:
11403 * buffer.c:
11404 * atimer.c: Include setjmp.h. (Bug#4643)
11405
fd5f21e6
SM
114062009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11407
4c0354d7
SM
11408 Remove leftover table unibyte_to_multibyte_table.
11409 * character.c (unibyte_to_multibyte_table): Remove.
11410 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11411 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11412 * character.h (UNIBYTE_TO_CHAR): New macro.
11413 (MAKE_CHAR_MULTIBYTE): Use it.
11414 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11415 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11416 (message_dolog, set_message_1):
11417 * search.c (Freplace_match):
11418 * editfns.c (Fcompare_buffer_substrings):
11419 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11420 (concat):
11421 * insdel.c (copy_text, count_size_as_multibyte):
11422 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11423 * term.c (produce_glyphs):
11424 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11425 * regex.c (RE_CHAR_TO_MULTIBYTE):
11426 * cmds.c (internal_self_insert):
11427 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11428
fd5f21e6
SM
11429 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11430
4418646e
DN
114312009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11432
11433 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11434
35f5c1d2
JB
114352009-10-16 Juanma Barranquero <lekktu@gmail.com>
11436
11437 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11438
a0cd8f6b
AR
114392009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11440
11441 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11442 still needed under Tiger.
11443
11444 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11445
11446 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11447 __Apple__.
11448
11449 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11450
01a8d3fa
KH
114512009-10-15 Kenichi Handa <handa@m17n.org>
11452
11453 * print.c (print_object): Escape a symbol like "2E10" too.
11454
bf6c75c9 114552009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11456
11457 Cleanups and changes for 64-bit compile under Snow Leopard.
11458 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11459
11460 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11461
c5959062 11462 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11463 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11464 cast argument.
11465 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11466 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11467
11468 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11469
11470 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11471 where appropriate.
11472
11473 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11474 where appropriate.
6e4780c5
JB
11475 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11476 Use stringWithUTF8String.
bf6c75c9
AR
11477 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11478
6e4780c5
JB
11479 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11480 Add formal protocol mention to inheritance.
bf6c75c9
AR
11481 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11482
6e4780c5
JB
11483 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11484 Fix printf format.
bf6c75c9
AR
11485 (ns_query_color): Use CGFloat where appropriate.
11486 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11487 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11488 argument.
11489
3d87f118
AR
11490 * config.in (NS_HAVE_NSINTEGER): Drop.
11491
a95c8102
AR
11492 * dbusbind.c (dbus-method-return-internal)
11493 (dbus-method-error-internal): Use long format in printf, and cast
11494 argument.
11495
11496 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11497 in printf, and cast argument.
11498
6873acca 11499 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11500 cast argument.
11501
9ec6f100
GM
115022009-10-11 Glenn Morris <rgm@gnu.org>
11503
11504 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11505
5be883cd
JD
115062009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11507
11508 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11509 menu bar with a small width so it doesn't enlarge the frame.
11510
d7a39b51
JB
115112009-10-08 Juanma Barranquero <lekktu@gmail.com>
11512
11513 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11514
0c2b6f8e
GM
115152009-10-06 Glenn Morris <rgm@gnu.org>
11516
11517 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11518 SOME_MACHINE_LISP (this enters indirectly via DOC).
11519
e02131a2
EZ
115202009-10-05 Eli Zaretskii <eliz@gnu.org>
11521
11522 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11523
b4744254
EZ
115242009-10-04 Eli Zaretskii <eliz@gnu.org>
11525
11526 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11527 Doc fix.
11528
dbf64827
JB
115292009-10-03 Martin Rudalics <rudalics@gmx.at>
11530
11531 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11532
e9a0aef8
MA
115332009-10-02 Michael Albinus <michael.albinus@gmx.de>
11534
d528b1ce 11535 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
11536 used anymore outside fileio.c.
11537
11538 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11539
64eb2b56
JB
115402009-10-01 Juanma Barranquero <lekktu@gmail.com>
11541
11542 * lisp.h (Qdelete_directory_internal):
11543 Declare, instead of Qdelete_directory.
11544
11545 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11546
9d28c33e
SM
115472009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11548
11549 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11550
9d8f3bd9
MA
115512009-10-01 Michael Albinus <michael.albinus@gmx.de>
11552
9d28c33e 11553 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
11554 Fdelete_directory. It is not a command anymore. It has no file
11555 name handler.
11556
9694740b
SM
115572009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11558
11559 * xdisp.c (get_next_display_element): Use an enum in last change.
11560
748e162f
KH
115612009-09-28 Kenichi Handa <handa@m17n.org>
11562
9694740b 11563 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
11564 unibyte_display_via_language_environment in handling
11565 Vnobreak_char_display.
11566
17efd58d
AR
115672009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11568
11569 * nsterm.h (ns_app_name): New extern variable.
11570
11571 * nsterm.m (ns_app_name): New variable.
11572 (ns_term_init): Set and use it.
11573 (ns_term_shutdown): Use it.
11574
11575 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11576 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11577
11578 * nsfns.m (ns_set_name_iconic, ns_set_name)
11579 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11580 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11581
9694740b
SM
11582 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11583 Remove double-casting in client_data comparison.
31c2d412 11584
3208cb35
YM
115852009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11586
11587 * keyboard.c (make_lispy_event): Remember last wheel direction.
11588 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11589
b7d552d6
GM
115902009-09-26 Glenn Morris <rgm@gnu.org>
11591
11592 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11593 internal.elc. Add term/pc-win.elc.
11594 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11595 term/x-win.elc.
11596 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11597 term/w32-win.elc.
11598 (NS_SUPPORT): New.
11599 (lisp): Add NS_SUPPORT.
11600 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11601
4ff670a8
DR
116022009-09-25 David Reitter <david.reitter@gmail.com>
11603
11604 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11605 on Mac OS X 10.6+ (bug#4513).
11606
feabfb6c
JB
116072009-09-24 Juanma Barranquero <lekktu@gmail.com>
11608
11609 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
11610 some parts of Emacs code (like font selection) don't grok them.
11611 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 11612
de59072a
AS
116132009-09-24 Andreas Schwab <schwab@redhat.com>
11614
11615 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11616
a489517b
JB
116172009-09-24 Juanma Barranquero <lekktu@gmail.com>
11618
11619 * dired.c (Fdirectory_files): Fix typo in docstring.
11620
0592970c
AR
116212009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11622
11623 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11624 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11625 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11626 under GNUstep.
11627 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11628
11629 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11630 glyph advancement.
11631
48e8a88b
AR
116322009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11633
11634 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 11635 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
11636
11637 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11638 deleted (bug #4492).
11639
e14f0a78
AR
11640 * nsfont.m (Vns_reg_to_script): New lisp variable.
11641 (syms_of_nsfont): Declare it.
11642 (ns_registry_to_script): New function.
11643 (ns_get_req_script): Call it.
11644 (ns_findfonts): Don't give up on non-unicode registry.
11645
11646 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
11647
5b650faa
SM
116482009-09-20 Tom Tromey <tromey@redhat.com>
11649
11650 * eval.c (find_handler_clause): Make stack-trace-on-error work in
11651 batch mode (bug#4228).
11652
a489517b 116532009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
11654
11655 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 11656 carefully. (Bug #4339)
0bae4e09 11657
fcfe06f3
CY
116582009-09-18 Chong Yidong <cyd@stupidchicken.com>
11659
d798ba87 11660 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 11661
31642728
AR
116622009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11663
11664 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
11665 (main) [HAVE_NS]: Don't process --no-init-file option.
11666 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
11667
11668 * nsterm.h (ns_no_defaults): Remove.
11669
11670 * nsterm.m (ns_no_defaults): Remove.
11671 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
11672 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
11673 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
11674 don't update the NSWindow itself.
bba3e508
SM
11675 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
11676 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
11677
11678 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
11679 ns_use_qd_smoothing.
11680
11681 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
11682 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 11683 (x-close-connection): Drop PSFlush() under OS X.
a489517b 11684 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 11685
8686ac71
JB
116862009-09-17 Juanma Barranquero <lekktu@gmail.com>
11687
11688 * emacs.c (inhibit_x_resources): New variable.
11689 (main) [HAVE_NS]: Don't process --quick command line option.
11690 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
11691
11692 * lisp.h (inhibit_x_resources): Declare it extern.
11693
11694 * w32reg.c (x_get_string_resource):
11695 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
11696
e227ba05
EZ
116972009-09-17 Eli Zaretskii <eliz@gnu.org>
11698
362654a6
JB
11699 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
11700 Add lisp/term/internal.elc.
e227ba05 11701
742d40e8
SM
117022009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11703
11704 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
11705 (bug#4461).
11706
005bd5a2
DN
117072009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
11708
11709 * puresize.h (BASE_PURESIZE): Increase to 1290000.
11710
11711 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
11712 (OBJECTS_MACHINE): Remove, unused.
11713
f9af9719
SM
117142009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
11715
11716 * frame.c (x_get_resource_string): Remove unused.
11717
0307c7d2
JD
117182009-09-15 Jan Djärv <jan.h.d@swipnet.se>
11719
11720 * xterm.c (x_new_font): Call change_frame_size before calling
11721 x_set_window_size, in case frame size won't change.
11722
11723 * frame.c (x_set_font): Remove dead code.
11724
428b13d6
SM
117252009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
11726
11727 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
11728
5766c380
SM
117292009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11730
11731 * lread.c (Fload): Don't output a message after loading an obsolete
11732 package any more (done in Lisp now).
11733
2fd0161b
CY
117342009-09-12 Chong Yidong <cyd@stupidchicken.com>
11735
11736 * fns.c (syms_of_fns): Doc fix (Bug#4227).
11737
bc5e75b6
SM
117382009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11739
11740 * keymap.c (Fwhere_is_internal): Use nconc2.
11741
c31c985e
AM
117422009-09-11 Alan Mackenzie <acm@muc.de>
11743
11744 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
11745 batch mode.
11746
78012bd2
AS
117472009-09-11 Andreas Schwab <schwab@linux-m68k.org>
11748
11749 * xdisp.c (display_mode_element): Detect cycles.
11750
9d889332
SM
117512009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11752
11753 * keymap.c (where_is_internal): Don't erroneously return nil right after
11754 filling the cache.
11755 (where_is_internal_1): Fix up typo.
11756
7ab5d780
GM
117572009-09-11 Glenn Morris <rgm@gnu.org>
11758
11759 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
11760 share a common doc-string.
11761
5238a749
SM
117622009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11763
66d77eda
SM
11764 * keymap.c (get_keymap): Return the actual keymap symbol rather than
11765 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
11766
5238a749
SM
11767 * keymap.c (QCadvertised_binding): New constant.
11768 (syms_of_keymap): Initialize it.
11769 (Fwhere_is_internal): Try and use bindings from :advertised-binding
11770 if applicable.
11771
19f48442
SM
117722009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11773
50d4ba39
SM
11774 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
11775 (parse_menu_item): Streamline since bindings are recomputed all the
11776 time anyway. Don't bother checking Vdefine_key_rebound_commands any
11777 more and don't support lmenu's menu-alias any more either.
11778
a88a5372
SM
11779 * keymap.c (where_is_internal_data): Make noindirect a boolean.
11780 (where_is_internal): Strip it down to only traverse the keymaps.
11781 Move the cache handling from Fwhere_is_internal to here.
11782 (Fwhere_is_internal): Move the handling of remapping and the choice of
11783 the best binding from where_is_internal to here.
11784 Unify the cached/noncached paths, so remapping is also handled
11785 correctly when the cache is used, and so the cache can be used to
11786 speed up remap-handling when applicable.
11787 Give preference to non-remapped bindings.
11788 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
11789 non-remapped bindings.
11790 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
11791 command remapping.
11792
19f48442
SM
11793 * xdisp.c (display_mode_element): Move list length limit from 50 to
11794 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
11795
599498c3 117962009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
11797
11798 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
11799
f9b7b5ac
SM
118002009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
11801
a53af587
JB
11802 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
11803 (Bug#4334)
11804
f9b7b5ac
SM
11805 * keymap.c (where_is_internal): Filter out shadowed remappings.
11806 Assume that where_is_internal returns unshadowed bindings to simplify
11807 the code and get rid of the gotos. Use ASIZE.
11808
04f4b72d
JD
118092009-09-04 Jan Djärv <jan.h.d@swipnet.se>
11810
4da146f2
JD
11811 * xterm.c (x_focus_changed): If we get a focusout and pointer
11812 is invisible, make it visible.
11813
04f4b72d
JD
11814 * xterm.h: Remove condition for declaration of
11815 x_*_window_to_frame.
11816
7cef7ce3
SM
118172009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11818
11819 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11820 initial terminal as well.
11821
a54fa5b7
JD
118222009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11823
11824 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 11825 x_menubar_window_to_frame.
a54fa5b7 11826
50426a04 11827 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
11828 (XTmouse_position): Do not return valid positions
11829 for clicks in the menubar and the toolbar for Gtk+.
11830
11831 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11832 if the widget for the event has the same top level as a frame,
11833 return the frame.
11834 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11835 internal windows, bug #4122.
11836 (x_non_menubar_window_to_frame): Remove.
11837
5a021dd0
GM
118382009-09-02 Glenn Morris <rgm@gnu.org>
11839
11840 * buffer.c (default-major-mode): Move most of the doc from here...
11841 (major-mode): ... to here.
11842
548fe2f3
NR
118432009-08-30 Nick Roberts <nickrob@snap.net.nz>
11844
11845 * process.c (wait_reading_process_output): Keep the descriptor
11846 when pty is used by a non-child process, e.g., in I/O buffer of
11847 GDB this allows inferior to be restarted.
11848
e0840eef
EZ
118492009-08-29 Eli Zaretskii <eliz@gnu.org>
11850
11851 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11852 both branches into one.
11853
82e98df4
SM
118542009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11855
11856 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11857 (main): Use enable-multibyte-characters rather than
11858 default-enable-multibyte-characters. Output a warning message when
11859 running a unibyte session.
11860
890617cb
YM
118612009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11862
11863 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11864 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11865 (copy_data_segment): Also copy __program_vars section.
11866 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11867 (dump_it) [LC_DYLD_INFO]: Use it.
11868
11869 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11870
e7adeadc
EZ
118712009-08-28 Eli Zaretskii <eliz@gnu.org>
11872
11873 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11874 $(SRC)/buildobj.h.
ef1b0ba7 11875 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
11876 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11877 $(SRC)/buildobj.h.
11878 (clean): Add buildobj.h.
11879
3ed8bbdc
TZ
118802009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11881
11882 * print.c (print_object): Set escapeflag to 1 when printing
11883 hashtable keys and values.
11884
155a6764
SM
118852009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11886
11887 * lread.c (read_integer): Use doubles (and potentially return a float
11888 number) as we do in string-to-number.
11889 (read1): Use strtol to read integers, signal errors on strtol's
11890 overflow and use floats if strtol's output is too large for
11891 Elisp integers.
11892
877610de
EZ
118932009-08-27 Eli Zaretskii <eliz@gnu.org>
11894
11895 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11896 (make-buildobj-SH): Fix last change.
11897 (SRC): Move to before where it's first used.
11898
ef73e7be
KH
118992009-08-27 Kenichi Handa <handa@m17n.org>
11900
550c8289
KH
11901 * process.c (send_process): Use encode_coding_object instead of
11902 encode_coding_string to perform eol-conversion even if the string
11903 is unibyte.
11904
60afa08d
KH
11905 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11906 character.
11907
ef73e7be 11908 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11909 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11910
7b3a82d7
DN
119112009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11912
5654bf63
DN
11913 * callproc.c (Fcall_process): Remove always true #if.
11914
7b3a82d7
DN
11915 * lisp.h: Replace #if 0 code for checking with text pointing to
11916 the --enable-checking configure flag.
11917
11918 * emacs.c (main): Mention the --enable-profiling configure flag
11919 instead of using CFLAGS.
11920
878bde49
KR
119212009-08-26 Ken Raeburn <raeburn@raeburn.org>
11922
11923 * Makefile.in (buildobj.h): New target.
11924 (doc.o): Depend on it.
11925 (temacs${EXEEXT}): Don't generate buildobj.lst.
11926 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11927 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11928 ($(BLD)/doc.$(O)): Depend on it.
11929 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11930 provided by Eli Zaretskii.)
11931 ($(TEMACS)): Don't generate buildobj.lst.
11932 * doc.c: Include buildobj.h.
11933 (buildobj): New static variable.
11934 (Fsnarf_documentation): Use it, instead of opening and reading
11935 buildobj.lst.
11936
1574224c
MA
119372009-08-25 Michael Albinus <michael.albinus@gmx.de>
11938
11939 * dbusbind.c (Fdbus_call_method)
11940 (Fdbus_call_method_asynchronously): Use English numeric format for
11941 timeout values in doc string.
11942
d9da2f45
KH
119432009-08-25 Kenichi Handa <handa@m17n.org>
11944
ef73e7be
KH
11945 * alloc.c (mark_char_table): New function.
11946 (mark_object): Use mark_char_table for a char-table.
11947
d9da2f45
KH
11948 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11949 (CHAR_TABLE_REF): Use it.
11950
c8edcc01
KR
119512009-08-23 Ken Raeburn <raeburn@raeburn.org>
11952
11953 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11954 before invoking the newly build emacs to check for load-path
11955 shadowing.
11956
7763401b
GM
119572009-08-22 Glenn Morris <rgm@gnu.org>
11958
11959 * Makefile.in (bootstrap_exe): New variable.
11960 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11961 Use ${bootstrap_exe}.
11962
729eadda
EZ
119632009-08-22 Eli Zaretskii <eliz@gnu.org>
11964
11965 * coding.h (encode_coding_string): Don't encode unibyte strings.
11966 (Bug#4047)
11967
eb4c6ace
MA
119682009-08-22 Michael Albinus <michael.albinus@gmx.de>
11969
11970 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11971
11972 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11973 intended as hotfix only.
11974 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11975
36e34d1b
AR
119762009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11977
11978 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11979 change, and clean up loose ends in the code left by it.
11980 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11981 yet another X11 format (rgb:r/g/b) for compatibility.
11982 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11983 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11984
f983eb8a
SM
119852009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11986
11987 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11988
3f56d3c6
MA
119892009-08-20 Michael Albinus <michael.albinus@gmx.de>
11990
11991 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11992 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11993 (xd_initialize, xd_pending_messages): Check, whether
11994 $DBUS_SESSION_BUS_ADDRESS is set.
11995
fb641d68
YM
119962009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11997
11998 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11999
12000 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12001
cf59a374
GM
120022009-08-20 Glenn Morris <rgm@gnu.org>
12003
12004 * emacs.c (system-type): Doc fix.
12005
1373f3be
SM
120062009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12009 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12010
058ed861
MA
120112009-08-18 Michael Albinus <michael.albinus@gmx.de>
12012
1373f3be
SM
12013 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12014 New functions.
058ed861
MA
12015 (xd_initialize): Revert change from 2009-08-16.
12016
563a866e 120172009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
12018
12019 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 12020 font-group vector, return nil.
5fc05db0 12021
e42bdf01
CY
120222009-08-17 Chong Yidong <cyd@stupidchicken.com>
12023
12024 * process.c (status_notify): Don't perform redisplay.
12025 (Fdelete_process, list_processes_1, process_send_signal):
12026 Expliticly perform redisplay.
12027 (wait_reading_process_output): Always check process status, but
12028 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12029
4230ab74
KR
120302009-08-17 Ken Raeburn <raeburn@raeburn.org>
12031
1373f3be 12032 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
12033 (XFLOAT_INIT): New macro for storing a float value.
12034 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12035 * fns.c (sxhash): Copy out the value of a float in order to
12036 examine its bytes.
12037 * dbusbind.c (xd_append_arg): Likewise.
12038
4230ab74
KR
12039 * emacs.c (main): Don't call syms_of_data twice.
12040
a0645cdd
MA
120412009-08-16 Michael Albinus <michael.albinus@gmx.de>
12042
12043 * dbusbind.c (xd_initialize): Add connection file descriptor to
12044 input_wait_mask, in order to let select() detect, whether a new
12045 message has been arrived.
ca4f31ea 12046 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 12047
485db0ba
MA
120482009-08-15 Michael Albinus <michael.albinus@gmx.de>
12049
1373f3be
SM
12050 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12051 New functions.
485db0ba
MA
12052
12053 * lisp.h (xd_pending_messages): Declare.
12054
12055 * keyboard.c (readable_events): Call xd_pending_messages.
12056
b5b98ff4
CY
120572009-08-15 Chong Yidong <cyd@stupidchicken.com>
12058
1373f3be 12059 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 12060
f8354c6e
CY
12061 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12062
b5b98ff4
CY
12063 * buffer.c (set_buffer_internal_1)
12064 (swap_out_buffer_local_variables): Check for unbound local
12065 variables (Bug#4138).
12066
8b9fc636
EZ
120672009-08-14 Eli Zaretskii <eliz@gnu.org>
12068
12069 * process.c (create_pty): Fix last change.
12070
ce959360
CY
120712009-08-13 Chong Yidong <cyd@stupidchicken.com>
12072
12073 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12074 (xbm_load_image): Caller changed.
64b807c9 12075 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 12076
c7baf7e9
NR
120772009-08-13 Nick Roberts <nickrob@snap.net.nz>
12078
12079 * process.c (create_pty): New function.
12080 (Fstart_process): Use it to allow Emacs to just associate a pty
12081 with the buffer. See associated change in gdb-mi.el.
12082 (list_processes_1): Deal with no program name.
12083 (start_process_unwind): Use pid == -2 to mean no process.
12084
1ac9108a
SM
120852009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12086
12087 * cmds.c (nonundocount): New global variable.
12088 (keys_of_cmds): Initialize it.
12089 (Fself_insert_command): Use it to combine upto 20 sequential chars
12090 into a single undo entry, just like the Qself_insert_command code in
12091 keyboard.c does.
12092 Call frame_make_pointer_invisible, also like the Qself_insert_command
12093 code in keyboard.c does.
12094 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12095 than its own local replacement for it.
12096
e267324c
KR
120972009-08-10 Ken Raeburn <raeburn@raeburn.org>
12098
1ac9108a 12099 * fns.c (concat): Don't re-set string length to its current value.
77437343 12100
1ac9108a
SM
12101 * coding.h (decode_coding_string, encode_coding_string):
12102 Use SBYTES macro.
f0bed503 12103
1ac9108a 12104 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
12105 (doprnt): Merge with doprnt1, discarding lispstrings code.
12106 * lisp.h (doprnt_lisp): Don't declare.
12107
416e006d
JL
121082009-08-07 Juri Linkov <juri@jurta.org>
12109
12110 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12111
6f7d5780
DN
121122009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12113
12114 * print.c (syms_of_print): Undo previous change.
12115
f19a0f5b
TZ
121162009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12117
12118 * lread.c (read1, syms_of_lread): Read hashtables back from the
12119 readable format.
12120
12121 * print.c (print_preprocess, print_object): Print hashtables fully
12122 and readably.
12123 (syms_of_print): Provide 'hashtable-print-readable.
12124
b9173dc2
AR
121252009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12126
12127 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12128 no family set.
12129 (nsfont_open): Handle case when entity has no family.
12130
1586503c
AR
121312009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12132
12133 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12134 element, not a list, for match case.
12135
087048cd
KH
121362009-07-28 Kenichi Handa <handa@m17n.org>
12137
12138 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12139 rigidly.
12140
12141 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12142 font_parse_xlfd. Check font properties more rigidly.
12143
780c2506
DN
121442009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12145
31fd7c5c
JB
12146 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12147 bsd-common.h.
780c2506 12148
a8c0cc18
KH
121492009-07-27 Kenichi Handa <handa@m17n.org>
12150
12151 * xfaces.c (face_with_height): Call font_clear_prop.
12152
4fbe2306
CY
121532009-07-26 Chong Yidong <cyd@stupidchicken.com>
12154
111d9af3
CY
12155 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12156
12157 * xterm.c (x_term_init): Use Qx.
12158
4fbe2306
CY
12159 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12160
1ac9108a 12161 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
12162 (ns_get_color): Revert 2009-07-16 change.
12163
beb0b7f9
EZ
121642009-07-25 Eli Zaretskii <eliz@gnu.org>
12165
12166 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 12167 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 12168
2baf5e76
KR
121692009-07-25 Ken Raeburn <raeburn@raeburn.org>
12170
1ac9108a
SM
12171 * coding.h (decode_coding_string, encode_coding_string):
12172 Use SCHARS macro.
8890e5f5 12173
2baf5e76 12174 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 12175 (load_depth): Delete.
2baf5e76
KR
12176 (Qload_in_progress): New variable.
12177 (load_unwind): Don't reference load_depth or load_in_progress.
12178 (Fload): Likewise; specbind Qload_in_progress instead.
12179 (init_lread): Don't initialize load_depth.
12180 (syms_of_lread): Initialize and protect Qload_in_progress.
12181
1395c6f5
AR
121822009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12183
12184 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12185
4e2f36cf
AR
121862009-07-23 Yavor Doganov <yavor@gnu.org>
12187
12188 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12189
5dd9a6f7
AR
121902009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12191
12192 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
12193 Bugs 3792, 3720, 2402.
12194 (ns_lookup_indexed_color): Check for bad index.
12195 (ns_index_color): Init unused slot to 0.
12196 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12197 Bug 3714, possibly 3082.
5dd9a6f7 12198
c902b920
JR
121992009-07-22 Jason Rumney <jasonr@gnu.org>
12200
1ac9108a
SM
12201 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12202 Position IME window at cursor (Bug#2570).
c902b920
JR
12203 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12204 (globals_of_w32fns): Dynamically load functions required above.
12205
12206 * w32term.c (w32_draw_window_cursor): Send message to reposition
12207 any IME window.
12208
090101cf
CY
122092009-07-21 Chong Yidong <cyd@stupidchicken.com>
12210
12211 * fileio.c: Revert 2009-07-16 changes.
12212 (Vauto_save_include_big_deletions): New variable.
12213 (Fdo_auto_save): Disable auto-save only if
12214 auto-save-include-big-deletions is nil.
12215
e6583e3d
CY
122162009-07-21 Chong Yidong <cyd@stupidchicken.com>
12217
12218 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12219 the overflowed pixels into account (Bug#3879).
12220
ece435a5
KR
122212009-07-21 Ken Raeburn <raeburn@raeburn.org>
12222
12223 * lread.c (load_depth): New variable.
12224 (Fload, load_unwind, init_lread): Set it to the load recursion
12225 depth; set load_in_progress as a simple boolean based on the
12226 current load_depth. (Bug#3892)
12227
40b2d973
AR
122282009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12229
12230 * nsfont.m (ns_has_attribute): Remove.
12231 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12232
10be7e0d
JL
122332009-07-18 Juri Linkov <juri@jurta.org>
12234
12235 * process.c (Fset_process_query_on_exit_flag): Mention killing
12236 a buffer in docstring.
12237
fa055055
KH
122382009-07-17 Kenichi Handa <handa@m17n.org>
12239
12240 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12241
042f7b69
YM
122422009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12243
12244 * nsfns.m (Fns_set_alpha): Remove function.
12245 (syms_of_nsfns): Don't defsubr it.
12246
12247 * nsterm.m (ns_get_color): Remove incompatible color formats.
12248 (ns_color_to_lisp): Generate #rrggbb color format string.
12249
4be941e3
RS
122502009-07-16 Richard Stallman <rms@gnu.org>
12251
12252 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12253 (Fset_buffer_auto_saved): Handle save_length = -2.
12254
4e6b227d
CY
122552009-07-16 Chong Yidong <cyd@stupidchicken.com>
12256
12257 * xterm.c (Qx_gtk_map_stock): New var.
12258
12259 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12260 of calling intern each time.
12261
a1856973
YM
122622009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12263
12264 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12265 does tiling.
12266
12267 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12268
497e54d8
KH
122692009-07-14 Kenichi Handa <handa@m17n.org>
12270
72d36834
KH
12271 * font.c (font_vconcat_entity_vectors): New function.
12272 (struct font_sort_data): New member font_driver_preference.
12273 (font_compare): Check font_driver_preference.
12274 (font_sort_entities): The format of the first argument changed.
12275 (font_delete_unmatched): Likewise.
12276 (font_list_entities): The return type changed.
12277 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12278 (font_find_for_lface): Adjuste for the above changes.
12279 Don't suppress the checking of C even if the repertory supports it.
12280 (Flist_fonts): Adjust for the above changes.
72d36834 12281
1ac9108a
SM
12282 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12283 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12284 Reject a font who has adstyle property that is different from a
12285 langname derived from registry property.
1ac9108a 12286 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12287
b6046155
EZ
122882009-07-13 Eli Zaretskii <eliz@gnu.org>
12289
12290 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12291 local copy of dirfilename.
12292
fb6b6049
KH
122932009-07-13 Kenichi Handa <handa@m17n.org>
12294
e2402a5e
KH
12295 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12296 against max_char.
12297
fb6b6049
KH
12298 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12299 calling XSYMBOL (sym).
12300
65156807
EZ
123012009-07-11 Eli Zaretskii <eliz@gnu.org>
12302
1ac9108a
SM
12303 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12304 New function.
12305 (directory_files_internal) [WINDOWSNT]:
12306 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
12307 the filesystem of the directory is fast or slow.
12308
12309 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12310 file name.
12311 (is_slow_fs): New function.
12312 (stat): Use it to determine whether to issue more system calls to
12313 get accurate file attributes, when w32-get-true-file-attributes is
12314 `local'.
12315
e0ab5fcf
JD
123162009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12317
12318 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 12319 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
12320 parameter font-parameter as default to the font dialog.
12321
784ceded
KH
123222009-07-10 Kenichi Handa <handa@m17n.org>
12323
12324 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12325
fb8edc0b
EZ
123262009-07-09 Eli Zaretskii <eliz@gnu.org>
12327
1ac9108a 12328 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 12329
fb8edc0b
EZ
12330 * w32.c (stat): Treat UNC file names as residing on remote
12331 drives. (Bug#3542)
12332
635c75b1
KH
123332009-07-09 Kenichi Handa <handa@m17n.org>
12334
12335 * fontset.c (fontset_find_font): Fix previous change.
12336
c1d5ce94
MA
123372009-07-08 Michael Albinus <michael.albinus@gmx.de>
12338
12339 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12340 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12341 error flag.
12342
edb61b39
KH
123432009-07-08 Kenichi Handa <handa@m17n.org>
12344
374bf7e4
KH
12345 * fontset.c (fontset_find_font): Fix the logic of handling
12346 charset_matched.
12347 (font_for_char): Delete unused var.
12348 (generate_ascii_font_name): Delete it.
12349
edb61b39
KH
12350 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12351
12352 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12353 (encode_coding_sjis): Fix the code range check.
12354
0f3f018c
CY
123552009-07-07 Chong Yidong <cyd@stupidchicken.com>
12356
12357 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12358 (Fexpand_file_name): Copy string data properly (Bug#3772).
12359
fcaf6f3a
JD
123602009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12361
12362 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12363 first MapNotify.
12364
6809ca75
KH
123652009-07-07 Kenichi Handa <handa@m17n.org>
12366
12367 * character.h (unibyte_has_multibyte_table): Delete extern.
12368 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12369
12370 * charset.c (Fset_charset_priority): Update charset_unibyte.
12371 (syms_of_charset): Initialize charset_unibyte.
12372
12373 * character.c (unibyte_has_multibyte_table): Delete it.
12374 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12375 charset_unibyte.
12376 (multibyte_char_to_unibyte_safe): Likewise.
12377 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12378
1ac9108a 12379 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
12380 (x_produce_glyphs): Likewise.
12381
12382 * .gdbinit (xcharset): Fix the treating $arg0.
12383
ad9e2d54
EZ
123842009-07-04 Eli Zaretskii <eliz@gnu.org>
12385
12386 Emulation of `getloadavg' on MS-Windows.
50426a04 12387 * w32.c: Include float.h.
ad9e2d54
EZ
12388 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12389 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12390 (get_native_system_info, get_system_times): New functions.
12391 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12392 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12393 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12394 g_b_init_get_system_times, and num_of_processors.
12395
0a3472c7
JR
123962009-07-03 Jason Rumney <jasonr@gnu.org>
12397
12398 * w32term.c (w32_initialize): Use standard types.
12399
80904120
EZ
124002009-07-03 Eli Zaretskii <eliz@gnu.org>
12401
12402 * dired.c (Ffile_attributes): Decode user and group names by the
12403 locale's encoding. (Bug#3443)
12404
6978862d
DN
124052009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12406
f8d23104
DN
12407 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12408 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12409
12410 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12411
12412 * term.c (init_tty): Remove spurious #ifdef.
12413
6978862d
DN
12414 * m/mips.h: Mention this file is also used for netbsd.
12415 * m/pmax.h: Remove file.
12416
e044e4fc
JD
124172009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12418
12419 * xterm.h (struct x_display_info): Add invisible_cursor.
12420 (struct x_output): Add current_cursor.
12421
12422 * xterm.c (XTtoggle_invisible_pointer): New function.
12423 (x_define_frame_cursor): Don't define cursor if invisible or the
12424 same as before. Set current_cursor.
12425 (x_create_terminal): Set toggle_invisible_pointer_hook.
12426
12427 * xfns.c (make_invisible_cursor): New function.
12428 (x_set_mouse_color): Call make_invisible_cursor.
12429 Set current_cursor.
12430 (x_window): Set current_cursor.
12431
12432 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12433
12434 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12435 inserting a character.
12436 (read_avail_input): Call frame_make_pointer_visible.
12437
12438 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12439 (frame_make_pointer_invisible, frame_make_pointer_visible):
12440 New functions.
e044e4fc
JD
12441 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12442
12443 * frame.h: Declare frame_make_pointer_invisible and
12444 frame_make_pointer_visible.
12445 (struct frame): Add pointer_invisible.
12446
574c8efa
JD
124472009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12448
7b507248
JD
12449 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12450 frame isn't visible.
12451 (xg_frame_resized): If width/height is -1, get size of window
12452 from X server.
12453
12454 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12455 for MapNotify.
12456
835bdaa7 12457 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12458 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12459 (flush_and_sync): Reintroduce.
574c8efa 12460
3f1c6666 124612009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12462
31fd7c5c 12463 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12464
12465 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12466 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12467
12468 * frame.h: Declare Qsticky.
12469
cad9ef74
JD
12470 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12471
12472 * nsfns.m (ns_frame_parm_handlers): Ditto.
12473
12474 * frame.c: Declare Qsticky.
12475 (frame_parms): Add sticky.
12476
12477 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12478
12479 * xterm.h: Declare x_set_sticky.
12480
12481 * xterm.c (x_set_sticky): New function.
12482
69b16610
JD
12483 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12484 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12485 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12486
12487 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12488
12489 * frame.c: Qmaximized is new.
12490 (x_set_frame_parameters): Do not handle fullscreen specially.
12491 Only set width and height if explicitly set.
12492 (x_set_fullscreen): Handle Qmaximized.
12493 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12494 (syms_of_frame): Initialize Qmaximized.
12495
1ac9108a
SM
12496 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12497 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12498
12499 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12500 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12501 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12502 set gravity to NorthWestGravity when USE_GTK.
12503 (set_wm_state): New function.
31fd7c5c 12504 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12505 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12506 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12507 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12508 to x_real_positions and x_fullscreen_adjust.
12509
12510 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12511 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12512 flush_and_sync.
12513 (xg_height_changed): New function.
12514 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12515 and gtk_window_set_policy. Set frame gravity after parsing the
12516 geometry string.
3f1c6666
JD
12517 (xg_update_frame_menubar, free_frame_menubar)
12518 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12519 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12520 Remove calls to xg_frame_set_char_size.
12521
fd503d99
KH
125222009-07-01 Kenichi Handa <handa@m17n.org>
12523
12524 * keyboard.c (decode_keyboard_code): New function.
12525 (tty_read_avail_input): Decode the input bytes if necessary.
12526
1ac9108a
SM
12527 * coding.c (setup_coding_system):
12528 Initialize coding->carryover_bytes to 0.
fd503d99
KH
12529 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12530 use Qno_conversion.
12531
24ed93fb
YM
125322009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12533
12534 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12535
99061dfc
CY
125362009-06-30 Chong Yidong <cyd@stupidchicken.com>
12537
1ac9108a 12538 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 12539
ff90fbde
JR
125402009-06-30 Jason Rumney <jasonr@gnu.org>
12541
12542 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12543 is already loaded.
12544 Set user model ID if supported (bug#1849).
12545
5f445726
JM
125462009-06-29 Jim Meyering <meyering@redhat.com>
12547
12548 Remove useless if-before-xfree test.
12549 * nsfont.m (nsfont_close): Remove useless test.
12550 * term.c (delete_tty): Likewise.
12551 * w32.c (system_process_attributes): Likewise.
12552 * w32font.c (w32font_close): Likewise.
12553 * xfaces.c (x_free_gc): Likewise.
12554 * xselect.c (buffer): Likewise.
12555
b9607587
AS
125562009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12557
12558 * process.c (send_process): Keep decoded string in a local
12559 variable and protect it from GC. (Bug#3521)
12560
89ba96f4
EZ
125612009-06-28 Eli Zaretskii <eliz@gnu.org>
12562
12563 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12564 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12565
098a1589
CY
125662009-06-28 Chong Yidong <cyd@stupidchicken.com>
12567
485422be
CY
12568 * xdisp.c (start_display, handle_face_prop)
12569 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
12570 (redisplay_window, try_window_id, produce_image_glyph):
12571 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 12572
098a1589
CY
12573 * xterm.c (x_update_window_begin, x_new_focus_frame)
12574 (x_scroll_bar_handle_click, handle_one_xevent)
12575 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12576 (x_make_frame_visible, x_make_frame_invisible)
12577 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12578 code chunks that are now obsolete.
12579
78c38319
MA
125802009-06-28 Michael Albinus <michael.albinus@gmx.de>
12581
12582 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12583 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12584 for hours, when optimzation is enabled.
12585 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12586 (xd_read_message): Make them static.
12587
4189ed40
CY
125882009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12589
12590 * term.c (turn_on_face): Allow simultaneously bold and dim
12591 terminal faces (Bug#3530).
12592
cd9b5e16
CY
125932009-06-27 Chong Yidong <cyd@stupidchicken.com>
12594
4e23bedb
CY
12595 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12596
cd9b5e16
CY
12597 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12598 truncation glyphs (Bug#3686).
12599
07cc3c35
GM
126002009-06-27 Glenn Morris <rgm@gnu.org>
12601
12602 * m/pmax.h: Restore file, with only netbsd portions.
12603
31fd7c5c 126042009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 12605
cd9b5e16 12606 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 12607
42d4a64f
KH
126082009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12609
12610 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12611 the arg FORCE_SYMBOL.
12612
930fe55b 126132009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
12614
12615 * fontset.c (fontset_find_font): When a usable rfont_def is found
12616 in a fallback font-group, make it the first element of the group.
12617
57ebc3fd
CY
126182009-06-24 Chong Yidong <cyd@stupidchicken.com>
12619
12620 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12621
f084f942
KH
126222009-06-24 Kenichi Handa <handa@m17n.org>
12623
12624 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12625 set for C.
12626 (fontset_font): Record the availability of a font for C both in
12627 the realized fontsets of the current one and the default one.
12628
2f686c87
DN
126292009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12630
12631 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12632 conditional, it is always defined on AIX.
12633
666e158e
MB
126342009-06-23 Miles Bader <miles@gnu.org>
12635
12636 * window.c (Vrecenter_redisplay): New variable.
12637 (syms_of_window): Initialize it.
12638 (Qtty): New extern declaration.
12639 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12640
c6da7cd2
JM
126412009-06-23 Jim Meyering <meyering@redhat.com>
12642
1ac9108a
SM
12643 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
12644 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 12645 pointer dereferences are guaranteed to be valid.
c6da7cd2 12646
678dca3d
KH
126472009-06-23 Kenichi Handa <handa@m17n.org>
12648
74d75424
KH
12649 * emacs.c (main): Call init_font ().
12650
12651 * font.h (Vfont_log): Extern it.
12652 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
12653
12654 * font.c (font_sort_entities, font_list_entities)
12655 (font_matching_entity, font_open_entity)
12656 (font_close_object): Change font_add_log to FONT_ADD_LOG.
12657 (Vfont_log): Delete static.
12658 (font_log_env_checked): Delete this variable.
12659 (font_add_log): Don't check font_log_env_checked.
12660 (font_deferred_log): Check Vfont_log.
12661 (init_font): New function.
12662
678dca3d
KH
12663 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
12664
12665 * w32font.c: Change font_add_log to FONT_ADD_LOG.
12666
12667 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
12668
12669 * xfont.c: Change font_add_log to FONT_ADD_LOG.
12670
12671 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
12672 (face_for_char): Don't call font_deferred_log here.
12673 (font_for_char): Likewise.
12674
8a668709
CY
126752009-06-22 Chong Yidong <cyd@stupidchicken.com>
12676
9a01ee33
CY
12677 * w32term.c (x_draw_glyph_string): Use the glyph string's width
12678 rather than its background_width for drawing the overline and
12679 underline (Bug#489).
12680
12681 * xterm.c (x_draw_glyph_string): Use the glyph string's width
12682 rather than its background_width for drawing the overline and
12683 underline (Bug#489).
ec7c9926
CY
12684 (xg_default_icon_file): New variable.
12685 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
12686 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 12687
8a668709
CY
12688 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
12689 (load_overlay_strings): Remove externs.
12690 (fast_find_position): Function deleted.
12691 (mouse_face_from_buffer_pos): New function, based on
12692 fast_find_position. Correctly handle before-strings,
12693 display-strings, and after-strings (Bug#1220).
12694 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
12695
4d4c02d8
CY
126962009-06-21 Chong Yidong <cyd@stupidchicken.com>
12697
1ac9108a 12698 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
12699 (move_it_in_display_line_to, move_it_in_display_line_to)
12700 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
12701
70243478
CY
127022009-06-21 Chong Yidong <cyd@stupidchicken.com>
12703
12704 * Branch for 23.1.
12705
13087e59
JR
127062009-06-21 Jason Rumney <jasonr@gnu.org>
12707
12708 * w32term.c (keyboard_codepage): New static variable.
12709 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
12710 (w32_read_socket) [WM_CHAR]: Use it to decode character
12711 input (bug#3237).
12712 (w32_initialize): Initialize it.
12713 (codepage_for_locale): New function.
12714
4735b74e
KR
127152009-06-20 Ken Raeburn <raeburn@raeburn.org>
12716
12717 * process.c (status_message): Pass Faset index argument as a lisp
12718 object, so as to work with USE_LISP_UNION_TYPE.
12719
0e727afa
YM
127202009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12721
12722 * coding.c (Ffind_coding_systems_region_internal):
12723 Cache checked characters.
12724
cf299835
KH
127252009-06-18 Kenichi Handa <handa@m17n.org>
12726
1ac9108a 12727 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 12728
90f20d94
AS
127292009-06-18 Andreas Schwab <aschwab@redhat.com>
12730
12731 * xdisp.c (redisplay_internal): Check that the frame is still
12732 live after redisplay of its windows.
12733 (redisplay_windows): Check that the window is still live.
12734
7f1faf1c
KH
127352009-06-17 Andreas Schwab <schwab@linux-m68k.org>
12736
12737 * coding.c (detect_coding_utf_16): Fix previous change.
12738
cc13543e
KH
127392009-06-16 Kenichi Handa <handa@m17n.org>
12740
12741 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
12742 UTF-16 by checking the dispersion of Eth and Oth bytes.
12743
977b85f4
AS
127442009-06-15 Andreas Schwab <schwab@linux-m68k.org>
12745
12746 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
12747
66bd43d1
KH
127482009-06-15 Kenichi Handa <handa@m17n.org>
12749
12750 * process.c (status_message): Fix previous change. Be sure to
12751 decode a localized string.
12752
cb5ca9c5
YM
127532009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12754
12755 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
12756 add comment explaining why.
12757
ec7709ba 127582009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 12759
ec7709ba 12760 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 12761
4b7f335c
AR
127622009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
12763
12764 * nsfont.m (ns_attribute_value): Remove.
12765 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
12766 (ns_has_attribute): Shrink the normal range.
12767 (ns_findfonts): Don't worry about requested spec in determining
12768 need for synthItal.
e41820ee 12769 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 12770
73b26103
SZ
127712009-06-14 Seiji Zenitani <zenitani@mac.com>
12772
12773 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
12774
5753e4da
KH
127752009-06-11 Kenichi Handa <handa@m17n.org>
12776
12777 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12778 overhang for the static composition case.
12779
3561b671
KH
127802009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12781
5753e4da
KH
12782 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12783 overhang for the automatic composition case.
12784
3561b671
KH
12785 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
12786 composition case.
12787
852bbd41
CY
127882009-06-10 Chong Yidong <cyd@stupidchicken.com>
12789
12790 * xdisp.c (get_next_display_element): When handling wrap-prefix
12791 and line-prefix, treat \n as a control character (bug#3502).
12792
9903d1e6
KH
127932009-06-10 Kenichi Handa <handa@m17n.org>
12794
12795 * font.c (font_parse_family_registry): Fix for one-char foundry.
12796 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
12797
0bcbaaaa
CY
127982009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
12799
12800 * process.c (status_message): Fix handling of multibyte signal
12801 string (Bug#3499).
12802
40aa3f13
JM
128032009-06-09 Jim Meyering <meyering@redhat.com>
12804
1f80c7e2
CY
12805 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
12806 color name is missing.
40aa3f13 12807
72d51285
KH
128082009-06-09 Kenichi Handa <handa@m17n.org>
12809
12810 * charset.c (Fmap_charset_chars): In docstring, state clearly that
12811 FROM-CODE and TO-CODE are codepoints of CHARSET.
12812
c1d04d84
AR
128132009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12814
12815 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12816
128172009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12818
12819 Changes to support :script/:lang/:otf in NS font driver.
12820 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12821 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12822 indicate not part of font driver interface, and change callers.
12823 (ns_get_family): Remove pointless null check.
12824 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12825 ns_spec_to_descriptor, ns_descriptor_to_entity.
12826 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12827 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12828 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12829 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12830 (ns_get_req_script, ns_accumulate_script_ranges)
12831 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12832 New functions.
12833 (nsfont_list, nsfont_match): Use ns_findfonts.
12834 (nsfont_open): Use font descriptor instead of traits.
12835 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12836 (dump_glyphstring): Rename to ns_dump_glyphstring.
12837
c7eb9816
AR
12838 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12839
c1d04d84
AR
12840 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12841
12842 * fontset.c (fontset_from_font): Remove NS-specific code.
12843
ec7709ba 128442009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
12845
12846 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12847 nonactive windows.
12848
31fd7c5c 128492009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 12850
1ac9108a 12851 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 12852
68852c13 128532009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
12854
12855 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12856
6756cd1d
CY
128572009-06-07 Chong Yidong <cyd@stupidchicken.com>
12858
12859 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12860 account for the overflowing of newlines into the last glyph on the
12861 display line (Bug#3482).
12862
28bf482a
DR
128632009-06-05 David Reitter <david.reitter@gmail.com>
12864
ec7709ba
JB
12865 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12866 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
12867 Fns_selection_exists_p, Fns_selection_owner_p.
12868
fdb55376
JR
128692009-06-03 Jason Rumney <jasonr@gnu.org>
12870
12871 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12872 available. (Bug#3379)
12873
05129fbe
KH
128742009-05-29 Kenichi Handa <handa@m17n.org>
12875
1ac9108a
SM
12876 * coding.c (get_translation_table):
12877 Check Venable_character_translation.
05129fbe 12878
ec7709ba 128792009-05-26 David Reitter <david.reitter@gmail.com>
15891144 12880
ec7709ba
JB
12881 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12882 (x_make_frame_visible): Move frame to front rather than calling
15891144 12883 ns_raise_frame().
ec7709ba 12884 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 12885 isn't key window.
ec7709ba 12886 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
12887 drawRect may be called by NSView even if the frame is hidden.
12888
ec7709ba
JB
12889 * nsfns.m (Fx_create_frame): Follow other ports in
12890 determining visibility; default to t. Ensure async_visible is set.
15891144 12891
21f73755
EZ
128922009-05-23 Eli Zaretskii <eliz@gnu.org>
12893
12894 * dired.c (Ffile_attributes): Doc fix.
12895
34001e41
CY
128962009-05-22 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12899
46306a17
SM
129002009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12901
12902 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12903 and xfont_scratch_props.
12904 (syms_of_xfont): Do it here instead.
12905 (xfont_find_ccl_program): Delete, unused.
12906 (xfont_open): Delete unused var `i'.
12907
ef6e0694
KH
129082009-05-21 Kenichi Handa <handa@m17n.org>
12909
12910 * fontset.c (Qlatin): Don't make it static.
12911
46306a17
SM
12912 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12913 New functions.
ef6e0694
KH
12914 (xfont_scripts_cache, xfont_scratch_props): New variables.
12915 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12916 (xfont_list_pattern): Argument changed. Callers changed.
12917 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12918 (xfont_list): Don't reject a font spec with :script property.
12919 (xfont_has_char): Fix setting of encoding.
12920 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12921 xfont_scratch_props.
12922
129232009-05-19 Kenichi Handa <handa@m17n.org>
12924
46306a17 12925 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12926 Callers changed.
12927
129282009-05-18 Kenichi Handa <handa@m17n.org>
12929
12930 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12931
ac71ced7
SM
129322009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12933
12934 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12935 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12936
1c6d1051
YM
129372009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12938
12939 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12940 (x_delete_terminal): Dissociate resource database from display and
12941 then call XrmDestroyDatabase before closing display.
12942
9b9b779c
AR
129432009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12944
12945 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12946 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12947 whether selected frame is viable before raising it (based on patch
12948 by David Reitter), and improve commentary.
12949 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12950
cccd42d5
KH
129512009-05-15 Kenichi Handa <handa@m17n.org>
12952
12953 * font.c (Ffont_spec): Check arguments.
12954
337fbd17
CY
129552009-05-14 Chong Yidong <cyd@stupidchicken.com>
12956
12957 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12958 weight when testing attributes (Bug#3282).
12959
47a6002f
JD
129602009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12961
12962 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12963 what we expect to get in the next ConfigureNotify event.
12964
9cb363db
YM
12965 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12966 before Xft one (Bug#1696).
12967
b9126609
CY
129682009-05-07 David Reitter <david.reitter@gmail.com>
12969
12970 * nsfns.m (Fx_display_planes): Compute bitplanes using
12971 NSBitsPerPixelFromDepth (Bug#3207).
12972
27a69fd9
CY
129732009-05-10 Chong Yidong <cyd@stupidchicken.com>
12974
12975 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12976
00f37552
TTN
129772009-05-10 Ulrich Mueller <ulm@gentoo.org>
12978
12979 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12980
2d82a920
DR
129812009-05-07 David Reitter <david.reitter@gmail.com>
12982
ec7709ba
JB
12983 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12984 Respect mouse face background.
2d82a920 12985
46b0d52d
DR
129862009-05-07 David Reitter <david.reitter@gmail.com>
12987
ec7709ba
JB
12988 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12989 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12990 in ns_update_begin and ns_update_end.
12991
ce1b23bb
SM
129922009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12993
5996e1b7
SM
12994 * nsfns.m (ns_get_screen): Rewrite.
12995 Don't presume selected-frame is of type `ns'.
12996
ba98e3a0
SM
12997 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12998 all drivers.
12999
ce1b23bb
SM
13000 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13001
bcda200f
YM
130022009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13003
13004 * keyboard.h (add_user_signal): Fix typo in extern.
13005
13006 * lisp.h (add_user_signal): Remove extern.
13007
13008 * unexelf.c (unexec): Consider a section to precede the .bss section
13009 if its addresses overlap that of .bss.
13010 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13011 instead of dumping process.
13012
864660a2
SM
130132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13014
13015 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13016
50da4e56
SM
130172009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13018
13019 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13020
51520a1a
DN
130212009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13022
13023 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13024 any statements.
13025
409ea3a1
AS
130262009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13027
59c4c60f
AS
13028 * process.c (read_process_output): Make sure the current buffer is
13029 always restored.
13030
409ea3a1
AS
13031 * coding.c (record_conversion_result): Don't modify
13032 Vlast_code_conversion_error for successful result.
13033 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13034
56f00ed2
KH
130352009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13036
13037 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 13038 (load_charset_map): Remove unnecessary code.
56f00ed2 13039
4491c9d2
DR
130402009-04-30 David Reitter <david.reitter@gmail.com>
13041
35f5b128 13042 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
13043 through f24.
13044
6970f632
CY
130452009-04-30 Chong Yidong <cyd@stupidchicken.com>
13046
13047 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13048
13049 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13050 face_at_buffer_position.
13051 (face_before_or_after_it_pos, get_next_display_element)
13052 (note_mouse_highlight): Update face_at_buffer_position call.
13053
13054 * term.c (term_mouse_highlight):
13055 * msdos.c (IT_note_mouse_highlight):
13056 * fontset.c (Finternal_char_font):
35f5b128 13057 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
13058
13059 * dispextern.h (face_at_buffer_position): Update prototype.
13060
0c616f63
KH
130612009-04-30 Kenichi Handa <handa@m17n.org>
13062
35f5b128 13063 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 13064
ad3aaf33
AS
130652009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13066
13067 * callproc.c (Fcall_process): Fix GC protection. Make sure
13068 current buffer is always restored.
13069
c3c963a0
YM
130702009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13071
13072 * atimer.c (init_atimer): Also clear stopped_atimers.
13073
13074 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13075
7e3386cb
YM
13076 * process.c (create_process): Clean up merger residues of
13077 2008-07-17 change.
13078
91f68422
CY
130792009-04-29 Ulrich Mueller <ulm@gentoo.org>
13080
13081 * lread.c (Vread_circle): New variable.
13082 (read1): Disable recursive read if Vread_circle is nil.
13083
24b34550
KH
130842009-04-29 Kenichi Handa <handa@m17n.org>
13085
13086 * fontset.h (set_default_ascii_font): Delete extern.
13087
13088 * fontset.c (set_default_ascii_font): Delete this unused function.
13089
13090 * frame.c (x_set_font): When ARG is a font-object, check if the
13091 font-object matches with the ASCII font-spec of the frame's
9c358bda 13092 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 13093
77bf07e1
AS
130942009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13095
13096 * fns.c (Flocale_info): Protect vector from GC during decoding.
13097
13098 * process.c (Fstart_process): Protect argv strings from GC during
13099 encoding.
13100
2c55aacf
AS
131012009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13102
13103 * sysdep.c: Include <ctype.h>.
13104
b892d3c9
DR
131052009-04-27 David Reitter <david.reitter@gmail.com>
13106
35f5b128 13107 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
13108 Remove commented-out code.
13109
9d0644c4
JB
131102009-04-26 Johan Bockgård <bojohan@gnu.org>
13111
13112 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13113
b7053016
JR
131142009-04-25 Jason Rumney <jasonr@gnu.org>
13115
13116 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13117
4e8231f3
YM
131182009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13119
13120 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13121 Swap bytes in short integer if fringe bitmap width > 8.
13122
493dcf2c
KH
131232009-04-23 Kenichi Handa <handa@m17n.org>
13124
13125 * xfaces.c (Fx_list_fonts): If a font size is specified in
13126 PATTERN, set it in returned scalable fonts.
13127
401e9e57
CY
131282009-04-22 Chong Yidong <cyd@stupidchicken.com>
13129
708e05dc
CY
13130 * keyboard.c (Fset_input_meta_mode): Doc fix.
13131
13132 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13133
1ac9108a 13134 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
13135
13136 * coding.c (Fterminal_coding_system): Doc fix.
13137
13138 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13139 (Fx_display_pixel_height, Fx_display_planes)
13140 (Fx_display_color_cells, Fx_server_max_request_size)
13141 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13142 (Fx_display_mm_height, Fx_display_mm_width)
13143 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
13144 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13145 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
13146 (check_x_display_info): Handle terminal objects instead of
13147 terminal ids.
13148
401e9e57
CY
13149 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13150 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
13151 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13152 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 13153
df80c7f0
KH
131542009-04-21 Kenichi Handa <handa@m17n.org>
13155
5a8f12af 13156 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 13157 (font_score): Check AVGWIDTH too.
908567ef 13158
df80c7f0
KH
13159 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13160 worst case.
1ac9108a
SM
13161 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13162 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 13163
705af33f
JR
131642009-04-19 Jason Rumney <jasonr@gnu.org>
13165
13166 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 13167 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
13168
13169 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13170 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13171 get_phys_cursor_geometry.
13172
b71ac3dd 13173 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
13174 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13175 using get_phys_cursor_geometry.
13176
13177 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13178 correctly calculated.
13179
dc2933eb
JD
131802009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13181
1ac9108a
SM
13182 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13183 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
13184 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13185 is deprecated.
13186
973e7849
AS
131872009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13188
13189 * font.c (font_put_frame_data): Use xfree instead of free.
13190
314d66f4
JB
131912009-04-17 Juanma Barranquero <lekktu@gmail.com>
13192
13193 * w32font.c (Qja, Qko): Remove declarations.
13194 (syms_of_w32font): Don't DEFSYM them.
13195
cf702558
CY
131962009-04-17 Chong Yidong <cyd@stupidchicken.com>
13197
13198 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13199
13200 * font.h (Qja, Qko): Extern them.
13201
13202 * ftfont.c (Qja, Qko): Remove declarations.
13203
13204 * xfont.c (Qja, Qko): Remove declarations.
13205
b50504f5
KH
132062009-04-17 Kenichi Handa <handa@m17n.org>
13207
bde25748
KH
13208 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13209 string from a vector to handle Latin-1 characters correctly.
13210
b50504f5
KH
13211 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13212 entity even if the cache hits.
13213
f4646fff
AS
132142009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13215
13216 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 13217 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 13218
e7deaab0
AS
13219 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13220 * lisp.h: Adjust prototypes.
13221
0a0e7d49
CY
132222009-04-16 Chong Yidong <cyd@stupidchicken.com>
13223
13224 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13225 change (Bug#3003).
13226
3c908a57
KH
132272009-04-16 Kenichi Handa <handa@m17n.org>
13228
1ac9108a 13229 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
13230
13231 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13232 adstyle.
13233
13234 * ftfont.c (Qja, Qko): Don't make them static.
13235 (enum ftfont_cache_for): New enum.
13236 (fc_charset_table): Undo the previous change.
13237 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
13238 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13239 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
13240 non-scarable font, try to get AVERAGE_WIDTH.
13241 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13242 Change ft_face_cache from a list of a hash-table. Don't check
13243 `ja' and `ko' adstyle here.
13244 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13245 FTFONT_CACHE_FOR_CHARET.
13246 (ftfont_get_charset): Undo the previous change.
1ac9108a 13247 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
13248 (ftfont_close): Likewise.
13249 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13250
13251 * font.c (font_sort_entites): Change the meaning of the arg
13252 BEST-ONLY. Don't optimize for VEC of lenght 1.
13253 (font_select_entity): Just return the value of font_sort_entites.
13254
13255 * xfaces.c (merge_face_vectors): Reflect font properties in
13256 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13257 font_clear_prop if a face attribute doesn't change.
13258
3c908a57
KH
13259 * charset.h (charset_ksc5601): Extern it.
13260
13261 * charset.c (charset_ksc5601): New variable.
13262 (Fdefine_charset_internal): Set charset_ksc5601.
13263 (init_charset_once): Initialize charset_ksc5601 to -1.
13264
d65859c3
DN
132652009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13266
13267 * fileio.c (history_delete_duplicates): Remove unused declaration.
13268
13269 * callint.c (history_delete_duplicates): New declaration.
13270 (Fcall_interactively): Remove command history duplicates when
13271 history_delete_duplicates is true.
13272
3ba010e5
EZ
132732009-04-14 Eli Zaretskii <eliz@gnu.org>
13274
13275 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13276
06f19b91
KH
132772009-04-14 Kenichi Handa <handa@m17n.org>
13278
13279 * font.c (Ffont_info): Fix docstring. Fix the second element of
13280 the returned value (bug#2949).
13281
2cce8bfc
CY
132822009-04-14 Chong Yidong <cyd@stupidchicken.com>
13283
13284 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13285
d156542d
KH
132862009-04-14 Kenichi Handa <handa@m17n.org>
13287
13288 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13289 encoding charset is ascii_compatible.
13290
13291 * charset.c (Fdefine_charset_internal): Make charset
13292 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13293 code_offset is 0, and covers all ASCII characters.
13294
86fa089e
SM
132952009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13296
13297 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13298 (ns_string_to_pasteboard_internal):
13299 * nsmenu.m (process_dialog):
13300 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13301 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13302 * lisp.h (Fx_load_color_file): Declare.
13303
a8a3728b
KH
133042009-04-13 Kenichi Handa <handa@m17n.org>
13305
1ac9108a 13306 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
13307 (font_select_entity): Suppress the code to optimize for the same
13308 kind of fonts.
13309 (font_load_for_lface): Get a font that supports at least ASCII
13310 characters.
13311
13312 * ftfont.c (Qja, Qko): New variables.
13313 (fc_charset_table): Delete uniquifier data for iso8859-1.
13314 (ftfont_get_latin1_charset): New function.
13315 (get_adstyle_property): New function.
13316 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13317 bitmap fonts.
13318 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13319 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13320 `ko' or `ja'.
13321 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 13322 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
13323 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13324 property.
13325 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13326 (syms_of_ftfont): DEFSYM Qja and Qko.
13327
483670b5
KH
133282009-04-09 Kenichi Handa <handa@m17n.org>
13329
12b55765
KH
13330 * charset.c (map_charset_chars): For a charset of `superset'
13331 method, fix calculation of code range.
13332
483670b5
KH
13333 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13334 from the list of extra properties.
13335 (font_clear_prop): Be sure to delete `:name' font property.
13336
57d3b93b
KH
133372009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13338
b4b2c2ca
YM
13339 * dispnew.c (redraw_overlapping_rows): Fix detection of
13340 overlapping for topmost and bottommost rows.
13341
1ac9108a 13342 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 13343
472c3609
JR
133442009-04-06 Jason Rumney <jasonr@gnu.org>
13345
13346 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13347
ab193662
KH
133482009-04-06 Kenichi Handa <handa@m17n.org>
13349
13350 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13351
13352 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13353
0c26f026
KH
133542009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13355
13356 * ftfont.c (ftfont_open): Fix checking of the return value of
13357 FT_Load_Char. Fix setting font->underline_thickness.
13358
e173bbce
CY
133592009-04-04 Chong Yidong <cyd@stupidchicken.com>
13360
13361 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13362 (Fterminal_parameters, Fterminal_parameter)
13363 (Fset_terminal_parameter): In doc string, refer to terminal
13364 objects rather than terminal ids.
13365
693a2698
EZ
133662009-04-04 Eli Zaretskii <eliz@gnu.org>
13367
13368 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13369 ret_lim_data. (Bug#2867)
13370
d5221487
CY
133712009-04-03 Chong Yidong <cyd@stupidchicken.com>
13372
13373 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13374 so they don't get wider than the window, matching 2006-01-23
13375 change to the partner function in xdisp.c (Bug#2800).
13376
223509a3
KH
133772009-04-03 Kenichi Handa <handa@m17n.org>
13378
13379 * print.c (print_object): Make each lowest sub_char_table start a
13380 new line (Bug#2866).
13381
74fcd0b1
KH
133822009-04-02 Kenichi Handa <handa@m17n.org>
13383
13384 * fontset.c (fontset_font): Record no-font when a fontset
13385 explicitly tells not to try another font-specs.
13386
c542407d
SM
133872009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13388
13389 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13390
e3869731
KH
133912009-03-30 Kenichi Handa <handa@m17n.org>
13392
d8d2f142
KH
13393 * fontset.c (fontset_from_font): Specify only registry in a
13394 font-spec for all characters supported by that registry.
13395
e3869731
KH
13396 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13397 even if HAVE_M17N_FLT is not defined.
13398
5da5f805
CY
133992009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13400
13401 * ftfont.c: Conditionalize prototyping and use of
13402 ftfont_variation_glyphs.
13403
ab226c50
SM
134042009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13405
9628fed7
SM
13406 * frame.c (delete_frame): Work around compiler bug.
13407
13408 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13409 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13410 Some more EMACS_INT.
13411 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13412
13413 * xdisp.c (dump_glyph): Fix typo.
13414
ae19ba7c
SM
13415 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13416 (adjust_markers_gap_motion, adjust_markers_for_delete)
13417 (adjust_markers_for_insert, adjust_point)
13418 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13419 (make_gap, copy_text, count_size_as_multibyte, insert)
13420 (insert_and_inherit, insert_before_markers)
13421 (insert_before_markers_and_inherit, insert_1)
13422 (count_combining_before, count_combining_after, insert_1_both)
13423 (insert_from_string, insert_from_string_before_markers)
13424 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13425 (insert_from_buffer_1, adjust_after_replace)
13426 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13427 (replace_range_2, del_range, del_range_1, del_range_byte)
13428 (del_range_both, del_range_2, modify_region)
13429 (prepare_to_modify_buffer, signal_before_change)
13430 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13431 for buffer positions and sizes.
13432 * lisp.h: Adjust prototypes accordingly.
13433
13434 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13435 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13436 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13437
ab226c50
SM
13438 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13439
46dfb8fb
JD
134402009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13441
13442 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13443 lines and columns so we keep the same pixel height and width.
13444
13445 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13446 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13447 (x_handle_net_wm_state): New function to update frame parameter
13448 fullscreen.
13449 (x_term_init): Initialize atoms for _NET_WM_STATE.
13450
13451 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13452
d347e494
SM
134532009-03-27 Kevin Ryde <user42@zip.com.au>
13454
13455 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13456 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13457 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13458 (Fgpm_mouse_stop): Pass that new parameter.
13459 * termhooks.h (close_gpm): Adjust prototype.
13460
84db11d6
SM
134612009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13462
c95a5008
SM
13463 * lisp.h (Fx_focus_frame): Declare.
13464
84db11d6
SM
13465 * callint.c (Fcall_interactively): For '^' just delegate the work to
13466 handle-shift-selection.
13467 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13468
0a1958d6
CY
134692009-03-24 Chong Yidong <cyd@stupidchicken.com>
13470
0bfdff23
CY
13471 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13472
0a1958d6
CY
13473 * data.c (Qinteractive_form): New variable.
13474 (Finteractive_form): Use it.
13475
13476 * eval.c (Fcommandp): Use Qinteractive_form.
13477
58aec0d6
JR
134782009-03-24 Jason Rumney <jasonr@gnu.org>
13479
13480 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13481 Calculate total size precisely. Decode environment variables
13482 before substituting. (Bug#38)
13483
553dd618
KH
134842009-03-24 Kenichi Handa <handa@m17n.org>
13485
13486 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13487 encoding (Bug#2722).
553dd618 13488
c39ea606
JD
134892009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13490
13491 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13492 that gdpy is set.
13493
bc9b2b5e
AM
134942009-03-22 Alan Mackenzie <acm@muc.de>
13495
13496 * callint.c (Finteractive): Clarify the doc string - even
13497 promptless elements need \n separators.
13498
9f995a76
JR
134992009-03-22 Jason Rumney <jasonr@gnu.org>
13500
13501 * w32term.c (syms_of_w32term): Doc fix for
13502 x-use-underline-position-properties.
13503
22749e9a
EZ
135042009-03-21 Eli Zaretskii <eliz@gnu.org>
13505
13506 * w32.c (getpwuid): Change argument type to unsigned.
13507 (struct w32_id): Change type of `rid' member to unsigned.
13508 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13509 argument ID to unsigned. All callers changed.
13510 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13511
e00553bf
EZ
135122009-03-20 Eli Zaretskii <eliz@gnu.org>
13513
13514 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13515 negative, produce a float value.
13516
13517 * dired.c (make_uid, make_gid): New functions.
13518 (Ffile_attributes): Use them to avoid negative UID and GID.
13519
f761d6b6
JB
135202009-03-20 Juanma Barranquero <lekktu@gmail.com>
13521
13522 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13523 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13524 Fix typos in docstrings.
13525
d507f8d7
KH
135262009-03-19 Kenichi Handa <handa@m17n.org>
13527
13528 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
13529 changed, use font_load_for_lface to get a new font object.
13530 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
13531
13532 * frame.c (x_set_font): Handle the case that ARG is a cons.
13533
c68845e0
GM
135342009-03-19 Glenn Morris <rgm@gnu.org>
13535
13536 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13537
bfa49dd1
CY
135382009-03-19 Chong Yidong <cyd@stupidchicken.com>
13539
13540 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13541
8458d4c1
KH
135422009-03-19 Kenichi Handa <handa@m17n.org>
13543
13544 * charset.c (load_charset_map_from_file): When a mapfile can't be
13545 loaded, signal an error.
13546
78e7d1fe
EZ
135472009-03-18 Eli Zaretskii <eliz@gnu.org>
13548
13549 * dired.c (Ffile_attributes): Make sure UID and GID are always
13550 positive, even if the value is too large for a positive EMACS_INT.
13551 Doc fix.
13552
13553 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13554
5da9fdfa
YM
135552009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13556
13557 * xmenu.c (xdialog_show): Move Fredisplay call ...
13558 (Fx_popup_dialog): ... here.
13559
7519c40d
SM
135602009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13561
13562 * dired.c (file_name_completion): Disable the first optimization just
13563 installed, since it is not implemented correctly.
13564
2cd298e2
SM
135652009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13566
13567 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 13568 only if the entry can affect bestmatch.
2cd298e2
SM
13569 Stop the search early, as Ftry_completion already does.
13570
48d37adf
CY
135712009-03-17 Chong Yidong <cyd@stupidchicken.com>
13572
e10c9c93 13573 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 13574
9286b16a
CY
135752009-03-15 Chong Yidong <cyd@stupidchicken.com>
13576
13577 * keyboard.c (parse_menu_item): Don't display remappings as menu
13578 equivalent bindings (Bug#788).
13579
f7b146dc
JR
135802009-03-15 Jason Rumney <jasonr@gnu.org>
13581
13582 * w32term.h (WM_EMACS_PAINT): New message.
13583 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13584 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13585 before passing to lisp thread. (Bug#950)
13586
f761d6b6 135872009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 13588
d93f9575
CY
13589 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13590 variable as it was never reset.
13591 (ns_term_init): Remove initialization of Lisp-settable defaults
13592 and ns_expand_space.
13593 (-setPanelFromDefaultValues): Remove ns_expand_space.
13594 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13595 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
13596 i.e. no additional spacing, similar to Carbon port.
13597
d93f9575
CY
13598 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13599 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 13600
305018ec
JD
136012009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13602
13603 * sound.c (alsa_configure): Remove call to deprecated
13604 snd_pcm_sw_params_set_xfer_align.
13605
f761d6b6 136062009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
13607
13608 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13609 after clicking in a detached tool bar.
13610 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13611
46e722a9
SM
136122009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13613
348db3dd
SM
13614 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13615 int/Lisp_Object mixup).
46e722a9 13616
a3d16f39
KH
136172009-03-13 Kenichi Handa <handa@m17n.org>
13618
13619 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 13620 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
13621 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13622 (set_fontset_font): Change ARG to a vector. Handle range_list in
13623 ARG correctly.
13624 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 13625 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
13626 the above change.
13627 (fontset_from_font): Fix previous change.
fe24f56a 13628 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
13629 entry. If FONTSET is the default fontset, don't set the extra
13630 slot of the returning char-table.
13631
b066e6b6
JB
136322009-03-12 Juanma Barranquero <lekktu@gmail.com>
13633
13634 * nsfns.m (Fx_close_connection): Doc fix.
13635 (Fns_do_applescript): Reflow docstring.
13636 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13637 (Fx_display_pixel_width, Fx_display_pixel_height)
13638 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13639 Fix typos in docstrings.
13640 (Fns_set_alpha): Fix typos in error messages.
13641
d472514e 136422009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 13643
d472514e 13644 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
13645 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
13646 were used for such events.
13647
d472514e
JB
13648 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
13649 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 13650
d472514e 13651 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
13652 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
13653
fb930676
KH
136542009-03-11 Kenichi Handa <handa@m17n.org>
13655
ff85581a
KH
13656 * font.h (font_open_by_spec): Extern it.
13657
c50b7e98
KH
13658 * font.c (font_open_by_spec): New function.
13659 (font_open_by_name): Use font_open_by_spec.
13660
fb930676
KH
13661 * frame.c (x_set_font): When ARG is a font-object, don't alter the
13662 fontset of the frame.
13663
13664 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
13665 modify the default font of frames that use this fontset.
13666 (num_auto_fontsets): New variable.
13667 (fontset_from_font): Use num_auto_fontsets to decide a fontset
13668 name. Be sure to set FONTSET_ASCII to the correct font name.
13669 (update_auto_fontset_alist): New function.
13670
df4e8455
JB
136712009-03-11 Juanma Barranquero <lekktu@gmail.com>
13672
13673 * makefile.w32-in: Update dependencies.
13674
0a375797
AR
136752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13676
13677 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
13678
61313fa3
SM
136792009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13680
13681 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
13682
b55103fb
CY
136832009-03-10 Chong Yidong <cyd@stupidchicken.com>
13684
13685 * lread.c (Feval_buffer): Doc fix.
13686
dde2559c
KH
136872009-03-09 Kenichi Handa <handa@m17n.org>
13688
13689 * charset.c (Qfile_name_handler_alist): Extern it.
13690 (load_charset_map_from_file): Temporarily bind
13691 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
13692
df4e8455 136932009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 13694
47f588bb
GM
13695 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
13696 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 13697
4ddf94bd
AR
136982009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13699
4c9bdfc2
AR
13700 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
13701 (x_set_window_size): Change back to calculated method of setting
13702 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
13703 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
13704 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
13705
fe41ae9e
AR
13706 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
13707
4c9bdfc2
AR
13708 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
13709 accelerator in parens under GNUstep.
13710
825d0875
KH
137112009-03-06 Kenichi Handa <handa@m17n.org>
13712
13713 These changes are to detect incorrect composition sequence without
f3b3be74 13714 looking ahead the source. (Bug#2370)
825d0875
KH
13715
13716 * coding.h: Include "composite.h".
13717 (enum compisition_state): New enum.
13718 (struct compisition_status): New struct.
13719 (struct iso_2022_spec): New member cmp_status.
13720 (struct emacs_mule_spec): New struct.
13721 (struct coding_system): New members ctext_extended_segment_len and
13722 embedded_utf_8. Change the union member
13723 spec.emacs_mule_full_support to spec.emacs_mule.
13724
13725 * coding.c (CODING_ISO_CMP_STATUS): New macro.
13726 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 13727 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
13728 (ADD_COMPOSITION_DATA): New arg nbytes.
13729 (emacs_mule_char): New arg cmp_status.
13730 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
13731 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
13732 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
13733 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
13734 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
13735 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
13736 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
13737 (EMACS_MULE_COMPOSITION_END): New macro.
13738 (emacs_mule_finish_composition): New function.
13739 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
13740 (decode_coding_emacs_mule): Avoid long looking ahead while
13741 handling composition.
13742 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
13743 (ENCODE_COMPOSITION_RULE): New macro.
13744 (finish_composition): New function.
13745 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
13746 (DECODE_COMPOSITION_START): New implementation.
13747 (DECODE_COMPOSITION_END): Likewise.
13748 (STORE_COMPOSITION_RULE): New macro.
13749 (decode_coding_iso_2022): Avoid long looking ahead while handling
13750 composition, CTEXT extended segment, and embedded UTF-8.
13751 (setup_coding_system): For a coding of type iso-2022, reset
13752 CODING_ISO_EXTSEGMENT_LEN (coding) and
13753 CODING_ISO_EMBEDDED_UTF_8 (coding).
13754 (get_translation): Delete arguments last_block, from_nchars,
13755 to_nchars. Callers changed.
13756 (produce_chars): Don't modify charbuf. Adjusted for the change of
13757 get_translation.
98a326f7 13758 (produce_composition): Adjust for the new annotation sequence.
825d0875 13759 (handle_composition_annotation): Likewise.
98a326f7 13760 (consume_chars): Adjust for the change of get_translation.
825d0875 13761
ccbc4452
AR
137622009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
13763
4ddf94bd 13764 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 13765
988a7ddb
KH
137662009-03-05 Kenichi Handa <handa@m17n.org>
13767
13768 * font.c (font_select_entity): New function.
13769 (font_find_for_lface): Use font_select_entity to select a font.
13770
13771 * fontset.c (fontset_find_font): If a font found without
a8a3728b 13772 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
13773 font with C restriction.
13774
98a326f7 137752009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 13776
be1bce46 13777 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 13778
10ea2b82
JR
137792009-03-04 Jason Rumney <jasonr@gnu.org>
13780
2c93b248 13781 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 13782 characters that have already been read. (Bug#2569)
2c93b248 13783
10ea2b82
JR
13784 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
13785 Log an error message if check_image_size failed.
13786 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 13787 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 13788
71a0c011
EZ
137892009-03-02 Eli Zaretskii <eliz@gnu.org>
13790
13791 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
13792 when decoding process output.
13793
2f63bba8
RS
137942009-03-01 Richard M Stallman <rms@gnu.org>
13795
13796 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
13797
13798 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
13799
0a9564cb
EZ
138002009-02-28 Eli Zaretskii <eliz@gnu.org>
13801
13802 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
13803 (decode_coding_emacs_mule, decode_coding_iso_2022)
13804 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13805 (decode_coding_raw_text, decode_coding_charset)
13806 (setup_coding_system, decode_eol, decode_coding, consume_chars):
13807 Honor inhibit-eol-conversion. (Bug #2186)
13808
449148b3
JR
138092009-02-28 Jason Rumney <jasonr@gnu.org>
13810
13811 * coding.c (detect_coding_charset): If not checking latin extra,
13812 fail on characters between 0x80 and 0xA0. (Bug#2354)
13813
a4aee864
EZ
138142009-02-28 Eli Zaretskii <eliz@gnu.org>
13815
13816 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 13817 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 13818
d88bee5a
GM
138192009-02-27 Glenn Morris <rgm@gnu.org>
13820
13821 * callint.c (Finteractive): Doc fix.
13822
a808f22d
KH
138232009-02-27 Kenichi Handa <handa@m17n.org>
13824
13825 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13826
caf8d60c
CY
138272009-02-27 Chong Yidong <cyd@stupidchicken.com>
13828
13829 * font.c (font_style_to_value): Set value for unknown symbols to
13830 100 instead of 255.
b61137ea
CY
13831 (weight_table, slant_table, width_table): Treat "unspecified" as
13832 the default value.
caf8d60c 13833
1a0de25c
JB
138342009-02-26 Juanma Barranquero <lekktu@gmail.com>
13835
13836 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13837
8fc45744
JB
138382009-02-25 Juanma Barranquero <lekktu@gmail.com>
13839
107bd7d1
JB
13840 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13841 error as soon as a recursive load is detected.
8fc45744 13842
f097e223
AR
138432009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13844
13845 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13846 before caching.
13847
8810a12f
KH
138482009-02-24 Kenichi Handa <handa@m17n.org>
13849
13850 * fontset.c (fontset_find_font): Fix the condition for checking
13851 unavailable font.
13852
2c7d1565
GM
138532009-02-24 Glenn Morris <rgm@gnu.org>
13854
13855 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13856 whitespace that confuses documentation.
13857
a20878b6
MB
138582009-02-23 Miles Bader <miles@gnu.org>
13859
13860 * process.c (Flist_system_processes, Fprocess_attributes)
13861 (syms_of_process): Rename `system-process-attributes' to
13862 `process-attributes'.
13863
b3b58c01
AS
138642009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13865
1b3b981b
AS
13866 * coding.h (struct coding_system): Make safe_charsets a pointer to
13867 unsigned char.
13868 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13869 being 255.
13870 (SAFE_CHARSET_P): Likewise.
13871 (setup_iso_safe_charsets): Properly setup safe_charsets.
13872 (Fdefine_coding_system_internal): Likewise.
13873 (setup_coding_system): Likewise. Remove unneeded casts.
13874 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
13875 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13876 Remove unneeded casts.
1b3b981b 13877
b3b58c01
AS
13878 * insdel.c (del_range_2): Don't modify gap contents when called
13879 from decode_coding_object. (Bug#1809)
13880
0b6f228c
CY
138812009-02-21 Chong Yidong <cyd@stupidchicken.com>
13882
13883 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13884 Qfont_object.
13885 (Ftype_of): Recognize font objects.
13886
13887 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13888
bba3e508
SM
13889 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13890 Definitions moved to data.c.
0b6f228c 13891
52f8870b
AR
138922009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13893
13894 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13895 async_iconified. Based on a patch by Christian Lynbech
13896 <christian.lynbech@tieto.com>.
13897 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13898
7087d5e9
GM
138992009-02-20 Glenn Morris <rgm@gnu.org>
13900
13901 * syntax.c (Fskip_chars_forward): Fix doc typo.
13902
41d2ceef
CY
139032009-02-20 Chong Yidong <cyd@stupidchicken.com>
13904
13905 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13906
1a3b7ca6
CY
139072009-02-19 Chong Yidong <cyd@stupidchicken.com>
13908
13909 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13910
73cce38d
KH
139112009-02-19 Kenichi Handa <handa@m17n.org>
13912
13913 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13914 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13915
a51092ee
DN
139162009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13917
13918 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13919
c423ecca
KH
139202009-02-18 Kenichi Handa <handa@m17n.org>
13921
13922 * font.c (font_check_otf_features): Fix handling of `nil' element.
13923 (Ffont_spec): Describe :lang and :otf in the docstring.
13924
4c1958f4
AS
139252009-02-16 Andreas Schwab <schwab@suse.de>
13926
13927 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13928 string.
13929
5704f39a
KH
139302009-02-16 Kenichi Handa <handa@m17n.org>
13931
13932 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13933 (Bug#1723)
5704f39a 13934
8f0085aa
CY
139352009-02-14 Chong Yidong <cyd@stupidchicken.com>
13936
a057d86a 13937 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13938
13939 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13940 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13941
aff01dd9
EZ
139422009-02-14 Eli Zaretskii <eliz@gnu.org>
13943
13944 * msdos.c (MAX_SCREEN_BUF): New macro.
13945 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13946 Encode the entire run of glyphs sharing the same face, instead of
13947 doing that one glyph at a time (fixes a bug with displaying
13948 double-size characters).
13949
ba301db3
AR
139502009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13951
13952 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13953
13954 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13955 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13956 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13957
13958 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13959 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13960
51d861de
SM
139612009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13962
ac146f82 13963 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13964 invisible areas.
13965
7fed8996
JR
139662009-02-12 Jason Rumney <jasonr@gnu.org>
13967
631ea4fb
JR
13968 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13969 (add_font_entity_to_list): Call check_face_name even when family
13970 is unspecified.
13971
cb4a3e42
JR
13972 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13973 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13974 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13975
7fed8996 13976 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13977 raster fonts. (Bug#2219)
7fed8996 13978
895416e3
KH
139792009-02-12 Kenichi Handa <handa@m17n.org>
13980
13981 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13982 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13983 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13984 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13985 (find_automatic_composition): While looking forward and backward,
13986 check static composition. Fix where to stop looking forward.
13987 (composition_adjust_point): Fix checking of static composition.
13988 (Fcomposition_get_gstring): Pay attention to
1dacf998 13989 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13990
13991 * lisp.h (fast_looking_at): Extern it.
13992
13993 * search.c (fast_looking_at): New function.
13994
51d861de 13995 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13996 <struct glyph>.u.cmp.to.
13997 (append_composite_glyph): Likewise.
13998
51d861de 13999 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
14000 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14001 composition.
51d861de 14002 (append_composite_glyph): Adjust for the change of
895416e3
KH
14003 <strcut glyph>.u.cmp.to.
14004
8510724d
JB
140052009-02-11 Juanma Barranquero <lekktu@gmail.com>
14006
14007 * casetab.c (init_casetab_once):
14008 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14009 * font.c (font_update_lface):
14010 * fontset.c (Fnew_fontset):
14011 * ftfont.c (ftfont_drive_otf):
14012 * xfont.c (xfont_open):
14013 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14014
294fa707
SM
140152009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14016
14017 * fileio.c (Fwrite_region): !NILP -> CONSP.
14018
b5bfebec
AS
140192009-02-10 Andreas Schwab <schwab@suse.de>
14020
14021 * process.c (send_process): Properly relocate pointer into data
adab88bd 14022 when using encoded data. (Bug#2272)
b5bfebec 14023
cb84a2be
KH
140242009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14025
14026 * coding.c (detect_coding_charset): Fix previous change.
14027
89e09428
JR
140282009-02-08 Jason Rumney <jasonr@gnu.org>
14029
14030 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 14031 disappeared while hourglass was displayed. (Bug #2193)
89e09428 14032
4470a277
AS
140332009-02-07 Andreas Schwab <schwab@suse.de>
14034
14035 * unexelf.c (unexec): Fix error message.
14036
3175b12a
AR
140372009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14038
14039 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 14040 when modal window is active. (Bug #2152)
3175b12a
AR
14041 (applicationShouldTerminate:): Remove now-unneeded while loop
14042 around NSRunAlertPanel.
14043
14044 * nsmenu.m (popupSession): New file-global variable.
14045 (pop_down_menu): End the popupSession before closing dialog.
14046 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14047 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14048 don't query NSApp for events (just sleep instead).
14049
8434d0b8
EZ
140502009-02-07 Eli Zaretskii <eliz@gnu.org>
14051
51d861de
SM
14052 * coding.c (syms_of_coding) <translation-table-for-input>:
14053 Modify doc string to discourage use for character code unification.
8434d0b8 14054
aa82edfd
CY
140552009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14056
14057 * atimer.c (run_timers): Update pending_atimers.
14058
2d283c7c
CY
140592009-02-06 Chong Yidong <cyd@stupidchicken.com>
14060
eb306cab
CY
14061 * image.c (svg_load_image): Fix last change.
14062
2d283c7c
CY
14063 * xfns.c (Fx_create_frame): Signal an error if no font is
14064 found (Bug#2147).
14065
4d8e170e
JB
140662009-02-05 Juanma Barranquero <lekktu@gmail.com>
14067
14068 * character.c (syms_of_character) <script-representative-chars>:
14069 Fix typo in docstring.
14070
c96169a0
AR
140712009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14072
14073 * nsmenu.m (pop_down_menu): New function.
14074 (ns_popup_dialog): Call it on unwind.
14075 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14076 call timer_check() (Bug#2154).
14077 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14078 handling_signal is set.
14079 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14080
31fd7c5c 14081 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
14082
14083 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14084
14085 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14086
51d861de
SM
14087 * keyboard.c (poll_for_input_1, handle_async_input):
14088 Set handling_signal under HAVE_NS.
c96169a0 14089
aacd8ba1
GM
140902009-02-04 Glenn Morris <rgm@gnu.org>
14091
14092 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14093
4cb75c4b
KH
140942009-02-04 Kenichi Handa <handa@m17n.org>
14095
14096 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14097
14098 * charset.c (Fchar_charset): New optional arg restriction.
14099
14100 * coding.h (coding_system_charset_list): Extern it.
14101
14102 * coding.c (coding_system_charset_list): New function.
14103
14104 * composite.c: Include coding.h and termhooks.h.
14105 (composition_gstring_p): Fix for the terminal case.
14106 (composition_gstring_width): Likewise.
14107 (fill_gstring_body): Likewise.
14108 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14109 the frame.
14110 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14111 is within a composition.
867d4bb3 14112 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
14113
14114 * term.c (encode_terminal_code): Fix handling of composition.
14115 (produce_composite_glyph): For static composition, get pixel_width
14116 from struct composition.
14117
826ba17e
AS
141182009-02-02 Andreas Schwab <schwab@suse.de>
14119
14120 * unexelf.c (unexec): Handle unaligned bss offset.
14121
8ad093db
AR
141222009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14123
14124 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14125 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 14126
8ad093db
AR
14127 * keyboard.c (handle_interrupt): Don't call
14128 quit_throw_to_read_char() under NS.
d0a76a6e 14129
8ad093db
AR
14130 * blockinput.h: Remove NS-specific code.
14131
4d18a7a2
DN
141322009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14133
db878925
DN
14134 * dispnew.c (window_change_signal): Don't try to get the size of a
14135 suspended tty frame.
14136 * term.c (Fresume_tty): Resize if the size has changed while the
14137 tty was suspended.
14138
4d18a7a2
DN
14139 * alloc.c (mark_stack): Properly conditionalize previous change.
14140
8984df7c
JB
141412009-01-30 Juanma Barranquero <lekktu@gmail.com>
14142
14143 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14144 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14145 Remove; this code is not used on Windows.
14146
75f4f1ac
EZ
141472009-01-30 Eli Zaretskii <eliz@gnu.org>
14148
14149 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14150 EOLs that also has stray ^M characters.
14151
07a1e794
JB
141522009-01-30 Juanma Barranquero <lekktu@gmail.com>
14153
14154 * atimer.c (run_timers, alarm_signal_handler):
14155 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14156 * w32inevt.c (w32_console_read_socket):
14157 * w32term.c (w32_read_socket):
14158 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14159
a8b11cc9
CY
141602009-01-30 Chong Yidong <cyd@stupidchicken.com>
14161
14162 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14163 Initialize it as a relative filename pattern.
14164 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14165 (Fcall_process_region): Simplify temp file creation using
14166 temporary-file-directory.
14167
c279587b
EZ
141682009-01-29 Eli Zaretskii <eliz@gnu.org>
14169
14170 * msdos.c: Rename pending_signals to msdos_pending_signals.
14171 (sig_suspender, sigprocmask): Adjust.
14172
a8fe3242
CY
141732009-01-29 Chong Yidong <cyd@stupidchicken.com>
14174
14175 * keyboard.c (pending_signals): New var.
14176 (poll_for_input, input_available_signal, init_keyboard): Set it.
14177 (process_pending_signals): New function.
14178
14179 * lisp.h (QUIT): Check pending_signals instead of
14180 interrupt_input_pending. Use process_pending_signals.
14181
51d861de 14182 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 14183
51d861de 14184 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
14185
14186 * sysdep.c (emacs_write): Use process_pending_signals.
14187
14188 * xterm.c (XTread_socket): Update pending_signals.
14189
14190 * w32term.c (w32_read_socket): Update pending_signals.
14191
14192 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14193
6570a1c4
KH
141942009-01-29 Kenichi Handa <handa@m17n.org>
14195
14196 * xftfont.c (xftfont_has_char): New function.
14197 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14198
d72a4afa
AR
141992009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14200
14201 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14202 under GNUstep.
14203 (ns_query_color): New declaration.
14204
14205 * nsterm.m (ns_confirm_quit): New variable.
14206 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14207 (EmacsApp-applicationShouldTerminate:): Use it.
14208 (EmacsPrefsController): Let user set it.
14209 (ns_query_color): New function.
14210 (ns_defined_color): Use it.
14211 (ns_initialize): Drop.
14212 (ns_term_init): Add two lines from ns_initialize(), and set
14213 input_interrupt_mode to nil.
14214
14215 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 14216 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 14217
9fe78804
KH
142182009-01-28 Kenichi Handa <handa@m17n.org>
14219
14220 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
14221 (fontset_get_font_group): Remember that no font-group is specified
14222 for C.
9fe78804 14223
fa57de36
CY
142242009-01-27 Chong Yidong <cyd@stupidchicken.com>
14225
930600e9
CY
14226 * fns.c (concat): Check for string overflow (bug#1787).
14227
fa57de36
CY
14228 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14229 Quadruple undo limits (bug#1501).
14230
7179ce7b
KH
142312009-01-27 Kenichi Handa <handa@m17n.org>
14232
14233 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14234 directly use GT_Get_Char_index.
14235
14236 * xftfont.c (struct xftfont_info): New member `index'.
14237
14238 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 14239 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 14240
5be8fcc0
CY
142412009-01-26 Kenichi Handa <handa@m17n.org>
14242
14243 * fontset.c (fontset_find_font): Fix handling of non-cons return
14244 value of fontset_get_font_group.
14245 (fontset_font): Revert last change.
14246
19ae3e61
JR
142472009-01-26 Jason Rumney <jasonr@gnu.org>
14248
14249 * w32font.c (w32font_list_internal): Return quickly if registry is
14250 unknown. Simplify final return.
14251 (add_font_entity_to_list): Break complex logic down into more
14252 manageable chunks. Move unknown registry check to
14253 w32font_list_internal.
14254
8612b71a
AR
142552009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14256
14257 Changes to remove Feval calls from GUI under NS.
14258
d8038940
JB
14259 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14260 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
14261 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14262
14263 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14264 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14265 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14266 instead of NON_ASCII_KEYSTROKE_EVENT.
14267 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14268 (EmacsApp-applicationShouldTerminate:): Query user.
14269 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14270 instead of Feval.
14271
14272 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14273
14274 * keyboard.c (kbd_buffer_get_event): Check for it.
14275 (keys_of_keyboard): Define lispy keys for
14276 ns-put/unput-working-text.
14277
14278 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14279 versions.
14280 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14281
6288ae55
CY
142822009-01-25 Chong Yidong <cyd@stupidchicken.com>
14283
14284 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14285 setting current_buffer directly. (Bug#2044)
6288ae55 14286
289e7f8f
CY
142872009-01-24 Chong Yidong <cyd@stupidchicken.com>
14288
5ce87308 14289 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14290 any work. (Bug#1952, bug#1990).
5ce87308 14291
64cc3cf6 14292 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14293
b3243e6f
AR
142942009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14295
14296 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14297 (ns_no_defaults): New declaration.
14298 (main): Use it.
e0d2e69a 14299
d900b2af 14300 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 14301
d900b2af 14302 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 14303
d900b2af
AR
14304 * nsterm.m (ns_no_defaults): New variable.
14305 (ns_initialize): Don't read defaults when ns_no_defaults.
14306 (EmacsView-readSelectionFromPasteboard:)
14307 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 14308 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
14309 (ns_dumpglyphs_stretch): New function.
14310 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 14311 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 14312
e0d2e69a
AR
14313 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14314
3ac71f5d
CY
143152009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14316
14317 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14318 call for Sparc64.
14319
3fe53a83
AR
143202009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14321
14322 * nsfns.m:
14323 * nsgui.h:
14324 * nsmenu.m:
14325 * nsselect.m:
14326 * nsterm.h:
14327 * nsterm.m: Remove '23' comments that indicated code added during
14328 update from emacs-20 -> emacs-23.
14329
10f87c6f 143302009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
14331
14332 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 14333 ns_alternate_modifier. (Bug#1217)
a3b53a85 14334
c7cef62d
AR
14335 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14336 Display all shortcuts, including those w/o super modifier.
14337
575fb8bd
AR
14338 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14339
918b848b
CY
143402009-01-22 Chong Yidong <cyd@stupidchicken.com>
14341
14342 * fileio.c (Vwrite_region_post_annotation_function)
14343 (Vwrite_region_annotation_buffers): New vars.
14344 (build_annotations_unwind): Just reset
14345 Vwrite_region_annotation_buffers.
14346 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14347 Call write-region-post-annotation-function.
14348 (build_annotations): Add to Vwrite_region_annotation_buffers if
14349 buffer changes.
14350
a39e2539
AR
143512009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14352
14353 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14354 Tiger.
51d861de
SM
14355 * nsfns.m (ns_do_applescript):
14356 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 14357
35ed44db
AR
143582009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14359
14360 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14361
cbe0b5bf
AR
143622009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14363
14364 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 14365
6049d3a0
AR
14366 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14367
14368 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
14369 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14370 handle Ctrl-tab. (Bug#1841)
14371 (ns_get_color): Use unsigned long long for scanned hex string value.
14372 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 14373 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 14374 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 14375 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 14376 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 14377 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 14378 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 14379
d3810c21 14380 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 14381 DPI. (Bug#1316)
d3810c21
AR
14382 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14383 values in onTiger section.
4c7077c3 14384
e301e634
CY
143852009-01-19 Chong Yidong <cyd@stupidchicken.com>
14386
7f82490b
CY
14387 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14388 Check return value of font_spec_from_name.
64cc3cf6 14389 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
14390
14391 * font.c (font_spec_from_name): Return Qnil if font name could not
14392 be parsed.
14393 (font_parse_name): Treat a `?' character as part of an XLFD.
14394
e301e634
CY
14395 * fns.c (Fsubstring): Doc fix.
14396
1c0db158
KH
143972009-01-19 Kenichi Handa <handa@m17n.org>
14398
51d861de 14399 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14400 (ftfont_list): Likewise.
14401
acf20901
JB
144022009-01-18 Juanma Barranquero <lekktu@gmail.com>
14403
fff4e459
JB
14404 * dbusbind.c (Fdbus_register_signal):
14405 * process.c (conv_sockaddr_to_lisp):
14406 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14407
acf20901
JB
14408 * callproc.c (Fgetenv_internal): Doc fix.
14409
e7abcdfb
CY
144102009-01-16 Chong Yidong <cyd@stupidchicken.com>
14411
14412 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14413 it is not even used.
14414
b60861e6
GM
144152009-01-16 Glenn Morris <rgm@gnu.org>
14416
14417 * font.c (Ffont_variation_glyphs): Silence compiler.
14418
8db52afe
JB
144192009-01-15 Juanma Barranquero <lekktu@gmail.com>
14420
14421 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14422 Reported by David Robinow <drobinow@gmail.com>.
14423
4cddb209
KH
144242009-01-15 Kenichi Handa <handa@m17n.org>
14425
51d861de 14426 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14427
f247f67b
JR
144282009-01-14 Jason Rumney <jasonr@gnu.org>
14429
14430 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14431 never a fontset. (Bug#1562)
f247f67b 14432
f56a4450
KH
144332009-01-14 Kenichi Handa <handa@m17n.org>
14434
14435 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14436 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14437
4e99855e
CY
144382009-01-13 Chong Yidong <cyd@stupidchicken.com>
14439
14440 * font.c (font_clear_prop): If clearing the family, clear the font
14441 width index too.
14442
fff4e459 14443 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14444
24f01470
JB
144452009-01-12 Juanma Barranquero <lekktu@gmail.com>
14446
14447 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14448 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14449 functions, use sizeof.
14450
a41240a3
MR
144512009-01-12 Martin Rudalics <rudalics@gmx.at>
14452
14453 * keyboard.c (read_char): Fix case where last_nonmenu_event
14454 returned a bad value with submenus. (Bug#447)
14455
944636b8
CY
144562009-01-12 Chong Yidong <cyd@stupidchicken.com>
14457
14458 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14459 family, clear the font width index too.
14460
0dad7c6f
JR
144612009-01-11 Jason Rumney <jasonr@gnu.org>
14462
14463 * keyboard.c (cmd_error_internal): Exit when errors occur before
14464 frame creation and not in daemon mode. (Bug#1836)
14465
7c2363af
CY
144662009-01-10 Chong Yidong <cyd@stupidchicken.com>
14467
14468 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14469 of a display vector, backtrack.
14470 (try_window_reusing_current_matrix): Check glyph type before
14471 referencing charpos member.
14472
97b1b294
EZ
144732009-01-10 Eli Zaretskii <eliz@gnu.org>
14474
14475 Fix Bug #876:
14476
14477 * coding.c (inhibit_null_byte_detection): New variable.
14478 (detect_coding, detect_coding_system): Don't pay attention to null
14479 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14480 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14481 <inhibit-iso-escape-detection>: Doc fix.
14482
4624b6e3
JR
144832009-01-09 Jason Rumney <jasonr@gnu.org>
14484
14485 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14486 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14487 Only report Unicode Plane 2 fonts as unicode-sip.
14488
323b840c
CY
144892009-01-09 Chong Yidong <cyd@stupidchicken.com>
14490
51d861de
SM
14491 * xfaces.c (Fx_font_family_list): Delete function.
14492 Move compatibility version to faces.el.
323b840c 14493
51d861de 14494 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14495
eba7400d
MR
144962009-01-09 Martin Rudalics <rudalics@gmx.at>
14497
14498 * frame.c (x_set_frame_parameters): Remember requested value for
14499 fullscreen before it's reset by the parameter handler.
14500
4b09796d
GM
145012009-01-09 Glenn Morris <rgm@gnu.org>
14502
14503 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14504 (last_command_event): ... and update all users.
4b09796d
GM
14505 (last_input_char): For clarity, rename to...
14506 (last_input_event): ... and update all users.
14507 (last-command-char, last-input-char): Move to subr.el as aliases.
14508 * cmds.c, commands.h: Update for last_command_char rename.
14509
14ccea62
CY
145102009-01-08 Chong Yidong <cyd@stupidchicken.com>
14511
51d861de 14512 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14513
5f004711
JR
145142009-01-08 Jason Rumney <jasonr@gnu.org>
14515
14516 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14517 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14518 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14519 Don't declare.
fff4e459 14520 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
14521 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14522
b71f6f73
KH
145232009-01-07 Kenichi Handa <handa@m17n.org>
14524
50b06221 14525 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 14526 remember the coding system used for decoding in
50b06221
KH
14527 coding_system (Bug#1039).
14528
b71f6f73 14529 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 14530 breaking the loop. (Bug#870)
b71f6f73
KH
14531 (decode_coding_utf_16, decode_coding_emacs_mule)
14532 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14533 (decode_coding_charset): Likewise.
14534
56f668f7
MR
145352009-01-05 Martin Rudalics <rudalics@gmx.at>
14536
14537 * frame.c (x_set_frame_parameters): Make sure height (width) get
14538 applied when fullwidth (fullheight) is set. (Bug#1522)
14539
5da9424d
JB
145402009-01-04 Juanma Barranquero <lekktu@gmail.com>
14541
14542 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14543 (utc_base): Declare as ULONGLONG, not long double.
14544 (convert_time_raw): Delete.
14545 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14546 (initialize_utc_base): New function.
14547 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14548 (convert_from_time_t): Use initialize_utc_base; compute result with
14549 64-bit arithmetic.
14550 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14551
c4605e09
EZ
145522009-01-03 Eli Zaretskii <eliz@gnu.org>
14553
9acef61c 14554 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
14555 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14556 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14557 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14558 [!subprocesses]: Define.
14559 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14560 (Flist_system_processes, Fsystem_process_attributes)
14561 [!subprocesses]: Call list_system_processes and
14562 system_process_attributes instead of returning Qnil.
14563
9acef61c
JB
14564 * dosfns.c (system_process_attributes, list_system_processes):
14565 New functions.
c4605e09
EZ
14566
14567 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14568
14569 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14570 Don't use the default (no-op) implementation.
14571
8b7d0a16
JR
145722009-01-03 Jason Rumney <jasonr@gnu.org>
14573
a6d46bc1
JR
14574 * keyboard.c (parse_modifiers_uncached): Wheel events are
14575 clicks (bug#687).
14576
8b7d0a16
JR
14577 * w32term.c (x_query_colors, x_query_color): New functions.
14578
14579 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14580 (svg_load_image): Cast returned pointers from dynamically loaded
14581 functions. Eliminate W32 specific code.
14582
bfe11752
DN
145832009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14584
89e2438a
DN
14585 * nsfns.m (x_set_foreground_color, x_set_background_color)
14586 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14587 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14588 x_ prefix instead of ns_. Update references.
14589 (syms_of_nsfns): Add a FIXME comment.
14590
14591 * nsterm.m (x_set_cursor_type): New prototype.
14592 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14593
bfe11752
DN
14594 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14595 for Solaris instead of incorrectly providing Qutime and Qcutime.
14596
031da700
EZ
145972009-01-02 Eli Zaretskii <eliz@gnu.org>
14598
14599 * w32.c (process_times): Compute sum of utime and stime.
14600 (system_process_attributes): Add Qtime to the alist.
14601
14602 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14603 and add them to the alist.
14604
14605 * process.c (top level) <Qtime, Qctime>: New variables.
14606 (syms_of_process): staticpro them.
14607 (Fsystem_process_attributes): Add their documentation to the doc
14608 string.
14609
14610 * process.h: Declare Qtime and Qctime.
14611
df23bf08
JR
146122009-01-02 Jason Rumney <jasonr@gnu.org>
14613
9acef61c 14614 * image.c (Qgobject): New symbol.
df23bf08
JR
14615 (syms_of_image): Initialize it.
14616 (init_svg_functions): Load some functions from gobject library.
14617
5bbdf7aa
DN
146182009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14619
14620 * frame.c (make_terminal_frame): Remove redundant code and useless
14621 block.
14622
63136da6
AS
146232009-01-01 Andreas Schwab <schwab@suse.de>
14624
14625 * process.c (conv_sockaddr_to_lisp): Add workaround for
14626 getsockname bug on BSD.
14627
9ef69046
CY
146282009-01-01 Chong Yidong <cyd@stupidchicken.com>
14629
d6fafbe0
CY
14630 * xfns.c (x_create_tip_frame): Set border width of the X window.
14631
51d861de 14632 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 14633
f9c34147
JR
146342009-01-01 Jason Rumney <jasonr@gnu.org>
14635
9acef61c 14636 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
14637 Don't block input, as per earlier xterm.c changes.
14638
f5497e45
AR
146392008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14640
14641 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14642 (ns_appkit_version_int): New function.
14643 (x-server-version): Use ns_appkit_version_int and follow 21+
14644 convention of returning 3 integers.
14645
c19cab20
KH
146462008-12-30 Kenichi Handa <handa@m17n.org>
14647
14648 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
14649 (CHAR_SURROGATE_PAIR_P): New macro.
14650
14651 * font.h (struct font_driver): New member get_variation_glyphs.
14652
9acef61c 14653 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
14654 (Ffont_variation_glyphs): New function.
14655 (syms_of_font): Defsubr it.
14656
14657 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
14658 ftfont_variation_glyphs.
14659 (setup_otf_gstring): New function.
14660 (ftfont_drive_otf): Use it.
14661 (ftfont_shape_by_flt): Handle variation selector.
14662 (ftfont_variation_glyphs): New function.
14663
28cd591f
MR
146642008-12-30 Martin Rudalics <rudalics@gmx.at>
14665
14666 * frame.c (Vemacs_iconified): Remove.
14667
7f714baf
JR
146682008-12-30 Jason Rumney <jasonr@gnu.org>
14669
14670 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 14671 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 14672
9d2d22ab
CY
146732008-12-30 Chong Yidong <cyd@stupidchicken.com>
14674
14675 * indent.c (Fvertical_motion): Don't advance iterator if we have
14676 reseated to the desired position.
14677
14678 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
14679 checking for pos match.
14680
545312c2
KH
146812008-12-30 Kenichi Handa <handa@m17n.org>
14682
1ede3eb6
KH
14683 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
14684 just get the low 8-bit of the code.
14685
545312c2
KH
14686 * font.c (font_intern_prop): Validate str as multibyte.
14687
bd7bbf29
DN
146882008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14689
31e0750e
DN
14690 * dispextern.h (struct face): Move lface and hash from the middle
14691 of bitfields.
14692
bd7bbf29
DN
14693 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
14694
b5672e7c
DN
146952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14696
14697 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
14698 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
14699 instead of intervals.h.
14700
d704470f
AS
147012008-12-26 Andreas Schwab <schwab@suse.de>
14702
14703 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
14704 cons.
14705
54b33868
MR
147062008-12-26 Martin Rudalics <rudalics@gmx.at>
14707
14708 * textprop.c (Qminibuffer_prompt): New variable.
14709 (syms_of_textprop): Initialize it.
14710 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
14711 in minibuffer-prompt face. (Bug#1662)
14712
40b615d6
JR
147132008-12-25 Jason Rumney <jasonr@gnu.org>
14714
14715 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
14716
baae5c2d
JR
147172008-12-24 Jason Rumney <jasonr@gnu.org>
14718
14719 * ralloc.c (r_alloc_reset_variable): New function.
14720
14721 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 14722 record of what points where. (Bug#716)
baae5c2d 14723
a9051c88
DN
147242008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
14725
14726 * minibuf.c (read_minibuf): Follow the non-interactive case when
14727 running as a daemon, before detaching.
14728
8b146312
AS
147292008-12-22 Andreas Schwab <schwab@suse.de>
14730
14731 * buffer.c (init_buffer): Use realloc instead of xrealloc.
14732 * gtkutil.c (free_widget_value): Use xfree instead of free.
14733
56f2de10
MR
147342008-12-22 Martin Rudalics <rudalics@gmx.at>
14735
14736 * frame.c (delete_frame): New function derived from
14737 Fdelete_frame to handle Qnoelisp value for FORCE argument.
14738 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
14739 (Fdelete_frame): Call delete_frame. Remove line from doc-string
14740 saying that FORCE non-nil doesn't run `delete-frame-functions'.
14741 * frame.h: Extern delete_frame.
14742 * window.c (window_loop):
14743 * terminal.c (delete_terminal):
14744 * xterm.c (x_connection_closed):
14745 * xfns.c (Fx_hide_tip):
9acef61c 14746 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 14747
1fc200d6
JR
147482008-12-21 Jason Rumney <jasonr@gnu.org>
14749
14750 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
14751 when character maps to .notdef character.
14752
5e252df2
SM
147532008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
14754
14755 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
14756
99b72cc4
JR
147572008-12-20 Jason Rumney <jasonr@gnu.org>
14758
14759 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 14760 a graphical frame on Windows. (Bug#1325)
99b72cc4 14761
acc49a52
JD
147622008-12-20 Jan Djärv <jan.h.d@swipnet.se>
14763
14764 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
14765
6ea15123
CY
147662008-12-20 Chong Yidong <cyd@stupidchicken.com>
14767
14768 * minibuf.c (Fread_buffer): Doc fix.
14769
b2dab6c8
JR
147702008-12-20 Jason Rumney <jasonr@gnu.org>
14771
54ea0c87 14772 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 14773 server name in UNC paths. (Bug#719)
54ea0c87 14774
b2dab6c8 14775 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 14776 charbuf. (Bug#1035)
b2dab6c8 14777
6d1921be
DN
147782008-12-19 Daniel Engeler <engeler@gmail.com>
14779
14780 * sysdep.c (serial_configure): Fix typo.
14781
53934c98
DN
147822008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14783
14784 * sysdep.c: Include alloca.h.
f4f634e8
DN
14785 (system_process_attributes): Add implementation for Solaris.
14786
14787 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 14788
06e111a6
DN
147892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14790
14791 Reorganize implementation of Flist_system_processes and
14792 Fsystem_process_attributes. No functional changes.
14793 * process.c: Don't #include pwd.h, grp.h and limits.h.
14794 (Flist_system_processes): Just call list_system_processes.
14795 (Fsystem_process_attributes): Just call system_process_attributes.
14796 (procfs_list_system_processes, time_from_jiffies)
14797 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14798 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
14799
14800 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
14801 (list_system_processes): Rename from
14802 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
14803 Provide a do nothing implementation.
14804 (system_process_attributes): Rename from
14805 procfs_list_system_processes.
14806 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 14807 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
14808
14809 * w32.c (list_system_processes): Rename from
14810 w32_list_system_processes.
14811 (system_process_attributes): Rename from
14812 w32_system_process_attributes.
14813
14814 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14815
14816 * process.h (w32_list_system_processes)
14817 (w32_system_process_attributes): Remove.
362654a6
JB
14818 (list_system_processes, system_process_attributes):
14819 New prototypes.
06e111a6 14820
6a705b23
KH
148212008-12-19 Kenichi Handa <handa@m17n.org>
14822
14823 * xfont.c (xfont_decode_coding_xlfd): New function.
14824 (xfont_encode_coding_xlfd): New function.
14825 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14826 (xfont_list): Decode and encode XLFD by iso-8859-1.
14827 (xfont_match): Likewise.
14828 (xfont_list_family): Likewise.
14829 (xfont_open): Likewise.
14830
d66c0241 14831 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
14832 names are utf-8.
14833
d66c0241 14834 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
14835 names are utf-8.
14836
5a130941
JD
148372008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14838
14839 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14840 changed.
bfd20325
JD
14841 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14842 clicked on a detached tool bar button.
5a130941 14843
fd95644b
DN
148442008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14845
14846 * emacs.c (main): Print and error and exit when no data is read
14847 from the pipe.
14848
e6eee6ae
JR
148492008-12-17 Jason Rumney <jasonr@gnu.org>
14850
14851 * w32font.c (w32font_has_char): Always return -1.
14852
a35dd56b
KH
148532008-12-16 Kenichi Handa <handa@m17n.org>
14854
14855 * font.c (font_open_entity): Fix previous change.
14856
0e3635c2
DN
148572008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14858
14859 * process.c: Include <limits.h>.
14860
d4835507 148612008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
14862
14863 * font.c (font_update_drivers): Fix mistake in reconstructing the
14864 driver list.
14865
148662008-12-16 Chong Yidong <cyd@stupidchicken.com>
14867
14868 * font.c (font_clear_cache): Fix format of font cache data.
14869
e2cbc401
CY
148702008-12-15 Chong Yidong <cyd@stupidchicken.com>
14871
14872 * xftfont.c (xftfont_open): Free Xft font pattern if
14873 XftFontOpenPattern fails.
14874
14875 * xterm.c (x_free_frame_resources): Remove extraneous call to
14876 free_frame_faces.
14877
b131d535
CY
148782008-12-13 Chong Yidong <cyd@stupidchicken.com>
14879
14880 * xterm.c (x_delete_display): Move xim_close_dpy call to
14881 x_delete_terminal.
14882 (x_delete_terminal): Call xim_close_dpy.
14883
e6df5336
JR
148842008-12-13 Jason Rumney <jasonr@gnu.org>
14885
14886 * w32font.c (intern_font_name): New function.
14887 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14888 (w32font_open_internal, Fx_select_font): Decode font name.
14889 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14890
14891 * w32font.h (intern_font_name): Declare new function.
14892
14893 * w32uniscribe.c (add_opentype_font_name_to_list):
14894 Use intern_font_name.
14895
20d68145
CY
148962008-12-13 Chong Yidong <cyd@stupidchicken.com>
14897
9f2554de
CY
14898 * frame.c (Fdelete_frame): Call free_font_driver_list.
14899
3d9bec9a
CY
14900 * font.c (free_font_driver_list): Implement missing function.
14901
20d68145
CY
14902 * w32term.c (w32_term_init): Don't initialize the image cache
14903 here; it will be done in init_frame_faces.
14904
14905 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14906 (struct x_display_info): Remove unused member null_pixel.
14907 New member xim_callback_data.
20d68145
CY
14908
14909 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14910 (xim_initialize): Save pointer to callback function data.
14911 (xim_close_dpy): Free callback function data. Call XCloseIM,
14912 reverting 2008-11-04 change by David Smith.
14913 (x_term_init): Don't initialize the image cache here; it will be
14914 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14915 (x_delete_display): Free x_dnd_atoms member.
14916
96f9306b
KH
149172008-12-13 Kenichi Handa <handa@m17n.org>
14918
ef1b0ba7 14919 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14920 Argument type changed. Handle a font-spec too.
96f9306b 14921 (font_score): Check Vface_font_rescale_alist.
6dec9044 14922 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14923
ef1b0ba7 14924 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14925
8d5b4964
CY
149262008-12-13 Chong Yidong <cyd@stupidchicken.com>
14927
14928 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14929
e6df5336
JR
149302008-12-12 Jason Rumney <jasonr@gnu.org>
14931
bba3e508
SM
14932 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14933 Set Vwindow_system_version to the real w32 major version.
e6df5336 14934
97c6058a
DN
149352008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14936
14937 * term.c (init_tty): Move setting the terminal name before the
14938 potential user: maybe_fatal.
14939
ec4e88d7
CY
149402008-12-11 Chong Yidong <cyd@stupidchicken.com>
14941
ef1b0ba7 14942 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14943 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14944
b4233ec9
JR
149452008-12-11 Jason Rumney <jasonr@gnu.org>
14946
8ec71e23 14947 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14948 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14949
b4233ec9 14950 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14951 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14952
011a0143
JB
149532008-12-11 Juanma Barranquero <lekktu@gmail.com>
14954
14955 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14956
3c309f34
JB
149572008-12-11 Juanma Barranquero <lekktu@gmail.com>
14958
14959 * process.c (Fsystem_process_attributes, syms_of_process):
14960 Fix typo in name of Ssystem_process_attributes.
14961 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14962
fedc6ab5
JB
149632008-12-11 Juanma Barranquero <lekktu@gmail.com>
14964
14965 * syntax.c (Fmodify_syntax_entry): Doc fix.
14966
ba3de0e8
JB
149672008-12-10 Juanma Barranquero <lekktu@gmail.com>
14968
14969 * font.c (Ffont_spec): Move usage to end of docstring.
14970
174f1c74
JR
149712008-12-10 Jason Rumney <jasonr@gnu.org>
14972
14973 * w32font.c (Qcham): New symbol.
14974 (font_supported_scripts): Add cham, and comments for other new
14975 scripts in bitfield from OpenType spec.
9d32f818
JR
14976 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14977 contain characters beyond the bmp.
174f1c74 14978
7b649478
KH
149792008-12-10 Kenichi Handa <handa@m17n.org>
14980
14981 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14982 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14983 Qunicode_sip.
14984
2133e2d1
JB
149852008-12-10 Juanma Barranquero <lekktu@gmail.com>
14986
14987 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14988 (Fcoding_system_put): Use QCdefault_char.
14989 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14990
9af886ee
CY
149912008-12-09 Chong Yidong <cyd@stupidchicken.com>
14992
74d819eb
CY
14993 * xftfont.c (syms_of_xftfont): Fix typo.
14994
4ccfa1c0 14995 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14996
7c19d3ae
DN
149972008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14998
14999 * emacs.c (main): Close daemon_pipe on exec.
15000
567826bb
CY
150012008-12-08 Chong Yidong <cyd@stupidchicken.com>
15002
15003 * termchar.h (struct tty): New members termcap_term_buffer and
15004 termcap_strings_buffer.
15005
15006 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 15007 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
15008 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15009 All callers changed.
15010 (init_tty): Store termcap data and string buffers in new struct
15011 tty members termcap_term_buffer and termcap_strings_buffer.
15012 (delete_tty): Free them.
4ccfa1c0 15013 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 15014
aa96c42b
SZ
150152008-12-07 Seiji Zenitani <zenitani@mac.com>
15016
15017 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 15018 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 15019
b7e1d896
CY
150202008-12-06 Chong Yidong <cyd@stupidchicken.com>
15021
15022 * coding.c (make_conversion_work_buffer): Disable buffer
15023 modification hooks in the work buffer.
15024
b5ec91a5
EZ
150252008-12-05 Eli Zaretskii <eliz@gnu.org>
15026
15027 * process.c (procfs_system_process_attributes): If `nread' has a
15028 negative value, assign zero to it.
15029
a5d2a52b
CY
150302008-12-05 Chong Yidong <cyd@stupidchicken.com>
15031
68c5540b 15032 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 15033
7bf1bb21
KH
150342008-12-05 Kenichi Handa <handa@m17n.org>
15035
15036 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15037 second character is a combining character.
15038
2fdc7d00
EZ
150392008-12-05 Eli Zaretskii <eliz@gnu.org>
15040
15041 * process.c (procfs_system_process_attributes): Don't use cmd,
15042 cmdsize, and q without initializing them first.
15043
bf6bfba8
JR
150442008-12-04 Jason Rumney <jasonr@gnu.org>
15045
15046 * w32font.c (w32font_draw): Initialize orig_clip before getting
15047 it, and delete it when finished.
15048
a3b1a468
DN
150492008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15050
15051 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15052 case when running as a daemon before detaching.
15053
8b8be8eb
JB
150542008-12-03 Juanma Barranquero <lekktu@gmail.com>
15055
805f2638 15056 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 15057
b1bde622
KH
150582008-12-03 Kenichi Handa <handa@m17n.org>
15059
e500c47d
KH
15060 * font.c (font_at): Set `multibyte' at first.
15061
ca516334
KH
15062 * coding.c (decode_coding_charset): Check type of an element of
15063 vector VALIDS.
7bf1bb21 15064 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 15065
4ccfa1c0 15066 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
15067 (font_for_char): Likewise.
15068
1e5ecd37
CY
150692008-12-03 Chong Yidong <cyd@stupidchicken.com>
15070
d5b01609 15071 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
15072 (font_update_lface): Handle fonts with corrupted size specs,
15073 i.e. non-int and non-float.
d5b01609 15074
11e3a6e4 15075 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 15076 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 15077 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 15078
ab06788b
CY
15079 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15080
1e5ecd37 15081 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 15082 underline_minimum_offset for underline position.
1e5ecd37 15083
63c125ab
DN
150842008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15085
15086 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15087
15088 * character.c (c_string_width): Specify the type for LEN.
15089
3a8406e1
KH
150902008-12-03 Kenichi Handa <handa@m17n.org>
15091
4ccfa1c0 15092 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 15093 (decode_coding_utf_8): Likewise.
4ccfa1c0 15094 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 15095 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 15096
651df7d9
CY
150972008-12-02 Chong Yidong <cyd@stupidchicken.com>
15098
15099 * keyboard.c (make_lispy_position): Only use PT if the selected
15100 window is current.
15101
1f625c6c
AS
151022008-12-02 Andreas Schwab <schwab@suse.de>
15103
f7741ce9
AS
15104 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15105
1f625c6c
AS
15106 * doprnt.c (doprnt1): Fix size of charbuf.
15107
92bc2678
CY
151082008-12-02 Chong Yidong <cyd@stupidchicken.com>
15109
15110 * keyboard.c (timer_check): Revert last change.
15111
93b9e8cc
JB
151122008-12-02 Juanma Barranquero <lekktu@gmail.com>
15113
15114 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15115
fd7a37d5
JB
151162008-12-01 Juanma Barranquero <lekktu@gmail.com>
15117
15118 * makefile.w32-in: Update dependencies.
15119 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15120
c115043b
AS
151212008-12-01 Andreas Schwab <schwab@suse.de>
15122
15123 * font.c (register_font_driver): Use xmalloc.
15124 (font_put_frame_data): Likewise.
15125
f5668d2a
CY
151262008-12-01 Chong Yidong <cyd@stupidchicken.com>
15127
860d96be
CY
15128 * xfaces.c (realize_x_face): Make abort condition clearer.
15129
f5668d2a
CY
15130 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15131
379c17e7
CY
151322008-11-30 Chong Yidong <cyd@stupidchicken.com>
15133
15134 * keyboard.c (timer_check): After a timer runs, ensure that the
15135 selected window's buffer is current.
15136
35f36d65
JB
151372008-11-30 Juanma Barranquero <lekktu@gmail.com>
15138
f952c61c
JB
15139 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15140 It was accidentally restored by the Unicode merge.
15141
35f36d65
JB
15142 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15143
b23077df
JB
151442008-11-29 Juanma Barranquero <lekktu@gmail.com>
15145
15146 * w32proc.c: Include "coding.h".
15147 (Fw32_short_file_name): Encode filename passed to Windows API.
15148 (Fw32_long_file_name): Encode filename passed to Windows API and
15149 decode back the result. (Bug#1433)
15150
b8ebe9dd
KH
151512008-11-29 Kenichi Handa <handa@m17n.org>
15152
8cc53f96
KH
15153 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15154 not before accessing it.
15155
b8ebe9dd
KH
15156 * charset.c (Fdefine_charset_internal): After calculating
15157 min_char, max_char, and fastmap, copy the charset structure again.
15158 (encode_char): Fix the previous change.
15159
59bc82c0
SZ
151602008-11-28 Seiji Zenitani <zenitani@mac.com>
15161
15162 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15163
15164 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15165
15166 * nsterm.m (x_set_frame_alpha): New function.
15167
32247e3d
EZ
151682008-11-27 Eli Zaretskii <eliz@gnu.org>
15169
15170 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15171
b003e5ff
JB
151722008-11-27 Juanma Barranquero <lekktu@gmail.com>
15173
15174 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15175 pointer to check_face_name.
15176
708550f5
KH
151772008-11-27 Kenichi Handa <handa@m17n.org>
15178
15179 * category.h (SET_CATEGORY_SET): Call set_category_set.
15180 (set_category_set): Extern it.
15181
15182 * category.c (hash_get_category_set): New function.
bba3e508 15183 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
15184 char_table_ref_and_range. Call hash_get_category_set to get a
15185 category set to store in the table.
15186
15187 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15188 Funify_charset.
15189
2ae37cf0 15190 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
15191 (DECODE_CHAR): Check if the decoder vector is ready.
15192 (ENCODE_CHAR): Check if the encoder char-table is ready.
15193 (maybe_unify_char): Extern it.
15194
15195 * charset.c (Vchar_unified_charset_table): Delete it.
15196 (inhibit_load_charset_map): New variable.
15197 (temp_charset_work): New variable.
15198 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15199 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15200 New macros.
bba3e508
SM
15201 (load_charset_map): Meaning of control_flag changed.
15202 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
15203 temp_charset_work.
15204 (load_charset): New argument control_flag.
15205 (map_charset_for_dump): New function.
15206 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15207 map_charset_for_dump.
15208 (Fdefine_charset_internal): If the charset method is MAP, load
15209 mapping tables by calling load_charset.
15210 (Funify_charset): Don't load a mapping table but directly set
15211 Vchar_unify_table.
15212 (maybe_unify_char): New function.
15213 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15214 Handle the case of inhibit_load_charset_map being nonzero.
15215 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15216 Handle the case of inhibit_load_charset_map being nonzero.
15217 (Fclear_charset_maps): Just free temp_charset_work.
15218 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15219 variable.
15220
bba3e508 15221 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
15222 change of char_table_ref_and_range.
15223 (char_table_ref_and_range): Change the meaning of argument FROM
15224 and TO. Now the caller must provide initial values for *FROM
15225 and *TO.
15226
bba3e508 15227 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
15228 char_table_ref_and_range.
15229 (fontset_get_font_group): Likewise.
15230 (Ffontset_info): Likewise.
15231
bba3e508 15232 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
15233 char_table_ref_and_range. For char-table, put boundary between
15234 non-ASCII and 8-bit characters.
15235
15236 * print.c (print_object): For bool-vector, delete unnecessary
15237 check of ASCII_BYTE_P.
15238
9196133b
JR
152392008-11-26 Jason Rumney <jasonr@gnu.org>
15240
15241 * w32font.c (w32font_open_internal): Don't include external
9acef61c 15242 leading in font height. (Bug#879)
9196133b 15243
9f688acf
GM
152442008-11-26 Glenn Morris <rgm@gnu.org>
15245
15246 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15247 redefinition with ifdef. (Bug#1383)
15248
90d19aff
AR
152492008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15250
15251 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15252
4ccfa1c0 152532008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
15254
15255 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15256 New EmacsView methods.
15257 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15258 Fixes bug #1048,1357,1414.
15259
152602008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15261
15262 Fix bug #1362.
15263 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15264 is not an indexed color.
15265 * nsterm.m (free_indexed_color): Add argument checking.
15266 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15267
e7d5ecb3
CY
152682008-11-24 Chong Yidong <cyd@stupidchicken.com>
15269
15270 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15271 Document confirm-after-completion value for
15272 minibuffer-completion-confirm.
15273
c285743c
JR
152742008-11-24 Jason Rumney <jasonr@gnu.org>
15275
15276 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15277 warning.
15278
b0857706
JR
152792008-11-23 Jason Rumney <jasonr@gnu.org>
15280
15281 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15282 restored before returning.
15283
15284 * w32font.c (check_face_name): New function.
15285 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15286 fonts. (Bug#642)
b0857706 15287
ee50ff07
MR
152882008-11-22 Martin Rudalics <rudalics@gmx.at>
15289
15290 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15291 confirm-nonexistent-file-or-buffer in doc-string.
15292
b8ff72fa
SM
152932008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15294
15295 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15296 Fix copy/paste typo. Add checks.
15297
cee53ed4
KH
152982008-11-21 Kenichi Handa <handa@m17n.org>
15299
15300 * coding.c (detect_coding_iso_2022): Reject invalid composition
15301 sequence.
15302 (DECODE_COMPOSITION_START): If the current source is the last
15303 block, and the current composition doesn't end, regard this
15304 sequence as invalid.
15305 (decode_coding_iso_2022): Handle invalid composition sequence.
15306
f6ef1e65
MR
153072008-11-20 Martin Rudalics <rudalics@gmx.at>
15308
15309 * window.c (coordinates_in_window): Don't return
15310 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15311 line when the window is not the rightmost one. (Bug#1372)
15312
e08b1705
MR
153132008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15314
15315 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15316
ad98e89f
EZ
153172008-11-15 Eli Zaretskii <eliz@gnu.org>
15318
15319 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15320 and bright_bg if noninteractive is non-zero.
15321
fb098a4b
CY
153222008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15323
15324 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15325 x_draw_glyph_string_background.
15326
15327 * w32term.c (x_draw_glyph_string): Likewise.
15328
ce952b6e
CY
153292008-11-15 Chong Yidong <cyd@stupidchicken.com>
15330
15331 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15332 the next glyph string once past the overhang width.
15333
15334 * nsterm.m (ns_draw_glyph_string): Likewise.
15335
15336 * w32term.c (x_draw_glyph_string): Likewise.
15337
26ea7079
CY
153382008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15339
15340 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15341 double file close.
15342
1c33c906
MR
153432008-11-14 Martin Rudalics <rudalics@gmx.at>
15344
15345 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15346 dedicated status of window before attempting to display another
15347 buffer in it.
15348
8fc29035
JB
153492008-11-14 Juanma Barranquero <lekktu@gmail.com>
15350
15351 * msdos.c (Fmsdos_long_file_names):
15352 (syms_of_msdos) <dos-unsupported-char-glyph>:
15353 * dosfns.c (Fint86): Fix typos in docstrings.
15354
55fb4286
EZ
153552008-11-14 Eli Zaretskii <eliz@gnu.org>
15356
15357 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15358
3fda0315
KY
153592008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15360
15361 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15362
7e849c17
CY
153632008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15364
15365 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15366
15367 * frame.h: Negative alpha means "don't touch".
15368
15369 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15370
15371 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15372
b9fd67bd
DN
153732008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15374
15375 * hftctl.c:
15376 * chpdef.h:
15377 * acldef.h: Remove files used only for systems no longer supported.
15378
15379 * Makefile.in: Fix .o alphabetical ordering.
15380 (hftctl.o): Remove dependency, file removed.
15381 (keymap.o, print.o): Depend on charset.h.
15382
d5998e03
KH
153832008-11-10 Kenichi Handa <handa@m17n.org>
15384
2ae37cf0 15385 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 15386
be70e183
CY
153872008-11-08 Chong Yidong <cyd@stupidchicken.com>
15388
15389 * dired.c (file_name_completion): If completion_ignore_case is
15390 enabled, ignore case when checking completion-regexp-list.
15391
7cf94eac
EZ
153922008-11-08 Eli Zaretskii <eliz@gnu.org>
15393
15394 * vm-limit.c (get_lim_data): Fix last change.
15395
ee107a89
KH
153962008-11-08 Kenichi Handa <handa@m17n.org>
15397
15398 * character.c (Fget_byte): New function.
15399 (syms_of_character): Defsubr Fget_byte.
15400
5fd15622
CY
154012008-11-07 Chong Yidong <cyd@stupidchicken.com>
15402
15403 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15404 cursor position is valid after scrolling.
15405
13d62fad
JB
154062008-11-06 Juanma Barranquero <lekktu@gmail.com>
15407
15408 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15409
a1dd2936
GM
154102008-11-06 Glenn Morris <rgm@gnu.org>
15411
15412 * xterm.c (handle_one_xevent): Don't let popup menus cause
15413 mouse-autoselect-window related window switching. (Bug#1261)
15414
860cd236
CY
154152008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15416
15417 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15418
653a3150
AS
154192008-11-04 Andreas Schwab <schwab@suse.de>
15420
15421 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15422
870f5cac
CY
154232008-11-03 Chong Yidong <cyd@stupidchicken.com>
15424
15425 * xfns.c (Fx_wm_set_size_hint): New function.
15426
1e02f3cb
MR
154272008-11-03 Martin Rudalics <rudalics@gmx.at>
15428
15429 * textprop.c (Fprevious_single_char_property_change): Return 0
15430 when there's no change in a string. (Bug#1301)
15431
e630dfc6
MR
154322008-11-02 Martin Rudalics <rudalics@gmx.at>
15433
15434 * frame.c (do_switch_frame): New argument NORECORD passed to
15435 Fselect_window.
15436 (Fselect_frame): New argument NORECORD passed to
15437 do_switch_frame.
15438 (Fset_frame_selected_window): New argument NORECORD passed to
15439 Fselect_frame.
15440 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15441 in call of do_switch_frame.
15442 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15443 Handle NORECORD argument in call of Fselect_frame.
15444 * lisp.h (do_switch_frame, Fselect_frame)
15445 (Fset_frame_selected_window): Adjust declarations.
15446 * window.c (select_frame_norecord): New function.
15447 (run_window_configuration_change_hook): Use it and call
15448 Fselect_frame with NORECORD set.
15449 (Fselect_window): Pass NORECORD to Fselect_frame.
15450 (Fset_window_configuration): Handle NORECORD argument in call of
15451 do_switch_frame.
15452 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15453 Fset_frame_selected_window.
15454 * keyboard.c (command_loop_1): Handle NORECORD in call of
15455 Fselect_frame (currently ifdefd).
15456
9020b223
GM
154572008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15458
15459 * emacs.c (USAGE2): Untabify.
15460
793ffee8
SM
154612008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15462
15463 * composite.c (fill_gstring_header): Fix copy/paste typo.
15464
ab6d1131
MR
154652008-10-31 Martin Rudalics <rudalics@gmx.at>
15466
15467 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15468 (Fother_window): Rename argument and rewrite doc-string.
15469 (select_window_norecord): Fix return value. (Bug#1276)
15470
601a9cf1
JB
154712008-10-30 Juanma Barranquero <lekktu@gmail.com>
15472
15473 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15474 new frames overriding foreground for tooltips. Based on similar patch
15475 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15476
813b0652
CY
154772008-10-29 Chong Yidong <cyd@stupidchicken.com>
15478
15479 * emacs.c (Fdaemon_initialized): Initialize nfd.
15480
4414f58f
MR
154812008-10-29 Martin Rudalics <rudalics@gmx.at>
15482
15483 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15484 (Fwindow_text_height): Clarify doc-strings.
15485 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15486 doc-string of window-scroll-functions.
15487
ecdcaa09
RS
154882008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15489
15490 * category.c (syms_of_category): Fix typo in docstring.
15491
23fe745a
JB
154922008-10-28 Juanma Barranquero <lekktu@gmail.com>
15493
15494 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15495 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15496 Fix typos in docstrings.
15497
ff808935
DN
154982008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15499
15500 * emacs.c (daemon_pipe): Make non-static.
15501 (IS_DAEMON): Move definition ...
15502 * lisp.h (IS_DAEMON): ... here.
15503 (daemon_pipe): Declare.
15504 (is_daemon): Remove.
15505 * dispnew.c (init_display): Use IS_DAEMON.
15506
fc012771
SM
155072008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15508
15509 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15510 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15511
15512 * emacs.c (is_daemon): Remove.
15513 (main): Don't set is_daemon.
15514 (IS_DAEMON): New macro.
15515 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15516 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15517 parent exits.
15518 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15519
d8bdbe6f
CY
155202008-10-27 Chong Yidong <cyd@stupidchicken.com>
15521
d1a072bf
CY
15522 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15523 over-sized glyph, draw it with the default glyph width.
15524
e2e325aa
CY
15525 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15526 glyph, draw it with the default glyph width.
15527
15528 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15529 glyph, draw it with the default glyph width.
15530
d8bdbe6f
CY
15531 * xdisp.c (try_scrolling): When computing the distance from the
15532 scroll margin to PT, try moving some distance past the window
15533 bottom before giving up.
15534
7bfac547
MR
155352008-10-27 Martin Rudalics <rudalics@gmx.at>
15536
15537 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15538 (Fset_window_buffer): Explain in doc-string that a window can be
15539 "strongly" dedicated to its buffer.
15540
4ff029f6
DN
155412008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15542
15543 * emacs.c (daemon_name): New variable.
15544 (main): Deal with --daemon=SERVER_NAME.
15545 (Fdaemonp): Return a name if one was passed to --daemon.
15546
5790ef40
DN
155472008-10-26 Romain Francoise <romain@orebokech.com>
15548
f9bd0df9 15549 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
15550 (main): Create a pipe before forking, make the parent exit only after
15551 the child has closed its end of the pipe. Move closing the
15552 descriptors ...
15553 (Fdaemon_initialized): ... here. New function.
15554
f5385255
SM
155552008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15556
4d632321
SM
15557 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15558 the previous unoptimized table.
15559
f5385255
SM
15560 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15561 the distinction between non-nil and non-t value of `dedicated'.
15562
6c56a0f3
CY
155632008-10-25 Chong Yidong <cyd@stupidchicken.com>
15564
15565 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 15566 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 15567
fec89261
MR
155682008-10-25 Martin Rudalics <rudalics@gmx.at>
15569
15570 * window.c (Fget_buffer_window, Fdelete_windows_on)
15571 (Freplace_buffer_in_windows): Make buffer argument optional and
15572 rename to buffer_or_name.
15573
34fcddd0
CY
155742008-10-24 Chong Yidong <cyd@stupidchicken.com>
15575
f5385255
SM
15576 * xdisp.c (handle_single_display_spec, handle_display_prop):
15577 Undo 2005-05-16 change.
34fcddd0
CY
15578 (handle_stop): Pop iterator if it's loaded with an empty string.
15579 (get_overlay_strings_1): Don't save iterator if it's loaded with
15580 an empty string (bug#1201).
15581
064766f2
KH
155822008-10-24 Kenichi Handa <handa@m17n.org>
15583
15584 * ftfont.c (ftfont_otf_features): Fix previous change.
15585 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15586 calling ftfont_otf_features.
15587
f9bd0df9 155882008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
15589
15590 * font.c (font_match_p): Fix for the case that a vector of
15591 characters is in script-representative-chars.
15592
1dae9197
MA
155932008-10-24 Michael Albinus <michael.albinus@gmx.de>
15594
15595 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 15596 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
15597 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15598 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 15599 macro. (Bug#1186)
1dae9197 15600
f9bd0df9 156012008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
15602
15603 * s/sol2-10.h: New file.
15604
878a4584
JB
156052008-10-23 Juanma Barranquero <lekktu@gmail.com>
15606
15607 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15608 poor beast has survived 9+ years and the jump from xterm.c!).
15609
cd265ca6
MR
156102008-10-23 Martin Rudalics <rudalics@gmx.at>
15611
15612 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15613 Reword doc-string.
f5385255 15614 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 15615
472a4dc9
JB
156162008-10-23 Juanma Barranquero <lekktu@gmail.com>
15617
15618 * character.c (syms_of_character) <script-representative-chars>:
15619 <unicode-category-table>: Doc fixes.
15620
159bd5a2
NF
156212008-10-23 Noah Friedman <friedman@splode.com>
15622
15623 * coding.c (make_conversion_work_buffer): Check that
15624 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15625 Fget_buffer_create.
15626
49f9c344
KH
156272008-10-23 Kenichi Handa <handa@m17n.org>
15628
15629 * font.c (font_add_log): Check the values of extra properties.
15630
12bb3111
MR
156312008-10-22 Martin Rudalics <rudalics@gmx.at>
15632
15633 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15634 Reword doc-string.
15635 (Fset_window_parameter): Use NILP.
15636 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 15637 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 15638
bbeb4e99
JB
156392008-10-22 Juanma Barranquero <lekktu@gmail.com>
15640
15641 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15642
156432008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
15644
15645 * nsfns.m (ns_appkit_version): New function.
15646 (x-server-version): Use it.
15647 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
15648 (x-server-vendor): Don't check_ns().
15649
15650 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
15651
a9b555d3
JB
156522008-10-22 Juanma Barranquero <lekktu@gmail.com>
15653
15654 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
15655 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
15656
4626499f
KH
156572008-10-22 Kenichi Handa <handa@m17n.org>
15658
e3681952
KH
15659 * syntax.c (scan_words): Call word_boundary_p instead of comparing
15660 scripts.
15661
4626499f
KH
15662 * category.c (word_boundary_p): Check scripts instead of charset.
15663 Handle nil value in word-separating-categories and
15664 word-combining-categories.
15665 (syms_of_category): Fix docstrings of word-separating-categories
15666 and word-combining-categories.
15667
1560f91a
EZ
156682008-10-21 Eli Zaretskii <eliz@gnu.org>
15669
15670 * coding.c (Fencode_coding_region, Fdecode_coding_region)
15671 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
15672
f4668441
MR
156732008-10-21 Martin Rudalics <rudalics@gmx.at>
15674
15675 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
15676 Rename arg "buffer" to "buffer_or_name".
15677 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
15678 it optional.
15679 (no_switch_window): Remove since the return value is not used.
a9b555d3 15680 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
15681 Consider window as dedicated when Fwindow_dedicated_p returns a
15682 non-nil value.
15683 * lisp.h: Remove prototype for no_switch_window.
15684
fd75ddb2
JD
156852008-10-21 Jan Djärv <jan.h.d@swipnet.se>
15686
15687 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 15688 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 15689
07295713
KH
156902008-10-21 Kenichi Handa <handa@m17n.org>
15691
15692 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
15693 check Vlatin_extra_code_table.
15694
712adc82
EZ
156952008-10-20 Eli Zaretskii <eliz@gnu.org>
15696
15697 * fileio.c (Fset_file_modes): Doc fix.
15698
f549eb0b
MA
156992008-10-19 Michael Albinus <michael.albinus@gmx.de>
15700
15701 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
15702 in arrays.
15703
aac0c6e3
MR
157042008-10-19 Martin Rudalics <rudalics@gmx.at>
15705
15706 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15707 Mention kill-buffer in doc-string.
15708 (Fset_window_buffer): Reinsert tem check removed in last commit.
15709 (Fenlarge_window, Fshrink_window): Have argument names and
15710 doc-string follow Elisp manual more closely.
15711
157122008-10-18 Eli Zaretskii <eliz@gnu.org>
15713
15714 * fileio.c (Fset_file_modes): Doc fix.
15715
157162008-10-18 Martin Rudalics <rudalics@gmx.at>
15717
15718 * window.c (Fwindow_width, Fset_window_start)
15719 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
15720 (Fdelete_windows_on, Freplace_buffer_in_windows):
15721 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
15722 (Fwindow_dedicated_p): Make window argument optional.
15723 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
15724 (Fset_window_buffer): Respect any non-nil dedicated value for
15725 window. Rename "buffer" argument to "buffer_or_name".
15726
157272008-10-18 Ulrich Mueller <ulm@gentoo.org>
15728
15729 * m/sh3.h: New file, machine description for SuperH.
15730
157312008-10-17 Martin Rudalics <rudalics@gmx.at>
15732
15733 * window.c (Fsplit_window): Rename arg horflag to horizontal.
15734
157352008-10-17 Kenichi Handa <handa@m17n.org>
15736
15737 * ftfont.c (ftfont_otf_features): Fix indexing
15738 gsub_gpos->FeatureList.Feature. Check the validity of indices.
15739
157402008-10-16 Magnus Henoch <mange@freemail.hu>
15741
15742 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
15743 (Fdbus_call_method_asynchronously): Ditto.
15744 This change makes C-h f display the argument list.
15745
157462008-10-16 Chong Yidong <cyd@stupidchicken.com>
15747
15748 * fileio.c (Fexpand_file_name): Doc fix.
15749
15750 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
15751 of :foreground and :background equivalent to unspecified (20.x
15752 compatibility).
15753
157542008-10-15 Eli Zaretskii <eliz@gnu.org>
15755
15756 * buffer.c (syms_of_buffer): Doc fix.
15757
157582008-10-14 Kenichi Handa <handa@m17n.org>
15759
15760 * font.c (font_clear_prop): When clearing font width, clear the
15761 average width field too.
15762
157632008-10-12 Andreas Schwab <schwab@suse.de>
15764
15765 * ftfont.c (ftfont_shape_by_flt): Make static.
15766 * ftfont.h (ftfont_shape_by_flt): Don't declare.
15767
15768 * font.c: Don't include <m17n-flt.h>.
15769
157702008-10-10 Eli Zaretskii <eliz@gnu.org>
15771
15772 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
15773
157742008-10-09 Eli Zaretskii <eliz@gnu.org>
15775
15776 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
15777 away code.
15778
157792008-10-09 Chong Yidong <cyd@stupidchicken.com>
15780
15781 * dispnew.c (update_text_area): Avoid looping due to large glyph
15782 overhangs (bug#1070).
15783
157842008-10-09 Kenichi Handa <handa@m17n.org>
15785
15786 * fontset.c (face_for_char): If face->fontset is negative, just
15787 return ascii_face.
15788
f5385255
SM
15789 * font.c (font_delete_unmatched): Fix previous change.
15790 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
15791
157922008-10-09 Martin Rudalics <rudalics@gmx.at>
15793
15794 * frame.c (Fraise_frame): On text-only terminals select frame in
15795 order to make it visible. (Bug#1061)
15796
157972008-10-08 Chong Yidong <cyd@stupidchicken.com>
15798
15799 * fontset.c (fontset_find_font): Check frame validity.
15800
158012008-10-07 Chong Yidong <cyd@stupidchicken.com>
15802
a9b555d3 15803 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
15804 (xg_display_close): Allow Emacs to close all displays (bug#985).
15805
158062008-10-06 Andreas Schwab <schwab@suse.de>
15807
f5385255 15808 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
15809
158102008-10-06 Chong Yidong <cyd@stupidchicken.com>
15811
f5385255 15812 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 15813
a9b555d3 15814 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
15815
15816 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15817 during initialization.
15818
158192008-10-04 Eli Zaretskii <eliz@gnu.org>
15820
15821 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15822 whole thing on MSDOS frames as well as on a TTY.
15823
15824 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15825 well as for TTY.
15826 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15827 well as on a TTY.
15828
15829 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15830 as well as for TTY.
15831
15832 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15833
15834 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15835 MSDOS frames as well.
15836
158372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15838
15839 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15840 correct arguments.
b71ac3dd 15841 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
15842
158432008-10-03 Glenn Morris <rgm@gnu.org>
15844
15845 * emacs.c (USAGE1): Add --daemon.
15846
158472008-10-02 Eli Zaretskii <eliz@gnu.org>
15848
15849 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15850 100, so it's in percents as advertised.
15851
158522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15853
15854 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15855 (ns_output.current_cursor, ns_output.desired_cursor)
15856 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15857 (FRAME_NEW_CURSOR_COLOR): Remove.
15858
15859 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 15860 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
15861 enumeration (HOLLOW_BOX_CURSOR, etc.).
15862
15863 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15864 (draw_window_cursor): Simplify code.
f5385255
SM
15865 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15866 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 15867 updates manually.
a9b555d3
JB
15868 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15869 Use core Emacs cursor types.
aac0c6e3 15870
b8ff72fa 15871 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
15872
158732008-10-02 Martin Rudalics <rudalics@gmx.at>
15874
15875 * process.c (Faccept_process_output): Fix doc-string.
15876
158772008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15878
15879 * gmalloc.c (__sbrk): Also define for uClibc.
15880
15881 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15882 for uClibc.
15883
158842008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15885
15886 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15887 styles.
15888 (nsfont_open): Reenable the cache.
15889
158902008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15891
15892 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15893 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15894
158952008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15896
15897 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15898 a suspended terminal.
15899
159002008-09-30 Michael Albinus <michael.albinus@gmx.de>
15901
15902 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15903
159042008-09-30 Eli Zaretskii <eliz@gnu.org>
15905
15906 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15907
159082008-09-30 Chong Yidong <cyd@stupidchicken.com>
15909
15910 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15911 in a continued line coincides with a line beginning.
15912
159132008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15914
15915 * nsfont.m (nsfont_trait_distance): Fix bug.
15916 (nsfont_list): Return a list rather than a vector (syncs with Handa
15917 changes of 2008-05-14).
15918 (nsfont_open): Improve logging.
15919
159202008-09-29 Andreas Schwab <schwab@suse.de>
15921
15922 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15923
159242008-09-28 Martin Rudalics <rudalics@gmx.at>
15925
15926 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15927 name as char-resolve-modifiers.
15928 Reported by: Markus Triska <markus.triska@gmx.at>
15929
159302008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15931
15932 * dispnew.c (init_display): Return earlier when running as a daemon.
15933
159342008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15935
15936 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15937
159382008-09-27 Eli Zaretskii <eliz@gnu.org>
15939
15940 * composite.c (Fcomposition_get_gstring)
15941 (Fcompose_region_internal, Fcompose_string_internal)
15942 (Ffind_composition_internal): Doc fix.
15943 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15944 (syms_of_composite) <auto-composition-function>: Doc fix.
15945 (syms_of_composite) <composition-function-table>: Doc fix.
15946
159472008-09-25 Chong Yidong <cyd@stupidchicken.com>
15948
15949 * search.c (wordify): New argument for lax word-ends.
15950 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15951
159522008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15953
15954 * lisp.h (is_daemon): Declare.
15955 * dispnew.c (init_display): Do not try to initialize the terminal
15956 when running as a daemon.
15957
159582008-09-22 Chong Yidong <cyd@stupidchicken.com>
15959
15960 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15961 x_display_pixel_height.
15962
159632008-09-22 Martin Rudalics <rudalics@gmx.at>
15964
15965 * undo.c (record_point): Don't call Fundo_boundary for first
15966 change. (Bug#731)
15967
159682008-09-22 Juanma Barranquero <lekktu@gmail.com>
15969
15970 * emacs.c (Fdaemonp): Doc fix.
15971
159722008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15973
15974 * emacs.c (main): Place #ifdef in the proper place.
15975
159762008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15977
15978 * emacs.c (standard_args): Add --daemon.
15979 (main): Disconnect from the terminal when --daemon is passed.
15980 (is_daemon): New variable.
15981 (Fdaemonp): New function.
15982 (syms_of_emacs): Defsubr it.
15983
159842008-09-20 Chong Yidong <cyd@stupidchicken.com>
15985
15986 * xdisp.c (get_next_display_element): Handle string display
15987 correctly when checking for the end of a box run.
15988
159892008-09-20 Glenn Morris <rgm@gnu.org>
15990
15991 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15992 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15993 (Frename_file): Avoid copying to trash if a rename involves
15994 a delete. (Bug#964).
15995
159962008-09-20 Eli Zaretskii <eliz@gnu.org>
15997
15998 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15999 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16000 frames as well as termcap frames.
16001 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16002 get_named_tty.
16003
160042008-09-19 Eli Zaretskii <eliz@gnu.org>
16005
16006 * process.c (procfs_system_process_attributes): Fix cmdline in
16007 case /proc/PID/cmdline is empty.
16008
16009 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16010 x_display_pixel_height.
16011
160122008-09-19 Juanma Barranquero <lekktu@gmail.com>
16013
16014 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16015
16016 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16017 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16018
160192008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16020
16021 * dispextern.h (struct it): Move line_wrap away from the middle of
16022 bitfields. Move voffset in struct iterator_stack_entry after the
16023 bitfields. Move tab_width near after another short.
16024
160252008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16026
16027 * frame.h (struct frame): Move alpha from the middle of bitfields.
16028
16029 * window.h (struct window): Move frozen_window_start_p after the
16030 rest of the bitfields to reduce padding.
16031
160322008-09-18 Chong Yidong <cyd@stupidchicken.com>
16033
16034 * xterm.h (x_display_info): Remove `height' and `width' members.
16035
16036 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16037
16038 * w32term.h (w32_display_info): Remove `height', `width',
16039 `height_in', and `width_in' members.
16040
b8ff72fa
SM
16041 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16042 New functions.
aac0c6e3
MR
16043 (x_calc_absolute_position): Use them.
16044 (x_term_init): Omit removed `height' and `width' members.
16045
b8ff72fa
SM
16046 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16047 New functions.
aac0c6e3
MR
16048 (w32_read_socket, x_calc_absolute_position): Use them.
16049 (w32_initialize_display_info, w32_term_init): Omit removed members
16050 of w32_display_info.
16051
b8ff72fa
SM
16052 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16053 New functions.
16054 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 16055
b8ff72fa
SM
16056 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16057 New functions.
aac0c6e3
MR
16058 (x_calc_absolute_position): Use them.
16059 (x_term_init): Omit removed `height' and `width' members.
16060
16061 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
16062 (compute_tip_xy):
16063 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
16064 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16065 x_display_pixel_width.
16066
160672008-09-18 Kenichi Handa <handa@m17n.org>
16068
16069 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16070 (composition_compute_stop_pos): Fix handling of static composition.
16071 (Fcomposition_get_gstring): Check FROM and TO at first.
16072
160732008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16074
46e722a9 16075 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
16076 mixup (YAILOM).
16077
160782008-09-17 Chong Yidong <cyd@stupidchicken.com>
16079
16080 * indent.c (Fvertical_motion): Use position reported by iterator
16081 instead of PT for determining screen motion (bug#943).
16082
160832008-09-17 Romain Francoise <romain@orebokech.com>
16084
16085 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16086
160872008-09-17 Kenichi Handa <handa@m17n.org>
16088
16089 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16090
16091 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16092 if necessary.
16093
160942008-09-16 Kenichi Handa <handa@m17n.org>
16095
16096 * coding.c (make_conversion_work_buffer): Avoid calling
16097 Fget_buffer_create if it is not necessary.
16098
160992008-09-15 Martin Rudalics <rudalics@gmx.at>
16100
16101 * window.c (Fselect_window): Don't update window_select_count and
16102 use_time when norecord is not nil.
16103
161042008-09-14 Kenichi Handa <handa@m17n.org>
16105
16106 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16107 specpdl_ptr.
16108
161092008-09-12 Kenichi Handa <handa@m17n.org>
16110
16111 * indent.c (scan_for_column): Don't handle automatic composition
16112 if the current buffer is not associated with a window.
16113
16114 * composite.c (composition_reseat_it): If the current buffer is
16115 not associated with a window, ignore the automatic composition.
16116 (find_automatic_composition): Likewise.
16117
161182008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16119
16120 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16121 (Fgpm_mouse_stop): Use it.
16122 * termhooks.h (close_gpm): Declare.
16123 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16124 connection if Gpm_GetEvent fails.
16125
16126 * window.c (set_window_buffer): Always preserve current-buffer.
16127
161282008-09-12 Glenn Morris <rgm@gnu.org>
16129
16130 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16131
161322008-09-11 Glenn Morris <rgm@gnu.org>
16133
16134 * charset.c (charset-map-path): Doc fix.
16135
161362008-09-10 Kenichi Handa <handa@m17n.org>
16137
16138 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16139
16140 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16141 compose a grapheme cluster with the preceding base glyph.
16142
16143 * composite.c (composition_compute_stop_pos): Fix previous change.
16144 Reset cmp_it->id to -1 at first.
16145
161462008-09-10 Glenn Morris <rgm@gnu.org>
16147
16148 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16149
161502008-09-09 Chong Yidong <cyd@stupidchicken.com>
16151
16152 * keyboard.c (read_key_sequence): Reapply translation maps when
16153 switching keyboards.
16154
161552008-09-09 Kenichi Handa <handa@m17n.org>
16156
16157 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16158 characters.
16159
16160 * composite.c (FORWARD_CHAR): Fix calculation
16161 of (POSITION).pos_byte.
16162 (composition_compute_stop_pos): Limit the search of composition to
16163 at most 500 characters ahead. If we reach the limit or find a
16164 newline, set cmp_it->ch to -2 and return 0.
16165 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16166
161672008-09-08 Kenichi Handa <handa@m17n.org>
16168
16169 * indent.c (Fvertical_motion): Be sure to set
16170 it_overshoot_expected if it.cmp_it.id is non-negative.
16171
161722008-09-07 Andreas Schwab <schwab@suse.de>
16173
16174 * callproc.c (Fcall_process): Don't hold references to string data
16175 across garbage collection. Move initialisation of new_argv down
16176 to avoid compiler bug.
16177
161782008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16179
16180 * process.c (Fsystem_process_attributes): Doc fix.
16181
161822008-09-07 Chong Yidong <cyd@stupidchicken.com>
16183
16184 * callproc.c (Fcall_process): Canonicalize current directory name.
16185
16186 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16187 iterator advances to the next line if the current line ends in a
16188 continued tab.
16189
161902008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16191
16192 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16193 member to point to cmp_from.
16194
16195 * xdisp.c: Doc fix for references to gidx data member.
16196
161972008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16198
16199 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16200
162012008-09-07 Kenichi Handa <handa@m17n.org>
16202
16203 * composite.c (FORWARD_CHAR): Check STOP after
16204 incrementing (POSITION).pos.
16205
162062008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16207
16208 * process.c (Fsystem_process_attributes): Doc fix.
16209
162102008-09-06 Chong Yidong <cyd@stupidchicken.com>
16211
16212 * keyboard.c (Ftop_level): Doc fix.
16213
162142008-09-06 Eli Zaretskii <eliz@gnu.org>
16215
16216 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16217 minibuffer, don't let lower part of menu invade the echo area.
16218
16219 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16220 "char *q" to access menu text and advance through it. Revert the
16221 change that displayed ">" instead of ASCII character 0x10.
16222
162232008-09-05 Eli Zaretskii <eliz@gnu.org>
16224
16225 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16226 toggle boxes and radio buttons on MS-DOS as well.
16227
162282008-09-05 Kenichi Handa <handa@m17n.org>
16229
16230 * composite.c (autocmp_chars): Check lookback count.
16231 (composition_compute_stop_pos): Set cmp_it->lookback.
16232 (composition_reseat_it): Check lookback count.
16233 (struct position_record): New struct.
16234 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16235 (find_automatic_composition): New function.
16236 (composition_adjust_point): Use find_automatic_composition.
16237
16238 * dispextern.h (struct composition_it): New member lookback.
16239
162402008-09-02 Chong Yidong <cyd@stupidchicken.com>
16241
16242 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16243 if moving by a single line.
16244
162452008-09-02 Andreas Schwab <schwab@suse.de>
16246
16247 * xterm.c (x_delete_display): Fix merge error.
16248
16249 * fileio.c (Fexpand_file_name): Remove unused variables.
16250
162512008-09-02 Eli Zaretskii <eliz@gnu.org>
16252
16253 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16254 storage on all platforms, not just on DOS_NT.
16255
162562008-09-02 Jason Rumney <jasonr@gnu.org>
16257
b8ff72fa
SM
16258 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16259 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
16260
162612008-09-01 Chong Yidong <cyd@stupidchicken.com>
16262
16263 * xfaces.c (Finternal_set_alternative_font_family_alist)
16264 (Finternal_set_alternative_font_registry_alist): Properly copy
16265 entire alist structure.
16266
162672008-09-01 Kenichi Handa <handa@m17n.org>
16268
d66c0241 16269 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16270 representative chars of the script is a vector.
d66c0241
JB
16271 (ftfont_list): Handle the case where the representative chars of
16272 the script is a vector.
aac0c6e3
MR
16273
16274 * character.c (syms_of_character): Docstring of
16275 script-representative-chars fixed.
16276
162772008-08-31 Eli Zaretskii <eliz@gnu.org>
16278
16279 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16280 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16281 the menu. Allocate larger buffer for `text', to account for
16282 possible ^C characters.
16283
162842008-08-31 Martin Rudalics <rudalics@gmx.at>
16285
16286 * xdisp.c (prepare_menu_bars): Don't call
16287 Vwindow_size_change_functions with arg Qt.
16288
162892008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16290
16291 * font.h (font_range):
16292 * fileio.c (report_file_error):
46e722a9
SM
16293 * composite.c (composition_update_it): Yet another int/Lisp_Object
16294 mixup (YAILOM).
aac0c6e3
MR
16295
162962008-08-30 Glenn Morris <rgm@gnu.org>
16297
16298 * data.c (Fmake_variable_frame_local): Doc fix.
16299
16300 * frame.c (Fmodify_frame_parameters): Doc fix.
16301
163022008-08-30 Eli Zaretskii <eliz@gnu.org>
16303
16304 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16305 needed by GetTokenInformation.
16306 (w32_system_process_attributes): Check return values of all system
16307 APIs.
16308
16309 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16310 only when the state changes.
16311 (IT_update_begin, IT_update_end): Add termscript trace.
16312
16313 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16314 clipboard is unavailable. Set dst to NULL if it doesn't point to
16315 malloc'ed data.
16316 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16317 passing random values to xfree.
16318
16319 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 16320 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
16321
163222008-08-29 Jason Rumney <jasonr@gnu.org>
16323
16324 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16325
163262008-08-29 Eli Zaretskii <eliz@gnu.org>
16327
16328 * composite.c (fill_gstring_body): Avoid compiler warnings.
16329
16330 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16331 LGLYPH_SET_CODE to avoid compiler warnings.
16332
2ae37cf0 16333 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
16334
16335 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16336
16337 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16338 LGLYPH_SET_CODE.
16339
163402008-08-29 Kenichi Handa <handa@m17n.org>
16341
16342 * fileio.c (report_file_error): Don't downcase the first character
16343 of errstring if it is still unibyte.
16344
163452008-08-29 Kenichi Handa <handa@m17n.org>
16346
16347 These changes are to re-implement the automatic composition so
16348 that it doesn't use text properties.
16349
16350 * Makefile.in (ftfont.o): Depend on composite.h.
16351 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16352
16353 * character.h (Vunicode_category_table): Extern it.
16354
16355 * character.c (Vunicode_category_table): New variable.
16356 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16357
16358 * chartab.c (optimize_sub_char_table): Perform more greedy
16359 optimization.
16360
b8ff72fa
SM
16361 * composite.h (enum composition_method):
16362 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
16363 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16364 (Vcomposition_function_table): Extern it.
16365 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16366 (composition_gstring_put_cache, composition_gstring_from_id)
16367 (composition_gstring_p, composition_gstring_width)
16368 (composition_compute_stop_pos, composition_reseat_it)
16369 (composition_update_it, composition_adjust_point): Extern them.
16370 (Fcomposition_get_gstring): EXFUN it.
16371
d66c0241 16372 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
16373 (Vcomposition_function_table)
16374 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
16375 (gstring_hash_table, gstring_work, gstring_work_headers):
16376 New variables.
aac0c6e3
MR
16377 (gstring_lookup_cache, composition_gstring_put_cache)
16378 (composition_gstring_from_id, composition_gstring_p)
16379 (composition_gstring_width, fill_gstring_header)
16380 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16381 (composition_reseat_it, composition_update_it)
b8ff72fa 16382 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
16383 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16384 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 16385 Defsubr composition_get_gstring.
aac0c6e3
MR
16386
16387 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16388 cmp_id.
16389 (struct glyph_string): Delete the member gidx. New members
16390 cmp_id, cmp_from, and cmp_to.
16391 (enum it_method): Delete GET_FROM_COMPOSITION.
16392 (struct composition_it): New struct.
16393 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16394 Delete c, len, cmp_id, cmp_len in u.comp.
16395
16396 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 16397 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16398 (enum lglyph_indices): Likewise.
b8ff72fa 16399 (font_range): Adjust extern.
aac0c6e3
MR
16400 (font_fill_lglyph_metrics): Extern it.
16401
16402 * font.c (QCf): New variable.
16403 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16404 (font_prepare_composition): Delete this function.
16405 (font_range): Type and arguments changed.
16406 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16407 (font_fill_lglyph_metrics): New function.
b8ff72fa 16408 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16409 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16410 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16411 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16412
16413 * fontset.h (font_for_char): Extern it.
16414
16415 * fontset.c (font_for_char): New function.
16416
16417 * ftfont.c: Include composite.h.
16418 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16419 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16420
16421 * indent.c: Include composite.h and dispextern.h.
16422 (check_composition): Delete this function.
16423 (scan_for_column): Handle composition by
16424 composition_compute_stop_pos, composition_reseat_it, and
16425 composition_update_it.
16426 (compute_motion): Likewise.
16427 (Fvertical_motion): Fix checking of composition.
16428
16429 * keyboard.c (adjust_point_for_property): Check composition by
16430 composition_adjust_point.
16431
b8ff72fa 16432 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16433 struct glyph_string.
16434
b8ff72fa
SM
16435 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16436 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16437 struct glyph.
16438 (produce_composite_glyph): Likewise.
16439
b8ff72fa
SM
16440 * w32term.c (x_draw_composite_glyph_string_foreground):
16441 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16442 (x_draw_glyph_string): Likewise.
16443
16444 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16445 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16446
16447 * xdisp.c: Include font.h.
16448 (it_props): Delete the entry for Qauto_composed.
16449 (init_iterator): Initialize it->cmp_it.id to -1.
16450 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16451 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16452 (handle_auto_composed_prop): Delete it.
16453 (handle_composition_prop): Handle only static composition.
16454 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16455 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16456 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16457 (pop_it): Likewise.
16458 (get_next_element): Delete next_element_from_composition.
16459 (CHAR_COMPOSED_P): New macro.
16460 (get_next_display_element): For automatic composition, get a face
16461 from the font in the glyph-string.
16462 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16463 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16464 (next_element_from_string): Check if the character at the current
16465 position is composed by CHAR_COMPOSED_P.
16466 (next_element_from_buffer): Likewise.
d66c0241
JB
16467 (next_element_from_composition): Adjust for the change of struct it.
16468 Update it->cmp_it.
b8ff72fa
SM
16469 (dump_glyph): Adjust for the change of struct glyph.
16470 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16471 it and struct glyph. Don't handle automatic composition here.
16472 (fill_gstring_glyph_string): New function.
16473 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16474 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16475 (BUILD_GSTRING_GLYPH_STRING): New macro.
16476 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16477 automatic composition.
b8ff72fa 16478 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16479 struct glyph.
b8ff72fa 16480 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16481
b8ff72fa 16482 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16483 the change of struct glyph_string.
16484 (x_draw_glyph_string): Likewise.
16485
164862008-08-29 Glenn Morris <rgm@gnu.org>
16487
16488 * buffer.c (word-wrap): Doc fix.
16489 * xdisp.c (truncate-partial-width-windows): Doc fix.
16490 Increase default to 50.
16491
164922008-08-29 Chong Yidong <cyd@stupidchicken.com>
16493
16494 * xdisp.c (update_tool_bar_unwind): New function.
16495 (update_tool_bar): Temporarily set selected frame before building
16496 tool-bar items.
16497
164982008-08-28 Michael Albinus <michael.albinus@gmx.de>
16499
16500 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16501 snprintf, respectively.
16502 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16503
165042008-08-28 Chong Yidong <cyd@stupidchicken.com>
16505
16506 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16507 LDFLAGS to GNUstep CC invocation.
16508
165092008-08-27 Chong Yidong <cyd@stupidchicken.com>
16510
16511 * indent.c (Fvertical_motion): Revert last change. Handle the
16512 general case where we are moving forward, and PT spans multiple
16513 screen lines.
16514
16515 * eval.c (find_handler_clause): Temporarily increase
16516 max-lisp-eval-depth while printing the backtrace buffer, to
16517 guarantee that help-mode code can run.
16518
165192008-08-27 Eli Zaretskii <eliz@gnu.org>
16520
16521 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16522 colors under -rv.
16523 (IT_set_frame_parameters): Don't swap foreground and background
16524 colors if `(reverse . t)' is present in the frame properties.
16525 (internal_terminal_init): Call init_frame_faces only for the
16526 initial frame.
16527
165282008-08-27 Andreas Schwab <schwab@suse.de>
16529
16530 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16531
165322008-08-27 Andreas Schwab <schwab@suse.de>
16533
16534 * search.c (search_buffer): Set char_base to zero only at the end.
16535
165362008-08-27 Kenichi Handa <handa@m17n.org>
16537
b8ff72fa 16538 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
16539
165402008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16541
16542 * xterm.c (x_term_init): Temporarily hide the partially
16543 initialized terminal while calling vendor-specific-keysyms.
16544
165452008-08-26 Eli Zaretskii <eliz@gnu.org>
16546
16547 * msdos.c (internal_terminal_init): Most initializations done only
16548 once, especially initial_screen_colors[] and termscript open.
16549
165502008-08-26 Chong Yidong <cyd@stupidchicken.com>
16551
16552 * eval.c (Fcondition_case): Doc fix.
16553
16554 * widgetprv.h (EmacsFramePart): Change font member to the new font
16555 struct.
16556
16557 * widget.c: Include character.h and font.h for XSETFONT.
16558 (setup_frame_gcs): Compute X font id from font struct, just once.
16559
165602008-08-26 Eli Zaretskii <eliz@gnu.org>
16561
16562 * term.c (get_named_tty): Fix last change.
16563
165642008-08-26 Chong Yidong <cyd@stupidchicken.com>
16565
16566 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 16567 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
16568
165692008-08-25 Eli Zaretskii <eliz@gnu.org>
16570
16571 * frame.c (do_switch_frame): Mark previously displayed frame as
16572 obscured for FRAME_MSDOS_P frames as well.
16573
165742008-08-24 Eli Zaretskii <eliz@gnu.org>
16575
16576 * frame.c (make_terminal_frame): Initialize f->terminal,
16577 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16578 Set the top frame to newly created frame.
16579 (Fmake_terminal_frame): Reuse the_only_display_info.
16580
16581 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16582 estimating available memory.
16583
b97439ce 165842008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
16585
16586 * nsterm.m (ns_draw_window_cursor): Don't call
16587 NSDisableScreenUpdates and NSEnableScreenUpdates on
16588 non-NS_IMPL_COCOA systems.
16589
165902008-08-23 Andreas Schwab <schwab@suse.de>
16591
16592 * process.c (procfs_system_process_attributes): Fix use of
16593 uninitialized variables.
16594
165952008-08-23 Eli Zaretskii <eliz@gnu.org>
16596
16597 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16598
16599 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16600 calling tty-set-up-initial-frame-faces.
16601
b8ff72fa
SM
16602 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16603 Allow MSDOS frames along with X frames.
aac0c6e3
MR
16604
16605 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16606 addition to output_termcap.
16607
16608 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16609
16610 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16611 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16612 highlight.
16613
16614 * process.c [!subprocesses]: Define QCname.
16615 (syms_of_process): Intern and staticpro it.
16616
16617 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
16618 Adjust for changes in encoding/decoding routines.
16619 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
16620 encode_coding and decode_coding.
16621
b8ff72fa 16622 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
16623
16624 * dosfns.c: Include frame.h before termhooks.h.
16625 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16626 variable termscript.
16627
16628 * s/msdos.h (USER_FULL_NAME): Define.
16629 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16630
16631 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16632 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16633 pw->pw_gecos.
16634
16635 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16636 SELECTED_FRAME as additional (1st) argument.
16637 (tty_read_avail_input): Handle output_msdos_raw in
16638 addition to output_termcap.
16639
16640 * msdos.c: Include frame.h before termhooks.h.
16641 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16642 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
16643 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
16644 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
16645 (IT_set_terminal_modes, IT_reset_terminal_modes)
16646 (IT_set_frame_parameters): Use tty->termscript instead of a global
16647 variable termscript.
16648 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
16649 global variable terminal_coding. Don't refer to
16650 Vnonascii_translation_table.
16651 (internal_terminal_init): Set Vwindow_system in current_kboard.
16652 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
16653 Announce date and time of session start, if termscript is open.
16654 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
16655 term.c:init_tty). Open termscript only of not already open.
16656 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
16657 here instead of dos_ttraw. Don't initialize display if this is an
16658 initial tty. Don't set FRAME_FONT.
16659 (Vwindow_system_version): Bump to 23.
16660 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
16661 is available, set up mouse_position_hook.
16662 (dos_ttraw, IT_set_terminal_modes): If called with initial
16663 terminal, do nothing.
16664 (IT_set_frame_parameters): Handle the Qtty_type frame
16665 parameter by calling internal_terminal_init.
16666 (dos_set_window_size, show_mouse_face)
16667 (clear_mouse_face, IT_note_mode_line_highlight)
16668 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
16669 (dos_rawgetc): Use tty_display_info instead of x_display_info.
16670 (initialize_msdos_display): New function.
16671 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
16672 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
16673 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
16674 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 16675 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
16676 (request_sigio, unrequest_sigio): Don't define, now defined on
16677 sysdep.c.
16678 (IT_write_glyphs): Rewrite to use encode_terminal_code.
16679
16680 * term.c [MSDOS]: Include msdos.h.
16681 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
16682 conditional to DOS_NT. Allow only one call to this function in a
16683 session. Don't allocate a new struct tty_display_info; instead,
16684 reuse the_only_display_info. Call get_tty_size to get screen
16685 dimensions. Call init_baud_rate to set bad_rate.
16686 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
16687 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 16688 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
16689 (get_tty_terminal, get_named_tty, Ftty_type)
16690 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
16691 output_termcap.
b8ff72fa
SM
16692 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
16693 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 16694 only when subprocesses are supported.
aac0c6e3
MR
16695
16696 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
16697 f->output_data.x.
16698 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
16699 terminal devices.
16700
5582fbc7 16701 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
16702 x_output.
16703 (FRAME_FONT): Use output_data.tty.
16704 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
16705 (struct x_display_info): Rename from display_info. Update all users in
16706 msdos.c.
aac0c6e3 16707 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 16708 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
16709 (dos_ttraw): Update prototype.
16710
16711 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
16712 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
16713
167142008-08-23 Jason Rumney <jasonr@gnu.org>
16715
16716 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
16717 (fn_TIFFSetDirectory): New library function used.
16718 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
16719 (tiff_load): Use :index to select among multiple images. Set count
16720 property when multiple images exist.
16721 (gif_format): Use :index, not :image.
16722
167232008-08-23 Chong Yidong <cyd@stupidchicken.com>
16724
16725 * xdisp.c (try_scrolling): Check INT_MAX instead of
16726 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
16727 to obtain INT_MAX.
16728
167292008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
16730
16731 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
16732
167332008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
16734
16735 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
16736 GNUstep library location.
16737
167382008-08-21 Chong Yidong <cyd@stupidchicken.com>
16739
16740 * xfaces.c (x_update_menu_appearance): Check validity of menu font
16741 before using it.
16742
16743 * puresize.h (BASE_PURESIZE): Increase to 1250000.
16744
167452008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16746
16747 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
16748 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
16749 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
16750 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
16751 (EmacsApp-cursor_blink_handler): Remove declaration.
16752 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
16753 match 01 Feb 2008 changes in xterm.c.
16754 (ns_read_socket): Add cast to avoid warning.
16755 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
16756 GNUstep.
16757
167582008-08-20 Chong Yidong <cyd@stupidchicken.com>
16759
16760 * xselect.c (x_get_foreign_selection): Return nil if desired
16761 selection could not be obtained, instead of signalling an error.
16762
167632008-08-20 David Reitter <david.reitter@gmail.com>
16764
16765 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
16766 * nsterm.m: Remove ns-specific code for cursor blinking.
16767 (ns_draw_window_cursor): Clear cursor properly rather than
16768 redrawing the area. Respect width of bar cursors.
16769 These changes enable the use of generic blink-cursor-mode and
16770 generic cursor types in NS and support smooth cursor movements (do
16771 not blink off after command).
16772 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
16773 Nextstep, too.
16774
167752008-08-19 Kenichi Handa <handa@m17n.org>
16776
16777 * font.c (Vfont_log_deferred): New variable.
16778 (font_add_log): Check Vfont_log_deferred.
16779 (font_deferred_log): New function.
16780
16781 * font.h (font_deferred_log): Extern it.
16782
16783 * fontset.c (reorder_font_vector): Use encoding charset of fonts
16784 for sorting.
16785 (face_for_char): Use deferred log.
16786
167872008-08-18 Kenichi Handa <handa@m17n.org>
16788
16789 * fontset.c (face_for_char): Add font log.
16790
16791 * font.c (font_add_log): Add the font properties :script, :lang,
16792 and :otf in the log.
16793
167942008-08-17 Chong Yidong <cyd@stupidchicken.com>
16795
16796 * xdisp.c: Remove dead code.
16797 (handle_invisible_prop, next_overlay_string): Defer call to
16798 setup_for_ellipsis.
16799 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
16800
168012008-08-15 Chong Yidong <cyd@stupidchicken.com>
16802
16803 * xfaces.c (lookup_derived_face): Properly handle possible zero
16804 return value of get_lface_attributes.
16805 (merge_faces): Don't tell lookup_derived_face to signal an error
16806 if face is not found.
16807
16808 * dired.c (Fdirectory_files): Doc fix.
16809
16810 * process.c (make_process): Initialize kill_without_query struct
16811 member.
16812
168132008-08-15 Eli Zaretskii <eliz@gnu.org>
16814
16815 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16816 Alternative calculation of totphys for Visual Studio 6.
16817
16818 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16819
16820 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16821 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16822 All users changed.
16823 (stat): Only root directory passed to GetDriveType. Allow RAM
16824 disk as well as local fixed disk when w32-get-true-file-attributes
16825 is set to `local'.
16826 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16827 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16828 (w32_cached_id, w32_add_to_cache): New functions.
16829 (get_name_and_id): Look account names in the cache before calling
16830 lookup_account_sid.
16831 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16832 New initialization flags.
16833 (globals_of_w32): Initialize them to zero.
16834 (w32_system_process_attributes): Use w32_cached_id and
16835 w32_add_to_cache.
16836
168372008-08-14 Lawrence Mitchell <wence@gmx.li>
16838
16839 * lread.c (Fread_char, Fread_char_exclusive): If no character
16840 event is read before timeout is reached, return nil, rather than
16841 converting to a number.
16842
168432008-08-14 Chong Yidong <cyd@stupidchicken.com>
16844
16845 * fns.c (use_dialog_box): Doc fix.
16846
16847 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16848 on OS X.
16849
168502008-08-13 Chong Yidong <cyd@stupidchicken.com>
16851
16852 * frame.c (Qns_parse_geometry): New var.
16853 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16854
168552008-08-11 Chong Yidong <cyd@stupidchicken.com>
16856
16857 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16858 space character in calculating tabs.
16859
168602008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16861
16862 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16863
168642008-08-10 Glenn Morris <rgm@gnu.org>
16865
16866 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16867 silence gcc "limited range of data type" warnings in some
16868 make_fixnum_or_float calls.
16869
168702008-08-09 Eli Zaretskii <eliz@gnu.org>
16871
16872 * w32.c (w32_system_process_attributes): If the process does not
16873 exist, return nil.
16874
16875 * w32.c: Include thelp32.h, psapi.h and coding.h.
16876 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16877 declarations.
16878 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16879 (Process32Next_Proc): New typedefs.
16880 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16881 (g_b_init_process32_next, g_b_init_open_thread_token)
16882 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16883 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16884 (g_b_init_get_process_working_set_size)
16885 (g_b_init_global_memory_status_ex): New static variables.
16886 (globals_of_w32): Initialize them.
16887 (create_toolhelp32_snapshot, process32_first, process32_next)
16888 (open_thread_token, impersonate_self, revert_to_self)
16889 (get_process_memory_info, get_process_working_set_size)
16890 (global_memory_status, global_memory_status_ex): New wrapper
16891 functions.
16892 (w32_list_system_processes, w32_system_process_attributes)
16893 (enable_privilege, restore_privilege, ltime, process_times):
16894 New functions.
16895 (convert_time_raw): New function.
16896 (convert_time): Remove conversion of FILETIME into time in 100
16897 nsec units, call convert_time_raw instead.
16898
16899 * process.h (w32_list_system_processes, w32_system_process_attributes):
16900 Add prototypes.
16901 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16902 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16903 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16904 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16905
16906 * process.c (Fsystem_process_attributes): Doc fix.
16907
169082008-08-08 Chong Yidong <cyd@stupidchicken.com>
16909
16910 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16911 a continued multi-char glyph; if so, advance to the actual glyph.
16912
169132008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16914
16915 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16916
16917 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16918 (.m.o): Use it.
16919 * config.in: Regenerate.
16920
169212008-08-07 Chong Yidong <cyd@stupidchicken.com>
16922
16923 * xdisp.c (redisplay_window): Revert last change.
16924 (try_window): Check bottom scroll margin too.
16925
169262008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16927
16928 * config.in: Regenerate.
16929
16930 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16931 -list-load-path-shadows'.
16932 (nsgui.h): Reduce number of things depending on it.
16933
169342008-08-06 Chong Yidong <cyd@stupidchicken.com>
16935
16936 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16937 instead of window-end which does the wrong thing at eob.
16938 (try_cursor_movement): Minor optimization.
16939 (redisplay_window): If scroll margin is defined, don't assume
16940 window doesn't need scrolling.
16941
169422008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16943
16944 * config.in: Regenerate.
16945
16946 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16947 (mostlyclean): Don't delete *.d under NS.
16948
16949 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16950
169512008-08-06 Kenichi Handa <handa@m17n.org>
16952
16953 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16954
169552008-08-06 Andreas Schwab <schwab@suse.de>
16956
16957 * config.in: Regenerate.
16958
169592008-08-05 Chong Yidong <cyd@stupidchicken.com>
16960
16961 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16962 forcing a window start.
16963
16964 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16965 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16966
169672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16968
16969 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16970 argument.
16971
169722008-08-05 Juanma Barranquero <lekktu@gmail.com>
16973
16974 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16975 <scroll-down-aggressively, before-change-functions>:
16976 <after-change-functions>: Reflow docstrings.
16977
169782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16979 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16980
16981 Dock menu customization, based on a patch by Ken Raeburn, plus some
16982 other fixes.
16983 * nsmenu.m (dockMenu): New variable.
16984 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16985
16986 * nsterm.h (dockMenu): Declare.
16987
16988 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16989 (ns_term_init): Initialize dockMenu.
16990 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16991 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16992 left.
16993
16994 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16995
169962008-08-04 Chong Yidong <cyd@stupidchicken.com>
16997
16998 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16999
17000 * config.in: Regenerate.
17001
170022008-08-04 Seiji Zenitani <zenitani@mac.com>
17003
17004 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17005
170062008-08-04 Chong Yidong <cyd@stupidchicken.com>
17007
17008 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17009
170102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17011
17012 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17013
17014 * keyboard.h: Comment an #endif.
17015
17016 * lisp.h (have_menus_p): Adjust comment.
17017
17018 * menu.c (find_and_return_menu_selection): Fix comparison with
17019 client_data.
17020
17021 * nsmenu.m (popup_activated_flag): New variable.
17022 (popup_activated): New function.
17023 (menu-or-popup-active-p): New exported lisp definition.
17024 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17025 when popup done.
17026 (ns_popup_dialog): Set popup_activated_flag.
17027
17028 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17029 version for GNUstep (handled by conditional typedef in nsterm.m).
17030 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17031 in rgb.txt).
17032
17033 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17034
17035 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17036
17037 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17038
17039 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17040 shortcircuit if popup_activated like GTK and X toolkit.
17041
17042 * m/inter386.h: Change DARWIN to DARWIN_OS.
17043
17044 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17045 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
17046 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17047 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
17048
170492008-08-03 Chong Yidong <cyd@stupidchicken.com>
17050
17051 * nsterm.m (windowDidResize): Remove stopModal call.
17052
170532008-08-03 Andreas Schwab <schwab@suse.de>
17054
17055 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17056 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17057
170582008-08-02 Chong Yidong <cyd@stupidchicken.com>
17059
17060 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17061 Don't use uninitialized pointer variable when using getrlimit.
17062
170632008-08-02 Jason Rumney <jasonr@gnu.org>
17064
17065 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17066
170672008-08-02 Eli Zaretskii <eliz@gnu.org>
17068
17069 * alloc.c (NSTATICS): Bump to 0x640.
17070
17071 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17072
17073 * lisp.h: Add prototype for directory_files_internal.
17074
17075 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17076 New functions.
17077 (syms_of_process): Defsubr them. Add initializations for various
17078 Q* symbols used in procfs_system_process_attributes.
17079 (procfs_list_system_processes, procfs_system_process_attributes)
17080 [HAVE_PROCFS]: New functions.
17081 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17082 (procfs_get_total_memory): New functions.
17083
170842008-08-01 Juanma Barranquero <lekktu@gmail.com>
17085
17086 * xfaces.c (Fx_load_color_file): Fix previous change;
17087 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17088
170892008-08-01 Michael Albinus <michael.albinus@gmx.de>
17090
17091 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17092
170932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17094
17095 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17096
170972008-08-01 Chong Yidong <cyd@stupidchicken.com>
17098
17099 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17100
17101 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17102 define NSApplicationDelegateReplySuccess.
17103 (EmacsView -converstationIdentifier): Use long instead of
17104 NSInteger for GNUstep, since it doesn't have NSInteger.
17105
17106 * xmenu.c: Revert last change.
17107
17108 * keyboard.h: Fix last change.
17109
171102008-08-01 Juanma Barranquero <lekktu@gmail.com>
17111
17112 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17113 on Windows.
17114
171152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17116
17117 Warning clearing and clean-up in NS port.
17118 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17119 Add prototypes.
17120 * nsgui.h (FACE_DEFAULT): Remove, unused.
17121 (XGCValues): Change colors to unsigned long.
17122 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17123 nsterm.m.
17124 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17125 (ns_list_fonts): Remove, unused.
17126 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17127 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17128 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17129 (nsfont_draw): Compare face colors to 0, not nil.
17130 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17131 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17132 (-addSubmenuWithTitle:): Use NSMenuItem class.
17133 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17134 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17135 (ns_clip_to_row): Make gc arg a BOOL.
17136 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17137 ns_clip_to_row() call.
17138 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17139 used). Cast FRAME_FONT assignments.
17140 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17141 (ns_string_to_lispmod): Change arg to const char.
17142 (ns_term_init): Use NSMenuItem class.
17143 (EmacsApp -openFile:): Move to different section of file.
17144 (EmacsApp -application:openFiles:): Don't return a value, call
17145 -replyToOpenOrPrint:.
17146 (EmacsView -keyDown:): Fix up cast.
17147 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17148 (EmacsView -menuDown:): Cast tag in call to
17149 find_and_call_menu_selection().
17150 (ns_list_fonts): Remove, unused.
17151 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17152 (ns_fontname_to_xlfd): Make static.
17153 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17154 Remove prototypes (now in keyboard.h).
17155 (next_menubar_widget_id): Remove, unused.
17156 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17157 Remove prototypes (now in keyboard.h).
17158 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17159
171602008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17161
17162 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17163 (floatfns.o): Depend on syssignal.h.
17164 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17165
17166 * systty.h: Fix previous change that removed BSD_TERMIOS.
17167 Add comments to #ifdefs.
17168
171692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17170
17171 * w32fns.c (w32-load-color-file): Remove.
17172 (x-open-connection): Use renamed Fx_load_color_file.
17173 * xfaces.c (x-load-color-file): Add.
17174 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17175 Emacs.clr.
17176 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17177
171782008-07-31 Michael Albinus <michael.albinus@gmx.de>
17179
17180 * dbusbind.c (Fdbus_call_method_asynchronously)
17181 (Fdbus_method_error_internal): New defuns.
17182 (xd_read_message): Handle also reply messages.
17183 (Vdbus_registered_functions_table): Extend docstring.
17184
171852008-07-31 Juanma Barranquero <lekktu@gmail.com>
17186
17187 * keyboard.c (gobble_input): Fix previous change.
17188
171892008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17190
17191 * bitmaps/README:
17192 * xfns.c:
17193 * termcap.c:
17194 * term.c:
17195 * syswait.h:
17196 * systty.h:
17197 * systime.h:
17198 * syssignal.h:
17199 * sysdep.c:
17200 * process.h:
17201 * process.c:
17202 * print.c:
17203 * ndir.h:
17204 * lread.c:
17205 * keyboard.c:
17206 * getpagesize.h:
17207 * floatfns.c:
17208 * fileio.c:
17209 * emacs.c:
17210 * doc.c:
17211 * dispnew.c:
17212 * dired.c:
17213 * data.c:
17214 * callproc.c:
17215 * buffer.c:
17216 * README:
17217 * Makefile.in:
17218 * s/template.h:
17219 * s/msdos.h:
17220 * m/vax.h: Remove VMS support.
17221 * s/vms.h:
17222 * vlimit.h:
17223 * uaf.h:
17224 * temacs.opt:
17225 * param.h:
17226 * ioctl.h: Remove file.
17227
172282008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17229
17230 * s/ms-w32.h (MULTI_KBOARD): Remove.
17231 * xterm.c:
17232 * xselect.c:
17233 * xfns.c:
17234 * window.c:
17235 * w32term.c:
17236 * w32fns.c:
17237 * terminal.c:
17238 * termhooks.h:
17239 * term.c:
17240 * sysdep.c:
17241 * keyboard.h:
17242 * keyboard.c:
17243 * frame.h:
17244 * frame.c:
17245 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17246 * config.in: Regenerate.
17247
172482008-07-30 Jason Rumney <jasonr@gnu.org>
17249
17250 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17251
17252 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17253 (w32font_open_internal): Get unicode version of textmetrics.
17254 Don't enable or disable glyph indices here.
17255 (w32font_open): Disable use of glyph indices.
17256
17257 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17258
172592008-07-30 Chong Yidong <cyd@stupidchicken.com>
17260
17261 * minibuf.c (Vread_buffer_function): Doc fix.
17262
172632008-07-30 John Paul Wallington <jpw@pobox.com>
17264
17265 * minibuf.c (read_buffer_completion_ignore_case): New var.
17266 (Fread_buffer): Use it.
17267
172682008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17269
17270 * systty.h (sensemode): Remove empty #if. Remove reference to
17271 BSD_TERMIOS, unused.
17272
17273 * sysdep.c: Remove reference to DGUX.
17274 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17275
17276 * config.in: Regenerate.
17277
172782008-07-30 Jason Rumney <jasonr@gnu.org>
17279
17280 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17281
172822008-07-29 Jason Rumney <jasonr@gnu.org>
17283
17284 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17285 is populated.
17286 (uniscribe_encode_char): Always use uniscribe.
17287 Avoid using context if cache is populated.
17288
172892008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17290
17291 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17292 open menu.
17293
17294 * gtkutil.c (menu_nav_ended): Remove.
17295 (create_menus): Remove signal connect for menu_nav_ended.
17296
172972008-07-28 Chong Yidong <cyd@stupidchicken.com>
17298
17299 * xdisp.c (redisplay_window): Check return value of
17300 compute_window_start_on_continuation_line before forcing a window
17301 start.
17302
173032008-07-28 Jason Rumney <jasonr@gnu.org>
17304
17305 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17306
17307 * w32term.c (w32_enable_unicode_output, cleartype_active):
17308 Remove obsolete display options.
17309 (x_draw_glyph_string_background): Don't use old cleartype_active
17310 workaround.
17311 (w32_initialize): Remove cleartype_active initialization.
17312 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17313
173142008-07-28 Andreas Schwab <schwab@suse.de>
17315
17316 * lisp.h (init_weak_hash_tables, syms_of_font)
17317 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17318 (remove_hash_entry): Don't declare.
17319 * eval.c (maybe_call_debugger): Make static and move before use.
17320 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17321 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17322 * xterm.h (x_set_frame_alpha): Declare.
17323
173242008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17325
17326 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17327 (create_menus): Connect selection-done to menu_nav_ended.
17328
173292008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17330
17331 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17332 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17333 parameter with read of 'alpha' one.
17334 (Qns_frame_parameter): Remove.
5582fbc7 17335 * nsselect.m (selection-coding-system)
aac0c6e3
MR
17336 (next-selection-coding-system, Vselection_coding_system)
17337 (Vnext_selection_coding_system): Drop.
17338
173392008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17340
17341 * nsfns.m (do-applescript, do_applescript): Rename to
17342 ns-do-applescript, ns_do_applescript, and move within file.
17343
173442008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17345
17346 Remove support for Mac Carbon.
17347 * mactoolbox.c:
17348 * macterm.h:
17349 * macterm.c:
17350 * macselect.c:
17351 * macmenu.c:
17352 * macgui.h:
17353 * macfns.c:
17354 * mac.c: Remove file.
17355 * s/darwin.h:
17356 * m/intel386.h:
17357 * xfaces.c:
17358 * xdisp.c:
17359 * window.c:
17360 * tparam.c:
17361 * termhooks.h:
17362 * termcap.c:
17363 * term.c:
17364 * syssignal.h:
17365 * sysselect.h:
17366 * sysdep.c:
17367 * process.c:
17368 * lread.c:
17369 * lisp.h:
17370 * keyboard.c:
17371 * image.c:
17372 * fringe.c:
17373 * frame.h:
17374 * frame.c:
17375 * fontset.c:
17376 * font.h:
17377 * font.c:
17378 * fns.c:
17379 * fileio.c:
17380 * emacs.c:
17381 * dispnew.c:
17382 * dispextern.h:
17383 * config.in:
17384 * atimer.c:
2ae37cf0 17385 * Makefile.in: Remove code for Carbon.
aac0c6e3 17386
f0131492 173872008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
17388
17389 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17390
173912008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17392
17393 * macterm.h (kCGBitmapByteOrder32Host): New define for
17394 non-universal SDKs.
17395
17396 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17397 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17398
17399 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17400 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17401
174022008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17403
17404 * w32inevt.c: Include dispextern.h.
17405
174062008-07-26 Andreas Schwab <schwab@suse.de>
17407
17408 * print.c (print_object): Fix off-by-one in last change.
17409
174102008-07-25 Juanma Barranquero <lekktu@gmail.com>
17411
17412 * term.c (syms_of_term): Don't initialize default_orig_pair,
17413 default_set_foreground and default_set_background on Windows.
17414
174152008-07-25 Jason Rumney <jasonr@gnu.org>
17416
17417 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17418 ScriptItemize. Clean up return value checking. Remove unused
17419 variables.
17420 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17421 shaping engine.
17422
17423 * w32font.c (w32font_has_char): Handle the case where we can't
17424 determine the script for a character.
17425
174262008-07-25 Chong Yidong <cyd@stupidchicken.com>
17427
17428 * term.c (syms_of_term): Initialize default_orig_pair,
17429 default_set_foreground, and default_set_background.
17430
17431 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17432 clash (bug#86).
17433 (getloadavg): Callers changed.
17434
17435 * image.c (svg_load_image): Fix last change.
17436 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17437 image size is valid. Use g_object_unref instead of deprecated
17438 rsvg_handle_free to free rsvg handle.
17439 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17440
174412008-07-25 Jason Rumney <jasonr@gnu.org>
17442
17443 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17444 surrogates before looking up glyph index.
17445 (w32font_text_extents): Encode as surrogates if falling back to
17446 functions that need UTF-16 wide chars.
17447
17448 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17449 BMP as surrogates before looking up glyph index.
17450
174512008-07-25 Chong Yidong <cyd@stupidchicken.com>
17452
17453 * image.c (svg_load_image): Check for failure in return value of
17454 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17455
174562008-07-25 Jason Rumney <jasonr@gnu.org>
17457
17458 * w32font.c (Fx_select_font): Reverse sense of second arg.
17459
174602008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17461
17462 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17463 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17464
17465 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17466 (PURESIZE): Use it.
17467
174682008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17469
17470 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17471 * m/alpha.h (TEXT_END):
17472 * m/ibmrs6000.h (TEXT_END):
17473 * m/macppc.h (TEXT_END):
17474 * s/darwin.h (TEXT_END):
17475 * s/msdos.h (TEXT_END): Remove, unused.
17476 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17477 * s/cygwin.h: Remove comment.
17478
17479 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17480 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17481 * m/intel386.h (DOT_GLOBAL_START):
17482 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17483 (USG): Remove, file not used on USG platforms.
17484
17485 * Makefile.in (HAVE_X11): Remove empty #else.
17486
174872008-07-24 Andreas Schwab <schwab@suse.de>
17488
17489 * fileio.c (Finsert_file_contents): Properly adjust undo list
17490 after format conversion.
17491
174922008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17493
17494 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17495 (menu_nav_ended): Remove.
17496 (create_menus): Remove signal connect for menu_nav_ended.
17497 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17498 create_menus.
17499 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17500
175012008-07-23 Jason Rumney <jasonr@gnu.org>
17502
17503 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17504 with opened font.
17505 (w32font_open): Set font type to gdi.
17506
17507 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17508
175092008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17510
17511 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17512 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17513 defines it.
17514 * unexec.c (ADDR_CORRECT): Define unconditionally.
17515
17516 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17517
17518 * unexec.c: Remove code depending on !COFF and USG, the file is
17519 not used for such systems.
17520
17521 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17522 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17523 (LD_SWITCH_SYSTEM_1): Remove, update users.
17524
17525 * s/darwin.h (DATA_END):
17526 * m/intel386.h (DATA_END):
17527 * m/ibmrs6000.h (DATA_END):
17528 * m/alpha.h (DATA_END): Remove, unused.
17529
17530 * config.in: Regenerate.
17531 * s/ms-w32.h (subprocesses): Define unconditionally.
17532 * s/template.h (subprocesses): Update comment.
17533 * s/vms.h (subprocesses):
17534 * s/usg5-4.h (subprocesses):
17535 * s/hpux10-20.h (subprocesses):
17536 * s/gnu-linux.h (subprocesses):
17537 * s/cygwin.h (subprocesses):
17538 * s/bsd-common.h (subprocesses):
17539 * s/aix4-2.h (subprocesses):
17540 * s/darwin.h (subprocesses): Do not define, defined by default now.
17541
17542 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17543 Remove all references.
17544 (temacs): Add GNUstep specific ld flags.
17545
17546 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17547 similarly to what X does.
17548
175492008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17550
17551 * nsfns.m (x-list-fonts): Remove.
17552 (syms_of_nsfns): Drop the x-list-fonts declaration.
17553 * nsterm.m: Get rid of remaining "//" comments.
17554
175552008-07-22 Chong Yidong <cyd@stupidchicken.com>
17556
17557 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17558
17559 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17560 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17561 (Fns_own_selection_internal, Fx_disown_selection_internal)
17562 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17563
17564 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17565 ... */' style of docstrings. Doc fixes.
17566
175672008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17568
17569 * terminfo.c (UP, BC, PC): Undo previous change.
17570
17571 * nsfns.m: Rename ns prefixed functions/variables to the
17572 corresponding x versions. Update references.
17573
175742008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17575
17576 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17577
175782008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17579
17580 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17581 Remove forwarding functions.
17582 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17583 non-static.
17584 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17585 non-static.
17586 (ns_frame_parm_handlers): Use the new names.
17587 (syms_of_nsfns): Move to the end of file.
17588
17589 * nsterm.m (syms_of_nsterm): Move to the end of file.
17590
17591 * dispnew.c (init_display): Remove code for X10.
17592
175932008-07-22 Jason Rumney <jasonr@gnu.org>
17594
17595 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17596 bare drive.
17597
175982008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17599
17600 * nsterm.m (syms_of_nsterm): Remove debugging println.
17601
176022008-07-22 David Reitter <david.reitter@gmail.com>
17603
17604 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17605 Carbon implementation of the same functionality: execute arbitrary
17606 AppleScript code.
17607
176082008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17609
17610 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17611 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17612 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17613 (Fx_display_mm_height, Fx_display_mm_width)
17614 (Fx_display_backing_store, Fx_display_visual_class)
17615 (Fx_display_save_under, Fx_open_connection)
17616 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17617 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17618 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17619 (Fx_display_pixel_width, Fx_display_pixel_height)
17620 (Fx_display_usable_bounds, Fx_display_planes)
17621 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17622 ... */' style of docstrings.
17623
176242008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17625
17626 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17627 on this platform.
17628 (mips):
17629 * m/iris4d.h (mips): Do not define.
17630 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17631
17632 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17633
17634 * image.c:
17635 * nsfns.m:
17636 * nsselect.m:
17637 * nsterm.h:
17638 * nsterm.m: Rename ns prefixed functions/variables to the
17639 corresponding x versions. Update references.
17640
17641 * m/ibms390x.h (NO_REMAP): Do not undefine.
17642
17643 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
17644
176452008-07-21 Chong Yidong <cyd@stupidchicken.com>
17646
17647 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
17648 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
17649 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
17650 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
17651 (Fns_display_mm_height, Fns_display_mm_width)
17652 (Fns_display_backing_store, Fns_display_visual_class)
17653 (Fns_display_save_under, Fns_open_connection)
17654 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
17655 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
17656 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17657 (Fns_display_pixel_width, Fns_display_pixel_height)
17658 (Fns_display_usable_bounds, Fx_display_planes)
17659 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
17660
176612008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
17662
17663 * print.c (print_object): Check print_depth before searching for
17664 circularities.
17665
176662008-07-21 Michael Albinus <michael.albinus@gmx.de>
17667
17668 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
17669 only sprintf.
17670
176712008-07-21 Kenichi Handa <handa@m17n.org>
17672
17673 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
17674
176752008-07-20 Andreas Schwab <schwab@suse.de>
17676
17677 * syntax.c (find_start_pos, find_start_value)
17678 (find_start_value_byte, find_start_begv, find_defun_start)
17679 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
17680
176812008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17682
17683 * s/sol2-3.h: Insert contents of s/sol2.h.
17684 (LD_SWITCH_SYSTEM): Remove redundant definition.
17685 * s/sol2.h: Remove, unused.
17686
176872008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17688
17689 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
17690
176912008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17692
17693 * Makefile.in (ns_appdir): Fix typo in find command.
17694
176952008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17696
17697 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
17698
17699 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
17700 added not supported anymore.
17701
17702 * s/usg5-4-2.h (LIBS_SYSTEM):
17703 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
17704
17705 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17706 * s/lynxos.h (GETPGRP_NO_ARG):
17707 * s/hpux10-20.h (NO_SIOCTL_H):
17708 * s/gnu.h (GETPGRP_NO_ARG):
17709 * s/gnu-linux.h (NO_SIOCTL_H):
17710 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17711 * s/cygwin.h (GETPGRP_NO_ARG):
17712 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17713 (C_DEBUG_SWITCH): Remove duplicate definition.
17714
17715 * m/ibms390.h: Remove boilerplate comments.
17716
17717 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
17718
17719 * process.c (HAVE_SERIAL): Consolidate ifdefs.
17720 (wait_reading_process_output): Remove code for SunOS, platform not
17721 supported anymore. Use SOLARIS2 instead of sun.
17722
177232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17724
17725 * font.c (font_open_by_name): Under NS, default lface height to zero.
17726 (font_open_for_lface): Under NS, set size based on frame fontsize.
17727 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
17728 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
17729
177302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17731
17732 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
17733 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
17734 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
17735 YES/NO.
17736 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
17737 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
17738 * Makefile.in (clean): Clear out build destination dir.
17739
177402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17741
17742 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
17743 xterm, xselect.
17744 * lisp.h: Remove declaration of hash_remove.
17745 * nsgui.h: Remove redefinitions of hash_remove.
17746 * fns.c (hash_remove): Rename to hash_remove_from_table.
17747
177482008-07-19 Seiji Zenitani <zenitani@mac.com>
17749
17750 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
17751 strdup() the family UTF8String before modifying it.
17752
177532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17754
17755 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
17756 NS_FACE_BACKGROUND with 0 instead of nil.
17757 * nsfont.m (nsfont_draw): Same.
17758
177592008-07-19 Chong Yidong <cyd@stupidchicken.com>
17760
17761 * nsfns.m (ns_set_background_color): Fix crash.
17762
177632008-07-18 Chong Yidong <cyd@stupidchicken.com>
17764
17765 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
17766
177672008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
17768
17769 * puresize.h (BASE_PURESIZE): Increase to 1240000.
17770
177712008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17772
17773 * gtkutil.c: Include <config.h> instead of "config.h".
17774
17775 * lisp.h (Foverlay_buffer): Add EXFUN.
17776
17777 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
17778 child process to complete child_setup. Undo 2005-09-21 change.
17779
17780 * s/darwin.h: Mention setsid after vfork.
17781
177822008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17783
17784 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
17785 Depend on macgui.h.
17786
17787 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
17788 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
17789
17790 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
17791 and f19.
17792 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
17793
17794 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
17795 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
17796 Remove enumerators.
17797
17798 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
17799 Check if FACE_FROM_ID returns NULL.
17800
178012008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
17802
17803 * w32inevt.c (change_frame_size): Remove extern declaration.
17804 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
17805 change_frame_size.
17806
178072008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17808
17809 * getloadavg.c: Revert last change (2008-07-15).
17810
178112008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17812
17813 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 17814 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
17815 from configure.
17816
178172008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17818
17819 * s/sol2.h:
17820 * s/sol2-4.h: Reorganize conditionals.
17821
17822 * ecrt0.c: Remove code depending on m68000, not used anymore.
17823
17824 * fns.c (hash_remove): Make static.
17825 * lisp.h (hash_remove): Don't prototype.
17826
17827 * m/ibmrs6000.h:
17828 * m/ibms390x.h:
17829 * m/macppc.h: Remove boilerplate comments.
17830
17831 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17832 Solaris, which does not need them.
17833
17834 * m/vax.h: Remove comments about unsupported systems.
17835
17836 * s/darwin.h: Reorganize ifdefs.
17837
178382008-07-17 Andreas Schwab <schwab@suse.de>
17839
17840 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17841
178422008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17843
17844 Use SDATA. Follow coding convention of placing operators at
17845 beginning of next line rather than end of previous line, and placing
17846 spaces around infix operators.
17847
17848 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17849 in case it was defined already.
17850 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17851 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17852 ns_default.
17853 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17854 Lisp_Objects.
17855 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17856 (ns_defined_color, ns_color_to_lisp): Declare.
17857 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17858 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17859 it's accepted even with USE_LISP_UNION_TYPE.
17860 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17861 (update_frame_tool_bar): Remove apparently obsolete tests for
17862 non-integerness of f->tool_bar_lines.
17863 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17864 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17865 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17866 (nsfont_open): Don't confuse NULL for Qnil.
17867 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17868 * menu.h (find_and_call_menu_selection):
17869 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17870 (find_and_return_menu_selection): Always return something.
17871 * frame.h: Include dispextern.h for Display_Info.
17872 (display_x_get_resource): Declare.
17873
178742008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17875
17876 * syntax.c: Remove stdio.h include accidentally introduced in
17877 Emacs.app commit.
17878 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17879 NS_IMPL_COCOA.
17880 * keyboard.c (handle_async_input, input_available_signal): Remove
17881 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17882
178832008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17884
17885 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17886 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17887 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17888 Use SDATA.
17889
17890 * keymap.c: Remove all NS-specific code.
17891 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17892 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17893 where_is_preferred_modifier, return a different value depending on how
17894 preferred is the binding.
17895 (where_is_internal): Adjust accordingly.
17896 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17897 Adjust to new preferred_sequence_p.
17898 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17899 * keyboard.c (parse_solitary_modifier): Not static any more.
17900 * keyboard.h (parse_solitary_modifier): Declare.
17901
179022008-07-16 Andreas Schwab <schwab@suse.de>
17903
17904 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17905 of easymenu.
17906
179072008-07-16 Chong Yidong <cyd@stupidchicken.com>
17908
17909 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17910 that we don't move off the line.
17911
179122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17913
17914 * keyboard.c (Qsuper): Remove.
17915 (parse_menu_item): Don't call where_is_internal specially for NS.
17916
179172008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17918
17919 * s/gnu-linux.h: Remove boilerplate comments.
17920
17921 * m/alpha.h (__ELF__): Consolidate conditions.
17922
17923 * m/m68k.h (linux): Use GNU_LINUX instead.
17924 Remove boilerplate comments.
17925
17926 * m/intel386.h: Undo refactoring from previous change.
17927 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17928 too, remove dead code.
17929 (linux): Use GNU_LINUX instead.
17930
179312008-07-16 Jason Rumney <jasonr@gnu.org>
17932
17933 * w32gui.h: Repeat 26 June changes lost by last change.
17934
179352008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17936
17937 * systty.h: Remove code for Aix on 386, unsupported platform.
17938
17939 * s/ms-w32.h: Remove boilerplate comments.
17940 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17941
17942 * s/gnu-linux.h (TERM): Remove support.
17943 (HAVE_SYSVIPC): Remove, unused.
17944 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17945 for this system.
17946
17947 * process.c: Remove support for IRIS, unused.
17948 Remove support for TERM, not relevant anymore.
17949
17950 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17951 used with the definition.
17952
17953 * s/aix4-2.h (static): Do not undef.
17954
17955 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17956 only used on Aix.
17957 (HAVE_SYSVIPC): Remove, unused.
17958
17959 * m/hp800.h (CANNOT_DUMP): Do not undef.
17960
17961 * m/alpha.h: Fix comment.
17962
17963 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17964 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17965 used by this configuration.
17966 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17967 * unexec.c: Remove code depending on HPUX and
17968 USG_SHARED_LIBRARIES, not used with this file. Remove code
17969 depending on IRIS, unused. Remove if 0-ed code.
17970
17971 * s/template.h: Remove comments about static.
17972
17973 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17974 Remove if 0-ed code.
17975 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17976 were the same as the default.
17977 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17978 Remove boilerplate comments.
17979 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17980 (HAVE_SYSVIPC): Remove, unused.
17981 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17982
17983 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17984 Remove boilerplate comments.
17985 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17986 Remove boilerplate comments.
17987 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17988 Remove boilerplate comments.
17989 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17990
17991 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17992 USG systems which do not use DATA_SEG_BITS.
17993 Refactor code. Remove boilerplate comments.
17994
17995 * m/ibms390.h:
17996 * m/m68k.h:
17997 * s/bsd-common.h:
17998 * s/cygwin.h:
17999 * s/darwin.h:
18000 * s/freebsd.h:
18001 * s/gnu.h:
18002 * s/msdos.h: Remove boilerplate comments.
18003
18004 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 18005 do not use this file.
aac0c6e3
MR
18006 (IRIS_4D): Remove, unused.
18007
18008 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 18009 do not use this file.
aac0c6e3
MR
18010 (SIGN_EXTEND_CHAR):
18011 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18012 * unexmips.c: Remove file, unused.
18013
18014 * editfns.c (Fuser_full_name): Replace the only use of
18015 USER_FULL_NAME with its value.
18016 * config.in: Regenerate.
18017
180182008-07-16 David Reitter <david.reitter@gmail.com>
18019
18020 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18021 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18022
180232008-07-16 Glenn Morris <rgm@gnu.org>
18024
18025 * emacs.c (system-type): Doc fix.
18026
180272008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18028
18029 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18030 If the cache doesn't work, let's fix it, rather than work around it.
18031
180322008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18033
18034 * Makefile.in: Correct additions for nsfont.o in last commit.
18035 * nsfont.m: New file (forgot last commit).
18036
180372008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18038
bba3e508
SM
18039 * callproc.c (set_initial_environment):
18040 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
18041 batch-compiling for bootstrap).
18042
180432008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 18044 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 18045
c4cc8b9a
JB
18046 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18047 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
18048
180492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18050
18051 Changes and additions for NeXTstep windowing system (Cocoa and
18052 GNUstep) support.
18053
18054 * Makefile.in:
18055 * config.in: Support defines and build commands for NS port.
18056 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18057 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18058 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18059 windowing.
18060 (struct face): Add synth_ital field.
18061 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18062 (init_display): Initialize Vinitial_window_system to "ns" when so
18063 compiled.
18064 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18065 (display_arg): Use under NS.
18066 (main): Under NS, allocate autorelease pool and handle command line
18067 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18068 (standard_args): Add NS-specific args.
18069 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18070 * font.c (DEFAULT_ENCODING): New variable.
18071 (font_find_for_lface): Use it.
18072 (syms_of_font): Load syms_of_nsfont under NS.
18073 * font.h: Declare nsfont_driver when compiled under NS.
18074 * fontset.c: When compiling under NS, include nsterm.h.
18075 (fontset_from_font): Autoconstruct fontset under NS.
18076 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18077 symbol, document and use it.
18078 (do_switch_frame): When for_deletion under Cocoa, add
18079 Fraise_frame(Qnil).
18080 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18081 (x_get_arg): Allow "yes" and "no" as boolean values.
18082 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18083 Qright under Cocoa.
18084 (focus-follows-mouse): Default to 0 under NS.
18085 * frame.h (enum output_method): Add output_ns.
18086 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18087 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18088 (FRAME_WINDOW_P): NS-specific definition.
18089 * fringe.c (max_used_fringe_bitmap): Make public.
18090 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18091 (getloadavg): Use NeXT code under descendant OS's.
18092 * image.c (includes and header section, x_create_bitmap_from_data)
18093 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18094 (image_background_transparent, x_clear_image_1)
18095 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18096 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18097 (x_to_xcolors, x_from_xcolors, x_disable_image)
18098 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18099 other GUIs, including XPM support using code originally written for
18100 Carbon GUI.
18101 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18102 using NS API.
18103 (image_ascent): Use font metrics macros instead of direct struct field
18104 access.
18105 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18106 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18107 Also, handle NS as GTK for menu bar purposes.
18108 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18109 toolkit where they differ.
18110 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18111 use cachelist, still needed under NS.
18112 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18113 (struct widget_value): Define it here for menu.c.
18114 * keymap.c (includes): Include modifier internals.
18115 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18116 NS.
18117 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18118 support for preferring sequences using certain modifiers, specified by
18119 the FIRSTONLY argument.
18120 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18121 under NS GNUstep implementation.
18122 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18123 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18124 * menu.c: Include nsterm.h under NS.
18125 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18126 (free_menubar_widget_tree_value, update_submenu_strings)
18127 (find_and_call_menu_selection): Treat NS as X and NT.
18128 (find_and_return_menu_selection): New function, used for popup menus.
18129 * nsgui.h:
18130 * nsterm.h:
18131 * nsfns.m:
18132 * nsimage.m:
18133 * nsmenu.m:
18134 * nsselect.m:
18135 * nsterm.m: New files.
18136 * process.c (wait_reading_process_output): Under NS, call ns_select()
18137 instead of plain select().
18138 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18139 beginning of buffer.
18140 * sysselect.h (init_process): Rename when compiling under Cocoa to
18141 avoid name conflict.
18142 * termhooks.h (display_info): Add ns_display_info to union.
18143 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18144 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18145 COCOA environment.
18146 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18147 unexec() signature. (Note, this will dump, but the resulting file
18148 crashes; unexosx is used instead; keeping around for reference and
18149 possible aid in getting dump working under GNUstep.)
18150 * w32gui.h (button_type, widget_value): Remove definitions (now in
18151 keyboard.h).
18152 * window.c: Include nsterm.h when compiling under NS.
18153 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18154 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18155 other GUI windowing systems.
18156 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18157 GTK.
18158 (x_consider_frame_title): Under NS, set icon type and frame
18159 modified-state indicator; use ns_set_name_as_filename() when using
18160 formatted title.
18161 (update_window_cursor): Make public when compiling under NS.
18162 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18163 (hourglass_atimer, Vhourglass_delay
18164 * xfaces.c (header section, init_frame_faces, clear_font_table)
18165 (defined_color, unload_color, x_face_list_fonts)
18166 (prepare_face_for_display): Add NS support parallel to other GUIs.
18167 Emulate GCs like other non-X GUIs.
18168 (split_font_name): Don't lowercase font name under NS.
18169 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18170 under NS.
18171 * s/darwin.h: Add support for compilation under NS.
18172
181732008-07-15 Jason Rumney <jasonr@gnu.org>
18174
18175 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18176 (w32_show_hourglass): Rename from show_hourglass.
18177 (w32_hide_hourglass): Rename from hide_hourglass.
18178 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18179 (Vhourglass_delay): Declare extern.
18180 (hourglass_started): Remove.
18181
18182 * xdisp.c (Vhourglass_delay): Remove static.
18183 (hourglass_started, start_hourglass, cancel_hourglass):
18184 Don't include these versions on WINDOWSNT.
18185
181862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18187
18188 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18189 variables (formerly in xfns.c).
18190 (show_hourglass, hide_hourglass): New prototypes (same).
18191 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18192 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18193 in xfns.c).
18194 (syms_of_xdisp): Declare/initialize display-hourglass,
18195 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18196 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18197 formerly in xfns.c.
18198 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18199 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18200 (start_hourglass, cancel_hourglass): Remove.
18201 (show_hourglass, hide_hourglass): Remove prototypes and static
18202 modifiers.
18203 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18204 hourglass_atimer, hourglass_shown_p declaration/initialization.
18205 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18206 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18207 (start_hourglass, cancel_hourglass): Remove.
18208 (show_hourglass, hide_hourglass): Remove prototypes and static
18209 modifiers.
18210 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18211 hourglass_atimer, hourglass_shown_p declaration/initialization.
18212 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18213 (DEFAULT_HOURGLASS_DELAY): Remove.
18214 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18215 hourglass_shown_p declaration/initialization.
18216
182172008-07-14 Jason Rumney <jasonr@gnu.org>
18218
18219 * w32fns.c (w32_get_arg): Remove wrapper function.
18220 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18221 directly.
18222 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18223
182242008-07-14 Kenichi Handa <handa@m17n.org>
18225
18226 * xfont.c (xfont_open): Add workaround for X's bug.
18227
182282008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18229
18230 * fontset.c: Include <stdio.h> unconditionally.
18231
182322008-07-13 Michael Albinus <michael.albinus@gmx.de>
18233
18234 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18235 for filtering.
18236
182372008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18238
18239 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18240
18241 * m/macppc.h:
18242 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18243
c4cc8b9a 18244 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
18245 (SPECIAL_EMACS_INT):
18246 * m/ia64.h (SPECIAL_EMACS_INT):
18247 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18248 * s/gnu.h (NLIST_STRUCT):
18249 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18250 * s/gnu-linux.h (LINUX):
18251 * s/msdos.h (HAVE_FACES):
18252 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18253
18254 * systty.h:
18255 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18256 anymore.
18257
182582008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18259
18260 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18261 always defined as int.
18262
18263 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18264 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18265 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18266 * s/freebsd.h (HAVE_WAIT_HEADER):
18267 * s/bsd-common.h (HAVE_UNION_WAIT):
18268 * s/aix4-2.h (HAVE_WAIT_HEADER):
18269 * m/mips.h (HAVE_UNION_WAIT):
18270 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18271 (COFF, static): Do not define, they are undefined later in the file.
18272
18273 * process.c (update_status): Don't use a union.
18274 (status_convert):
18275 (sigchld_handler): Use int instead of WAITTYPE.
18276
182772008-07-12 Chong Yidong <cyd@stupidchicken.com>
18278
18279 * indent.c (Fvertical_motion): Restore hscroll before moving to
18280 goal column.
18281
182822008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18283
18284 * lisp.h: Remove left over code.
18285
182862008-07-11 Andreas Schwab <schwab@suse.de>
18287
18288 * lisp.h: Fix logic in last change.
18289
18290 * menu.h: New file.
18291 * menu.c: Include it.
18292 * xmenu.c: Likewise.
18293 * Makefile.in: Update dependencies.
18294
182952008-07-11 Kenichi Handa <handa@m17n.org>
18296
18297 * fontset.c (fontset_from_font): Cancel the previous change.
18298
182992008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18300
18301 * lisp.h:
18302 * w32heap.c:
18303 * emacs.c:
18304 * alloc.c: Replace all references of NO_UNION_TYPE with
18305 USE_LISP_UNION_TYPE.
18306
18307 * m/xtensa.h (NO_UNION_TYPE):
18308 * m/vax.h (NO_UNION_TYPE):
18309 * m/template.h (NO_UNION_TYPE):
18310 * m/sparc.h (NO_UNION_TYPE):
18311 * m/mips.h (NO_UNION_TYPE):
18312 * m/macppc.h (NO_UNION_TYPE):
18313 * m/m68k.h (NO_UNION_TYPE):
18314 * m/iris4d.h (NO_UNION_TYPE):
18315 * m/intel386.h (NO_UNION_TYPE):
18316 * m/ibms390x.h (NO_UNION_TYPE):
18317 * m/ibms390.h (NO_UNION_TYPE):
18318 * m/ibmrs6000.h (NO_UNION_TYPE):
18319 * m/ia64.h (NO_UNION_TYPE):
18320 * m/hp800.h (NO_UNION_TYPE):
18321 * m/arm.h (NO_UNION_TYPE):
18322 * m/amdx86-64.h (NO_UNION_TYPE):
18323 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18324 defining it the same.
18325
183262008-07-10 Chong Yidong <cyd@stupidchicken.com>
18327
18328 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18329
183302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18331
18332 * fileio.c:
50426a04 18333 * sysdep.c:
aac0c6e3
MR
18334 * systty.h:
18335 * m/ibmrs6000.h:
18336 * m/iris4d.h:
18337 * s/aix4-2.h:
18338 * s/freebsd.h:
18339 * s/gnu-linux.h:
18340 * s/hpux10-20.h:
18341 * s/hpux11.h:
18342 * s/netbsd.h:
18343 * s/sol2-3.h:
18344 * s/sol2-4.h:
18345 * s/sol2.h:
18346 * s/usg5-4.h:
18347 * s/vms.h: Remove references to unused variables.
18348
183492008-07-10 Andreas Schwab <schwab@suse.de>
18350
18351 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18352 pattern before matching the generic family.
18353
183542008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18355
18356 * unexec.c:
18357 * s/vms.h:
18358 * s/usg5-4-2.h:
18359 * s/sol2-5.h:
18360 * s/freebsd.h:
18361 * s/darwin.h: Remove dead code.
18362
18363 * m/template.h:
18364 * m/sparc.h:
18365 * m/mips.h:
18366 * m/m68k.h:
18367 * m/iris4d.h:
18368 * m/intel386.h:
18369 * m/ibms390x.h:
18370 * m/ibms390.h:
18371 * m/ia64.h:
18372 * m/hp800.h:
18373 * m/arm.h:
18374 * m/amdx86-64.h: Remove dead code and references to unused
18375 and compiler defined symbols.
18376
18377 * unexmips.c:
18378 * unexelf.c: Remove references to desupported systems.
18379
18380 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18381
18382 * m/powermac.h: Remove boilerplate comments.
18383 (NO_REMAP): Remove unused definition.
18384
18385 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18386 define them.
18387
183882008-07-10 Kenichi Handa <handa@m17n.org>
18389
18390 * xfont.c (xfont_open): Log the reason of failure.
18391
183922008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18393
18394 * fontset.c (fontset_get_font_group):
18395 * font.c (font_check_otf): Specify argument types.
18396
183972008-07-09 Kenichi Handa <handa@m17n.org>
18398
18399 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18400 non-ASCII char is found.
18401
18402 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18403 (reorder_font_vector): Change the arg preferred_family to font.
18404 Prefer the spec matching with font.
18405 (fontset_get_font_group): New function.
18406 (fontset_find_font): Change the format of an element of a realized
18407 fontset. Use fontset_get_font_group.
18408 (fontset_font): Try the current fontset, the default fontset, the
18409 fallbacks of the current fontset, and the fallbacks of the default
18410 fontset in this order.
18411 (face_for_char): Delete the shortcut to use the current font.
18412 (fontset_from_font): Don't set fonts for Latin in the fontset.
18413
18414 * font.h (font_make_object, font_match_p): Adjust prototypes.
18415
18416 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18417
18418 * font.c (font_make_object): New arg entity and pixelsize.
18419 (font_check_otf_features, font_check_otf): New functions.
18420 (font_match_p): Check :lang, :script, and :otf properties.
18421
18422 * xfont.c (xfont_open): Adjust it for the change of
18423 font_make_object.
18424 (xfont_text_extents): Fix initial setting of metrics.
18425
18426 * ftfont.c (struct ftfont_info): New member index, delete member
18427 fc_charset_idx. Make the member order compatible with struct
18428 xftfont_info.
18429 (fc_charset_table): Change charset names to registry names.
18430 (ftfont_pattern_entity): Delete the args registry and
18431 fc_charset_idx. Change the value of :font-entity property
18432 to (FONTNAME . INDEX). Always set :registry property to
18433 `iso10646-1'.
18434 (struct ftfont_cache_data): New struct.
18435 (ftfont_lookup_cache): New arg for_face.
18436 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18437 (ftfont_driver): Set the member otf_capability.
18438 (ftfont_get_charset): Adjust it for the change of
18439 fc_charset_table.
18440 (OTF_TAG_SYM): New macro.
18441 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18442 for the change of fc_charset_table.
18443 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18444 ftfont_pattern_entity. Add FC_INDEX to objset.
18445 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18446 and ftfont_pattern_entity.
18447 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18448 font_make_object, struct ftfont_info.
18449 (ftfont_has_char): Use ftfont_get_fc_charset.
18450 (ftfont_otf_features, ftfont_otf_capability): New functions.
18451 (ftfont_shape): Use ftfont_get_otf.
18452 (ftfont_text_extents): Fix initial setting of metrics.
18453
18454 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18455 member order compatible with struct ftfont_info.
bba3e508
SM
18456 (xftfont_open): Add FC_CHARSET to the pattern.
18457 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18458 properties if appropriate.
18459 (xftfont_close): Unlock the face.
18460 (xftfont_anchor_point, xftfont_shape): Deleted.
18461 (syms_of_xftfont): Don't set members anchor_point and shape of
18462 xftfont_driver.
18463
18464 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18465 font_make_object.
18466
18467 * w32font.c (w32font_open): Adjust it for the change of
18468 font_make_object.
18469 (w32font_open_internal): Don't set properties of font_object here.
18470
184712008-07-08 Chong Yidong <cyd@stupidchicken.com>
18472
18473 * macfns.c (x_create_tip_frame):
18474 * w32fns.c (x_create_tip_frame):
18475 * xfns.c (x_create_tip_frame): Pass parameter argument to
18476 face-set-after-frame-default.
18477
18478 * xfaces.c (Finternal_merge_in_global_face): Save merged
18479 attributes for the default face back into the face vector.
18480
184812008-07-08 Andreas Schwab <schwab@suse.de>
18482
18483 * fontset.h: Declare fontset_from_font. Don't declare
18484 new_fontset_from_font and fontset_from_font_name.
18485 * xterm.c: Include "fontset.h".
18486 * Makefile.in (xterm.o): Update dependencies.
18487
184882008-07-08 Glenn Morris <rgm@gnu.org>
18489
18490 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18491 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18492
184932008-07-07 Chong Yidong <cyd@stupidchicken.com>
18494
18495 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18496 (x_set_frame_parameters): Don't bind it.
18497
184982008-07-07 Juanma Barranquero <lekktu@gmail.com>
18499
18500 * w32fns.c (map_w32_filename): Declare extern.
18501
185022008-07-07 Jason Rumney <jasonr@gnu.org>
18503
18504 * w32term.c (WS_EX_LAYERED): Define if not already.
18505
185062008-07-06 Chong Yidong <cyd@stupidchicken.com>
18507
18508 * xfaces.c (set_font_frame_param): Don't try to set the font
18509 parameter if it is still unspecified in the lface.
18510
185112008-07-05 Chong Yidong <cyd@stupidchicken.com>
18512
18513 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18514 face if it didn't already exist.
18515
18516 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18517
185182008-07-05 Andreas Schwab <schwab@suse.de>
18519
18520 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18521
185222008-07-05 Chong Yidong <cyd@stupidchicken.com>
18523
18524 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18525 word-wrapping.
18526 (IT_DISPLAYING_WHITESPACE): New macro.
18527 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18528 when word-wrapping. Simplify word-wrapping logic. Use correct
18529 pixel positions when saving copies of the iterator.
18530 (display_line): Use proper wrap point if the last character on a
18531 line was preceded by whitespace.
18532
185332008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18534
18535 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18536
185372008-07-04 Kenichi Handa <handa@m17n.org>
18538
18539 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18540
18541 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18542
185432008-07-02 Jason Rumney <jasonr@gnu.org>
18544
18545 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 18546 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
18547
18548 * xdisp.c (next_element_from_display_vector): Move assignment out
18549 of if statement.
18550
185512008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18552
18553 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18554
18555 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18556 (syms_of_fileio): Initialize and export them.
18557 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18558
18559 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18560 (Fsystem_move_file_to_trash): New function.
18561 (syms_of_w32fns): Export it to lisp.
18562
185632008-07-01 Jason Rumney <jasonr@gnu.org>
18564
18565 * w32font.c (w32font_text_extents): Don't count overhang as part
18566 of width.
18567
185682008-06-30 Miles Bader <miles@gnu.org>
18569
18570 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18571 Add `avoid_cursor_p' field.
18572
18573 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18574 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18575 (append_glyph, append_composite_glyph, produce_image_glyph)
18576 (append_stretch_glyph): Initialize avoid_cursor_p.
18577 (get_it_property): Rename from `get_line_height_property'.
18578 (x_produce_glyphs): Use get_it_property.
18579 (handle_line_prefix, push_display_prop): New functions.
18580 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18581 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18582 New variables.
18583 (syms_of_xdisp): Initialize them.
18584
185852008-06-30 Kenichi Handa <handa@m17n.org>
18586
18587 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18588 XftDefaultSubstitute (they are called in XftFontMatch).
18589 (xftfont_open): Fix args to ftfont_font_format.
18590
18591 * ftfont.c (fc_charset_table): New member lang.
18592 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 18593 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
18594 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18595 (ftfont_open): Fix args to ftfont_font_format.
18596 (ftfont_font_format): New arg filename.
18597
185982008-06-30 Chong Yidong <cyd@stupidchicken.com>
18599
18600 * xfaces.c (Finternal_merge_in_global_face): If default face was
18601 modified, realize it again. Update the font face attribute.
18602
186032008-06-29 Jason Rumney <jasonr@gnu.org>
18604
18605 * w32term.c (x_set_frame_alpha): Fix logic.
18606
186072008-06-29 Kenichi Handa <handa@m17n.org>
18608
18609 * fontset.c (Finternal_char_font): Return font-object instead of
18610 font-name.
18611
18612 * composite.c (get_composition_id): Fix the width calculation for TAB.
18613
186142008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18615
18616 * indent.c (Fvertical_motion): Properly handle float column arg.
18617
186182008-06-28 Jason Rumney <jasonr@gnu.org>
18619
18620 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18621 (pfnSetLayeredWindowAttributes): New function pointer.
18622 (w32_initialize): Initialize it when supported.
18623 (x_set_frame_alpha): New function.
18624
18625 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18626 (w32_frame_parm_handlers): Set alpha handler.
18627
18628 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18629
186302008-06-27 Jason Rumney <jasonr@gnu.org>
18631
18632 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18633 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18634 (w32_to_x_charset, x_to_w32_charset)
18635 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18636 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18637 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18638 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18639 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18640 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18641 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18642 (Qw32_charset_unicode): Remove.
18643 (syms_of_w32fns): Update for above changes.
18644
18645 * w32font.c (w32_to_x_charset, x_to_w32_charset)
18646 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18647 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18648 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18649 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18650 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18651 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18652 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
18653 (syms_of_w32font): Update for above changes.
18654
186552008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
18656
18657 * s/usg5-4.h: Fix previous change: keep the correct branch of a
18658 removed #if.
18659 (USG_SHARED_LIBRARIES): Remove duplicate definition.
18660
186612008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 18662 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
18663
18664 * makefile.w32-in (LOCAL_FLAGS):
18665 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
18666
18667 * sysdep.c (_spawnlp, _getpid):
18668 Declare with explicit _cdecl instead of _CRTAPI1.
18669
18670 * editfns.c (Fget_internal_run_time):
18671 Check for WINDOWSNT with #ifdef, not #if.
18672
186732008-06-26 Jason Rumney <jasonr@gnu.org>
18674
18675 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
18676
18677 * w32term.c (x_draw_glyph_string_foreground)
18678 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
18679 Use FONT_HANDLE macro.
18680 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
18681
18682 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18683 (uniscribe_encode_char): Use FONT_HANDLE macro.
18684
18685 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
18686 (w32font_text_extents): Use precast w32_font.
18687 (w32font_close): Free cached metrics.
18688 (w32font_open_internal): Allocate space for name on stack.
18689
186902008-06-26 Chong Yidong <cyd@stupidchicken.com>
18691
18692 * xdisp.c (extend_face_to_end_of_line): Fix last change.
18693
186942008-06-26 Jason Rumney <jasonr@gnu.org>
18695
18696 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
18697 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
18698
186992008-06-26 Juanma Barranquero <lekktu@gmail.com>
18700
18701 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
18702
187032008-06-26 Jason Rumney <jasonr@gnu.org>
18704
18705 * w32bdf.c, w32bdf.h: Remove obsolete files.
18706
18707 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
18708
18709 * w32gui.h: Don't include w32bdf.h.
18710 (XCharStruct, enum w32_char_font_type, W32FontStruct):
18711 Remove obsolete font support.
18712
18713 * w32font.h (struct w32font_info): Remove compat_w32_font.
18714 Add hfont member.
18715 (FONT_COMPAT): Remove obsolete macro.
18716
18717 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
18718 (w32font_encode_char, w32font_text_extents): Use new hfont member.
18719 (w32font_open_internal): Remove compat code. Set new hfont member.
18720 (Fx_select_font): Use new hfont member.
18721
18722 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18723 (uniscribe_encode_char): Use new hfont member.
18724
18725 * w32term.c (x_draw_glyph_string_foreground)
18726 (x_draw_composite_glyph_string_foreground): Use new hfont member.
18727 (x_draw_glyph_string): Use metrics in w32font_info.
18728
187292008-06-26 Kenichi Handa <handa@m17n.org>
18730
18731 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
18732
187332008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
18734
18735 * unexnext.c:
18736 * m/ews4800.h:
18737 * m/hp9000s300.h:
18738 * m/ibm370aix.h:
18739 * m/mips-siemens.h:
18740 * m/ncr386.h:
18741 * m/next.h:
18742 * m/pmax.h:
18743 * m/powerpcle.h:
18744 * m/tandem-s2.h:
18745 * s/386bsd.h:
18746 * s/bsd386.h:
18747 * s/bsd4-1.h:
18748 * s/bsd4-2.h:
18749 * s/bsdos2-1.h:
18750 * s/bsdos2.h:
18751 * s/bsdos3.h:
18752 * s/bsdos4.h:
18753 * s/nextstep.h:
18754 * s/ultrix4-3.h:
18755 * s/usg5-0.h:
18756 * s/usg5-2-2.h:
18757 * s/usg5-2.h:
18758 * s/usg5-4-3.h:
18759 * s/ux4800.h:
18760 * s/uxpds.h:
18761 * s/uxpv.h: Remove support for obsolete systems.
18762 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 18763 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
18764 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
18765 Remove, insert contents in s/aix4-2.h.
18766 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
18767 * s/bsd4-3.h: Rename to ...
18768 * s/bsd-common.h: ... this.
18769 * data.c:
18770 * doc.c:
18771 * ecrt0.c:
18772 * emacs.c:
18773 * fileio.c:
18774 * floatfns.c:
18775 * keyboard.c:
18776 * mem-limits.h:
18777 * print.c:
18778 * process.c:
18779 * sysdep.c:
18780 * syssignal.h:
18781 * systty.h:
18782 * syswait.h:
18783 * term.c:
18784 * unexec.c:
18785 * unexelf.c:
18786 * unexhp9k800.c:
18787 * m/hp800.h:
18788 * m/ibmrs6000.h:
18789 * m/mips.h:
18790 * m/vax.h:
18791 * s/darwin.h:
18792 * s/freebsd.h:
18793 * s/gnu.h:
18794 * s/ms-w32.h:
18795 * s/msdos.h:
18796 * s/netbsd.h:
18797 * s/template.h: Remove references to obsolete variables.
18798
18799 * Makefile.in: Add dependencies for all unexec files.
18800 (admindir): Remove unused variable.
18801 (UNEXEC_SRC): Remove references.
18802
188032008-06-25 Chong Yidong <cyd@stupidchicken.com>
18804
18805 * xfns.c (x_default_font_parameter): If Xft is available, first
18806 try Monospace-12 for the default font.
18807
188082008-06-25 Jason Rumney <jasonr@gnu.org>
18809
18810 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
18811
188122008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18813
18814 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18815
18816 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18817
188182008-06-25 Juanma Barranquero <lekktu@gmail.com>
18819
18820 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18821 <scroll-conservatively>: Fix typo in docstring.
18822
18823 * xselect.c (Fx_send_client_event): Doc fix.
18824
188252008-06-25 Kenichi Handa <handa@m17n.org>
18826
18827 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18828
18829 * font.c (font_parse_fcname): Remove unused variables.
18830 (font_sort_entites): Delete the arg SPEC. Caller changed.
18831 Fix for the case of ! best_only.
18832 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18833
18834 * lisp.h (Fstring_to_unibyte): EXFUN it.
18835
18836 * character.h (str_to_unibyte): Extern it.
18837
18838 * character.c (str_to_unibyte): New function.
18839
18840 * fns.c (Fstring_to_unibyte): New function.
18841 (syms_of_fns): Defsubr it.
18842
188432008-06-24 Kenichi Handa <handa@m17n.org>
18844
18845 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18846 DPI too.
18847 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18848
188492008-06-24 Andreas Schwab <schwab@suse.de>
18850
18851 * Makefile.in (${lispsource}loaddefs.el): Rename from
18852 ../lisp/loaddefs.el.
18853 (bootstrap-clean): Do what distclean does but don't remove
18854 Makefile.
18855 (distclean): Depend on bootstrap-clean and remove Makefile.
18856
188572008-06-24 Chong Yidong <cyd@stupidchicken.com>
18858
18859 * buffer.h (struct buffer): New member word_wrap.
18860
18861 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18862 word-wrap.
18863 (init_buffer_once): Initialize them.
18864
18865 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18866 line_wrap enum possessing three possible values.
18867
18868 * termopts.h: Replace truncate_partial_width_windows with
18869 Vtruncate_partial_width_windows.
18870
18871 * dispnew.c (direct_output_for_insert): Avoid direct output when
18872 inserting a space with word wrap on.
18873
18874 * indent.c (compute_motion): Obey integer values of
18875 truncate-partial-width-windows.
18876
18877 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18878 replacing truncate_partial_width_windows.
18879 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18880 truncate only if the window width is below that integer.
18881 (start_display, resize_mini_window, produce_stretch_glyph)
18882 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
18883 (back_to_previous_visible_line_start, reseat_1):
18884 Reset string_from_display_prop_p.
aac0c6e3
MR
18885 (display_line): Extend default face to end of line when wrapping.
18886
188872008-06-24 Kim F. Storm <storm@cua.dk>
18888
18889 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18890 to wrap continued lines at word boundaries.
18891
188922008-06-24 Jason Rumney <jasonr@gnu.org>
18893
18894 * font.c (Ffont_face_attributes): Multiply pixel size before point
18895 conversion to avoid multiplying rounding error.
18896
188972008-06-23 Jason Rumney <jasonr@gnu.org>
18898
18899 * w32term.c (x_draw_glyph_string_background)
18900 (x_draw_glyph_string): Remove old bdf font code.
18901
18902 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18903
189042008-06-22 Kenichi Handa <handa@m17n.org>
18905
18906 * font.c (font_find_for_lface): Try the adstyle specified in
18907 the property of LFACE_FONT of LFACE (if any).
18908
189092008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18910 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18911
18912 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18913
189142008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18915
18916 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18917 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18918 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18919 (witness-emacs): Remove.
18920 (lisp, shortlisp): Move loaddefs.el earlier.
18921 (mostlyclean): Forget about witness-emacs.
18922
189232008-06-22 Glenn Morris <rgm@gnu.org>
18924
18925 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18926 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18927
189282008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18929
18930 * Makefile.in (PRECOMP): Remove.
18931 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18932 (witness-emacs): Run `compile-first'.
18933 (.el.elc): Use the new compile-onefile target.
18934
189352008-06-21 Kenichi Handa <handa@m17n.org>
18936
18937 * xftfont.c (xftfont_open): Handle QCembolden only when
18938 FC_EMBOLDEN is defined.
18939
189402008-06-21 Andreas Schwab <schwab@suse.de>
18941
18942 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18943 (.el.elc): Likewise.
18944
189452008-06-21 Miles Bader <miles@gnu.org>
18946
18947 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18948 build dir, not the lisp source dir.
18949
189502008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18951
18952 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18953 (bootstrapclean): Remove.
18954 (.el.elc): New rule.
18955 (PRECOMP): New var.
18956 (../lisp/subdirs.el): Remove.
18957 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18958 (witness-emacs): New target.
18959 (mostlyclean): Remove witness-emacs as well.
18960 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18961 Add witness-emacs dependency.
18962
189632008-06-20 Chong Yidong <cyd@stupidchicken.com>
18964
18965 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18966 defined by the font.
18967
189682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18969
18970 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18971 (bootstrap-clean): New target that keeps TAGS around.
18972 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18973 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18974
189752008-06-20 Jason Rumney <jasonr@gnu.org>
18976
18977 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18978 Remove obsolete font code.
18979
18980 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18981 to determine language support.
18982
189832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18984
18985 * sysdep.c (cfsetspeed): New fun extracted from the code.
18986 (cfmakeraw): Move before first use.
18987
189882008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18989
18990 * sysdep.c (cfmakeraw): Provide fallback implementation.
18991 (serial_configure): Provide fallback implementation of cfsetspeed.
18992
189932008-06-20 Kenichi Handa <handa@m17n.org>
18994
18995 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18996 the pattern.
18997
18998 * fontset.c (fontset_from_font): Copy font_spec before changing
18999 the elements.
19000
19001 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19002
190032008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19004
19005 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19006 for explicit `font' parameters.
19007
19008 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19009
190102008-06-19 Kenichi Handa <handa@m17n.org>
19011
19012 * frame.c: Include <ctype.h>.
19013 (x_set_font_backend): Allow spacing characters in the X resource
19014 for FontBackend.
19015
190162008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19017
19018 * w32fns.c, xfns.c (Qfont_param): New var.
19019 (syms_of_w32fns): Initialize it.
19020 (x_default_font_parameter): Record explicit `font' into
19021 `font-parameter'.
19022
190232008-06-18 Kenichi Handa <handa@m17n.org>
19024
19025 * font.c (font_parse_xlfd): Fix previous change.
19026 (font_parse_fcname): Don't use :fc-unknown-spec.
19027 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19028 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19029 (font_add_log): Prepend the driver name to the resulting fonts.
19030
19031 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19032 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19033 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19034
19035 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19036 (QCembolden): New variables.
19037 (syms_of_xftfont): DEFSYM them.
19038 (xftfont_open): Call XftFontMatch. Don't trust the result of
19039 XftTextExtents8 if the pixel_size is less than 5.
19040
190412008-06-18 Andreas Schwab <schwab@suse.de>
19042
19043 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19044 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19045
190462008-06-18 Jason Rumney <jasonr@gnu.org>
19047
19048 * w32font.c (w32font_list, w32font_match): Add logging.
19049
19050 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19051
190522008-06-17 Chong Yidong <cyd@stupidchicken.com>
19053
19054 * font.c (font_parse_fcname): Store divider characters for
19055 unknown-spec list. For known key symbols, intern using correct
19056 symbol name.
19057
190582008-06-17 Kenichi Handa <handa@m17n.org>
19059
19060 * xfaces.c (realize_default_face): If the frame is not on window
19061 system, set the fontset of face to nil.
19062
190632008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19064
19065 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19066
190672008-06-16 Juanma Barranquero <lekktu@gmail.com>
19068
19069 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19070 (build_font_name_from_vector): Delete externs.
19071
19072 * xfaces.c (struct font_name): Don't declare.
19073
190742008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19075
19076 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19077
190782008-06-16 Chong Yidong <cyd@stupidchicken.com>
19079
19080 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19081
190822008-06-16 Juanma Barranquero <lekktu@gmail.com>
19083
19084 * font.c (Ffont_spec): Fix usage in docstring.
19085 (Ffont_face_attributes): Doc fix.
19086
190872008-06-16 Andreas Schwab <schwab@suse.de>
19088
19089 * font.c (Ffont_face_attributes): Fix definition.
19090
190912008-06-16 Jason Rumney <jasonr@gnu.org>
19092
19093 * font.h (font_style_symbolic_from_value): Remove.
19094
19095 * font.c (font_style_symbolic_from_value): Remove.
19096 (font_style_symbolic): Revert to pre 2008-06-13 version.
19097
19098 * w32font.c (w32_to_fc_weight): New function.
19099 (w32font_full_name, logfont_to_fcname): Use it.
19100
191012008-06-16 Kenichi Handa <handa@m17n.org>
19102
19103 * font.c (font_check_object): Delete it.
19104 (font_clear_cache): Check if a font-object is alive.
19105 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19106 font-object to nil.
19107 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19108 (font_at): Don't call font_check_object.
19109 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19110
191112008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19112
19113 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19114
191152008-06-16 Chong Yidong <cyd@stupidchicken.com>
19116
19117 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19118
191192008-06-15 Chong Yidong <cyd@stupidchicken.com>
19120
19121 * font.c (font_parse_fcname): Only one decimal point.
19122 (font_unparse_fcname): Handle data in family and foundry indices
19123 as symbols, not strings.
19124 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19125
19126 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19127
19128 * font.h (font_unparse_gtkname): Add prototype.
19129
191302008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19131
19132 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19133
191342008-06-15 Andreas Schwab <schwab@suse.de>
19135
19136 * font.c (font_update_drivers): Fix crash when no drivers match.
19137
191382008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19139
19140 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19141 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19142
191432008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19144
19145 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19146
191472008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19148
19149 * process.c (Fserial_process_configure, Fprocess_send_eof):
19150 Use EQ to compare Lisp_Objects.
19151
191522008-06-13 Jason Rumney <jasonr@gnu.org>
19153
19154 * w32fns.c (Fw32_select_font): Remove old font API function.
19155
19156 * w32font.c (logfont_to_fcname): New function.
19157 (Fx_select_font): New font dialog function compatible with
19158 GTK/fontconfig version.
19159
19160 * font.c (font_style_symbolic_from_value): New function.
19161 (font_style_symbolic): Use it.
19162
19163 * font.h (font_style_symbolic_from_value): Declare new function.
19164
191652008-06-13 Juanma Barranquero <lekktu@gmail.com>
19166
19167 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19168 <font-width-table>: Fix typos in docstrings.
19169
191702008-06-13 Daniel Engeler <engeler@gmail.com>
19171
19172 These changes add serial port access.
19173 * process.c: Add HAVE_SERIAL.
19174 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19175 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19176 (list_processes_1, select_wrapper, Fstop_process)
19177 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19178 (status_notify): Modify to handle serial processes.
19179 [HAVE_SERIAL] (Fserial_process_configure)
19180 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19181 New functions.
19182 * process.h (struct Lisp_Process): Add `type'.
19183 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19184 New functions.
19185 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19186 serial ports.
b71ac3dd 19187 (serial_open, serial_configure): New functions.
aac0c6e3
MR
19188 * w32.h: Add FILE_SERIAL.
19189 (struct _child_process): Add ovl_read, ovl_write.
19190
191912008-06-13 Kenichi Handa <handa@m17n.org>
19192
19193 * dispextern.h (enum lface_attribute_index): New member
19194 LFACE_FOUNDRY_INDEX.
19195
19196 * font.c (font_score): Delete arg alternate_families. Check only
19197 weight, slant, width, and size. Ignore the difference of alias
19198 style symbols.
19199 (font_sort_entites): Adjust for the above change. Reflect the
19200 order of font-driver to scores.
19201 (font_list_entities): Don't check alternate_familes here.
19202 (font_clear_prop): Handle foundry.
19203 (font_update_lface): Don't parse "foundry-family" form here.
19204 Handle FONT_FOUNDRY_INDEX.
19205 (font_find_for_lface): Likewise. Handle alternate families here.
19206 If registry is nil, try iso8859-1 and ascii-0.
19207 (font_open_for_lface): Pay attention to size in ENTITY.
19208 (font_open_by_name): Simplify by calling font_load_for_lface.
19209 (free_font_driver_list): Delete it.
19210 (font_update_drivers): Preserve the order of backends.
19211 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19212 of font_score and font_sort_entites.
19213 (font_update_sort_order): Likewise.
19214
19215 * xfaces.c (LFACE_FOUNDRY): New macro.
19216 (check_lface_attrs): Check foundry.
19217 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19218 (merge_face_vectors): Check foundry.
19219 (merge_face_ref): Likewise.
19220 (Finternal_set_lisp_face_attribute): Likewise.
19221 (x_update_menu_appearance): Likewise.
19222 (Finternal_get_lisp_face_attribute): Likewise.
19223 (lface_hash): Likewise.
19224 (lface_same_font_attributes_p): Likewise.
19225 (x_supports_face_attributes_p): Likewise.
19226 (tty_supports_face_attributes_p): Likewise.
19227 (Finternal_set_alternative_font_family_alist): Intern strings.
19228 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19229 (realize_default_face): Set LFACE_FOUNDRY (lface).
19230
19231 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19232 font-driver at first.
19233
19234 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19235
192362008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19237
19238 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19239
192402008-06-12 Jim Meyering <meyering@redhat.com>
19241
19242 Make unexec_free handle NULL the same way free does.
19243 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19244
192452008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19246
19247 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19248 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19249 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19250 (WEAK_ALIAS): Simplify.
19251 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19252 when searching a unibyte buffer.
19253
192542008-06-12 Chong Yidong <cyd@stupidchicken.com>
19255
19256 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19257
192582008-06-12 Juanma Barranquero <lekktu@gmail.com>
19259
19260 * w32font.c: Include ctype.h.
19261
192622008-06-11 Jason Rumney <jasonr@gnu.org>
19263
19264 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19265 misreported as space.
19266 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19267 as aliases for registry iso10646-1.
19268
192692008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19270
19271 * buffer.c (clone_per_buffer_values): Skip `name'.
19272
192732008-06-11 Chong Yidong <cyd@stupidchicken.com>
19274
19275 * font.c (font_parse_fcname): Fix last change; accept decimal
19276 points in font size.
19277
192782008-06-10 Jason Rumney <jasonr@gnu.org>
19279
19280 * w32uniscribe.c (add_opentype_font_name_to_list):
19281 Skip non unicode fonts.
19282
192832008-06-10 Chong Yidong <cyd@stupidchicken.com>
19284
19285 * xfns.c (Fx_font_dialog): New function.
19286
19287 * gtkutil.c (xg_dialog_response_cb): Rename from
19288 xg_file_response_callback.
19289 (pop_down_dialog): Rename from pop_down_file_dialog.
19290 (xg_get_file_name): Callers changed.
19291 (xg_get_font_name): New function.
19292
19293 * gtkutil.h (xg_get_font_name): Insert prototype.
19294
192952008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19296
19297 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19298 x_underline_minimum_display_offset.
19299 (syms_of_xdisp): Declare it here rather than in xterm.c.
19300 * dispextern.h (underline_minimum_offset): Declare it.
19301 * w32term.c (x_draw_glyph_string): Use it.
19302 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19303 (syms_of_xterm): Don't declare it any more.
19304 (x_draw_glyph_string): Adjust to the new name.
19305
8719abec 193062008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
19307
19308 * xterm.c (x_underline_minimum_display_offset): New var.
19309 (x_draw_glyph_string): Use it.
19310 (syms_of_xterm): Declare it.
19311
193122008-06-10 Chong Yidong <cyd@stupidchicken.com>
19313
19314 * font.c (font_parse_fcname): Accept GTK-style font names too.
19315
193162008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19317
19318 * dired.c (file_name_completion): Don't return t if the match is exact
19319 but with different capitalization.
19320 * minibuf.c (Ftry_completion): Simplify.
19321
19322 * window.c (Vwindow_point_insertion_type): New var.
19323 (set_window_buffer): Use it.
19324 (syms_of_window): Init and export it to Lisp.
19325
193262008-06-10 Kenichi Handa <handa@m17n.org>
19327
19328 * font.h (font_intern_prop): Prototype adjusted.
19329
19330 * font.c (font_intern_prop): New arg force_symbol.
19331 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19332 Adjust for the change of font_intern_prop.
19333
19334 * ftfont.c (ftfont_pattern_entity):
19335 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19336 (w32_registry):
19337 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19338 the change of font_intern_prop.
19339
193402008-06-09 Juanma Barranquero <lekktu@gmail.com>
19341
19342 * w32menu.c (digest_single_submenu): Declare extern.
19343
193442008-06-09 Jason Rumney <jasonr@gnu.org>
19345
19346 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19347
19348 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19349 (parse_single_submenu): Remove.
19350 (digest_single_submenu): Remove.
19351 (syms_of_w32menu): Don't initialise variables that have moved
19352 to menu.c.
19353 (set_frame_menubar): Sync with version in xmenu.c.
19354 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19355
19356 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19357 Make static again.
19358
193592008-06-09 Jason Rumney <jasonr@gnu.org>
19360
19361 Changes to w32 files related to the move of common menu code
19362 to menu.c on 2008-06-08 by Chong Yidong.
19363
19364 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19365 defs to w32gui.h.
19366 (single_keymap_panes, push_menu_item, push_menu_pane):
19367 Make globally visible.
19368
19369 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19370 (local_free, malloc_widget_value, free_widget_value)
19371 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19372 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19373 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19374 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19375 (menu_items, menu_items_allocated, menu_items_used)
19376 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19377 (init_menu_items, finish_menu_items, discard_menu_items)
19378 (grow_menu_items, push_submenu_start, push_submenu_end)
19379 (push_left_right_boundary, push_menu_pane, push_menu_item)
19380 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19381 (free_menubar_widget_tree_value, parse_single_submenu)
19382 (update_submenu_strings): Remove functions.
19383 (xmalloc_widget_value): Remove and declare extern.
19384
19385 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19386 (OBJ1): Build it.
19387
19388 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19389 (local_heap, local_alloc, local_free, malloc_widget_value)
19390 (free_widget_value): Define here.
19391
193922008-06-09 Kenichi Handa <handa@m17n.org>
19393
19394 * font.h (Qascii_0): Extern it.
19395
19396 * font.c (Qascii_0): New variable.
19397 (syms_of_font): DEFSYM it.
19398 (font_open_by_name): If the registry "iso8859-1" fails, try also
19399 "ascii-0".
19400
19401 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19402
194032008-06-08 Kenichi Handa <handa@m17n.org>
19404
19405 * .gdbinit (xfont): New command.
19406
194072008-06-08 Andreas Schwab <schwab@suse.de>
19408
19409 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19410 * Makefile.in (menu.o): Update dependencies.
19411
19412 * Makefile.in (obj): Always add menu.o.
19413 * emacs.c (main): Always call syms_of_menu.
19414 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19415
194162008-06-08 Chong Yidong <cyd@stupidchicken.com>
19417
19418 * Makefile.in: Compile menu.c.
19419
19420 * lisp.h: Declare syms_of_menu.
19421
19422 * emacs.c (main): Call syms_of_menu.
19423
19424 * keyboard.h: Relocate platform-independent menu definitions from
19425 xmenu.c.
19426
19427 * menu.c: New file. Relocate platform-independent menu
19428 definitions from xmenu.c. Suggested by Adrian Robert.
19429
19430 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19431 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19432 (menu_items_used, menu_items_n_panes)
19433 (menu_items_submenu_depth): Move to keyboard.h.
19434 (init_menu_items, finish_menu_items, unuse_menu_items)
19435 (discard_menu_items, restore_menu_items, save_menu_items)
19436 (grow_menu_items, push_submenu_start, push_submenu_end)
19437 (push_left_right_boundary, push_menu_pane, push_menu_item)
19438 (keymap_panes, single_keymap_panes, single_menu_item)
19439 (list_of_panes, list_of_items, find_and_call_menu_selection)
19440 (xmalloc_widget_value, free_menubar_widget_value_tree)
19441 (parse_single_submenu, digest_single_submenu)
19442 (update_submenu_strings): Move to menu.c.
19443
194442008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19445
19446 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19447
194482008-06-06 Miles Bader <miles@gnu.org>
19449
19450 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19451 face, not frame default.
19452
194532008-06-05 Martin Rudalics <rudalics@gmx.at>
19454
19455 * window.c (pop_up_windows, pop_up_frames)
19456 (display_buffer_reuse_frames, Vpop_up_frame_function)
19457 (Vdisplay_buffer_function, Veven_window_heights)
19458 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19459 (Vspecial_display_function, Vsame_window_buffer_names)
19460 (Vsame_window_regexps, split_height_threshold)
19461 (Vsplit_window_preferred_function): Move those vars to window.el.
19462 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19463 (Fdisplay_buffer): Move those functions to window.el.
19464 (syms_of_window): Remove corresponding declarations.
19465 (display_buffer): New function.
19466 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19467 * dispnew.c (Flast_nonminibuf_frame): New function.
19468 * buffer.c (Fpop_to_buffer): Move to window.el.
19469
194702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19471
19472 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19473
194742008-06-05 Kenichi Handa <handa@m17n.org>
19475
19476 * coding.c (detect_coding): Fix previous change.
19477 (detect_coding_system): Likewise.
19478
194792008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19480
19481 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19482
19483 * keymap.c (Vminibuffer_local_filename_must_match_map):
19484 Rename from Vminibuffer_local_must_match_filename_map.
19485 (syms_of_keymap):
19486 * minibuf.c (Fcompleting_read): Adjust accordingly.
19487 * commands.h: Rename declaration as well.
19488
194892008-06-05 Kenichi Handa <handa@m17n.org>
19490
19491 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19492 family name.
19493 (Ffont_put): Likewise.
19494
19495 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19496 current font-spec.
19497
19498 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19499 is unspecified.
19500
19501 * xfaces.c (realize_x_face): If the font-related face attributes
19502 are the same as those of default face, realize a new fontset from
19503 default->fontset.
19504 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19505
195062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19507
19508 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19509 (move_it_in_display_line): New wrapper.
19510
19511 * window.c (window_scroll_pixel_based_preserve_x)
19512 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19513 (window_scroll_pixel_based, window_scroll_line_based):
19514 Use them to preserve column positions.
19515 (syms_of_window): Initialize them.
19516
19517 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19518 (HPOS . VPOS) pair.
19519
19520 * dispextern.h (move_it_in_display_line): Declare.
19521
195222008-06-05 Juanma Barranquero <lekktu@gmail.com>
19523
19524 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19525 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19526 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19527
195282008-06-04 Juanma Barranquero <lekktu@gmail.com>
19529
19530 * window.c (Fset_window_parameter): Doc fix.
19531 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19532
195332008-06-04 Joakim Verona <joakim@verona.se>
19534
19535 * window.h (struct window): Add new member window_parameters.
19536
19537 * window.c (Fwindow_parameters, Fwindow_parameter)
19538 (Fset_window_parameter): New defuns.
19539 (syms_of_window): Defsubr the new defuns.
19540 (make_window): Initialize window_parameters to nil.
19541
195422008-06-04 John Paul Wallington <jpw@pobox.com>
19543
19544 * eval.c (Fdefmacro): Doc fix.
19545
195462008-06-04 Kenichi Handa <handa@m17n.org>
19547
19548 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19549 Be sure to call setup_coding_system when we find a proper coding system.
19550 (detect_coding_system): Fix handling of coding->head_ascii.
19551
195522008-06-03 Andreas Schwab <schwab@suse.de>
19553
19554 * font.c (font_prop_validate_spacing): Fix last change.
19555
195562008-06-03 Kenichi Handa <handa@m17n.org>
19557
19558 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19559 (font_parse_fcname): Fix handling of unknown key.
19560
19561 * xfont.c (xfont_list): Try an alias.
19562
19563 * charset.c (char_charset): Return NULL if the arg charset_list is
19564 specified and C doesn't belong to any of them.
19565
195662008-06-02 Chip Coldwell <coldwell@redhat.com>
19567
19568 * font.c (font_pixel_size): Don't take cdr of an integer.
19569
195702008-06-02 Jim Meyering <meyering@redhat.com>
19571
19572 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19573 * alloc.c (xfree): Return right away for a NULL arg.
19574 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19575 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19576 * mac.c (create_apple_event_from_event_ref): Likewise.
19577 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19578 Likewise.
19579 * doprnt.c (doprnt1): Likewise.
19580 * frame.c (frame): Likewise.
19581 * keyboard.c (wipe_kboard): Likewise.
19582 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19583 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19584 * term.c (tty_default_color_capabilities, maybe_fatal)
19585 (delete_tty): Likewise.
19586 * w16select.c (string): Likewise.
19587 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19588 * w32bdf.c (w32_free_bdf_font): Likewise.
19589 * w32fns.c (w32_unload_font): Likewise.
19590 * w32font.c (w32font_close): Likewise.
19591 * window.c (size_window): Likewise.
19592 * xselect.c (receive_incremental_selection): Likewise.
19593 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19594 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19595 * w32.c (stat): Likewise.
19596
19597 Remove useless if-before-free tests.
19598 * editfns.c (Fset_time_zone_rule): Likewise.
19599 * lread.c (nosuffix): Likewise.
19600 * ralloc.c (get_bloc): Likewise.
19601 * regex.c (reg_free): Likewise.
19602 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19603 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19604 * xsmfns.c (smc_save_yourself_CB): Likewise.
19605
196062008-06-02 Kenichi Handa <handa@m17n.org>
19607
19608 * font.c (font_find_for_lface): Handle float font size.
19609 (font_open_for_lface): Likewise.
19610
19611 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19612 comparing the properties.
19613
196142008-06-01 Jason Rumney <jasonr@gnu.org>
19615
19616 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19617 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19618 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19619 Don't add empty script list.
19620 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19621
196222008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19623
19624 * Makefile.in (dot, dotdot): Remove, update users.
19625 ".." has been used elsewhere in the file for a long time.
19626 (LIBXT_STATIC): Remove conditional based on unused variable.
19627
196282008-06-01 Miles Bader <miles@gnu.org>
19629
19630 * xfaces.c (Vface_remapping_alist): New variable.
19631 (syms_of_xfaces): Initialize it.
19632 (enum named_merge_point_kind): New type.
19633 (struct named_merge_point): Add `named_merge_point_kind' field.
19634 (push_named_merge_point): Make cycle detection respect different
19635 named-merge-point kinds.
19636 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19637 Remove face-name alias resolution.
19638 (lface_from_face_name): New definition using
19639 `lface_from_face_name_no_resolve'.
19640 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19641 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19642 (get_lface_attributes): New definition that layers face-remapping on
19643 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
19644 (lookup_basic_face): New function.
19645 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
19646 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
19647 `get_lface_attributes'.
19648 (face_at_buffer_position): Use `lookup_basic_face' to lookup
19649 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
19650 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
19651
19652 * xdisp.c (init_iterator): Pass base_face_id through
19653 `lookup_basic_face' when we actually use it as a face-id.
19654 (handle_single_display_prop): Use `lookup_basic_face' to lookup
19655 DEFAULT_FACE_ID.
19656
19657 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
19658 lookup the initial face-id.
19659
19660 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
19661
196622008-06-01 Juanma Barranquero <lekktu@gmail.com>
19663
19664 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
19665 (Fremove_text_properties): Fix typos in docstrings.
19666
196672008-05-31 Kenichi Handa <handa@m17n.org>
19668
19669 * font.c (font_list_entities): Fix the car part of data to be
19670 stored in the cache.
19671
19672 * ftfont.c (ftfont_font_format): Don't use strcasestr.
19673
196742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19675
19676 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
19677 Add a `test' argument so another predicate than `equal' can be used.
19678 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
19679 (map_char_table): Remove unused vars `c' and `i'.
19680 * lisp.h (Foptimize_char_table): Adjust declaration.
19681 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
19682
196832008-05-30 Kenichi Handa <handa@m17n.org>
19684
19685 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
19686 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
19687 defined.
19688
196892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19692 (Fmake_variable_frame_local): Disallow mixing buffer-local and
19693 frame-local settings for the same variable.
19694
196952008-05-30 Kenichi Handa <handa@m17n.org>
19696
19697 * fontset.c (Ffont_info): Move to font.c.
19698 (syms_of_fontset): Delete defsubr of Sfont_info.
19699
19700 * font.c (font_style_to_value, font_score): Delete casting of the
19701 args to xstcasecmp.
19702 (register_font_driver): Increment num_font_drivers only when
19703 registering the driver globally.
19704 (Ffont_info): Move from fontset.c. Handle a font object too.
19705 (syms_of_font): Defsubr Sfont_info.
19706
197072008-05-29 Kenichi Handa <handa@m17n.org>
19708
19709 * coding.h (enum define_coding_utf8_arg_index): New enum.
19710 (enum coding_attr_index): Change coding_attr_utf_16_bom to
19711 coding_attr_utf_bom.
19712 (enum utf_bom_type): Rename from utf_16_bom_type.
19713 (struct utf_16_spec): Adjust for the above change.
19714 (struct coding_system): Add utf_8_bom in `spec' union.
19715
19716 * coding.c (CODING_UTF_8_BOM): New macro.
19717 (enum coding_category): Delete coding_category_utf_8, add
19718 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
19719 coding_category_utf_8_sig.
19720 (CATEGORY_MASK_UTF_8): Delete it.
19721 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
19722 (CATEGORY_MASK_UTF_8_SIG): New macros.
19723 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
19724 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
19725 CATEGORY_MASK_UTF_8_SIG.
19726 (CATEGORY_MASK_UTF_8): New macro.
19727 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
19728 (detect_coding_utf_8): Check BOM.
19729 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
19730 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
19731 (encode_coding_utf_16): Likewise.
19732 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
19733 (detect_coding, detect_coding_system): Handle utf-8-auto.
19734 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
19735 (syms_of_coding): Fix setting up of Vcoding_category_table.
19736
197372008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
19738
19739 * process.c (Faccept_process_output): If `millisec' is non-nil,
19740 `seconds' default to 0.
19741 (wait_reading_process_output): Also return non-nil if we read output
19742 from a non-running process.
19743
197442008-05-29 Jason Rumney <jasonr@gnu.org>
19745
19746 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
19747 `raster' specified.
19748 (add_font_entity_to_list): Allow non-opentype truetype fonts back
19749 in the uniscribe backend, but disallow any font that has no
19750 unicode subrange support.
19751
197522008-05-29 Juanma Barranquero <lekktu@gmail.com>
19753
19754 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
19755 Fix typos in docstrings.
19756
197572008-05-29 Kenichi Handa <handa@m17n.org>
19758
19759 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
19760 (Fx_family_fonts): Set frame correctly.
19761
197622008-05-28 Jason Rumney <jasonr@gnu.org>
19763
19764 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
19765
197662008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
19767
19768 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
19769 calling build_annotations.
19770
197712008-05-28 Juanma Barranquero <lekktu@gmail.com>
19772
19773 * coding.c (Fdecode_coding_region, Fencode_coding_region)
19774 (Fencode_coding_string):
19775 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
19776 <latin-extra-code-table>: Fix typos in docstrings.
19777 (syms_of_coding) <coding-system-alist>: Doc fix.
19778 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
19779
197802008-05-28 Kenichi Handa <handa@m17n.org>
19781
19782 * fontset.c (Ffont_info): Don't call font_close_object.
19783
19784 * font.c (font_parse_family_registry): Use Ffont_put to validate
19785 foundry and family.
19786 (font_delete_unmatched): Don't check spacing.
19787 (font_list_entities): Add spacing to the spec to list fonts.
19788
19789 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
19790 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
19791
19792 * coding.c (encode_coding_raw_text): Fix previous change.
19793 (encode_coding_object): When the dst_object is a buffer and is
19794 different from src_object, move gap to PT.
19795
197962008-05-27 Chong Yidong <cyd@stupidchicken.com>
19797
19798 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
19799
198002008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19801
19802 * coding.c (encode_coding_raw_text): Set coding->produced_char for
19803 all branches. Compute it differently.
19804
19805 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
19806
198072008-05-27 Juanma Barranquero <lekktu@gmail.com>
19808
19809 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
19810 into "else if () ... else ...".
19811
198122008-05-27 Jason Rumney <jasonr@gnu.org>
19813
19814 * w32font.c (w32font_open_internal): Determine if glyph indices
19815 are likely to work here.
19816
198172008-05-27 Chong Yidong <cyd@stupidchicken.com>
19818
19819 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19820 draw overlap glyphs with appropriate highlighting.
19821
198222008-05-27 Kenichi Handa <handa@m17n.org>
19823
19824 * xfont.c (xfont_open): Fix calculation of font->average_width.
19825
198262008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19827
19828 * casefiddle.c (casify_object): Try to guess better whether the
19829 argument is a byte or a char.
19830
198312008-05-26 Andreas Schwab <schwab@suse.de>
19832
19833 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19834 Always send multiples of format size.
19835
19836 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19837
198382008-05-26 Jason Rumney <jasonr@gnu.org>
19839
19840 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19841 (compute_metrics): Don't set failure if we just cleared the cache.
19842 (w32_weight_table): Remove unused variable.
19843 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19844 backwards compatibility.
19845
198462008-05-25 Kenichi Handa <handa@m17n.org>
19847
19848 * w32term.c (x_draw_glyph_string):
19849 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19850
19851 * xfaces.c: Delete unused function prototypes.
19852 (xstrlwr, font_frame): Delete them.
19853 (clear_face_cache): Delete unused variable.
19854
19855 * xftfont.c (xftfont_open): Delete unused variable.
19856 If underline_thickness is not 1, adjust underline_position.
19857
19858 * ftxfont.c (ftxfont_open): Delete unused variable.
19859
19860 * fontset.c (face_for_char): Optimize for the case of no charset
19861 property.
19862
19863 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19864 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19865 (otf_open, font_otf_capability, generate_otf_features)
19866 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19867 Comment out by surrounding "#if 0" and "#endif" for the moment.
19868 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19869 (syms_of_font): Codes for accessing above commented out.
19870
198712008-05-24 Eli Zaretskii <eliz@gnu.org>
19872
19873 * w32proc.c: Include dispextern.h.
19874
19875 * w32.c: Include dispextern.h.
19876
198772008-05-23 Juanma Barranquero <lekktu@gmail.com>
19878
19879 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19880 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19881 Fix typos in docstrings.
19882
198832008-05-23 Jason Rumney <jasonr@gnu.org>
19884
19885 * xsmfns.c: Remove includes that are already included by config.h.
19886
198872008-05-23 Kenichi Handa <handa@m17n.org>
19888
19889 * charset.c (Qemacs, charset_emacs): New variables.
19890 (char_charset): Fix for non-Unicode characters.
19891 (syms_of_charset): Define charset_emacs.
19892
19893 * w32term.c (x_draw_glyph_string): Be sure to update
19894 s->underline_thickness and s->underline_position. Be sure to draw
19895 underline within the current line area.
19896
19897 * xterm.c (x_draw_glyph_string): Be sure to update
19898 s->underline_thickness and s->underline_position. Be sure to draw
19899 underline within the current line area.
19900
19901 * fontset.c: Delete unused variables and add casting for char *
19902 throughout the file.
19903 (fontset_font): Try the fallback fonts of the current fontset
19904 before consulting the default fontset.
19905
19906 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19907
19908 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19909
199102008-05-22 Jason Rumney <jasonr@gnu.org>
19911
19912 * font.c: Don't include strings.h.
19913
19914 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19915
19916 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19917 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19918 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19919 to call xstrcasecmp.
19920
19921 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19922
19923 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19924
19925 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19926
19927 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19928
199292008-05-22 Kenichi Handa <handa@m17n.org>
19930
19931 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19932
19933 * font.c (font_prop_validate_style): Adjust for the format
19934 change of font_style_table.
19935
19936 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19937 two args.
19938
19939 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19940 two args.
19941
199422008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19943
19944 * minibuf.c (keys_of_minibuf): Delete.
19945 * lisp.h (keys_of_minibuf): Delete.
19946 * emacs.c (main): Don't call keys_of_minibuf.
19947
199482008-05-22 Kenichi Handa <handa@m17n.org>
19949
19950 * ftfont.c (ftfont_resolve_generic_family): Rename from
19951 ftfont_list_generic_family. Return a single family for each
19952 generic family.
19953 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19954 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19955 Call font_add_log.
19956 (ftfont_match): Call font_add_log.
19957
19958 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19959 (FONT_DEBUG): Define it.
19960 (font_add_log): Extern it.
19961 (font_assert): Rename from xassert.
19962
19963 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19964 (xfont_list_family): Call font_add_log.
19965 (xfont_match): Likewise.
19966 (memq_no_quit): Delete.
19967
19968 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19969 call of Ffont_xlfd_name.
19970
19971 * xfaces.c (struct table_entry, slant_table, weight_table)
19972 (swidth_table): Move to font.c.
19973
19974 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19975 xassert are changed to font_assert. Delete many unused variables.
19976 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19977 New variables.
19978 (struct table_entry): Move from xfaces.c and modified.
19979 (weight_table, slant_table, width_table): Move from xfaces.c and
19980 contents adjusted for the change of struct table_entry.
19981 (font_style_to_value, font_style_symbolic): Adjust for the
19982 format change of font_style_table.
19983 (font_parse_family_registry): Don't overwrite existing foundry and
19984 family of font_spec.
19985 (font_score): Fix calculation of diff for sizes.
19986 (font_sort_entites): Call font_add_log.
19987 (font_delete_unmatched): Return a newly created list.
19988 (font_list_entities): Fix previous change. Call font_add_log.
19989 (font_matching_entity, font_open_entity, font_close_entity):
19990 Call font_add_log.
19991 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19992 (Finternal_set_font_style_table): Delete.
19993 (BUILD_STYLE_TABLE): New macro.
19994 (build_style_table): New function.
19995 (Vfont_log, font_log_env_checked): New variables.
19996 (font_add_log): New function.
19997 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19998 Declare Lisp variables "font-weight-table", "font-slant-table",
19999 "font-width-table", and "font-log". Initialize font_style_table.
20000
200012008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20002
20003 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20004
200052008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20006 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20007
20008 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20009 (Vframe_alpha_lower_limit): New variable.
20010 (x_set_alpha): New function.
20011
20012 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20013
20014 * xfns.c (x-create-frame, Qalpha):
20015 Initialize the frame parameter `alpha'.
20016 * xterm.c (OPAQUE, OPACITY): New.
20017 (x_set_frame_alpha): New function.
20018 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20019
20020 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20021 * w32fns.c (w32_frame_parm_handlers): Likewise.
20022
200232008-05-20 Jason Rumney <jasonr@gnu.org>
20024
20025 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20026 truetype fonts to opentype list.
20027
200282008-05-20 Juanma Barranquero <lekktu@gmail.com>
20029
20030 * fontset.c (Ffontset_info): Doc fix.
20031 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20032 <ignore-relative-composition>: Fix typos in docstrings.
20033
20034 * font.c (syms-of-font) <font-encoding-alist>:
20035 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20036 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20037 (Ffont_otf_alternates): Doc fixes.
20038
200392008-05-20 Kenichi Handa <handa@m17n.org>
20040
20041 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20042 font.h through out the file.
20043 (FONT_DRIVERS): Rename from FONTOBJ.
20044 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20045 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20046
20047 * emacs.c (main): Call syms_of_font unconditionally.
20048
20049 * font.h (find_font_encoding): Extern it.
20050
20051 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20052 fontset.c.
194d44e7 20053 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
20054 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20055 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20056 only when HAVE_WINDOW_SYSTEM is defined.
20057 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20058 when HAVE_WINDOW_SYSTEM is defined.
20059
20060 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20061 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20062
20063 * xfaces.c: Include font.h unconditionally.
20064 (merge_face_ref, merge_face_vectors)
20065 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20066
200672008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20068
20069 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20070 indirect_variable.
20071 * eval.c (lisp_indirect_variable): New fun.
20072 (Fuser_variable_p): Use it.
20073
200742008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20075
20076 * lisp.h (indirect_variable):
20077 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20078 Use Lisp_Symbol pointers rather than Lisp_Object.
20079 Adjust callers.
20080 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20081 To this end, change calling-convention.
20082
20083 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20084 if some non-hidden buffers are selected by string&pred.
20085
200862008-05-19 Chong Yidong <cyd@stupidchicken.com>
20087
20088 * process.c (wait_reading_process_output): Always check status
20089 when in batch mode.
20090
200912008-05-19 Kenichi Handa <handa@m17n.org>
20092
20093 * font.c (font_list_entities): Fix handling of cache.
20094 (font_matching_entity): Likewise.
20095
20096 * ftfont.c (cs_iso8859_1): Delete.
20097 (ft_face_cache): New variable.
20098 (struct ftfont_info): New member fc_charset_idx.
20099 (ftfont_build_basic_charsets): Delete.
20100 (fc_charset_table): New variable.
20101 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20102 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20103 Callers changed.
20104 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20105 (ftfont_spec_pattern): New argument fc_charset_idx.
20106 Check registry more rigidly. Change callers.
20107 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20108 change of :font-entity property of the font.
20109
20110 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20111 property of the font.
20112
201132008-05-18 Juanma Barranquero <lekktu@gmail.com>
20114
20115 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20116 (Funencodable_char_position, Fcheck_coding_systems_region)
20117 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20118 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20119 (Ffind_operation_coding_system, Fset_coding_system_priority)
20120 (Fcoding_system_eol_type): Doc fixes.
20121
201222008-05-17 Glenn Morris <rgm@gnu.org>
20123
20124 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20125
201262008-05-16 Eli Zaretskii <eliz@gnu.org>
20127
20128 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20129 and st_gid.
20130
20131 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20132 HAVE_WINDOW_SYSTEM is not defined.
20133
20134 * xfaces.c (merge_face_ref, merge_face_vectors)
20135 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20136 HAVE_WINDOW_SYSTEM is defined.
20137 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20138
201392008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20140
20141 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20142
201432008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20144
20145 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20146
201472008-05-15 Kenichi Handa <handa@m17n.org>
20148
20149 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20150 preference.
20151
201522008-05-15 Glenn Morris <rgm@gnu.org>
20153
20154 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20155
201562008-05-15 Chong Yidong <cyd@stupidchicken.com>
20157
20158 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20159 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20160
20161 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20162
201632008-05-15 Kenichi Handa <handa@m17n.org>
20164
20165 * ftfont.c (ftfont_list): Downcase family name to check generic
20166 families.
20167
20168 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20169 font-spec for QCfont value.
20170
20171 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20172 buffer. Check the return value of it.
20173
201742008-05-14 Jason Rumney <jasonr@gnu.org>
20175
20176 * w32term.c (w32_get_glyph_overhangs): Remove.
20177 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20178
201792008-05-14 Kenichi Handa <handa@m17n.org>
20180
20181 * font.c (font_prop_validate): Make nil a valid value.
20182 (font_clear_cache): Check if the cached vector of entities is nil
20183 or not.
20184
201852008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20186
20187 * emacs.c (main_thread): Conditionalize on
20188 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20189 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20190
20191 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20192 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20193 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20194
201952008-05-14 Kenichi Handa <handa@m17n.org>
20196
20197 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20198 has no corresponding coding system.
20199
202002008-05-14 Jason Rumney <jasonr@gnu.org>
20201
20202 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20203
20204 * w32font.h (w32font_open_internal): Update declaration.
20205
20206 * w32font.c (w32font_open_internal): Change last argument from
20207 w32font_info struct to font object. Fill in font object from
20208 font_entity. Get Outline metrics if possible. Use them to
20209 calculate underline position and thickness. Use xlfd name as name
20210 property. Don't set codepage.
20211 (w32font_open): Pass font_object to w32font_open_internal. Don't
20212 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20213 (w32font_draw): Use s->font.
20214 (clear_cached_metrics): Don't clear non-existent blocks.
20215
20216 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20217 font was not found.
20218 (x_draw_glyph_string): Use underline position and thickness from font.
20219
20220 * w32uniscribe.c (uniscribe_open): Pass font_object to
20221 w32font_open_internal.
20222
202232008-05-14 Kenichi Handa <handa@m17n.org>
20224
20225 These changes are to delete all legacy font-handling codes, and
20226 make Emacs use only font-backends.
20227
20228 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20229 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20230
20231 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20232
20233 * charset.h (Vcharset_non_preferred_head)
20234 (Vcurrent_iso639_language): Extern them.
20235
20236 * charset.c (Vcharset_non_preferred_head): New variable.
20237 (Vcurrent_iso639_language): New variable.
20238 (syms_of_charset): Declare it as a Lisp variable.
20239 (char_charset): Don't check non preferred charsets. As a last
20240 resort, return charset_unicode.
20241 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20242
20243 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20244 conditionals. Don't check enable_font_backend. Delete all codes
20245 used only when USE_FONT_BACKEND is not defined.
20246
20247 * dispextern.h (struct glyph_string): Change type of `font' to
20248 `struct font *'.
20249 (struct glyph_string): New member underline_position and
20250 underline_thickness.
20251 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
20252 (struct face): Change type of `font' to `struct font *'.
20253 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
20254 (per_char_metric, encode_char): Delete externs.
20255 (calc_pixel_width_or_height): Adjust the prototype.
20256
20257 * emacs.c (enable_font_backend): Delete extern.
20258 (main): Don't set enable_font_backend. Don't check the command
20259 line argument "-disable-font-backend".
20260
20261 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20262 (enum font_property_index): New members FONT_DPI_INDEX,
20263 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20264 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20265 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20266 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20267 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20268 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20269 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20270 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20271 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20272 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20273 (struct font): Many members from old "struct font_info" moved to
20274 here. Members font and entity deleted.
20275 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20276 the new font-related objects.
20277 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20278 (CHECK_FONT_GET_OBJECT): Likewise.
20279 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20280 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20281 (struct font_driver): New members case_sensitive anc check.
20282 Type of the member list and open changed.
aac0c6e3
MR
20283 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20284 (font_symbolic_width, font_find_object, font_get_spec)
20285 (font_set_lface_from_name): Delete extern.
20286 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20287
20288 * font.c: Include <strings.h>.
20289 (enable_font_backend): Delete it.
20290 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20291 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20292 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20293 (null_string): Delete it.
20294 (null_vector): Make it static.
20295 (font_family_alist): Delete it.
20296 (Qnormal): Extern it.
20297 (QCextra, QClanguage): Delete it.
20298 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20299 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20300 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 20301 the string. Callers changed.
bba3e508 20302 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
20303 objects.
20304 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20305 (font_style_to_value, font_style_symbolic): New function.
20306 (build_font_family_alist): Delete it.
20307 (font_registry_charsets): Use Fassoc_string instead of
20308 assq_no_quit.
20309 (font_prop_validate_symbol): Don't return null_string.
bba3e508 20310 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
20311 style-related values in a font vector.
20312 (font_property_table): Delete entries for QClanguage and
20313 QCantialias, add entries for QCavgwidth.
20314 (get_font_prop_index): Delete the 2nd argument FROM.
20315 (font_prop_validate): Arguments changed.
bba3e508 20316 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
20317 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20318 (font_parse_fcname, font_unparse_fcname)
20319 (font_prepare_composition): Likewise.
ef1b0ba7 20320 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 20321 (otf_open): Delete the 1st arg entity.
bba3e508 20322 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
20323 (font_score): New arg alternate_families. Adjusted for the change
20324 of font-related objects.
20325 (font_sort_entites): New arg best_only.
20326 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20327 Delete them.
20328 (font_match_p): Check alternate families.
20329 (font_find_object): Delete it.
20330 (font_check_object): New function.
bba3e508 20331 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
20332 (font_delete_unmatched): New arg.
20333 (font_list_entities): Call font_driver->list with a spec that
20334 doesn't specify style-related properties.
20335 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 20336 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
20337 (font_close_object, font_has_char, font_encode_char)
20338 (font_get_name, font_get_spec): Likewise.
20339 (font_spec_from_name, font_clear_prop, font_update_lface):
20340 New functions.
20341 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20342 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 20343 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
20344 (font_range): New function.
20345 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 20346 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 20347 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 20348 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
20349 (Finternal_set_font_style_table): Arguments changed.
20350 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 20351 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
20352 change of font-related objects.
20353 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20354
20355 * fontset.h (struct font_info): Delete it. Most members go to
20356 struct font.
ef1b0ba7 20357 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
20358 (enum FONT_SPEC_INDEX): Delete it.
20359 (font_info, list_fonts_func, load_font_func, query_font_func)
20360 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
20361 (get_font_repertory_func, new_fontset_from_font_name):
20362 Delete externs.
aac0c6e3
MR
20363 (fontset_from_font_name): Extern it.
20364 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20365 (FONT_INFO_FROM_FACE): Deleted.
20366 (face_for_font): Adjust prototype.
20367
20368 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20369 conditionals. Don't check enable_font_backend. Delete all codes
20370 used only when USE_FONT_BACKEND is not defined.
20371 (get_font_info_func, list_font_func, load_font_func)
20372 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20373 (get_font_repertory_func): Delete them.
20374 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20375 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20376 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20377 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20378 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20379 (fontset_compare_rfontdef): New function.
20380 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20381 rfont-defs by qsort. Adjusted for the change of font-group vector.
20382 (load_font_get_repertory): Deleted.
20383 (fontset_find_font): Use new macros to ref/set elements of
20384 font-def and rfont-def.
20385 (fontset_font): Fix the timing of remembering that no font for C.
20386 (free_face_fontset): Do nothing if the face has no fontset.
20387 (face_suitable_for_char_p): Use new macros to ref/set elements of
20388 rfont-def.
20389 (face_for_char): Likewise. Call face_for_char with font_object.
20390 (fs_load_font): Delete. Delete #pragma surrounding it.
20391 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 20392 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
20393 font-spec.
20394 (Fset_fontset_font): Likewise. Use new macros to set elements of
20395 font-def.
20396 (Fnew_fontset): Use font_unparse_xlfd to generate
20397 FONTSET_ASCII (fontset).
20398 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20399 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20400 a fontset is already created for the font. FIx updating of
20401 Vfontset_alias_alist.
20402 (fontset_ascii_font): Deleted.
bba3e508 20403 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20404 (Finternal_char_font): Likewise.
20405 (Ffontset_info): Likewise.
20406 (syms_of_fontset): Don't check load_font_func.
20407
20408 * fns.c (internal_equal): Handle PREV_FONT.
20409
20410 * frame.h: Delete USE_FONT_BACKEND conditional.
20411
20412 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20413 conditionals. Don't check enable_font_backend. Delete all codes
20414 used only when USE_FONT_BACKEND is not defined.
20415 (x_set_font): Call x_new_font, not x_new_fontset2.
20416 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20417 already set for the frame.
20418
bba3e508
SM
20419 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20420 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20421 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20422 font property. If a font is scalable, set avgwidth property to 0.
20423 Set font-entity property by font_put_extra.
20424 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20425 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20426 (ftfont_spec_pattern): New function.
20427 (ftfont_list): Return a list, not vector.
20428 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20429 (ftfont_list_family): Don't downcase names.
20430 (ftfont_free_entity): Deleted.
20431 (ftfont_open): Return a font-object. Adjusted for the change of
20432 struct font. Get underline_thickness and underline_position from
20433 font property. Don't update dpyinfo->smallest_font_height and
20434 dpyinfo->smallest_char_width.
20435 (ftfont_close): Don't free `struct font'.
bba3e508 20436 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20437 (ftfont_encode_char, ftfont_text_extents): Likewise.
20438
20439 * ftxfont.c (ftxfont_list): Return a list, not vector.
20440 (ftxfont_open): Return a font-object. Adjusted for the change of
20441 struct font. Get underline_thickness and underline_position from
20442 font property. Don't update dpyinfo->smallest_font_height and
20443 dpyinfo->smallest_char_width.
20444 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20445 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20446
bba3e508
SM
20447 * image.c (image_ascent): Don't include "charset.h".
20448 Include "character.h" and "font.h".
aac0c6e3
MR
20449
20450 * lisp.h (enum pvec_type): New member PREV_FONT.
20451 (Fassoc_string): EXFUN it.
20452
20453 * print.c: Include font.h.
20454 (print_object): Handle font-related objects.
20455
20456 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20457 conditionals. Don't check enable_font_backend. Delete all codes
20458 used only when USE_FONT_BACKEND is not defined.
20459 (handle_auto_composed_prop): Do nothing if it->f is not on a
20460 window system. Check how many following characters can be
20461 displayed by the same font.
20462 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20463 'struct font *'.
20464 (get_char_face_and_encoding): Assign the whole encoding task to
20465 the `encode-char' method of a font driver.
bba3e508 20466 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20467 face' and `struct glyph_string'.
20468 (fill_glyph_string): Likewise.
20469 (get_per_char_metric): Arguments changed.
bba3e508 20470 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20471 and `struct glyph_string'.
20472 (produce_stretch_glyph, calc_line_height_property)
20473 (x_produce_glyphs): Likewise.
20474
20475 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20476 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20477 used only when USE_FONT_BACKEND is not defined.
20478 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20479 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20480 (Qp): Extern them.
20481 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20482 Deleted.
20483 (struct font_name): Deleted.
20484 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20485 (compare_fonts_by_sort_order): New function.
20486 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20487 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20488 Deleted.
20489 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20490 compare_fonts_by_sort_order.
20491 (Fx_font_family_list): Call Ffont_family_list.
20492 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20493 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20494 (face_symbolic_slant, face_symbolic_swidth)
20495 (split_font_name_into_vector, build_font_name_from_vector)
20496 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20497 (font_rescale_ratio, split_font_name, build_font_name)
20498 (free_font_names, sort_fonts, x_face_list_fonts)
20499 (face_font_available_p, sorted_font_list, cmp_font_names)
20500 (font_list_1, concat_font_list, font_list, remove_duplicates):
20501 Deleted.
20502 (Fx_list_fonts): Use Ffont_list.
20503 (LFACE_AVGWIDTH): Deleted.
20504 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20505 by FONTP.
20506 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20507 (set_lface_from_font_name): Delete it.
ef1b0ba7 20508 (set_lface_from_font): Rename from
aac0c6e3
MR
20509 set_lface_from_font_and_fontset. Caller changed. Don't set
20510 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20511 for face.
20512 (merge_face_vectors): Copy font-spec if necessary.
20513 Clear properties of the font-spec if necessary.
20514 (merge_face_ref): Clear properties of the font-spec if necessary.
20515 (Finternal_set_lisp_face_attribute): Likewise.
20516 (set_font_frame_param): Use font_load_for_lface to load a
20517 font-object, and call Fmodify_frame_parameters with it.
20518 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20519 font name by Ffont_xlfd_name.
20520 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20521 QCslant, and QCwidth.
20522 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20523 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20524 Compare fonts by EQ.
20525 (lookup_non_ascii_face): Deleted.
20526 (face_for_font): The 2nd argument changed.
20527 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20528 Check atomic font properties by case insensitive.
20529 (realize_non_ascii_face): Set face->overstrike correctly.
20530 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20531 (dump_realized_face): Get font name from
20532 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20533
20534 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20535 conditionals. Don't check enable_font_backend. Delete all codes
20536 used only when USE_FONT_BACKEND is not defined.
20537 (xic_create_xfontset): Original code deleted and renamed from
20538 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20539 (x_make_gc): Don't set GCFont in GCs.
20540 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20541 opened by "fixed".
20542 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20543 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20544 get_font_repertory_func.
20545
20546 * xfont.c: Include <stdlib.h> and "ccl.h".
20547 (struct xfont_info): New structure.
20548 (xfont_query_font): Deleted.
ef1b0ba7 20549 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 20550 moved from xterm.c.
bba3e508 20551 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 20552 (compare_font_names): New function.
ef1b0ba7
SM
20553 (xfont_list_pattern): Sort font names case insensitively.
20554 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
20555 (xfont_list): Return a list, not vector.
20556 (xfont_match): If the font doesn't have QCname property, generate
20557 a name from the other font properties.
20558 (xfont_open): Return a font-object. Adjusted for the change of
20559 struct font. Get underline_thickness and underline_position from
20560 font property. Don't update dpyinfo->smallest_font_height and
20561 dpyinfo->smallest_char_width.
20562 (xfont_close): Don't free struct font.
bba3e508 20563 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 20564 (xfont_done_face): Deleted.
bba3e508 20565 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
20566 (xfont_encode_char, xfont_draw): Likewise.
20567 (xfont_check): New function.
20568
bba3e508 20569 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 20570 callback function.
bba3e508
SM
20571 (xftfont_match): Adjust for the format change of font-entity.
20572 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
20573 font-object. Adjusted for the change of struct font. Return a
20574 font-object. Don't update dpyinfo->smallest_font_height and
20575 dpyinfo->smallest_char_width.
20576 (xftfont_close): Block input while calling XftFontClose.
20577 (xftfont_prepare_face): Don't block input while calling
20578 xftfont_get_colors. Adjusted for the change of struct font.
20579 (xftfont_shape): Return value of error case fixed.
20580
20581 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20582
20583 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20584 conditionals.
20585 (FONT_WIDTH): Return (f)->max_width.
20586 (struct x_display_info): Delete member `font'.
20587 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20588 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20589 (struct x_output): Change type of `font' to `struct font *'.
20590
20591 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20592 conditionals. Don't check enable_font_backend. Delete all codes
20593 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20594 (x_per_char_metric, x_encode_char): Deleted.
20595 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 20596 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
20597 `struct face'.
20598 (x_draw_glyph_string_foreground)
20599 (x_draw_composite_glyph_string_foreground): Likewise.
20600 (x_draw_glyph_string): Likewise. Use font->underline_position and
20601 font->underline_thickness.
ef1b0ba7 20602 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
20603 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20604 (x_check_font): Call `check' method of a font driver.
20605 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20606 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 20607 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 20608 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
20609 redisplay_interface'.
20610
20611 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20612 conditionals. Don't check enable_font_backend. Delete all codes
20613 used only when USE_FONT_BACKEND is not defined. Surround non-used
20614 code by "#ifdef OLD_FONT" and "endif".
20615 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20616
20617 * w32font.h (struct w32font_info): New member.
20618 (FONT_COMPAT): New macro.
20619 (w32font_open_internal): Prototype adjusted.
20620
20621 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20622 OLD_FONT" and "endif".
20623
20624 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20625 conditionals. Don't check enable_font_backend. Delete all codes
20626 used only when USE_FONT_BACKEND is not defined.
20627 (w32font_open): Return a font-object. Make a font-object by
20628 font_make_object. Adjusted for the change of struct w32font_info.
20629 (w32font_close): Don't free struct font. Adjusted for the change
20630 of struct w32font_info.
20631 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 20632 Adjust for the change of struct w32font_info.
aac0c6e3
MR
20633 (w32font_draw): Likewise.
20634 (w32font_list_internal): Return a list, not vector.
20635 (w32font_open_internal): Change the 4th arg to font-object.
20636 Adjusted for the change of struct w32font_info and font-object format.
20637 (add_font_name_to_list): Don't downcase names.
20638 (w32_enumfont_pattern_entity): Make a font-entity by
20639 font_make_entity. Adjusted for the format change of font-entity.
20640 Use FONT_SET_STYLE to set a style-related font property. If a
20641 font is scalable, set avgwidth property to 0. Set font-entity
20642 property by font_put_extra.
bba3e508 20643 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
20644 (w32_weight_table, w32_decode_weight): New variables.
20645 (w32_encode_weight): New function.
bba3e508 20646 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
20647 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
20648 weight value.
bba3e508 20649 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20650
20651 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
20652 conditionals. Don't check enable_font_backend. Surround non-used
20653 code by "#ifdef OLD_FONT" and "endif".
20654 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 20655 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
20656
20657 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
20658 conditionals. Don't check enable_font_backend. Delete all codes
20659 used only when USE_FONT_BACKEND is not defined. Surround non-used
20660 code by "#ifdef OLD_FONT" and "endif".
20661
20662 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
20663 (uniscribe_open): Return value changed to font-object.
20664 Adjusted for the format change of font-object.
bba3e508 20665 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 20666 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 20667 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
20668 font_driver.
20669
206702008-05-13 Chong Yidong <cyd@stupidchicken.com>
20671
20672 * dispnew.c (update_frame_1): Check if tty output is still valid
20673 before flushing it.
20674
206752008-05-13 Jan Djärv <jan.h.d@swipnet.se>
20676
20677 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
20678 to Gtk+ menus.
20679
206802008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
20681
20682 * dired.c (file_name_completion): Tweak the code so as to always do it
20683 in a single pass. Tighten the scope of some variables.
20684
20685 * dired.c (Qdefault_directory): New var.
20686 (file_name_completion): Use it instead of Fexpand_file_name.
20687 (syms_of_dired): Initialize it.
20688
206892008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
20690
20691 * fileio.c (double_dollars): Remove dead code.
20692
206932008-05-10 Eli Zaretskii <eliz@gnu.org>
20694
20695 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
20696 Mention w32-get-true-file-attributes in doc string.
20697
20698 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
20699
207002008-05-09 Glenn Morris <rgm@gnu.org>
20701
20702 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
20703 2008-04-23.
20704
207052008-05-09 Eli Zaretskii <eliz@gnu.org>
20706
20707 Support for reporting owner and group of each file on MS-Windows:
20708 * dired.c (stat_uname, stat_gname): New functions, with special
20709 implementation for w32.
20710 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
20711
20712 * w32.c: Rename the_passwd_* to dflt_passwd_*.
20713 (dflt_group_name): New static variable.
20714 (dflt_group): Rename from the_group.
20715 (init_user_info): Init dflt_group fields. Get user's group name
20716 from LookupAccountSid.
20717 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
20718 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
20719 New initialization states.
20720 (globals_of_w32): Initialize them to zero. Initialize the default
20721 group name to "None".
20722 (GetFileSecurity_Name): New global var, the name of the function
20723 to call for GetFileSecurity.
20724 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
20725 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
20726 (get_file_security, get_security_descriptor_owner)
20727 (get_security_descriptor_group, is_valid_sid)
20728 (get_file_security_desc, get_rid, get_name_and_id)
20729 (get_file_owner_and_group): New functions.
20730 (stat): Use get_file_security_desc and get_file_owner_and_group to
20731 report the owner and primary group of each file. Don't ignore the
20732 high 32 bits of file's size, now that st_size is 64-bit wide.
20733 Fix test when to get true file attributes.
20734 (init_user_info): Use get_rid instead of equivalent inline code.
20735 (fstat): Don't ignore the high 32 bits of file's size.
20736
207372008-05-09 Chong Yidong <cyd@stupidchicken.com>
20738
20739 * image.c (png_load): Use correct bit-depth for setting background
20740 color.
20741
207422008-05-08 Eli Zaretskii <eliz@gnu.org>
20743
20744 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
20745 epa-hook.elc.
20746
207472008-05-08 Juanma Barranquero <lekktu@gmail.com>
20748
20749 * font.c (Ffont_match_p): Don't use `iff' in docstring.
20750
207512008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
20752
20753 * macfns.c (Fx_create_frame): Make a copy of frame parameters
20754 because the original parameters are in pure storage now.
20755 (mac_window): Remove unused params. Update callers.
20756
207572008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
20758
20759 * lread.c (substitute_object_recurse): Use lower-level primitives.
20760 Don't signal errors when traversing sub-char-tables.
20761 Don't loop over all the possible characters when traversing char-tables.
20762
20763 * print.c (print_preprocess): Add sub-char-tables to the print-table,
20764 just like we do in print.c.
20765
207662008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
20767
20768 * minibuf.c (Ftry_completion): Remove code left over from when we used
20769 scmp instead of Fcompare_strings.
20770
207712008-05-04 Juanma Barranquero <lekktu@gmail.com>
20772
20773 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
20774
207752008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20776
20777 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
20778 Create bitmap context in native byte order.
20779
20780 * macterm.c (XDrawLine)
20781 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
20782 context in native byte order.
20783
207842008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20785
20786 * config.in: Regenerate.
20787
20788 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
20789 New definitions for Image I/O support.
20790 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
20791 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
20792 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20793 (mac_data_provider_release_data, image_load_image_io)
20794 [USE_MAC_IMAGE_IO]: New functions.
20795 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
20796 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
20797 (init_image_func_pointer) [MAC_OSX]: Remove function.
20798 (image_load_quartz2d) [MAC_OSX]: Check availability of
20799 CGImageCreateWithPNGDataProvider at compile time.
20800 Use lowercase `false' for boolean constant.
20801 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
20802 Use image_load_image_io.
20803 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
20804 Don't check MyCGImageCreateWithPNGDataProvider.
20805 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
20806 Don't call init_image_func_pointer.
20807
20808 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
20809
20810 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
20811 Make variable non-static.
20812 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20813 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20814
20815 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20816 (RED_FROM_ULONG): Mask off higher bits.
20817 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20818
20819 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20820 Include AvailabilityMacros.h.
20821 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20822 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20823
208242008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20825
20826 * chartab.c (Fset_char_table_range): If range is t, really set all
20827 chars to that value.
20828
208292008-05-03 Eli Zaretskii <eliz@gnu.org>
20830
20831 * dired.c (Ffile_attributes): Don't allow the device number become
20832 negative.
20833
208342008-05-02 Daiki Ueno <ueno@unixuser.org>
20835
20836 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20837
208382008-05-02 Juri Linkov <juri@jurta.org>
20839
20840 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20841 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20842 DEFAULT argument as a list of default values in docstrings.
20843
208442008-05-01 Chong Yidong <cyd@stupidchicken.com>
20845
20846 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20847
208482008-05-01 Martin Rudalics <rudalics@gmx.at>
20849
20850 * dispnew.c (change_frame_size_1): Preserve small windows when
20851 shrinking frames by calling set_window_height|width with third
20852 arg 2.
20853
20854 * window.h (struct window): Replace field too_small_ok by field
20855 resize_proportionally.
20856
20857 * window.c (make_window): Initialize resize_proportionally.
20858 (enlarge_window): Temporarily set resize_proportionally to make
20859 sure that shrink_windows does scale the window proportionally.
20860 (shrink_windows): When window has resize_proportionally set try
20861 to shrink it proportionally by stealing from other windows.
20862 (struct saved_window, Fset_window_configuration)
20863 (compare_window_configurations): Handle resize_proportionally.
20864 (WINDOW_TOTAL_SIZE): New macro.
20865 (window_min_size, shrink_windows, size_window): Use it.
20866 (check_min_window_sizes): Remove. Invalid values of
20867 window-min-height|width are handled by window_min_size_2 now.
20868 (size_window, Fsplit_window, enlarge_window)
20869 (adjust_window_trailing_edge, grow_mini_window): Don't call
20870 check_min_window_sizes.
20871 (window_min_size_2, window_min_size_1, window_min_size):
20872 New argument safe_p for retrieving "safe" minimum sizes.
20873 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20874 (adjust_window_trailing_edge, grow_mini_window):
20875 Adjust arguments of window_min_size... functions.
20876 (shrink_windows): Argument min_size removed. New argument
20877 safe_p allows shrinking windows to their safe minimum sizes.
20878 Calculate minimum size and decide whether a window shall be
20879 deleted for each window individually.
20880 (size_window): When nodelete_p equals 2, tell shrink_windows to
20881 delete windows only if their new minimum size is no more safe.
20882 (shrink_window_lowest_first): Call window_min_size_1 to make
20883 sure to preserve modeline of bottom-most window when resizing
20884 the minibuffer.
20885 (Fset_window_configuration, Fcurrent_window_configuration)
20886 (compare_window_configurations): Do not handle
20887 window-min-height|width any more.
20888 (syms_of_window): Clarify window-min-height|width doc-strings.
20889
208902008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20891
20892 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20893 some more. Copy some of the code from Ftry_completions.
20894 Remove special case code that dates back to initial revision when the
20895 slash was only added when necessary and that can't trigger nowadays.
20896
208972008-04-27 Kenichi Handa <handa@m17n.org>
20898
20899 * font.c (font_prop_validate): Signal `error' instead of `font'.
20900
209012008-04-29 Jason Rumney <jasonr@gnu.org>
20902
20903 * w32fns.c (Fw32_battery_status): New defun.
20904 (syms_of_w32fns): Defsubr it.
20905
209062008-04-28 Andreas Schwab <schwab@suse.de>
20907
20908 * dired.c (file_name_completion): Fix another mixing of encoded
20909 and decoded names.
20910
209112008-04-28 Juanma Barranquero <lekktu@gmail.com>
20912
20913 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20914
209152008-04-27 Juanma Barranquero <lekktu@gmail.com>
20916
20917 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20918
209192008-04-27 Andreas Schwab <schwab@suse.de>
20920
20921 * dired.c (file_name_completion): Fix inappropriate mixing of
20922 encoded and decoded names.
20923
20924 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20925
20926 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20927
209282008-04-26 Eli Zaretskii <eliz@gnu.org>
20929
20930 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20931 2008-03-31, it's not needed anymore with `struct stat' definition
20932 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20933 for the same reasons.
20934
209352008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20936
20937 * m/sparc.h: Additional redefinitions for GNU/Linux.
20938
209392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20940
20941 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20942 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20943 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20944 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20945 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20946 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20947 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20948 Likewise.
20949
20950 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20951 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20952 (mac_ax_number_of_characters): Add externs.
20953 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20954 [USE_MAC_TSM]: Likewise.
20955 (mac_handle_text_input_event) [MAC_OSX]:
20956 Handle kEventTextInputOffsetToPos for no active input area case.
20957 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20958 (mac_handle_document_access_event)
20959 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20960 (install_application_handler) [MAC_OSX]: Register handlers for
20961 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20962 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20963 Register mac_handle_document_access_event.
20964
20965 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20966 Make functions non-static.
20967
209682008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20969
20970 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20971 (read_file_name_completion_ignore_case, insert_default_directory)
20972 (Qdefault_directory): Move to minibuffer.el.
20973 (Fread_file_name): Call the new `read-file-name' instead.
20974
209752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20976
20977 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20978 Make function non-static.
20979 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20980 Remove function.
20981 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20982 Move to mactoolbox.c.
20983 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20984
20985 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20986 (mac_rect_make): New macro.
20987
20988 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20989 instead of float.
20990 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20991 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20992 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20993 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20994 CGRectMake.
20995 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20996 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20997 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20998 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20999 instead of WindowRef in argument type.
21000 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21001 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21002 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21003 instead of DISPLAY. All uses changed.
21004 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21005 (x_calc_absolute_position): Simplify so as not to use
21006 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21007
21008 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21009 instead of WindowRef in argument type.
21010 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21011 [TARGET_API_MAC_CARBON]: Remove externs.
21012 (create_apple_event, mac_event_parameters_to_lisp)
21013 [TARGET_API_MAC_CARBON]: Add externs.
21014
21015 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21016 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21017 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21018 is clicked.
21019 (x_activate_menubar): Remove extern for saved_menu_event_location.
21020 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21021 Move from mac.c.
21022
210232008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21024
21025 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21026 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21027
210282008-04-23 Jason Rumney <jasonr@gnu.org>
21029
21030 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21031 attributes only for local files.
21032
21033 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21034 default to Qlocal.
21035
210362008-04-22 Juri Linkov <juri@jurta.org>
21037
21038 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21039 read-buffer-to-switch instead of using the letter "B".
21040
210412008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21042
21043 * fileio.c (Qdefault_directory): New variable.
21044 (Fread_file_name): Use it to pass `dir' to the completion functions.
21045
210462008-04-20 Chong Yidong <cyd@stupidchicken.com>
21047
21048 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21049
210502008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21051
21052 * keyboard.c (Vpre_help_message): Remove.
21053 (show_help_echo): Remove default C code.
21054
21055 * dired.c (directory_files_internal, file_name_completion):
21056 Only call ENCODE_FILE if the string is indeed decoded.
21057
210582008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21059
21060 * Makefile.in (TOOLKIT_DEFINES): Remove.
21061 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21062
210632008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21064
21065 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21066 (mactoolbox.o): New target.
21067
21068 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21069 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21070
21071 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21072 Use mac_set_frame_window_background instead of XSetWindowBackground.
21073 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21074 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21075 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21076 instead of SetWindowTitleWithCFString.
21077 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21078 Move function to mactoolbox.c.
21079 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21080 Use mac_set_window_modified instead of SetWindowModified.
21081 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21082 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21083 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21084 FrontNonFloatingWindow. Use mac_activate_window instead of
21085 ActivateWindow. Use mac_active_non_floating_window instead of
21086 ActiveNonFloatingWindow.
21087 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21088 Use mac_show_hourglass and mac_hide_hourglass.
21089 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21090 instead of GetGlobalMouse.
21091 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21092 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21093 Use mac_bring_window_to_front instead of BringToFront.
21094 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21095 mactoolbox.c.
21096 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21097 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21098 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21099 mactoolbox.c.
21100
21101 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21102 (XtPointer): Move typedef from macmenu.c.
21103 (enum button_type): Move enum from macmenu.c.
21104 (widget_value): Move typedef from macmenu.c.
21105 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21106 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21107 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21108 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21109 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21110 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21111 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21112 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21113 (Selection): Move typedef from macselect.c.
21114 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21115 macterm.c.
21116 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21117 (mac_is_window_collapsed, mac_bring_window_to_front)
21118 (mac_send_window_behind, mac_hide_window, mac_show_window)
21119 (mac_collapse_window, mac_front_non_floating_window)
21120 (mac_active_non_floating_window, mac_activate_window)
21121 (mac_move_window_structure, mac_move_window, mac_size_window)
21122 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21123
21124 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21125 (enum mac_menu_kind): Move enum to mactoolbox.c.
21126 (min_menu_id): Move variable to mactoolbox.c.
21127 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21128 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21129 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21130 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21131 [TARGET_API_MAC_CARBON]: Likewise.
21132 (XtPointer): Move typedef to macgui.h.
21133 (enum button_type): Move enum to macgui.h.
21134 (widget_value): Move typedef to macgui.h.
21135 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21136 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21137 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21138 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21139 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21140 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21141 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21142 (popup_activated_flag): Make variable non-static.
21143 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21144 (add_menu_item, fill_menu, dispose_menus):
21145 Move functions to mactoolbox.c.
21146 (restore_show_help_function, menu_target_item_handler)
21147 (install_menu_target_item_handler, mac_handle_dialog_event)
21148 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21149 [TARGET_API_MAC_CARBON]: Likewise.
21150 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21151 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21152 (find_and_call_menu_selection, name_is_separator): Make function
21153 non-static.
21154 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21155 to mactoolbox.c.
21156 (set_frame_menubar): Don't call install_menu_quit_handler.
21157 (menu_item_selection): New variable.
21158 (mac_menu_show): Use create_and_show_popup_menu.
21159 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21160 selection but set variable menu_item_selection. All uses changed.
21161 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21162 Call install_menu_quit_handler. Move to mactoolbox.c.
21163
21164 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21165 (Selection): Move typedef to macgui.h.
21166 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21167 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21168 Make variables non-static.
21169 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21170 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21171 Make functions non-static.
21172 (Vmac_service_selection) [MAC_OSX]: Likewise.
21173 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21174 (mac_valid_selection_target_p, mac_clear_selection)
21175 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21176 (mac_put_selection_value, mac_selection_has_target_p)
21177 (mac_get_selection_value, mac_get_selection_target_list)
21178 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21179 Move functions to mactoolbox.c.
21180 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21181 Likewise.
21182 (copy_scrap_flavor_data, mac_handle_service_event)
21183 (install_service_handler) [MAC_OSX]: Likewise.
21184 (syms_of_macselect) <Vmac_dnd_known_types>:
21185 Use mac_dnd_default_known_types.
21186
21187 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21188 Move to mactoolbox.c.
21189 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21190 (Fx_selection_owner_p): Add EXFUN.
21191 (install_window_handler, remove_window_handler, XSetWindowBackground):
21192 Remove externs.
21193 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21194 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21195 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21196 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21197 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21198 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21199 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21200 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21201 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21202 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21203 (mac_valid_selection_target_p, mac_clear_selection)
21204 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21205 (mac_put_selection_value, mac_selection_has_target_p)
21206 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21207 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21208 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21209 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21210 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21211 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21212 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21213 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21214 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21215
21216 * mactoolbox.c: New file.
21217
212182008-04-18 Jason Rumney <jasonr@gnu.org>
21219
21220 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21221
212222008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21223
21224 * character.c (Fmultibyte_char_to_unibyte):
21225 Return latin1 chars unchanged.
21226
21227 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21228 relocated if it points to `name'.
21229
212302008-04-17 Kenichi Handa <handa@m17n.org>
21231
21232 * data.c (Faset): Allow setting a multibyte character in an
21233 ASCII-only unibyte string.
21234
21235 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21236
212372008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21238
21239 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21240 done in config.h.
21241
212422008-04-16 Juanma Barranquero <lekktu@gmail.com>
21243
21244 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21245 (Fchar_direction): Add usage in the docstring.
21246
212472008-04-15 Chong Yidong <cyd@stupidchicken.com>
21248
21249 * keyboard.c (read_key_sequence): Remove always-true checks.
21250
212512008-04-14 Jason Rumney <jasonr@gnu.org>
21252
21253 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21254 compatibility struct, for better underline positioning.
21255
212562008-04-13 David Hansen <david.hansen@gmx.net>
21257
21258 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21259 string.
21260
212612008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21262
21263 * m/hp800.h (XUINT, XSET): Remove.
21264
212652008-04-12 Juanma Barranquero <lekktu@gmail.com>
21266
21267 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21268 previous change.
21269
212702008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21271
21272 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21273 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21274
212752008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21276
21277 * keymap.h (map_keymap_canonical): Declare.
21278 * xmenu.c (single_keymap_panes): Use it.
21279
212802008-04-11 Glenn Morris <rgm@gnu.org>
21281
21282 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21283 set the target's value to that of the alias.
21284
212852008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21286
21287 * term.c (set_tty_color_mode): Left over typo.
21288
212892008-04-10 Michael Albinus <michael.albinus@gmx.de>
21290
21291 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21292 only after check for file name handler functions. Signal, when
21293 native functionality is not supported.
21294 (syms_of_fileio): Declare it unconditionally.
21295
212962008-04-10 Jason Rumney <jasonr@gnu.org>
21297
21298 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21299 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21300
21301 * w32.c (logon_network_drive): Also logon to remote drives that
21302 are mapped to drive letters.
21303
213042008-04-10 Glenn Morris <rgm@gnu.org>
21305
21306 * xdisp.c (truncate-partial-width-windows): Doc fix.
21307
213082008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21309
21310 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21311 Move functions to minibuffer.el.
21312 (syms_of_fileio): Don't declare them.
21313
213142008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21315
21316 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21317 (syms_of_minibuf): Remove its initialization.
21318
21319 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21320
213212008-04-09 Juanma Barranquero <lekktu@gmail.com>
21322
21323 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21324
213252008-04-09 Jason Rumney <jasonr@gnu.org>
21326
21327 * makefile.w32-in (distclean): Delete makefile too.
21328 (maintainer-clean): New target.
21329
21330 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21331
21332 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21333 for new font backend and composite cases.
21334
213352008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21336
21337 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21338 Most of the code moved to run_timers.
21339 (do_pending_atimers): Call run_timers.
21340 (run_timers): New function.
21341
21342 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21343 run atimers.
21344
21345 * process.c (wait_reading_process_output): The same as above.
21346
213472008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21348
21349 * minibuf.c (last_exact_completion): Remove variable.
21350 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21351 (complete_and_exit_1, complete_and_exit_2)
21352 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21353 (Fdisplay_completion_list, display_completion_list_1)
21354 (Fminibuffer_completion_help, Fself_insert_and_exit)
21355 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21356 minibuffer.el.
21357 (syms_of_minibuf): Remove corresponding initializations.
21358
21359 * keyboard.c (Qdeactivate_mark): New var.
21360 (command_loop_1): Use it to call `deactivate-mark'.
21361 (syms_of_keyboard): Initialize it.
21362
21363 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21364 to another frame.
21365 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21366 Don't call set_tty_color_mode.
21367 (store_frame_param): Reset previous_frame rather than call
21368 set_tty_color_mode.
21369 * term.c (set_tty_color_mode): Rewrite.
21370 * dispextern.h (set_tty_color_mode): New type.
21371 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21372
213732008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21374
21375 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21376 for generic chars, which do not exist any more in emacs-unicode.
21377
213782008-04-08 Michael Albinus <michael.albinus@gmx.de>
21379
21380 * coding.c (detect_coding_emacs_mule)
21381 (Ffind_operation_coding_system): Fix typo.
21382
213832008-04-08 Jason Rumney <jasonr@gnu.org>
21384
21385 * w32uniscribe.c (SNAME): Extract only symbol name.
21386
21387 * w32font.h (struct w32_metric_cache): New struct.
21388 (w32font_info): Use it.
21389 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21390 (CACHE_BLOCKSIZE): New constants.
21391
21392 * w32font.c (Qja, Qko, Qzh): New symbols.
21393 (syms_of_w32font): Initialise them.
21394 (font_matches_spec): Use them to filter by language.
21395 (recompute_cached_metrics): Remove function.
21396 (compute_metrics, clear_cached_metrics): New functions.
21397 (w32font_encode_char): Use them to manage metric cache.
21398 (w32font_text_extents): Cache metrics for all glyphs on demand.
21399 Delay converting glyph indices to WORD until needed.
21400 (w32font_open_internal): Initialize metric cache to empty.
21401 (registry_to_w32_charset): Charset should always be a symbol.
21402 (fill_in_logfont, list_all_matching_fonts): Family should
21403 always be a symbol.
21404
214052008-04-06 Jason Rumney <jasonr@gnu.org>
21406
21407 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21408 Give up if glyph indices not supported. Use uniscribe obtained
21409 ABC widths for individual metrics. Map glyph clusters back to
21410 characters using fClusterStart flag. Return number of glyphs
21411 produced, not chars processed.
21412 (uniscribe_shape): Map char at FROM to current glyph.
21413
214142008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21415
21416 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21417 Use SetMenuItemHierarchicalMenu.
21418
214192008-04-05 Jason Rumney <jasonr@gnu.org>
21420
21421 * image.c (pbm_load): Allow color values up to 65535.
21422 Throw an error if max_color_idx is outside the supported range.
21423 Report an error when image size is invalid.
21424 Read two bytes at a time when raw images have max_color_idx above 255.
21425
aac0c6e3
MR
214262008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21427
21428 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21429 append "CCL: Quitted" when the CCL program is quitted.
21430 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21431
21432 * ccl.h (struct ccl_program): New member quit_silently.
21433
214342008-04-05 Chong Yidong <cyd@stupidchicken.com>
21435
21436 * search.c (compile_pattern_1): Treat non-nil and non-string of
21437 search-spaces-regexp as nil.
21438
21439 * minibuf.c (Fassoc_string): Tweak docstring.
21440
214412008-04-05 Eli Zaretskii <eliz@gnu.org>
21442
21443 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21444 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21445 2008-03-14 to force inode be positive.
21446
21447 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21448 _S_* ones, since we now use our own sys/stat.h.
21449 (stat, fstat): Don't mangle the inode number.
21450 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21451
214522008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21453
21454 * frame.h (struct frame): Give one more bit to `visible' since we use
21455 values larger than 1 to indicate obscured frames on ttys.
21456
21457 * keymap.c (Qkeymap_canonicalize): New var.
21458 (Fmap_keymap_internal): New fun.
21459 (describe_map): Use keymap-canonicalize.
21460
21461 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21462 (Fundo_boundary): Set them.
21463 (syms_of_undo): Initialize them.
21464 (record_point): Use them instead of last_point_position*.
21465 (last_undo_buffer): Change type.
21466
214672008-04-04 Jason Rumney <jasonr@gnu.org>
21468
21469 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21470 (recompute_cached_metrics): Don't set ascent and descent per char.
21471
21472 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21473 (uniscribe_check_otf): Add GC protection before consing.
21474 Rearrange loop for counting features.
21475
214762008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21477
21478 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21479 buffer with byte-size of source buffer.
21480
214812008-04-03 Chong Yidong <cyd@stupidchicken.com>
21482
21483 * callint.c (Fcall_interactively): Handle temporary region even
21484 when shift-select-mode is off.
21485
214862008-04-03 Jason Rumney <jasonr@gnu.org>
21487
21488 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21489
214902008-04-03 Kenichi Handa <handa@m17n.org>
21491
21492 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21493 (CATEGORY_MASK_UTF_16): Likewise.
21494 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21495 binary file.
21496 (detect_coding): Add null-byte detection for a binary file.
21497 (detect_coding_system): Likewise.
21498
214992008-04-03 Jason Rumney <jasonr@gnu.org>
21500
21501 * w32uniscribe.c: New file.
21502
21503 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21504
21505 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21506
21507 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21508 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21509 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21510 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21511 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21512 (Qphonetic): New symbols.
21513 (syms_of_w32font): Initialize them.
21514 (font_supported_scripts): Use them.
21515 (w32font_list_family): List all charsets.
21516 (w32font_text_extents, recompute_cached_metrics): Fix metric
21517 calculations.
21518 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21519 Give opentype fonts their own format.
21520 (font_matches_spec): New arguments backend and logfont.
21521 Handle :otf spec for uniscribe backend.
21522 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21523 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21524
21525 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21526 font backend.
21527 (globals_of_w32fns): Initialize uniscribe font backend.
21528
21529 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21530 dependencies.
21531 (w32uniscribe.$(O)): New file to build.
21532 (FONT_OBJ): Include w32uniscribe.$(O).
21533 (LIBS): Add uniscribe libraries.
21534
21535 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21536
215372008-04-02 Chong Yidong <cyd@stupidchicken.com>
21538
21539 * callint.c (Vshift_select_mode): New var.
21540 (Finteractive): Document new ^ spec.
21541 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21542 is present.
21543
21544 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21545 (command_loop_1): Avoid running the direct display versions of
21546 forward-char and backward-char if shift-selection may occur.
21547 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21548 shift-translation takes place.
21549
21550 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21551 avoid clobbering by define-minor-mode.
21552
21553 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21554 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21555
21556 * syntax.c (Fforward_word): Add ^ interactive spec.
21557
21558 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21559 (Fscroll_right): Add ^ interactive spec.
21560
215612008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21562
21563 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21564
21565 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21566
21567 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21568
215692008-03-31 Juri Linkov <juri@jurta.org>
21570
21571 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21572
215732008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21574
21575 * gtkutil.c (xg_set_geometry): Fix indentation.
21576 (xg_resize_outer_widget): Remove.
21577 (x_wm_size_hint_off): Fix indentation.
21578 (xg_frame_set_char_size): Call flush_and_sync after
21579 gtk_window_resize.
21580 (x_wm_set_size_hint): Pass NULL as geometry window to
21581 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21582 Add menu bar and tool bar height to base height.
21583 (xg_update_frame_menubar, free_frame_menubar)
21584 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21585 (update_frame_tool_bar, free_frame_tool_bar):
21586 Change xg_resize_outer_widget to xg_frame_set_char_size.
21587
215882008-03-30 Michael Albinus <michael.albinus@gmx.de>
21589
21590 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21591 (Fdbus_call_method): New parameter TIMEOUT.
21592 (dbus-send-signal): Optimize UNGCPRO call.
21593
215942008-03-29 Juri Linkov <juri@jurta.org>
21595
21596 * window.c (Fdisplay_buffer): Move call to
21597 Vsplit_window_preferred_function out of conditions that check
21598 if window is eligible for vertical splitting.
21599 When Vsplit_window_preferred_function is non-nil, call it and use
21600 its non-nil return value as window. Otherwise, continue doing
21601 vertical splitting using Fsplit_window with arg horflag=nil.
21602 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21603 default value from `split-window' to nil.
21604
216052008-03-29 Juri Linkov <juri@jurta.org>
21606
21607 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21608 for interactive code letters 'b' and 'B'.
21609
216102008-03-29 Eli Zaretskii <eliz@gnu.org>
21611
21612 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21613 multibyte string.
21614
216152008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21616
21617 * keyboard.c (pending_funcalls): New var.
21618 (timer_check): Run it.
21619 (syms_of_keyboard): Initialize it.
21620 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21621 (Vdelete_terminal_functions): New vars.
21622 (syms_of_terminal): Initialize them.
21623 (Fdelete_terminal): Run delete-terminal-functions.
21624 * xdisp.c (safe_eval): Rewrite.
21625 (safe_call2): New fun.
21626 * frame.c (Qdelete_frame_functions): New var.
21627 (syms_of_frame): Initialize it.
21628 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21629 * lisp.h (safe_call2, pending_funcalls): Declare.
21630
216312008-03-28 Andreas Schwab <schwab@suse.de>
21632
21633 * indent.c (Fmove_to_column): Move declaration before statements.
21634
216352008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21636
21637 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21638 (struct frame): Use bit fields for boolean vars.
21639
21640 * process.c (server_accept_connection): Simplify naming.
21641 (emacs_get_tty_pgrp): Use SDATA.
21642
21643 * coding.c (decode_coding_object): Fix last change.
21644
216452008-03-27 Jason Rumney <jasonr@gnu.org>
21646
21647 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
21648
216492008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
21650
21651 * charset.c (Fdefine_charset_internal): Change the way of
21652 registering charsets in Vcharset_order_list.
21653 (syms_of_charset): Make the charset `eight-bit' supplementary.
21654
216552008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
21656
21657 * regex.c (EXTEND_BUFFER): Change order of pointer addition
21658 operations, to avoid having the difference between pointers
21659 overflow.
21660
216612008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
21662
21663 * indent.c (check_display_width): New fun.
21664 (scan_for_column): Use it.
21665
21666 * data.c (syms_of_data): Mark most-positive-fixnum and
21667 most-negative-fixnum as constants.
21668
21669 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
21670
21671 * indent.c (scan_for_column): Extract from current_column_1.
21672 Merge with the same code from Fmove_to_column.
21673 (current_column_1, Fmove_to_column): Use it.
21674
216752008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
21676
21677 * keymap.c (map_keymap_internal): New fun.
21678 (map_keymap): Use it.
21679 (Fmap_keymap_internal): New fun.
21680 (Fmap_keymap): Remove left-out test from before make_save_value.
21681
21682 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
21683
21684 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
21685 Use XCAR/XCDR.
21686
21687 * process.h (struct Lisp_Process): Remove filter_multibyte.
21688 * process.c (QCfilter_multibyte): Remove.
21689 (setup_process_coding_systems): Don't use filter_multibyte.
21690 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
21691 (read_process_output): Don't adjust multibyteness to filter_multibyte.
21692 (Fset_process_filter_multibyte): Change the coding-system to
21693 approximate the previous behavior.
21694 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
21695 coding-system.
21696
21697 * coding.c (decode_coding_object): When not decoding into a buffer,
21698 obey the coding system's preference of (uni|multi)byte.
21699
217002008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
21701
21702 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
21703 every char is changed and has a different byte-length.
21704 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
21705 Fix int -> EMACS_INT.
21706
217072008-03-23 David Hansen <david.hansen@gmx.net>
21708
21709 * dbusbind.c (xd_read_message): Remove extra copying of message
21710 strings. Check for NULL `interface' or `member'.
21711
217122008-03-22 Eli Zaretskii <eliz@gnu.org>
21713
21714 * w32.c (readdir): If FindFirstFile/FindNextFile return in
21715 cFileName a file name that includes `?' characters, use the 8+3
21716 alias in cAlternateFileName instead.
21717
217182008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
21719
21720 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
21721
217222008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21723
21724 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
21725 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
21726 work on current_buffer only instead (that was already the case
21727 for some of the code anyway).
21728 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
21729 (temp_set_point, temp_set_point_both): Use EMACS_INT.
21730 (SET_PT, SET_PT_BOTH): Adjust.
21731 * intervals.h (set_point, temp_set_point, set_point_both)
21732 (temp_set_point_both): Remove redundant declarations.
21733
217342008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21735
21736 * fileio.c (Finsert_file_contents):
21737 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
21738 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
21739 when buffer != current_buffer anyway.
21740
217412008-03-20 Andreas Schwab <schwab@suse.de>
21742
21743 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
21744 as default.
21745
217462008-03-19 Jason Rumney <jasonr@gnu.org>
21747
21748 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
21749 (syms_of_w32fns): Initialize them.
21750 (HOURGLASS_ID): New constant.
21751 (x_window_to_frame): Don't check hourglass_window.
21752 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
21753 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
21754 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
21755 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
21756 Only change the cursor if hourglass is not active.
21757 (Fx_create_frame): Initialize frame's current_cursor.
21758 (hourglass_atimer): Remove.
21759 (hourglass_started): New function.
21760 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
21761 (show_hourglass): Adapt to w32, changing argument to frame.
21762
21763 * w32term.h (struct w32_output): Remove hourglass_window.
21764 Add current_cursor.
21765
21766 * eval.c (call_debugger, Fsignal):
21767 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
21768 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
21769 (Fexecute_extended_command, cancel_hourglass_unwind):
21770 * minibuf.c (read_minibuf):
21771 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
21772
217732008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
21774
21775 * window.c (run_funs): New fun.
21776 (run_window_configuration_change_hook): Use it to run the buffer-local
21777 and the global part of the hook.
21778
21779 * xdisp.c (format_mode_line_unwind_data): Add window argument.
21780 (unwind_format_mode_line): Restore selected window.
21781 (x_consider_frame_title, Fformat_mode_line): Set selected window.
21782
217832008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
21784
21785 * editfns.c (Fchar_equal): Check they are valid characters.
21786
21787 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
21788
217892008-03-17 Andreas Schwab <schwab@suse.de>
21790
21791 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
21792 against a charset.
21793
21794 * lisp.h (Fbuffer_list): Declare.
21795
217962008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 21797
aac0c6e3
MR
21798 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
21799 handlebox_widget is != 0.
21800
218012008-03-16 Juri Linkov <juri@jurta.org>
21802
21803 * callint.c (Fcall_interactively): For interactive code letters
21804 'b' and 'B' put the buffer list into the list of default "future"
21805 values of the minibuffer.
21806
218072008-03-16 Andreas Schwab <schwab@suse.de>
21808
21809 * keyboard.c (read_key_sequence): Fix downcasing of letters with
21810 modifiers.
21811
21812 * regex.c (re_match_2_internal): Correct matching of a charset
21813 against latin-1 characters.
21814
218152008-03-16 Kenichi Handa <handa@m17n.org>
21816
21817 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21818 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21819 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21820 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21821 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21822 CHAR_STRING_ADVANCE.
21823 (produce_chars): Fix for the case that the source and the
21824 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21825 instead of CHAR_STRING_ADVANCE.
21826 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21827 STRING_CHAR_ADVANCE.
21828
218292008-03-15 Andreas Schwab <schwab@suse.de>
21830
21831 * regex.c (re_match_2_internal): Correct matching of eight bit
21832 characters in unibyte strings.
21833
218342008-03-15 Martin Rudalics <rudalics@gmx.at>
21835
21836 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21837 at end of range when it coincides with the end of the buffer.
21838
218392008-03-14 Eli Zaretskii <eliz@gnu.org>
21840
21841 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21842
21843 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21844
218452008-03-14 Jason Rumney <jasonr@gnu.org>
21846
21847 * editfns.c (initial_tz): New variable.
21848 (syms_of_editfns): Initialize it.
21849 (Fset_time_zone_rule): Set it when first called.
21850 Use it when TZSTRING is nil.
21851
21852 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21853 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21854 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21855 (globals_of_w32fns): Initialize them.
21856 (compute_tip_xy): Use them to position tooltips.
21857
218582008-03-14 Glenn Morris <rgm@gnu.org>
21859
21860 * emacs.c (main): Revert previous change.
21861 (standard_args): Revert -internal-script back to -scriptload,
21862 and remove the long-option form.
21863
218642008-03-13 Glenn Morris <rgm@gnu.org>
21865
21866 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21867 Remove option -enable-font-backend.
21868
218692008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21870
21871 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21872
218732008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21874
21875 * xterm.c (x_connection_closed): For GTK: If this is the last
21876 terminal just exit without closing the display.
21877
218782008-03-11 Jason Rumney <jasonr@gnu.org>
21879
21880 * w32font.c (w32font_full_name): Use floor to round.
21881
f0131492 218822008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
21883
21884 * sound.c (alsa_configure): Declare vol at beginning of block.
21885
21886 * fontset.c (Ffontset_info): Remove extra semicolon.
21887
218882008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21889
21890 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21891 size of resulting string.
21892
218932008-03-10 Jason Rumney <jasonr@gnu.org>
21894
21895 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21896
218972008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21898
21899 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21900 Don't pretend as if characters with display property haven't been
21901 consumed for string-replacing-string case.
21902
219032008-03-08 Kim F. Storm <storm@cua.dk>
21904
21905 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21906 (get_next_display_element, next_element_from_string)
21907 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21908
219092008-03-08 Andreas Schwab <schwab@suse.de>
21910
21911 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21912
219132008-03-06 Jason Rumney <jasonr@gnu.org>
21914
21915 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21916 when charset not specified. Only translate ANSI to unicode when
21917 font_type is truetype.
21918 (w32font_coverage_ok): New function.
21919 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21920
219212008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21922
21923 * lread.c (Fread_char): Resolve modifiers.
21924 (Fread_char_exclusive): Likewise.
21925
21926 * character.c (char_resolve_modifier_mask): New function.
21927 (char_string): Use char_resolve_modifier_mask.
21928 (Fchar_resolve_modifiers): New function.
21929 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21930 function.
21931
219322008-03-04 Jason Rumney <jasonr@gnu.org>
21933
21934 * makefile.w32-in: Always include w32font.c in the build.
21935 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21936
219372008-03-04 Andreas Schwab <schwab@suse.de>
21938
21939 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21940 (versionclean): Likewise.
21941
219422008-03-04 Juanma Barranquero <lekktu@gmail.com>
21943
21944 * .cvsignore: Add oo.
21945
219462008-03-03 Andreas Schwab <schwab@suse.de>
21947
21948 * coding.c (decode_coding_object): Inhibit gap shrinking while
21949 decoding in place.
21950
219512008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21952
21953 * w32term.c: Remove unused include "gnu.h".
21954 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21955
21956 * gnu.h: Rename to ...
21957 * emacs-icon.h: ... this.
21958 * xterm.c: Use emacs-icon.h instead of gnu.h.
21959 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21960
219612008-03-03 Juanma Barranquero <lekktu@gmail.com>
21962
21963 * w32font.c: Include math.h.
21964
219652008-03-03 Jason Rumney <jasonr@gnu.org>
21966
21967 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21968 Compute options separately.
21969 (w32font_open_internal): Set glyph_idx before caching metrics.
21970
21971 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21972 Define if system headers don't.
21973 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21974 (w32font_encode_char): Don't declare here.
21975
21976 * w32font.c (Quniscribe, QCformat): New symbols.
21977 (syms_of_w32font): Define them.
21978 (w32font_has_char): Indicate uncertainty.
21979 (w32font_encode_char): Encode as glyph point. Make static.
21980 (recompute_cached_metrics): New function.
21981 (w32font_open_internal): Use it. Set font to use glyph points
21982 initially. Set format based on type of font.
21983 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21984 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21985 on it. Set format based on information available here.
21986 (add_font_entity_to_list): Identify backend based on opentype_only.
21987
219882008-03-02 Andreas Schwab <schwab@suse.de>
21989
21990 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21991
21992 * coding.c (decode_coding_big5, produce_chars):
21993 Fix typos in last change.
21994
219952008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21996
21997 * gnu.h: New icon.
21998
219992008-03-02 Kenichi Handa <handa@m17n.org>
22000
22001 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22002 `dos', don't decode '\r' if that is the last in the source.
22003 (decode_coding_utf_16, decode_coding_emacs_mule)
22004 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22005 (decode_coding_raw_text, decode_coding_charset): Likewise.
22006 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22007
220082008-03-01 Jason Rumney <jasonr@gnu.org>
22009
22010 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22011
220122008-03-01 Kim F. Storm <storm@cua.dk>
22013
22014 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22015
220162008-03-01 Jason Rumney <jasonr@gnu.org>
22017
22018 * w32font.c (w32font_full_name): New function.
22019 (w32font_open_internal): Use it.
22020
220212008-03-01 Kim F. Storm <storm@cua.dk>
22022
22023 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22024
220252008-03-01 Jason Rumney <jasonr@gnu.org>
22026
22027 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22028
220292008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22030
22031 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22032 xg_frame_resized when the event is for the edit widget.
22033
ef1b0ba7 22034 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
22035
22036 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22037 set_char_size.
ef1b0ba7 22038 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
22039 operations on widgets here. Just set frame size if needed.
22040 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22041 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22042 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22043 the whole frame.
22044 (xg_create_tool_bar): Move attachment of the tool bar to
22045 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22046 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22047
220482008-03-01 Jason Rumney <jasonr@gnu.org>
22049
22050 * w32fns.c (w32_msg_pump): Disable debug code.
22051
220522008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22053
22054 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22055
220562008-02-29 Chong Yidong <cyd@stupidchicken.com>
22057
22058 * xdisp.c (next_overlay_string): Don't set
22059 overlay_strings_at_end_processed_p if we're currently reading from
22060 a display string.
22061
220622008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22063
22064 * xdisp.c (get_overlay_strings_1): Fix typo.
22065
220662008-02-29 Chong Yidong <cyd@stupidchicken.com>
22067
22068 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22069
220702008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22071
22072 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22073
22074 * xdisp.c (display_mode_element): Cancel the previous change.
22075 (decode_mode_spec): Likewise.
22076 (handle_auto_composed_prop): Don't make composition if it->string
22077 is a string.
22078
220792008-02-27 Kim F. Storm <storm@cua.dk>
22080
22081 * lisp.h (GLYPH): Change type from int to struct with separate char
22082 and face_id members.
22083 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22084 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22085 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22086 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22087 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22088 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22089 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22090 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22091 handle new Lisp glyph code encoding, either an integer or a cons.
22092
22093 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22094 (GLYPH_ALIAS): Delete.
22095 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22096 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22097 (GLYPH_FROM_CHAR): Replace macro by ...
22098 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22099
22100 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22101 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22102 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22103 (GLYPH_INVALID_P): New macro.
22104 (spec_glyph_lookup_face): Update prototype.
22105
22106 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22107 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22108 new glyph code encoding.
22109 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22110 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22111
22112 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22113 Adapt to new glyph type and new glyph code encoding.
22114
22115 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22116
22117 * indent.c (current_column, current_column_1, Fmove_to_column)
22118 (compute_motion): Adapt to new glyph code encoding.
22119
22120 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22121
221222008-02-27 Chong Yidong <cyd@stupidchicken.com>
22123
22124 * process.c (wait_reading_process_output): Check for window
22125 changes caused by timers.
22126 Suggested by Johan Bockgård.
22127
221282008-02-27 Glenn Morris <rgm@gnu.org>
22129
22130 * emacs.c (USAGE1): Add `--disable-font-backend'.
22131
221322008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22133
22134 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22135 is made to the buffer.
22136
221372008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22138
22139 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22140 (face_at_string_position):
22141 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22142 (face_at_string_position):
22143 * xdisp.c (display_string, next_overlay_change):
22144 * buffer.h (overlays_at):
22145 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22146 Update callers.
22147
221482008-02-26 Chong Yidong <cyd@stupidchicken.com>
22149
22150 * editfns.c (Fformat): Doc fix.
22151
221522008-02-26 Juanma Barranquero <lekktu@gmail.com>
22153
22154 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22155 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22156 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22157
221582008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22159
22160 * buffer.c (Fbuffer_swap_text): New function.
22161 (syms_of_buffer): Defsubr it.
22162
221632008-02-25 Chong Yidong <cyd@stupidchicken.com>
22164
22165 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22166
221672008-02-25 Jason Rumney <jasonr@gnu.org>
22168
22169 * w32font.c (w32font_draw): Draw one character at a time when padding.
22170
221712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22172
22173 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22174 Handle a nil arg. Use run_window_configuration_change_hook.
22175 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22176 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22177 Use run_window_configuration_change_hook.
22178
221792008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22180
22181 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22182 1-pixel width.
22183
221842008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22185
22186 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22187 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22188 if the glyph in the font is zero pixel with.
22189
22190 * dispextern.h (struct glyph_string): New member padding_p.
22191
22192 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22193
22194 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22195
22196 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22197
22198 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22199
22200 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22201
222022008-02-25 Jason Rumney <jasonr@gnu.org>
22203
22204 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22205
222062008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22207
22208 Allow fine-grained image-cache flushing.
22209 * dispextern.h (struct image): Add `dependencies' field.
22210 (clear_image_caches): Change arg to Lisp_Object.
22211 * image.c (make_image): Initialize `dependencies' field.
22212 (clear_image_cache): Change arg to allow fine-grained flushing.
22213 Perform the flush even if image-cache-eviction-delay is nil.
22214 (clear_image_caches): Change arg to Lisp_Object.
22215 (Fclear_image_cache): Expand meaning of the argument.
22216 (mark_image): Mark `dependencies' field.
22217 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22218 (lface_hash): Use XHASH rather than XFASTINT.
22219 (face_at_buffer_position): Fix int -> EMACS_INT position.
22220 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22221 (select_frame_for_redisplay): Remove code duplication.
22222 (redisplay_internal): Adapt arg to call to clear_image_caches.
22223
222242008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22225
22226 * s/vms4-0.h:
22227 * s/vms4-2.h:
22228 * s/vms4-4.h:
22229 * s/vms5-5.h: Remove, unused.
22230
22231 * s/irix5-2.h:
22232 * s/irix6-0.h:
22233 * s/riscos5.h:
22234 * s/mach-bsd4-3.h:
22235 * m/mips4.h: Remove files for obsolete systems.
22236
22237 * Makefile.in:
22238 * filelock.c:
22239 * unexmips.c:
22240 * m/hp9000s300.h:
22241 * m/iris4d.h:
22242 * s/aix3-1.h:
22243 * s/hpux.h:
22244 * s/msdos.h:
22245 * s/usg5-0.h:
22246 * s/usg5-2-2.h:
22247 * s/usg5-2.h:
22248 * s/usg5-3.h: Remove references to obsolete variables.
22249
22250 * s/irix5-0.h: Remove, move all the contents ...
22251 * s/irix6-5.h: ... here. Simplify.
22252 * config.in: Regenerate.
22253
222542008-02-24 Jason Rumney <jasonr@gnu.org>
22255
22256 * w32term.c (x_draw_glyph_string_background): Clear the background
22257 manually when cleartype is in use.
22258 (x_draw_glyph_string_foreground): Draw text transparently when
22259 cleartype is in use.
22260
22261 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22262 a font into it unless we have to.
22263
222642008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22265
22266 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22267 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22268
aac0c6e3
MR
222692008-02-18 Jason Rumney <jasonr@gnu.org>
22270
22271 * w32fns.c (Fw32_shell_execute): Encode parameters.
22272
222732008-02-09 Eli Zaretskii <eliz@gnu.org>
22274
22275 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22276
222772008-02-05 Juanma Barranquero <lekktu@gmail.com>
22278
22279 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22280
222812008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22282
22283 * xterm.c (x_set_offset): Don't change the gravity if
22284 CHANGE_GRAVITY is -1.
22285
222862008-02-23 Chong Yidong <cyd@stupidchicken.com>
22287
22288 * fileio.c (auto_save_error_occurred): New var.
22289 (auto_save_error): Set it.
22290 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22291 error occurred.
22292
222932008-02-23 Eli Zaretskii <eliz@gnu.org>
22294
22295 * w32.c (globals_of_w32): Add initializations for
22296 g_b_init_get_sid_sub_authority and
22297 g_b_init_get_sid_sub_authority_count.
22298
222992008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22300
22301 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22302 (font_parse_xlfd): Use them for sanity check.
22303 (Finternal_set_font_style_table): Make sure the table is bijective.
22304
22305 Consolidate the image_cache to the terminal struct.
22306 * termhooks.h (P_): Remove redundant def.
22307 (struct terminal): New field `image_cache'.
22308 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22309 of FRAME_X_IMAGE_CACHE.
22310 * xterm.h (struct x_display_info): Remove image_cache field.
22311 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22312 * w32term.h (struct w32_display_info): Remove image_cache field.
22313 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22314 * macterm.h (struct mac_display_info): Remove image_cache field.
22315 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22316 * xterm.c (x_term_init):
22317 * w32term.c (w32_term_init):
22318 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22319 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22320 Remove declarations.
22321 (clear_image_caches, mark_image_cache): New declarations.
22322 * xfaces.c (clear_face_cache):
22323 * xdisp.c (redisplay_internal): Use clear_image_caches.
22324 * image.c (clear_image_cache): Don't check that a frame is on
22325 a window-system before checking if it shares the same cache.
22326 (clear_image_caches): New function.
22327 (Fclear_image_cache): Use it.
22328 (mark_image): Move from allo.c.
22329 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22330 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22331 (mark_object): Don't call mark_image_cache for frames.
22332 (mark_terminals): Call mark_image_cache.
22333
22334 * lisp.h (Fdelete_terminal): Declare.
22335
22336 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22337 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22338 wrong_type_argument.
22339
223402008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22341
22342 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22343 malayalam.el, and tamil.el. Add sinhala.el.
22344
223452008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22346
22347 * xterm.c (x_connection_closed): Consolidate identical tests.
22348 (x_delete_terminal): Don't crash if called via x_connection_closed.
22349
223502008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22351
22352 * xdisp.c (decode_mode_spec): New arg string.
22353 (display_mode_element): Adjust for the above change.
22354
223552008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22356
22357 * callint.c (Fcall_interactively): Use AREF.
22358
223592008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22360
22361 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22362
223632008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22364
22365 * xfns.c (Fx_show_tip): Set string to " " if empty.
22366
223672008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22368
22369 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22370 with Qt.
22371
223722008-02-17 Kenichi Handa <handa@m17n.org>
22373
22374 * ftfont.c (ftfont_shape): Return Lispy number.
22375
22376 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22377 for GCs.
22378 (Finternal_set_font_selection_order): Call font_update_sort_order
22379 only when enable_font_backend is set.
22380 (realize_x_face): Set face->font_info to that of default face only
22381 when enable_font_backend is set.
22382
22383 * xdisp.c (handle_composition_prop): Set it->c to the fist
22384 character of the composed region.
22385 (fill_composite_glyph_string): Set base_face->font_info to
22386 s->font_info. Get a face for ascii from base_face->ascii_face.
22387 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22388 with a face already decided.
22389 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22390 non-negative.
22391 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22392 call font_prepare_composition unconditionally.
22393
22394 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22395
22396 * xterm.h (struct x_display_info): New member font.
22397
22398 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22399 (x_set_mouse_face_gc, x_new_font): Likewise.
22400 (x_term_init): Setup display_info->font.
22401 (x_delete_terminal): Free display_info->font.
22402
22403 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22404
22405 * ftxfont.c (ftxfont_default_fid): Delete it.
22406 (ftxfont_open): Set xfont->fid to 0.
22407 (ftxfont_end_for_frame): Clear data specific to the frame and the
22408 font-driver.
22409
22410 * xftfont.c (xftfont_default_fid): Delete it.
22411 (xftfont_open): Set xfont->fid to 0.
22412
22413 * fontset.c (FONTSET_OBJLIST): New macro.
22414 (fontset_find_font): Update font-object list of the fontset.
22415 (free_realized_fontset): New function.
22416 (free_face_fontset): Call free_realized_fontset.
22417 (Ffont_info): Call font_close_object only when enable_font_backend
22418 is set.
22419
22420 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22421 [HAVE_NTGUI]: Include w32term.h.
22422 [MAC_OS]: Include macterm.ch.
22423 (font_otf_ValueRecord): Use make_number.
22424 (font_finish_cache): Fix handling of reference count.
22425 (font_clear_cache): Update num_fonts.
22426 (font_open_entity): Update smallest_char_width and
22427 smallest_font_height of the frame.
22428 (font_close_object): Update num_fonts.
22429 (Fclear_font_cache): Fix finding the target cache data.
22430
224312008-02-16 Glenn Morris <rgm@gnu.org>
22432
22433 * fontset.c (Finternal_char_font): Fix compilation warning.
22434
224352008-02-16 Eli Zaretskii <eliz@gnu.org>
22436
22437 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22438 instead of char arrays. Enlarge the size of array passed to
22439 get_token_information.
22440
22441 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22442 warnings.
22443
224442008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22445
22446 * .gdbinit: Don't set `args', it breaks gdb --args.
22447
224482008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22449
22450 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22451 within a narrowed buffer.
22452
224532008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22454
22455 * coding.c (decode_coding_object, encode_coding_object):
22456 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22457
224582008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22459
22460 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22461 hardcoding 1.
22462 (detect_coding_system):
22463 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22464 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22465 * insdel.c (insert_from_gap):
22466 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22467 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22468 (string_to_multibyte):
22469 * character.c (chars_in_text, multibyte_chars_in_text):
22470 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22471
22472 * character.h (FETCH_STRING_CHAR_ADVANCE)
22473 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22474 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22475 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22476
22477 * casefiddle.c (casify_region): Only call after-change and composition
22478 functions on the part of the region that was changed.
22479
22480 * keyboard.c (read_avail_input):
22481 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22482
224832008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22484
22485 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22486 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22487
224882008-02-11 Juanma Barranquero <lekktu@gmail.com>
22489
22490 * w32menu.c (push_submenu_start, push_submenu_end)
22491 (push_left_right_boundary, push_menu_pane, push_menu_item):
22492 * keyboard.c (read_key_sequence): Don't pass args with side effects
22493 to AREF, it fails when compiling with -DENABLE_CHECKING.
22494
224952008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22496
22497 * Makefile.in (${lispsource}international/charprop.el):
22498 Delete this target.
22499
22500 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22501 emacs-unicode-2.
22502
225032008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22504
22505 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22506
225072008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22508
22509 * frame.c (Qnoelisp): New symbol.
22510 (syms_of_frame): Initialize it.
22511 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22512 harmless Elisp code, from a strong `force' from x_connection_closed.
22513 * frame.h (Qnoelisp): Declare.
22514 * xterm.c (x_connection_closed): Pass `noelisp'.
22515
22516 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22517 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22518 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22519 rather than `int' for the type of `type'.
22520
225212008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22522
22523 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22524
22525 * Makefile.in (GNUC): Remove support for gcc-1.x.
22526
225272008-02-10 Richard Stallman <rms@gnu.org>
22528
22529 * lisp.h (ASET): Use AREF, not ASLOT.
22530
225312008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22532
22533 * lisp.h (ASET): Check bounds.
22534
225352008-02-10 Glenn Morris <rgm@gnu.org>
22536
22537 * buffer.c (mode-name): Doc fix.
22538
225392008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22540
22541 * Makefile.in:
22542 * emacs.c:
22543 * gmalloc.c:
22544 * keyboard.c:
22545 * lisp.h:
22546 * m/ibm370aix.h:
22547 * process.c:
22548 * regex.c:
22549 * s/hpux.h:
22550 * sysdep.c:
22551 * sysselect.h:
22552 * systty.h:
22553 * unexec.c:
22554 * w32term.c:
22555 * xsmfns.c:
22556 * xterm.c: Remove code that deals with obsolete variables.
22557
22558 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22559
22560 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22561 nothing else needs it anymore.
22562
225632008-02-09 Eli Zaretskii <eliz@gnu.org>
22564
22565 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22566 instead of unibyte_char_to_multibyte.
22567
225682008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22569
22570 * s/gnu-linux.h: Remove commented out code.
22571
22572 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22573
22574 * Makefile.in: Update what RMS says about using autoconf.
22575 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22576 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22577 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22578 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22579
225802008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22581
22582 * keymap.c (Fkey_description): Move side effect outside of macro call.
22583
22584 * xfaces.c (Finternal_make_lisp_face):
22585 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22586
22587 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22588 (syms_of_fontset): Use ASET.
22589
22590 * fns.c (concat): Move side effect outside of macro call.
22591 (hash_clear): Use ASET.
22592
225932008-02-08 Richard Stallman <rms@gnu.org>
22594
22595 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22596 If FORCE, and frame has a surrogate minibuffer for another frame,
22597 delete the other frame first.
22598
225992008-02-07 Timo Savola <timo.savola@iki.fi>
22600
22601 * xterm.c (x_detect_focus_change): Handle embed client message.
22602 (handle_one_xevent): Ditto.
22603 (handle_one_xevent): If embedded and we get a button press/release,
22604 request focus.
22605 (xembed_set_info, xembed_send_message): New functions.
22606 (x_make_frame_visible): Call xembed_set_info if embedded.
22607 (x_make_frame_invisible): Call xembed_set_info if embedded.
22608 (x_term_init): Initialize Xatom_XEMBED.
22609 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22610 (x_iconify_frame): Ditto.
22611
22612 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22613 (enum xembed_info, enum xembed_message, enum xembed_focus)
22614 (enum xembed_modifier, enum xembed_accelerator): New.
22615 (xembed_set_info, xembed_send_message): Declare.
22616 (FRAME_X_EMBEDDED_P): New.
22617
22618 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22619 gtk_plug_new.
22620
22621 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22622 window ID of a frame.
22623 (x_window): Reparent frame if embedded.
22624 (Fx_create_frame): Don't set border width if embedded.
22625
22626 * emacs.c (USAGE3): Add --parent-id.
22627 (standard_args): Ditto.
22628
226292008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22630
22631 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22632
226332008-02-07 Jim Meyering <meyering@redhat.com>
22634
22635 Use "do...while (0)", not "if (1)...else" in macro definitions.
22636 The latter provokes a warning from gcc about the empty else, when
22637 followed by ";". Also, without that trailing semicolon, it would
22638 silently swallow up any following statement.
22639 * syntax.h (SETUP_SYNTAX_TABLE)
22640 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22641 * buffer.h (DECODE_POSITION): Likewise.
22642 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
22643 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
22644 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
22645 (FETCH_CHAR_ADVANCE): Likewise.
22646 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
22647
226482008-02-07 Jim Meyering <meyering@redhat.com>
22649
22650 * lread.c [lint]: Don't include <sys/inode.h>.
22651
226522008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
22653
22654 * xselect.c (x_handle_dnd_message):
22655 * xmenu.c (digest_single_submenu, xmenu_show):
22656 * xdisp.c (with_echo_area_buffer_unwind_data)
22657 (format_mode_line_unwind_data, unwind_format_mode_line)
22658 (display_menu_bar):
22659 * eval.c (Ffetch_bytecode):
22660 * doc.c (store_function_docstring):
22661 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
22662 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
22663 * buffer.c (add_overlay_mod_hooklist): Use ASET.
22664
226652008-02-07 Kenichi Handa <handa@m17n.org>
22666
22667 * ftxfont.c (ftxfont_open): Don't set
22668 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
22669
22670 * ftfont.c (ftfont_open): Fix previous change.
22671
226722008-02-06 Jason Rumney <jasonr@gnu.org>
22673
22674 * w32font.c (w32font_text_extents): Fill in lbearing metric.
22675 Use cached metrics for ASCII characters.
22676 (w32font_open_internal): Don't set font's owning_frame.
22677 Cache metrics for ASCII characters.
22678
22679 * w32font.h (struct w32font_info): Add ascii_metrics.
22680 Remove owning_frame.
22681
226822008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
22683
22684 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
22685 to negative value.
22686
22687 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
22688
22689 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
22690
22691 * charset.c (syms_of_charset): Set QCtest and Qeq.
22692
226932008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
22694
22695 * process.c (Fstart_process):
22696 * callproc.c (Fcall_process): Handle the case where
22697 Funhandled_file_name_directory returns nil.
22698
22699 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
22700 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
22701 * font.c (check_gstring): Use them and AREF to access the vector before
22702 we know it's really a gstring.
22703 (Ffont_shape_text): Fix typo.
46e722a9 22704 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
22705
22706 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
22707 Declare.
22708
22709 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
22710
227112008-02-05 Jason Rumney <jasonr@gnu.org>
22712
22713 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
22714 Set smallest_font_height and smallest_char_width in display info.
22715
227162008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
22717
22718 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
22719
227202008-02-05 Miles Bader <miles@gnu.org>
22721
22722 * xfaces.c (get_lface_attributes, merge_named_face)
22723 (lookup_named_face, lookup_derived_face, realize_named_face):
22724 Revert 2008-02-01 change by cyd@stupidchicken.com.
22725
227262008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
22727
22728 * fontset.c (Ffontset_info): Handle the case of inhibitting the
22729 fallback fonts.
22730 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
22731
227322008-02-04 Jason Rumney <jasonr@gnu.org>
22733
22734 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
22735 set full_name.
22736 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
22737
227382008-02-03 Jason Rumney <jasonr@gnu.org>
22739
22740 * makefile.w32-in (OBJ1): Include font.o here.
22741 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
22742
227432008-02-02 Jason Rumney <jasonr@gnu.org>
22744
22745 * makefile.w32-in (temacs): Bump EMHEAP to 21.
22746
227472008-02-01 Jason Rumney <jasonr@gnu.org>
22748
22749 * s/cygwin.h: Define VIRT_ADDR_VARIES.
22750
22751 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
22752
227532008-02-01 Andreas Schwab <schwab@suse.de>
22754
22755 * Makefile.in (shortlisp, lisp): Update for rename of
22756 ../lisp/language/myanmar.el.
22757
227582008-02-01 Chong Yidong <cyd@stupidchicken.com>
22759
22760 * xfaces.c (get_lface_attributes): Delete function.
22761 (merge_named_face, lookup_named_face, lookup_derived_face)
22762 (realize_named_face): Call lface_from_face_name directly, and use
22763 the fact that merge_face_vectors does not alter its FROM argument.
22764
227652008-02-01 Jason Rumney <jasonr@gnu.org>
22766
22767 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
22768 input in the default locale. Handle non-Unicode multibyte input.
22769
227702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22771
22772 * fontset.c (reorder_font_vector): Exclude nil elements from the
22773 font group. Don't try multiple fonts.
22774 (fontset_font): Adjust for the above change.
22775 (Finternal_char_font): Return nil if the found font doesn't
22776 contain the character ch.
22777
22778 * Makefile.in (lisp, shortlisp): Add cham.el.
22779
227802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22781
22782 * font.h (FONTP): Make it return 1 also for a font-object.
22783
22784 * .gdbinit (xfontset): New function.
22785
22786 * font.c (font_find_for_lface): Check if the character C is
22787 supported or not only for the first font.
22788
22789 * fontset.c (reorder_font_vector): Fix typo.
22790 (fontset_find_font): Don't add a font-spec specifying a script.
22791 Use 0 (not Qt) for the indication of empty font-group. Change the
22792 format of RFONT-DEF. Return Qt if no font in the font-group
22793 support the character.
22794 (fontset_font): Adjust for the above change. If no font was
22795 found the character, remember that.
22796 (face_for_char): Adjust for the change of RFONT-DEF.
22797 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
22798 no font for the target.
22799 (Finternal_char_font): Adjust for the change of RFONT-DEF.
22800
228012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22802
22803 * font.c (font_load_for_face): Handle the case that the font in
22804 face->lface is a string.
22805
228062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22807
22808 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
22809
228102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22811
22812 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22813 Fix previous change. If the frame is not on a window system,
22814 signal an error.
22815
228162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22817
bba3e508
SM
22818 * coding.c (decode_coding_object, encode_coding_object):
22819 Adjust marker positions after conversion.
aac0c6e3
MR
22820
22821 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22822
228232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22824
22825 * font.c (font_find_for_lface): Fix the handling of the return
22826 value of font_has_char.
22827 (Ffont_shape_text): Fix previous change.
22828
22829 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22830 (fontset_ref_and_range): Delete it.
22831 (fontset_find_font): Call char_table_ref_and_range instead of
22832 FONTSET_REF_AND_RANGE.
22833 (make_fontset): Don't setup font groups of Latin here.
22834 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22835 (new_fontset_from_font): Make the specified font the default for
22836 all Latin characters.
22837
228382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22839
22840 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22841 is on a window system before accessing the fontset of the frame.
22842
228432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22844
22845 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22846
22847 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22848 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22849
22850 * font.c (Ffont_shape_text): If the font driver doesn't have a
22851 shaper function, make zero-width glyphs to have at least one-pixel
22852 width. Fix setting of `to' field of glyphs.
22853
228542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22855
22856 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22857 glyphs.
22858
22859 * font.h (struct font_driver): Improve docstring of member `shape'.
22860
228612008-02-01 Kenichi Handa <handa@m17n.org>
22862
22863 * composite.c (syms_of_composite): Fix docstring of
22864 auto-composition-function.
22865
22866 * font.h (LGLYPH_SIZE): New macro.
22867
22868 * font.c (Ffont_fill_gstring): Stop filling when a character not
22869 supported by the font is found.
22870 (Ffont_shape_text): When a shape callback function returns nil,
22871 try at most two more times with larger gstring.
22872 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22873
22874 * xdisp.c (handle_auto_composed_prop): Change the argument to
22875 auto-composition-function.
22876
22877 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22878 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22879 Lispy glyph and store it in the lgstring.
22880
22881 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22882
22883 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22884
228852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22886
22887 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22888
22889 * fontset.c (Vfont_encoding_charset_alist): New variable.
22890 (syms_of_fontset): DEFVAR it.
22891 (reorder_font_vector, fontset_find_font): Optimize for the case of
22892 no need of reordering.
22893 (face_for_char): Map the charset property by
22894 Vfont_encoding_charset_alist.
22895
228962008-02-01 Jason Rumney <jasonr@gnu.org>
22897
22898 * w32font.c (logfonts_match): Don't check adstyle here.
22899 (font_matches_spec): Check here against physical font instead.
22900 (add_font_entity_to_list): Avoid some substitutions.
22901
22902 * font.c (font_parse_fcname): Default weight and slant to normal.
22903 (font_score): Prefer normal fonts if weight or slant unspecified.
22904 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22905 match freetype scores.
22906
229072008-02-01 Jason Rumney <jasonr@gnu.org>
22908
22909 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22910 font, as it may have been deleted.
22911 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22912 most common hyphenless variation.
22913 (logfonts_match): Check generic family.
22914 (font_matches_spec): Don't check generic family here.
22915 (fill_in_logfont): Set generic family based on adstyle.
22916
22917 * w32font.h (w32font_get_cache): Update declaration.
22918
229192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22920
22921 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22922
22923 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22924 If none of the new drivers are available, call font_update_drivers
22925 with the old drivers.
22926
22927 * w32font.c (w32font_get_cache): Adjust the argument type.
22928
22929 * xfont.c (xfont_get_cache): Adjust the argument type.
22930
22931 * font.h (struct font_driver): Change argument type of get_cache.
22932
22933 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22934
22935 * font.c (Ffont_get): Fix arguments to Fassoc.
22936 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22937 (font_clear_cache): New function.
22938 (font_list_entities, font_matching_entity): Use font_get_cache.
22939 (font_update_drivers): Call font_clear_cache when finishing a driver.
22940
22941 * fontset.c (fontset_find_font): Fix previous change.
22942
229432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22944
22945 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22946 dpyinfo->font_table.
22947 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22948 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22949
22950 * font.c (font_at): Handle the case that the arg C is negative.
22951 Handle the unibyte case.
22952 (Ffont_at): Call font_at with the arg C -1.
22953
22954 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22955 the position here, and call font_at with the arg C -1.
22956 Don't check the range of the existing composition at the point.
22957
229582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22959
22960 * fontset.c (fontset_add): New args charset_id and family.
22961 Change caller.
22962 (load_font_get_repertory, fontset_find_font): Assume that
22963 font_spec is always a font-spec object.
22964 (Fset_fontset_font): Always store a font-spec object in a fontset.
22965
22966 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22967 instead of get_property_and_range.
22968
229692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22970
22971 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22972 (xftfont_open): Don't keep locking face.
22973 (xftfont_close): Don't unlock face.
22974 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22975
22976 * fontset.c (fontset_find_font): Don't prefer a font of
22977 supplementary charset.
22978
229792008-02-01 Kenichi Handa <handa@m17n.org>
22980
22981 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22982 script, langsys_tag to langsys, new member script.
22983 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22984 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22985 listing to the script specified in that property. Fix arg to
22986 OTF_check_features.
22987
229882008-02-01 Jason Rumney <jasonr@gnu.org>
22989
22990 * w32font.h: New file.
22991
22992 * w32font.c: Include it.
22993 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22994 (w32font_open): Set owning_frame.
22995 (w32font_text_extents): Use owning_frame.
22996 (struct font_callback_data): Add opentype_only field.
22997 (add_font_entity_to_list): Use it to filter fonts.
22998 Don't check against full name.
22999 (w32font_list_internal): New function.
23000 (w32font_list): Use it.
23001 (w32font_match_internal): New function.
23002 (w32font_match): Use it.
23003 (w32font_open_internal): New function.
23004 (w32font_open): Use it.
23005 (w32font_get_cache, w32font_close, w32font_has_char)
23006 (w32font_encode_char, w32font_text_extents, w32font_draw):
23007 Make non-static.
23008
23009 * makefile.w32-in (w32font.o): Depend on w32font.h.
23010
230112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23012
23013 * charset.c (Fdefine_charset_internal): Record a supplementary
23014 charset at the tail of Vcharset_order_list.
23015
23016 * font.c (Ffont_shape_text): Fix the return value.
23017
23018 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23019
23020 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23021
230222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23023
23024 * ftfont.c (struct OpenTypeSpec): New struct.
23025 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23026 (ftfont_get_open_type_spec): New function.
23027 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23028
23029 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23030
230312008-02-01 Jason Rumney <jasonr@gnu.org>
23032
23033 * w32font.c (add_font_entity_to_list): Compare only the beginning
23034 of full name.
23035
230362008-02-01 Kenichi Handa <handa@m17n.org>
23037
23038 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23039 Never return HANDLED_RECOMPUTE_PROPS.
23040
230412008-02-01 Kenichi Handa <handa@m17n.org>
23042
23043 * font.c (font_gstring_produce): Delete it.
23044
23045 * composite.h (COMPOSITION_METHOD):
23046 Handle COMPOSITION_WITH_GLYPH_STRING.
23047
230482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23049
23050 * xfont.c (Qx): Delete.
23051 (syms_of_xfont): Don't initialize Qx.
23052
23053 * composite.h (enum composition_method):
23054 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23055
230562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23057
23058 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23059 (choose_face_font): Accept new form of font-spec.
23060
23061 * frame.h (font_driver_list): Declare it unconditionally.
23062 (struct frame): Define members font_driver_list and font_data_list
23063 unconditionally.
23064
23065 * fontset.c: Include "font.h" unconditionally.
23066 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23067 (Fset_fontset_font): Accept a font-spec object.
23068
23069 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23070 PIXEL_SIZE part a wild card.
23071
23072 * dispextern.h (struct glyph_string): Define members clip and
23073 num_clips unconditionally.
23074 (struct face): Define members font_info and extra unconditionally.
23075
23076 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23077 ftfont_info only when HAVE_LIBOTF is defined.
23078
230792008-02-01 Andreas Schwab <schwab@suse.de>
23080
23081 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23082 and end.
23083
230842008-02-01 Jason Rumney <jasonr@gnu.org>
23085
23086 * w32font.c (w32font_driver): Add new fields.
23087
230882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23089
23090 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23091 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23092 (LIBES): Add @M17N_FLT_CFLAGS@.
23093
23094 * composite.c (compose_text): Don't treat the new style
23095 composition specially.
23096
23097 * emacs.c (main): Call syms_of_font unconditionally.
23098
23099 * font.h (FONT_ENTITY_NOT_LOADABLE)
23100 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23101 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23102 (struct font_driver): New member shape.
23103 (font_registry_charsets): Extern it.
23104 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23105 (font_otf_capability, font_drive_otf): Delete their externs.
23106
23107 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23108 (font_charset_alist, font_registry_charsets): Move from xfont.c
23109 and rename.
23110 (font_prop_validate_otf): New function.
23111 (font_property_table): Register it for QCotf.
23112 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23113 (font_drive_otf): Delete.
23114 (font_prepare_composition): New arg F. Adjust for the change of
23115 lispy gstring.
23116 (font_find_for_lface): New arg C.
23117 (font_load_for_face): Adjust for the change of font_find_for_lface.
23118 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23119 lispy gstring.
23120 (Ffont_shape_text): New function.
23121 (Fopen_font): If the font size is not given, use 12-pixel.
23122 (Ffont_at): New arg STRING.
40b1a3a9 23123 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
23124 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23125 conditionally.
23126
23127 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23128 fonts of the same font-spec. Change the format of RFONT-DEF.
23129 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23130 Adjust for the change of RFONT-DEF.
23131 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23132
23133 * ftfont.h: New file.
23134
23135 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23136 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23137 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23138 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23139 font_otf_capability and font_drive_otf, set ftfont_shape.
23140 (ftfont_list): Adjust for the change of :otf property value.
23141 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23142 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23143 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23144 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23145 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23146 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23147
23148 * w32term.c (x_draw_composite_glyph_string_foreground):
23149 Adjust for the change of lispy gstring.
23150
23151 * xdisp.c (handle_composition_prop): Adjust for the change of
23152 lispy gstring. Call a function for auto-composition with the
23153 third arg it->window.
23154 (fill_composite_glyph_string): Adjust for the change of lispy string.
23155 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23156
23157 * xfaces.c (set_font_frame_param): Adjust for the change of
23158 font_find_for_lface.
23159
23160 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23161 (xfont_registry_charsets): Likewise. Change caller.
23162 (syms_of_xfont): Don't handle x_font_charset_alist.
23163
23164 * xftfont.c: Include "ftfont.h".
23165 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23166 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23167 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23168 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23169 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23170 Set xftfont_driver.shape to xftfont_shape.
23171
23172 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23173 the change of lispy gstring.
23174
231752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23176
23177 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23178
231792008-02-01 Jason Rumney <jasonr@gnu.org>
23180
23181 * w32font.c (w32font_draw): Fill background manually.
23182
231832008-02-01 Jason Rumney <jasonr@gnu.org>
23184
23185 * font.c (Qfontp): Remove unused symbol.
23186 (QCantialias): New symbol.
23187 (syms_of_font): Define it.
23188 (font_property_table): Set a validator for QCantialias.
23189
23190 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23191 Define if not already.
23192 (QCfamily): Share with xfaces.c.
23193 (Qstandard, Qsubpixel, Qnatural): New symbols.
23194 (syms_of_w32font): Define them. Don't define QCfamily here.
23195 (w32_antialias_type, lispy_antialias_type): New functions.
23196 (w32_enumfont_pattern_entity): New arg requested_font.
23197 Set antialias parameter if non-default was requested.
23198 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23199
232002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23201
23202 * lread.c (read1): Undo the previous change.
23203
232042008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23205
23206 * frame.c (Fdelete_frame): Call font_update_drivers only when
23207 USE_FONT_BACKEND is defined.
23208
232092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23210
23211 * font.h (struct font_bitmap): New member bits_per_pixel.
23212 (struct font_driver): New members start_for_frame and end_for_frame.
23213 (struct font_data_list): New struct.
23214 (font_put_frame_data, font_get_frame_data): Extern them.
23215
23216 * frame.h (struct frame): New member font_data_list.
23217
23218 * font.c (font_update_drivers): Call driver->start_for_frame and
23219 driver->end_for_frame at proper timings.
23220 (font_put_frame_data, font_get_frame_data): New functions.
23221 (Ffont_spec): Add usage in the docstring.
23222
23223 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23224 (Fdelete_frame): Call font_update_drivers.
23225
23226 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23227 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23228 (xftfont_get_xft_draw): New function.
23229 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23230 (xftfont_end_for_frame): New function.
23231 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23232
23233 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23234 Change argument. Cache GCs in the per-frame data.
23235 (struct ftxfont_frame_data): New struct.
23236 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23237 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23238 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23239 (ftxfont_end_for_frame): New function.
23240 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23241
23242 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23243
232442008-02-01 Kenichi Handa <handa@m17n.org>
23245
23246 * xselect.c (Vselection_coding_system)
23247 (Vnext_selection_coding_system): Delete them.
23248 (syms_of_xselect): Don't declare selection-coding-system and
23249 next-selection-coding-system. They are declared in select.el.
23250
232512008-02-01 Jason Rumney <jasonr@gnu.org>
23252
23253 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23254
23255 * w32fns.c: Include imm.h.
23256 (get_composition_string_fn, get_ime_context_fn): New optional
23257 system functions.
23258 (globals_of_w32fns): Load them from imm32.dll.
23259 (ignore_ime_char): New flag.
23260 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23261 WM_IME_ENDCOMPOSITION messages.
23262
23263 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23264 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23265
232662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23267
23268 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23269 (READCHAR_REPORT_MULTIBYTE): New macro.
23270 (readchar): New 2nd arg MULTIBYTE.
23271 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23272 Make symbol's name multibyte according to the multibyteness of the
23273 source.
23274
232752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23276
23277 * xfaces.c (face_for_overlay_string): Call lookup_face with
23278 correct arguments (fix of synching with the trunk).
23279
232802008-02-01 Kenichi Handa <handa@m17n.org>
23281
23282 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23283 (font_prop_validate_non_neg, font_prop_validate_spacing):
23284 Delete argument prop_index.
23285 (font_property_table): Change arguments to validater. Change Callers.
23286 (font_lispy_object): Delete.
23287 (font_at): Use font_find_object instead fo font_lispy_object.
23288
232892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23290
23291 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23292 and file names.
23293
232942008-02-01 Jason Rumney <jasonr@gnu.org>
23295
23296 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23297 (font_matches_spec): Remove debug output.
23298 (add_font_entity_to_list): Avoid using substituted fonts.
23299
233002008-02-01 Jason Rumney <jasonr@gnu.org>
23301
23302 * doc.c (Fsnarf_documentation):
23303 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23304
233052008-02-01 Miles Bader <miles@gnu.org>
23306
23307 * dispextern.h (struct glyph_row): Only define "clip" field if
23308 HAVE_WINDOW_SYSTEM is defined.
23309
233102008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23311
23312 Fix up multi-tty merge.
23313
23314 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23315 and indentation.
23316
23317 * xfaces.c (free_realized_face, clear_face_gcs):
23318 Include font_done_for_face in the input_blocked section, just in case.
23319
23320 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23321 (get_char_face_and_encoding): Undo last change and remove the *other*
23322 duplicate definition (i.e. keep the one that's better scoped and that
23323 includes code for the font-backend).
23324
23325 * terminal.c (create_terminal): Default keyboard_coding to
23326 `no-conversion' and terminal_coding to `undecided'.
23327
23328 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23329
23330 * fontset.c (free_realized_fontsets): Check that the table entry does
23331 contain a fontset before trying to compare it to `base'.
23332
23333 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23334 syms_of_charset, and syms_of_coding earlier because init_window_once
23335 now needs Vcoding_system_hash_table to be setup.
23336
23337 * coding.h (default_buffer_file_coding): Remove.
23338
23339 * coding.c (default_buffer_file_coding): Remove.
23340 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23341 than ->symbol, and use the terminal-local coding system.
23342 (syms_of_coding): Don't setup the coding-systems that are not
23343 terminal-local.
23344 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23345
23346 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23347 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23348
23349 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23350 in chartab.c and were re-added here by mistake.
23351 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23352
23353 * doc.c (Fsnarf_documentation):
23354 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23355 src to etc.
23356
23357 * ChangeLog.10: Add mistakenly removed entry.
23358
233592008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23360
23361 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23362
233632008-02-01 Miles Bader <miles@gnu.org>
23364
23365 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23366 Add extra args to FACE_FOR_CHAR.
23367
233682008-02-01 Kenichi Handa <handa@m17n.org>
23369
23370 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23371 in sequence.
23372
23373 * chartab.c (map_sub_char_table, map_char_table): If the range
23374 contains just one character, call the function with that character
23375 even if the depth is not 3.
23376
233772008-02-01 Jason Rumney <jasonr@gnu.org>
23378
23379 * w32font.c (w32font_text_extents): Calculate metrics for the
23380 whole string.
23381
233822008-02-01 Jason Rumney <jasonr@gnu.org>
23383
23384 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23385
233862008-02-01 Jason Rumney <jasonr@gnu.org>
23387
bba3e508
SM
23388 * w32term.c (x_set_glyph_string_clipping):
23389 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23390 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23391 Adjust for the change of struct glyph_string.
23392
23393 * w32font.c (w32font_draw): Do clipping here.
23394
233952008-02-01 Kenichi Handa <handa@m17n.org>
23396
23397 * xftfont.c (xftfont_draw): Adjust for the change of struct
23398 glyph_string.
23399
bba3e508
SM
23400 * xterm.c (x_set_glyph_string_clipping):
23401 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23402 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23403 Adjust for the change of struct glyph_string.
23404
23405 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23406 the resulting clip(s}.
23407 (expose_overlaps): Add arg r. Change callers. Set it to
23408 row->clip temporarily.
23409 (expose_window): Redraw rows overlapping the exposed area.
23410
23411 * dispextern.h (struct glyph_row): New member clip.
23412 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23413 clip_height, new member clip, and num_clips.
23414
234152008-02-01 Kenichi Handa <handa@m17n.org>
23416
23417 * data.c (Fchar_or_string_p): Fix docstring.
23418
234192008-02-01 Kenichi Handa <handa@m17n.org>
23420
23421 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23422 create a temporary XftDraw object.
23423
234242008-02-01 Kenichi Handa <handa@m17n.org>
23425
23426 * font.c (Ffontp): Fix docstring.
23427
23428 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23429 strong evidence of ISO-2022.
23430
234312008-02-01 Kenichi Handa <handa@m17n.org>
23432
23433 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23434 SYNTAX_ENTRY_FOLLOW_PARENT.
23435
234362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23437
23438 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23439 its type.
23440 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23441 Update to the new type of weak_hash_tables and next_weak.
23442
23443 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23444 a plain C pointer to Lisp_Hash_Table.
23445
23446 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23447 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23448 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23449 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23450 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23451 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23452 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23453 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23454 (GC_EQ): Remove since they've been identical to their non-GC_
23455 alter-egos ever since the markbit was eradicated.
23456
23457 * alloc.c:
23458 * buffer.c:
23459 * buffer.h:
23460 * data.c:
23461 * fileio.c:
23462 * filelock.c:
23463 * fns.c:
23464 * frame.h:
23465 * lisp.h:
23466 * macterm.c:
23467 * print.c:
23468 * process.c:
23469 * w32fns.c:
23470 * w32menu.c:
23471 * w32term.c:
23472 * xfns.c:
23473 * xmenu.c:
23474 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23475
234762008-02-01 Kenichi Handa <handa@m17n.org>
23477
23478 * chartab.c (map_sub_char_table): Make it work for the top-level
23479 char-table. Fix handling of parent char-table.
23480 (map_char_table): Adjust for the above change.
23481
234822008-02-01 Jason Rumney <jasonr@gnu.org>
23483
23484 * w32font.c (Qgdi): Rename from Qw32.
23485
234862008-02-01 Jason Rumney <jasonr@gnu.org>
23487
23488 * w32bdf.c (get_quoted_string): Make function static.
23489
234902008-02-01 Kenichi Handa <handa@m17n.org>
23491
23492 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23493 bigger ascent and descent than those of the font, use them as
23494 font's ascent and descent.
23495
234962008-02-01 Kenichi Handa <handa@m17n.org>
23497
23498 * Makefile.in (${lispsource}international/charprop.el): Move this
23499 target within "#ifdef HAVE_UNIDATA" and "#endif".
23500
235012008-02-01 Kenichi Handa <handa@m17n.org>
23502
23503 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23504 (shortlisp): Add ../lisp/language/tai-viet.el.
23505
235062008-02-01 Ulrich Mueller <ulm@gentoo.org>
23507
23508 * Makefile.in (${lispsource}international/charprop.el): Depend on
23509 temacs${EXEEXT}.
23510
235112008-02-01 Jason Rumney <jasonr@gnu.org>
23512
23513 * w32font.c (w32font_close): Delete the GDI font object.
23514
23515 * w32menu.c: Include character.h.
23516
23517 * w32proc.c: Likewise.
23518
23519 * w32select.c: Likewise.
23520
23521 * makefile.w32-in (w32proc.o): Depend on character.h.
23522
235232008-02-01 Jason Rumney <jasonr@gnu.org>
23524
23525 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23526
23527 * w32menu.c (syms_of_w32menu): Likewise.
23528
23529 * w32proc.c (syms_of_ntproc): Likewise.
23530
23531 * w32select.c (syms_of_w32select): Likewise.
23532
23533 * w32term.c (syms_of_w32term): Likewise.
23534
235352008-02-01 Jason Rumney <jasonr@gnu.org>
23536
23537 * w32font.c (w32font_draw): Delete brush after using it.
23538
235392008-02-01 Jason Rumney <jasonr@gnu.org>
23540
23541 * w32font.c (w32font_open): Don't set font_idx.
23542 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23543 to font settings.
23544 (w32font_draw): Fill background explicitly.
23545
235462008-02-01 Jason Rumney <jasonr@gnu.org>
23547
23548 * w32term.c (w32_initialize): Don't call w32font_initialize.
23549
23550 * w32font.c (w32font_info): Remove subranges.
23551 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23552 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23553 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23554 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23555 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23556 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23557 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23558 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23559 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23560 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23561 New symbols.
23562 (font_callback_data): New struct.
23563 (w32font_list, w32font_match): Use it.
23564 (w32font_open): Don't populate subranges.
23565 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23566 (w32font_encode_char): Always return unicode code-point as-is.
23567 (w32font_text_extents): Supply a transformation matrix to
23568 GetGlyphOutline. Never look up by glyph index. Avoid looping
23569 twice. Use unicode version of GetTexExtentPoint32 instead of
23570 glyph index version.
23571 (set_fonts_frame): Remove.
23572 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23573 set frame parameter. Use backward compatible fake foundries.
23574 Save generic family in extra slot under QCfamily. Make width slot
23575 constant. Save QCspacing value. Save list of scripts instead of
23576 binary subranges.
23577 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
23578 (add_font_entity_to_list): Use font_callback_data struct.
23579 Filter unwanted fonts.
aac0c6e3
MR
23580 (add_one_font_entity_to_list): Use font_callback_data struct.
23581 (w32_registry): Default to iso10646_1.
23582 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23583 string font registries. Don't fill in font name if it is a generic
23584 family name, fill family instead. Use spacing, family and script
23585 extra info to fill pitch, family and charset fields.
23586 (list_all_matching_fonts): Use font_callback_data struct.
23587 (unicode_range_for_char): Remove.
23588 (font_supported_scripts): New function.
23589 (w32font_initialize): Remove.
23590 (syms_of_w32font): Update which symbols are defined.
23591
235922008-02-01 Jason Rumney <jasonr@gnu.org>
23593
23594 * font.c (font_pixel_size): Reverse assq_no_quit args.
23595
23596 * w32term.h (FONT_WIDTH): Report max width, not average.
23597 (FONT_MAX_WIDTH): Remove.
23598 (FONT_AVG_WIDTH): New macro.
23599
23600 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23601 redefinition of FONT_WIDTH.
23602
23603 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23604 (w32_cache_char_metrics): Use FONT_WIDTH.
23605
23606 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23607
236082008-02-01 Jason Rumney <jasonr@gnu.org>
23609
23610 * w32font.c (w32font_open): Make lfHeight negative.
23611
23612 * w32fns.c (x_default_font_parameter): Use new style font name.
23613 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23614
236152008-02-01 Jason Rumney <jasonr@gnu.org>
23616
23617 * w32font.c (QCsubranges): New symbol.
23618 (w32font_open, w32font_has_char): Get subranges from subproperty
23619 of extra.
23620 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23621 (syms_of_w32font): Define :subranges symbol.
23622
23623 * font.c (font_put_extra): Expose externally.
23624
23625 * font.h (font_put_extra): Move declaration from font.c.
23626
23627 * font.c (Ffont_get): Use font driver to determine otf capability.
23628 (adjust_anchor): Check if driver defines anchor_point before using.
23629
23630 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23631 (w32font_draw): Use options.
23632 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23633 Fix detection of truetype fonts.
23634 (registry_to_w32_charset): Handle charsets other than iso8859-1
23635 expressed as lisp symbols.
23636 (w32_registry): Express charset as lisp symbol.
23637 (fill_in_logfont): Reverse pixel and point height logic.
23638 Don't set width here. Set quality to default.
23639
23640 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23641 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23642
23643 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23644 Remove redundant loop and allocation.
23645
23646 * makefile.w32-in (font.o, w32font.o): New objects.
23647 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
23648 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
23649
23650 * xdisp.c (fill_composite_glyph_string): Make the first arg to
23651 STORE_XCHARB a valid l-value.
23652
23653 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
23654 calculations for non-Truetype fonts.
23655 (x_draw_glyph_string): Sync with xterm.c.
23656 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23657 Remove redundant code.
23658 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
23659
23660 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
23661 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
23662
23663 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
23664 (x_to_w32_charset, w32_to_x_charset): Expose externally.
23665
23666 * w32font.c: New file for w32 font backend.
23667
236682008-02-01 Kenichi Handa <handa@m17n.org>
23669
23670 * term.c: Don't include "buffer.h" twice.
23671
236722008-02-01 Kenichi Handa <handa@m17n.org>
23673
23674 * character.c (Funibyte_string): New function.
23675 (syms_of_character): Defsubr it.
23676
236772008-02-01 Jason Rumney <jasonr@gnu.org>
23678
23679 * w32term.c [USE_FONT_BACKEND]:
23680 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
23681 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
23682 (x_draw_glyph_string, x_draw_glyph_string_foreground)
23683 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
23684 (x_free_frame_resources): Sync with xterm.c.
23685
236862008-02-01 Andreas Schwab <schwab@suse.de>
23687
23688 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
23689 char-table size.
23690
236912008-02-01 Kenichi Handa <handa@m17n.org>
23692
23693 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
23694
236952008-02-01 Kenichi Handa <handa@m17n.org>
23696
23697 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
23698 font_otf_gpos, add font_drive_otf.
23699
23700 * fontset.c (fontset_find_font): Pay attention to font size
23701 specified for a font.
23702 (reorder_font_vector): Check contents of font_def.
23703
23704 * font.c (struct otf_list): Delete it.
23705 (otf_list): Make it a lisp variable.
23706 (otf_open): Use lispy otf_list.
23707 (generate_otf_features): Rename from parse_gsub_gpos_spec.
23708 (check_otf_features): New function.
23709 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
23710 New functions.
23711 (font_drive_otf): New function merging font_otf_gsub and
23712 font_otf_gpos.
23713 (font_open_for_lface): New arg spec. Change argument order.
23714 (font_load_for_face): Adjust for the change of font_open_for_lface.
23715 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
23716 Ffont_otf_gpos.
23717 (syms_of_font): Staticpro otf_list. Delete defsubr of
23718 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
23719
23720 * xfaces.c (set_font_frame_param): Adjust for the change of
23721 font_open_for_lface.
23722
23723 * font.h (font_open_for_lface): Adjust prototype.
23724 (struct font_driver): Delete members otf_gsub and otf_gpos, add
23725 member otf_drive.
23726 (font_otf_gsub, font_otf_gpos): Delete externs.
23727 (font_drive_otf): Extern it.
23728
237292008-02-01 Kenichi Handa <handa@m17n.org>
23730
23731 * font.c (font_at): If the window W is not on a window system,
23732 return Qnil.
23733
23734 * coding.c (produce_chars, encode_coding): Don't call
23735 insert_from_gap if no characters to produce.
23736
237372008-02-01 Kenichi Handa <handa@m17n.org>
23738
23739 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
23740 Fclear_face_cache.
23741
23742 * xfaces.c (face_for_font): Check also face->font==font->font.font.
23743
237442008-02-01 Miles Bader <miles@gnu.org>
23745
23746 * emacs.c (main): Change default value of `enable_font_backend' to 1.
23747 Parse "--disable-font-backend" option.
23748 (standard_args): Add "--disable-font-backend" option.
23749
237502008-02-01 Kenichi Handa <handa@m17n.org>
23751
23752 * fontset.c (fontset_find_font): New function.
23753 (fontset_font): Use fontset_find_font.
23754 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
23755 Register the specified font for all Latin characters.
23756 (new_fontset_from_font): Register the specified font for all Latin
23757 characters.
23758 (dump_fontset): For a realized fontset, include the base fontset
23759 name in the returned vector.
23760
237612008-02-01 Kenichi Handa <handa@m17n.org>
23762
23763 * character.h (CHAR_STRING): Cast C to unsigned on calling
23764 char_string.
23765
23766 * character.c (char_string): Type of arg C changed to unsigned.
23767 Signal an error if C is an invalid character code.
23768
23769 * editfns.c (general_insert_function, Fchar_to_string):
23770 Use CHARACTERP, not INTEGERP.
23771
237722008-02-01 Kenichi Handa <handa@m17n.org>
23773
23774 * character.h (MIN_MULTIBYTE_LEADING_CODE)
23775 (MAX_MULTIBYTE_LEADING_CODE): New macros.
23776
23777 * regex.c (analyse_first): Fix for multibyte characters in "case
23778 charset:" and "case categoryspec:".
23779
237802008-02-01 Andreas Schwab <schwab@suse.de>
23781
23782 * Makefile.in (LIBES): Move standard libraries to the end.
23783
237842008-02-01 Kenichi Handa <handa@m17n.org>
23785
23786 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
23787 nonzero, don't shrink the buffer nextb.
23788
23789 * buffer.h (struct buffer_text): New member inhibit_shrinking.
23790
23791 * coding.c (coding_alloc_by_making_gap): New arg offset.
23792 (alloc_destination): Call coding_alloc_by_making_gap with the arg
23793 offset.
23794 (decode_coding_iso_2022): Update coding->safe_charsets.
23795 (decode_coding_gap): Temporarily set
23796 current_buffer->text->inhibit_shrinking to 1.
23797
237982008-02-01 Kenichi Handa <handa@m17n.org>
23799
bba3e508
SM
23800 * xterm.c (x_draw_composite_glyph_string_foreground):
23801 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
23802
238032008-02-01 Juanma Barranquero <lekktu@gmail.com>
23804
23805 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
23806
238072008-02-01 Kenichi Handa <handa@m17n.org>
23808
23809 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
23810 target_multibyte instead of multibyte.
23811 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23812 (bcmp_translate): Change the argument name from multibyte to
23813 target_multibyte.
23814
238152008-02-01 Kenichi Handa <handa@m17n.org>
23816
23817 These changes are to compile a regexp into a pattern that can be
23818 used both for multibyte and unibyte targets.
23819
23820 * Makefile.in (search.o): Depend on charset.h.
23821
23822 * character.c (multibyte_char_to_unibyte_safe): New function.
23823
23824 * search.c: Include "charset.h".
23825 (compile_pattern_1): Delete argument multibyte. Don't set
23826 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23827 (compile_pattern): Don't compare cp->buf.target_multibyte.
23828 Compare cp->buf.charset_unibyte.
23829 (compile_pattern): Set cp->buf.target_multibyte.
23830
23831 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23832
23833 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23834
23835 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23836 multibyte. Change callers.
23837 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23838 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23839 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23840 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23841 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23842 (regex_compile): Make the compiled pattern usable both for
23843 multibyte and unibyte targets.
23844 (analyse_first): Make the fastmap usable both for multibyte and
23845 unibyte targets.
23846 (TRANSLATE_VIA_MULTIBYTE): Delete.
23847 (re_match_2_internal): Pay attention to the case that the
23848 multibyteness of bufp and target may be different.
23849
238502008-02-01 Kenichi Handa <handa@m17n.org>
23851
23852 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23853 empty box occupy at least one column width.
23854
238552008-02-01 Miles Bader <miles@gnu.org>
23856
23857 * Makefile.in: Remove redundant HAVE_XFT clause.
23858
238592008-02-01 Kenichi Handa <handa@m17n.org>
23860
23861 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23862
238632008-02-01 Kenichi Handa <handa@m17n.org>
23864
23865 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23866 being nil.
23867
238682008-02-01 Kenichi Handa <handa@m17n.org>
23869
23870 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23871
238722008-02-01 Kenichi Handa <handa@m17n.org>
23873
23874 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23875
238762008-02-01 Kenichi Handa <handa@m17n.org>
23877
23878 * search.c (simple_search): Fix previous change.
23879
238802008-02-01 Kenichi Handa <handa@m17n.org>
23881
23882 * xftfont.c (ftfont_font_format): Extern declaration.
23883
23884 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23885
23886 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23887 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23888
23889 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23890 (ftfont_font_format): Fix previous change.
23891
23892 * font.h (Ffont_xlfd_name): EXFUN it.
23893
23894 * font.c (font_parse_xlfd): Fix the array size of `f'.
23895 (register_font_driver): Use EQ to compare driver->type.
23896
23897 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23898 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23899 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23900
239012008-02-01 Kenichi Handa <handa@m17n.org>
23902
23903 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23904 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23905
239062008-02-01 Kenichi Handa <handa@m17n.org>
23907
23908 * xfont.c (xfont_open): Set font->format.
23909
23910 * xftfont.c (xftfont_open): Set font->format.
23911
23912 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23913 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23914 (ftfont_open): Set font->format.
23915 (ftfont_font_format): New function.
23916
23917 * font.h (struct font): New member format.
23918
23919 * font.c (Qopentype): New variable.
23920 (syms_of_font): Defsym it.
23921 (Fquery_font): Change the format of the last element of the return
23922 value.
23923
239242008-02-01 Kenichi Handa <handa@m17n.org>
23925
23926 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23927 last resort.
23928
239292008-02-01 Kenichi Handa <handa@m17n.org>
23930
23931 * coding.c (detect_coding_charset): Fix detection of multi-byte
23932 charset.
23933
239342008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23935
23936 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23937
239382008-02-01 Kenichi Handa <handa@m17n.org>
23939
23940 * xdisp.c (get_next_display_element): Set it->face_id for the
23941 first component of a composition.
23942 (x_produce_glyphs): Check if the font is changed or not for composition.
23943
239442008-02-01 Kenichi Handa <handa@m17n.org>
23945
23946 * fontset.c (Qlatin): New variable.
23947 (syms_of_fontset): Define it as a lisp symbol.
23948 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23949
239502008-02-01 Kenichi Handa <handa@m17n.org>
23951
23952 * font.c (font_unparse_fcname): Pay attention to the case that
23953 some of font property is a null string.
23954
239552008-02-01 Kenichi Handa <handa@m17n.org>
23956
23957 * term.c: Include "composite.h".
23958 (encode_terminal_code): Output all components of composition.
23959 Check the size of encode_terminal_src.
23960 (produce_glyphs): For composition, call produce_composite_glyph.
23961 (append_composite_glyph, produce_composite_glyph): New functions.
23962
23963 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23964 is not found, get font_info from the current ascii face.
23965
239662008-02-01 Kenichi Handa <handa@m17n.org>
23967
23968 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23969 buffer-file-name to Qnil before calling insert_from_buffer.
23970
23971 * font.c (font_unparse_fcname): Pay attention to the case that
23972 foundry is a null string.
23973
239742008-02-01 Kenichi Handa <handa@m17n.org>
23975
23976 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23977
23978 * font.c (Qunicode_sip): New variable.
23979 (syms_of_font): Declare it as a Lisp symbol.
23980
23981 * font.h (Qunicode_sip): Extern it.
23982
239832008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * composite.c (get_composition_id): Pay attention to TAB component.
23986
23987 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23988 TAB. Adjust for the change of s->char2b which always points to
23989 the first element of allocated memory.
23990
23991 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23992
23993 * xdisp.c (handle_composition_prop): Set it->c to the first
23994 non-TAB component.
23995 (fill_composite_glyph_string): Change argument.
23996 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23997 (x_produce_glyphs): Fix handling of left/right padding.
23998
239992008-02-01 Kenichi Handa <handa@m17n.org>
24000
24001 * coding.c (detect_coding_system): Fix for handling off
24002 inhibit_iso_escape_detection. Fix for the case that no coding
24003 system is defined for a specific coding category.
24004
240052008-02-01 Kenichi Handa <handa@m17n.org>
24006
24007 * font.c (font_matching_entity): Delete unused local var.
24008
24009 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24010 opening a font.
24011
24012 * fileio.c (Finsert_file_contents): On recovering a file, assume
24013 Unix-like eol.
24014 (choose_write_coding_system): On auto-saving a file, force
24015 Unix-like eol.
24016
24017 * coding.c (setup_coding_system): Fix setting of
24018 coding->common_flags based on eol_type.
24019 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24020 inherit from it.
24021
240222008-02-01 Kenichi Handa <handa@m17n.org>
24023
24024 * alloc.c (NSTATICS): Increas to 0x600.
24025
240262008-02-01 Kenichi Handa <handa@m17n.org>
24027
24028 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24029 (ftfont_list): Don't check :name property.
24030 (ftfont_match): New function.
24031 (ftfont_pattern_entity): If the pattern doesn't contain
24032 FC_SPACING, don't assume FC_MONO.
24033
24034 * font.h (struct font_driver): New member `match'.
24035 (font_update_drivers): Adjust prototype.
24036
24037 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24038 property of FONT.
bba3e508
SM
24039 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24040 Define them unconditionally.
aac0c6e3
MR
24041 (font_matching_entity): New function.
24042 (font_open_by_name): Try font_matching_entity if exact match is
24043 not found.
24044 (font_update_drivers): Delete the arg FONT. Return a list of
24045 actually used backends. Don't free faces, font caches here.
24046 Don't store data in frame parameters. Don't call x_set_font.
24047 (Ffont_spec): Store :name property as is.
24048 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24049 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24050 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24051 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24052 Call font->driver->otf_gsub instead of font_otf_gsub.
24053
24054 * frame.c (x_set_font_backend): Do more works that were done in
24055 font_update_drivers before.
24056
24057 * xfont.c (xfont_match): New function.
24058 (xfont_driver): Set xfont_driver.match to xfont_match.
24059 (xfont_draw): Set font in GC if necessary.
24060
24061 * ftxfont.c (ftxfont_match): New function.
24062 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24063
24064 * xftfont.c (xftfont_match): New function.
24065 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24066
240672008-02-01 Kenichi Handa <handa@m17n.org>
24068
24069 * font.h (struct font): New member scalable.
24070 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24071 (font_otf_gsub): Adjust prototype.
24072
24073 * font.c (font_otf_capability): Fix handling of the default langsys.
24074 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24075 Check the contents of SPEC.
24076 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24077 (check_gstring): New function.
24078 (REPLACEMENT_CHARACTER): New macro.
24079 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24080 glyph codes of GSTRING.
24081 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24082 (font_prepare_composition): Set cmp->glyph_len.
24083 (font_open_entity): Set font->scalable.
24084 (Ffont_get): Handle :otf property.
bba3e508
SM
24085 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24086 New functions.
aac0c6e3
MR
24087 (Fquery_font): Use font->font.full_name.
24088 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24089 Sfont_otf_alternates.
24090
24091 * ftfont.c (ftfont_open): Set font->font.full_name and
24092 font->font.name properly. Fix calculation of font->font.height
24093 and font->min_width.
24094
24095 * ftxfont.c (ftxfont_create_gcs): New function.
24096 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24097 (ftxfont_draw_backgrond): Fix filling region.
24098 (ftxfont_default_fid): New function.
24099 (ftxfont_open): Set xfont->fid to the return value of
24100 ftxfont_default_fid.
24101 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24102 (ftxfont_done_face): Free only GCs that are created by
24103 ftxfont_create_gcs.
24104 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24105
24106 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24107 Clip to src->width, etc (not src->clip_XXX).
24108
24109 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24110 FontBackend frame parameter.
24111
241122008-02-01 Kenichi Handa <handa@m17n.org>
24113
24114 * font.h (struct font_driver_list): New member `on'.
24115 (Fclear_font_cache): EXFUN it.
24116 (font_update_drivers): Extern it.
24117
24118 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24119 (font_list_entities): Check driver_list->on.
40b1a3a9 24120 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
24121 (font_update_drivers): New function.
24122 (Fclear_font_cache): Check driver_list->on.
24123
24124 * frame.h (Qfont_backend): Extern it.
24125 (x_set_font_backend): Extern it.
24126
24127 * frame.c (Qfont_backend): New variable.
24128 (frame_parms): New element for font-backend.
24129 (x_set_font_backend): New function.
24130
24131 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24132 FontBackend frame parameter.
24133 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24134 x_set_font_backend.
24135
24136 * xfont.c (xfont_list): Don't try listing by :name property if the
24137 name is not for XLFD.
24138
241392008-02-01 Kenichi Handa <handa@m17n.org>
24140
24141 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24142 (LGLYPH_SET_TO): New macros.
24143 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24144 element of G is vector or not.
24145 (font_at): Extern it.
24146
24147 * font.c: Include window.h.
24148 (font_lispy_object): New function.
24149 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24150 end of valid glyph.
24151 (font_close_object): Fix getting (struct font *).
24152 (font_at): New function.
24153 (Ffont_get): If FONT is a font-object, get entity from it.
24154 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
24155 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24156 Fix range check.
aac0c6e3
MR
24157 (Ffont_at): New function.
24158 (syms_of_font): Defsubr Sfont_at.
24159
24160 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24161 before the entry for Qcomposition.
24162 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24163 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24164 the font in gstring.
24165 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24166 LGLYPH_FORM (g) to detect the end of valid glyph.
24167 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24168 we are composing with gstring.
24169
24170 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24171 Check if adjustment is vector or not.
24172
24173 * Makefile.in (font.o): Make it depends on window.h.
24174
241752008-02-01 Kenichi Handa <handa@m17n.org>
24176
24177 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24178 adjustment is vector or not.
24179
241802008-02-01 Miles Bader <miles@gnu.org>
24181
24182 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24183
241842008-02-01 Kenichi Handa <handa@m17n.org>
24185
24186 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 24187 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
24188 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24189
24190 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24191 (DEVICE_DELTA): Fix typo.
24192 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24193 LGLYPH format.
24194
24195 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24196 the change of LGLYPH format.
24197
241982008-02-01 Kenichi Handa <handa@m17n.org>
24199
24200 * ftfont.c (ftfont_list): Fix typo.
24201 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24202
242032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24204
24205 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24206
24207 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24208 xftface_info is non-NULL.
24209
242102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24211
24212 * ftfont.c (ftfont_list): Move misplaced #endif.
24213
242142008-02-01 Kenichi Handa <handa@m17n.org>
24215
24216 * ftfont.c (ftfont_list): Pay attention to the case that
24217 FC_CAPABILITY is not defined.
24218
242192008-02-01 Kenichi Handa <handa@m17n.org>
24220
24221 * xftfont.c (xftfont_open): Set charset related members to -1.
24222
24223 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24224 QCname.
24225 (ftfont_open): Set charset related members to -1.
24226
24227 * fontset.c (Votf_script_alist): New variable.
24228 (syms_of_fontset): Initialize it.
24229 (fontset_font): Delete unused variable.
24230
24231 * fontset.h (Votf_script_alist): Extern it.
24232
24233 * font.c (font_find_for_lface): Optimize code.
24234
24235 * font.h (font_close_object, font_merge_old_spec): Extern them.
24236
242372008-02-01 Kenichi Handa <handa@m17n.org>
24238
24239 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24240 (syms_of_font): Initialize them.
24241 (font_pixel_size): Allow float value in dpi.
24242 (font_prop_validate_type): Delete.
24243 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24244 Change caller.
24245 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24246 (font_prop_validate_extra): Delete.
24247 (font_prop_validate_spacing): New function.
24248 (font_property_table): Add elements for all known properties.
bba3e508
SM
24249 (get_font_prop_index): Rename from check_font_prop_name.
24250 New argument FROM. Change caller.
aac0c6e3
MR
24251 (font_prop_validate): Validate all known properties.
24252 (font_put_extra): Delete argument force. Change caller.
24253 (font_expand_wildcards): Make it static. Fix the way of shrinking
24254 the possible range.
24255 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24256 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24257 Change caller.
24258 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24259 (font_parse_fcname): Delete argument merge. Fix parsing of point
24260 size. Don't validate properties values here. Change caller.
24261 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24262 (font_open_by_name): Delete unused variable.
24263 (Ffont_spec): Likewise. Validate property values.
24264 (Ffont_match_p): New function.
24265
24266 * font.h (QCscalable): Extern it.
24267 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24268
24269 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24270
24271 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24272 (xfont_list_pattern): New function.
24273 (xfont_list): Use xfont_list_pattern.
24274
242752008-02-01 Kenichi Handa <handa@m17n.org>
24276
24277 * font.h (Flist_fonts): EXFUN it.
24278
242792008-02-01 Jason Rumney <jasonr@gnu.org>
24280
24281 * w32term.c (w32_initialize): Add back smoothing_type and
24282 smoothing_enabled definitions.
24283
242842008-02-01 Kenichi Handa <handa@m17n.org>
24285
24286 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24287 s->face->font on determining underline position.
24288
242892008-02-01 Kenichi Handa <handa@m17n.org>
24290
24291 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24292 (font_has_char): Accept font-object too.
24293 (font_find_for_lface): Try at first with a size specified in face.
24294
242952008-02-01 Kenichi Handa <handa@m17n.org>
24296
24297 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24298 font_open_by_name.
24299
243002008-02-01 Kenichi Handa <handa@m17n.org>
24301
24302 * font.h (QCspacing, QCdpi): Extern them.
24303 (enum font_spacing): New enum.
24304 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24305
24306 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24307 (QCspacing, QCdpi): New variables.
24308 (syms_of_font): Initialize them.
24309 (font_pixel_size): New function.
24310 (font_put_extra): New function.
24311 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24312 in FONT_EXTRA.
24313 (font_parse_fcname): Handle enumerated values (e.g. bold).
24314 Fix handling font size. Add QCname property that contains only
24315 unknown properties.
24316 (font_score): Change argument. Change caller. Pay attention to
24317 FONT_PIXEL_SIZE_QUANTUM.
24318 (font_sort_entites, font_list_entities, font_find_for_lface)
24319 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24320 (Ffont_spec): Add QCname property that contains only unknown properties.
24321
bba3e508
SM
24322 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24323 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
24324 listed font. Don't include scalable in pattern. Pay attention to
24325 FONT_PIXEL_SIZE_QUANTUM.
24326
243272008-02-01 Kenichi Handa <handa@m17n.org>
24328
24329 * font.c (font_parse_fcname): Fix parsing of point-size.
24330 (font_unparse_fcname): Produce symbolic names for style properties.
24331 (font_list_entities): Handle float size correctly.
24332 (font_open_by_name): Prefer `normal' property values if the name
24333 doesn't specify them.
24334
24335 * fontset.c (Finternal_char_font): Use font_get_name, not
24336 Ffont_xlfd_name.
24337
24338 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24339 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24340 pattern. Don't force scalable.
24341
24342 * xftfont.c (xftfont_open): For generating a name, start from
24343 96-byte buffer.
24344
243452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24346
24347 * frame.h (x_new_fontset2): Fix prototype.
24348
243492008-02-01 Kenichi Handa <handa@m17n.org>
24350
24351 * font.h (struct font_driver): Delete member parse_name.
24352 (font_match_p, font_get_spec, font_parse_fcname)
24353 (font_unparse_fcname): Extern them.
24354 (font_get_name): Adjust prototype.
24355
24356 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24357 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
24358 (font_expand_wildcards): Fix handling ENCODING field.
24359 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
24360 (font_parse_fcname): New function.
24361 (font_unparse_fcname): New function.
24362 (font_parse_name): New function.
24363 (font_match_p): New function.
24364 (font_get_name): Change return value to Lisp string.
24365 (font_get_spec): New function.
24366 (Qunspecified, Qignore_defface): Don't extern them.
24367 (font_find_for_lface): Assume that LFACE is fully specified.
24368 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24369 object, use it for FACE.
24370 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24371 driver->parse_name.
24372 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24373
24374 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24375 prototype.
24376
24377 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24378 argument F. Don't call Fnew_fontset. Instead, directly call
24379 make_fontset.
24380
24381 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24382
24383 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24384 of x_new_fontset2.
24385
24386 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24387 (Qsans__serif): New variables.
24388 (ftfont_generic_family_list): New variable.
24389 (syms_of_ftfont): Initialize the above variables.
24390 (ftfont_pattern_entity): Delete argument NAME.
24391 (ftfont_list_generic_family): New function.
24392 (ftfont_parse_name): Delete this function.
24393 (ftfont_list): Try generic family only when FcFontList found no font.
24394 (ftfont_list_family): Fix args to FcObjectSetBuild.
24395
24396 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24397 object in attrs[LFACE_FONT_INDEX].
24398 (set_lface_from_font_name): Cancel all changes for font-backend.
24399 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24400 function.
24401 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24402 font object in QCfont attribute.
24403 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24404 (realize_default_face) [USE_FONT_BACKEND]: Call
24405 set_lface_from_font_and_fontset.
24406
24407 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24408 "fixed", and signal error here if no suitable font was found.
24409
24410 * xfont.c (xfont_parse_name): Delete this function.
24411
24412 * xftfont.c (xftfont_open): Change coding style of error
24413 handling. Generate fontconfig's fontname pattern.
24414
24415 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24416 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24417
24418 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24419 Both args FONTSET and FONT_OBJECT must be existing ones.
24420
244212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24422
24423 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24424
244252008-02-01 Kenichi Handa <handa@m17n.org>
24426
24427 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24428
24429 * font.h (struct font): Fix typo.
24430
24431 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24432 XLFD_XXX_INDEX.
24433 (enum xlfd_field_mask): New enum.
ef1b0ba7 24434 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24435 are followed by non-digits, return a symbol.
24436 (font_expand_wildcards): New function.
24437 (font_parse_xlfd): Fix wildcard handling.
24438 (Ffont_spec): If :name is specified, reflect the info in the other
24439 properties.
24440
24441 * ftfont.c (ftfont_pattern_entity): Fix typo.
24442 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24443 locale.
24444
244452008-02-01 Kenichi Handa <handa@m17n.org>
24446
24447 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24448
24449 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24450 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24451 registry doesn't specify encoding part.
24452 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24453 (font_open_by_name): At first try parsing the name.
24454 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24455 as Lisp symbols.
24456
24457 * fontset.c (reorder_font_vector): Pay attention to the case that
24458 the 3rd element of font_def is nil.
24459 (fontset_font): For the default fontset, append one more fontset
24460 elements for a script-based font specification. Don't add script
24461 attribute on finding a font.
24462 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24463 font name.
24464 (fontset_ascii_font): If a font can't be opened, return nil.
24465
24466 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24467 (ftfont_pattern_entity): New function.
24468 (ftfont_get_cache): Assume that freetype_font_cache is already
24469 initialized.
24470 (ftfont_list): Handle the case that a file is specified in font
24471 name. Use ftfont_pattern_entity to generate entities.
24472 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24473 (syms_of_ftfont): Initialize freetype_font_cache.
24474
24475 * xftfont.c (xftfont_open): Make the font name fontconfig's
24476 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24477 (xftfont_close): Free font->font.name if not NULL.
24478
24479 * xfont.c (xfont_list): If script is specified for a font, return
24480 null_vector.
24481 (xfont_list_family): Declare argument type.
24482
24483 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24484 name, set LFACE_FONT (lface) to nil.
24485
24486 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24487 return Qnil.
24488
244892008-02-01 Kenichi Handa <handa@m17n.org>
24490
24491 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24492 (standard_args): Add "-enable-font-backend".
24493
244942008-02-01 Kenichi Handa <handa@m17n.org>
24495
24496 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24497 (struct xftdraw_list, xftdraw_list): Delete them.
24498 (register_xftdraw, check_xftdraw): Delete them.
24499 (xftfont_prepare_face): Don't call register_xftdraw.
24500 (xftfont_done_face): Don't call check_xftdraw.
24501 (xftfont_draw): Get background color only when with_background is
24502 nonzero.
24503
24504 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24505
245062008-02-01 Kenichi Handa <handa@m17n.org>
24507
24508 These changes are for the new font handling codes.
24509
24510 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24511 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24512 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24513 (FONTSRC, FONTOBJ): New variables.
24514 (obj): Add $(FONTOBJ).
24515 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24516 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24517 @LIBOTF_LIBS@.
24518 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24519 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24520
24521 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24522
24523 * character.h (Vscript_representative_chars): Extern it.
24524
24525 * character.c (Vscript_representative_chars): New variable.
24526 (syms_of_character): Declare it as a Lisp variable.
24527
24528 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24529 enable_font_backend is nonzero, accept the composition method
24530 COMPOSITION_WITH_GLYPH_STRING.
24531
24532 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24533 enumeration COMPOSITION_WITH_GLYPH_STRING.
24534
24535 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24536 members clip_x, clip_y, clip_width, and clip_height.
24537 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24538
24539 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24540 --enable-font-backend. Call syms_of_font.
24541
24542 * fns.c (assoc_no_quit): New function.
24543
24544 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24545 (face_for_font, new_fontset_from_font)
24546 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24547
24548 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24549 (fontset_font, fontset_ascii, face_for_char)
24550 (make_fontset_for_ascii_face, Ffont_info)
24551 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24552 is nonzero, use font-backend mechanism.
24553 (find_font_encoding): Make it non-static.
24554 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24555 New functions.
24556
24557 * frame.h (struct frame): New members resx and resy.
24558 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24559 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24560
24561 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24562 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24563
24564 * lisp.h (assoc_no_quit): Extern it.
24565
24566 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24567 Through out the file, use FONT_INFO_FROM_FACE instead of
24568 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24569 rif->per_char_metric.
24570 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24571 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24572 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24573 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24574 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24575 nonzero, use font-backend mechanism.
24576 (get_per_char_metric): New function.
24577
24578 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24579 (set_lface_from_font_name)
24580 (set_font_frame_param, free_realized_face)
24581 (prepare_face_for_display, clear_face_gcs)
24582 (Finternal_set_font_selection_order, realize_x_face)
24583 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24584 font-backend mechanism.
24585 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24586 (load_face_font) [USE_FONT_BACKEND]: Abort.
24587 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24588 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24589
24590 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24591 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24592 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
24593 nonzero, register all available font drivers.
24594 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
24595 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24596
24597 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24598 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24599 (x_set_glyph_string_clipping_exactly)
24600 (x_compute_glyph_string_overhangs)
24601 (x_draw_glyph_string_foreground)
24602 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24603 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24604 enable_font_backend is nonzero, use font-backend mechanism.
24605 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24606
246072008-02-01 Kenichi Handa <handa@m17n.org>
24608
24609 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24610 system_eol_type.
24611 (syms_of_coding): Initialize system_eol_type.
24612
24613 * process.c (Fset_process_coding_system): Inherit system's eol
24614 format if necessary.
24615
246162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24617
24618 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24619
246202008-02-01 Kenichi Handa <handa@m17n.org>
24621
24622 * coding.c (decode_eol): Pay attention to buffer relocation in
24623 del_range_2.
24624 (decode_coding): Call decode_eol before restoring undo_list.
24625
246262008-02-01 Kenichi Handa <handa@m17n.org>
24627
24628 * charset.c (Fdefine_charset_internal): Fix setting of
24629 emacs_mule_bytes.
24630
246312008-02-01 Kenichi Handa <handa@m17n.org>
24632
24633 * keyboard.c (read_char): Check if C is a character or not before
24634 looking up Vkeyboard_translate_table.
24635
246362008-02-01 Kenichi Handa <handa@m17n.org>
24637
bba3e508
SM
24638 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24639 Fix condition to terminate the loop.
aac0c6e3
MR
24640
246412008-02-01 Kenichi Handa <handa@m17n.org>
24642
24643 * coding.c (produce_composition): Compare charbuf[i] instead of
24644 args[i] against 0.
24645 (Fterminal_coding_system): Use EQ to compare Lisp objects.
24646
246472008-02-01 Kenichi Handa <handa@m17n.org>
24648
24649 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
24650 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
24651 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
24652 detect_coding.
24653 (emacs_mule_char): Handle old style (Emacs 20) component character
24654 of a composition.
24655 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
24656 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
24657 composition rule.
24658 (decode_coding_emacs_mule): Handle invalid bytes correctly.
24659
246602008-02-01 Kenichi Handa <handa@m17n.org>
24661
24662 * coding.c (encode_coding_ccl): Allocate destination dynamically
24663 when necessary.
24664
246652008-02-01 Kenichi Handa <handa@m17n.org>
24666
24667 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
24668 the loop. When quitted, show a proper error message.
24669
246702008-02-01 Kenichi Handa <handa@m17n.org>
24671
bba3e508
SM
24672 * xterm.c (x_set_glyph_string_clipping_exactly):
24673 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
24674
24675 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
24676 character sequence.
24677 (Fccl_execute_on_string): Use ASET, not XSET.
24678
246792008-02-01 Kenichi Handa <handa@m17n.org>
24680
24681 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
24682
246832008-02-01 Kenichi Handa <handa@m17n.org>
24684
24685 * coding.c (decode_coding): Fix the condition of terminating the
24686 decoding loop.
24687
246882008-02-01 Kenichi Handa <handa@m17n.org>
24689
24690 * data.c (Faset): On setting a character bigger than 255 in a
24691 unibyte string, signal an error instead of make the string multibyte.
24692
246932008-02-01 Kenichi Handa <handa@m17n.org>
24694
24695 * charset.c (map_charset_chars): Fix for ascii-compatible charset
24696 made by a mapping table.
24697
246982008-02-01 Kenichi Handa <handa@m17n.org>
24699
24700 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
24701 not.
24702 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
24703 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
24704
bba3e508
SM
24705 * xterm.c (x_draw_composite_glyph_string_foreground):
24706 Check s->face is NULL or not.
aac0c6e3
MR
24707
247082008-02-01 Kenichi Handa <handa@m17n.org>
24709
24710 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
24711 (x_draw_glyph_string): Fix drawing of right_overhang and
24712 left_overhang around/on cursor.
24713
24714 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
24715
247162008-02-01 Kenichi Handa <handa@m17n.org>
24717
24718 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
24719
247202008-02-01 Kenichi Handa <handa@m17n.org>
24721
24722 * coding.c (Fdefine_coding_system_internal)
24723 (Fdefine_coding_system_alias): Avoid a duplicated element in
24724 Vcoding_system_alist.
24725
247262008-02-01 Kenichi Handa <handa@m17n.org>
24727
24728 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
24729
24730 * coding.c (Qcoding_system_define_form): New variable.
24731 (syms_of_coding): Intern and staticpro it.
24732 (Fcoding_system_p): Check Qcoding_system_define_form.
24733 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
24734
24735 * coding.h (CODING_SYSTEM_P): If ID is not available, call
24736 Fcoding_system_p.
24737 (CHECK_CODING_SYSTEM): If ID is not available, call
24738 Fcheck_coding_system.
24739 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
24740 Try also Fcheck_coding_system.
24741
247422008-02-01 Kenichi Handa <handa@m17n.org>
24743
24744 * coding.c (code_conversion_restore): GCPRO arg.
24745
247462008-02-01 Kenichi Handa <handa@m17n.org>
24747
24748 * character.c (lisp_string_width): Check multibyteness of STRING.
24749
247502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24751
24752 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
24753 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
24754 (decode_mac_font_name): Use decode_coding_c_string instead of
24755 decode_coding.
bba3e508
SM
24756 (x_load_font): Initialize fontp->fontset to -1.
24757 Set fontp->encoding_type.
aac0c6e3
MR
24758
247592008-02-01 Kenichi Handa <handa@m17n.org>
24760
24761 * search.c (search_buffer): Give up BM search on case-fold-search
24762 if one of a target character has a case-equivalence of different
3b59c351 24763 byte length even if that target character is an ASCII.
aac0c6e3
MR
24764 (simple_search): Fix calculation of byte length of matched text.
24765 (boyer_moore): Fix handling of case-equivalent multibyte characters.
24766
247672008-02-01 Kenichi Handa <handa@m17n.org>
24768
24769 * coding.c (decode_coding): Fix handling of invalid bytes.
24770
247712008-02-01 Kenichi Handa <handa@m17n.org>
24772
24773 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
24774 Unicode characters.
24775
247762008-02-01 Kenichi Handa <handa@m17n.org>
24777
24778 * coding.c (encode_coding_object): If a pre-write-conversion
24779 function makes a new buffer, kill it.
24780
247812008-02-01 Kenichi Handa <handa@m17n.org>
24782
24783 * coding.c (QCascii_compatible_p): New variable.
24784 (syms_of_coding): Initialize it.
24785 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
24786 calling string_char.
24787 (record_conversion_result): Add `default:' case.
24788 (coding_charset_list): Delete unused variable `coding_type'.
24789 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
24790 property in the plist of the coding system.
24791 (Fcoding_system_put): Check QCascii_compatible_p.
24792
247932008-02-01 Miles Bader <miles@gnu.org>
24794
24795 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
24796 removed calculation of frame `f', as it's now used.
24797
247982008-02-01 Kenichi Handa <handa@m17n.org>
24799
24800 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
24801 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
24802 (UNIDATA): New variable.
24803 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
24804 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
24805 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
24806
248072008-02-01 Kenichi Handa <handa@m17n.org>
24808
24809 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
24810 (admindir): New variable.
24811 ($(lispsource)international/charprop.el): New target.
24812
248132008-02-01 Miles Bader <miles@gnu.org>
24814
24815 * character.c (chars-in-region): Remove obsolete function.
24816 (syms_of_character): Remove its initialization.
24817
248182008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24819
24820 * w32select.c (validate_coding_system)
24821 (setup_windows_coding_system): New functions.
bba3e508
SM
24822 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24823 Use setup_windows_coding_system.
24824 (setup_config, Fw32_get_clipboard_data):
24825 Use validate_coding_system.
aac0c6e3
MR
24826 (Fx_selection_exists): Move call to setup_config to a place
24827 where signals are allowed.
24828
24829 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24830 (Fcheck_coding_system): Add declarations.
24831
248322008-02-01 Kenichi Handa <handa@m17n.org>
24833
24834 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24835
248362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24837
24838 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24839 string as the second argument for x_new_fontset.
24840
248412008-02-01 Kenichi Handa <handa@m17n.org>
24842
24843 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24844 (encode_coding_object): Use safe_call instead of call2.
24845
248462008-02-01 Kenichi Handa <handa@m17n.org>
24847
24848 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24849
24850 * Makefile.in (lisp): Include charprop.el.
24851
248522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24853
24854 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24855 Not sure if it's unnecessary.
24856
248572008-02-01 Steven Tamm <steventamm@mac.com>
24858
24859 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24860 some possibly unnecessary fontset checking code that crashed
24861 when creating a new frame.
24862
248632008-02-01 Kenichi Handa <handa@m17n.org>
24864
24865 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24866 lookup_face.
24867
24868 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24869
24870 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24871
248722008-02-01 Kenichi Handa <handa@m17n.org>
24873
24874 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24875 (coding_charset_list): New function.
24876
24877 * coding.h (coding_charset_list): Extern it.
24878
248792008-02-01 Kenichi Handa <handa@m17n.org>
24880
24881 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24882 concatenation of family and registry.
24883
248842008-02-01 Kenichi Handa <handa@m17n.org>
24885
24886 * character.h (BYTE8_STRING): Fix typo.
24887
24888 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24889 string to multibyte (sync to HEAD).
24890
24891 * casefiddle.c (casify_region): Handle changes in byte-length
24892 using replace_range_2 (sync to HEAD).
24893
248942008-02-01 Andreas Schwab <schwab@suse.de>
24895
24896 * chartab.c (map_char_table): GCPRO table and arg.
24897
248982008-02-01 Kenichi Handa <handa@m17n.org>
24899
24900 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24901 already at limit.
24902
249032008-02-01 Kenichi Handa <handa@m17n.org>
24904
24905 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24906 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24907 (find_font_encoding): Change argument to Lisp_Object.
24908 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24909 fast_c_string_match_ignore_case. Change caller.
24910
249112008-02-01 Kenichi Handa <handa@m17n.org>
24912
24913 * xdisp.c (get_next_display_element): In unibyte case, decide to
24914 display in octal form by checking a character by
24915 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24916
24917 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24918
24919 * character.c (unibyte_has_multibyte_table): New variable.
24920
24921 * character.h (unibyte_has_multibyte_table): Extern it.
24922 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24923
249242008-02-01 Kenichi Handa <handa@m17n.org>
24925
24926 * coding.c (encode_coding_iso_2022): Fix handling of charset
24927 annotation.
24928
249292008-02-01 Kenichi Handa <handa@m17n.org>
24930
24931 * coding.c (setup_coding_system): If coding_system is nil, use
24932 Qundecided.
24933 (Fterminal_coding_system): Return nil if terminal coding system is
24934 `undecided'.
bba3e508
SM
24935 (syms_of_coding): Define coding-system `undecided' here.
24936 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24937
249382008-02-01 Kenichi Handa <handa@m17n.org>
24939
bba3e508
SM
24940 * xdisp.c (message_dolog, set_message_1):
24941 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24942
24943 * lread.c (read1): Fix reading of a char-table.
24944
24945 * print.c (print_object): Include sub char-table in circularities
24946 detection.
24947
249482008-02-01 Kenichi Handa <handa@m17n.org>
24949
24950 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24951 Append the found sequences in car of ARGS instead of prepending.
24952
249532008-02-01 Kenichi Handa <handa@m17n.org>
24954
24955 * fileio.c (report_file_error): Make a unibyte string from
24956 strerror (errorno).
24957 (Fsubstitute_in_file_name): Fix the arg to
24958 unibyte_char_to_multibyte. It is evaluated twice.
24959
249602008-02-01 Kenichi Handa <handa@m17n.org>
24961
24962 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24963
249642008-02-01 Kenichi Handa <handa@m17n.org>
24965
24966 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24967 BOM is not found.
24968 (detect_coding, detect_coding_system): Optimization for ISO-2022
24969 when no 8-bit data is found.
24970
249712008-02-01 Jason Rumney <jasonr@gnu.org>
24972
24973 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24974
249752008-02-01 Kenichi Handa <handa@m17n.org>
24976
24977 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24978 CHARS.
24979
249802008-02-01 Steven Tamm <steventamm@mac.com>
24981
24982 * macterm.c (mac_encode_char): Add charset argument and update
24983 to use encoding_type.
24984 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24985 switch to pure fontset.
24986 (decode_mac_font_name): Temporarily remove decoding.
24987 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24988 (x_load_font): Temporarily remove encoding.
24989
249902008-02-01 Kenichi Handa <handa@m17n.org>
24991
24992 * xfaces.c (Fface_font): If frame is not on a window system,
24993 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24994 refer to face->font.
24995 (split_font_name_into_vector, build_font_name_from_vector)
24996 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24997 when HAVE_WINDOW_SYSTEM is defined.
24998
249992008-02-01 Kenichi Handa <handa@m17n.org>
25000
25001 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25002 (x_produce_glyphs): Fix setting of members of cmp in case
25003 cmp->glyph_len is zero.
25004
25005 * fontset.c (Fset_fontset_font): Fix docstring.
25006 (Ffontset_info): Make it backward compatible. New arg ALL.
25007
250082008-02-01 Kim F. Storm <storm@cua.dk>
25009
25010 * process.c (read_process_output): Grow decoding_buf when needed;
25011 this could cause a crash in allocate_string and compact_small_strings.
25012
250132008-02-01 Kenichi Handa <handa@m17n.org>
25014
25015 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25016
250172008-02-01 Kenichi Handa <handa@m17n.org>
25018
25019 * coding.c (setup_coding_system): Set coding->common_flags
25020 correctly for raw-text.
25021 (consume_chars): On encoding unibyte text by raw-text, don't check
25022 multibyte form.
25023 (encode_coding): On encoding by raw-text, never use translation tables.
25024
25025 * fileio.c (e_write): Short cut for the case of no encoding.
25026
250272008-02-01 Kenichi Handa <handa@m17n.org>
25028
25029 * coding.c (detect_coding, detect_coding_system): Delete unused
25030 variables.
25031
250322008-02-01 Kenichi Handa <handa@m17n.org>
25033
25034 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25035 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25036
250372008-02-01 Kenichi Handa <handa@m17n.org>
25038
bba3e508
SM
25039 * coding.c (Ffind_coding_systems_region_internal):
25040 Include raw-text and no-conversion in the result.
aac0c6e3
MR
25041
250422008-02-01 Kenichi Handa <handa@m17n.org>
25043
25044 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25045 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25046 FONT_DEF.
25047 (font_def_arg, add_arg, from_arg, to_arg): New args.
25048 (set_fontset_font): Change argument.
25049 (Fset_fontset_font): Fix for the case that TARGET is a script
25050 name and charset name.
25051 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25052
250532008-02-01 Kenichi Handa <handa@m17n.org>
25054
25055 * fontset.c (fontset_font): Rename from fontset_face. Change return
25056 value.
25057 (face_suitable_for_char_p, face_for_char): Adjust for the change
25058 of fontset_font.
25059 (make_fontset_for_ascii_face): Fix setting of the fontset element
25060 for ASCII.
25061 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25062 to get a font name.
25063 (Ffontset_info): Adjust for the change of fontset_font.
25064
25065 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25066
25067 * character.h (LEADING_CODE_LATIN_1_MIN)
25068 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25069
250702008-02-01 Kenichi Handa <handa@m17n.org>
25071
25072 * editfns.c (check_translation): New function.
25073 (Ftranslate_region_internal): Handle M:N mapping.
25074
250752008-02-01 Kenichi Handa <handa@m17n.org>
25076
25077 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25078
250792008-02-01 Kenichi Handa <handa@m17n.org>
25080
25081 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25082 goto invalid_code.
25083 (decode_coding_iso_2022): Fix handling of invalid designation.
25084
25085 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25086 after calling code_conversion_save.
25087
250882008-02-01 Kenichi Handa <handa@m17n.org>
25089
25090 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25091
25092 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25093
25094 * fontset.c: Include "intervals.h".
25095 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
25096 (free_face_fontset, new_fontset_from_font_name):
25097 Fix Lisp_Object/int mixup.
aac0c6e3
MR
25098
25099 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25100
25101 * coding.c: Add many prototypes for static functions.
25102 (get_translation_table): Allow max_lookup to be NULL.
25103 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
25104 (Funencodable_char_position, Fcheck_coding_systems_region):
25105 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
25106
251072008-02-01 Kenichi Handa <handa@m17n.org>
25108
25109 * coding.c (get_translation_table): Declare it as Lisp_Object.
25110 (LOOKUP_TRANSLATION_TABLE): New macro.
25111 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25112 instead of CHAR_TABLE_REF.
25113
251142008-02-01 Kenichi Handa <handa@m17n.org>
25115
25116 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25117 annotation data format.
25118 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25119 Change arguments FROM and TO to single argument NCHARS. Change caller.
25120 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25121 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25122 (decode_coding_ccl, decode_coding_charset): Pay attention to
25123 coding->charbuf_used.
25124 (get_translation): New function.
25125 (produce_chars): New arguments translation_table and last_block.
25126 Translate characters here. Return number of carryover chars.
25127 Change caller.
25128 (produce_composition): New argument pos. Change caller.
25129 Adjust for the change of annotation data format.
25130 (produce_charset, produce_annotation): Likewise.
25131 (decode_coding, encode_coding): Don't call translate_chars.
25132 (consume_chars): New arg translation_table. Change caller.
25133 (translate_chars): Delete.
25134 (syms_of_coding): Make translation-table's number of extra slots 2.
25135
251362008-02-01 Kenichi Handa <handa@m17n.org>
25137
25138 * search.c (simple_search): Fix setting this_pos_byte in backward
25139 search.
25140
25141 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25142 byte sequence.
25143 (detect_coding_ccl): Fix setting of the variable valids.
25144
251452008-02-01 Kenichi Handa <handa@m17n.org>
25146
25147 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25148
25149 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25150
25151 * editfns.c (Ftranslate_region_internal): Rename from
25152 Ftranslate_region. Accept a char-table in TABLE.
25153 (syms_of_editfns): Defsubr Stranslate_region_internal.
25154
25155 * xfaces.c (set_lface_from_font_name): If a font is specified for
25156 a frame, generate a fontset from the font.
25157 (build_scalable_font_name): If the scalable font is requested for
25158 a specific size, don't change that size.
25159 (try_font_list): Try a scalable font also in the case that a
25160 pattern string is specified.
25161
251622008-02-01 Kenichi Handa <handa@m17n.org>
25163
25164 * xfaces.c (Fface_font): New optional arg CHARACTER.
25165
251662008-02-01 Kenichi Handa <handa@m17n.org>
25167
25168 * charset.h (CHARSET_OFFSET): New macro.
25169
251702008-02-01 Kenichi Handa <handa@m17n.org>
25171
25172 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25173
25174 * fontset.c (fontset_face): Handle the case that repertory is a
25175 char-table.
25176 (find_font_encoding): Return nil for unknown encoding.
25177 (Fset_fontset_font): Ignore a font of unknown encoding.
25178
251792008-02-01 Kenichi Handa <handa@m17n.org>
25180
25181 * keymap.c (describe_vector): Handle default value of a char table.
25182
25183 * fontset.c (fontset_face): Handle fallback fonts correctly.
25184 (Ffontset_info): Return infomation about fallback fonts.
25185
251862008-02-01 Kenichi Handa <handa@m17n.org>
25187
25188 * fontset.c (FONTSET_DEFAULT): New macro.
25189 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25190 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25191 the case that it is nil.
25192 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25193 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25194
25195 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25196 subset or superset.
25197
251982008-02-01 Kenichi Handa <handa@m17n.org>
25199
25200 * emacs.c (main): Call init_charset after syms_of_XXX.
25201
25202 * charset.c (Vcharset_map_directory): Delete.
25203 (Vcharset_map_path): New variable.
25204 (load_charset_map_from_file): Use Vcharset_map_path instead.
25205 (init_charset): Initialize Vcharset_map_path.
25206 (syms_of_charset): Delete declaration of "charset-map-directory",
25207 add declaration of "charset-map-path".
25208
252092008-02-01 Kenichi Handa <handa@m17n.org>
25210
25211 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25212 ASCII only string.
25213
25214 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25215
25216 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25217 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25218
252192008-02-01 Kenichi Handa <handa@m17n.org>
25220
25221 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25222
25223 * coding.c (QCmnemonic, QCdefalut_char)
25224 (QCdecode_translation_table, QCencode_translation_table)
25225 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25226 (get_translation_table): Return a list of translation tables if
25227 necessary.
25228 (decode_coding): Call get_translation_table with ENCODEP 0.
25229 (char_encodable_p): If translation_table is non-nil, always call
25230 translate_char.
25231 (Fdefine_coding_system_internal): Accept list of translation
25232 tables as :encode-translation-table and :decode-translation-table.
25233 (Fcoding_system_put): New function.
bba3e508
SM
25234 (syms_of_coding): Declare new symbols.
25235 Defsubr Scoding_system_put.
aac0c6e3
MR
25236 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25237 typically JISX0212.
25238
25239 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25240 when the charset is superset type.
25241
25242 * character.c (translate_char): Accept list of translation tables.
25243
252442008-02-01 Kenichi Handa <handa@m17n.org>
25245
25246 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25247 (CODING_ATTR_TRANS_TBL): New macro.
25248
25249 * coding.c (get_translation_table): New function.
25250 (translate_chars): Fix the bug of skipping annotation data.
25251 (decode_coding, encode_coding): Utilize get_translation_table.
25252 (char_encodable_p, Funencodable_char_position): Translate char if
25253 necessary.
25254 (Ffind_coding_systems_region_internal)
25255 (Fcheck_coding_systems_region): Setup translation table for encode
25256 in a coding system attribute vector in advance.
25257 (Fdefine_coding_system_internal): Allow a symbol as translation
25258 table. For shift-jis type coding system, allow 4th charset.
25259
252602008-02-01 Kenichi Handa <handa@m17n.org>
25261
25262 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25263
25264 * xdisp.c (get_next_display_element): Pass -1 as POS to
25265 FACE_FOR_CHAR if displaying a C-string.
25266
252672008-02-01 Kenichi Handa <handa@m17n.org>
25268
25269 * composite.c (get_composition_id): Handle xoff and yoff in a
25270 composition rule.
25271
25272 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25273 (struct composition): New member lbearing and rbearing.
25274
25275 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25276 (x_get_glyph_overhangs): Handle a composition glyph.
25277 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25278
25279 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25280 composition glyph.
25281
252822008-02-01 Kenichi Handa <handa@m17n.org>
25283
25284 * print.c: Include charset.h.
25285 (Vprint_charset_text_property): New variable.
25286 (Qdefault): Extern it.
25287 (PRINT_STRING_NON_CHARSET_FOUND)
25288 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25289 (print_check_string_result): New variable.
25290 (print_check_string_charset_prop): New function.
25291 (print_prune_charset_plist): New variable.
25292 (print_prune_string_charset): New function.
25293 (print_object): Call print_prune_string_charset if
25294 Vprint_charset_text_property is not t.
25295 (print_interval): Print nothing if interval->plist is nil.
25296 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25297 variable. Init and staticpro print_prune_charset_plist.
25298
252992008-02-01 Kenichi Handa <handa@m17n.org>
25300
25301 * fontset.c (new_fontset_from_font_name): Use the specified font
25302 for all characters in the new fontset.
25303
25304 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25305 OBJECT args.
25306
25307 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25308 OBJECT args for composition too.
25309
25310 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25311 OBJECT args.
25312
253132008-02-01 Kenichi Handa <handa@m17n.org>
25314
25315 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25316
25317 * fontset.c (reorder_font_vector): Adjust for the change of
25318 FONT_DEF format.
25319 (fontset_face): New arg id. Change caller.
25320 (face_for_char): New args pos and object.
25321 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25322 (fs_query_fontset): Check NAME by Fassoc too.
25323 (Fset_fontset_font): Allow non-XLFD font name.
25324 (Ffontset_info): Adjust for the change of FONT_DEF format.
25325
25326 * fontset.h (face_for_char): Adjust prototype.
25327
25328 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25329 (append_space, extend_face_to_end_of_line)
25330 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25331 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25332
25333 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25334 POS and OBJECT args.
25335
25336 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25337 POS and OBJECT args.
25338
253392008-02-01 Jason Rumney <jasonr@gnu.org>
25340
25341 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25342 of GlobalAlloc'ed memory.
25343
253442008-02-01 Kenichi Handa <handa@m17n.org>
25345
25346 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25347
25348 * charset.h (charset_table_used): Delete extern.
25349
25350 * charset.c (charset_table_used): Make it static.
25351 (map_charset_chars): Fix args to c_function with.
25352
25353 * chartab.c (map_sub_char_table_for_charset): Fix args to
25354 c_function with.
25355
bba3e508
SM
25356 * coding.h (enum coding_result_code):
25357 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
25358
25359 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25360 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25361 (Vlast_code_conversion_error): New variables.
25362 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25363 (ONE_MORE_BYTE): Record error if any instead of signaling an
25364 error. If non-ASCII multibyte char is found, return the negative
25365 value of the code. All callers changed to check it.
25366 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25367 (record_conversion_result): New function. Change all codes setting
25368 coding->result to call this function.
25369 (detect_coding_utf_8, decode_coding_utf_8)
25370 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25371 Don't use the local variable incomplete.
25372 (emacs_mule_char): Change the second arg to `const'.
25373 (decode_coding): Fix of flushing out unprocessed data.
25374 (make_conversion_work_buffer): Fix making of a work buffer.
25375 (decode_coding_object): Return coding->dst_object.
25376
25377 * fontset.c (set_fontset_font): Fix args.
25378
25379 * lisp.h (CHARACTERBITS): Define as 22.
25380
25381 * process.c (send_process): Be sure to set coding->src_multibyte.
25382
25383 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25384
253852008-02-01 Kenichi Handa <handa@m17n.org>
25386
25387 * xdisp.c (handle_auto_composed_prop): Give limit to
25388 Fnext_single_char_property_change.
25389
253902008-02-01 Kenichi Handa <handa@m17n.org>
25391
25392 * composite.c (syms_of_composite): Don't make the composition hash
25393 table weak.
25394
25395 * fontset.c (Fset_fontset_font): Fix docstring.
25396
25397 * lisp.h (detect_coding_system): Adjust prototype.
25398
25399 * fileio.c (kill_workbuf_unwind): Delete this function.
25400 (Finsert_file_contents): Adjust the call of detect_coding_system.
25401 Get conversion_buffer by code_conversion_save. Use the macro
25402 CODING_MAY_REQUIRE_DECODING. After decoding, update
25403 coding_system.
25404
25405 * coding.h (make_conversion_work_buffer): Delete extern.
25406 (code_conversion_save): Extern it.
25407
25408 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25409 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25410 (decode_coding_utf_8): Don't do eol converion.
25411 (detect_coding_utf_16): Check coding->src_chars, not
25412 coding->src_bytes. Add heuristics for those that have no signature.
25413 (decode_coding_emacs_mule, decode_coding_iso_2022)
25414 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25415 Don't do eol converion.
25416 (adjust_coding_eol_type): Return a new coding system.
25417 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25418 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25419 each change.
25420 (decode_coding): Pay attention to undo_list. Do eol conversion for
25421 all types of coding-systems (if necessary).
25422 (Vcode_conversion_work_buf_list): Delete it.
25423 (Vcode_conversion_reused_workbuf): Rename from
25424 Vcode_conversion_reused_work_buf.
25425 (Vcode_conversion_workbuf_name): New variable.
25426 (reused_workbuf_in_use): New variable.
25427 (make_conversion_work_buffer): Delete the arg DEPTH.
25428 (code_conversion_restore): Change argument to cons.
25429 (code_conversion_save): Delete the argument BUFFER. Change callers.
25430 (detect_coding_system): New argument src_chars. Change callers.
25431 Fix for utf-16 detection.
25432 (init_coding_once): Don't use ISO_carriage_return.
25433 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25434 reused_workbuf_in_use.
25435
254362008-02-01 Kenichi Handa <handa@m17n.org>
25437
25438 * keymap.c (store_in_keymap): Pay attention to the case that idx
25439 is a cons specifying a character range.
25440
254412008-02-01 Kenichi Handa <handa@m17n.org>
25442
25443 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25444 HANDLED_RECOMPUTE_PROPS.
25445
25446 * coding.c (Fdefine_coding_system_internal): Fix checking of
25447 ascii compatibility.
25448
254492008-02-01 Kenichi Handa <handa@m17n.org>
25450
25451 * charset.c (find_charsets_in_text): Delete unused locale variable.
25452 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25453
25454 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25455 Resync charset_list to Vemacs_mule_charset_list.
25456
25457 * keymap.c (store_in_keymap): Pay attention to the case that idx
25458 is a cons specifying a character range.
25459
254602008-02-01 Kenichi Handa <handa@m17n.org>
25461
25462 * composite.c (update_compositions): Bind inhibit-read-only, etc
25463 to t before calling remove-list-of-text-properties.
25464
25465 * print.c (print_object): Always print ASCII chars as is.
25466
254672008-02-01 Kenichi Handa <handa@m17n.org>
25468
25469 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25470
25471 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25472 is a char table.
25473
254742008-02-01 Kenichi Handa <handa@m17n.org>
25475
25476 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25477
254782008-02-01 Kenichi Handa <handa@m17n.org>
25479
25480 * xfaces.c (set_lface_from_font_name): Fix for the case that
25481 FONTNAME is not fontset name.
25482
254832008-02-01 Kenichi Handa <handa@m17n.org>
25484
25485 * fns.c (base64_encode_1): Fix previous change.
25486
254872008-02-01 Kenichi Handa <handa@m17n.org>
25488
25489 * fontset.c (set_fontset_font): New function.
25490 (Fset_fontset_font): If a font is specified for a charset, use
25491 map_charset_chars to store the font spec in a fontset.
25492
254932008-02-01 Kenichi Handa <handa@m17n.org>
25494
25495 * fontset.c (fontset_face): Create a fallback fontset on demand.
25496 (make_fontset): Don't create a fallback fontset here.
25497 (free_face_fontset): Free a fallback fontset (if any) too.
25498 (n_auto_fontsets): Delete this variable.
25499 (auto_fontset_alist): New variable.
25500 (new_fontset_from_font_name): Check auto_fontset_alist.
25501 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25502 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25503 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25504 Defsubr Sfontset_list_all.
25505
255062008-02-01 Kenichi Handa <handa@m17n.org>
25507
25508 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25509
255102008-02-01 Kenichi Handa <handa@m17n.org>
25511
25512 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25513
255142008-02-01 Kenichi Handa <handa@m17n.org>
25515
25516 * editfns.c (Fgoto_char): Fix docstring.
25517
255182008-02-01 Kenichi Handa <handa@m17n.org>
25519
25520 * insdel.c (insert_from_gap): Adjust intervals correctly.
25521
255222008-02-01 Jason Rumney <jasonr@gnu.org>
25523
25524 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25525 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25526 (w32_initialize): Try to load it.
25527 (x_get_font_repertory): Use it if available.
25528 (w32_encode_char): Add shortcut for unicode output.
25529
25530 * w32fns.c (w32_load_system_font): Default charset to -1.
25531 (x_to_w32_charset): Match all fonts for unicode.
25532 (w32_to_x_charset): New parameter matching. Don't return partial
25533 or wildcard charsets.
25534 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25535 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25536 (w32_to_x_font): Match charset to real charset.
25537 (enum_font_cb2): Always list unicode versions.
25538
25539 * makefile.w32-in (temacs): Increase EMHEAP.
25540
255412008-02-01 Jason Rumney <jasonr@gnu.org>
25542
25543 * w32term.c (w32_encode_char): New charset parameter.
25544 font_info.encoding becomes encoding_type.
25545 (x_get_font_repertory): New function. Warning: stub only!
25546 (x_new_font): Return quickly if font already set.
25547 (x_new_fontset): fontsetname parameter is Lisp_Object.
25548 Use new fs_query_fontset. Try new_fontset_from_font_name.
25549 Use fontset_name for return value.
25550
25551 * w32term.h: Declare x_get_font_repertory.
25552
25553 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25554 place of find_charset_in_text. Use encode_coding_object in place
25555 of encode_coding.
25556 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25557 decode_coding.
25558
25559 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25560 of x_new_fontset.
25561 (w32_load_system_font): Initialize charset as unicode.
25562 font_info.encoding becomes encoding_type.
25563 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25564 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25565 (syms_of_w32fns): Set get_font_repertory_func.
25566
25567 * w32console.c: Include character.h. Use terminal_encode_buffer
25568 from term.c.
bba3e508
SM
25569 (write_glyphs): Use new version of encode_terminal_code.
25570 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
25571
25572 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25573 encoding becomes encoding_type.
25574
25575 * term.c (terminal_encode_buffer): Make externally visible.
25576
25577 * makefile.w32-in: Add character.h dependancies.
25578 (character.o, chartab.o): New targets.
25579
255802008-02-01 Kenichi Handa <handa@m17n.org>
25581
25582 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25583 CODING_ID_EOL_TYPE.
25584
255852008-02-01 Andreas Schwab <schwab@suse.de>
25586
25587 * coding.c (produce_chars): Revert last change.
25588
255892008-02-01 Kenichi Handa <handa@m17n.org>
25590
25591 * charset.h (charset_unicode): Extern it.
25592
25593 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
25594 (find_charsets_in_text): Change format of the arc CHARSETS.
25595 New arg MULTIBYTE.
aac0c6e3
MR
25596 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25597 change of find_charsets_in_text.
25598 (Fsplit_char): Fix doc. Never return unknown.
25599
25600 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25601
bba3e508
SM
25602 * coding.c (Fdefine_coding_system_alias):
25603 Update Vcoding_system_list.
aac0c6e3
MR
25604
25605 * fontset.c (load_font_get_repertory): Pay attention to the case
25606 that ENCODING of a font is specified by a char-table.
25607
25608 * xterm.c (x_get_font_repertory): Handle the case that the
25609 encoding of font is other than Unicode.
25610
256112008-02-01 Kenichi Handa <handa@m17n.org>
25612
bba3e508
SM
25613 * term.c (encode_terminal_code): Don't handle glyph-table.
25614 Check if a character is encodable by the terminal coding system.
25615 If not, produces proper number of `?'s. Update
aac0c6e3
MR
25616 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25617 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25618
256192008-02-01 Kenichi Handa <handa@m17n.org>
25620
bba3e508
SM
25621 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25622 New variables.
aac0c6e3
MR
25623 (encode_terminal_code): Change argument. Encode multiple
25624 characters at once. Store the result of encoding in
25625 terminal_encode_buffer.
25626 (write_glyphs, insert_glyphs): Adjust for the change of
25627 encode_terminal_code.
25628 (term_init): Initialize terminal_encode_buffer and
25629 terminal_encode_buf_size.
25630
25631 * coding.c (consume_chars): If coding->src_object is nil, don't
25632 check annotation.
25633
256342008-02-01 Kenichi Handa <handa@m17n.org>
25635
25636 * character.c (char_string): Use ASCII_CHAR_P instead of
25637 SINGLE_BYTE_CHAR_P.
25638
256392008-02-01 Kenichi Handa <handa@m17n.org>
25640
25641 * xdisp.c (handle_auto_composed_prop): Check if the last
25642 characters of auto-composed region is newly composed with the
25643 following characters.
25644 (handle_composition_prop): Fix checking of point being inside
25645 composition.
25646
256472008-02-01 Kenichi Handa <handa@m17n.org>
25648
25649 * fns.c (concat): Don't change multibyteness of the result by
25650 concatenating an 8-bit character.
25651
25652 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
25653 multibyteness of the result when newelt is an 8-bit character.
25654
256552008-02-01 Dave Love <fx@gnu.org>
25656
25657 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
25658 EMACS_INT.
25659
25660 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
25661
25662 * xfaces.c (face_numeric_value): Declare dim size_t.
25663 (Finternal_lisp_face_equal_p): Remove unused f.
25664
25665 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
25666 (MATRIX_ROW): Remove unused vars.
25667 (draw_glyphs, x_insert_glyphs, fast_find_position)
25668 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
25669 byte/char counts.
25670
25671 * regex.c (regex_compile): Remove unused var.
25672
25673 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25674
25675 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
25676 (Faccessible_keymaps, where_is_internal): Remove unused vars.
25677
25678 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
25679
25680 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
25681
25682 * fileio.c (Fwrite_region): Remove unused var.
25683
25684 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
25685 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
25686
25687 * composite.c (Fremove_list_of_text_properties): Declare.
25688
25689 * coding.c (inhibit_pre_post_conversion): Remove (unused).
25690 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
25691 (coding_inherit_eol_type): Remove unused attrs.
25692 (detect_coding): Cast arg of detect_eol.
25693
25694 * charset.c (syms_of_charset): Remove unused var p.
25695 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
25696 byte/char counts.
25697
25698 * casetab.c (set_case_table): Remove unused var.
25699
bba3e508
SM
25700 * window.c (Fdisplay_buffer, Fframe_selected_window):
25701 Remove unused vars.
aac0c6e3
MR
25702
257032008-02-01 Dave Love <fx@gnu.org>
25704
25705 * xterm.c (x_bitmap_mask): Declare.
25706
257072008-02-01 Dave Love <fx@gnu.org>
25708
25709 * xterm.c (x_term_init): Fix type error.
25710
25711 * lisp.h: Add Funibyte_char_to_multibyte.
25712
25713 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
25714 (Fset_coding_system_priority): Doc fix.
25715
25716 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
25717
25718 * indent.c (check_composition): Make start and end EMACS_INT.
25719
25720 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
25721
25722 * xdisp.c (handle_composition_prop, check_point_in_composition):
25723 Make buffer positions EMACS_INT.
25724
25725 * composite.c (find_composition, run_composition_function)
25726 (update_compositions, Ffind_composition_internal): Make buffer
25727 positions EMACS_INT.
25728
bba3e508
SM
25729 * composite.h (find_composition, update_compositions):
25730 Make position args EMACS_INT.
aac0c6e3
MR
25731
25732 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
25733
25734 * intervals.c (get_property_and_range):
25735 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
25736
25737 * unexalpha.c: Don't include varargs.h.
25738
257392008-02-01 Dave Love <fx@gnu.org>
25740
25741 * coding.h (ENCODE_UTF_8): New.
25742
25743 * Makefile.in (gtkutil.o): Depend on coding.h.
25744
25745 * coding.c (Fset_coding_system_priority): Doc fix.
25746
257472008-02-01 Kenichi Handa <handa@m17n.org>
25748
25749 * fileio.c (Finsert_file_contents): Call setup_coding_system in
25750 the case of auto saving.
25751
257522008-02-01 Andreas Schwab <schwab@suse.de>
25753
bba3e508
SM
25754 * chartab.c (map_char_table, map_char_table_for_charset):
25755 Protect `range' from GC.
aac0c6e3
MR
25756
257572008-02-01 Kenichi Handa <handa@m17n.org>
25758
25759 * coding.c (decode_coding_sjis): Check bytes more rigidly.
25760
257612008-02-01 Kenichi Handa <handa@m17n.org>
25762
25763 * fileio.c (choose_write_coding_system): Return a decided coding system.
25764 (Fwrite_region): Set Vlast_coding_system_used to the return value
25765 of choose_write_coding_system.
25766
257672008-02-01 Kenichi Handa <handa@m17n.org>
25768
25769 * charset.c (Fset_charset_priority): Pay attention to duplicated
25770 arguments.
25771
25772 * coding.c (QCcategory): New variable.
25773 (syms_of_coding): Defsym it. Set all elements of
25774 Vcoding_category_table and their symbol values.
25775 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
25776 coding-category-XXX, and coding-category-list.
25777 (Fdefine_coding_system_internal): Add category in the plist.
25778
257792008-02-01 Kenichi Handa <handa@m17n.org>
25780
25781 * callproc.c (Fcall_process): Handle carryover correctly.
25782
25783 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
25784 (raw_text_coding_system): Check NILP (coding_system).
25785 (coding_inherit_eol_type): Check NILP (coding_system) and
25786 NILP (parent).
25787 (consume_chars): Fix for the case of raw-text.
25788
25789 * process.c (read_process_output): Handle carryover correctly.
25790
257912008-02-01 Dave Love <fx@gnu.org>
25792
25793 * regex.c (re_search_2): Fix last change.
25794
257952008-02-01 Kenichi Handa <handa@m17n.org>
25796
25797 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
25798 target_multibyte. Even in a unibyte case, return a converted
25799 multibyte char.
25800 (GET_CHAR_AFTER): New macro.
25801 (PATFETCH): Translate via multibyte char.
25802 (HANDLE_UNIBYTE_RANGE): Delete this macro.
25803 (SETUP_MULTIBYTE_RANGE): New macro.
25804 (regex_compile): Setup compiled code so that its multibyteness
25805 matches that of a target. Fix the handling of "[X-YZ]" using
25806 SETUP_MULTIBYTE_RANGE.
25807 (analyse_first) <charset>: For filling fastmap for all multibyte
25808 characters, don't check by BASE_LEADING_CODE_P.
25809 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
25810 the same as RE_MULTIBYTE_P (bufp) now.
25811 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25812 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25813 (TRANSLATE_VIA_MULTIBYTE): New macro.
25814 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25815 It is the same as RE_MULTIBYTE_P (bufp) now.
25816 <exactn>: Translate via multibyte.
bba3e508
SM
25817 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25818 Don't translate it.
aac0c6e3
MR
25819 <charset, charset_not>: Fetch a character by
25820 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25821 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25822 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25823 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25824 by GET_CHAR_AFTER.
25825 (bcmp_translate): Likewise.
25826
25827 * search.c (compile_pattern): Check the member target_multibyte,
25828 not the member multibyte of buf.
25829
25830 * lread.c (read1): While reading a string, set force_singlebyte
25831 and force_multibyte correctly.
25832
25833 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25834 up of unibyte_to_multibyte_table.
25835
258362008-02-01 Kenichi Handa <handa@m17n.org>
25837
25838 * coding.c (setup_coding_system): If coding has
25839 post-read-conversion or pre-write-conversion, set
25840 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25841 respectively.
25842 (decode_coding_gap): Run post-read-conversion if any.
25843
25844 * fileio.c (Finsert_file_contents): Even if we read into a
25845 unibyte buffer, check if we must decode the result or not.
25846
258472008-02-01 Kenichi Handa <handa@m17n.org>
25848
25849 * coding.c (make_conversion_work_buffer): Change the work buffer
25850 name to the same one as that of Emacs 21.
25851
258522008-02-01 Kenichi Handa <handa@m17n.org>
25853
25854 * coding.h (make_conversion_work_buffer): Adjust prototype.
25855 (code_conversion_restore): Don't extern it.
25856
25857 * coding.c (detected_mask): Delete unused variable.
25858 (decode_coding_iso_2022): Pay attention to the byte sequence of
25859 CTEXT extended segment, and retain those bytes as is.
25860 (decode_coding_ccl): Delete unused variable `valids'.
25861 (setup_coding_system): Delete unused variable `category'.
25862 (consume_chars): Delete unused variable `category'. Make it work
25863 for non-multibyte case.
25864 (make_conversion_work_buffer): Change argument.
25865 (saved_coding): Delete unused variable.
25866 (code_conversion_restore): Don't check saved_coding->destination.
25867 (code_conversion_save): New function.
25868 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25869 instead of record_unwind_protect.
25870 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25871 (detect_coding_system): Delete unused variable `mask'.
25872 (Fdefine_coding_system_internal): Delete unused variable id.
25873
25874 * fileio.c (kill_workbuf_unwind): New function.
25875 (Finsert_file_contents): On replacing, call
25876 make_conversion_work_buffer with correct args, and call
25877 record_unwind_protect with the first arg kill_workbuf_unwind.
25878
25879 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25880
258812008-02-01 Kenichi Handa <handa@m17n.org>
25882
25883 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25884 (fontset_add): Fix for the case that TO is less than TO1.
25885 (Ffontset_info): Don't use fallback fontset on checking the
25886 default fontset.
25887 (dump_fontset): New function for debugging.
25888
25889 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25890 coding_type is Qcharset.
25891
258922008-02-01 Kenichi Handa <handa@m17n.org>
25893
25894 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25895 (map_char_table): Don't inherit the value from the parent on
25896 initializing VAL. Adjust for the above change.
25897
258982008-02-01 Kenichi Handa <handa@m17n.org>
25899
25900 * coding.c (Qsignature, Qendian): Delete these variables.
25901 (syms_of_coding): Don't initialize them.
25902 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25903 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25904 detect_info->found.
25905 (decode_coding_utf_16): Don't detect BOM here.
25906 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25907 is NOT utf_16_without_bom.
25908 (setup_coding_system): For a coding system of type utf-16, check
25909 if the attribute :endian is Qbig or not (not nil or not), and set
25910 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25911 (detect_coding): If coding type is utf-16 and BOM detection is
25912 required, detect it.
25913 (Fdefine_coding_system_internal): For a coding system of type
25914 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25915
259162008-02-01 Kenichi Handa <handa@m17n.org>
25917
25918 * coding.c (coding_set_source): Fix for the case that the current
25919 buffer is different from coding->src_object.
25920 (decode_coding_object): Don't use the conversion work buffer if
25921 DST_OBJECT is a buffer.
25922
259232008-02-01 Dave Love <fx@gnu.org>
25924
25925 * lread.c (read_emacs_mule_char) [len==2]: Index
25926 emacs_mule_charset correctly.
25927
259282008-02-01 Dave Love <fx@gnu.org>
25929
25930 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25931 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25932 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25933 treated specially.)
25934 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25935 (detected_mask): Remove Big5 bits.
25936
259372008-02-01 Kenichi Handa <handa@m17n.org>
25938
25939 The following changes are to make the font rescaling facility
25940 compatible with Emacs 21.
25941
25942 * xfaces.c (Vface_font_rescale_alist): Rename from
25943 Vface_resizing_fonts.
25944 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25945 (font_rescale_ratio): Rename from font_resizing_ratio.
25946 (split_font_name): Set font->rescale_ratio.
25947 (better_font_p): Pay attention to font->rescale_ratio.
25948 (build_scalable_font_name): Likewise. Change RESX, and RESY
25949 fields.
25950 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25951
259522008-02-01 Kenichi Handa <handa@m17n.org>
25953
25954 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25955 (Qutf_16_le): Remove these variables.
25956 (syms_of_coding): Don't DEFSYM them.
25957 (decode_coding_utf_16): Fix handling of BOM.
25958 (encode_coding_utf_16): Fix handling of BOM.
25959
259602008-02-01 Kenichi Handa <handa@m17n.org>
25961
25962 * fileio.c (Finsert_file_contents): On replacing, before decoding
25963 the file into the work buffer, set point of the work buffer to the end.
25964
259652008-02-01 Dave Love <fx@gnu.org>
25966
25967 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25968
259692008-02-01 Dave Love <fx@gnu.org>
25970
25971 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25972 and fix C types.
25973
259742008-02-01 Kenichi Handa <handa@m17n.org>
25975
25976 * xdisp.c (SKIP_GLYPHS): New macro.
25977 (set_cursor_from_row): Pay attention to string display properties.
25978
25979 * category.c (copy_category_entry): Fix for the case that RANGE
25980 is an integer.
25981
25982 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25983
25984 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25985
259862008-02-01 Kenichi Handa <handa@m17n.org>
25987
25988 * charset.c (Fcharset_id_internal): New function.
25989 (syms_of_charset): Defsubr it.
25990
25991 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25992 with the last arg charset_list acquired from coding.
25993 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25994 the attribute coding_attr_ccl_valids.
25995
25996 * coding.h (enum define_coding_ccl_arg_index): Set the first
25997 member coding_arg_ccl_decoder to coding_arg_max.
25998
25999 * ccl.h (ccl_driver): Adjust prototype.
26000
26001 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26002 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 26003 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
26004 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26005 last arg Qnil.
26006
260072008-02-01 Kenichi Handa <handa@m17n.org>
26008
26009 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26010 call encode_char.
26011
26012 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26013
260142008-02-01 Dave Love <fx@gnu.org>
26015
26016 * composite.c (syms_of_composite): Make composition_hash_table weak.
26017
260182008-02-01 Kenichi Handa <handa@m17n.org>
26019
26020 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26021 (font_name_registry): Don't extern them.
26022 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26023
26024 * fontset.h (Qfontset): Don't extern it.
26025 (new_fontset_from_font_name): Extern it.
26026
26027 * fontset.c: Give 8 extra slots to fontset objects.
26028 (Qfontset_info): New variable.
26029 (syms_of_fontset): Defsym it.
26030 (FONTSET_FALLBACK): New macro.
26031 (fontset_face): Try also the default fontset.
26032 (make_fontset): Realize a fallback fontset from the default fontset.
26033 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26034 using split_font_name_into_vector and build_font_name_from_vector.
26035 (Fset_fontset_font): Access the elements of font_spec by enum
26036 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26037 name by using split_font_name_into_vector.
26038 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
26039 generate a proper font name from the fontset name.
26040 Update Vfontset_alias_alist.
aac0c6e3
MR
26041 (n_auto_fontsets): New variable.
26042 (new_fontset_from_font_name): New function.
26043 (Ffont_info): Store the information about fonts generated from the
26044 default fontset in the first extra slot of the returned char-table.
26045
26046 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26047 (font_name_registry): Delete function.
26048 (split_font_name_into_vector): New function.
26049 (build_font_name_from_vector): New function.
26050 (font_list): The argument REGISTRY is now a list of registry names.
26051 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26052 specifies an explicit font name, return the name as is. Make a
26053 list of registy names.
26054
26055 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26056 of x_new_fontset.
26057 (Fx_create_frame): Don't call x_new_fontset here. Just use
26058 x_list_fonts to check the existence of fonts.
26059
26060 * xterm.h (x_new_fontset): Adjust prototype.
26061
26062 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26063 string. Use new_fontset_from_font_name to create a fontset from a
26064 font name.
26065
260662008-02-01 Kenichi Handa <handa@m17n.org>
26067
26068 * syntax.c (Vfind_word_boundary_function_table): New name for
26069 Vnext_word_boundary_function_table.
26070 (find-word-boundary-function-table): New name for
26071 next-word-boundary-function-table.
26072
260732008-02-01 Dave Love <fx@gnu.org>
26074
26075 * Makefile.in: Fix some dependencies.
26076
26077 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26078 set it to nil before returning.
26079
26080 * composite.c (update_compositions): Fix type error.
26081
26082 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26083
260842008-02-01 Kenichi Handa <handa@m17n.org>
26085
26086 * xterm.c (x_new_font): Optimize for the case that the font is
26087 already set for the frame.
26088
260892008-02-01 Kenichi Handa <handa@m17n.org>
26090
26091 * chartab.c (char_table_ascii): Check if the char table contents
26092 is sub-char-table or not.
26093 (char_table_set, char_table_set_range): Fix argument to
26094 char_table_ascii.
26095
26096 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26097 (detect_coding_utf_8, detect_coding_utf_16)
26098 (detect_coding_emacs_mule, detect_coding_iso_2022)
26099 (detect_coding_sjis, detect_coding_big5)
26100 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26101 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26102 sequence is valid in this coding system. Change callers.
26103 (MAX_ANNOTATION_LENGTH): New macro.
26104 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
26105 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26106 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
26107 (ADD_CHARSET_DATA): New macro.
26108 (emacs_mule_char): New argument ID. Change callers.
26109 (decode_coding_emacs_mule, decode_coding_iso_2022)
26110 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26111 Produce charset annotation data in coding->charbuf.
26112 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26113 to charset annotation data in coding->charbuf.
26114 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26115 coding->common_flags if the coding system is iso-2022 based and
26116 uses designation.
26117 (produce_composition): Adjust for the new annotation data format.
26118 (produce_charset): New function.
26119 (produce_annotation): Handle charset annotation.
bba3e508
SM
26120 (handle_composition_annotation, handle_charset_annotation):
26121 New functions.
aac0c6e3
MR
26122 (consume_chars): Handle charset annotation. Utilize the above two
26123 functions.
26124 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26125 buffer, get the deleted text as a string and set
26126 coding->src_object to that string.
26127 (detect_coding, detect_coding_system): Use the new struct
26128 coding_detection_info.
26129
26130 * coding.h (struct coding_detection_info): New structure.
26131 (struct coding_system): Adjust prototype of the member `detector'.
26132 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26133
261342008-02-01 Kenichi Handa <handa@m17n.org>
26135
26136 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26137
261382008-02-01 Dave Love <fx@gnu.org>
26139
26140 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26141 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26142 to new local and nullify apropos_accumulate before returning.
26143 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26144
261452008-02-01 Kenichi Handa <handa@m17n.org>
26146
26147 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26148 correctly.
e3eea1fc 26149
aac0c6e3
MR
261502008-02-01 Dave Love <fx@gnu.org>
26151
26152 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26153
261542008-02-01 Kenichi Handa <handa@m17n.org>
26155
26156 The following changes are to make character composition happen
26157 automatically on displaying.
26158
26159 * Makefile.in (lisp, shortlisp): Add composite.elc.
26160
26161 * composite.h (Qauto_composed, Vauto_composition_function)
26162 (Qauto_composition_function): Extern them.
26163
26164 * composite.c (Vcomposition_function_table)
26165 (Qcomposition_function_table): Delete variables.
26166 (Qauto_composed, Vauto_composition_function)
26167 (Qauto_composition_function): New variables.
26168 (run_composition_function): Don't call
26169 compose-chars-after-function.
26170 (update_compositions): Clear `auto-composed' text property.
26171 (compose_chars_in_text): Delete this function.
26172 (syms_of_composite): Staticpro Qauto_composed and
26173 Qauto_composition_function. Declare Vauto_composition_function as
26174 a Lisp variable.
26175
26176 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26177
26178 * xdisp.c (it_props): Add an entry for Qauto_composed.
26179 (handle_auto_composed_prop): New function.
26180
26181 * xselect.c (selection_data_to_lisp_data): Don't call
26182 compose_chars_in_text.
26183
261842008-02-01 Dave Love <fx@gnu.org>
26185
26186 * keyboard.c (read_char): Modify checking around use of
26187 Vkeyboard_translate_table.
26188
26189 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26190 and fix C types.
26191
261922008-02-01 Kenichi Handa <handa@m17n.org>
26193
26194 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26195 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26196 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26197 the case that the last byte is '\r' correctly.
26198 (decode_coding): Flush out the unprocessed data correctly.
26199 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26200
262012008-02-01 Dave Love <fx@gnu.org>
26202
26203 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26204 Add XK_ISO... case.
26205 (xaw_scroll_callback): Revert last change.
26206
262072008-02-01 Kenichi Handa <handa@m17n.org>
26208
26209 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26210
262112008-02-01 Kenichi Handa <handa@m17n.org>
26212
26213 * xfaces.c (Vface_resizing_fonts): New variable.
26214 (struct font_name): New member `resizing_ratio'.
26215 (font_resizing_ratio): New function.
26216 (split_font_name): Set font->resizing_ratio.
26217 (better_font_p): Pay attention to font->resizing_ratio.
26218 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26219 RESX, and RESY fields.
26220 (try_alternative_families): Try scalable fonts if
26221 Vscalable_fonts_allowed is not Qt.
26222 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26223
262242008-02-01 Dave Love <fx@gnu.org>
26225
26226 * xterm.c (xaw_scroll_callback): Cast correctly.
26227
262282008-02-01 Dave Love <fx@gnu.org>
26229
26230 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26231 (lispy_kana_keys): Comment out.
26232 (make_lispy_event) [XK_kana_A]: Comment out.
26233
26234 * xterm.c (xaw_scroll_callback): Cast call_data.
26235 (XTread_socket): Deal with ASCII keysyms.
26236 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26237
262382008-02-01 Dave Love <fx@gnu.org>
26239
26240 * xterm.c (Vx_keysym_table): New.
26241 (syms_of_xterm): Initialize it.
26242 (XTread_socket): Use it.
26243 From head: Eliminate incorrect optimization that tried to avoid
26244 decoding the output of X*LookupString.
26245 (x_get_font_repertory): Delete charset declaration.
26246
262472008-02-01 Kenichi Handa <handa@m17n.org>
26248
26249 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26250 return 0.
bba3e508
SM
26251 (Fdefine_coding_system_internal):
26252 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
26253
262542008-02-01 Dave Love <fx@gnu.org>
26255
26256 * coding.c (Fcheck_coding_system): Doc fix.
26257
26258 * editfns.c (Finsert_byte): Return a proper value.
26259
262602008-02-01 Kenichi Handa <handa@m17n.org>
26261
bba3e508
SM
26262 * coding.c (decode_coding): Fix args to translate_chars.
26263 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
26264 (encode_coding): Fix args to translate_chars. Pay attention to
26265 Vstandard_translation_table_for_encode.
26266
26267 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26268 SINGLE_BYTE_CHAR_P.
26269
26270 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26271 not by SINGLE_BYTE_CHAR_P.
26272
26273 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26274 SINGLE_BYTE_CHAR_P.
26275
26276 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26277 SINGLE_BYTE_CHAR_P.
26278
26279 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26280 by SINGLE_BYTE_CHAR_P.
26281
26282 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26283 SINGLE_BYTE_CHAR_P.
26284
262852008-02-01 Dave Love <fx@gnu.org>
26286
26287 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26288
262892008-02-01 Dave Love <fx@gnu.org>
26290
26291 * fns.c (Flanginfo): Fix typo.
26292
26293 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26294
262952008-02-01 Kenichi Handa <handa@m17n.org>
26296
26297 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26298 (detect_coding_emacs_mule, detect_coding_iso_2022)
26299 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26300 incomplete byte sequence. Don't update *mask when correctly detected.
26301 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26302 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26303 (detect_coding, detect_coding_system): Adjust for the changes above.
26304
263052008-02-01 Kenichi Handa <handa@m17n.org>
26306
26307 * character.c (char_string): Rename from
26308 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26309 (string_char): Rename from string_char.
26310
26311 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26312 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
26313 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26314 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
26315
263162008-02-01 Dave Love <fx@gnu.org>
26317
26318 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26319
263202008-02-01 Kenichi Handa <handa@m17n.org>
26321
26322 * keymap.c (push_key_description): Pay attention to force_multibyte.
26323
26324 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26325
263262008-02-01 Dave Love <fx@gnu.org>
26327
26328 * charset.c (define_charset_internal): Rename `supprementary'.
26329
26330 * Makefile.in (lisp, shortlisp): Remove latin-N.
26331
263322008-02-01 Dave Love <fx@gnu.org>
26333
26334 * xfns.c (x_window, x_window): Use use_xim.
26335
26336 * xterm.c (use_xim): Initialize.
26337 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26338 (x_term_init): Maybe set use_xim.
26339
26340 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26341
263422008-02-01 Kenichi Handa <handa@m17n.org>
26343
26344 * search.c (search_buffer): Fix case-fold-search of multibyte
26345 characters.
26346 (boyer_moore): Rename the last argument to char_high_bits.
26347
263482008-02-01 Kenichi Handa <handa@m17n.org>
26349
26350 * xdisp.c (display_string): Fix for the case of zero width glyph.
26351
26352 * xfns.c (x_set_font): Change the error message of the case that
26353 x_new_fontset returns Qt.
26354
26355 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26356 (Finternal_set_lisp_face_attribute): Use signal_error for the
26357 error of invalid fontset.
26358
26359 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26360 fontset, return Qt.
26361
263622008-02-01 Dave Love <fx@gnu.org>
26363
26364 * unexelf.c (unexec): Make .got handling not SGI-specific.
26365
26366 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26367
26368 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26369
26370 * keyboard.c (read_key_sequence): Fix type error.
26371
bba3e508
SM
26372 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26373 Fix type error.
aac0c6e3
MR
26374
26375 * fontset.c (fontset_add): Return Lisp_Object.
26376
263772008-02-01 Dave Love <fx@gnu.org>
26378
26379 * charset.h (charset_ordered_list_tick): Declare extern.
26380
263812008-02-01 Kenichi Handa <handa@m17n.org>
26382
26383 The following changes (and some of 2008-02-01 changes of mine) are
26384 for handling syntax, category, and case conversion for unibyte
26385 characters by converting them to multibyte on the fly. With these
26386 changes, we don't have to setup syntax and case tables for unibyte
26387 characters in each language environment.
26388
26389 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26390 multibyte if necessary.
26391
26392 * bytecode.c (Fbyte_code): Likewise.
26393
26394 * character.h (LEADING_CODE_LATIN_1_MIN)
26395 (LEADING_CODE_LATIN_1_MAX): New macros.
26396 (unibyte_to_multibyte_table): Extern it.
26397 (unibyte_char_to_multibyte): New macro.
26398 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26399 (CHAR_LEADING_CODE): New macro.
26400 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26401
26402 * character.c (unibyte_to_multibyte_table): New variable.
26403 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26404 (multibyte_char_to_unibyte): If C is an eight-bit character,
26405 convert it to the corresponding byte value.
26406
26407 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26408 not 1, signals an error. Update the elements of
26409 unibyte_to_multibyte_table.
26410 (init_charset_once): Initialize unibyte_to_multibyte_table.
26411 (syms_of_charset): Define the charset `iso-8859-1'.
26412
26413 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26414 as is without converting it to unibyte. In a unibyte buffer,
26415 convert C to multibyte before checking the syntax.
26416
26417 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26418
26419 * minibuf.c (Fminibuffer_complete_word): Use the macro
26420 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26421
26422 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26423
26424 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26425 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26426 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26427 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26428 non-emacs case.
26429 (PATFETCH): Convert an eight-bit char to multibyte.
26430 (HANDLE_UNIBYTE_RANGE): New macro.
26431 (regex_compile): Setup the compiled pattern for multibyte chars
26432 even if the given regex string is unibyte. Use PATFETCH_RAW
26433 instead of PATFETCH in many places. To handle `charset'
26434 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26435 only for ASCII chars.
26436 (analyse_first) <exactn>: Simplify because the compiled pattern
26437 is multibyte.
26438 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26439 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26440 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26441 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26442 multibyte always 1.
26443 (re_search_2): In emacs, set the locale variable multibyte to 1,
26444 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26445 to decide the multibyteness of STR1 and STR2.
26446 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26447 before translating and checking fastmap.
26448 (TARGET_CHAR_AND_LENGTH): New macro.
26449 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26450 to 1, otherwise to 0. New local variable target_multibyte.
26451 Check it to decide the multibyteness of STR1 and STR2.
26452 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26453 <charset, charset_not>: If multibyte is nonzero, check fastmap
26454 only for ASCII chars. Call bcmp_translate with
26455 target_multibyte, not with multibyte.
26456 <begline>: Declare the local variable C as `unsigned'.
26457 (bcmp_translate): Change the last arg name to target_multibyte.
26458
26459 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26460 the regexp pattern and the matching target. Set cp->buf.multibyte
26461 to the multibyteness of the regexp pattern. Set
26462 cp->but.target_multibyte to the multibyteness of the matching target.
26463 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26464 FETCH_STRING_CHAR_ADVANCE.
26465 (Freplace_match): Convert unibyte chars to multibyte.
26466
26467 * syntax.c (char_quoted, back_comment, scan_words)
26468 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26469 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26470 unibyte chars to multibyte.
26471 (skip_chars): Delete the arg syntaxp, and move the code for
26472 handling syntaxes to skip_syntaxes. Change callers.
26473 Fix the case that the multibyteness of STRING and the current
26474 buffer doesn't match.
26475 (skip_syntaxes): New function.
26476 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26477 SINGLE_BYTE_CHAR_P.
26478
264792008-02-01 Kenichi Handa <handa@m17n.org>
26480
26481 * xfaces.c (QCfontset): New variable.
26482 (LFACE_FONTSET): New macro.
26483 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26484 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26485 (Finternal_set_lisp_face_attribute)
26486 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26487 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26488 check also LFACE_FONTSET_INDEX.
26489 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26490 attrs[LFACE_FONT_INDEX].
26491 (syms_of_xfaces): Intern and staticpro QCfontset.
26492
26493 * dispextern.h (enum lface_attribute_index): New member
26494 LFACE_FONTSET_INDEX.
26495
26496 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26497
264982008-02-01 Kenichi Handa <handa@m17n.org>
26499
26500 * coding.c (coding_set_destination): Fix coding->destination for
26501 the case converting a region.
26502 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26503 (encode_coding_object): Fix coding->dst_pos and
26504 coding->dst_pos_byte for the case converting a region.
26505
26506 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26507
26508 * character.h (BYTE8_STRING): New macro.
26509
26510 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26511
265122008-02-01 Kenichi Handa <handa@m17n.org>
26513
26514 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26515 characters by octal form.
26516
26517 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26518
26519 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26520 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26521 _fetch_multibyte_char_len.
26522 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26523
26524 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26525
26526 * casefiddle.c (casify_object): Simplify. Handle the case that
26527 the case conversion change the byte length.
26528 (casify_region): Likewise.
26529
26530 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26531
26532 * character.c (_fetch_multibyte_char_len): Delete this variable.
26533 (syms_of_character): Setup Vprintable_chars.
26534
26535 * editfns.c (Fchar_equal): Fix for the unibyte case.
26536 (Finsert_byte): New function.
26537 (syms_of_editfns): Defsubr it.
26538
26539 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26540 of direct code 0x3ffff.
26541
26542 * search.c (Freplace_match): Fix for the unibyte case.
26543
265442008-02-01 Kenichi Handa <handa@m17n.org>
26545
26546 * lread.c (safe_to_load_p): Fix the logic.
26547
26548 * syntax.c (scan_words): Don't treat characters belonging to
26549 different scripts as constituting a word.
26550
26551 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26552
26553 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26554
26555 * emacs.c (main): In the case of --unibyte, instead of aborting on
26556 finding non-empty buffer, make it unibyte.
26557
265582008-02-01 Kenichi Handa <handa@m17n.org>
26559
26560 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26561 to create a fontset.
26562
265632008-02-01 Dave Love <fx@gnu.org>
26564
26565 * character.c (Funibyte_char_to_multibyte): Doc fix.
26566
26567 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26568
265692008-02-01 Kenichi Handa <handa@m17n.org>
26570
26571 * fontset.c (fontset_add): Make the type `int'.
26572 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26573
26574 * character.c (unibyte_char_to_multibyte)
26575 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26576 charset_unibyte, not charset_primary.
26577
26578 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26579
26580 * charset.c (charset_unibyte): Rename from charset_primary.
26581 (Funibyte_charset): Rename from Fprimary_charset.
26582 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26583 (syms_of_charset): Adjust for the above changes.
26584
26585 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26586 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26587 it->multibyte_p is zero.
26588
26589 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26590 Delete extern.
26591
265922008-02-01 Kenichi Handa <handa@m17n.org>
26593
26594 * coding.c (Fdefine_coding_system_internal): Fix category setting
26595 for a coding system of type iso-2022.
26596
265972008-02-01 Kenichi Handa <handa@m17n.org>
26598
26599 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26600
266012008-02-01 Kenichi Handa <handa@m17n.org>
26602
26603 * syntax.c (Vnext_word_boundary_function_table): New variable.
26604 (next-word-boundary-function-table): Declare it as a Lisp variable
26605 in syms_of_syntax.
26606 (scan_words): Call functions in Vnext_word_boundary_function_table
26607 if any.
26608
26609 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26610
26611 * fontset.c (fs_load_font): If fontp->charset is not negative,
26612 return fontp without setting its members.
26613
266142008-02-01 Dave Love <fx@gnu.org>
26615
26616 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26617
26618 * m/sparc.h (HAVE_ALLOCA): Delete.
26619
26620 * s/irix6-5.h: Don't include strings.h.
26621 (bcopy, bzero, bcmp): Don't undef.
26622
26623 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26624
26625 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26626 (TIOCSIGSEND): Don't test IRIX6.
26627 (bcopy, bzero, bcmp): Define conditionally.
26628
266292008-02-01 Kenichi Handa <handa@m17n.org>
26630
26631 * buffer.c (Qas, Qmake, Qto): New variables.
26632 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26633 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26634
26635 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26636 we are inserting a process output into a multibyte buffer.
26637
26638 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26639 multibyte_char_to_unibyte.
26640
26641 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26642 by the primary charset, make it eight-bit char.
26643 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
26644
26645 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
26646 (charset_8_bit__control, charset_8_bit_graphic)
26647 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
26648 (define_charset_internal): New function.
26649 (syms_of_charset): Call define_charset_internal for pre-defined
26650 charsets.
26651
26652 * charset.h (charset_8_bit): Extern it.
26653
26654 * coding.c (make_conversion_work_buffer): Adjust for the change
26655 of Fset_buffer_multibyte.
26656 (encode_coding_raw_text): Increment p0 in the loop.
26657
26658 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
26659
bba3e508
SM
26660 * xdisp.c (setup_echo_area_for_printing, set_message_1):
26661 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
26662
26663 * fns.c (Fstring_to_multibyte): New function.
26664 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
26665
266662008-02-01 Dave Love <fx@gnu.org>
26667
26668 * xfns.c (x_put_x_image): Declare args.
26669
26670 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
26671 (try_font_list): Declare an arg.
26672
26673 * xdisp.c (message2_nolog, set_message): Declare an arg.
26674
26675 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
26676
26677 * syntax.c (scan_sexps_forward): Declare an arg.
26678
26679 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
26680 Declare an arg.
26681
26682 * lisp.h (Fnew_fontset): Declare.
26683
26684 * keymap.c (push_key_description): Call CHARACTERP correctly.
26685
26686 * fontset.c (fontset_add): Declare args. Call make_number correctly.
26687 (face_for_char): Delete unused vars.
26688 (Fset_fontset_font): Doc fix. Delete unused vars.
26689
26690 * doc.c (Fsubstitute_command_keys): Delete unused vars.
26691
26692 * composite.c (update_compositions): Declare arg.
26693
26694 * cm.c (calccost, cmgoto): Declare args.
26695
26696 * charset.c: Remove `emacs' conditional. Doc fixes.
26697 (map_char_table_for_charset): Declare.
26698
26699 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
26700
26701 * ccl.c: Remove `emacs' conditional.
26702
267032008-02-01 Kenichi Handa <handa@m17n.org>
26704
26705 The following changes are to allow specifying multiple font
26706 patterns for a character range (specified by script or charset).
26707
26708 * Makefile.in (abbrev.o): Depend on syntax.h.
26709 (xfaces.o): Depend on charset.h.
26710
26711 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
26712 SINGLE_BYTE_CHAR_P.
26713
26714 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
26715
26716 * character.h (Vchar_script_table): Extern it.
26717
26718 * character.c (Vscript_alist): Delete.
26719 (Vchar_script_table, Qchar_script_table): New variable.
26720 (syms_of_character): Declare Vchar_script_table as a lisp variable
26721 and initialize it.
26722
26723 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
26724 have property char-table-extra-slots, make no extra slot.
26725
26726 * dispextern.h (struct face): Delete member `charset'.
26727 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
26728 SINGLE_BYTE_CHAR_P.
26729 (choose_face_font, lookup_non_ascii_face, font_name_registry):
26730 Add prototypes.
26731 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
26732 (generate_ascii_font_name): Rename from generate_ascii_font.
26733
26734 * fontset.h (get_font_repertory_func): New prototype.
26735 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
26736 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
26737
26738 * fontset.c (Qprepend, Qappend): New variables.
26739 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
26740 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
26741 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
26742 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
26743 (fontset_ref_and_range, fontset_add, reorder_font_vector)
26744 (load_font_get_repertory): New functions.
26745 (fontset_set): Delete.
26746 (fontset_face): New arg FACE. Return face ID, not face.
26747 Complete re-write to handle new fontset structure. Change caller.
26748 (free_face_fontset): Use ASET istead of AREF (X) = Y.
26749 (face_for_char): Don't call lookup_face.
26750 (make_fontset_for_ascii_face): New arg FACE.
26751 (fs_load_font): New arg CHARSET_ID. Don't check
26752 Vfont_encoding_alist here.
26753 (find_font_encoding): New function.
26754 (list_fontsets): Use STRINGP, not ! NILP.
26755 (accumulate_script_ranges): New function.
bba3e508
SM
26756 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
26757 Completely re-written to handle new fontset structure.
aac0c6e3 26758 (Ffontset_font): Return a copy of element.
bba3e508
SM
26759 (syms_of_fontset): Define symbols Qprepend and Qappend.
26760 Fix docstring of font-encoding-alist.
aac0c6e3
MR
26761
26762 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
26763 (Fset_fotset_font): Fix arguments to 5.
26764
26765 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
26766
26767 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
26768 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26769 (highlight_trailing_whitespace): Adjust for the change of
26770 lookup_named_face.
26771
26772 * xfaces.c: Include charset.h.
26773 (load_face_font): Delete argument C. Change caller.
26774 (generate_ascii_font_name): Rename from generate_ascii_font.
26775 (font_name_registry): New function.
26776 (cache_face): Store ascii faces before non-ascii faces in buckets.
26777 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
26778 Lookup only ascii faces.
26779 (lookup_non_ascii_face): New function.
26780 (lookup_named_face): Delete argument C. Change caller.
26781 (lookup_derived_face): Delete argument C. Change caller.
26782 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
26783 a string, just call font_list with it.
26784 (choose_face_font): Delete arguments FACE and C. New arg
26785 FONT_SPEC. Change caller.
26786 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
26787 Change caller.
26788 (realize_non_ascii_face): New function.
26789 (realize_x_face): Call load_face_font here.
26790 (realize_tty_face): Delete argument C. Change caller.
26791 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
26792 get a face ID.
26793 (dump_realized_face): Don't print charset of FACE.
26794
26795 * xfns.c (x_set_font): Always call x_new_fontset and
26796 store_frame_parameter.
26797 (Fx_create_frame): Call x_new_fontset, not x_new_font.
26798 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
26799
26800 * xterm.h (x_get_font_repertory): Extern it.
26801
26802 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26803 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26804 it->multibyte_p is zero.
26805 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26806 (x_new_fontset): If FONTSETNAME doesn't match any existing
26807 fontsets, create a new one.
26808 (x_get_font_repertory): New function.
26809
268102008-02-01 Kenichi Handa <handa@m17n.org>
26811
26812 * coding.c (Ffind_coding_systems_region_internal): Detect an
26813 ASCII only string correctly.
26814
26815 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26816 version is 0.
26817
268182008-02-01 Kenichi Handa <handa@m17n.org>
26819
26820 * lread.c: Include "coding.h".
26821 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26822 (load_each_byte, unread_char): New variables.
26823 (readchar_backlog): Delete.
26824 (readchar): Return a character unless load_each_byte is nonzero.
26825 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26826 cons. If unread_char is not -1, simply return it.
26827 (unreadchar): Handle the case that readcharfun is
26828 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26829 (read_multibyte): Delete.
26830 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26831 (read_emacs_mule_char): New functions.
26832 (Fload): Even if the file doesn't have the extension ".elc", if
26833 safe_to_load_p returns a positive version number, assume that the
26834 file contains bytecompiled code. If the version is less than 22,
26835 load the file while decoding multibyte sequences by emacs-mule.
26836 (readevalloop): Don't use readchar_backlog.
26837 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26838 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26839 (read_escape): Delete the arg BYTEREP.
26840 (read1): Set load_each_byte to 1 temporarily while handling
26841 #@NUMBER. Don't call read_multibyte.
26842 (read_vector): Call Fread with a cons. If readcharfun is
26843 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26844 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26845 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26846 and Qload_force_doc_strings.
26847
268482008-02-01 Kenichi Handa <handa@m17n.org>
26849
bba3e508
SM
26850 * xdisp.c (face_before_or_after_it_pos):
26851 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
26852
268532008-02-01 Kenichi Handa <handa@m17n.org>
26854
26855 * character.h (TRAILING_CODE_P): New macro.
26856 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26857 (string_char_with_unification): Fix prototype.
26858 (Vscript_alist): Extern it.
26859
26860 * character.c (Vscript_alist): New variable.
26861 (string_char_with_unification, str_as_unibyte)
26862 (string_escape_byte8): Add `const' to local variables.
26863 (syms_of_character): Declare script-alist as a Lisp variable.
26864
26865 * charset.h (Vcharset_ordered_list): Extern it.
26866 (charset_ordered_list_tick): Extern it.
26867 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26868 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26869 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26870 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26871 (Funify_charset): Adjust for the change of Funify_charset.
26872
26873 * charset.c (charset_ordered_list_tick): New variable.
26874 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26875 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 26876 deunify instead of unify a charset.
aac0c6e3
MR
26877 (string_xstring_p): Add `const' to local variables.
26878 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
26879 (encode_char): Adjust for the change of Funify_charset.
26880 Fix detecting of invalid code.
aac0c6e3
MR
26881 (Fset_charset_priority): Increment charset_ordered_list_tick.
26882 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26883 and TO_CODE.
26884
26885 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26886 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26887 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26888 (decode_coding_ccl, consume_chars)
26889 (Ffind_coding_systems_region_internal)
26890 (Fcheck_coding_systems_region): Add `const' to local variables.
26891
26892 * print.c (print_object): Use octal form for printing the
26893 contents of a bool vector.
26894
268952008-02-01 Dave Love <fx@gnu.org>
26896
26897 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26898 <version == 20>: Refuse to load.
26899
269002008-02-01 Dave Love <fx@gnu.org>
26901
26902 * fns.c: Move coding.h.
26903 (Qcodeset, Qdays, Qmonths): New.
26904 (concat): Use CHARACTERP instead of INTEGERP.
26905 (Flocale_codeset): Delete.
26906 (Flanginfo): New function.
26907 (syms_of_fns): Change accordingly.
26908
26909 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26910
269112008-02-01 Dave Love <fx@gnu.org>
26912
bba3e508
SM
26913 * casetab.c (init_casetab_once, init_casetab_once):
26914 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26915
26916 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26917
26918 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26919
26920 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26921 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26922 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26923
26924 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26925
26926 * coding.c (ENCODE_DESIGNATION, decode_eol)
26927 (make_conversion_work_buffer, code_conversion_restore)
26928 (Fdefine_coding_system_internal): Convert Lisp types.
26929 (code_conversion_restore): Use EQ, not ==.
26930 (Fencode_coding_string): Fix code_convert_string call.
26931
26932 * coding.h (code_convert_region): Fix prototype.
26933
26934 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26935
26936 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26937 (Ffontset_info): Convert Lisp types.
26938
26939 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26940
26941 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26942
26943 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26944
26945 * chartab.c: Include "...h", not <...h> in some cases.
26946
26947 * callproc.c (Fcall_process): Remove unused variables.
26948
269492008-02-01 Dave Love <fx@gnu.org>
26950
26951 * coding.c (Fset_coding_system_priority): Allow null arg list.
26952
269532008-02-01 Dave Love <fx@gnu.org>
26954
26955 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26956 (Fself_insert_and_exit): Use CHARACTERP.
26957
26958 * callproc.c (Fcall_process): Remove unused vars.
26959
26960 * xterm.c (XTread_socket): Add extra dead keysyms.
26961
26962 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26963
26964 * dispextern.h: Remove prototypes for redraw_frame,
26965 redraw_garbaged_frames.
26966
26967 * cmds.c (Fself_insert_command): Use CHARACTERP.
26968
26969 * chartab.c (make_sub_char_table): Remove unused var.
26970 (Fset_char_table_default, Fmap_char_table): Doc fix.
26971
26972 * keymap.c (access_keymap): Remove generic char code.
26973 (push_key_description): Use CHARACTERP.
26974
269752008-02-01 Dave Love <fx@gnu.org>
26976
26977 * charset.c: Doc fixes.
26978 (Funify_charset): Extra checking.
26979
269802008-02-01 Dave Love <fx@gnu.org>
26981
26982 * lread.c: Remove some unused variables.
26983 (safe_to_load_p): If safe, return the magic number version byte.
26984 (Fload): Maybe use load-with-code-conversion.
26985
269862008-02-01 Kenichi Handa <handa@m17n.org>
26987
26988 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26989 of category_set for characters out of the range.
26990 Avoid unnecessary modification.
aac0c6e3
MR
26991
26992 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26993 Vchar_unify_table. The default value of the table is now nil.
26994
26995 * character.c (syms_of_character): Setup Vchar_width_table for
26996 eight-bit-control and raw-byte chars.
26997
bba3e508
SM
26998 * charset.h (enum define_charset_arg_index):
26999 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
27000 charset_arg_superset.
27001 (enum charset_attr_index): Delete charset_parents and add
27002 charset_subset and charset_superset.
27003 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27004 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27005 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27006 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27007 (CHARSET_SUPERSET): New macros.
27008 (charset_work): Extern it.
27009 (ENCODE_CHAR): Use charset_work.
27010 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27011 (map_charset_chars): Extern it.
27012
27013 * charset.c (load_charset_map): Set the default value of encoder
27014 and deunifier char-tables to nil.
bba3e508
SM
27015 (map_charset_chars): Change argument. Change callers.
27016 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
27017 (Fmap_charset_chars): New optional args from_code and to_code.
27018 (Fdefine_charset_internal): Adjust for the change of
27019 `define-charset' (:parents -> :subset or :superset).
27020 (charset_work): New variable.
27021 (encode_char, syms_of_charset): Adjust for the change of
27022 Fdefine_charset_internal.
27023 (Ffind_charset_string): Setup the vector `charsets' correctly.
27024
bba3e508
SM
27025 * chartab.c (sub_char_table_ref_and_range): New arg default.
27026 Fix the previous change.
aac0c6e3
MR
27027 (char_table_ref_and_range): Adjust for the above change.
27028 (map_sub_char_table_for_charset): New function.
27029 (map_char_table_for_charset): New function.
27030
27031 * keymap.c (describe_vector): Handle a char-table directly here.
27032 (describe_char_table): Delete.
27033
27034 * lisp.h (map_charset_chars): Delete.
27035
270362008-02-01 Dave Love <fx@gnu.org>
27037
27038 * fns.c (count_combining): Comment out (unused).
27039 (Flocale_codeset): New.
27040 (syms_of_fns): Defsubr it.
27041
27042 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27043 (size_t): Remove.
27044
270452008-02-01 Dave Love <fx@gnu.org>
27046
27047 * Makefile.in (chartab.o): Depend on charset.h.
27048
270492008-02-01 Kenichi Handa <handa@m17n.org>
27050
27051 * character.c (syms_of_character): Set the default value of
27052 Vprintable_chars to Qnil.
27053
270542008-02-01 Dave Love <fx@gnu.org>
27055
27056 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27057
270582008-02-01 Kenichi Handa <handa@m17n.org>
27059
27060 * charset.c (load_charset_map): Handle the case that from < to
27061 correctly.
27062
27063 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27064 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27065 Pay attention to raw-8-bit chars.
27066
270672008-02-01 Kenichi Handa <handa@m17n.org>
27068
27069 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27070 It is not bytecompiled now.
27071
27072 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27073 (charset_jisx0208): New variables.
27074 (Fdefine_charset_internal): Setup them if appropriate.
27075 (init_charset_once): Initialize them to -1.
27076
27077 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27078 (charset_jisx0208): Extern them.
27079
27080 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27081 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27082 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27083 (setup_iso_safe_charsets): Fix arguments to Fassq.
27084 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27085 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27086 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27087 (encode_coding_iso_2022): Change the 1st arg to
27088 ENCODE_ISO_CHARACTER to a variable.
27089
270902008-02-01 Kenichi Handa <handa@m17n.org>
27091
27092 * charset.h (enum define_charset_arg_index): New enums
27093 charset_arg_min_code and charset_arg_max_code.
27094 (struct charset): New member char_index_offset.
27095
27096 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27097 Take charset->char_index_offset into account.
27098 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27099 args[charset_arg_max_code]. Setup charset.char_index_offset.
27100 (syms_of_charset): Fix args to Fdefine_charset_internal.
27101
271022008-02-01 Dave Love <fx@gnu.org>
27103
27104 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27105
271062008-02-01 Dave Love <fx@gnu.org>
27107
27108 * coding.c: Doc fixes.
27109 (Fcoding_system_aliases): Fix return value.
27110 (Qmac): Remove (duplicated) definition.
27111
271122008-02-01 Dave Love <fx@gnu.org>
27113
362654a6
JB
27114 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27115 New functions.
aac0c6e3
MR
27116
27117 * character.c (Fstring): Doc fix.
27118
27119 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27120
362654a6 27121 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
27122 (font-encoding-alist): Doc fix.
27123
271242008-02-01 Dave Love <fx@gnu.org>
27125
27126 * term.c (costs_set): Declare static, non-initialized for pcc.
27127 (encode_terminal_code): Remove unused var.
27128
27129 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27130 for K&R.
27131
27132 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27133
27134 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27135 (suffixes): Move out of make_subsidiaries for K&R.
27136
27137 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27138
27139 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27140
271412008-02-01 Dave Love <fx@gnu.org>
27142
27143 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27144
27145 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27146
271472008-02-01 Yong Lu <lyongu@asia-infonet.com>
27148
27149 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27150
27151 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27152
271532008-02-01 Kenichi Handa <handa@m17n.org>
27154
27155 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27156 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27157
271582008-02-01 Kenichi Handa <handa@m17n.org>
27159
27160 * coding.c (decode_coding_charset): Adjust for the change of
27161 Fdefine_coding_system_internal.
27162 (Fdefine_coding_system_internal): For a coding system of
27163 `charset' type, store a list of charset IDs in
27164 `charset_attr_charset_valids' element of coding attributes.
27165
271662008-02-01 Kenichi Handa <handa@m17n.org>
27167
27168 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
27169 (emacs_mule_char): New arg src. Delete arg `composition'.
27170 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
27171 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27172 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27173 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
27174 (DECODE_EMACS_MULE_21_COMPOSITION):
27175 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
27176 sequence.
27177 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27178 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27179 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27180 and alt&rule composition.
27181 (decode_coding_iso_2022): Handle composition correctly.
27182 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27183
27184 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27185 re-defining a charset. If the charset has :emacs-mule-id, setup
27186 emacs_mule_bytes.
27187 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27188
271892008-02-01 Kenichi Handa <handa@m17n.org>
27190
27191 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27192 (encode_coding_big5, encode_coding_charset): If coding requires safe
27193 encoding, produce a character specified by
27194 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27195
271962008-02-01 Dave Love <fx@gnu.org>
27197
27198 * xterm.c (XSetIMValues): Declare.
27199
27200 * process.c: Conditionally include sys/wait.h, pty.h.
27201
27202 * print.c (print_object): Fix print format for 64-bit systems.
27203
27204 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27205
27206 * buffer.c (emacs_strerror): Declare.
27207
27208 * fontset.c (Fclear_face_cache): Declare.
27209 (accumulate_font_info): Comment-out (unused).
27210 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27211 variables.
27212
27213 * character.h (string_escape_byte8): Declare.
27214
bba3e508
SM
27215 * charset.c (load_charset_map, load_charset_map_from_file):
27216 Remove unused vars.
aac0c6e3
MR
27217 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27218 (Fmap_charset_chars): Doc fix.
27219
27220 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27221 (Fset_coding_system_priority, Fset_coding_system_priority)
27222 (Fdefine_coding_system_internal): Doc fix.
27223
272242008-02-01 Dave Love <fx@gnu.org>
27225
27226 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27227
272282008-02-01 Kenichi Handa <handa@m17n.org>
27229
27230 * character.c (string_escape_byte8): Make multibyte string with
27231 correct size.
27232
27233 * charset.c (Fmake_char): Delete unnecessary code.
27234
272352008-02-01 Kenichi Handa <handa@m17n.org>
27236
27237 * xfns.c (x_encode_text): Allocate coding.destination here, and
27238 call encode_coding_object with dst_object Qnil.
27239
27240 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27241 multibyte form correctly.
27242
27243 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27244 against Vfont_encoding_alist.
27245
27246 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27247 handling of charset list.
27248 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27249 (decode_coding_object): Move point to coding->dst_pos before
27250 calling post-read-conversion function.
27251 (encode_coding_object): Give correct arguments to
27252 pre-write-conversion. Ignore the return value of
27253 pre-write-conversion function. Pay attention to the case that
27254 pre-write-conversion changes the current buffer. If dst_object is
27255 Qt, even if coding->src_bytes is zero, allocate at least one byte
27256 to coding->destination.
27257
27258 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27259
27260 * charset.c (Fmake_char): Make it more backward compatible.
27261 (Fmap_charset_chars): Fix docstring.
27262
272632008-02-01 Dave Love <fx@gnu.org>
27264
27265 * coding.c: Doc fixes.
27266 (Fdefine_coding_system_alias): Use names, not symbols, in
27267 coding-system-alist.
27268
272692008-02-01 Kenichi Handa <handa@m17n.org>
27270
27271 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27272 of calling free_realized_face.
27273
272742008-02-01 Yong Lu <lyongu@asia-infonet.com>
27275
27276 * charset.c (read_hex): Don't treat SPC as a comment starter.
27277 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27278 (Fdecode_char): Fix typo.
27279
272802008-02-01 Kenichi Handa <handa@m17n.org>
27281
27282 * charset.h (struct charset): New member `code_space_mask'.
27283
27284 * coding.c (coding_set_source): Delete the local variable beg_byte.
27285 (encode_coding_charset, Fdefine_coding_system_internal):
27286 Delete the local variable charset.
bba3e508
SM
27287 (Fdefine_coding_system_internal):
27288 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27289
27290 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27291 member to check if CODE is valid or not.
27292 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27293 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27294 is within the range of charset->min_code and carset->max_code.
27295
272962008-02-01 Dave Love <fx@gnu.org>
27297
27298 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27299
27300 * dispextern.h (generate_ascii_font): Fix return type.
27301
27302 * xfaces.c (generate_ascii_font): Fix arg declaration.
27303
27304 * coding.c (coding_inherit_eol_type)
27305 (Fset_terminal_coding_system_internal)
27306 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27307
273082008-02-01 Kenichi Handa <handa@m17n.org>
27309
bba3e508
SM
27310 * coding.c (decode_coding_charset, encode_coding_charset):
27311 Handle multiple charsets correctly.
aac0c6e3
MR
27312
273132008-02-01 Kenichi Handa <handa@m17n.org>
27314
27315 * search.c (boyer_moore): Fix handling of multibyte character
27316 translation.
27317
27318 * xdisp.c (display_mode_element): When the variable `elt' is
27319 changed, update `this' and `lisp_string'.
27320
273212008-02-01 Kenichi Handa <handa@m17n.org>
27322
27323 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27324
27325 * callproc.c (Fcall_process): Be sure to give the current buffer
27326 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27327
27328 * charset.c (struct charset_map_entries): New struct.
27329 (load_charset_map): Rename from parse_charset_map. New args
27330 entries and n_entries. Change caller.
27331 (load_charset_map_from_file): Rename from load_charset_map.
27332 Change caller. New arg control_flag. Call load_charset_map at
27333 the tail.
27334 (load_charset_map_from_vector): New function.
27335 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27336 (encode_char): If the charset is compact, change a character index
27337 to a code point.
27338
27339 * coding.c (coding_alloc_by_making_gap): Check the case that the
27340 source and destination are the same correctly.
27341 (decode_coding_raw_text): Set coding->consumed_char and
27342 coding->consumed to 0.
27343 (produce_chars): If coding->chars_at_source is nonzero, update
27344 coding->consumed_char and coding->consumed before calling
27345 alloc_destination.
27346 (Fdefine_coding_system_alias): Register ALIAS in
27347 Vcoding_system_alist.
27348 (syms_of_coding): Define `no-conversion' coding system at the tail.
27349
27350 * fileio.c (Finsert_file_contents): Set coding_system instead of
27351 val. If the current buffer is multibyte, always call
27352 decode_coding_gap.
27353
27354 * xfaces.c (try_font_list): Give higher priority to fontset's
27355 family than face's family.
27356
273572008-02-01 Kenichi Handa <handa@m17n.org>
27358
27359 * callproc.c (Fcall_process): Be sure to give the current buffer
27360 to decode_coding_c_string.
27361
27362 * xfaces.c (try_font_list): Give a family specified in a fontset
27363 higher priority than a family specified in a face.
27364
273652008-02-01 Kenichi Handa <handa@m17n.org>
27366
27367 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27368 Fix arguments to insert_from_buffer.
27369
27370 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27371
273722008-02-01 Kenichi Handa <handa@m17n.org>
27373
27374 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27375 (decode_coding_gap): Set coding->dst_multibyte correctly.
27376
273772008-02-01 Kenichi Handa <handa@m17n.org>
27378
27379 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27380 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27381 (encode_coding_utf_16): Substitute coding->default_char for
27382 non-Unicode characters.
27383 (decode_coding): Don't call record_insert here.
27384 (setup_coding_system): Initialize `surrogate' of
27385 coding->spec.utf_16 to 0.
27386 (EMIT_ONE_BYTE): Fix for multibyte case.
27387
27388 * insdel.c (insert_from_gap): Call record_insert.
27389
273902008-02-01 Kenichi Handa <handa@m17n.org>
27391
27392 * casefiddle.c (casify_region): Fix multibyte case.
27393
27394 * character.c (c_string_width): Add return type `int'.
27395 (char_string_with_unification): Delete arg ADVANCED.
27396
27397 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27398 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27399 (CHAR_STRING_ADVANCE): Make it do-while statement.
27400
27401 * chartab.c (sub_char_table_set_range): Optimize for the case
27402 DEPTH == 3. Add workaround code for a GCC optimization bug.
27403
27404 * charset.c (parse_charset_map): Remove an unused variable.
27405
27406 * coding.c: Delete unused variables.
27407
27408 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27409 earlier. If inserted is zero and the coding system doesn't
27410 require flushing, don't call decode_coding_gap.
27411
27412 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27413
274142008-02-01 Kenichi Handa <handa@m17n.org>
27415
27416 The following changes are for using Unicode as an internal
27417 character model, and use UTF-8 format for buffer/string
27418 representation.
27419
27420 * .gdbinit (xchartable): Adjust for the change of char table structure.
27421 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27422
27423 * Makefile.in (obj): Add character.o and chartab.o.
27424 (lisp, shortlisp): Remove utf-8.elc.
27425 (*.o): For many files, change dependency on charset.h to
27426 character.h, and add dependency on character.h.
27427 (character.o, chartab.o): New targets.
27428
27429 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27430 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27431 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27432 of "charset.h".
27433
27434 * dired.c, filelock.c: Include "character.h".
27435
27436 * alloc.c: Include "character.h" instead of "charset.h".
27437 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27438 (syms_of_alloc): Remove defsubr for Smake_char_table.
27439
27440 * buffer.c: Include "character.h" instead of "charset.h", don't
27441 include "coding.h".
27442 (Fset_buffer_multibyte): Adjust for UTF-8.
27443
27444 * buffer.h: EXFUN Fbuffer_live_p.
27445
27446 * callproc.c: Include "character.h" instead of "charset.h".
27447 (Fcall_process): Big change for the new code-conversion APIs.
27448
27449 * casetab.c: Include "character.h" instead of "charset.h".
27450 (set_canon, set_identity, shuffle): Adjust for the new
27451 map_char_table spec.
27452 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27453 accessing the char table structure.
27454
27455 * chartab.c: New file that implements char table.
27456
27457 * category.c: Include "character.h".
27458 (copy_category_entry): New function.
27459 (copy_category_table): Call map_char_table and copy_category_entry.
27460 (Fmake_category_table): Initialize all top-level slots.
27461 (char_category_set): New function.
27462 (modify_lower_category_set): Delete.
27463 (Fmodify_category_entry): Call char_table_ref_and_range.
27464
27465 * category.h (CATEGORY_SET): Just call char_category_set.
27466
27467 * ccl.c: Include "character.h".
27468 (Qccl, Qcclp): New variables.
27469 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27470 it's less than 256.
27471 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27472 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27473 and DST type.
27474 (ccl_driver): Change types of argument, adjust code accordingly.
27475 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27476 ccl_driver.
27477 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27478
27479 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27480 New members src_multibyte, dst_multibyte, consumed, and produced.
27481 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27482 (CODING_SPEC_CCL_PROGRAM): New macro.
27483 (ccl_driver): Update prototype.
27484 (Qccl, Qcclp, Fccl_program_p): Extern them.
27485 (CHECK_CCL_PROGRAM): New macro.
27486
27487 * character.c, character.h, chartab.c: New files.
27488
27489 * charset.c: Mostly re-written. Move character and multibyte sequence
27490 handling codes to character.c.
27491
27492 * charset.h: Mostly re-written. Move character and multibyte sequence
27493 handling codes to character.h.
27494
27495 * coding.c, coding.h: Mostly re-written.
27496
27497 * composite.c: Include "character.h" instead of "charset.h".
27498 (CHAR_WIDTH): Move to character.h.
27499 (HASH_KEY, HASH_VALUE): Delete.
27500
27501 * composite.h (enum composition_method): Change order of enumeration
27502 symbols.
27503
27504 * data.c: Include "character.h" instead of "charset.h".
27505 (Faref): Call CHAR_TABLE_REF for a char table.
27506 (Faset): Call CHAR_TABLE_SET for a char table.
27507
27508 * dispextern.h (free_realized_face, check_face_attribytes)
27509 (generate_ascii_font): Extern them.
27510 (free_realized_multibyte_face): Delete extern.
27511
27512 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27513 table structure.
27514
27515 * editfns.c: Include "character.h" instead of "charset.h".
27516 (Fchar_to_string): Always call CHAR_STRING.
27517
27518 * emacs.c (main): Call init_charset_once, init_charset,
27519 syms_of_chartab, and syms_of_character.
27520
27521 * fileio.c: Include "character.h" instead of "charset.h".
27522 (Finsert_file_contents): Big change for the new code-conversion API.
27523 (choose_write_coding_system, Fwrite_region): Likewise.
27524 (build_annotations_2): Delete.
27525 (e_write): Big change for the new code-conversion API.
27526
27527 * fns.c: Include "character.h" instead of "charset.h".
27528 (copy_sub_char_table): Move to chartab.c.
27529 (Fcopy_sequence): Call copy_char_table for a char table.
27530 (concat): Delete codes calling count_multibyte.
27531 (string_char_to_byte, string_byte_to_char): Adjust for the new
27532 multibyte form.
27533 (internal_equal): Adjust for the change of char table structure.
27534 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27535 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27536 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27537 (char_table_translate, optimize_sub_char_table)
27538 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27539 chartab.c.
27540 (char_table_ref_and_index): Delete.
27541 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27542 (Fmd5): Call preferred_coding_system instead of accessing
27543 Vcoding_category_list. Adjust for the new code-conversion API.
27544 (syms_of_fns): Move defsubr for char table related functions to
27545 chartab.c.
27546
27547 * fontset.c: Mostly re-written.
27548
27549 * fontset.h (struct font_info): Change type of the member encoding_type.
27550 (enum FONT_SPEC_INDEX): New enum.
27551 (fontset_font_pattern, fs_load_font): Update prototype.
27552 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27553
27554 * indent.c: Include "character.h" instead of "charset.h".
27555 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27556
27557 * insdel.c: Include "character.h" instead of "charset.h".
27558 (copy_text): Don't refer to Vnonascii_translation_table.
27559 (insert_from_gap): New function.
27560
27561 * keyboard.c: Include "character.h" instead of "charset.h".
27562 (command_loop_1): Never call direct_output_forward_char before
27563 a non-ASCII character.
27564 (read_char): If Vkeyboard_translate_table is a char table, always
27565 translate a character.
27566
27567 * keymap.c: Include "character.h".
27568 (store_in_keymap): Handle the case that IDX is a cons.
27569 (Fdefine_key): Handle the case that KEY is a cons and the car part
27570 is also a cons (range).
27571 (push_key_description): Adjust for the new character code.
27572 (describe_vector): Call describe_char_table for a char table.
27573 (describe_char_table): New function.
27574
27575 * keymap.h (describe_char_table): Extern it.
27576
27577 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27578 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27579 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27580 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27581 Delete.
27582 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27583 structure.
27584 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27585 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27586 (CHARTAB_SIZE_BITS_3): New macros.
27587 (chartab_size): Extern it.
27588 (struct Lisp_Char_Table): Re-design.
27589 (struct Lisp_Sub_Char_Table): New structure.
27590 (HASH_KEY, HASH_VALUE): Move from fns.c.
27591 (CHARACTERBITS): Define as 22.
27592 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27593 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27594 (GC_SUB_CHAR_TABLE_P): New macro.
27595 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 27596 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
27597 (init_character_once, syms_of_character, init_charset)
27598 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27599
27600 * lread.c: Include "character.h".
27601 (read_multibyte): New arg NBYTES.
27602 (read_escape): Change the meaning of returned *BYTEREP.
27603 (to_multibyte): Delete.
27604 (read1): Adjust the handling of char table and string.
27605
27606 * print.c: Include "character.h" instead of "charset.h".
27607 (print_string): Convert 8-bit raw bytes to octal form by
27608 string_escape_byte8.
27609 (print_object): Adjust for the new multibyte form. Print 8-bit
27610 raw bytes always in octal form. Handle sub char table correctly.
27611
27612 * process.c: Include "character.h" instead of "charset.h".
27613 (read_process_output, send_process): Adjust for the new
27614 code-conversion API.
27615
27616 * puresize.h (BASE_PURESIZE): Increase.
27617
27618 * regex.c: Include "character.h" instead of "charset.h".
27619 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27620 (regex_compile): Accept a range whose starting and ending
27621 character have different leading bytes.
27622 (analyse_first): Adjust for the above change.
27623
27624 * search.c: Include "character.h" instead of "charset.h".
27625 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27626 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27627
27628 * syntax.c: Include "character.h" instead of "charset.h".
27629 (syntax_parent_lookup): Delete.
27630 (Fmodify_syntax_entry): Accept a cons as CHAR.
27631 (skip_chars): Adjust for the new multibyte form.
27632 (init_syntax_once): Call char_table_set_range instead of directly
27633 accessing the structure of a char table.
27634
27635 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27636 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27637 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27638 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27639
27640 * term.c: Include "buffer.h" and "character.h".
27641 (encode_terminal_code, write_glyphs): Adjust for the new
27642 code-conversion API.
27643 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
27644
27645 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
27646
27647 * xdisp.c: Include "character.h".
27648 (get_next_display_element): Adjust for the new multibyte form.
27649 (disp_char_vector): Adjust for the new char table structure.
27650 (decode_mode_spec_coding): Adjust for the new structure of
27651 coding system.
27652 (decode_mode_spec): Adjust for the new code-conversion API.
27653
27654 * xfaces.c: Include "character.h" instead of "charset.h".
27655 (load_face_font): Adjust for the change of choose_face_font and
27656 FS_LOAD_FONT.
27657 (generate_ascii_font): New function.
27658 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
27659 (set_font_frame_param): Adjust for the change of choose_face_font.
27660 (free_realized_face): Make it public.
27661 (free_realized_faces_for_fontset): Rename from
27662 free_realized_multibyte_face. Free also faces realized for ASCII.
27663 (choose_face_font): Change arguments. Adjust for the change of
27664 fontset_font_pattern and FS_LOAD_FONT.
27665
27666 * xfns.c: Include "character.h".
27667 (x_encode_text): Adjust for the new code-conversion API.
27668
27669 * xselect.c: Don't include "charset.h".
27670 (selection_data_to_lisp_data): Adjust for the new code conversion API.
27671
27672 * xterm.c: Include "character.h".
27673 (x_encode_char): New argument CHARSET. Change caller.
27674 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
27675 Call ENCODE_CHAR instead of SPLIT_CHAR.
27676 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
27677 CHAR_WIDTH instead of CHARSET_WIDTH.
27678 (XTread_socket): Adjust for the new code-conversion API.
27679 (x_new_font): Adjust for the change of FS_LOAD_FONT.
27680 (x_load_font): Adjust for the change of struct font.
27681
276822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
27683
27684 * xfaces.c (face_at_buffer_position): Remove unused vars.
27685
276862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27687
27688 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
27689 Fix overflow checking.
27690
276912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27692
27693 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
27694 Cancel previous change.
27695
276962008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27697
27698 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
27699 ccl->eight_bit_control. Fix check for buffer overflow.
27700 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
27701 (ccl_driver): Initialize extra_bytes to 0.
27702
277032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27704
27705 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
27706 return it ORed with ctrl_modifier.
27707
277082008-01-29 Miles Bader <miles@gnu.org>
27709
27710 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
27711
277122008-01-28 Jason Rumney <jasonr@gnu.org>
27713
27714 * w32.c (stat): Don't double check for networked drive.
27715
277162008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
27717
27718 * window.c (run_window_configuration_change_hook): New function.
27719 Code extracted from set_window_buffer. Set the selected frame.
27720 (set_window_buffer): Use it.
27721 * window.h (run_window_configuration_change_hook): Declare.
27722 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
27723
27724 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
27725
277262008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
27727
27728 * Makefile.in: Remove references to unused macros.
27729
277302008-01-26 Eli Zaretskii <eliz@gnu.org>
27731
27732 * w32.c (g_b_init_get_sid_sub_authority)
27733 (g_b_init_get_sid_sub_authority_count): New static variables.
27734 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
27735 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
27736 (init_user_info): Use them to retrieve uid and gid.
27737 Use 500/513, the Windows defaults, as Administrator's uid/gid.
27738 (fstat): Use pw_uid and pw_gid from the_passwd structure for
27739 st_uid and st_gid of the file.
27740
277412008-01-26 Jason Rumney <jasonr@gnu.org>
27742
27743 * w32.c (logon_network_drive): New function.
27744 (stat): Use it.
27745
277462008-01-26 Chong Yidong <cyd@stupidchicken.com>
27747
27748 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
27749 invisible text covered with an ellipsis.
27750
277512008-01-25 Richard Stallman <rms@gnu.org>
27752
27753 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
27754 jump back to beginning. Move some other initializations after that.
27755 (Qwindow_text_change_functions, Vwindow_text_change_functions):
27756 New variables.
27757 (syms_of_xdisp): Init them.
27758
27759 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
27760
27761 * buffer.c (reset_buffer_local_variables):
27762 Implement `permanent-local-hook'.
27763 (Qpermanent_local_hook): New variable.
27764 (syms_of_buffer): Init and staticpro it.
27765
277662008-01-25 Michael Albinus <michael.albinus@gmx.de>
27767
27768 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
27769
277702008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
27771
27772 * fns.c (Fclrhash): Return TABLE.
27773
277742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27775
27776 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
27777 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
27778 is set even without positional changes.
27779 (x_scroll_bar_clear): Set bar->redraw_needed_p.
27780
27781 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
27782
277832008-01-23 Jason Rumney <jasonr@gnu.org>
27784
27785 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
27786
27787 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
27788 the unicode range available in MULE by locale-coding-system.
27789 Improve dbcs lead byte detection. Set event timestamp and modifiers
27790 earlier.
27791
277922008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27793
27794 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
27795 [MAC_OSX] (init_mac_osx_environment): Initialize it.
27796 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
27797 when used on child processes.
27798
277992008-01-21 Michael Albinus <michael.albinus@gmx.de>
27800
27801 * dbusbind.c (Fdbus_method_return_internal): Rename from
27802 Fdbus_method_return.
27803 (Fdbus_unregister_object): Move to dbus.el.
27804 (Fdbus_call_method, Fdbus_method_return_internal)
27805 (Fdbus_send_signal): Improve debug messages.
27806
278072008-01-20 Martin Rudalics <rudalics@gmx.at>
27808
27809 * undo.c (undo_inhibit_record_point): New variable.
27810 (syms_of_undo): Initialize it.
27811 (record_point): Don't record point when undo_inhibit_record_point
27812 is set.
27813
278142008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27815
27816 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27817
27818 * xdisp.c (Qauto_hscroll_mode): New var.
27819 (syms_of_xdisp): Initialize it.
27820 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27821 window's buffer.
27822 (hscroll_windows): Don't check automatic_hscrolling_p here.
27823
27824 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27825 vscroll if we're setting window-buffer to the value it already has.
27826
278272008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27828
27829 * m/intel386.h: Remove references to XENIX.
27830
278312008-01-17 Andreas Schwab <schwab@suse.de>
27832
27833 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27834 instead of HAVE_X86_64_LIB64_DIR.
27835 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27836
278372008-01-17 Glenn Morris <rgm@gnu.org>
27838
27839 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27840 to HAVE_X86_64_LIB64_DIR.
27841
278422008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27843
27844 * s/irix3-3.h:
27845 * s/irix4-0.h:
27846 * s/386-ix.h:
27847 * s/domain.h:
27848 * s/hpux9-x11r4.h:
27849 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27850
27851 * sysdep.c: Remove code containing references to symbols defined
27852 by unsupported systems.
27853
278542008-01-16 Glenn Morris <rgm@gnu.org>
27855
27856 * coding.c (select-safe-coding-system-function): Doc fix.
27857
278582008-01-15 Glenn Morris <rgm@gnu.org>
27859
27860 * config.in: Revert 2008-01-13 change: this is a generated file.
27861
278622008-01-13 Tom Tromey <tromey@redhat.com>
27863
27864 * lisp.h: Fix typo.
27865
278662008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27867
27868 * m/sequent-ptx.h:
27869 * m/sequent.h:
27870 * s/ptx.h:
27871 * s/ptx4-2.h:
27872 * s/ptx4.h: Remove files for systems no longer supported.
27873
27874 * callproc.c (Fcall_process): Fix previous change.
27875
278762008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27877
27878 * unexsunos4.c: Remove file, system not supported anymore.
27879
27880 * m/mips.h:
27881 * m/intel386.h:
27882 * callproc.c:
27883 * config.in:
27884 * ecrt0.c:
27885 * emacs.c:
27886 * fileio.c:
27887 * frame.c:
27888 * getpagesize.h:
27889 * keyboard.c:
27890 * lread.c:
27891 * process.c:
27892 * puresize.h:
27893 * sysdep.c:
27894 * systty.h:
27895 * syswait.h:
27896 * unexec.c:
27897 * xdisp.c:
27898 * alloc.c: Remove code containing references to symbols defined by
27899 unsupported systems.
27900
279012008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27902
27903 * coding.c (detect_coding_mask): Fix previous change.
27904
279052008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27906
27907 * coding.c (detect_coding_iso2022): New arg
27908 latin_extra_code_state. Allow Latin extra codes only
27909 when *latin_extra_code_state is nonzero.
27910 (detect_coding_mask): If there is a NULL byte, detect the encoding
27911 as UTF-16 or binary. If Latin extra codes exist, detect the
27912 encoding as ISO-2022 only when there's no other proper encoding is
27913 found.
27914
279152008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27916
27917 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27918 #ifdef MAC_OS.
27919
279202008-01-08 Richard Stallman <rms@gnu.org>
27921
27922 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27923
279242008-01-06 Nick Roberts <nickrob@snap.net.nz>
27925
27926 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27927 menu bar in parentheses.
27928
279292008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27930
27931 * m/7300.h:
27932 * m/acorn.h:
27933 * m/alliant-2800.h:
27934 * m/alliant.h:
27935 * m/alliant1.h:
27936 * m/alliant4.h:
27937 * m/altos.h:
27938 * m/amdahl.h:
27939 * m/apollo.h:
27940 * m/att3b.h:
27941 * m/aviion-intel.h:
27942 * m/aviion.h:
27943 * m/celerity.h:
27944 * m/clipper.h:
27945 * m/cnvrgnt.h:
27946 * m/convex.h:
27947 * m/cydra5.h:
27948 * m/delta88k.h:
27949 * m/dpx2.h:
27950 * m/dual.h:
27951 * m/elxsi.h:
27952 * m/f301.h:
27953 * m/gould-np1.h:
27954 * m/gould.h:
27955 * m/i860.h:
27956 * m/ibmps2-aix.h:
27957 * m/ibmrt-aix.h:
27958 * m/ibmrt.h:
27959 * m/irist.h:
27960 * m/is386.h:
27961 * m/isi-ov.h:
27962 * m/mega68.h:
27963 * m/mg1.h:
27964 * m/news-r6.h:
27965 * m/news-risc.h:
27966 * m/news.h:
27967 * m/nh3000.h:
27968 * m/nh4000.h:
27969 * m/ns16000.h:
27970 * m/ns32000.h:
27971 * m/nu.h:
27972 * m/orion.h:
27973 * m/orion105.h:
27974 * m/paragon.h:
27975 * m/pfa50.h:
27976 * m/plexus.h:
27977 * m/pyramid.h:
27978 * m/pyrmips.h:
27979 * m/sh3el.h:
27980 * m/sps7.h:
27981 * m/sr2k.h:
27982 * m/stride.h:
27983 * m/sun1.h:
27984 * m/sun2.h:
27985 * m/sun3-68881.h:
27986 * m/sun3-fpa.h:
27987 * m/sun3-soft.h:
27988 * m/sun3.h:
27989 * m/sun386.h:
27990 * m/symmetry.h:
27991 * m/tad68k.h:
27992 * m/tahoe.h:
27993 * m/targon31.h:
27994 * m/tek4300.h:
27995 * m/tekxd88.h:
27996 * m/tower32.h:
27997 * m/tower32v3.h:
27998 * m/ustation.h:
27999 * m/wicat.h:
28000 * m/xps100.h:
28001 * s/cxux.h:
28002 * s/cxux7.h:
28003 * s/dgux.h:
28004 * s/dgux4.h:
28005 * s/dgux5-4-3.h:
28006 * s/dgux5-4r2.h:
28007 * s/esix.h:
28008 * s/esix5r4.h:
28009 * s/hiuxmpp.h:
28010 * s/hiuxwe2.h:
28011 * s/iris3-5.h:
28012 * s/iris3-6.h:
28013 * s/isc2-2.h:
28014 * s/isc3-0.h:
28015 * s/isc4-0.h:
28016 * s/isc4-1.h:
28017 * s/newsos5.h:
28018 * s/newsos6.h:
28019 * s/osf1.h:
28020 * s/osf5-0.h:
28021 * s/riscix1-1.h:
28022 * s/riscix12.h:
28023 * s/sco4.h:
28024 * s/sco5.h:
28025 * s/sunos4-0.h:
28026 * s/sunos4-1.h:
28027 * s/sunos413.h:
28028 * s/sunos4shr.h:
28029 * s/umax.h:
28030 * s/unipl5-2.h:
28031 * s/xenix.h:
28032 * cxux-crt0.s:
28033 * unexapollo.c:
28034 * unexconvex.c:
28035 * unexenix.c:
28036 * unexsni.c: Remove files for systems no longer supported.
28037
28038 * m/intel386.h: Remove references to unsupported systems.
28039
28040 * w32.c (get_emacs_configuration): Remove reference to i860.
28041
28042 * sysdep.c: Remove dead code.
28043
280442008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28045
28046 * s/rtu.h:
28047 * m/masscomp.h: Remove files. Platform is obsolete.
28048
280492008-01-04 Michael Albinus <michael.albinus@gmx.de>
28050
28051 * dbusbind.c (Fdbus_method_return): New function.
28052 (xd_read_message): Add the serial number to the event.
28053 (Fdbus_register_method): Activate the function.
28054
280552008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28056
28057 * keyboard.c (read_key_sequence): Fix typo.
28058
280592008-01-03 Michael Albinus <michael.albinus@gmx.de>
28060
28061 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28062 (xd_signature, xd_append_arg): Handle element type detection for
28063 empty arrays.
28064 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28065 SDATA () calls; this must be solved more general.
28066 (Fdbus_register_signal): Use SBYTES instead of strlen.
28067
280682008-01-03 Magnus Henoch <magnus@zemdatav>
28069
28070 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28071 unsigned int for byte values (necessary for big-endian platform).
28072 (Fdbus_call_method): Handle the case of no returned arguments.
28073
280742007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28075
28076 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28077
280782007-12-31 Magnus Henoch <mange@freemail.hu>
28079
28080 * dbusbind.c (xd_signature): Signature of variant is just "v".
28081
280822007-12-30 Michael Albinus <michael.albinus@gmx.de>
28083
28084 * dbusbind.c: Fix several errors and compiler warnings.
28085 Reported by Tom Tromey <tromey@redhat.com>.
28086 (XD_ERROR, XD_DEBUG_MESSAGE)
28087 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28088 (xd_append_arg): Part for basic D-Bus types rewritten.
28089 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28090 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28091 appropriate.
28092 (xd_read_message): Return Qnil. Don't signal an error; it is not
28093 useful during event reading.
28094 (Fdbus_register_signal): Signal an error if the check for
28095 FUNCTIONP fails.
28096 (Fdbus_register_method): New function. The implementation is not
28097 complete, the call of the function signals an error therefore.
28098 (Fdbus_unregister_object): New function, renamed from
28099 Fdbus_unregister_signal. The initial check signals an error, if
28100 the object is not well formed.
28101
281022007-12-30 Richard Stallman <rms@gnu.org>
28103
28104 * textprop.c (get_char_property_and_overlay):
28105 Signal error if POSITION is out of range in a buffer.
28106
281072007-12-29 Martin Rudalics <rudalics@gmx.at>
28108
28109 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28110 because the original parameters are in pure storage now.
28111
281122007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28113
28114 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28115
281162007-12-22 Eli Zaretskii <eliz@gnu.org>
28117
28118 * callint.c (syms_of_callint) <command-history>: Add reference to
28119 history-length in the doc string.
28120
281212007-12-17 Jason Rumney <jasonr@gnu.org>
28122
28123 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28124 before passing as wParam.
28125
281262007-12-22 Michael Albinus <michael.albinus@gmx.de>
28127
28128 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28129 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28130 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28131 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28132 as number.
28133 (Fdbus_call_method): Fix docstring.
28134
281352007-12-21 Michael Albinus <michael.albinus@gmx.de>
28136
28137 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28138 New macros.
28139 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28140 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28141 Simplify.
28142 (xd_signature): New function.
28143 (xd_append_arg): Compute also signatures. Major rewrite.
28144 (xd_retrieve_arg): Make debug messages friendly.
28145 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28146 Check for signatures of arguments.
28147
281482007-12-19 Michael Albinus <michael.albinus@gmx.de>
28149
28150 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28151 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28152 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28153 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28154 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28155 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28156 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28157 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28158 (xd_retrieve_value): Remove. Functionality included in ...
28159 (xd_append_arg): New function.
28160 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28161
281622007-12-16 Michael Albinus <michael.albinus@gmx.de>
28163
28164 * dbusbind.c (top): Include <stdio.h>.
28165 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28166 dbus_message_new_method_call and dbus_message_new_signal.
28167 (Fdbus_register_signal): Rename unique_name to uname.
28168 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28169 non-existing unique name. Fix typos in matching rule. Return an
28170 object which is useful in Fdbus_unregister_signal.
28171 (Fdbus_unregister_signal): Reimplementation, in order to remove
28172 only the corresponding entry.
28173 (Vdbus_registered_functions_table): Change the order of entries.
28174 Apply these changes in xd_read_message and Fdbus_register_signal.
28175
281762007-12-16 Andreas Schwab <schwab@suse.de>
28177
28178 * fileio.c (Finsert_file_contents): Fix overflow check to not
28179 depend on undefined integer overflow.
28180
281812007-12-14 Jason Rumney <jasonr@gnu.org>
28182
28183 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28184 for characters above 127.
28185
281862007-12-13 Jason Rumney <jasonr@gnu.org>
28187
28188 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28189 before dereferencing array.
28190 (lookup_vk_code): Remove zero comparison.
28191
281922007-12-14 Michael Albinus <michael.albinus@gmx.de>
28193
28194 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28195 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28196 Use `unsigned int' instead of `uint'.
28197 (xd_read_message, Fdbus_register_signal): Split expressions into
28198 multiple lines before operators "&&" and "||", according to the
28199 GNU Coding Standards.
28200
282012007-12-14 Eli Zaretskii <eliz@gnu.org>
28202
28203 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28204
282052007-12-12 Juri Linkov <juri@jurta.org>
28206
28207 * buffer.c (Frename_buffer): In interactive spec replace
28208 `read-buffer' with `read-string' that uses `buffer-name-history'
28209 as history, and the current buffer's name as default.
28210
282112007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28212
28213 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28214 manipulating the backtrace manually.
28215 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28216 (struct backtrace, backtrace_list): Remove.
28217 (command_loop_1): Remove dead var `no_direct'.
28218
28219 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28220 preserve non-built-in buffer-local variables.
28221 (Fkill_all_local_variables): Don't re-create&re-set permanent
28222 buffer-local variables.
28223
282242007-12-09 Juri Linkov <juri@jurta.org>
28225
28226 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28227 Lisp code that uses `read-buffer' with current buffer as default.
28228
282292007-12-08 Michael Albinus <michael.albinus@gmx.de>
28230
28231 * dbusbind.c (xd_read_message): Generate an event for every
28232 registered handler. There might be several handlers registered
28233 for the same signal.
28234 (Fdbus_register_signal): Don't overwrite a registration for the
28235 same signal. Add a new registration if handlers are different.
28236 (Vdbus_registered_functions_table): Rework doc string.
28237
282382007-12-07 Michael Albinus <michael.albinus@gmx.de>
28239
28240 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28241 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28242 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28243 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28244 Unify argument lists.
28245 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28246 arguments and hash table keys. Use unique name for service.
28247 (Fdbus_unregister_signal): Remove checks.
28248 (Vdbus_registered_functions_table): Fix doc string.
28249
282502007-12-05 Magnus Henoch <mange@freemail.hu>
28251
28252 * process.c (make_process): Initialize pty_flag to 0.
28253
282542007-12-05 Jason Rumney <jasonr@gnu.org>
28255
28256 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28257 specified XBMs.
28258
282592007-12-05 Richard Stallman <rms@gnu.org>
28260
28261 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28262
282632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28264
28265 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28266 New variable.
28267 (mac_try_close_socket) [MAC_OSX]: New function.
28268 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28269 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28270
28271 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28272 Use mac_try_close_socket.
28273
282742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28275
28276 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28277 reloc_base.
28278 (copy_dysymtab): Compute relocation base here.
28279 (rebase_reloc_address) [__ppc64__]: New function.
28280 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28281 changed.
28282
282832007-12-05 Jason Rumney <jasonr@gnu.org>
28284
28285 * w32proc.c (sys_spawnve): Quote args with wildcards.
28286
282872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28288
28289 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28290 __objc_* sections.
28291 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28292
282932007-12-05 Michael Albinus <michael.albinus@gmx.de>
28294
28295 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28296 Move check for Vdbus_registered_functions_table to
28297 xd_read_queued_messages.
28298 (xd_read_queued_messages): Protect xd_read_message calls by
28299 internal_condition_case_1.
28300
283012007-12-04 Michael Albinus <michael.albinus@gmx.de>
28302
28303 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28304 Qdbus_system_bus and Qdbus_session_bus, respectively.
28305 (Vdbus_intern_symbols): Remove.
28306 (Vdbus_registered_functions_table): New hash table.
28307 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28308 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28309 Rewrite in order to manage registered functions by hash table
28310 Vdbus_registered_functions_table.
28311
283122007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28313
28314 * xterm.c: Update URL to Window Manager Specification in comment.
28315
283162007-12-02 Michael Albinus <michael.albinus@gmx.de>
28317
28318 * config.in (HAVE_DBUS): Add.
28319
28320 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28321 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28322 (obj): Add $(DBUS_OBJ).
28323 (LIBES): Add $(DBUS_LIBS).
28324 (dbusbind.o): New target.
28325
28326 * dbusbind.c: New file.
28327
28328 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28329
28330 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28331 (Qdbus_event): New Lisp symbol.
28332 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28333 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 28334 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
28335
28336 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28337
283382007-12-01 Richard Stallman <rms@gnu.org>
28339
28340 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28341
283422007-11-30 Jason Rumney <jasonr@gnu.org>
28343
28344 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28345 (w32con_reset_terminal_modes): Clear screen buffer.
28346 (w32_face_attributes): Don't use color indexes that are out of range.
28347 Only reverse the default colors.
28348
28349 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28350 WINDOWSNT.
28351
28352 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28353
283542007-11-29 Jason Rumney <jasonr@gnu.org>
28355
28356 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28357 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28358 if the terminal colors are initialized.
28359 (unspecified_fg, unspecified_bg): Remove unused declarations.
28360
283612007-11-29 Andreas Schwab <schwab@suse.de>
28362
28363 * keyboard.c (apply_modifiers): Fix typo.
28364
283652007-11-29 Richard Stallman <rms@gnu.org>
28366
28367 * keymap.c (Fcurrent_local_map): Doc fix.
28368
283692007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28370
28371 * s/gnu-kfreebsd.h: New file.
28372
283732007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28374
28375 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28376 Don't cast redundantly.
28377
28378 * keyboard.c (KEY_TO_CHAR): New macro.
28379 (parse_modifiers, apply_modifiers): Accept integer arguments.
28380 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28381 for chars and symbol keys.
28382 After doing such remapping, apply function-key-map again.
28383
283842007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28385
28386 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28387 compiled anymore.
28388
283892007-11-26 Andreas Schwab <schwab@suse.de>
28390
28391 * process.c (list_processes_1): Fix indentation level of the
28392 command column.
28393
283942007-11-23 Andreas Schwab <schwab@suse.de>
28395
28396 * editfns.c (Fformat): Handle %c specially since it requires the
28397 argument to be of type int.
28398
283992007-11-23 Markus Triska <markus.triska@gmx.at>
28400
28401 * emacs.c (main): Call init_editfns before init_process, since
28402 init_process sets Vprocess_connection_type depending on OS release.
28403
284042007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28405
28406 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28407 (find_symbol_value): Use do_symval_forwarding.
28408
28409 * data.c (set_internal): Set the value in the `cons-cell' (for
28410 Buffer_Local_values) not only for frame-local variables.
28411
284122007-11-22 Andreas Schwab <schwab@suse.de>
28413
28414 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28415 values to sprintf.
28416 * keymap.c (Fsingle_key_description): Likewise.
28417 * print.c (print_object): Likewise.
28418
284192007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28420
28421 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28422 file for image is nil.
28423
284242007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28425
28426 * term.c: Include stdarg.h.
28427 (fatal): Implement using varargs.
28428 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28429
284302007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28431
28432 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28433 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28434 Update call to buffer_slot_type_mismatch.
28435 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28436 (buffer_slot_type_mismatch): Update.
28437 * buffer.c (buffer_local_types): Remove.
28438 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28439 (defvar_per_buffer): Set the type in the buffer_objfwd.
28440
284412007-11-21 Jason Rumney <jasonr@gnu.org>
28442
28443 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28444 CreateFileMapping returns NULL on failure.
28445
284462007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28447
28448 * search.c (Fset_match_data): Remove the `evaporate' feature.
28449 (unwind_set_match_data): Don't use the `evaporate' feature.
28450
284512007-11-21 Jason Rumney <jasonr@gnu.org>
28452
28453 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28454
28455 * w32console.c (w32con_write_glyphs): Remove unused variables.
28456
284572007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28458
28459 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28460
28461 * s/darwin.h (MULTI_KBOARD): Remove.
28462
28463 * macfns.c (x_create_tip_frame, Fx_create_frame)
28464 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28465
284662007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28467
28468 * buffer.c (Fbuffer_local_value): Remove redundant test.
28469 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28470 than in `current-buffer' to match the comment.
28471 Do the swap using swap_in_global_binding.
28472
28473 * data.c (store_symval_forwarding, set_internal):
28474 * eval.c (specbind): Remove dead code.
28475
28476 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28477 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28478 Since we do not want to see internal Lisp_*fwd objects here.
28479
284802007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28481
28482 * sysdep.c (init_system_name): Use getaddrinfo if available.
28483
28484 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28485 (x_scroll_bar_note_movement): start, end, with, height in struct
28486 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28487
284882007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28489
28490 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28491
284922007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28493
28494 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28495 This undoes Richard's change of 14-Oct-2002.
28496
28497 * alloc.c (allocate_other_vector):
28498 * lisp.h (allocate_other_vector): Remove.
28499
28500 * window.c (struct save_window_data): Move non-lisp data to the end
28501 and make it `int' rather than Lisp_Object.
28502 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28503 Done wrap/unwrap integer values.
28504 (Fset_window_configuration, compare_window_configurations):
28505 Update use of fields to their new types.
28506
28507 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28508 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28509 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28510 (SET_SCROLL_BAR_X_WINDOW): Remove.
28511 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28512 Access the new x_window field directly.
28513 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28514 Don't wrap/unwrap integers into Lisp_Objects.
28515 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28516 (x_scroll_bar_report_motion):
28517 Don't wrap/unwrap integers into Lisp_Objects.
28518 (x_term_init): Use SDATA.
28519 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28520 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28521 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28522 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28523 * xfns.c (x_set_background_color):
28524 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28525 Access the new x_window field directly.
28526
28527 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28528 (allocate_pseudovector): Make non-static.
28529
28530 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28531 (allocate_pseudovector): Declare.
28532 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28533
285342007-11-15 Andreas Schwab <schwab@suse.de>
28535
28536 * editfns.c (Fformat): Correctly format EMACS_INT values.
28537 Also take precision into account when formatting an integer.
28538
28539 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28540
285412007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28542
28543 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28544 (syms_of_keyboard): Defsubr it.
28545
28546 * data.c (swap_in_global_binding): Fix longstanding bug where
28547 store_symval_forwarding was not called with the right second argument,
28548 thus causing objfwd-ing from being dropped.
28549
285502007-11-14 Juanma Barranquero <lekktu@gmail.com>
28551
28552 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28553 (Fx_display_pixel_height, Fx_display_planes)
28554 (Fx_display_color_cells, Fx_server_max_request_size)
28555 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28556 (Fx_display_visual_class, Fx_display_save_under):
28557 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28558 (Fx_display_pixel_height, Fx_display_planes)
28559 (Fx_display_color_cells, Fx_server_max_request_size)
28560 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28561 (Fx_display_mm_height, Fx_display_mm_width)
28562 (Fx_display_backing_store, Fx_display_visual_class)
28563 (Fw32_select_font, Fx_display_save_under):
28564 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28565 (Fx_display_pixel_height, Fx_display_planes)
28566 (Fx_display_color_cells, Fx_server_max_request_size)
28567 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28568 (Fx_display_save_under): Fix typos in docstrings.
28569
285702007-11-14 Juanma Barranquero <lekktu@gmail.com>
28571
28572 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28573 corresponding to deleted entries; they are an implementation detail.
28574 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28575 Remove variables.
28576 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28577 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28578 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28579 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28580 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28581 (Fw32_define_rgb_color, Fw32_load_color_file)
28582 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28583 Fix typos in docstrings.
28584 (Fx_server_version): Reflow docstring.
28585 (Fw32_shell_execute): Doc fixes.
28586
285872007-11-13 Juanma Barranquero <lekktu@gmail.com>
28588
28589 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28590 if w32_parse_hot_key returned nil.
28591
285922007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28593
28594 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28595
285962007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 28597
aac0c6e3
MR
28598 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28599
28600 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28601
28602 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28603 Remove W32_SCROLL_BAR_CLICK_EVENT.
28604
28605 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28606 Add MULTIMEDIA_KEY_EVENT.
28607
28608 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28609 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28610 (make_lispy_event) [WINDOWSNT]: Use it to translate
28611 MULTIMEDIA_KEY_EVENT.
28612
28613 * w32term.h (WM_APPCOMMAND): Define if not already.
28614 (GET_APPCOMMAND_LPARAM): Likewise.
28615
28616 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28617 WM_APPCOMMAND.
28618
28619 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28620 (syms_of_w32fns): Export and initialize it.
28621 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28622
286232007-11-09 Chong Yidong <cyd@stupidchicken.com>
28624
28625 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28626 twice.
28627
28628 * xdisp.c (handle_face_prop): Fix last change.
28629
286302007-11-09 Richard Stallman <rms@gnu.org>
28631
28632 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28633 not just for after-strings and before-strings.
28634 Call face_for_overlay_string and pass the overlay to it.
28635 (handle_display_prop): Determine whether property came from an overlay.
28636 Pass OVERLAY arg to handle_single_display_spec.
28637 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28638 (load_overlay_strings): Fill in it->string_overlays.
28639 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28640
28641 * xfaces.c (face_for_overlay_string): Function renamed from
28642 face_at_buffer_position_no_overlays, and add arg OVERLAY.
28643
28644 * dispextern.h (struct it): New elt string_overlays.
28645 New elt from_overlay, also in stack.
28646 Rearrange a few elements.
28647 (face_for_overlay_string): Decl renamed from
28648 face_at_buffer_position_no_overlays, and add argument.
28649
286502007-11-09 Richard Stallman <rms@gnu.org>
28651
28652 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
28653 to get the base face for an overlay string.
28654
28655 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
28656
28657 * xfaces.c (face_at_buffer_position_no_overlays): New function.
28658
28659 * xdisp.c (handle_stop): Move some code out of loop.
28660
286612007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28662
28663 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
28664 Fix conversion from Lisp object to ATSUFontID.
28665
286662007-11-09 Jason Rumney <jasonr@gnu.org>
28667
28668 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
28669
286702007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28671
28672 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
28673 Don't assume regions are aligned to page boundary.
28674 (print_load_command_name): Add LC_UUID if defined.
28675
286762007-11-09 Richard Stallman <rms@gnu.org>
28677
28678 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
28679
286802007-11-07 Jason Rumney <jasonr@gnu.org>
28681
28682 * s/windows95.h: Remove.
28683
286842007-11-06 Jan Djärv <jan.h.d@swipnet.se>
28685
28686 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
28687 abort with a message on unhandled store_type values.
28688
286892007-11-01 Jan Djärv <jan.h.d@swipnet.se>
28690
28691 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
28692 Remove HAVE_X11R5 and HAVE_X11R4.
28693
286942007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28695
28696 * Makefile.in: Remove references to sunfns.c and sunfns.o.
28697
286982007-11-01 Johan Bockgård <bojohan@gnu.org>
28699
28700 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
28701 Don't set s->stippled_p here, since it has already been set by
28702 x_set_glyph_string_gc from x_draw_glyph_string.
28703
287042007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28705
28706 * sunfns.c: Remove file.
28707
28708 * m/sun386.h:
28709 * m/sun2.h:
28710 * m/sparc.h: Remove Sun windows code.
28711
287122007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
28713
28714 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
28715 (init_keyboard): Set current_kboard's window-system to nil.
28716 (tty_read_avail_input): Typo.
28717 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
28718
287192007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
28720
28721 * s/usg5-4.h:
28722 * s/usg5-3.h:
28723 * s/ptx.h:
28724 * m/is386.h:
28725 * m/ibmps2-aix.h:
28726 * Makefile.in: Remove all mentions of X10.
28727
28728 * dispnew.c (syms_of_display): Don't mention version 10.
28729
287302007-10-28 Juanma Barranquero <lekktu@gmail.com>
28731
28732 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
28733 ($(BLD)/abbrev.$(O)): Remove.
28734
287352007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
28736
28737 Rewrite abbrev.c in Elisp.
28738 * image.c (Qcount): Don't declare as extern.
28739 (syms_of_image): Initialize and staticpro `Qcount'.
28740 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
28741 * emacs.c (main): Don't call syms_of_abbrev.
28742 * Makefile.in (obj): Remove abbrev.o.
28743 (abbrev.o): Remove.
28744 * abbrev.c: Remove.
28745
287462007-10-26 Martin Rudalics <rudalics@gmx.at>
28747
28748 * window.c (window_min_size_2): Don't count header-line.
28749
287502007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
28751
28752 * frame.h (struct frame): Move all bit fields after the first bit
28753 field to take advantage of the available space. Group all the
28754 chars together to reduce wasted space due to padding.
28755
287562007-10-26 Juanma Barranquero <lekktu@gmail.com>
28757
28758 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
28759
28760 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
28761 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
28762 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
28763 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
28764 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
28765 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
28766 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
28767 (last_marked, mark_object_loop_halt): Make static.
28768
28769 * frame.c (syms_of_frame) <delete-frame-functions>:
28770 Fix typo in docstring.
28771
287722007-10-25 Juanma Barranquero <lekktu@gmail.com>
28773
28774 * w32.c (init_environment): Fix tiny memory leak.
28775 (w32_get_resource): Remove unused variable `ok'.
28776
287772007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
28778
28779 Make `window-system' into a keyboard-local variable (rather than
28780 frame-local as done originally by multi-tty).
28781
28782 * keyboard.h (struct kboard): Add Vwindow_system.
28783 * keyboard.c (init_kboard): Set a default for Vwindow_system.
28784 (mark_kboards): Mark Vwindow_system.
28785
28786 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
28787 (init_display): Don't set the obsolete `window-system' frame-param.
28788
28789 * xterm.c (x_term_init):
28790 * w32term.c (w32_create_terminal):
28791 * term.c (init_tty): Set Vwindow_system.
28792 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
28793 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
28794
28795 * xfns.c (Fx_create_frame, x_create_tip_frame):
28796 * w32fns.c (Fx_create_frame, x_create_tip_frame):
28797 * macfns.c (Fx_create_frame):
28798 Don't set the obsolete `window-system' frame-param.
28799
28800 * frame.h (Qwindow_system): Remove.
28801 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
28802 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
28803
288042007-10-24 Richard Stallman <rms@gnu.org>
28805
28806 * frame.c (x_figure_window_size): For fullscreen case,
28807 set USPosition | PPosition without clobbering rest of window_prompting.
28808
28809 * keyboard.c (Fcurrent_idle_time): Doc fix.
28810
28811 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28812
288132007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28814
28815 * process.c (unwind_request_sigio): Only define if __ultrix__.
28816
28817 * callproc.c (child_setup): Remove spurious *.
28818
28819 * lisp.h (Fget_text_property): Declare.
28820 (have_menus_p): Declare it here rather than in sys-dep header files.
28821 * macterm.h (have_menus_p):
28822 * msdos.h (have_menus_p):
28823 * xterm.h (have_menus_p): Remove.
28824
28825 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28826 (Fmake_variable_frame_local): Just check the variable's const-ness
28827 rather than checking nil or t.
28828
288292007-10-22 Jason Rumney <jasonr@gnu.org>
28830
28831 * w32fns.c: Include math.h.
28832 (w32_abort): Declaration moved to nt/config.nt.
28833
28834 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28835 (abort): Redefinition moved to nt/config.nt.
28836
28837 * m/windowsnt.h: Remove.
28838
288392007-10-22 Juanma Barranquero <lekktu@gmail.com>
28840
28841 * emacs.c (Fdump_emacs): Fix typo in message.
28842 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28843 <installation-directory>: Reflow docstring.
28844
288452007-10-22 Juri Linkov <juri@jurta.org>
28846
28847 * minibuf.c: Allow minibuffer default to be a list of default values.
28848 With empty input use the first element of this list as returned default.
28849 (string_to_object)
28850 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28851 (read_minibuf): If defalt is cons, set histstring to its car.
28852 (Fread_string): If default_value is cons, set val to its car.
28853 (Fread_buffer): If def is cons, use its car.
28854 (Fcompleting_read): If defalt is cons, set val to its car.
28855
288562007-10-21 Michael Albinus <michael.albinus@gmx.de>
28857
28858 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28859
288602007-10-20 Juanma Barranquero <lekktu@gmail.com>
28861
28862 * doc.c (Fdocumentation): Check for advice in all cases.
28863
288642007-10-19 Chong Yidong <cyd@stupidchicken.com>
28865
28866 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28867
288682007-10-19 Richard Stallman <rms@gnu.org>
28869
28870 * doc.c (Fdocumentation): Check for and handle an advised function.
28871
288722007-10-19 Juanma Barranquero <lekktu@gmail.com>
28873
28874 * process.c (Fset_process_filter): Doc fix.
28875
288762007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28877
28878 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28879 which caused key-translation-map to applied repeatedly (thus breaking
28880 double-mode).
28881
288822007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28883
28884 * xselect.c (x_own_selection, x_handle_selection_clear)
28885 (x_clear_frame_selections):
28886 * w32menu.c (list_of_panes, list_of_items):
28887 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28888 * textprop.c (validate_plist, interval_has_all_properties)
28889 (interval_has_some_properties, interval_has_some_properties_list)
28890 (add_properties, text_property_list):
28891 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28892 * minibuf.c (Fassoc_string):
28893 * macselect.c (x_own_selection, x_clear_frame_selections)
28894 (Fx_disown_selection_internal):
28895 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28896 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28897
288982007-10-17 Chong Yidong <cyd@stupidchicken.com>
28899
28900 * process.c: Link to libs for calling res_init() if available.
28901 (Fmake_network_process): Call res_init() before getaddrinfo or
28902 gethostbyname, if possible.
28903
289042007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28905
28906 * lread.c (read1): Set pvectype for char_tables.
28907
28908 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28909 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28910 Add type checks.
28911 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28912
28913 * alloc.c (free_misc): Use XMISCTYPE.
28914 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28915
289162007-10-17 Glenn Morris <rgm@gnu.org>
28917
28918 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28919 (syms_of_minibuf): Add Qcompletion_ignore_case.
28920 * dired.c (Qcompletion_ignore_case): Change to external.
28921 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28922 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28923 (Fread_file_name): Use it rather than intern'ing.
28924
28925 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28926 (Fread_coding_system): Ignore case of user input.
28927
289282007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28929
28930 * xdisp.c (handle_display_prop): Ignore display specs after
28931 replacing one when string text is being replaced.
28932 (handle_single_display_spec): Pretend as if characters with display
28933 property haven't been consumed only when buffer text is being replaced.
28934
289352007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28936
28937 * xfns.c (Fx_create_frame, Fx_display_list):
28938 * window.c (window_fixed_size_p, enlarge_window)
28939 (shrink_window_lowest_first):
28940 * macterm.c (init_font_name_table):
28941 * macfns.c (Fx_create_frame, Fx_display_list):
28942 * lread.c (close_load_descs):
28943 * keyboard.c (read_char_x_menu_prompt):
28944 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28945 * coding.c (code_convert_region_unwind): Test the type of an object
28946 rather than just !NILP before extracting data from it.
28947
28948 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28949
28950 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28951 (XMISCANY): New macro.
28952 (XMISCTYPE): Use it.
28953 (struct Lisp_Misc_Any): New type.
28954 (union Lisp_Misc): Use it.
28955 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28956 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28957 (find_symbol_value, set_internal, default_value, Fset_default)
28958 (Fmake_variable_buffer_local, Fmake_local_variable)
28959 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28960 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28961 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28962 * alloc.c (allocate_buffer): Set the size and tag.
28963 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28964 Use XMISCANY.
28965 (die): Follow the GNU convention for error messages.
28966 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28967 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28968 tag any more.
28969 (set_buffer_internal_1):
28970 * frame.c (store_frame_param):
28971 * eval.c (specbind):
28972 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28973
28974 * doc.c (Fsnarf_documentation): Simplify.
28975
289762007-10-14 Juanma Barranquero <lekktu@gmail.com>
28977
28978 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28979 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28980
289812007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28982
28983 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28984
289852007-10-14 Juanma Barranquero <lekktu@gmail.com>
28986
28987 * eval.c (do_autoload): Don't save autoloads.
28988
28989 * data.c (Ffset): Save autoload of the function being set.
28990
289912007-10-07 John Paul Wallington <jpw@pobox.com>
28992
28993 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28994 parameter before setting up faces.
28995
289962007-10-13 Eli Zaretskii <eliz@gnu.org>
28997
28998 * ccl.c (Fregister_code_conversion_map):
28999 * keyboard.c (append_tool_bar_item): Reformat last change.
29000
29001 * lisp.h (eabs): Rename from `abs'. All callers changed.
29002
290032007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29004
29005 * buffer.c (add_overlay_mod_hooklist):
29006 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29007 * fontset.c (make_fontset):
29008 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29009 (append_tool_bar_item):
29010 * macmenu.c (grow_menu_items):
29011 * w32menu.c (grow_menu_items):
29012 * xmenu.c (grow_menu_items): Use larger_vector.
29013
290142007-10-13 Eli Zaretskii <eliz@gnu.org>
29015
29016 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29017 selected frame'' on MSDOS).
29018
290192007-10-12 Martin Rudalics <rudalics@gmx.at>
29020
29021 * frame.c (Qexplicit_name): New variable.
29022 (x_report_frame_params): Report it in parameter alist.
29023 (syms_of_frame): Intern and staticpro it.
29024
290252007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29026
29027 * macfns.c (x_create_tip_frame): Set terminal for frame.
29028
290292007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29030
29031 * frame.c (Qenvironment): Remove.
29032 (syms_of_frame) <Qenvironment>: Don't initialize.
29033 (Fdelete_frame): Don't treat the `environment' param specially.
29034 * frame.h (Qenvironment): Don't declare.
29035 * callproc.c (set_initial_environment): Don't set unused frame param.
29036
29037 * frame.c (Fframe_with_environment): Remove.
29038 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29039
29040 * lisp.h (Fframe_with_environment): Don't declare.
29041
290422007-10-10 Juanma Barranquero <lekktu@gmail.com>
29043
29044 * indent.c (indent_tabs_mode, last_known_column)
29045 (last_known_column_modified): Make static.
29046 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29047
290482007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29049
29050 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29051
290522007-10-09 Jason Rumney <jasonr@gnu.org>
29053
29054 * w32term.c (x_set_window_size): Disable code that attempts to tell
29055 Lisp code about a size change before it actually happens.
29056
290572007-10-09 Richard Stallman <rms@gnu.org>
29058
29059 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29060 return HANDLED_RETURN.
29061
290622007-10-08 Martin Rudalics <rudalics@gmx.at>
29063
29064 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29065 when there's an unread command event.
29066
29067 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29068 window autoselection act appropriately when leaving selected frame.
29069 (syms_of_frame): Initialize focus_follows_mouse.
29070 * frame.h (focus_follows_mouse): Extern it.
29071 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29072 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29073 * msdos.c (dos_rawgetc): Likewise.
29074 * w32term.c (w32_read_socket): Likewise.
29075 * xterm.c (handle_one_xevent): Likewise.
29076 * xdisp.c (syms_of_xdisp): In doc-string of
29077 mouse-autoselect-window mention focus-follows-mouse.
29078
290792007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29080
29081 * macterm.c (mac_load_query_font): Fix missing return value.
29082 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29083 Add BLOCK_INPUT.
29084
290852007-10-08 Richard Stallman <rms@gnu.org>
29086
29087 * xdisp.c (get_window_cursor_type): Implement documented behavior
29088 for cursor-in-non-selected-windows = t.
29089
290902007-10-08 Jason Rumney <jasonr@gnu.org>
29091
29092 * w32.c (w32_get_resource): Always close registry keys.
29093
290942007-10-08 Jason Rumney <jasonr@gnu.org>
29095
29096 * makefile.w32-in (LIBS): Add COMCTL32.
29097
29098 * w32fns.c (globals_of_w32fns): Init common controls.
29099
291002007-10-08 Richard Stallman <rms@gnu.org>
29101
29102 * image.c (our_memory_buffer): Rename from omfib_buffer.
29103
291042007-10-08 Richard Stallman <rms@gnu.org>
29105
29106 * buffer.c (Foverlays_at): Doc fix.
29107
291082007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29109
29110 * fns.c (Fplist_put): Preserve uneven tail data.
29111
291122007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29113
29114 * termhooks.h (enum event_kind): Remove trailing comma.
29115
29116 * frame.h (enum): Remove trailing comma.
29117
291182007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29119
29120 * w32proc.c (delete_child): Don't terminate threads of zombies.
29121
291222007-10-08 Martin Rudalics <rudalics@gmx.at>
29123
29124 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29125
29126 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29127 last-repeatable-command.
29128 (init_kboard): Initialize Vlast_repeatable_command.
29129 (command_loop_1): Set it to real_this_command unless that was
29130 bound to an input event.
29131 (mark_kboards): Mark it.
29132
291332007-10-08 Richard Stallman <rms@gnu.org>
29134
29135 * eval.c (condition-case): Doc fix.
29136
291372007-10-08 Masatake YAMATO <jet@gyve.org>
29138
29139 * xfaces.c (tty_supports_face_attributes_p): Fix code
29140 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29141 was copied and not edited.
29142
291432007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29144
29145 Add new `input-decode-map' keymap and use it for terminal
29146 escape sequences.
29147 * keyboard.h (struct kboard): Add Vinput_decode_map.
29148 Remove Vlocal_key_translation_map.
29149 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29150 (init_kboard): Init input-decode-map.
29151 Replace local-key-translation-map back with key-translation-map.
29152 (syms_of_keyboard): Declare input-decode-map.
29153 Remove local-key-translation-map. Update docstrings.
29154 (mark_kboards): Mark Vinput_decode_map.
29155 Don't mark Vlocal_key_translation_map.
29156 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29157 Replace local-key-translation-map back with key-translation-map.
29158 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29159 Bind in input-decode-map rather than function-key-map.
29160
29161 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29162 This was made redundant by the previous introduction of XSETPVECTYPE.
29163
291642007-10-09 Richard Stallman <rms@gnu.org>
29165
29166 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29167
291682007-09-29 Richard Stallman <rms@gnu.org>
29169
29170 * eval.c (internal_condition_case_2, internal_condition_case_1)
29171 (internal_condition_case): Reenable abort if x_catching_errors ()
29172 to see if that really happens and why.
29173
291742007-10-06 Andreas Schwab <schwab@suse.de>
29175
29176 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29177
291782007-10-04 Juanma Barranquero <lekktu@gmail.com>
29179
29180 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29181
291822007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29183
29184 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29185
291862007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29187
29188 * window.h (struct window):
29189 * window.c (struct save_window_data, struct saved_window):
29190 * termhooks.h (struct terminal):
29191 * process.h (struct Lisp_Process):
29192 * frame.h (struct frame):
29193 * buffer.h (struct buffer):
29194 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29195 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29196 The size field of (pseudo)vectors is now unsigned.
29197 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29198
29199 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29200 Turn `count' into an integer.
29201
29202 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29203 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29204 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29205 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29206 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29207
29208 * alloc.c (allocate_pseudovector): New fun.
29209 (ALLOCATE_PSEUDOVECTOR): New macro.
29210 (allocate_window, allocate_terminal, allocate_frame)
29211 (allocate_process): Use it.
29212 (mark_vectorlike): New function.
29213 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29214 (mark_terminals): Use it.
29215 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29216 (Fmake_byte_code): Use XSETPVECTYPE.
29217
29218 * frame.c (Fframe_parameters): Minor simplification.
29219
29220 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29221
29222 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29223
29224 * buffer.c (Fget_buffer_create, init_buffer_once):
29225 * lread.c (defsubr):
29226 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29227
29228 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29229 defined differently in the m/*.h files.
29230 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29231 (XSETPVECTYPE): New macro.
29232 (XSETPSEUDOVECTOR): Use it.
29233
29234 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29235 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29236
29237 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29238 * lread.c (defvar_per_buffer):
29239 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29240
29241 * window.c (candidate_window_p): Only consider as visible frames that
29242 are on the same terminal.
29243
29244 * m/ibms390x.h (MARKBIT): Remove unused macro.
29245
292462007-10-01 Juanma Barranquero <lekktu@gmail.com>
29247
29248 * lread.c (Fload): Fix typo in docstring.
29249
292502007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29251
29252 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29253 of a non-zero value can't yield zero.
29254
292552007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29256
29257 * term.c (term_clear_mouse_face, term_mouse_highlight)
29258 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29259
29260 * print.c (safe_debug_print): Use XHASH.
29261
29262 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29263 Lisp elements such as tags.
29264 (XHASH): New macro.
29265 (EQ): Use it.
29266 (SREF, SSET, STRING_COPYIN): Use SDATA.
29267 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29268
29269 * alloc.c (mark_terminal): Remove left-over declaration.
29270 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29271 (allocate_vectorlike): Remove type argument. Adjust callers.
29272 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29273 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29274
29275 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29276 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29277 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29278 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29279 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29280 Use them.
29281
29282 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29283 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29284 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29285
292862007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29287
29288 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29289 loaded by default.
29290
292912007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29292
29293 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29294 on this tty.
29295 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29296
29297 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29298 Update all users.
29299 (handle_one_term_event): Use Gpm_DrawPointer.
29300 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29301 Signal errors instead of returning nil. Always return nil.
29302 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29303 Make it a noop if gpm-mouse was not activated.
29304 (syms_of_term): Update names.
29305
293062007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29307
29308 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29309 (init_sys_modes): Check that gpm_tty is the current tty.
29310
29311 * alloc.c (allocate_terminal): Set the vector size to only count the
29312 lisp fields. Initialize those to nil.
29313 (mark_object): Don't treat terminals specially.
29314 (mark_terminal): Remove.
29315 (mark_terminals): Use mark_object instead.
29316
29317 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29318 the GC to the beginning.
29319
29320 * indent.h:
29321 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29322
29323 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29324
293252007-09-25 Jason Rumney <jasonr@gnu.org>
29326
29327 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29328
29329 * w32console.c (create_w32cons_output): Remove.
29330
29331 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29332
29333 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29334 (reset_sys_modes): Use reset_terminal_modes_hook.
29335
293362007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29337
29338 * eval.c (do_autoload): Don't output any message.
29339
293402007-09-24 Juri Linkov <juri@jurta.org>
29341
29342 * emacs.c (standard_args): Change priority of "--no-splash"
29343 from 40 to 3. Add "--no-desktop" with the same priority.
29344
293452007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29346
29347 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29348 and optimize the case where they are all 1.
29349
293502007-09-23 Johannes Weiner <hannes@saeurebad.de>
29351
29352 * lisp.h (abs): Define if not defined.
29353 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29354 Don't define `abs', since it's defined in lisp.h.
29355
293562007-09-22 Eli Zaretskii <eliz@gnu.org>
29357
29358 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29359 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29360 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29361 (init_tty): Use DEV_TTY instead of "/dev/tty".
29362 [WINDOWSNT]: No need to protect from NAME arg being null.
29363
293642007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29365
29366 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29367 up the tty state.
29368
293692007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29370
29371 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29372 (gpm_tty): Change its type.
29373 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29374 (gpm_tty): Change its type and initialize it.
29375 (Fterm_open_connection): Check the frame is indeed a tty.
29376 Use the new gpm_tty.
29377 (Fterm_close_connection): Use the new gpm_tty.
29378 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29379 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29380
293812007-09-21 Juanma Barranquero <lekktu@gmail.com>
29382
29383 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29384 underline_color, to draw strike-through.
29385
293862007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29387
29388 * lisp.h (allocate_terminal): Declare.
29389
29390 * window.c (candidate_window_p): Consider frames that are being placed
29391 by the user as somewhere between visible and iconified.
29392 (window_loop): Prefer windows on the current frame.
29393 (Fselect_window): Move the use of select-frame to the beginning so we
29394 can just delegate all the work (it'll call us back anyway).
29395
29396 * frame.c (Qdisplay_environment_variable):
29397 * frame.h (Qdisplay_environment_variable): Delete.
29398
29399 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29400 of the first arg, since that value may be a union.
29401
29402 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29403 parameter rather than Qdisplay_environment_variable. If all else
29404 fails, look for DISPLAY in initial-environment.
29405
294062007-09-21 Glenn Morris <rgm@gnu.org>
29407
29408 * Makefile.in (emacstool): Remove target.
29409 (lisp, shortlisp): Remove termdev.elc.
29410
294112007-09-21 Markus Triska <markus.triska@gmx.at>
29412
29413 * xterm.c (x_delete_display): Compile session management conditionally.
29414
294152007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29416
29417 * callproc.c (getenv_internal_1): New function.
29418 (getenv_internal): Use it.
29419 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29420
29421 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29422 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29423 (Fset_terminal_parameter): Work with dead terminals as well.
29424 (Fmodify_terminal_parameters): Remove.
29425
29426 * terminal.c (get_terminal): Handle terminals.
29427 Make sure the terminal returned is live.
29428 (create_terminal): Use allocate_terminal.
29429 (mark_terminals): Move to alloc.c.
29430 (delete_terminal): Use terminal->name as liveness status.
29431 NULL out fields after freeing their contents.
29432 Don't deallocate the object.
29433 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29434 rather than an int.
29435 (Fterminal_live_p): Accept non-integer arguments.
29436 (Fterminal_list): Return terminal objects rather than an ints.
29437
29438 * alloc.c (enum mem_type): New member for `terminal' objects.
29439 (allocate_terminal): New function.
29440 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29441 Handle terminals.
29442 (mark_terminal): New fun.
29443 (mark_terminals): Move from terminal.c.
29444
29445 * term.c (get_tty_terminal): Don't treat output_initial specially.
29446 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29447 (delete_tty): Use terminal->name as liveness status.
29448
29449 * termhooks.h (struct terminal): Make it into a pseudovector.
29450 Remove `deleted' replaced by checking `name's nullness.
29451
29452 * print.c (print_object): Handle terminals.
29453
29454 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29455 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29456
29457 * frame.c (make_terminal_frame):
29458 * keyboard.c (tty_read_avail_input):
29459 * w32term.c (x_delete_terminal):
29460 * xfns.c (Fx_create_frame, x_create_tip_frame):
29461 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29462
294632007-09-20 Glenn Morris <rgm@gnu.org>
29464
29465 * process.c (Fmake_network_process): Doc fix.
29466
294672007-09-19 Jason Rumney <jasonr@gnu.org>
29468
29469 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29470
294712007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29472
29473 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29474 Fix a C warning regarding variable constness.
29475
29476 * xterm.c (handle_one_xevent): Fix a C warning.
29477
294782007-09-18 Jason Rumney <jasonr@gnu.org>
29479
29480 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29481
294822007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29483
29484 * gtkutil.c (gdpy_def): New variable.
29485 (xg_initialize): Initialize gdpy_def.
29486 (xg_display_close): If no other display exists, set gdpy_def to a
29487 new connection.
29488
294892007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29490
29491 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29492 when we have no file name for the icon.
29493 (xg_tool_bar_expose_callback): Remove.
29494 (xg_create_tool_bar): Don't connect expose signal to
29495 xg_tool_bar_expose_callback.
29496 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29497
294982007-09-16 Andreas Schwab <schwab@suse.de>
29499
29500 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29501 values instead of zapping them.
29502
295032007-09-14 Glenn Morris <rgm@gnu.org>
29504
29505 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29506 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29507 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29508 scope and rename to omfib_buffer for clarity.
29509 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29510
295112007-09-14 Kenichi Handa <handa@m17n.org>
29512
29513 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29514
295152007-09-13 Jason Rumney <jasonr@gnu.org>
29516
29517 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29518
29519 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29520
29521 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29522 (mac_term_init): Call here instead, passing rif.
29523
295242007-09-13 Glenn Morris <rgm@gnu.org>
29525
29526 * s/hpux.h: No longer define `static' as nothing.
29527
295282007-09-13 Johan Bockgård <bojohan@gnu.org>
29529
29530 * callint.c (Fcall_interactively): Remove unused var `fun'.
29531
295322007-09-12 Romain Francoise <romain@orebokech.com>
29533
29534 * window.c (prefer_window_split_horizontally, display_buffer):
29535 Revert 2007-09-08 change.
29536
295372007-09-12 Glenn Morris <rgm@gnu.org>
29538
29539 * alloca.c: Remove file.
29540 * Makefile.in (alloca): Do not undef.
29541 (allocaobj, alloca.o): Remove.
29542 (otherobj): Remove allocaobj.
29543 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29544 * regex.c (C_ALLOCA): Remove all references and code that was only
29545 used when this was defined.
29546 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29547 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29548 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29549
29550 * Makefile.in (SOURCES, unlock, relock): Delete.
29551
29552 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29553 (menu_grab_callback): All uses changed.
29554
29555 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29556 (x_reply_selection_request): All uses changed.
29557
295582007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29559
29560 * lread.c (load_warn_old_style_backquotes): Change message to look
29561 better when it appears in the middle of byte-compiler messages.
29562
295632007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29564
29565 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29566
29567 * xterm.c (x_create_terminal): Add comment.
29568
29569 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29570
295712007-09-10 Richard Stallman <rms@gnu.org>
29572
29573 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29574
295752007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29576
29577 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29578 (DEFUN): Document `intspec', use it instead of `prompt'.
29579
29580 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29581
29582 * data.c (Finteractive_form): If the interactive specification starts
29583 with a `(', use it as a Lisp form.
29584
29585 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29586 name and file modes.
29587
29588 * callint.c (Fcall_interactively): Comment fixes.
29589
295902007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29591
29592 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29593 and compiled functions.
29594
295952007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29596
29597 * window.c (prefer_window_split_horizontally): New variable.
29598 (display_buffer): Consider splitting window horizontally depending
29599 on prefer_window_split_horizontally.
29600
296012007-09-08 Eli Zaretskii <eliz@gnu.org>
29602
29603 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29604
296052007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29606
29607 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29608
29609 * frame.c (x_set_frame_parameters): Check number is positive before
29610 using XFASTINT.
29611
29612 * window.c (freeze_window_start): Don't presume selected_window holds
29613 a window object.
29614 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29615
296162007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29617
29618 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29619
296202007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29621
29622 * window.c (Vsplit_window_preferred_function): New var.
29623 (Fdisplay_buffer): Use it.
29624 (syms_of_window): Export, and initialize it.
29625
296262007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29627
29628 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29629
296302007-09-06 Glenn Morris <rgm@gnu.org>
29631
29632 * gtkutil.c (menu_grab_callback) <cnt>:
29633 * xselect.c (x_reply_selection_request) <cnt>: Move static
29634 variable to file scope.
29635
296362007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29637
29638 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29639 consistent values of selected_frame and selected_window.
29640
296412007-09-04 Jason Rumney <jasonr@gnu.org>
29642
29643 * w32console.c (initialize_w32_display): Zero unused hooks.
29644
296452007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29646
29647 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
29648 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
29649
296502007-09-04 Jason Rumney <jasonr@gnu.org>
29651
29652 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
29653 in w32console.c. Set up input. Remove XXX comments that have been
29654 confirmed as correct.
29655
29656 * s/ms-w32.h (MULTI_KBOARD): Define.
29657
29658 * w32console.c (one_and_only_w32cons): Remove.
29659 (initialize_w32_display): Take terminal argument.
29660
29661 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
29662 initialize_w32_display.
29663 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
29664
29665 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
29666
29667 * keyboard.c (discard_mouse_events): Discard it.
29668 (make_lispy_event): Translate it to a lisp event.
29669 (lispy_wheel_names): Add wheel-left and right events.
29670 (syms_of_keyboard): Enlarge wheel_syms.
29671
29672 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
29673 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
29674
29675 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
29676
29677 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
29678 from WM_MOUSEHWHEEL.
29679 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
29680
29681 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
29682 terminal.
29683
29684 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
29685 keyboard for the terminal.
29686
296872007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29688
29689 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
29690 (Vresume_tty_hook): Rename from Vresume_tty_functions.
29691 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
29692 and resume-tty-function to resume-tty-hook.
29693 (Fsuspend_tty, Fresume_tty): Use new names.
29694
296952007-09-02 Jan Djärv <jan.h.d@swipnet.se>
29696
29697 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
29698 if it starts with "n:".
29699
297002007-08-31 Jan Djärv <jan.h.d@swipnet.se>
29701
29702 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
29703
297042007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
29705
29706 * frame.h:
29707 * frame.c (Qterm_environment_variable): Remove.
29708 (syms_of_frame): Don't init and staticpro it.
29709
29710 * callproc.c (getenv_internal): Remove special case for $TERM.
29711
29712 * callproc.c (Vinitial_environment): New variable.
29713 (set_initial_environment): Initialize it.
29714 (syms_of_callproc): Declare it.
29715 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
29716 TERM under which a process runs is never related to the TERM in which
29717 Emacs is running.
29718
297192007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29720
29721 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
29722 * s/darwin.h: ... do it here.
29723
297242007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
29725
29726 * lisp.h (set_initial_environment): Rename from set_global_environment.
29727
29728 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
29729 removed by mistake on the multi-tty branch.
29730
29731 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
29732 (Fmodify_frame_parameters): Return a value.
29733
29734 * image.c (png_load): Comment-out var only used in commented-out code.
29735
29736 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
29737 before passing it to mark_object.
29738
29739 * xfaces.c (internal_resolve_face_name): Return a value.
29740 (internal_resolve_face_name, resolve_face_name_error): Comment out.
29741
29742 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
29743 (x_icon): Comment-out var only used in commented-out code.
29744
297452007-08-29 Romain Francoise <romain@orebokech.com>
29746
29747 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
29748 QUIT hasn't been provided.
29749
297502007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29751
29752 * callproc.c (child_setup, getenv_internal): Use the
29753 display-environment-variable and term-environment-variable frame params.
29754 (set_initial_environment): Initialise Vprocess_environment.
29755
29756 * config.in: Disable multi-keyboard support on a mac.
29757
29758 * frame.c (Qterm_environment_variable)
29759 (Qdisplay_environment_variable): New variables.
29760 (syms_of_frame): Intern and staticpro them.
29761 (Fmake_terminal_frame): Disable output method test.
29762
29763 * frame.h: Declare them here.
29764
29765 * macfns.c (x_set_mouse_color): Get rif from the frame.
29766 (x_set_tool_bar_lines): Don't use updating_frame.
29767 (mac_window): Add 2 new parameters for consistency with other systems.
29768 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
29769 frame parameters following what is done in X11 and w32. Don't use
29770 FRAME_MAC_DISPLAY_INFO.
29771 (Fx_open_connection, start_hourglass): Remove window-system check.
29772 (x_create_tip_frame): Get the keyboard from the terminal.
29773
29774 * macmenu.c: Reorder includes.
29775 (Fx_popup_menu): Use terminal specific mouse_position_hook.
29776
29777 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
29778 terminal parameter.
29779 (x_clear_frame): Add a frame parameter.
29780 (note_mouse_movement): Get rif from the frame.
29781 (mac_term_init): Initialize the terminal.
29782 (mac_initialize): Make static and move terminal initialization ...
29783 (mac_create_terminal): ... to this new function.
29784
29785 * macterm.h (struct mac_display_info): Add terminal.
29786 (mac_initialize): Delete declaration.
29787
29788 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
29789
29790 * sysdep.c: Comment out text after #endif.
29791
29792 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
29793 is defined. Better initialize ttys in windows. Use terminal
29794 specific mouse_position_hook.
29795
29796 * termhooks.h (union display_info): Add mac_display_info.
29797
29798 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
29799 Set the default minibuffer frame, window_system and the rest of the
29800 frame parameters following what is done in X11.
29801
29802 * w32term.c (w32_initialize): Make static.
29803
29804 * xselect.c (x_handle_selection_clear): Only access
29805 terminal->kboard when MULTI_KBOARD is defined.
29806
29807 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
29808 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
29809
298102007-08-29 Jason Rumney <jasonr@gnu.org>
29811
29812 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29813 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29814
29815 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29816 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29817
29818 * keyboard.c (restore_kboard_configuration): Only define when
29819 MULTI_KBOARD defined.
29820
29821 * makefile.w32-in: Update dependancies from Makefile.in.
29822 (OBJ1): Add terminal.$(O)
29823
29824 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29825 Don't define function body.
29826 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29827
29828 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29829
29830 * w32.c (request_sigio, unrequest_sigio): Remove.
29831
29832 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29833 (w32con_clear_frame, w32con_clear_end_of_line)
29834 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29835 (w32con_delete_glyphs, w32con_set_terminal_window)
29836 (scroll_line, w32_sys_ring_bell): Add frame arg.
29837 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29838 Add terminal arg.
29839 (PICK_FRAME): Remove.
29840 (w32con_write_glyphs): Use frame specific terminal coding.
29841 (one_and_only_w32cons): New global variable.
29842 (initialize_w32_display): Use it for storing hooks.
29843 (create_w32cons_output): New function.
29844
29845 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29846 arg a frame.
29847
29848 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29849 Set window_system.
29850 (x_set_tool_bar_lines): Don't use updating_frame.
29851 (Fx_create_frame): Set terminal and ref count.
29852 (Fx_open_connection): Remove window-system check.
29853
29854 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29855
29856 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29857 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29858 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29859 Add frame arg.
29860 (x_delete_terminal, w32_create_terminal): New functions.
29861 (w32_term_init): Create a terminal.
29862 (w32_initialize): Move terminal specific initialization to
29863 w32_create_terminal.
29864
29865 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29866 (w32_clear_rect, w32_clear_area): Use background from frame.
29867 (w32_display_info): Add terminal.
29868 (w32_sys_ring_bell, x_delete_display): Declare here.
29869
29870 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29871
29872 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29873
298742007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29875
29876 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29877 Fix get_named_tty calls for the controlling tty.
29878
298792007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29880
194d44e7 29881 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
29882
298832007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29884
29885 * term.c (tty_insert_glyphs): Add missing first parameter.
29886
298872007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29888
29889 * buffer.c (Fbuffer_list, Fbury_buffer):
29890 Take frame->buried_buffer_list into account.
29891
29892 * cm.c (current_tty): New variable, for cmputc().
29893 (cmputc): Use it.
29894 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29895 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29896 (cmgoto): Add tty parameter. Pass it on to calccost().
29897 Use emacs_tputs() instead of tputs().
29898
29899 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29900 tputs().
29901 (current_tty): New variable, for cmputc().
29902 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29903
29904 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29905 (internal_condition_case, internal_condition_case_1)
29906 (internal_condition_case_2): Don't abort when x_catching_errors.
29907
29908 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29909 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29910 prevent crashes caused by bogus longjmps in read_char.
29911
29912 * keymap.h (Fset_keymap_parent): Add EXFUN.
29913
29914 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29915 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29916 Remove redundant definition.
29917
29918 * macfns.c (x_set_mouse_color, x_make_gc):
29919 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29920
29921 * w32term.c (x_free_frame_resources):
29922 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29923 (w32_initialize): Use the accessor macros for terminal characteristics.
29924
29925 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29926 Use the accessor macros for terminal characteristics.
29927 * msdos.c (internal_terminal_init): Use the accessor macros for
29928 terminal characteristics.
29929 (ScreenVisualBell, internal_terminal_init):
29930 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29931
29932 * termopts.h (no_redraw_on_reenter): Declare.
29933
29934 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29935 (mark_terminals, mark_ttys): Declare.
29936 (Fgarbage_collect): Call them.
29937 (mark_object): Mark buried_buffer_list.
29938
29939 * prefix-args.c: Include stdlib.h for exit.
29940
29941 * syssignal.h: Add comment.
29942
29943 * indent.c: Include stdio.h.
29944
29945 * window.h (Vinitial_window_system): Declare.
29946 (Vwindow_system): Delete declaration.
29947
29948 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29949
29950 * image.c (lookup_image): Don't initialize `c' until the xasserts
29951 have been run.
29952
29953 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29954 FRAME_FOREGROUND_PIXEL.
29955
29956 * print.c (print_preprocess): Don't lose print_depth levels while
29957 iterating.
29958
29959 * widget.c (update_from_various_frame_slots):
29960 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29961
29962 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29963 frames.
29964 (window_internal_height): Remove bogus make_number call.
29965 (init_window_once): Call make_terminal_frame with two zero parameters.
29966
29967 * fileio.c (Fread_file_name): Update comment.
29968
29969 * callint.c (Fcall_interactively):
29970 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29971 Make sure it is correctly unwound.
29972
29973 * xsmfns.c (x_session_close): New function.
29974
29975 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29976 Delete declarations.
29977
29978 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29979 (x_output): Remove background_pixel and foreground_pixel fields.
29980 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29981 (x_delete_device, x_session_close): Declare.
29982
29983 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29984 (read_filtered_event): Call `read_char' with a local
29985 `wrong_kboard_jmpbuf'.
29986
29987 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29988 Don't call single_kboard_state. Use FRAME_RIF.
29989
29990 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29991 systems.
29992
29993 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29994 (Fframe_with_environment, Fset_input_meta_mode)
29995 (Fset_quit_char): EXFUN.
29996 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29997 (init_sys_modes, reset_sys_modes): Update prototypes.
29998 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29999
30000 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30001 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30002 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30003 Delete declarations.
30004 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30005 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30006 New declarations.
30007
30008 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30009 already does that during init_display(). Call syms_of_keymap
30010 before syms_of_keyboard. Call `syms_of_terminal'.
30011 Call set_initial_environment, not set_process_environment.
30012 (shut_down_emacs): Call reset_all_sys_modes() instead of
30013 reset_sys_modes().
30014
30015 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30016 (internal_resolve_face_name, resolve_face_name_error): New functions.
30017 (resolve_face_name): Protect against loops and errors thrown by Fget.
30018 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30019 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30020
30021 * scroll.c: Replace CURTTY() with local variables throughout the
30022 file (where applicable).
30023 (calculate_scrolling, calculate_direct_scrolling)
30024 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30025 characteristics.
30026
30027 * keymap.c (Vfunction_key_map): Remove.
30028 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30029 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30030 (Vkey_translation_map): Remove.
30031 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30032 (Fdescribe_buffer_bindings)
30033 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30034 Update for terminal-local key-translation-map.
30035
30036 * Makefile.in (callproc.o): Update dependencies.
30037 (lisp, shortlisp): Add termdev.elc.
30038 (obj): Add terminal.o.
30039 (terminal.o): Add dependencies.
30040 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30041 (data.o, fns.o): Add termhooks.h dependency.
30042 (SOME_MACHINE_LISP): Add dnd.elc.
30043 (minibuf.o): Fix typo.
30044 Update dependencies.
30045
30046 * data.c (do_symval_forwarding, store_symval_forwarding)
30047 (find_symbol_value): Use the selected frame's keyboard, not
30048 current_kboard.
30049
30050 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30051 Vwindow_system.
30052
30053 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30054 Fmenu_bar_open.
30055 (syms_of_xmenu): Update defsubr.
30056 (mouse_position_for_popup, Fx_popup_menu)
30057 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30058 (set_frame_menubar, free_frame_menubar)
b97439ce 30059 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
30060 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30061 an X frame.
30062
30063 * xselect.c (x_own_selection): Abort if not an X frame.
30064 (some_frame_on_display): Check if it is an X frame.
30065 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30066
30067 * coding.c: Include frame.h and termhooks.h.
30068 (terminal_coding, keyboard_coding): Delete.
30069 (Fset_terminal_coding_system_internal)
30070 (Fset_keyboard_coding_system_internal)
30071 (Fkeyboard_coding_system)
30072 (Fterminal_coding_system): Add a terminal parameter.
30073 Get terminal_coding from the terminal.
30074 (init_coding_once): Don't call setup_coding_system here.
30075
30076 * dispextern.h (set_scroll_region, turn_off_insert)
30077 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30078 (tty_clear_end_of_line, tty_setup_colors)
30079 (delete_tty, updating_frame)
30080 (produce_special_glyphs, produce_glyphs, write_glyphs)
30081 (insert_glyphs): Remove.
30082 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30083 (tty_turn_off_highlight, get_tty_size): Add declaration.
30084 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30085
30086 * frame.h (enum output_method): Add output_initial.
30087 (struct x_output): Delete.
30088 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30089 Access foreground_pixel and background_pixel directly from the frame.
30090 (tty_display): Delete.
30091 (struct frame): Add buried_buffer_list, foreground_pixel,
30092 background_pixel and terminal. Delete kboard.
30093 (union output_data): Add tty.
30094 (FRAME_KBOARD): Get the kboard from the terminal.
30095 (FRAME_INITIAL_P): New macro.
30096 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30097 (Qterm_environment_variable, Qdisplay_environment_variable)
30098 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30099 New declarations.
30100
30101 * termchar.h (tty_output, tty_display_info): New structures.
30102 (tty_list): Declare.
30103 (FRAME_TTY, CURTTY): New macros.
30104 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30105 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30106 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30107 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30108
30109 * callproc.c: Include frame.h and termhooks.h, for terminal
30110 parameters.
30111 (add_env): New function.
30112 (child_setup): Use it.
30113 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30114 (getenv_internal): Fix get_terminal_param call.
30115 (Fgetenv_internal, egetenv): Update doc.
30116 (syms_of_callproc): Initialize Vprocess_environment to nil.
30117 Register and initialize them. Remove obsolete defvars. Update doc
30118 strings.
30119 (child_setup): Handle Vlocal_environment_variables.
30120 (getenv_internal): Add terminal parameter.
30121 Handle Vlocal_environment_variables.
30122 (Fgetenv_internal): Add terminal parameter.
30123 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30124 environment in a frame (not terminal) parameter. Update doc strings.
30125 (set_initial_environment): Rename from set_global_environment.
30126 Store Emacs environment in initial frame parameter.
30127
30128 * xdisp.c (redisplay_internal): Update references to
30129 `previous_terminal_frame'.
30130 (display_mode_line, Fformat_mode_line): Replace calls to
30131 `push_frame_kboard' with `push_kboard'.
30132 (get_glyph_string_clip_rects): Add extra parentheses and
30133 braces to prevent compiler warnings.
30134 (calc_pixel_width_or_height): Add xassert to check that the
30135 frame is alive. Don't call `lookup_image' on a termcap frame.
30136 (message2_nolog, message3_nolog, redisplay_internal)
30137 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30138 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30139 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30140 (Fx_display_pixel_width, Fx_display_pixel_height)
30141 (Fx_display_planes, Fx_display_color_cells)
30142 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30143 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30144 (Fx_display_backing_store, Fx_display_visual_class)
30145 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30146 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30147
30148 * xfns.c (x_set_foreground_color x_set_background_color)
30149 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30150 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30151 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30152 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30153 terminal that is being deleted.
30154 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30155 frame parameter, and make sure it overrides any user-supplied setting.
30156 (Fx_close_connection, Fx_synchronize): Unify argument names with
30157 the rest of the DEFUNs.
30158
30159 * dispnew.c (Fsend_string_to_terminal): Update call to
30160 `get_tty_terminal'.
30161 (Fredraw_frame, Fsend_string_to_terminal)
30162 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30163 FRAME_TERMCAP_P and FRAME_TTY.
30164 (window_change_signal): Don't believe width/height values that are
30165 impossibly small.
30166 (Vinitial_window_system): Rename from Vwindow_system.
30167 (termscript, Wcm, rif): Delete.
30168
30169 * termhooks.h (struct terminal): New struct containing the
30170 previously global text display hooks and new members NAME,
30171 DELETED and PARAM_ALIST.
30172 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30173 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30174 (FRAME_RIF): New macros.
30175 (get_terminal_param, get_device): New declarations.
30176 (termscript): Delete declaration.
30177
30178 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30179 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30180 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30181 FRAME_FOREGROUND_PIXEL.
30182 (x_fully_uncatch_errors): Disable definition.
30183 (x_scroll_bar_expose): Fix reference to foreground pixel.
30184 (XTread_socket): Disable loop on all X displays.
30185 (x_delete_terminal): Don't set terminal->deleted and let
30186 delete_terminal delete the frames on the terminal.
30187 (x_delete_display): Doc update to reflect changes in
30188 delete_terminal.
30189 (x_display_info) <terminal>: Move member earlier in the struct.
30190 (deleting_tty): Remove old variable.
30191 (Fsuspend_tty): Call clear_tty_hooks.
30192 (Fresume_tty, init_tty): Call set_tty_hooks.
30193 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30194 errors on X frames.
30195 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30196 (handle_one_xevent): Initialize `f' to NULL.
30197 (x_delete_terminal, x_create_terminal): New functions.
30198 (XTset_terminal_modes, XTreset_terminal_modes)
30199 (XTread_socket, x_connection_closed, x_term_init)
30200 (x_term_init, x_delete_display): Add terminal parameter.
30201 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30202 X connections.
30203
30204 * frame.c: Include termchar.h.
30205 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30206 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30207 (Qdisplay_environment_variable): New vars.
30208 (Fframep): Deal with output_initial.
30209 (Fframe-live-p): Doc fix.
30210 (Fwindow-system): New function.
30211 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30212 (make_terminal_frame): Don't create frames on a terminal that is
30213 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30214 (store_frame_param): Check for found_for_frame before calling XFRAME.
30215 (Fmake_terminal_frame): Handle NULL tty names correctly.
30216 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30217 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30218 frames to refer to a deleted frame in their 'environment parameter.
30219 (Fframe_with_environment): New function.
30220 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30221 (get_future_frame_param): New function.
30222 (Fmake_terminal_frame): Use it.
30223 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30224
30225 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30226 * sysdep.c (reset_sys_modes): Update for renames.
30227
30228 * keyboard.c (tty_read_avail_input): New function.
30229 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30230 (syms_of_keyboard): Defsubr them.
30231 (Fset_input_meta_mode, Fset_quit_char): New functions.
30232 (Fset_input_mode): Split to above functions.
30233 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30234 parameter. Use it in call to `read_char'.
30235 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30236 Set wrong_kboard_jmpbuf correctly in recursive calls.
30237 Use current_kboard to access Vkeyboard_translate_table.
30238 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30239 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30240 Update longjmp invocations. Remember the original current_kboard,
30241 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30242 changes it. Comment out unnecessary calls to
30243 `record_single_kboard_state' and `any_kboard_state'.
30244 Update recursive calls.
30245 (wrong_kboard_jmpbuf): Remove global variable.
30246 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30247 Handle deleted interrupted_kboards correctly; that is a legal
30248 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30249 and read_char calls. Abort if interrupted_kboard died in read_char.
30250 (any_kboard_state, single_kboard_state)
30251 (push_frame_kboard): Remove function.
30252 (pop_kboard): Switch out of single_kboard mode if the kboard has
30253 been deleted. Remove unused variable. Help debugging by not
30254 changing current_kboard unnecessarily. Set current_kboard to the
30255 kboard of the selected frame when the stored kboard object has
30256 been deleted before pop_kboard.
30257 (temporarily_switch_to_single_kboard): Change first parameter to a
30258 frame pointer. Throw an error when caller wants to change kboards
30259 while in single_kboard mode. Don't push_kboard if we weren't in
30260 single kboard state. Don't pop_kboard if we popped into any
30261 kboard state.
30262 (restore_kboard_configuration): Abort if pop_kboard changed the
30263 kboard in single_kboard mode. Call pop_kboard only after setting
30264 up single_kboard mode.
30265 (Frecursive_edit): Switch to single_kboard mode only in nested
30266 command loops.
30267 (cmd_error, command_loop, command_loop_1, timer_check):
30268 Comment out unnecessary call to `any_kboard_state' and
30269 `record_single_kboard_state'.
30270 (delete_kboard): Exit single_kboard mode if we have just deleted
30271 that kboard. Use FRAME_KBOARD.
30272 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30273 `fatal_error_signal'.
30274 (record_single_kboard_state): Don't push_kboard if we weren't in
30275 single kboard state. Don't pop_kboard if we popped into any
30276 kboard state.
30277 (push_frame_kboard): Rename to push_kboard.
30278 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30279 (read_avail_input): Read input from all terminals.
30280 (mark_kboards): Also mark Vkeyboard_translate_table.
30281 (kbd_buffer_store_event_hold): Simplify condition.
30282 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30283 (Vkeyboard_translate_table): Move to struct kboard.
30284 (init_kboard): Initialize Vkeyboard_translate_table.
30285 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30286 Vkeyboard_translate_table. Update doc strings. Update docs of
30287 local-function-key-map and function-key-map.
30288
30289 * terminal.c: New file.
30290
30291 * term.c: Include errno.h.
30292 (Vring_bell_function, device_list, initial_device)
30293 (next_device_id, ring_bell, update_begin, update_end)
30294 (set_terminal_window, cursor_to, raw_cursor_to)
30295 (clear_to_end, clear_frame, clear_end_of_line)
30296 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30297 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30298 (syms_of_term): Move their initialization to terminal.c.
30299 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30300 (Ftty_display_color_cells)
30301 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30302 (clear_tty_hooks, set_tty_hooks)
30303 (init_tty, maybe_fatal): New functions.
30304 (Ftty_type): Return nil if terminal is not on a tty instead of
30305 throwing an error. Doc update.
30306 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30307 Doc update. Initialize new subrs and variables.
30308 (delete_tty): Use terminal->deleted.
30309 (tty_set_terminal_modes): Rename from set_terminal_modes.
30310 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30311 (set_scroll_region): Rename to `tty_set_scroll_region'.
30312 (turn_on_insert): Rename to `tty_turn_on_insert'.
30313 (turn_off_insert): Rename to `tty_turn_off_insert'.
30314 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30315 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30316 (toggle_highligh): Rename to `tty_toggle_highlight'.
30317 (background_highlight): Rename to `tty_background_highlight'.
30318 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30319 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30320 (tty_set_scroll_region, tty_background_highlight)
30321 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30322 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30323 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30324 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30325 Add static modifier.
30326 (tty_reset_terminal_modes, tty_set_terminal_window)
30327 (tty_set_scroll_region, tty_background_highlight)
30328 (tty_highlight_if_desired, tty_cursor_to)
30329 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30330 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30331 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30332 renames.
30333
303342007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30335
30336 * keyboard.c: Qrtl is new.
30337 (parse_tool_bar_item): Handle :rtl keyword.
30338 (syms_of_keyboard): Intern :rtl keyword.
30339
30340 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30341
30342 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30343 so no Lisp code is executed.
30344 (file_for_image, find_rtl_image): New functions.
30345 (xg_get_image_for_pixmap): Use file_for_image.
30346 (update_frame_tool_bar): If direction is RTL, use RTL image if
30347 defined. Use Gtk stock images if defined.
30348
303492007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30350
30351 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30352 for nonexistent or zero-width glyph in composition glyph.
30353
303542007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30355
30356 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30357
30358 * xdisp.c (Finvisible_p): New function.
30359 (syms_of_xdisp): defsubr it.
30360
303612007-08-24 Juanma Barranquero <lekktu@gmail.com>
30362
30363 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30364 Doc fixes.
30365
303662007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30367
30368 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30369
303702007-08-24 Martin Rudalics <rudalics@gmx.at>
30371
30372 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30373 whether decoding has modified buffer contents.
30374
303752007-08-24 Jason Rumney <jasonr@gnu.org>
30376
30377 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30378 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30379 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30380 (init_svg_functions) [HAVE_NTGUI]: New function.
30381 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30382 (svg_load_image): Use them.
30383 (svg_load_image) [HAVE_NTGUI]: Implement background.
30384
303852007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30386
30387 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30388 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30389 (LIBX): Remove @RSVG_LIBS@.
30390 (LIBES): Add $(RSVG_LIBS).
30391
30392 * image.c (svg_load_image): Blend with specified background if exists.
30393 Use IMAGE_BACKGROUND. Add Mac OS Support.
30394
30395 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30396 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30397 Remove macros.
30398 [MAC_OSX] (socket_callback): Do nothing.
30399 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30400 ReceiveNextEvent.
30401 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30402 socket_callback.
30403 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30404
304052007-08-22 Glenn Morris <rgm@gnu.org>
30406
30407 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30408
304092007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30410
30411 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30412
30413 * image.c: Add support for SVG images. Some additional comments
30414 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30415 (svg_image_p): New function to test for SVG image.
30416 (svg_load): New function to load SVG image.
30417 (svg_load_image): New function, helper for svg_load.
30418 (Qsvg): New Lisp_object.
30419 (svg_keyword_index): New enum.
30420 (svg_format): New static `image_keyword' struct.
30421 (svg_type): New static `image_type' struct.
30422 (librsvg/rsvg.h): Include it.
30423
304242007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30425
30426 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30427
304282007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30429
30430 * lread.c (Qold_style_backquotes): New var.
30431 (syms_of_lread): Init and staticpro it.
30432 (load_warn_old_style_backquotes): New fun.
30433 (Fload): Use them to warn about old style backquotes.
30434 (end_of_file_error, Fload): Remove unused vars.
30435
30436 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30437
30438 * lread.c (Vold_style_backquotes): New var.
30439 (syms_of_lread): Init and export it to Elisp.
30440 (read1): Set it when we find an old-style (back)quote.
30441
304422007-08-22 Jason Rumney <jasonr@gnu.org>
30443
30444 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30445
304462007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30447
30448 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30449
304502007-08-19 Richard Stallman <rms@gnu.org>
30451
30452 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30453
304542007-08-19 Andreas Schwab <schwab@suse.de>
30455
30456 * alloc.c (pure): Round PURESIZE up.
30457
304582007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30459
30460 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30461 active frame.
30462
304632007-08-16 Richard Stallman <rms@gnu.org>
30464
30465 * eval.c (Fcommandp): Add parens to clarify.
30466
30467 * minibuf.c (Fall_completions): Use enum for type of table.
30468
30469 * emacs.c (USAGE2): Improve text.
30470
304712007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30472
30473 * term.c (tty_default_color_capabilities): Declare static
30474 variables in file scope, to avoid HPUX compiler problem.
30475
304762007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30477
30478 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30479 to gtk_toolbar_insert.
30480
304812007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30482
30483 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30484
30485 * insdel.c (reset_var_on_error): New fun.
30486 (signal_before_change, signal_after_change):
30487 Use it to reset (after|before)-change-functions to nil in case of error.
30488 Bind inhibit-modification-hooks to t.
30489 Don't bind (after|before)-change-functions to nil while they run.
30490
304912007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30492
30493 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30494 filling pixmap with stippled background.
30495
304962007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30497
30498 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30499 Don't use invisible frame as parent window for repositioning.
30500
305012007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30502
30503 * print.c (new_backquote_output): Rename from old_backquote_output.
30504 (print): Inverse its logic (according to its name) so as to match the
30505 behavior of new_backquote_flag in lread.c.
30506
305072007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30508
30509 * gmalloc.c (posix_memalign): New function.
30510
30511 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30512 ActivateControl/DeactivateControl here.
30513 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30514 frame-notice-user-settings is non-nil.
30515 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30516 for kEventParamFMFontStyle.
30517 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30518 mac_pass_command_to_system and mac_pass_control_to_system here.
30519 (XTread_socket): Call ActivateControl/DeactivateControl here.
30520 (XTread_socket) [TARGET_API_MAC_CARBON]:
30521 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30522 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30523 for window repositioning.
30524
305252007-08-08 Glenn Morris <rgm@gnu.org>
30526
30527 * Replace `iff' in doc-strings and comments.
30528
305292007-08-07 Chong Yidong <cyd@stupidchicken.com>
30530
30531 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30532
305332007-08-07 Martin Rudalics <rudalics@gmx.at>
30534
30535 * fileio.c (Finsert_file_contents): Run format-decode and
30536 after_insert_file_functions on entire buffer when REPLACE is
30537 non-nil and inhibit modification_hooks and point_motion_hooks.
30538 For consistency, run after_insert_file_functions iff something
30539 got inserted. Move signal_after_change and update_compositions
30540 after code running after_insert_file_functions. Make sure that
30541 undo_list doesn't record intermediate steps of the decoding process.
30542
305432007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30544
30545 * emacs.c (main)
30546 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30547 Call malloc_enable_thread on interactive startup.
30548
30549 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30550 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30551 [USE_PTHREAD]: Conditionalize with it.
30552 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30553 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30554 New functions.
30555
305562007-08-06 Chong Yidong <cyd@stupidchicken.com>
30557
30558 * xdisp.c (redisplay_window): When restoring original buffer
30559 position, make sure it is still valid.
30560
30561 * image.c (png_load): Ignore png-supplied background color.
30562
305632007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30564
30565 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30566 Use kCFAbsoluteTimeIntervalSince1970.
30567
30568 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30569 New variable.
30570 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30571 event loop should be quit.
30572 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30573 Quit dialog event loop if quit_dialog_event_loop is set.
30574
30575 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30576 (Selection): New typedef. Use instead of ScrapRef.
30577 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30578 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30579 (mac_clear_selection): Rename from clear_scrap.
30580 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30581 scrap_has_target_type. All uses changed.
30582 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30583 (mac_selection_has_target_p): New functions.
30584 (mac_put_selection_value): Rename from put_scrap_string.
30585 (mac_get_selection_value): Rename from get_scrap_string.
30586 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30587 (put_scrap_private_timestamp, scrap_has_target_type)
30588 (get_scrap_private_timestamp): Remove functions.
30589 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30590 (x_own_selection, x_get_local_selection):
30591 Use mac_valid_selection_value_p.
30592 (x_own_selection): Don't use put_scrap_private_timestamp.
30593 Record OWNERSHIP-INFO into Vselection_alist instead.
30594 (x_get_local_selection): Don't check type if request is local.
30595 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30596 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30597
305982007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30599
30600 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30601 add comment explaining why.
30602
306032007-08-03 Richard Stallman <rms@gnu.org>
30604
30605 * fileio.c (Fvisited_file_modtime): Use make_time.
30606
306072007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30608
30609 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30610 build.
30611
306122007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30613
30614 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30615
306162007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30617
30618 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30619
306202007-07-30 Richard Stallman <rms@gnu.org>
30621
30622 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30623
306242007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30625
30626 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30627
306282007-07-28 Nick Roberts <nickrob@snap.net.nz>
30629
30630 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30631 remote default-directory.
30632
30633 * buffer.c (mode-line-format): Update doc string.
30634
306352007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30636
30637 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30638 scroll bar gap.
30639 (x_scroll_bar_create): Set bar->fringe_extended_p.
30640 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30641 on frame edge. Check fringe background extension. Don't clear
30642 extended fringe background area.
30643
30644 * w32term.h (struct scroll_bar): New member fringe_extended_p.
30645 (w32_fill_area): Enclose multiple statements with do ... while (0).
30646
30647 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
30648 Extend fringe background to scroll bar gap.
30649 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
30650 Set bar->fringe_extended_p.
30651 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30652 Put leftmost/rightmost scroll bars on frame edge. Check fringe
30653 background extension. Don't clear extended fringe background area.
30654
30655 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30656 New member fringe_extended_p.
30657
306582007-07-25 Glenn Morris <rgm@gnu.org>
30659
30660 * Relicense all FSF files to GPLv3 or later.
30661
30662 * COPYING: Switch to GPLv3.
30663
306642007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
30665
30666 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
30667
30668 * data.c (Finteractive_form): Check for the presence of an
30669 `interactive-form' symbol property more thoroughly.
30670
30671 * data.c (Finteractive_form): Use an `interactive-form' property if
30672 present, analogous to the function-documentation property.
30673
306742007-07-24 Jason Rumney <jasonr@gnu.org>
30675
30676 * w32fns.c (x_real_positions): Get real position from OS instead of
30677 calculating it.
30678
306792007-07-23 Jason Rumney <jasonr@gnu.org>
30680
30681 * filelock.c (current_lock_owner): Allow for @ sign in username.
30682
306832007-07-22 Nick Roberts <nickrob@snap.net.nz>
30684
30685 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
30686 remote default-directory.
30687
30688 * buffer.c (mode-line-format): Describe above case in doc string.
30689
306902007-07-20 Eli Zaretskii <eliz@gnu.org>
30691
30692 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
30693 Define if not defined.
30694
306952007-07-18 Jason Rumney <jasonr@gnu.org>
30696
30697 * w32proc.c (w32_executable_type): Handle 64 bit executables.
30698
306992007-07-18 Richard Stallman <rms@gnu.org>
30700
30701 * data.c (Fsetq_default): Doc fix.
30702
30703 * eval.c (Fsetq): Doc fix.
30704
307052007-07-18 Juanma Barranquero <lekktu@gmail.com>
30706
30707 * coding.c (Ffind_operation_coding_system):
30708 * eval.c (For, Fand): Doc fixes.
30709 Reported by Johan Bockgård.
30710
307112007-07-18 Jan Djärv <jan.h.d@swipnet.se>
30712
30713 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
30714
30715 * xterm.h: Declare x_ewmh_activate_frame.
30716
30717 * xterm.c (x_ewmh_activate_frame): New function.
30718 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
30719
307202007-07-17 Martin Rudalics <rudalics@gmx.at>
30721
30722 * window.c (Fdisplay_buffer): If largest or LRU window is the
30723 only window, split it even if it is not eligible for splitting.
30724 This restores the original behavior broken by the 2007-07-15
30725 change.
30726
307272007-07-17 Glenn Morris <rgm@gnu.org>
30728
30729 * abbrev.c (abbrev_check_chars): New function.
30730 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
30731 Call abbrev_check_chars to check abbrev characters are word
30732 constituents. Doc fix.
30733
307342007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
30735
30736 * process.c (Fstart_process, Fmake_network_process)
30737 (read_process_output): Fix up last changes.
30738
307392007-07-16 Eli Zaretskii <eliz@gnu.org>
30740
30741 * makefile.w32-in (clean): Don't delete *~.
30742
307432007-07-16 Andreas Schwab <schwab@suse.de>
30744
30745 * window.c (Fdisplay_buffer): Use NILP.
30746 (Fset_window_scroll_bars): Likewise.
30747
307482007-07-15 Martin Rudalics <rudalics@gmx.at>
30749
30750 * window.c (window_min_size_2): New function.
30751 (window_min_size_1, size_window, Fdisplay_buffer)
30752 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
30753 windows without mode- or header-lines when window-min-height is
30754 too small.
30755 (size_window): Reset nodelete_p after testing it, following an
30756 earlier note by Kim F. Storm.
30757 (display_buffer): Do not set split_height_threshold to twice the
30758 value of window_min_height to avoid changing the value of a
30759 customizable variable. Rather explicitly check whether the
30760 height of the window that shall be splitted is at least as large
30761 as split_height_threshold.
30762 (Fwindow_full_width_p): New defun.
30763 (syms_of_window): Defsubr it.
30764
30765 * window.h: Add EXFUN for Fwindow_full_width_p.
30766
307672007-07-14 Jason Rumney <jasonr@gnu.org>
30768
30769 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
30770
307712007-07-14 Richard Stallman <rms@gnu.org>
30772
30773 * eval.c (maybe_call_debugger): New function.
30774 (find_handler_clause): Use maybe_call_debugger.
30775 Call it when the handler says `debug'.
30776 Eliminate DEBUGGER_VALUE_PTR.
30777 (Fsignal): Eliminate debugger_value.
30778 (Qdebug): New variable.
30779 (syms_of_eval): Initialize it.
30780
307812007-07-14 Juanma Barranquero <lekktu@gmail.com>
30782
30783 * eval.c (Fprogn):
30784 * keyboard.c (Ftrack_mouse):
30785 * print.c (Fwith_output_to_temp_buffer):
30786 * window.c (Fsave_window_excursion): Doc fix.
30787
307882007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
30789
30790 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
30791
307922007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
30793
30794 * process.h (struct Lisp_Process): Turn slots infd, outfd,
30795 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
30796 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
30797 read_output_delay, and read_output_skip from Lisp_Objects to ints.
30798 Remove unused encoding_carryover.
30799 * process.c: Adjust all functions accordingly.
30800
308012007-07-12 Richard Stallman <rms@gnu.org>
30802
30803 * term.c: Include unistd.h only if HAVE_UNISTD_H.
30804
308052007-07-11 Jason Rumney <jasonr@gnu.org>
30806
30807 * makefile.w32-in (LIBS): Include OLE32.
30808
30809 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
30810 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
30811
308122007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30813
30814 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30815 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30816 from a Lisp_Object into a bare pointer.
30817 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30818 Adjust the code correspondingly.
30819
30820 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30821
30822 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30823 (term_show_mouse_face): Remove unused var `j'.
30824 (handle_one_term_event): Remove unused vars `i' and `j'.
30825 Don't cast return value of ttyname since it's not necessary.
30826
308272007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30828
30829 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30830 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30831
30832 * fns.c (map_char_table): Use an array of int for `indices' rather than
30833 an array of Lisp_Objects (which are only ever integers anyway).
30834 (Fmap_char_table): Update caller.
30835 * lisp.h: Update prototype.
30836 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30837 * fontset.c (Ffontset_info):
30838 * casetab.c (set_case_table): Update callers.
30839
30840 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30841
30842 * keymap.c (struct accessible_keymaps_data)
30843 (struct where_is_internal_data): New structures.
30844 (accessible_keymaps_1, where_is_internal_1): Use them to change
30845 interface to adhere to the one used by map_keymap.
30846 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30847 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30848
30849 * keymap.h (map_keymap_function_t): More informative prototype.
30850
308512007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30852
30853 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30854 (looking_at_1): Don't change search_regs and last_thing_searched
30855 if `inhibit-changing-match-data' is non-nil.
30856 (string_match_1, search_buffer, set_search_regs): Likewise.
30857 (syms_of_search): Add Lisp level definition for
30858 `inhibit-changing-match-data' and set it to nil.
30859 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30860 start and end of the match, instead of using values in search_regs.
30861
308622007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30863
30864 * minibuf.c (Fcompleting_read): New value `confirm-only'
30865 for `require-match'.
30866
308672007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30868
30869 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30870 part of the 2007-06-27 change to syms_of_fileio.
30871
308722007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30873
30874 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30875 Check WINDOWP before using XWINDOW. Consolidate return statements.
30876
308772007-06-27 Richard Stallman <rms@gnu.org>
30878
30879 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30880
308812007-06-27 Juanma Barranquero <lekktu@gmail.com>
30882
30883 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30884
308852007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30886
30887 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30888 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30889 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30890 (_free_internal, memalign): Use them.
30891 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30892 Initialize to PTHREAD_MUTEX_INITIALIZER.
30893 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30894 (morecore_nolock): Rename from morecore. All uses changed.
30895 Use only nolock versions of internal allocation functions.
30896 (_malloc_internal_nolock, _realloc_internal_nolock)
30897 (_free_internal_nolock): New functions created from
30898 _malloc_internal, _realloc_internal, and _free_internal.
30899 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30900 Copy hook value to automatic variable before its use.
30901 (memalign): Copy hook value to automatic variable before its use.
30902
309032007-06-26 Kenichi Handa <handa@m17n.org>
30904
30905 * coding.c (Ffind_operation_coding_system): Docstring improved.
30906 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30907
309082007-06-25 David Kastrup <dak@gnu.org>
30909
30910 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30911 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30912 cater for additional parameter.
30913
30914 * keymap.h: Adjust number of parameters to `current-active-maps'.
30915
30916 * doc.c (Fsubstitute_command_keys): Adjust call of
30917 `current-active-maps'.
30918
309192007-06-25 David Kastrup <dak@gnu.org>
30920
30921 * callint.c (Fcall_interactively): Make the parsing of interactive
30922 specs somewhat more readable.
30923
309242007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30925
30926 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30927 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30928 if extended background has already been filled.
30929
309302007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30931
30932 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30933 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30934
30935 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30936 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30937 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30938 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30939 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30940 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30941 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30942 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30943 Run timers during dialog popup.
30944 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30945
309462007-06-21 Jason Rumney <jasonr@gnu.org>
30947
30948 * image.c (convert_mono_to_color_image): Swap fore and background.
30949
309502007-06-20 Jason Rumney <jasonr@gnu.org>
30951
30952 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30953 (w32_free_bdf_font): Unmap memory not handle.
30954
309552007-06-20 Sam Steingold <sds@gnu.org>
30956
30957 * gmalloc.c (__morecore): Fix the declaration to comply with the
30958 definition.
30959
309602007-06-20 Juanma Barranquero <lekktu@gmail.com>
30961
30962 * w32term.c (w32_delete_display): Remove leftover declaration.
30963 (w32_define_cursor, w32_initialize): Make static.
30964
30965 * w32.c (_wsa_errlist): Fix typo in error message.
30966 (init_environment): Ignore any environment variable from the
30967 registry having a null value.
30968
309692007-06-20 Glenn Morris <rgm@gnu.org>
30970
30971 * Makefile.in (LIBGIF): Default to -lgif.
30972
309732007-06-17 Jason Rumney <jasonr@gnu.org>
30974
30975 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30976 unicode strings.
30977
309782007-06-16 Juanma Barranquero <lekktu@gmail.com>
30979
30980 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30981 Fix typo in docstring.
30982
309832007-06-16 Eli Zaretskii <eliz@gnu.org>
30984
30985 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30986 and their keybindings.
30987
309882007-06-15 Chong Yidong <cyd@stupidchicken.com>
30989
30990 * composite.c (update_compositions): Fix last fix.
30991
309922007-06-14 Jason Rumney <jasonr@gnu.org>
30993
30994 * w32.c (get_process_times_fn): New function pointer.
30995 (globals_of_w32): Intialize it if present in kernel32.dll.
30996 (w32_get_internal_run_time): New function.
30997
30998 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30999
310002007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31001
31002 * composite.c (update_compositions): Check the validness of
31003 compositions.
31004
310052007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31006
31007 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31008 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31009
31010 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31011 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31012
31013 * macgui.h (USE_MAC_TOOLBAR): New define.
31014
31015 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31016 Return immediately unless popup is activated.
31017
31018 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31019 background to scroll bar gap.
31020 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31021 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31022 scroll bars on frame edge. Check fringe background extension.
31023 Don't clear extended fringe background area.
31024 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31025 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31026 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31027 [USE_MAC_TOOLBAR]: New macros.
31028 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31029 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31030 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31031 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31032 [USE_MAC_TOOLBAR]: New functions.
31033 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31034 manually if previous repositioning has failed.
31035 (mac_handle_keyboard_event): Use precomputed event kind.
31036 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31037 as tool bar item click. Handle mouse movement over tool bar items.
31038
31039 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31040 toolbar_win_gravity.
31041 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31042 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31043 Add externs.
31044
31045 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31046 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31047
310482007-06-14 Chong Yidong <cyd@stupidchicken.com>
31049
31050 * image.c (search_image_cache): Remove unused variable.
31051
310522007-06-13 Chong Yidong <cyd@stupidchicken.com>
31053
31054 * xfns.c, xmenu.c: Link to xaw3d if available.
31055
310562007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31057
31058 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31059 frame_foreground and frame_background.
31060
31061 * image.c (lookup_image): Save frame foreground and background colors.
31062 (search_image_cache): Check if saved and current frame colors match.
31063
310642007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31065
31066 * regex.c (regex_compile): Remove the `regnum' counter.
31067 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31068
310692007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31070
31071 * term.c: Include intervals.h to declare Fget_text_property.
31072
310732007-06-10 Jason Rumney <jasonr@gnu.org>
31074
31075 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31076
310772007-06-08 Juanma Barranquero <lekktu@gmail.com>
31078
31079 * callint.c (Fcall_interactively):
31080 * editfns.c (Fdelete_and_extract_region):
31081 * fileio.c (Fread_file_name):
31082 * fns.c (Fmapconcat):
31083 * keyboard.c (cmd_error_internal):
31084 * keymap.c (Fkey_description):
31085 * lread.c (openp):
31086 * minibuf.c (read_minibuf):
31087 * search.c (wordify):
31088 * sunfns.c (sel_read):
31089 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31090 * xfns.c (x_default_scroll_bar_color_parameter):
31091 * xmenu.c (menu_help_callback):
31092 * xselect.c (Fx_get_atom_name):
31093 * xterm.c (x_term_init): Use empty_unibyte_string.
31094
310952007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31096
31097 * alloc.c (init_strings): Initialize canonical empty strings.
31098 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31099 canonical empty string when the requested size is 0.
31100
31101 * emacs.c (empty_unibyte_string): Rename from empty_string.
31102 (empty_multibyte_string): New canonical empty string.
31103 (syms_of_emacs): Don't initialize empty_string.
31104
31105 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31106 string, if appropriate.
31107 (empty_unibyte_string, empty_multibyte_string): New externs.
31108 (empty_string): Remove extern.
31109
31110 * lread.c (syms_of_lread): Use empty_unibyte_string.
31111
311122007-06-07 Jason Rumney <jasonr@gnu.org>
31113
31114 * s/ms-w32.h: Don't define HAVE_TZNAME.
31115
31116 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31117
311182007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31119
31120 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31121
31122 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31123 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31124
31125 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31126 Don't call next handler.
31127 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31128 Remove argument. Install handler to application.
31129 (set_frame_menubar): Don't change deep_p.
31130 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31131 FRAME_OUTER_TO_INNER_DIFF_Y.
31132 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31133 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31134 [HAVE_DIALOGS]: New macros.
31135 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31136 Use them.
31137 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31138
31139 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31140 init_service_handler. All callers changed. Return OSStatus value.
31141
31142 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31143 All callers changed so as not to call SetPortWindowPort.
31144 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31145 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31146 mac_draw_string_common.
31147 (mac_draw_image_string_qd): Likewise.
31148 (mac_draw_string_common): Use them. Add INLINE.
31149 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31150 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31151 GetGlobalMouse.
31152 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31153 and FRAME_OUTER_TO_INNER_DIFF_Y.
31154 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31155 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31156 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31157 repositioning window to mac_handle_window_event.
31158 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31159 saving window location to mac_handle_window_event
31160 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31161 (install_menu_target_item_handler): Remove argument in extern.
31162 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31163 Also accept command events.
31164 (do_keystroke): New function created from XTread_socket.
31165 (init_command_handler): Remove functions.
31166 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31167 and save window location by kEventWindowShowing and kEventWindowHiding
31168 handlers here. Don't call next handler for window state change and
31169 focus events.
31170 (mac_handle_application_event, mac_handle_keyboard_event)
31171 [TARGET_API_MAC_CARBON]: New functions.
31172 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31173 kEventWindowShowing and kEventWindowHiding events. Move installation
31174 of mouse, font, text input and menu target item handlers to
31175 install_application_handler.
31176 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31177 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31178 New function.
31179 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31180 Register it.
31181 (XTread_socket) [TARGET_API_MAC_CARBON]:
31182 Consolidate SendEventToEventTarget calls.
31183 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31184 Move application activation handler to mac_handle_application_event.
31185 Move keyboard handler to mac_handle_keyboard_event.
31186 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31187 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31188 init_command_handler. Call install_application_handler.
31189
31190 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31191 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31192
311932007-06-07 Glenn Morris <rgm@gnu.org>
31194
31195 * emacs.c (main): Use `emacs-copyright' in --version output.
31196
311972007-06-06 Chong Yidong <cyd@stupidchicken.com>
31198
31199 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31200
312012007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31202
31203 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31204
31205 * macgui.h: Replace WindowPtr with WindowRef.
31206
31207 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31208 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31209 Replace ControlHandle with ControlRef.
31210 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31211
31212 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31213 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31214 Replace ControlHandle with ControlRef.
31215 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31216 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31217
31218 * macterm.h (struct scroll_bar): Rename member control_handle_low
31219 and control_handle_high to control_ref_low and control_ref_high.
31220 All uses changed.
31221 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31222 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31223 respectively. All uses changed.
31224 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31225 (install_window_handler, remove_window_handler): Replace WindowPtr
31226 with WindowRef in externs.
31227
312282007-06-05 Juanma Barranquero <lekktu@gmail.com>
31229
31230 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31231
312322007-06-03 Nick Roberts <nickrob@snap.net.nz>
31233
31234 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31235
31236 * frame.c (Fmouse_position, Fmouse_pixel_position):
31237 Condition on HAVE_GPM too.
31238
31239 * term.c (term_mouse_highlight): Remove unused variables.
31240 (Fterm_open_connection): Set gpm_zerobased to 1.
31241 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31242 Use zero based co-ordinates.
31243 (handle_one_term_event): Report a drag as mouse movement too.
31244
31245 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31246
312472007-06-03 Chong Yidong <cyd@stupidchicken.com>
31248
31249 * image.c (search_image_cache): New function. Require background
31250 color match if background color is unspecified in the image spec.
31251 (uncache_image, lookup_image): Use it.
31252
312532007-06-01 Juanma Barranquero <lekktu@gmail.com>
31254
31255 * window.c (Fshrink_window): Reflow docstring.
31256
312572007-06-02 Chong Yidong <cyd@stupidchicken.com>
31258
31259 * Version 22.1 released.
31260
312612007-06-01 Richard Stallman <rms@gnu.org>
31262
31263 * xfns.c (x_encode_text): Add GCPRO.
31264
312652007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31266
31267 * xfns.c (x_set_name_internal): Save encoded name before
31268 x_encode_text in case string data is relocated.
31269
312702007-05-31 Richard Stallman <rms@gnu.org>
31271
31272 * buffer.c (syms_of_buffer): Doc fix.
31273
312742007-05-30 Nick Roberts <nickrob@snap.net.nz>
31275
31276 * sysdep.c (init_sys_modes): Add rather than replace with
31277 O_NONBLOCK.
31278
31279 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31280 term_mouse_moveto.
31281
31282 * termhooks.h (term_mouse_moveto): New extern.
31283
31284 * term.c (mouse_face_window): Rename...
31285 (Qmouse_face_window): ...to this.
31286 (term_show_mouse_face, term_clear_mouse_face)
31287 (term_mouse_highlight): Use Qmouse_face_window.
31288 (term_mouse_moveto): New function.
31289 (term_mouse_position): Make it work.
31290 (syms_of_term): Uncomment assignment to mouse_position_hook.
31291 Staticpro Qmouse_face_window.
31292
312932007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31294
31295 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31296 around current_column call.
31297
312982007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31299
31300 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31301 * xdisp.c (next_element_from_buffer):
31302 * window.c (delete_window):
31303 * term.c (term_mouse_highlight):
31304 * msdos.c (getdefdir):
31305 * macterm.c (mac_create_bitmap_from_bitmap_data)
31306 (init_font_name_table):
31307 * fns.c (Fsxhash):
31308 * data.c (Fmake_local_variable):
31309 * ccl.c (ccl_driver): Likewise.
31310
313112007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31312
31313 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31314 Call mac_wakeup_from_rne on window size change.
31315
313162007-05-25 Chong Yidong <cyd@stupidchicken.com>
31317
31318 * image.c (uncache_image): Fix typo.
31319
313202007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31321
31322 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31323
313242007-05-22 Richard Stallman <rms@gnu.org>
31325
31326 * xterm.c (x_connection_closed): Remove NO_RETURN.
31327
313282007-05-22 Martin Rudalics <rudalics@gmx.at>
31329
31330 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31331
313322007-05-21 Chong Yidong <cyd@stupidchicken.com>
31333
31334 * image.c (uncache_image): New function.
31335 (Fimage_refresh): New function.
31336
313372007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31338
31339 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31340
313412007-05-20 Nick Roberts <nickrob@snap.net.nz>
31342
31343 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31344 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31345
313462007-05-20 Nick Roberts <nickrob@snap.net.nz>
31347
31348 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31349 conditional on [HAVE_GPM_H].
31350
313512007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31352
31353 * syntax.c (skip_chars): Update syntax-table only after we checked that
31354 the new location is valid.
31355
313562007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31357
31358 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31359 mac_get_window_bounds.
31360
313612007-05-20 Nick Roberts <nickrob@snap.net.nz>
31362
31363 * Makefile.in (LIBGPM): Allow it to be set from configure.
31364 If set then link Emacs with it.
31365
31366 * config.in: Regenerate.
31367
31368 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31369 New externs.
31370
31371 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31372 Include gpm.h.
31373 (handle_one_term_event, term_gpm): New externs.
31374
31375 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31376 and allow it to be interrupted by SIGIO.
31377
31378 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31379 (wait_reading_process_output): Wait on gpm_fd too.
31380 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31381 (add_gpm_wait_descriptor_called_flag): New variable.
31382 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31383
31384 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31385 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31386 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31387 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31388 (make_lispy_event): Add case GPM_CLICK_EVENT.
31389 (read_avail_input): Handle mouse input.
31390
31391 * term.c (write_glyphs_with_face): New function.
31392 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31393 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31394 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31395 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31396 (last_mouse_x, last_mouse_y): New variables.
31397 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31398 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31399 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31400 (Fterm_close_connection): New functions.
31401 (term_init): Initialise mouse_face_window.
31402
314032007-05-19 Chong Yidong <cyd@stupidchicken.com>
31404
31405 * xdisp.c (redisplay_window): If first window line is a
31406 continuation line, recompute the new window start instead of
31407 recentering.
31408
314092007-05-18 Glenn Morris <rgm@gnu.org>
31410
31411 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31412 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31413
314142007-05-17 Glenn Morris <rgm@gnu.org>
31415
31416 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31417
314182007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31419
31420 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31421 dead key repeat and up events.
31422
314232007-05-14 Chong Yidong <cyd@stupidchicken.com>
31424
31425 * image.c (pbm_load): Check image size for monochrome pbm.
31426
314272007-05-13 Chong Yidong <cyd@stupidchicken.com>
31428
31429 * xterm.c (XTread_socket): Revert last change.
31430
314312007-05-12 Chong Yidong <cyd@stupidchicken.com>
31432
31433 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31434
31435 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31436
314372007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31438
31439 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31440 mixup (YAILOM).
31441
314422007-05-07 Andreas Schwab <schwab@suse.de>
31443
31444 * keymap.c (Flookup_key): Fix typo in last change.
31445
314462007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31447
31448 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31449 mapping for unibyte strings.
31450
314512007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31452
31453 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31454 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31455
314562007-04-29 Richard Stallman <rms@gnu.org>
31457
31458 * insdel.c (replace_range): For undo, record insertion first.
31459
314602007-04-29 Andreas Schwab <schwab@suse.de>
31461
31462 * lisp.h (VECSIZE): Use OFFSETOF.
31463
314642007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31465
31466 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31467 disabled lines.
31468
314692007-04-28 Richard Stallman <rms@gnu.org>
31470
31471 * lread.c (read_escape): In a string, \s is always space.
31472
314732007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31474
31475 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31476
31477 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31478 submenu for menu bar items.
31479
31480See ChangeLog.10 for earlier changes.
31481
31482;; Local Variables:
31483;; coding: utf-8
aac0c6e3
MR
31484;; End:
31485
73b0cd50 31486 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31487
31488 This file is part of GNU Emacs.
31489
31490 GNU Emacs is free software: you can redistribute it and/or modify
31491 it under the terms of the GNU General Public License as published by
31492 the Free Software Foundation, either version 3 of the License, or
31493 (at your option) any later version.
31494
31495 GNU Emacs is distributed in the hope that it will be useful,
31496 but WITHOUT ANY WARRANTY; without even the implied warranty of
31497 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31498 GNU General Public License for more details.
31499
31500 You should have received a copy of the GNU General Public License
31501 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.