* ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8f5201ae
PE
12011-03-19 Paul Eggert <eggert@cs.ucla.edu>
2
8ff096c1
PE
3 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
4
e2be39f6
PE
5 * xfont.c (xfont_list_family): Mark var as initialized.
6
c9735e30
PE
7 * xml.c (make_dom): Now static.
8
8f5201ae
PE
9 * composite.c (composition_compute_stop_pos): Rename local to
10 avoid shadowing.
b246f932
PE
11 (composition_reseat_it): Remove unused locals.
12 (find_automatic_composition, composition_adjust_point): Likewise.
80e079b2 13 (composition_update_it): Mark var as initialized.
11b61122
PE
14 (find_automatic_composition): Mark vars as initialized,
15 with a FIXME (Bug#8290).
8f5201ae 16
7710357c
PE
172011-03-18 Paul Eggert <eggert@cs.ucla.edu>
18
760fbc2c
PE
19 character.h: Rename locals to avoid shadowing.
20 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
21 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
22 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
23 (BUF_DEC_POS): Be more systematic about renaming local temporaries
24 to avoid shadowing.
25
ff08eb85
PE
26 * textprop.c (property_change_between_p): Remove; unused.
27
fc7bf025
PE
28 * intervals.c (interval_start_pos): Now static.
29
235d7abc
PE
30 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
31
3e7d6594
PE
32 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
33 locals to avoid shadowing.
34
50060332
PE
35 * sound.c (wav_play, au_play, Fplay_sound_internal):
36 Fix pointer signedness.
d01f234b 37 (alsa_choose_format): Remove unused local var.
c83b8872
PE
38 (wav_play): Initialize a variable to 0, to prevent undefined
39 behavior (Bug#8278).
50060332 40
c4fc4e30
PE
41 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
42
918436ed
PE
43 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
44
b9c7f648
PE
45 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
46 * sysdep.c (sys_subshell): Likewise.
47 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
7e9123a2 48
6bd8c144
PE
49 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
50 This should get cleaned up, so that child_setup has the
51 same signature on all platforms.
52
7710357c 53 * callproc.c (call_process_cleanup): Now static.
cb1d0ef7 54 (relocate_fd): Rename locals to avoid shadowing.
7710357c 55
09f6ff02
EZ
562011-03-17 Eli Zaretskii <eliz@gnu.org>
57
58 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
59
29a6015a
PE
602011-03-17 Paul Eggert <eggert@cs.ucla.edu>
61
a3a6c54e
PE
62 Fix more problems found by GCC 4.5.2's static checks.
63
b766f867
PE
64 * process.c (make_serial_process_unwind, send_process_trap):
65 (sigchld_handler): Now static.
66
be02381c
PE
67 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
68 That way, the code declares only the vars that it needs.
69 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
70 * s/cygwin.h (PTY_ITERATION): Likewise.
71 * s/darwin.h (PTY_ITERATION): Likewise.
72 * s/gnu-linux.h (PTY_ITERATION): Likewise.
73
57048744
PE
74 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
75 * process.c (allocate_pty): Don't declare stb unless it's needed.
76
7914961c 77 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
615f2d59
PE
78 (CONSTANTLIM): Remove; unused.
79 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
80 Define only if needed.
7914961c 81
b3967b18
PE
82 * unexelf.c (unexec): Name an expression,
83 to avoid gcc -Wbad-function-cast warning.
9ae71512
PE
84 Use a different way to cause a compilation error if anyone uses
85 n rather than nn, a way that does not involve shadowing.
73366a00 86 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
b3967b18 87
29a6015a
PE
88 * deps.mk (unexalpha.o): Remove; unused.
89
43cfc33e 90 New file unexec.h, the (simple) interface for unexec (Bug#8267).
7feda0d2 91 * unexec.h: New file.
ce701a33
PE
92 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
93 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
94 Depend on unexec.h.
95 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
96 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
97 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
381259ef 98 Change as necessary to match prototype in unexec.h.
ce701a33 99
01f44d5a
PE
100 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
101 shadowing.
4f63c6bb 102 (back_comment, skip_chars): Mark vars as initialized.
01f44d5a 103
a6670b0b
PE
104 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
105 Rename locals to avoid shadowing.
106
cef2010d 107 * lread.c (read1): Rewrite so as not to use empty "else".
0902fe45 108 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
cef2010d 109
d4d7173a
PE
110 * print.c (Fredirect_debugging_output): Fix pointer signedess.
111
f08b802a
PE
112 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
113 warning when compiling print.c.
114
3ddb0639
PE
115 * font.c (font_unparse_fcname): Abort in an "impossible" situation
116 instead of using an uninitialized var.
5ad03b97 117 (font_sort_entities): Mark var as initialized.
3ddb0639 118
170a2692
PE
119 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
120
e663c700
PE
121 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
122 pointers to constants.
89bc529a 123 (font_parse_fcname): Remove unused vars.
7b81e2d0 124 (font_delete_unmatched): Now static.
ea838e10 125 (font_get_spec): Remove; unused.
13a547c6
PE
126 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
127 (font_update_drivers, Ffont_get_glyphs, font_add_log):
128 Rename or move locals to avoid shadowing.
e663c700 129
2a80c887 130 * fns.c (require_nesting_list, require_unwind): Now static.
612f56df 131 (Ffillarray): Rename locals to avoid shadowing.
2a80c887 132
1384fa33 133 * floatfns.c (domain_error2): Define only if needed.
a885e2ed 134 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
1384fa33 135
8b2c52e9
PE
136 * alloc.c (mark_backtrace): Move decl from here ...
137 * lisp.h: ... to here, so that it can be checked.
138
475545b5 139 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
d28a2170 140 (Fdefvar): Rewrite so as not to use empty "else".
cfcbfb1a
PE
141 (lisp_indirect_variable): Name an expression,
142 to avoid gcc -Wbad-function-cast warning.
1faed8ae 143 (Fdefvar): Rename locals to avoid shadowing.
475545b5 144
b1349114 145 * callint.c (quotify_arg, quotify_args): Now static.
a3e8cbda 146 (Fcall_interactively): Rename locals to avoid shadowing.
b0e80955 147 Use const pointer when appropriate.
b1349114 148
a2928364
PE
149 * lisp.h (get_system_name, get_operating_system_release):
150 Move decls here, to check interfaces.
151 * process.c (get_operating_system_release): Move decl to lisp.h.
152 * xrdb.c (get_system_name): Likewise.
63c5d10b
PE
153 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
154 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
155 some of which prompt warnings from gcc -Wbad-function-cast.
545b49b4
PE
156 (Fformat_time_string, Fencode_time, Finsert_char):
157 (Ftranslate_region_internal, Fformat):
158 Rename or remove local vars to avoid shadowing.
9710023e 159 (Ftranslate_region_internal): Mark var as initialized.
63c5d10b 160
a415e694
PE
161 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
162 avoid shadowing.
163
8ef4622d
PE
164 * lisp.h (eassert): Check that the argument compiles, even if
165 ENABLE_CHECKING is not defined.
166
946f9a5b
PE
167 * data.c (Findirect_variable): Name an expression, to avoid
168 gcc -Wbad-function-cast warning.
112396d6 169 (default_value, arithcompare, arith_driver, arith_error): Now static.
b9b84fa9 170 (store_symval_forwarding): Rename local to avoid shadowing.
cdef261f
PE
171 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
172 variables as initialized.
52746918 173 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
946f9a5b 174
e5aab7e7 175 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
176 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
177 Rename locals to avoid shadowing.
dff45157
PE
178 (mark_stack): Move local variables into the #ifdef region where
179 they're used.
7bc26fdb
PE
180 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
181 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
182 needed otherwise.
183 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
184 (GC_STRING_CHARS): Remove; not used.
d40d4be1 185 (Fmemory_limit): Cast sbrk's returned value to char *.
ae35e756 186
e5aab7e7
PE
187 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
188 avoids undefined behavior in theory.
189
4da60324
PE
190 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
191
88043301
PE
192 Use functions, not macros, for up- and down-casing (Bug#8254).
193 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
194 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
195 to use the following functions instead of these macros.
196 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
197 EMACS_INT, since callers assume the returned value fits in int.
198 (upcase1): Likewise, for UPCASE_TABLE.
199 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 200 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 201 the race-condition problem in the old DOWNCASE.
88043301 202
19ed5445
PE
203 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
204 Rename locals to avoid shadowing.
205 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
206 (regex_compile, re_search_2, re_match_2_internal):
207 Remove unused local vars.
952db0d7
PE
208 (FREE_VAR): Rewrite so as not to use empty "else",
209 which gcc can warn about.
da053e48 210 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
211 (RETALLOC_IF): Define only if needed.
212 (WORDCHAR_P): Likewise. This one is never needed, but is used
213 only in a comment talking about a compiler bug, so put inside
214 the #if 0 of that comment.
215 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
216 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
217 Remove; unused.
19ed5445 218
1f3561e4 219 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
220 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
221 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 222
ded6f8f7
PE
223 * search.c (simple_search): Remove unused var.
224
dbd37a95
PE
225 * dired.c (compile_pattern): Move decl from here ...
226 * lisp.h: ... to here, so that it can be checked.
227 (struct re_registers): New forward decl.
228
7e47afad
PE
229 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
230
85f24f61
PE
231 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
232 All uses changed.
233 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
234 Rename locals to avoid shadowing.
5671df8f 235 (Fvertical_motion): Mark locals as initialized.
85f24f61 236
181aa2be 237 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 238 (casify_region): Mark local as initialized.
181aa2be 239
930d429c
PE
240 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
241
7082eac6
PE
242 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
243 New macros, so that the caller can use some names other than
244 gcpro1, gcpro2, etc.
245 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
246 of the new macros.
247 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
248 argument, for consistency with GCPRO2_VAR, etc: it is now the
249 prefix of the variable, not the variable itself. All uses
250 changed.
38b2c076
PE
251 * dired.c (directory_files_internal, file_name_completion):
252 Rename locals to avoid shadowing.
253
15206ed9
PE
254 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
255 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
256 dired.c's scmp function, had undefined behavior.
257 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
258 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
259 * buffer.h: ... to here, because these macros use current_buffer,
260 and the new implementation with inline functions needs to have
261 current_buffer in scope now, rather than later when the macros
262 are used.
263 (downcase, upcase1): New static inline functions.
264 (DOWNCASE, UPCASE1): Reimplement using these functions.
265 This avoids undefined behavior in expressions like
266 DOWNCASE (x) == DOWNCASE (y), which previously suffered
267 from race conditions in accessing the global variables
268 case_temp1 and case_temp2.
269 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
270 * lisp.h (case_temp1, case_temp2): Remove their decls.
271 * character.h (ASCII_CHAR_P): Move from here ...
272 * lisp.h: ... to here, so that the inline functions mentioned
273 above can use them.
274
4a6bea26
PE
275 * dired.c (directory_files_internal_unwind): Now static.
276
f14b7e14
PE
277 * fileio.c (file_name_as_directory, directory_file_name):
278 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
279 Now static.
2893f146
PE
280 (file_name_as_directory): Use const pointers when appropriate.
281 (Fexpand_file_name): Likewise. In particular, newdir might
282 point at constant storage, so make it a const pointer.
fd4ead52 283 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
284 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
285 signedness issues.
f839df0c
PE
286 (Fset_file_times, Finsert_file_contents, auto_save_error):
287 Rename locals to avoid shadowing.
f14b7e14 288
5716756e 289 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
290 (Ftry_completion, Fall_completions): Rename or remove locals
291 to avoid shadowing.
5716756e 292
b4c3046a
PE
293 * marker.c (bytepos_to_charpos): Remove; unused.
294
b45db522
PE
295 * lisp.h (verify_bytepos, count_markers): New decls,
296 so that gcc does not warn that these functions aren't declared.
297
85876d07
PE
298 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
299 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 300 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 301 (copy_text): Remove unused local var.
85876d07 302
03d78a21 303 * filelock.c (within_one_second): Now static.
b3dd38ab 304 (lock_file_1): Rename local to avoid shadowing.
03d78a21 305
5df8f01b
PE
306 * buffer.c (fix_overlays_before): Mark locals as initialized.
307 (fix_start_end_in_overlays): Likewise. This function should be
308 simplified by using pointers-to-pointers, but that's a different
309 matter.
b1d876f1 310 (switch_to_buffer_1): Now static.
8f54f30a
PE
311 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
312 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 313
a70072c9 314 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 315 Fix pointer signedness issue.
edced198
PE
316 (sys_subshell): Mark local as volatile if checking for lint,
317 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 318 (MAXPATHLEN): Define only if needed.
a70072c9 319
a0977c44
PE
320 * process.c (serial_open, serial_configure): Move decls from here ...
321 * systty.h: ... to here, so that they can be checked.
322
a884fdcc
PE
323 * fns.c (get_random, seed_random): Move extern decls from here ...
324 * lisp.h: ... to here, so that they can be checked.
325
604efe86 326 * sysdep.c (reset_io): Now static.
b8950c94 327 (wait_for_termination_signal): Remove; unused.
604efe86 328
38fc62d9
PE
329 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
330 (copy_keymap_item, append_key, push_text_char_description):
331 Now static.
1004a21a 332 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 333 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
334 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
335 (describe_map_tree):
336 Rename locals to avoid shadowing.
38fc62d9 337
2f2650da
PE
338 * keyboard.c: Declare functions static if they are not used elsewhere.
339 (echo_char, echo_dash, cmd_error, top_level_2):
340 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
341 (read_char, kbd_buffer_get_event, make_lispy_position):
342 (make_lispy_event, make_lispy_movement, apply_modifiers):
343 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
344 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
345 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 346 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 347 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 348
a053e86c 349 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
350 (mark_kboards): Move decl here ...
351 * alloc.c (mark_kboards): ... from here.
a053e86c 352
4752793e
PE
353 * lisp.h (force_auto_save_soon): New decl.
354
74f10ca7 355 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
356 (DEFINE_DUMMY_FUNCTION): New macro.
357 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
358 Use it.
c03cd23f
PE
359 (main): Add casts to avoid warnings
360 if GCC considers string literals to be constants.
74f10ca7 361
022e70d4
PE
362 * lisp.h (fatal_error_signal): Add decl, since it's exported.
363
59d6fe83
PE
364 * dbusbind.c: Pointer signedness fixes.
365 (xd_signature, xd_append_arg, xd_initialize):
366 (Fdbus_call_method, Fdbus_call_method_asynchronously):
367 (Fdbus_method_return_internal, Fdbus_method_error_internal):
368 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
369 (Fdbus_register_signal): Use SSDATA when the context wants char *.
370
78320123
PE
371 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
372 if GCC considers string literals to be constants.
49cebcca 373 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 374
35ac2a97
SM
3752011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
376
fb103ca9
SM
377 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
378 (print_preprocess, print_object): New macro to fix last change.
379
35ac2a97
SM
380 * print.c (print_preprocess): Don't forget font objects.
381
62973b41
JB
3822011-03-16 Juanma Barranquero <lekktu@gmail.com>
383
384 * emacs.c (USAGE3): Doc fixes.
385
0e48bb22
AS
3862011-03-15 Andreas Schwab <schwab@linux-m68k.org>
387
388 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
389 structure.
390
7684e57b
JB
3912011-03-14 Juanma Barranquero <lekktu@gmail.com>
392
393 * lisp.h (VWindow_system, Qfile_name_history):
394 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
395 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
396 (w32_system_caret_x, w32_system_caret_y): Declare extern.
397
398 * w32select.c: Don't #include "keyboard.h".
c96bbc66 399 (run_protected): Add extern declaration for waiting_for_input.
7684e57b
JB
400
401 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
402 * w32console.c (detect_input_pending, read_input_pending)
403 (encode_terminal_code):
404 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
405 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
406 (w32_system_caret_y, Qfile_name_history):
407 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
408 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
409 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
410 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
411 * w32proc.c (Qlocal, report_file_error):
412 * w32term.c (Vwindow_system, updating_frame):
413 * w32uniscribe.c (initialized, uniscribe_font_driver):
414 Remove unneeded extern declarations.
415
2aa46d6c
CY
4162011-03-14 Chong Yidong <cyd@stupidchicken.com>
417
c96bbc66 418 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
2aa46d6c 419
cffc6f3b
CY
4202011-03-13 Chong Yidong <cyd@stupidchicken.com>
421
422 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
423 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
424 These macros can no longer be used for assignment.
425
426 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
427 struct members directly, instead of using BUF_BEGV etc.
428 (record_buffer_markers, fetch_buffer_markers): New functions for
429 recording and fetching special buffer markers.
430 (set_buffer_internal_1, set_buffer_temp): Use them.
431
432 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
433
434 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
435
436 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
437 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
438
439 * xdisp.c (hscroll_window_tree):
440 (reconsider_clip_changes): Use PT instead of BUF_PT.
441
d251f04b
EZ
4422011-03-13 Eli Zaretskii <eliz@gnu.org>
443
444 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
445 $(EMACS_ROOT)/lib/intprops.h.
446
f0c77cd1
PE
4472011-03-13 Paul Eggert <eggert@cs.ucla.edu>
448
3eca4629
PE
449 Fix more problems found by GCC 4.5.2's static checks.
450
7c86ee98
PE
451 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
452 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
453 (xg_free_frame_widgets): Make it clear that a local variable is
454 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
455 (gdk_window_get_screen): Make it clear that this macro is needed
456 only if USE_GTK_TOOLTIP.
1e5524e7
PE
457 (int_gtk_range_get_value): New function, which avoids a diagnostic
458 from gcc -Wbad-function-cast.
459 (xg_set_toolkit_scroll_bar_thumb): Use it.
460 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
461 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
462 (get_utf8_string, xg_get_file_with_chooser):
463 Rename locals to avoid shadowing.
464 (create_dialog): Move locals to avoid shadowing.
7c86ee98 465
41729b81
PE
466 * xgselect.c (xg_select): Remove unused var.
467
f0c77cd1
PE
468 * image.c (four_corners_best): Mark locals as initialized.
469 (gif_load): Initialize transparent_p to zero (Bug#8238).
470 Mark another local as initialized.
ec6cf4c6 471 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 472
ce0ad53d 473 * image.c (clear_image_cache): Now static.
d5d5a617 474 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 475 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
476 (x_edge_detection): Remove unnecessary cast that
477 gcc -Wbad-function-cast diagnoses.
2037898d 478 (gif_load): Fix pointer signedness.
6ae141d6
PE
479 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
480 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 481
3eca4629
PE
4822011-03-11 Paul Eggert <eggert@cs.ucla.edu>
483
d32df629
PE
484 Improve quality of tests for time stamp overflow.
485 For example, without this patch (encode-time 0 0 0 1 1
486 1152921504606846976) returns the obviously-bogus value (-948597
487 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
488 reports time overflow. See
489 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
490 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
491 * editfns.c: Include limits.h and intprops.h.
492 (TIME_T_MIN, TIME_T_MAX): New macros.
493 (time_overflow): Move earlier, to before first use.
494 (hi_time, lo_time): New functions, for an accurate test for
495 out-of-range times.
496 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
497 (Fget_internal_run_time): Don't assume time_t fits in int.
498 (make_time): Use list2 instead of Fcons twice.
499 (Fdecode_time): More accurate test for out-of-range times.
500 (check_tm_member): New function.
501 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
502 (lisp_time_argument): Don't rely on undefined left-shift and
503 right-shift behavior when checking for time stamp overflow.
8be6f318 504
fe31d94c
PE
505 * editfns.c (time_overflow): New function, refactoring common code.
506 (Fformat_time_string, Fdecode_time, Fencode_time):
507 (Fcurrent_time_string): Use it.
508
8be6f318
PE
509 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
510 * dired.c (make_time): Move to ...
511 * editfns.c (make_time): ... here.
512 * systime.h: Note the move.
513
09d9db2c 5142011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 515
126bc0dc
YM
516 * fringe.c (update_window_fringes): Remove unused variables.
517
c47cbdfd
YM
518 * unexmacosx.c (copy_data_segment): Also copy __got section.
519 (Bug#8223)
520
7ac80be9
EZ
5212011-03-12 Eli Zaretskii <eliz@gnu.org>
522
c96bbc66 523 * termcap.c [MSDOS]: Include "msdos.h".
058e5dad
EZ
524 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
525 Constify `char *' arguments and their references according to
526 prototypes in tparam.h.
527
ecb0f94d 528 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 529
7ac80be9
EZ
530 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
531 Adapt all references accordingly.
532
533 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
534
ef1fd07e
TT
5352011-03-11 Tom Tromey <tromey@redhat.com>
536
537 * buffer.c (syms_of_buffer): Remove obsolete comment.
538
7ef4b50c
EZ
5392011-03-11 Eli Zaretskii <eliz@gnu.org>
540
541 * termhooks.h (encode_terminal_code): Declare prototype.
542
543 * msdos.c (encode_terminal_code): Don't declare prototype.
544
545 * term.c (encode_terminal_code): Now external again, used by
546 w32console.c and msdos.c.
547
548 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
549 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
550
4b1ec863 5512011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 552
1714f52b 553 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 554
4b1ec863
PE
555 * fringe.c (update_window_fringes): Mark locals as initialized
556 (Bug#8227).
557 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 558
524c7aa6
PE
559 * alloc.c (mark_fringe_data): Move decl from here ...
560 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
561 to check its interface.
562 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
563
a5c0af81 564 * fontset.c (free_realized_fontset): Now static.
7519b8cd 565 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 566 (fontset_font): Mark local as initialized.
a9a06e0b 567 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 568
b4716021
PE
569 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
570
811e9bac 571 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 572 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
573 (x_own_selection, Fx_disown_selection_internal): Rename locals
574 to avoid shadowing.
575 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 576
7e3ab302
PE
577 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
578 so that the caller can use some name other than gcpro1.
579 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
580 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
581 (Fx_backspace_delete_keys_p):
582 Use them to avoid shadowing, and rename vars to avoid shadowing.
583 (x_decode_color, x_set_name, x_window): Now static.
6b437900 584 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 585 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
586 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
587 Remove unused locals.
7e3ab302
PE
588 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
589 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
590 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
591 macros.
f78faa98 592
e2b13473
PE
593 * xterm.h (x_mouse_leave): New decl.
594
77f23912
PE
595 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
596 Remove unused functions.
cdf4ba58
PE
597 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
598 (x_calc_absolute_position): Now static.
7411c686 599 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 600 Don't declare local "event" unless it's used.
ed7bf3a5
PE
601 (x_iconify_frame, x_free_frame_resources): Don't declare locals
602 unless they are used.
38d0b34a
PE
603 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
604 (x_fatal_error_signal): Remove; not used.
a6067996
PE
605 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
606 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
607 (x_error_catcher, x_connection_closed, x_error_handler):
608 (x_error_quitter, xembed_send_message, x_iconify_frame):
609 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 610 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 611 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 612
071048a3
PE
613 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
614 or move locals to avoid shadowing.
6b463e58 615 (tty_defined_color, merge_face_heights): Now static.
5967d051 616 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
617 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
618 does not deduce is never used uninitialized.
73719eba
PE
619 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
620 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 621
426994c3 622 * terminal.c (store_terminal_param): Now static.
5489860b 623
032f1620 624 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 625 (set_frame_menubar): Remove unused local.
d4323972 626 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
627 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
628 since they might point to immutable storage.
281585b0
PE
629 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
630 since it's unused otherwise.
032f1620 631
367c19e5 632 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 633 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
634 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
635 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 636 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
637 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
638 does not deduce are never used uninitialized.
70739cbe 639
07b48fa9
PE
640 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
641
8868a238 642 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
643 * window.c (window_loop, size_window):
644 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 645
7e5cf297 646 * window.c (display_buffer): Now static.
d6550a9f
PE
647 (size_window): Mark variables that gcc -Wuninitialized
648 does not deduce are never used uninitialized.
a586633d
PE
649 * window.h (check_all_windows): New decl, to forestall
650 gcc -Wmissing-prototypes diagnostic.
5b555da1 651 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 652
f6095868
PE
653 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
654 shadowing.
655 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
656 Include <limits.h>.
657 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
658 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
659 (load_charset_map): Mark variables that gcc -Wuninitialized
660 does not deduce are never used uninitialized.
53df7c11 661 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 662
f38b440c
PE
663 * coding.c (coding_set_source, coding_set_destination):
664 Use "else { /* comment */ }" rather than "else /* comment */;"
665 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
666 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
667 a block, when the outer 'i' will do.
668 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
669 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
670 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
671 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
672 (Fdecode_sjis_char, Fdefine_coding_system_internal):
673 Rename locals to avoid shadowing.
674 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
675 * coding.c (emacs_mule_char, encode_invocation_designation):
676 Now static, since they're not used elsewhere.
413bb2db 677 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 678 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
679 (decode_coding_emacs_mule): Mark variables that gcc
680 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
681 (detect_coding_iso_2022): Initialize a local variable that might
682 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 683 this initialization is needed. (Bug#8211)
5f58e762
PE
684 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
685 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
686 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
687 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
688 Remove unused macros.
f38b440c 689
232b38b9 690 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 691 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 692 * character.c (string_count_byte8): Likewise.
232b38b9 693
fb90da1b
PE
694 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
695 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
696
fb93dbc2
PE
697 * chartab.c (copy_sub_char_table): Now static, since it's not used
698 elsewhere.
5c156ace
PE
699 (sub_char_table_ref_and_range, char_table_ref_and_range):
700 Rename locals to avoid shadowing.
bbcd0949 701 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 702
7d3b3862 703 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 704 (BIDI_BOB): Remove unused macro.
7d3b3862 705
6be7d3da
PE
706 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
707 deduce are never used uninitialized.
c2ed9c8b 708 * term.c (encode_terminal_code): Likewise.
6be7d3da 709
75f8807f 710 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 711
50938595
PE
712 * tparam.h: New file.
713 * term.c, tparam.h: Include it.
714 * deps.mk (term.o, tparam.o): Depend on tparam.h.
715 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
716 Move these decls to tparam.h, and make them agree with what
717 is actually in tparam.c. The previous trick of using incompatible
718 decls in different modules does not conform to the C standard.
719 All callers of tparam changed to use tparam's actual API.
720 * tparam.c (tparam1, tparam, tgoto):
721 Use const pointers where appropriate.
722
fbceeba2
PE
723 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
724 * cm.h (struct cm): Likewise.
725 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
726 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
727 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
728 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
729 (turn_on_face, init_tty): Likewise.
730 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 731
7f3f1250
PE
732 * term.c (term_mouse_position): Rename local to avoid shadowing.
733
e6ca6543
PE
734 * alloc.c (mark_ttys): Move decl from here ...
735 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
736
c40f8d15
AS
7372011-03-11 Andreas Schwab <schwab@linux-m68k.org>
738
739 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
740
cfe0661d
JB
7412011-03-09 Juanma Barranquero <lekktu@gmail.com>
742
743 * search.c (compile_pattern_1): Remove argument regp, unused since
744 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
745 (compile_pattern): Don't pass it.
746
0afb4571
J
7472011-03-08 Jan Djärv <jan.h.d@swipnet.se>
748
749 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
750 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
751 for ! HAVE_GTK3.
752 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
753
754 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
755
756 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
757 gdk_window_get_screen, gdk_window_get_geometry,
758 gdk_x11_window_lookup_for_display and GDK_KEY_g.
759 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
760 (xg_get_pixbuf_from_pixmap): New function.
761 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
762 to Pixmap, take frame as parameter, remove GdkColormap parameter.
763 Call xg_get_pixbuf_from_pixmap instead of
764 gdk_pixbuf_get_from_drawable.
765 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
766 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
767 (xg_check_special_colors): Use GtkStyleContext and its functions
768 for HAVE_GTK3.
769 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
770 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
771 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
772 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
773 gtk_widget_get_preferred_size.
774 (xg_frame_resized): gdk_window_get_geometry only takes 5
775 parameters.
776 (xg_win_to_widget, xg_event_is_for_menubar): Call
777 gdk_x11_window_lookup_for_display.
778 (xg_set_widget_bg): New function.
779 (delete_cb): New function.
780 (xg_create_frame_widgets): connect delete-event to delete_cb.
781 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
782 (xg_set_background_color): Call xg_set_widget_bg.
783 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
784 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
785 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
786 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
787 if ! HAVE_GTK3.
788 (update_frame_tool_bar): Call gtk_widget_hide.
789 (xg_initialize): Use GDK_KEY_g.
790
791 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
792 if ! HAVE_GTK3
793 (x_session_initialize): Call gdk_x11_set_sm_client_id.
794
795 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
796 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
797 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
798
1c2cc4ef
JB
7992011-03-08 Juanma Barranquero <lekktu@gmail.com>
800
801 * w32xfns.c (select_palette): Check success of RealizePalette against
802 GDI_ERROR, not zero.
803
7faeca66
BK
8042011-03-07 Ben Key <bkey76@gmail.com>
805
806 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
807 (file_dialog_callback): Fix locating the window handle of the File Name
808 text field. After disabling it, set focus on the list control.
809 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
810 Name text field to "Current Directory" if it does not already have
cfe0661d 811 another value. (Bug#8181)
7faeca66 812
cf715c3c
AR
8132011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
814
815 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
816 parameter for hbar cursors. Based on a patch by Ben Key
817 <bkey76@gmail.com>.
818
ef272f1f
CY
8192011-03-06 Chong Yidong <cyd@stupidchicken.com>
820
821 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
822 change.
823
5489860b
PE
8242011-03-06 Paul Eggert <eggert@cs.ucla.edu>
825
5f349a89
PE
826 current_column: Now returns EMACS_INT, fixing some iftc
827 that was introduced in the 2002-06-02 change "temporarily"; see
828 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
829 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
830 * cmds.c (internal_self_insert): Likewise.
831 * indent.c (Fcurrent_column): Likewise.
832 * keymap.c (describe_command): Likewise.
833 * minibuf.c (read_minibuf): Likewise.
834 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
835 to int.
836 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
837 Likewise.
838 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
839 not int or double, if they might contain a column number.
840 * indent.c (current_column, Findent_to, indented_beyond_p):
841 (compute_motion, vmotion): Likewise.
842 * keymap.c (describe_command): Likewise.
843 * xdisp.c (pint2str): Likewise.
844 * indent.c (last_known_column): Now EMACS_INT, not int.
845 * minibuf.c (minibuf_prompt_width): Likewise.
846 * indent.c (current_column, current_column_1, position_indentation):
847 Return EMACS_INT, not double.
848 * lisp.h (current_column): Likewise.
849 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
850 All callers changed.
851 * lisp.h (indented_beyond_p): Likewise.
852
e9588e2e
PE
853 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
854 from xdisp.c, and make static, since these are used only here.
855 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
856 Remove decls.
857
1e12733b 858 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 859 * xdisp.c (redisplay_window): Likewise.
1e12733b 860
5489860b
PE
861 * xdisp.c: Rename or move local decls to avoid shadowing.
862 (init_iterator, handle_fontified_prop, handle_single_display_spec):
863 (message_dolog, message_with_string, redisplay_internal):
864 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
865 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
866 (display_line, display_string, rows_from_pos_range):
867 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
868 Rename or move local decls.
7b781e9f 869 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
870 (produce_glyphless_glyph): Make a pointer "const"
871 since it might point to immutable storage.
cfe0661d 872 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 873 (SKIP_GLYPHS): Removed unused macro.
5489860b 874
aa248733
MS
8752011-03-06 Michael Shields <shields@msrl.com> (tiny change)
876
877 * window.c (Fnext_window): Doc fix. (Bug#5567)
878
04cb6840
CY
8792011-03-05 Chong Yidong <cyd@stupidchicken.com>
880
881 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
882
22c28cb8 8832011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
884
885 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
886
6c0dea8a
PE
8872011-03-02 Paul Eggert <eggert@cs.ucla.edu>
888
889 Work around some portability problems with symlinks.
890
891 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
892 generate a special message for it. Suggested by Eli Zaretskii in
893 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
894 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
895 Simplify the code by assuming that the readlink and symlink calls
896 exist, even if they always fail on this host.
897 (Ffile_readable_p): Likewise, for fifos.
898 * config.in: Regenerate.
899
52eb77a6
CY
9002011-02-27 Chong Yidong <cyd@stupidchicken.com>
901
902 * frame.c (store_frame_param): Don't store value directly in
903 buffer_list and buried_buffer_list; copy the list and remove dead
904 buffers (Bug#7898).
905
0f7bb05d
EZ
9062011-02-27 Eli Zaretskii <eliz@gnu.org>
907
40be44e2
EZ
908 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
909
01c35094 910 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 911
0f7bb05d
EZ
912 * w32.c (symlink, readlink): New stub functions.
913
27786b2f
PE
9142011-02-27 Paul Eggert <eggert@cs.ucla.edu>
915
c783d15b
PE
916 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
917 This avoids a gcc warning in some configurations.
918
76c1cebc
PE
919 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
920
0ff162fc
PE
921 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
922 (set_menu_bar_lines, x_get_resource_string): New decls.
923 * msdos.c (set_menu_bar_lines): Omit decl.
924
fdb0b28b
PE
925 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
926 It's always given int values and used as an int. This suppresses
927 a gcc "comparison of unsigned expression >= 0" warning in some
928 configurations.
929
27786b2f
PE
930 * dispnew.c: Rename locals to avoid shadowing.
931 (update_text_area, scrolling_window, update_frame_1): Rename locals.
932
09ad5a91
PE
9332011-02-26 Paul Eggert <eggert@cs.ucla.edu>
934
935 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
936 (copy_glyph_row_contents): Remove; not used.
937 (frame_row_to_window, check_current_matrix_flags):
938 (window_change_signal): Now static, since they're not used elsewhere.
939 (check_current_matrix_flags): Surround with "#if 0", since its
940 only use is in a comment. Maybe both the comment and the "#if 0"
941 stuff should be removed?
942
d2d37ddc
PE
943 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
944 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
945 contexts that actually need it.
946
003fa8b6
EZ
9472011-02-26 Eli Zaretskii <eliz@gnu.org>
948
949 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
950 (lstat): Define for DJGPP < 2.04.
951
b1894766
PE
9522011-02-25 Paul Eggert <eggert@cs.ucla.edu>
953
954 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
955 as per recent filemodestring API change. Reported by Jonas Öster in
956 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
957
e18c0aa3 9582011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
959
960 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
961 directly, for bar cursors.
962
9632011-02-23 Chong Yidong <cyd@stupidchicken.com>
964
965 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
966 into the frame's cursor_width.
967
617a0e83
SM
9682011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
969
970 * print.c (print_object): Never print old-style backquotes.
971 Obey escapeflag for hash tables as well.
972
cce7d530 9732011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
974
975 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 976 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 977
8d40723d
PE
9782011-02-22 Paul Eggert <eggert@cs.ucla.edu>
979
980 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
981
aa0f73d1
WJ
9822011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
983
984 * lread.c (openp): Correct Boolean typo in last commit.
985
bdaa0745
AR
9862011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
987
988 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 989 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 990
f68c809d
PE
9912011-02-22 Paul Eggert <eggert@cs.ucla.edu>
992
993 Assume S_ISLNK etc. work, since gnulib supports this.
994 * config.in: Regenerate.
995 * dired.c (lstat): Remove.
996 (file_name_completion): Assume S_ISDIR works.
997 (file_name_completion_stat): Assume S_ISLNK works.
998 Do not bother calling stat unless lstat says it's a symlink.
999 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1000 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1001 (check_writable, Ffile_writable_p, Fset_file_times):
1002 Assume S_ISDIR works.
1003 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1004 fifos exist.
2f8f196d 1005 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
1006 * filelock.c (S_ISLNK): Remove.
1007 * lread.c (openp): Assume S_ISDIR works.
1008 * xrdb.c (S_ISDIR): Remove.
1009
25c51af3
EZ
10102011-02-21 Eli Zaretskii <eliz@gnu.org>
1011
1012 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 1013 lib/makefile.w32-in.
25c51af3
EZ
1014 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1015 (GLOBAL_SOURCES): Remove filemode.c.
1016 (OBJ1): Remove $(BLD)/filemode.$(O).
1017
5c185672
PE
10182011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1019
1020 Import filemode module from gnulib.
1021 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1022 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1023 (filemode.o): Remove; this is now in ../lib.
1024 * dired.c: Include <filemode.h>.
1025 (filemodestring): Remove now-redundant decl.
1026 * config.in: Regenerate.
1027
32159fc3
CS
10282011-02-20 Eli Zaretskii <eliz@gnu.org>
1029
1030 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1031 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1032
2f8f196d 10332011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
1034
1035 * makefile.w32-in: Remove md5.$(O).
1036 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1037 lib/makefile.w32-in.
1038
61353ac8 10392011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 1040
61353ac8
PE
1041 Import crypto/md5 and stdint modules from gnulib.
1042 * Makefile.in (base_obj): Remove md5.o, since this file
1043 is in lib now.
1044 * config.in: Regenerate.
1045 * md5.h, md5.h: Move to ../lib.
1046 * deps.mk (md5.o): Remove.
1047 (fns.o): Depend on ../lib/md5.h, not md5.h.
1048
9d9d12cd
EZ
10492011-02-19 Eli Zaretskii <eliz@gnu.org>
1050
f601db19
EZ
1051 * termcap.c (tputs): Don't declare baud_rate.
1052
9d9d12cd
EZ
1053 * s/msdos.h (strtold): Define to _strtold.
1054
aa56f361
SM
10552011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1056
cbe81f1d
SM
1057 * process.c (Fstart_process, Fmake_serial_process)
1058 (Fmake_network_process, server_accept_connection):
1059 Use empty_unibyte_string.
1060
1061 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1062
aa56f361
SM
1063 * lread.c (Qdir_ok): New constant.
1064 (syms_of_lread): Initialize it.
1065 (openp): Don't ignore directories if the predicate returns dir-ok.
1066
d6de49a1
EZ
10672011-02-18 Eli Zaretskii <eliz@gnu.org>
1068
42af913d
EZ
1069 * xdisp.c (display_line): Fix the change made for bug#7939.
1070
d6de49a1
EZ
1071 * terminal.c (create_terminal): Use default-keyboard-coding-system
1072 and default-terminal-coding-system to initialize coding systems of
1073 the new terminal. (Bug#7840)
1074
b286858c
SM
10752011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1076
1077 * lisp.h (BYTE_MARK_STACK): New macro.
1078 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1079
1080 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1081 (struct byte_stack): Only define `top' and `bottom' if used.
1082 (mark_byte_stack): Only define if used.
1083 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1084 is not set.
1085 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1086
1087 * term.c (OUTPUT_IF): Use OUTPUT.
1088
1089 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1090 redundantly scan byte-code stacks, catchlist, and handlerlist.
1091
124c9ff0
JD
10922011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1093
1094 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1095 (Fns_read_file_name): Replace B_ with BVAR.
1096
1097 * nsterm.m (ns_term_init): Use KVAR.
1098
05c65251
EZ
10992011-02-16 Eli Zaretskii <eliz@gnu.org>
1100
026d69ec
EZ
1101 * msdos.c (internal_terminal_init): Use KVAR.
1102
05c65251
EZ
1103 * w32fns.c (Fx_create_frame): Use KVAR.
1104
1105 * w32term.c (w32_create_terminal): Use KVAR.
1106
1107 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 1108 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
1109
1110 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1111
b286858c
SM
1112 * fileio.c (Finsert_file_contents, Fwrite_region):
1113 Remove references to buffer_file_type.
05c65251
EZ
1114 (syms_of_fileio): Don't intern and staticpro
1115 find-buffer-file-type.
1116
1117 * callproc.c (syms_of_callproc): Remove references to
1118 buffer_file_type.
1119
1120 * buffer.c (reset_buffer_local_variables): Don't set
1121 buffer_file_type.
1122 (init_buffer_once): Likewise.
1123 (syms_of_buffer): Don't define buffer-file-type.
1124
1125 * buffer.h (struct buffer): Remove buffer_file_type.
1126
1344aad4
TT
11272011-02-16 Tom Tromey <tromey@parfait>
1128
15f58304
EZ
1129 * callint.c (Fcall_interactively): Update for change to field names.
1130 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1131 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 1132 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 1133 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
1134 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1135 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 1136 Update for change to field names.
1344aad4
TT
1137 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1138 (echo_length, echo_truncate, cmd_error, command_loop_1)
1139 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1140 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1141 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1142 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
1143 Update for change to field names.
1144 * xfns.c (Fx_create_frame): Update for change to field names.
1145 * xterm.c (x_connection_closed, x_term_init): Update for change to
1146 field names.
1344aad4 1147 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 1148 Update for change to field names.
1344aad4 1149 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 1150 Update for change to field names.
1344aad4 1151 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 1152 (delete_frame): Update for change to field names.
1344aad4
TT
1153 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1154 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1155 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1156
eb4916d7
TT
11572011-02-16 Tom Tromey <tromey@redhat.com>
1158
1159 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1160
4b4deea2
TT
11612011-02-16 Tom Tromey <tromey@parfait>
1162
1163 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1164 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1165 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1166 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1167 (with_echo_area_buffer, setup_echo_area_for_printing)
1168 (set_message_1, update_menu_bar, update_tool_bar)
1169 (text_outside_line_unchanged_p, redisplay_internal)
1170 (try_scrolling, try_cursor_movement, redisplay_window)
1171 (try_window_reusing_current_matrix, row_containing_pos)
1172 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1173 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1174 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1175 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1176 BVAR.
1177 * window.c (window_display_table, unshow_buffer, window_loop)
1178 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1179 (select_window, Fforce_window_update, temp_output_buffer_show)
1180 (Fset_window_configuration, save_window_save): Replace B_ with
1181 BVAR.
1182 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1183 Replace B_ with BVAR.
1184 * undo.c (record_point, record_insert, record_delete)
1185 (record_marker_adjustment, record_first_change)
1186 (record_property_change, Fundo_boundary, truncate_undo_list)
1187 (Fprimitive_undo): Replace B_ with BVAR.
1188 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1189 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1190 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1191 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1192 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1193 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1194 (string_match_1, fast_looking_at, newline_cache_on_off)
1195 (search_command, search_buffer, simple_search, boyer_moore)
1196 (Freplace_match): Replace B_ with BVAR.
1197 * process.c (get_process, list_processes_1, Fstart_process)
1198 (Fmake_serial_process, Fmake_network_process)
1199 (read_process_output, send_process, exec_sentinel)
1200 (status_notify, setup_process_coding_systems): Replace B_ with
1201 BVAR.
1202 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1203 (strout, print_string, temp_output_buffer_setup, print_object):
1204 Replace B_ with BVAR.
1205 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
1206 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1207 Replace B_ with BVAR.
4b4deea2
TT
1208 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1209 (set_marker_both, set_marker_restricted_both, unchain_marker):
1210 Replace B_ with BVAR.
1211 * lread.c (readchar, unreadchar, openp, readevalloop)
1212 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1213 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1214 * keymap.c (Flocal_key_binding, Fuse_local_map)
1215 (Fcurrent_local_map, push_key_description)
1216 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1217 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1218 (read_key_sequence): Replace B_ with BVAR.
1219 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1220 * intervals.c (set_point_both, get_local_map): Replace B_ with
1221 BVAR.
1222 * insdel.c (check_markers, insert_char, insert_1_both)
1223 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1224 (adjust_after_replace, replace_range, del_range_2)
1225 (modify_region, prepare_to_modify_buffer)
1226 (Fcombine_after_change_execute): Replace B_ with BVAR.
1227 * indent.c (buffer_display_table, recompute_width_table)
1228 (width_run_cache_on_off, current_column, scan_for_column)
1229 (Findent_to, position_indentation, compute_motion, vmotion):
1230 Replace B_ with BVAR.
1231 * fringe.c (get_logical_cursor_bitmap)
1232 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1233 with BVAR.
1234 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1235 * font.c (font_at): Replace B_ with BVAR.
1236 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1237 Replace B_ with BVAR.
1238 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1239 (unlock_buffer): Replace B_ with BVAR.
1240 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1241 (Ffile_regular_p, Ffile_selinux_context)
1242 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1243 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1244 (Finsert_file_contents, choose_write_coding_system)
1245 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1246 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1247 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1248 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1249 (save_excursion_restore, Fprevious_char, Fchar_before)
1250 (general_insert_function, Finsert_char, Finsert_byte)
1251 (make_buffer_string_both, Finsert_buffer_substring)
1252 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1253 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1254 (Ftranslate_region_internal, save_restriction_restore)
1255 (Fchar_equal): Replace B_ with BVAR.
1256 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1257 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1258 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1259 * dired.c (directory_files_internal): Replace B_ with BVAR.
1260 * data.c (swap_in_symval_forwarding, set_internal)
1261 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1262 Replace B_ with BVAR.
1263 * composite.c (fill_gstring_header)
1264 (composition_compute_stop_pos, composition_adjust_point)
1265 (Ffind_composition_internal): Replace B_ with BVAR.
1266 * coding.c (decode_coding, encode_coding)
1267 (make_conversion_work_buffer, decode_coding_gap)
1268 (decode_coding_object, encode_coding_object)
1269 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1270 (Funencodable_char_position, Fcheck_coding_systems_region):
1271 Replace B_ with BVAR.
1272 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1273 with BVAR.
1274 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1275 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1276 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1277 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1278 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1279 * category.c (check_category_table, Fcategory_table)
1280 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1281 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1282 BVAR.
1283 * casefiddle.c (casify_object, casify_region): Replace B_ with
1284 BVAR.
1285 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1286 with BVAR.
1287 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1288 BVAR.
1289 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1290 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1291 with BVAR.
1292 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1293 (get_truename_buffer, Fget_buffer_create)
1294 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1295 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1296 (Fbuffer_local_value, buffer_lisp_local_variables)
1297 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1298 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1299 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1300 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1301 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1302 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1303 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1304 (record_overlay_string, overlay_strings, init_buffer_once)
1305 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1306
8678d9e4 13072011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1308
1309 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1310 window is changed inside calls to do_pending_window_change.
1311 (Bug#8020)
1312
1f5d53eb
PE
13132011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1314
1315 Remove no-longer needed getloadavg symbols.
1316 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1317 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1318 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1319 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1320 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1321 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1322 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1323 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1324 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1325 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1326 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1327 (LDAV_SYMBOL): Remove.
1328 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1329 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1330
1331 Import getloadavg module from gnulib.
1332 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1333 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1334 now does this.
1335 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1336 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1337 * config.in: Regenerate.
1338
8017fd6b
EZ
13392011-02-15 Eli Zaretskii <eliz@gnu.org>
1340
1341 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1342
75b43359
MWD
13432011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1344
1345 * print.c (float_to_string): Ensure that a decimal point is
1346 printed if using dtoastr (Bug#8033).
1347
fc3ca113
EZ
13482011-02-14 Eli Zaretskii <eliz@gnu.org>
1349
1f5d53eb 1350 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1351 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1352
fc3ca113
EZ
1353 * dired.c (directory_files_internal):
1354 * fileio.c (Finsert_file_contents):
1355 * insdel.c (prepare_to_modify_buffer):
1356 * xdisp.c (pos_visible_p):
1357 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1358 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1359 Use B_ for the MS-Windows build.
1360
3928f2b6
JD
13612011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1362
1363 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1364 resource that specifies helvetica for menus and dialogs.
1365
1366 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1367 (apply_systemfont_to_menu): Set resources *menubar*font and
1368 *popup*font. Remove defflt.
b286858c
SM
1369 (set_frame_menubar, create_and_show_popup_menu):
1370 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1371
4bb81cc2
TT
13722011-02-14 Tom Tromey <tromey@redhat.com>
1373
fc3ca113
EZ
1374 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1375
4bb81cc2
TT
1376 * keyboard.h: Remove obsolete comment.
1377
5d8ea120
TT
13782011-02-14 Tom Tromey <tromey@parfait>
1379
1380 * composite.c (fill_gstring_header)
1381 (composition_compute_stop_pos, composition_adjust_point)
1382 (Ffind_composition_internal): Use B_.
1383 * intervals.c (set_point_both, get_local_map): Use B_.
1384 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1385 * process.c (get_process, list_processes_1, Fstart_process)
1386 (Fmake_serial_process, Fmake_network_process)
1387 (read_process_output, send_process, exec_sentinel)
1388 (status_notify, setup_process_coding_systems): Use B_.
1389 * bytecode.c (Fbyte_code): Use B_.
1390 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1391 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1392 (skip_syntaxes, scan_lists): Use B_.
1393 * lread.c (readchar, unreadchar, openp, readevalloop)
1394 (Feval_buffer, Feval_region): Use B_.
1395 * print.c (printchar, strout, print_string, PRINTDECLARE)
1396 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1397 (print_object): Use B_.
1398 * font.c (font_at): Use B_.
b286858c
SM
1399 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1400 Use B_.
5d8ea120
TT
1401 * callint.c (check_mark, Fcall_interactively): Use B_.
1402 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1403 (save_excursion_restore, Fprevious_char, Fchar_before)
1404 (general_insert_function, Finsert_char, Finsert_byte)
1405 (make_buffer_string_both, Finsert_buffer_substring)
1406 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1407 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1408 (Ftranslate_region_internal, save_restriction_restore)
1409 (Fchar_equal): Use B_.
1410 * data.c (swap_in_symval_forwarding, set_internal)
1411 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1412 Use B_.
1413 * undo.c (record_point, record_insert, record_delete)
1414 (record_marker_adjustment, record_first_change)
1415 (record_property_change, Fundo_boundary, truncate_undo_list)
1416 (Fprimitive_undo): Use B_.
1417 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1418 (string_match_1, fast_looking_at, newline_cache_on_off)
1419 (search_command, search_buffer, simple_search, boyer_moore)
1420 (Freplace_match): Use B_.
1421 * indent.c (buffer_display_table, recompute_width_table)
1422 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1423 (Findent_to, position_indentation, compute_motion, vmotion):
1424 Use B_.
5d8ea120
TT
1425 * casefiddle.c (casify_object, casify_region): Use B_.
1426 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1427 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1428 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1429 (Ffile_regular_p, Ffile_selinux_context)
1430 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1431 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1432 (Finsert_file_contents, choose_write_coding_system)
1433 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1434 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1435 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1436 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1437 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1438 (set_marker_both, set_marker_restricted_both, unchain_marker):
1439 Use B_.
5d8ea120
TT
1440 * insdel.c (check_markers, insert_char, insert_1_both)
1441 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1442 (adjust_after_replace, replace_range, del_range_2)
1443 (modify_region, prepare_to_modify_buffer)
1444 (Fcombine_after_change_execute): Use B_.
1445 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1446 (unlock_buffer): Use B_.
1447 * keymap.c (Flocal_key_binding, Fuse_local_map)
1448 (Fcurrent_local_map, push_key_description)
1449 (Fdescribe_buffer_bindings): Use B_.
1450 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1451 (read_key_sequence): Use B_.
1452 * fringe.c (get_logical_cursor_bitmap)
1453 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1454 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1455 * xfaces.c (compute_char_face): Use B_.
1456 * character.c (chars_in_text, Fget_byte): Use B_.
1457 * category.c (check_category_table, Fcategory_table)
1458 (Fset_category_table, char_category_set): Use B_.
1459 * coding.c (decode_coding, encode_coding)
1460 (make_conversion_work_buffer, decode_coding_gap)
1461 (decode_coding_object, encode_coding_object)
1462 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1463 (Funencodable_char_position, Fcheck_coding_systems_region):
1464 Use B_.
5d8ea120
TT
1465 * charset.c (Ffind_charset_region): Use B_.
1466 * window.c (window_display_table, unshow_buffer, window_loop)
1467 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1468 (select_window, Fforce_window_update, temp_output_buffer_show)
1469 (Fset_window_configuration, save_window_save): Use B_.
1470 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1471 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1472 (with_echo_area_buffer, setup_echo_area_for_printing)
1473 (set_message_1, update_menu_bar, update_tool_bar)
1474 (text_outside_line_unchanged_p, redisplay_internal)
1475 (try_scrolling, try_cursor_movement, redisplay_window)
1476 (try_window_reusing_current_matrix, row_containing_pos)
1477 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1478 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1479 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1480 (get_window_cursor_type, note_mouse_highlight): Use B_.
1481 * frame.c (make_frame_visible_1): Use B_.
1482 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1483 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1484 (WINDOW_WANTS_MODELINE_P): Use B_.
1485 * syntax.h (Vstandard_syntax_table): Update.
1486 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1487 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1488 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1489 * character.h (FETCH_CHAR_ADVANCE): Update.
1490 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1491 * category.h (Vstandard_category_table): Update.
1492 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1493 names.
1494 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1495 * buffer.c (swapfield_): New macro.
1496 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1497 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1498 (Fget_buffer_create, clone_per_buffer_values)
1499 (Fmake_indirect_buffer, reset_buffer)
1500 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1501 (Fbuffer_local_value, buffer_lisp_local_variables)
1502 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1503 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1504 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1505 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1506 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1507 (Fbuffer_swap_text, Fset_buffer_multibyte)
1508 (swap_out_buffer_local_variables, record_overlay_string)
1509 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1510 Use B_.
1511 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1512 (BUFFER_INTERNAL_FIELD, B_): New macro.
1513 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1514
42f60557
JD
15152011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1516
1517 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1518 is null.
1519
2f9a22e2
J
15202011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1521
1522 * callproc.c (Fcall_process):
1523 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1524 comment.
1525
84eb0351 15262011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1527
1528 * window.c (select_window): Check inhibit_point_swap argument when
1529 deciding whether to return immediately.
1530
84eb0351 15312011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1532
1533 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1534 zero (Bug#7348).
1535
84eb0351
CY
15362011-02-12 Chong Yidong <cyd@stupidchicken.com>
1537
1538 * config.in (TERMINFO): New definition.
1539
1540 * s/netbsd.h: Use it to choose between terminfo and termcap
1541 (Bug#7642).
1542
33d605d0
PE
15432011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1544
1545 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1546 The difference doesn't matter here, in practice, and sizeof is
1547 more portable to non-GCC compilers. Also, this makes the code
1548 match the already-existing comment.
1549
c0ad4ea5
AS
15502011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1551
1552 * process.c (create_process): Reset SIGPIPE handler in the child.
1553 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1554
50fd938f
EZ
15552011-02-12 Eli Zaretskii <eliz@gnu.org>
1556
1557 * xdisp.c <this_line_min_pos>: New variable.
1558 (move_it_in_display_line_to): Record in this_line_min_pos the
1559 smallest position iterated across.
1560 (display_line): Use this_line_min_pos to record the smallest
1561 position in the line even if it is not displayed due to
1562 hscrolling. (Bug#7939)
1563
af59aa6e
PE
15642011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1565
cec81b22
PE
1566 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1567 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1568 (struct md5_ctx): Use it.
1569
af59aa6e
PE
1570 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1571 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1572 defined.
1573 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1574 FC_HINT_STYLE is supported.
1575
02c3706c
JD
15762011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1577
1578 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1579 Make sure we don't do x_catch_errors twice.
1580
5ac75e8f
GM
15812011-02-10 Glenn Morris <rgm@gnu.org>
1582
1583 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1584
d37f40ed
EZ
15852011-02-09 Eli Zaretskii <eliz@gnu.org>
1586
5ac75e8f
GM
1587 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1588 New macros.
d37f40ed
EZ
1589 (globals.h, gl-stamp): New targets.
1590 (clean): Clean gl-stamp and globals.h.
1591
33cd3ee4
AS
15922011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1593
1594 * Makefile.in (gl-stamp): Create globals.h here.
1595 (globals.h): Don't do it here.
1596 (mostlyclean): Clean globals.h and gl-stamp.
1597
f9f2e7f5
PE
15982011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1599
1600 * Makefile.in ($(otherobj)): Depend on globals.h.
1601 Otherwise 'make -j10' failed on my host, because the build lacked
1602 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1603
00b3c7ac
TT
16042011-02-08 Tom Tromey <tromey@redhat.com>
1605
1606 * Makefile.in (NS_OBJC_OBJ): New variable.
1607 (base_obj): Rename from 'obj'.
1608 (obj): New variable.
1609 (globals.h, gl-stamp, $(obj)): New targets.
1610 (GLOBAL_SOURCES): New variable.
1611 * globals.h: Remove.
1612 * nsselect.m (Vselection_alist): Define. Reverts part of
1613 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1614 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1615 variable.
1616 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1617
8f3b2e12
KH
16182011-02-08 Kenichi Handa <handa@m17n.org>
1619
1620 * font.c (Ffont_get): Do not cache :otf value.
1621
4f043d0f
PE
16222011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1623
1624 conform to C89 pointer rules
1625
1626 * dired.c (scmp, file_name_completion):
1627 Change types between char * and unsigned char *, to satisfy C89
1628 rules about pointer type compatibility.
47ce90e4 1629 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 1630 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
1631 * alloc.c (make_string, make_specified_string, make_pure_string):
1632 Likewise.
57ace6d0 1633 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
1634 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1635 (print_object): Likewise.
e7f8264d
PE
1636 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1637 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1638 (Fformat): Likewise.
a2db9982 1639 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
1640 * fns.c (string_make_multibyte, string_to_multibyte):
1641 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1642 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1643 Likewise.
4a25e32a 1644 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
1645 * process.c (read_process_output, send_process, Fprocess_send_region):
1646 Likewise.
0ca76b1e 1647 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
1648 * doprnt.c (doprnt): Likewise.
1649 * indent.c (compute_motion): Likewise.
efe0234f 1650 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 1651 * ralloc.c (resize_bloc): Likewise.
b19beacc 1652 * image.c (tiff_load): Likewise.
c45e5276 1653 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
1654 * character.c (strwidth): Make its argument const char *, not const
1655 unsigned char *, since more callers prefer it that way. All callers
1656 changed.
4f043d0f 1657
9eee99eb
PE
16582011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1659
4c83cffc
PE
1660 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1661 Emacs assumes two's complement elsewhere, but the assumption is
1662 easy to remove here, and this suppresses a warning with Sun C 5.8.
1663
82470039
PE
1664 conform to C89 pointer rules
1665
1666 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1667 (same_x_server, x_term_init):
9eee99eb
PE
1668 Change types between char * and unsigned char *, to satisfy C89
1669 rules about pointer type compatibility.
82470039
PE
1670 * doc.c (get_doc_string, Fsnarf_documentation):
1671 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
1672 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1673 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 1674 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
1675 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1676 Likewise.
01c9aa3a 1677 * keymap.c (Ftext_char_description): Likewise.
637de37e 1678 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
1679 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1680 (DRIVE_LETTER) [defined DOS_NT]:
1681 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1682 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1683 (search_embedded_absfilename, Fsubstitute_in_file_name):
1684 (barf_or_query_if_file_exists, Fmake_directory_internal):
1685 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1686 (Finsert_file_contents, Fwrite_region):
1687 Likewise.
b68864e5
PE
1688 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1689 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1690 Likewise. This changes these functions' signatures, which is
1691 more convenient since most callers use char *. All remaining
1692 callers changed.
1693 * editfns.c (general_insert_function): Change signature to
1694 match changes to insert functions' signatures.
b286858c
SM
1695 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1696 Use explicit cast when converting between void * and function pointer
01c9aa3a 1697 types, as C89 requires this.
9eee99eb 1698
32299e33
PE
16992011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1700
1701 don't ignore chdir failure
1702 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1703 failure and exit.
1704 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1705 remaining unchecked chdir calls in this function; some DOS/NT
1706 expert needs to fix them.
1707 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1708 in this function; some NextStep expert needs to fix them.
1709
233ba4d9 17102011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
1711
1712 * xfaces.c (Finternal_set_lisp_face_attribute):
1713 Try to clarify some error messages. (Bug#2659)
1714
233ba4d9 17152011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
1716
1717 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1718 current_column cache (bug#7946).
1719
233ba4d9 17202011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
1721
1722 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1723
1724 * xftfont.c (xftfont_open): Likewise.
1725
233ba4d9 17262011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
1727
1728 * window.c (Fselect_window): Add missing return value.
1729
d67985d3
PE
17302011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1731
25a48bd0
PE
1732 xstrcasecmp: conform to C89 pointer rules
1733 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1734 to const char *, since they're usually low-level C strings, and
1735 this stays compatible with C89 pointer rules. All callers changed.
1736
2f8f196d 1737 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
1738 (define_charset_internal): Switch between char * and unsigned char *.
1739
2f8f196d 1740 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
1741 (xmenu_show, xdialog_show): Declare local var as char *, not
1742 const char *, to stay compatible with C89 const rules.
1743
2f8f196d 1744 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
1745 (store_mode_line_noprop, display_string, reseat_to_string):
1746 (c_string_pos, number_of_chars, message_dolog):
1747 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1748 (display_mode_element, display_string):
1749 Switch between char * and unsigned char * to stay compatible wth
1750 C89 pointer rules.
1751
2f8f196d 1752 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
1753 (re_wctype): Add cast, as C89 does not allow assigning between
1754 char * and unsigned char *.
1755 (regex_compile): Likewise.
1756
d67985d3
PE
1757 sync from gnulib to remove HAVE_STDBOOL_H
1758 * config.in: Regenerate.
1759
a5d733f5
EZ
17602011-02-04 Eli Zaretskii <eliz@gnu.org>
1761
f90e08f5
EZ
1762 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1763 Replace all uses of lisp.h with $(LISP_H), and all uses of
1764 process.h with $(PROCESS_H).
1765 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1766 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1767
be50df37
EZ
1768 * deps.mk: Update for recent changes: gnutls support, gnulib
1769 imports, addition of globals.h.
1770
f90e08f5
EZ
1771 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1772 ../lib/ignore-value.h.
a5d733f5 1773
67342916
PE
17742011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1775
1776 allow C code to suppress warnings about ignored return values
1777
1778 We need to go through the code and for each such warning, either
1779 fix the code to pay attention to the returned value, or tell GCC
1780 that we really do want to ignore the returned value. Here is one
1781 example of how to do the latter.
1782 * sysdep.c: Include <ignore-value.h>.
1783 (sys_subshell): Suppress an undesirable warning about not checking
1784 the returned value of 'write', as there's nothing useful one can
1785 do with that returned value.
1786
36941b32
JD
17872011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1788
1789 * xterm.c (x_connection_closed): Remove all calls that calls
1790 XSync (Bug#7949).
1791
3082f617
EZ
17922011-02-01 Eli Zaretskii <eliz@gnu.org>
1793
1794 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1795 TIFFClientOpen.
1796
4df0af9b
JD
17972011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1798
1799 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1800 (x_session_check_input): Change args and return type so it can be used
1801 as argument to add_read_fd. Make static. Remove call to select.
1802 Call kbd_buffer_store_event for emacs_event.
1803 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1804 (ice_conn_watch_CB): Call add_read_fd.
1805
1806 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1807 x_session_check_input.
1808 (x_session_initialized): Remove definition.
1809 (x_initialize): Remove setting of x_session_initialized.
1810
1811 * xterm.h (x_session_check_input): Remove declaration.
1812
a4180391
PE
18132011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1814
1815 format-time-string now supports subsecond time stamp resolution
b286858c 1816 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
1817 for consistency with its new argument and with gnulib nstrftime.
1818 All callers changed. New argument NS.
1819 (Fformat_time_string): Check that the time argument's microseconds
1820 component, if any, is in range; this avoids integer overflow and
1821 also nstrftime needs this. Document %N.
1822
14beddf4 18232011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
1824
1825 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1826 of int. All uses adjusted.
1827 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1828 (svg_load_image): Remove casts.
1829
14beddf4 18302011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
1831
1832 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1833 function definitions for compiling with libpng-1.5.
1834 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1835 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1836 (Bug#7908).
1837
70b0d280
EZ
18382011-01-31 Eli Zaretskii <eliz@gnu.org>
1839
8b3c625b
EZ
1840 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1841
70b0d280
EZ
1842 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1843 ($(BLD)/strftime.$(O)): Remove prerequisites.
1844
16fab143
PE
18452011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1846
1847 src/emacs.c now gets version number from configure.in
1848 * emacs.c (emacs_version): Set to VERSION so that it
1849 is determined automatically from ../configure.in.
1850
546961a9
JM
18512011-01-31 Jim Meyering <meyering@redhat.com>
1852
1853 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1854 Use xmalloc rather than malloc.
1855
42a5b22f
PE
18562011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1857
16c3e636
PE
1858 strftime: import from gnulib
1859 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1860 * deps.mk (strftime.o): Remove.
1861 * editfns.c: Include <strftime.h>, supplied by gnulib.
1862 (emacs_strftimeu): Remove decl.
1863 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1864 emacs_strftimeu.
1865 * config.in: Regenerate.
1866 * strftime.c: Remove; we now use strftime from gnulib.
1867
42a5b22f
PE
1868 Use SSDATA when the context wants char *.
1869 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1870 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1871 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1872 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1873 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1874 Use SSDATA (not SDATA) when the context of the expression wants
1875 char * (not unsigned char *).
1876
2787bba3
JD
18772011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1878
1879 * .gdbinit: Read global lisp variables as globals.f_V*.
1880
4ec88040
AS
18812011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1882
1883 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1884 All uses changed.
1885 (PROP_SAVE): Likewise.
1886
b6bcd048
CY
18872011-01-29 Chong Yidong <cyd@stupidchicken.com>
1888
1889 * keyboard.c (make_lispy_position): Fix typo in last change
1890 (Bug#7935).
1891
f915f0f7
EZ
18922011-01-29 Eli Zaretskii <eliz@gnu.org>
1893
1894 * s/ms-w32.h (HAVE_MKTIME): Remove.
1895
1896 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1897 (GNULIB): New variable.
1898 (LIBS): Add $(GNULIB).
1899 $(TEMACS): Depend on $(GNULIB).
1900 <top-level>: Fix font-lock disrupted by a lone `"'.
1901
497a1925
JD
19022011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1903
1904 * nsselect.m (ns_string_from_pasteboard): Get length of string
1905 and use make_string instead of build_string (Bug#7934).
1906 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1907 instead of stringWithUTF8String (Bug#7934).
1908
2f8f196d 19092011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 1910
2f8f196d
JB
1911 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1912 descenders would not become one pixel too tall (Bug#7887).
481ae085 1913
6b918613
CY
19142011-01-28 Chong Yidong <cyd@stupidchicken.com>
1915
1916 * keyboard.c (make_lispy_position): For clicks on right fringe or
1917 margin, compute text position using the X coordinate relative to
1918 the left of the text area (Bug#7839).
1919
9e269017
KH
19202011-01-28 Kenichi Handa <handa@m17n.org>
1921
1922 * ftfont.c (ftfont_spec_pattern): Check each extra property
1923 value.
1924
17dd1fc8
SM
19252011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1926
1927 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1928
372fb76b
CY
19292011-01-27 Chong Yidong <cyd@stupidchicken.com>
1930
1931 * font.c (font_parse_fcname): Undefine a temporary macro.
1932
e7f7fbaa
SM
19332011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1934
1935 Let the debugger continue to the normal handler (bug#7825).
1936 * eval.c (maybe_call_debugger): Declare before new use.
1937 (find_handler_clause): Don't call debugger any more.
1938 Ignore Vstack_trace_on_error.
1939 Use XCAR/XCDR.
1940 (syms_of_eval): Remove Vstack_trace_on_error.
1941 (Fsignal): Only modify handlerlist when we know we need to do it.
1942 Call the debugger when necessary.
1943 * globals.h (Vstack_trace_on_error): Remove.
1944
6608a7d8
CY
19452011-01-26 Chong Yidong <cyd@stupidchicken.com>
1946
1947 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1948
06d8ace5 19492011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
1950
1951 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1952 the buffer's point-max (bug#7876).
1953
06d8ace5 19542011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
1955
1956 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 1957 Remove unused case (Bug#6811).
19634648 1958
8ab70320
JD
19592011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1960
1961 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1962 setFrameTopLeftPoint is constrained.
1963
51b59d79
PE
19642011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1965
9055082e
PE
1966 Check return values of some library calls.
1967 * emacs.c (main): Check dup result.
1968 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1969 (frame_name_fnn_p): Check strtol result.
1970
5c7d01a5 1971 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1972 when calling XpmCreatePixmapFromData.
1973
51b59d79
PE
1974 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1975 * lisp.h (SSDATA): New macro.
1976 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1977 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1978 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1979 * xsmfns.c (SSDATA): Likewise.
1980
e6b84b30
MR
19812011-01-22 Martin Rudalics <rudalics@gmx.at>
1982
1983 * window.c (select_window): New function.
1984 (Fselect_window): Call it.
1985 (inhibit_point_swap): Variable deleted.
1986 (Fset_window_configuration): Call select_window directly.
1987
3fb69558
JD
19882011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1989
1990 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1991
449ab399
JD
19922011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1993
e2f79c8d
JD
1994 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1995 screen, not the window screen.
1996 (x_set_window_size): Remove constraints.
1997 Calculate origin.y only if zooming is 0 and without referring to a
1998 screen.
1999 (windowWillResize): Don't modify frameSize.
2000 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2001 (initFrameFromEmacs): Initialize ns_userRect.
2002 (windowShouldZoom): Set zooming to one. Remove all other code.
2003 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2004 Zero it after restore.
2005 (constrainFrameRect): New method for EmacsWindow.
2006 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2007 windowWillResize.
2008
2009 * nsterm.h (ns_output): Add dont_constrain and zooming.
2010 (EmacsView): Add ns_userRect.
2011
449ab399
JD
2012 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2013 if ns_alternate_modifier is none.
2014
e885315d
JD
20152011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2016
2017 * unexmacosx.c: Add comment about include order.
2018
bb1c6663
GM
20192011-01-20 Glenn Morris <rgm@gnu.org>
2020
c11136ec
GM
2021 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2022 Give it a doc string.
2023 * globals.h: Add Vread_expression_history.
2024
bb1c6663
GM
2025 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2026 Give it a doc string.
2027 * globals.h: Add Vkbd_macro_termination_hook.
2028
9aea757b
CY
20292011-01-20 Chong Yidong <cyd@stupidchicken.com>
2030
2031 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2032
e1ef0dac
PE
20332011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2034
2035 Fix X11 compilation failure.
2036 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2037 * xselect.c (Vselection_alist): Remove declaration, moving its
2038 documentation to globals.h. This fixes a compilation failure
2039 induced by the earlier change to globals.h today.
2040
fb9d0f5a
JD
20412011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2042
8beb828a
JD
2043 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2044
fb9d0f5a
JD
2045 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2046 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2047 (ns_input_spi_name, ns_input_spi_arg)
2048 (ns_alternate_modifier, ns_right_alternate_modifier)
2049 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2050 (ns_right_control_modifier, ns_function_modifier)
2051 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2052 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2053 (x_underline_at_descent_line): Remove declaration.
2054 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2055
01c35094 2056 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
2057 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2058 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2059
2060 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2061 Remove declaration.
2062
2063 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2064 globals.h.
2065 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2066
2067 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2068 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2069 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2070
2071 * globals.h (struct emacs_globals): Add f_ns_input_file,
2072 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2073 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2074 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2075 f_ns_right_alternate_modifier, f_ns_command_modifier,
2076 f_ns_right_command_modifier, f_ns_control_modifier,
2077 f_ns_right_control_modifier, f_ns_function_modifier,
2078 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2079 f_Vns_version_string, f_Vns_sent_selection_hooks,
2080 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2081 and corresponding defines.
2082
4e55715e
SS
20832011-01-19 Sam Steingold <sds@gnu.org>
2084
2085 * w32.c (check_windows_init_file): Remove declarations of
2086 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 2087 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 2088
ef79d2fa
TT
20892011-01-19 Tom Tromey <tromey@redhat.com>
2090
2091 * window.c: Fix error introduced by previous patch.
2092
29208e82
TT
20932011-01-18 Tom Tromey <tromey@parfait>
2094
2095 * globals.h: New file.
2096 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2097 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2098 (Vwindow_system_version): Remove declaration.
2099 * w32term.h (Vw32_enable_palette)
2100 (Vx_pixel_size_width_font_regexp): Remove declaration.
2101 * w32menu.c (Voverriding_local_map)
2102 (Voverriding_local_map_menu_flag): Remove declaration.
2103 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2104 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2105 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2106 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2107 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2108 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2109 (w32_use_full_screen_buffer): Remove declaration.
2110 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2111 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2112 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2113 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2114 (no_redraw_on_reenter, visible_bell): Remove declaration.
2115 * sysdep.c (Vsystem_name): Remove declaration.
2116 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2117 * menu.h (Vmenu_updating_frame): Remove declaration.
2118 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2119 Remove declaration.
2120 * lisp.h (Vafter_init_time, Vafter_load_alist)
2121 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2122 (Vcompletion_regexp_list, Vcurrent_load_list)
2123 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2124 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2125 (Vexec_directory, Vexec_path, Vexec_suffixes)
2126 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2127 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2128 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2129 (Vinstallation_directory, Vinvocation_directory)
2130 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2131 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2132 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2133 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2134 (Vscalable_fonts_allowed, Vselect_active_regions)
2135 (Vshell_file_name, Vstandard_input, Vstandard_output)
2136 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2137 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2138 (Vuser_login_name, Vwindow_scroll_functions)
2139 (Vwindow_system_version, Vx_no_window_manager)
2140 (Vx_resource_class, Vx_resource_name, baud_rate)
2141 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2142 (history_delete_duplicates, inhibit_x_resources)
2143 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2144 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
2145 (use_dialog_box, use_file_dialog): Remove declaration.
2146 Include globals.h.
29208e82 2147 * keymap.h (Voverriding_local_map)
b286858c
SM
2148 (Voverriding_local_map_menu_flag, meta_prefix_char):
2149 Remove declaration.
29208e82
TT
2150 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2151 (Vinput_method_function, Vkey_translation_map)
2152 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2153 (do_mouse_tracking, extra_keyboard_modifiers)
2154 (num_nonmacro_input_events): Remove declaration.
2155 * intervals.h (Vchar_property_alias_alist)
2156 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2157 (Vtext_property_default_nonsticky): Remove declaration.
2158 * gtkutil.h (x_gtk_file_dialog_help_text)
2159 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2160 (x_gtk_whole_detached_tool_bar): Remove declaration.
2161 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2162 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2163 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2164 (focus_follows_mouse): Remove declaration.
2165 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2166 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
2167 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2168 Remove declaration.
29208e82
TT
2169 * font.h (Vfont_log): Remove declaration.
2170 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2171 (Vdos_windows_version, dos_codepage, dos_country_code)
2172 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
2173 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2174 Remove declaration.
2175 * disptab.h (Vglyph_table, Vstandard_display_table):
2176 Remove declaration.
29208e82
TT
2177 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2178 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2179 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2180 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2181 (inverse_video, mode_line_in_non_selected_windows)
2182 (tool_bar_button_relief, tool_bar_max_label_size)
2183 (underline_minimum_offset)
2184 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2185 Remove declaration.
2186 * composite.h (Vauto_composition_function)
2187 (Vcomposition_function_table): Remove declaration.
2188 * commands.h (Vexecuting_kbd_macro)
2189 (Vminibuffer_local_completion_map)
2190 (Vminibuffer_local_filename_completion_map)
2191 (Vminibuffer_local_filename_must_match_map)
2192 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2193 (Vminibuffer_local_ns_map, Vthis_command)
2194 (Vunread_command_events, cursor_in_echo_area)
2195 (last_command_event, last_nonmenu_event, unread_command_char):
2196 Remove declaration.
2197 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2198 (Vdefault_file_name_coding_system)
2199 (Vdefault_process_coding_system, Vfile_name_coding_system)
2200 (Vlast_coding_system_used, Vlocale_coding_system)
2201 (Vselect_safe_coding_system_function)
2202 (Vtranslation_table_for_input, coding_system_require_warning)
2203 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
2204 (eol_mnemonic_unix, inherit_process_coding_system):
2205 Remove declaration.
2206 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2207 Remove declaration.
29208e82
TT
2208 * character.h (Vauto_fill_chars, Vchar_direction_table)
2209 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2210 (Vscript_representative_chars, Vtranslation_table_vector)
2211 (Vunicode_category_table): Remove declaration.
2212 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2213 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2214 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2215 (inhibit_modification_hooks): Remove declaration.
2216 * xterm.c (syms_of_xterm): Update.
2217 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2218 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2219 (x_mouse_click_focus_ignore_position)
2220 (x_underline_at_descent_line)
2221 (x_use_underline_position_properties): Remove.
2222 * xsmfns.c (syms_of_xsmfns): Update.
2223 (Vx_session_id, Vx_session_previous_id): Remove.
2224 * xsettings.c (syms_of_xsettings): Update.
2225 (Vxft_settings, use_system_font): Remove.
2226 * xselect.c (syms_of_xselect): Update.
2227 (Vselection_converter_alist, Vx_lost_selection_functions)
2228 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2229 * xfns.c (syms_of_xfns): Update.
2230 (Vgtk_version_string, Vmotif_version_string)
2231 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2232 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2233 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2234 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2235 (Vx_sensitive_text_pointer_shape)
2236 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2237 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2238 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2239 Remove.
2240 * xfaces.c (syms_of_xfaces): Update.
2241 (Vface_default_stipple, Vface_font_rescale_alist)
2242 (Vface_ignored_fonts, Vface_new_frame_defaults)
2243 (Vface_remapping_alist, Vfont_list_limit)
2244 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2245 * xdisp.c (syms_of_xdisp): Update.
2246 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2247 (Vdisplay_pixels_per_inch, Vfontification_functions)
2248 (Vframe_title_format, Vglobal_mode_string)
2249 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2250 (Vicon_title_format, Vinhibit_redisplay)
2251 (Vline_number_display_limit, Vline_prefix)
2252 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2253 (Vmenu_updating_frame, Vmessage_log_max)
2254 (Vmouse_autoselect_window, Vnobreak_char_display)
2255 (Voverlay_arrow_position, Voverlay_arrow_string)
2256 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2257 (Vresize_mini_windows, Vshow_trailing_whitespace)
2258 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2259 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2260 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2261 (Vwindow_text_change_functions, Vwrap_prefix)
2262 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2263 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2264 (highlight_nonselected_windows, hscroll_margin)
2265 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2266 (inhibit_menubar_update, inhibit_try_cursor_movement)
2267 (inhibit_try_window_id, inhibit_try_window_reusing)
2268 (line_number_display_limit_width)
2269 (make_cursor_line_fully_visible_p, message_truncate_lines)
2270 (mode_line_inverse_video, multiple_frames, overline_margin)
2271 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2272 (tool_bar_max_label_size, underline_minimum_offset)
2273 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2274 Remove.
2275 * window.c (syms_of_window): Update.
2276 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2277 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2278 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2279 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2280 (mode_line_in_non_selected_windows, next_screen_context_lines)
2281 (window_min_height, window_min_width): Remove.
2282 (scroll_margin): Remove declaration.
2283 * w32term.c (syms_of_w32term): Update.
2284 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2285 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2286 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2287 (w32_use_visible_system_caret, x_underline_at_descent_line)
2288 (x_use_underline_position_properties): Remove.
2289 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2290 Remove declaration.
2291 * w32select.c (syms_of_w32select): Update.
2292 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2293 * w32proc.c (syms_of_ntproc): Update.
2294 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2295 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2296 (Vw32_start_process_inherit_error_mode)
2297 (Vw32_start_process_share_console)
2298 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2299 (Vsystem_name): Remove declaration.
2300 * w32font.c (syms_of_w32font): Update.
2301 (Vw32_charset_info_alist): Remove.
2302 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2303 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2304 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2305 (Vw32_enable_palette, Vw32_lwindow_modifier)
2306 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2307 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2308 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2309 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2310 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2311 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2312 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2313 (Vx_sensitive_text_pointer_shape)
2314 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2315 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2316 (w32_mouse_move_interval)
2317 (w32_pass_extra_mouse_buttons_to_system)
2318 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2319 (w32_strict_fontnames, w32_strict_painting): Remove.
2320 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2321 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2322 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2323 Remove declaration.
29208e82
TT
2324 * w32console.c (syms_of_ntterm): Update.
2325 (w32_use_full_screen_buffer): Remove.
2326 (Vtty_defined_color_alist): Remove declaration.
2327 * w16select.c (syms_of_win16select): Update.
2328 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2329 * undo.c (syms_of_undo): Update.
2330 (Vundo_outer_limit, Vundo_outer_limit_function)
2331 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2332 Remove.
2333 * textprop.c (syms_of_textprop): Update.
2334 (Vchar_property_alias_alist, Vdefault_text_properties)
2335 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2336 Remove.
2337 * terminal.c (syms_of_terminal): Update.
2338 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2339 * term.c (syms_of_term): Update.
2340 (Vresume_tty_functions, Vsuspend_tty_functions)
2341 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2342 Remove.
2343 * syntax.c (syms_of_syntax): Update.
2344 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2345 (open_paren_in_column_0_is_defun_start)
2346 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2347 (words_include_escapes): Remove.
2348 * search.c (syms_of_search): Update.
2349 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2350 * process.c (syms_of_process): Update.
2351 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2352 (delete_exited_processes): Remove.
2353 * print.c (syms_of_print): Update.
2354 (Vfloat_output_format, Vprint_charset_text_property)
2355 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2356 (Vprint_length, Vprint_level, Vprint_number_table)
2357 (Vstandard_output, print_escape_multibyte)
2358 (print_escape_newlines, print_escape_nonascii, print_quoted):
2359 Remove.
2360 * msdos.c (syms_of_msdos): Update.
2361 (Vdos_unsupported_char_glyph): Remove.
2362 (unibyte_display_via_language_environment): Remove declaration.
2363 * minibuf.c (syms_of_minibuf): Update.
2364 (Vcompletion_regexp_list, Vhistory_add_new_input)
2365 (Vhistory_length, Vminibuffer_completing_file_name)
2366 (Vminibuffer_completion_confirm)
2367 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2368 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2369 (Vminibuffer_history_position, Vminibuffer_history_variable)
2370 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2371 (Vread_buffer_function, Vread_expression_map)
2372 (completion_ignore_case, enable_recursive_minibuffers)
2373 (history_delete_duplicates, minibuffer_allow_text_properties)
2374 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2375 Remove.
2376 * marker.c (syms_of_marker): Update.
2377 (byte_debug_flag): Remove.
2378 * macros.c (syms_of_macros): Update.
2379 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2380 * lread.c (syms_of_lread): Update.
2381 (Vafter_load_alist, Vbyte_boolean_vars)
2382 (Vbytecomp_version_regexp, Vcurrent_load_list)
2383 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2384 (Vload_history, Vload_path, Vload_read_function)
2385 (Vload_source_file_function, Vload_suffixes, Vobarray)
2386 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2387 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2388 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2389 (force_load_messages, load_convert_to_unibyte)
2390 (load_dangerous_libraries, load_force_doc_strings)
2391 (load_in_progress): Remove.
2392 * keymap.c (syms_of_keymap): Update.
2393 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2394 (Vminibuffer_local_completion_map)
2395 (Vminibuffer_local_filename_completion_map)
2396 (Vminibuffer_local_filename_must_match_map)
2397 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2398 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2399 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2400 Remove.
2401 * keyboard.c (syms_of_keyboard): Update.
2402 (Vauto_save_timeout, Vcommand_error_function)
2403 (Vcommand_hook_internal, Vdeactivate_mark)
2404 (Vdeferred_action_function, Vdeferred_action_list)
2405 (Vdisable_point_adjustment, Vdouble_click_time)
2406 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2407 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2408 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2409 (Vinput_method_function, Vinput_method_previous_message)
2410 (Vkey_translation_map, Vlast_event_frame)
2411 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2412 (Vminibuffer_message_timeout, Voverriding_local_map)
2413 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2414 (Vpre_command_hook, Vprefix_help_command)
2415 (Vsaved_region_selection, Vselect_active_regions)
2416 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2417 (Vthis_command, Vthis_command_keys_shift_translated)
2418 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2419 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2420 (Vtty_erase_char, Vunread_command_events)
2421 (Vunread_input_method_events, Vunread_post_input_method_events)
2422 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2423 (double_click_fuzz, extra_keyboard_modifiers)
2424 (inhibit_local_menu_bar_menus, last_command_event)
2425 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2426 (menu_prompting, meta_prefix_char, num_input_keys)
2427 (num_nonmacro_input_events, polling_period, unread_command_char):
2428 Remove.
2429 * insdel.c (syms_of_insdel): Update.
2430 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2431 * indent.c (syms_of_indent): Update.
2432 (indent_tabs_mode): Remove.
2433 * image.c (syms_of_image): Update.
2434 (Vimage_cache_eviction_delay, Vimage_types)
2435 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2436 (cross_disabled_images): Remove.
2437 * fringe.c (syms_of_fringe): Update.
2438 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2439 * frame.c (syms_of_frame): Update.
2440 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2441 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2442 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2443 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2444 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2445 Remove.
2446 * fontset.c (syms_of_fontset): Update.
2447 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2448 (Vfontset_alias_alist, Vignore_relative_composition)
2449 (Votf_script_alist, Vuse_default_ascent)
2450 (Vvertical_centering_font_regexp): Remove.
2451 * font.c (syms_of_font): Update.
2452 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2453 (Vfont_weight_table, Vfont_width_table): Remove.
2454 * fns.c (syms_of_fns): Update.
2455 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2456 * filelock.c (syms_of_filelock): Update.
2457 (Vtemporary_file_directory): Remove.
2458 * fileio.c (syms_of_fileio): Update.
2459 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2460 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2461 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2462 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2463 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2464 (Vwrite_region_annotate_functions)
2465 (Vwrite_region_annotations_so_far)
2466 (Vwrite_region_post_annotation_function)
2467 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2468 (Vw32_get_true_file_attributes): Remove declaration.
2469 * eval.c (syms_of_eval): Update.
2470 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2471 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2472 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2473 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2474 (max_lisp_eval_depth, max_specpdl_size): Remove.
2475 * emacs.c (syms_of_emacs): Update.
2476 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2477 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2478 (Vinstallation_directory, Vinvocation_directory)
2479 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2480 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2481 (Vsystem_configuration, Vsystem_configuration_options)
2482 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2483 (inhibit_x_resources, noninteractive1): Remove.
2484 * editfns.c (syms_of_editfns): Update.
2485 (Vbuffer_access_fontified_property)
2486 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2487 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2488 (Vuser_login_name, Vuser_real_login_name): Remove.
2489 * dosfns.c (syms_of_dosfns): Update.
2490 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2491 (dos_codepage, dos_country_code, dos_decimal_point)
2492 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2493 (dos_super_key, dos_timezone_offset): Remove.
2494 * doc.c (syms_of_doc): Update.
2495 (Vbuild_files, Vdoc_file_name): Remove.
2496 * dispnew.c (syms_of_display): Update.
2497 (Vglyph_table, Vinitial_window_system)
2498 (Vredisplay_preemption_period, Vstandard_display_table)
2499 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2500 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2501 * dired.c (syms_of_dired): Update.
2502 (Vcompletion_ignored_extensions): Remove.
2503 (Vw32_get_true_file_attributes): Remove declaration.
2504 * dbusbind.c (syms_of_dbusbind): Update.
2505 (Vdbus_debug, Vdbus_registered_buses)
2506 (Vdbus_registered_objects_table): Remove.
2507 * data.c (syms_of_data): Update.
2508 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2509 * composite.c (syms_of_composite): Update.
2510 (Vauto_composition_function, Vauto_composition_mode)
2511 (Vcompose_chars_after_function, Vcomposition_function_table):
2512 Remove.
2513 * coding.c (syms_of_coding): Update.
2514 (Vcharset_revision_table, Vcoding_category_list)
2515 (Vcoding_system_alist, Vcoding_system_for_read)
2516 (Vcoding_system_for_write, Vcoding_system_list)
2517 (Vdefault_process_coding_system, Venable_character_translation)
2518 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2519 (Vlast_coding_system_used, Vlatin_extra_code_table)
2520 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2521 (Vprocess_coding_system_alist)
2522 (Vselect_safe_coding_system_function)
2523 (Vstandard_translation_table_for_decode)
2524 (Vstandard_translation_table_for_encode)
2525 (Vtranslation_table_for_input, coding_system_require_warning)
2526 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2527 (eol_mnemonic_unix, inherit_process_coding_system)
2528 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2529 (inhibit_null_byte_detection): Remove.
2530 * cmds.c (syms_of_cmds): Update.
2531 (Vpost_self_insert_hook): Remove.
2532 * charset.c (syms_of_charset): Update.
2533 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2534 (inhibit_load_charset_map): Remove.
2535 * character.c (syms_of_character): Update.
2536 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2537 (Vchar_width_table, Vprintable_chars)
2538 (Vscript_representative_chars, Vtranslation_table_vector)
2539 (Vunicode_category_table): Remove.
2540 * ccl.c (syms_of_ccl): Update.
2541 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2542 (Vtranslation_hash_table_vector): Remove.
2543 * category.c (syms_of_category): Update.
2544 (Vword_combining_categories, Vword_separating_categories): Remove.
2545 * callproc.c (syms_of_callproc): Update.
2546 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2547 (Vexec_directory, Vexec_path, Vexec_suffixes)
2548 (Vinitial_environment, Vprocess_environment)
2549 (Vshared_game_score_directory, Vshell_file_name): Remove.
2550 * callint.c (syms_of_callint): Update.
2551 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2552 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2553 * bytecode.c (syms_of_bytecode): Update.
2554 (Vbyte_code_meter, byte_metering_on): Remove.
2555 * buffer.c (syms_of_buffer): Update.
2556 (Vafter_change_functions, Vbefore_change_functions)
2557 (Vchange_major_mode_hook, Vfirst_change_hook)
2558 (Vinhibit_read_only, Vkill_buffer_query_functions)
2559 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2560 * alloc.c (syms_of_alloc): Update.
2561 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2562 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2563 (cons_cells_consed, floats_consed, garbage_collection_messages)
2564 (gc_cons_threshold, gcs_done, intervals_consed)
2565 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2566 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2567
2568 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2569 (DEFVAR_INT): Assume global is in `globals'.
2570 * alloc.c (globals): Define.
2571
448c0820
TT
25722011-01-18 Tom Tromey <tromey@redhat.com>
2573
2574 * image.c (Vimagemagick_render_type): Remove redundant
2575 definition.
2576
8442d95d
TT
25772011-01-18 Tom Tromey <tromey@redhat.com>
2578
2579 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2580 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2581 (redisplay_window): Update.
2582 (syms_of_xdisp): Update.
2583
cab0ba98
TT
25842011-01-18 Tom Tromey <tromey@redhat.com>
2585
2586 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2587 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2588 Declare.
2589 * gtkutil.c (xg_uses_old_file_dialog):
2590 (xg_get_file_with_chooser):
2591 (xg_tool_bar_detach_callback): Don't redeclare globals.
2592
422745d0
TT
25932011-01-18 Tom Tromey <tromey@redhat.com>
2594
2595 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2596 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2597
7cae64b4
PE
25982011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2599
2600 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2601 defined __GNUC__. ../configure now checks for this GCC feature,
2602 which is now also supported by IBM and Oracle compilers.
2603 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2604 since Solaris malloc returns mult-of-8.
2605
a9faac5c 26062011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
2607
2608 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2609
a3e44e79 26102011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 2611
6e8e6bf2
PE
2612 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2613 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2614 * data.c (Fnumber_to_string): Use it.
2615 * print.c (float_to_string, print_object): Likewise.
2616
4004364e
PE
2617 Include <unistd.h> unilaterally.
2618 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2619 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2620 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2621 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2622 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2623 * xterm.c:
2624 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2625 unistd.h is always present now, possibly supplied by gnulib.
2626
e84aba69
PE
2627 * mktime.c: Remove; moving to ../lib.
2628
1e11dbe3
PE
2629 Use gnulib's mktime module.
2630 * deps.mk (mktime.o): Remove rule.
2631
fa2c4f56
PE
2632 Use gnulib's ftoastr module.
2633 * print.c: Include ftoastr.h.
2634 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2635 Remove; no longer needed.
2636 (float_to_string): Use dtoastr rather than rolling our own code,
2637 which had an off-by-one bug on non-IEEE hosts.
2638
9a514d4a
PE
2639 Automate syncing from gnulib.
2640 * Makefile.in (lib): New macro.
2641 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2642 ($(lib)/libgnu.a): New rule.
2643 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2644
717c30e0
PE
2645 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2646 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2647 so change the type of 'ign' to unsigned int from int.
2648
8865d794
PE
2649 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2650
4ef36a7b
PE
2651 * xterm.h (struct x_display_info): Remove stray semicolon.
2652 The extra semicolon didn't conform to the C standard.
2653 Problem reported by Sun cc.
2654
6df4097e
PE
2655 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2656 These changes make compilation easier to follow with Sun cc.
2657 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2658 EMACS_INT values without provoking overflow diagnostics.
2659 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2660 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2661 diagnostic with signed left shift.
9fba3563 2662
410ed5c3
PE
2663 * fileio.c (make_temp_name): Remove unreachable code.
2664
97be3ce3
PE
2665 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2666 Previously it was marked by preceding it with "return;", but
2667 Sun cc complains about this.
2668
9fba3563
PE
2669 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2670 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2671 which fixed Bug#2370. Caught by Sun cc.
2672
6dc1d2d3
MR
26732011-01-15 Martin Rudalics <rudalics@gmx.at>
2674
2675 * window.c (inhibit_point_swap): New variable.
2676 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2677 point this time.
2678 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2679 of setting selected_window to nil (Bug#7728).
2680
f853f599
TH
26812011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2682
8dabbfd6
SM
2683 * image.c (imagemagick_load_image, Finit_image_library):
2684 Free intermediate image after creating a MagickWand from it.
2685 Terminate MagickWand environment after image loading.
f853f599 2686
2bc92a93
MA
26872011-01-10 Michael Albinus <michael.albinus@gmx.de>
2688
2689 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2690 unexpected return values.
2691 (Fdbus_register_method): Remove connection initialization.
2692
26932011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
2694
2695 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2696 used by Fdbus_register_service.
2697 (QCdbus_request_name_replace_existing): Likewise.
2698 (QCdbus_request_name_do_not_queue): Likewise.
2699 (QCdbus_request_name_reply_primary_owner): Likewise.
2700 (QCdbus_request_name_reply_in_queue): Likewise.
2701 (QCdbus_request_name_reply_exists): Likewise.
2702 (QCdbus_request_name_reply_already_owner): Likewise.
2703 (Fdbus_register_service): New function.
2704 (Fdbus_register_method): Use Fdbus_register_service to do the name
2705 registration.
2706 (syms_of_dbusbind): Add symbols dbus-register-service,
2707 :allow-replacement, :replace-existing, :do-not-queue,
2708 :primary-owner, :existing, :in-queue and :already-owner.
2709
21a76236
CY
27102011-01-09 Chong Yidong <cyd@stupidchicken.com>
2711
2712 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2713 when removing extra buttons.
2714
3d91e302
CY
27152011-01-08 Chong Yidong <cyd@stupidchicken.com>
2716
2717 * fns.c (Fyes_or_no_p): Doc fix.
2718
0d23ffb5
AS
27192011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2720
2721 * fns.c (Fyes_or_no_p): Add usage.
2722
9dc3366b
GM
27232011-01-08 Glenn Morris <rgm@gnu.org>
2724
d0981f82
GM
2725 * makefile.w32-in ($(EMACS)):
2726 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2727
9dc3366b
GM
2728 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2729 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2730
466cbae9
AS
27312011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2732
2733 * image.c (imagemagick_load_image): Fix some resource leaks and
2734 error handling.
2735
8c51d2a2
CY
27362011-01-07 Chong Yidong <cyd@stupidchicken.com>
2737
2738 * fns.c (Fyes_or_no_p): Accept format string args.
2739
66b7b0fe
GM
27402011-01-07 Glenn Morris <rgm@gnu.org>
2741
2742 * emacs.c (no_site_lisp): New int.
2743 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2744 (main): Set no_site_lisp.
2745 (standard_args): Add --no-site-lisp.
2746 * lisp.h (no_site_lisp): New int.
2747 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2748 directories to Vload_path.
2749
2018939f
AS
27502011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2751
2752 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2753
6ed843e5
MA
27542011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2755
8dabbfd6 2756 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
2757 dont_register_service. Updated docstring accordingly.
2758
3f9b7090
GM
27592011-01-04 Glenn Morris <rgm@gnu.org>
2760
2761 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2762
d82bce4a
EZ
27632011-01-03 Eli Zaretskii <eliz@gnu.org>
2764
2765 * image.c (png_jmpbuf): Remove definition.
2766 (my_png_error, png_load): Don't use png_jmpbuf.
2767
7c420169
CY
27682011-01-02 Eli Zaretskii <eliz@gnu.org>
2769
2770 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2771
27722011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
2773
2774 * image.c <Qlibpng_version>: New variable.
2775 (syms_of_image): Intern and staticpro it. Set its value to the
2776 version of PNG library we were compiled with.
2777 (my_png_error, png_load): Avoid GCC warnings about direct access
2778 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
2779 (png_jmpbuf): New macro.
2780 (my_png_error, png_load): Use it instead of #ifdef'ing according
2781 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 2782
7c420169 27832011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
2784
2785 * .gdbinit (xgetptr): Fix the union+lsb case.
2786 (xbacktrace): Fix the union case.
2787
7c420169 27882011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
2789
2790 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2791 different from selected-window's.
2792
7c420169 27932011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 2794
71fe378d
EZ
2795 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2796 equivalent of a menu item when the key sequence is given by the
2797 `:keys' attribute. (Bug#7662)
2798
2e4ab211
EZ
2799 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2800 the basic faces are supported.
2801
7c420169 28022011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
2803
2804 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2805
7c420169 28062011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
2807
2808 * xdisp.c (Fformat_mode_line): Fix last change.
2809
7c420169 28102011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
2811
2812 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2813 faces (Bug#7587).
2814
7c420169 28152011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
2816
2817 * fileio.c (Fexpand_file_name): One more doc fix.
2818
3afff00e
CY
28192011-01-01 Chong Yidong <cyd@stupidchicken.com>
2820
2821 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2822 image or label in the container.
2823 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2824 (xg_show_toolbar_item): Function deleted.
2825 (xg_tool_item_stale_p): New function.
2826 (update_frame_tool_bar): Calculate tool-bar style once per call.
2827 Instead of hiding text labels, omit them. Don't use
2828 xg_show_toolbar_item; create new GtkToolItems from scratch if
2829 necessary, instead of trying to re-use them. This avoids an
2830 annoying animation when changing tool-bars.
2831
aeb7e951
JD
28322010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2833
2834 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2835 title and buffer filename only for RepresentedFilename.
2836 Handle bad UTF-8 in buffer name (Bug#7517).
2837
5bbb4727
JD
28382010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2839
2840 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2841
2842 * nsfns.m (ns_set_name_iconic): Remove.
2843 (ns_set_name_internal): New function (Bug#7517).
2844 (Vicon_title_format): Extern declare.
2845 (ns_set_name): Call ns_set_name_internal.
2846 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2847 (x_implicitly_set_name): Ditto.
2848 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2849 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2850
f1aab3ff
ŠN
28512010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2852
2853 * window.c (syms_of_window): Add missing defsubr for
2854 window-use-time.
2855
365525b3
AS
28562010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2857
2858 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2859 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2860
59fc5cf9
AS
28612010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2862
2f7c71a1
AS
2863 * buffer.c: Remove unused declarations.
2864 * buffer.h: Likewise.
2865 * charset.h: Likewise.
2866 * composite.h: Likewise.
2867 * dispextern.h: Likewise.
2868 * dispnew.c: Likewise.
2869 * font.h: Likewise.
2870 * fontset.c: Likewise.
2871 * fontset.h: Likewise.
2872 * intervals.h: Likewise.
2873 * keymap.h: Likewise.
2874 * lisp.h: Likewise.
2875 * syntax.c: Likewise.
2876 * syntax.h: Likewise.
2877 * termhooks.h: Likewise.
2878 * window.h: Likewise.
2879 * xsettings.h: Likewise.
2880 * xterm.c: Likewise.
2881 * xterm.h: Likewise.
2882
2883 * chartab.c (sub_char_table_ref): Make static.
2884 * dispnew.c (line_hash_code, required_matrix_height)
2885 (required_matrix_width): Likewise.
2886 * eval.c (interactive_p, apply_lambda): Likewise.
2887 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2888 Likewise.
2889 * font.c (QCadstyle, QCregistry, font_make_spec)
2890 (font_parse_fcname, font_encode_char, font_at): Likewise.
2891 * frame.c (x_frame_get_arg): Likewise.
2892 * keymap.c (get_keyelt): Likewise.
2893 * lread.c (read_filtered_event): Likewise.
2894 * print.c (write_string_1): Likewise.
2895 * window.c (delete_window, window_height, window_width)
2896 (foreach_window): Likewise.
2897 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2898 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2899 (xembed_send_message): Likewise.
2900
2901 * eval.c (run_hook_list_with_args): Delete.
2902 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2903 * terminal.c (get_terminal_param): Likewise.
2904 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2905
c4b607ed
AS
2906 * scroll.c: Fix comment.
2907
59fc5cf9
AS
2908 * dispnew.c (add_window_display_history)
2909 (add_frame_display_history, glyph_row_slice_p)
2910 (find_glyph_row_slice, flush_stdout)
2911 (check_matrix_pointer_lossage, matrix_row)
2912 (check_matrix_invariants, check_window_matrix_pointers)
2913 (check_matrix_pointers, window_to_frame_vpos)
2914 (window_to_frame_hpos): Prototize.
2915 * textprop.c (erase_properties): Likewise.
2916
a65b85b5
SM
29172010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2918
17870c01
SM
2919 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2920 (print_preprocess): Fix handling of uninterned symbols in last change.
2921
a65b85b5
SM
2922 * print.c (print, print_preprocess, print_object): Use a hash table
2923 rather than a linear table for Vprint_number_table.
2924
f13183cf
CY
29252010-12-20 Chong Yidong <cyd@stupidchicken.com>
2926
2927 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2928
94975270
CY
29292010-12-20 Chong Yidong <cyd@stupidchicken.com>
2930
2931 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2932 (parse_tool_bar_item): Use it to obtain image separators for
2933 displays not using native tool-bar separators.
2934
2935 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2936 specially, since this is now done in parse_tool_bar_item.
2937
ef1b0ba7
SM
29382010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2939
2940 Minor clean up to silence some gcc warnings.
2941 * window.c (Fset_window_buffer):
2942 * xterm.c (x_set_frame_alpha): Restructure code to silence
2943 compiler warning.
2944 (handle_one_xevent): Remove unused var `p'.
2945 (do_ewmh_fullscreen): Remove unused var `lval'.
2946 (xembed_set_info): Remove unused var `atom'.
2947 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2948 compiler warning.
2949 * fontset.c (fontset_id_valid_p, dump_fontset):
2950 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2951 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2952 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2953 label only when it's used.
2954 * image.c (x_create_bitmap_from_xpm_data):
2955 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2956 its callers.
2957 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2958 `consumed_chars'.
2959 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2960 (decode_coding_emacs_mule): Remove unused label `retry'.
2961 (detect_eol): Add parens to silence compiler warning.
2962 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2963 it's used to silence the compiler.
2964 (make_number): Modernize k&r declaration.
2965 (mark_char_table): Add parens to silence compiler warning.
2966
4039c786
CY
29672010-12-17 Chong Yidong <cyd@stupidchicken.com>
2968
2969 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2970 tool-bar maps.
2971 (menu_separator_name_p): New function, from gtkutil.c.
2972 (separator_names): Move from gtkutil.c.
2973
2974 * keyboard.h (menu_separator_name_p): Add prototype.
2975
2976 * gtkutil.c (XG_BIN_CHILD): New macro.
2977 (xg_get_menu_item_label, xg_update_menubar)
2978 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2979 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2980 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2981 (create_menus, xg_update_submenu, update_frame_tool_bar):
2982 Use menu_separator_name_p.
4039c786
CY
2983
2984 * nsmenu.m (name_is_separator): Function deleted.
2985 (addItemWithWidgetValue): Use menu_separator_name_p.
2986
2987 * w32menu.c (name_is_separator): Function deleted.
2988 (add_menu_item): Use menu_separator_name_p.
2989
aa936e8e
JD
29902010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2991
2992 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2993 same as the background, use the face forground as cursor.
2994
f49d1f52 29952010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2996
2997 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2998
f49d1f52 29992010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 3000
f0559026
EZ
3001 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3002 (face_before_or_after_it_pos, next_element_from_string)
3003 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3004 calculations of maximum string length before calling
3005 string_char_and_length and STRING_CHAR_AND_LENGTH.
3006 (string_char_and_length): Update commentary: MAXLEN is no longer
3007 needed.
3008
f49d1f52 30092010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
3010
3011 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3012 as (Qsave_session arg).
3013
3014 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3015 (smc_die_CB): Make an event with arg Qt.
3016 (Fhandle_save_session): If event has Qt as argument,
3017 call Fkill_emacs (Bug#7552).
3018
f49d1f52
SM
30192010-12-13 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3022
30232010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
3024
3025 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3026
f49d1f52 30272010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
3028
3029 * dispextern.h (struct it): New member overlay_strings_charpos.
3030
3031 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3032 charpos where we computed n_overlay_strings.
3033 (next_overlay_string): Load overlay strings at recorded position,
3034 which may not be the same as the iterator's charpos (Bug#7016).
3035
f49d1f52 30362010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
3037
3038 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3039 obscured due to a vscroll (Bug#7537).
3040
f49d1f52 30412010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
3042
3043 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3044
3045 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3046 Use FRAME_TOOLBAR_HEIGHT.
3047 (x_set_offset): Handle XNegative and YNegative in
3048 f->size_hint_flags (Bug#7510).
3049
39321b94
EZ
30502010-12-11 Eli Zaretskii <eliz@gnu.org>
3051
3052 * w32fns.c (Fx_show_tip): Call try_window with last argument
3053 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3054 solved. Round up the tip height to an integral multiple of the
3055 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3056 (Bug#7398)
3057
ec1b9b17
GM
30582010-12-08 Glenn Morris <rgm@gnu.org>
3059
3060 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3061
3c2317e8
LMI
30622010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3063
3064 * xml.c (parse_region): Ignore blank HTML nodes.
3065 (make_dom): Return CDATA sections (like <style>foo</style>) as
3066 text nodes.
3067
bba3e508
SM
30682010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3069
3070 * lread.c (read1): Allow newstyle unquote outside of backquote.
3071 Disallow old-style backquotes inside new-style backquotes.
3072 Don't count unquotes to figure out when we're "syntactically inside
3073 but semantically outside of a backquote" any more.
3074 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3075 to all contexts.
3076
d23d8608
CY
30772010-12-05 Chong Yidong <cyd@stupidchicken.com>
3078
3079 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3080
d6a003a8
AS
30812010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3082
3083 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3084 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3085 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3086
201ef780
AS
30872010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3088
3089 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3090 bit-field.
3091 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3092 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3093 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3094 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3095 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3096 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3097 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3098 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3099 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3100 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3101 * m/hp800.h: Remove file.
3102 * m/mips.h: Remove file.
3103
146490c3
JD
31042010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3105
3106 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3107 with cursor color and draw a rectangle around the image (Bug#7412).
3108
babc8f0d
AS
31092010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3110
3111 * frame.c (x_set_font): Remove unused variable.
3112
9583e9a0
JD
31132010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3114
dd723bbd
JD
3115 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3116
9583e9a0
JD
3117 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3118 drawing text under filled box cursor (Bug#7479).
3119
07976ae3 31202010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
3121
3122 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3123 i.e. integer.
bba3e508 3124 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
3125 (init_charset_once): Likewise.
3126
bba3e508
SM
3127 * charset.h (emacs_mule_charset): Adjust the prototype.
3128 Delete duplicated extern.
b84ae584
KH
3129
3130 * coding.c (emacs_mule_char): Adjust for the change of
3131 emacs_mule_charset.
3132
3133 * lread.c (read_emacs_mule_char): Adjust for the change of
3134 emacs_mule_charset.
3135
07976ae3 31362010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
3137
3138 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3139 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3140
07976ae3 31412010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
3142
3143 * alloc.c (mark_terminals): Ensure that the image cache is marked
3144 even if the terminal object was marked earlier (Bug#6301).
3145
35f1de62
CY
31462010-11-21 Chong Yidong <cyd@stupidchicken.com>
3147
3148 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3149
07976ae3 31502010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
3151
3152 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3153 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 3154 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 3155
8547874a
EZ
31562010-11-26 Eli Zaretskii <eliz@gnu.org>
3157
228482b2
EZ
3158 * xdisp.c (set_message_1): Force paragraph direction in echo area
3159 be left-to-right.
3160
8547874a
EZ
3161 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3162 when the click is on the header or mode line.
3163
1e2dddbe
EZ
31642010-11-25 Eli Zaretskii <eliz@gnu.org>
3165
3166 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3167 `cursor' property of the first character in overlay strings.
12365240 3168 (Bug#7474) (Bug#7481)
1e2dddbe 3169
50795d1f
JD
31702010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3171
3172 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3173 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
3174 (keyDown): Parse left and right keys separately (Bug#7458).
3175 Compare Left key masks exactly (Bug#7458).
50795d1f 3176
f8ab8c1f
EZ
31772010-11-23 Eli Zaretskii <eliz@gnu.org>
3178
3179 * intervals.c (temp_set_point_both): Define before calling, to
3180 avoid GCC warnings.
3181
2e8a4797
DN
31822010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3183
b29116ef
DN
3184 * nsmenu.m: Use #include <config.h> instead of "config.h".
3185
b932f8b1 3186 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3187 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3188 Move declarations ...
3189 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3190 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3191 ... here.
3192
42c8bc9b
DN
3193 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3194 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3195 (gdb_pvec_type):
3196 * print.c (print_output_debug_flag):
3197 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3198 (safe_debug_print): New declaration.
3199
2e8a4797
DN
3200 * xterm.c:
3201 * systty.h:
3202 * sound.c: Include <sys/ioctl.h> unconditionally.
3203
b609f591
YM
32042010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3205
3206 * alloc.c (mark_maybe_object): Return early if given a Lisp
3207 integer (Bug#6301).
3208
731e263a
KB
32092010-11-21 Ken Brown <kbrown@cornell.edu>
3210
3211 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3212
b7d1e144
JD
32132010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3214
3215 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3216 Define (Bug#7458).
3217 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3218 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3219 NSRightControlKeyMask also (Bug#7458).
3220 (keyDown): Ditto (Bug#7458).
3221 (syms_of_nsterm): Defvar ns-right-command-modifier and
3222 ns-right-control-modifier (Bug#7458).
3223
b7982059
DN
32242010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3225
bee3419f
DN
3226 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3227 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3228
b7982059
DN
3229 * intervals.h (temp_set_point, temp_set_point_both):
3230 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3231
01664ed1
KB
32322010-11-20 Ken Brown <kbrown@cornell.edu>
3233
3234 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3235
7c2d713b
EZ
32362010-11-20 Eli Zaretskii <eliz@gnu.org>
3237
3238 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3239 \xNNNNNN for hex-code display of glyphless characters.
3240
d2bd5189
JD
32412010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3242
3243 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3244 Set important to ! vert_only.
3245 (xg_show_toolbar_item): Don't show label horizontally if
3246 tool item isn't important.
3247 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3248 xg_make_tool_item, or update important on existing tool item.
3249
3250 * keyboard.c (QCvert_only): New variable.
3251 (parse_tool_bar_item): Check for QCvert_only.
3252 (syms_of_keyboard): Initialize QCvert_only.
3253
3254 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3255
d9a95e67
EZ
32562010-11-20 Eli Zaretskii <eliz@gnu.org>
3257
3258 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3259 same in-line.
3260
b6557553
AS
32612010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3262
3263 * xfaces.c (lookup_face): Make static.
3264 * dispnew.c (copy_row_except_pointers): Likewise.
3265 * syntax.c (dec_bytepos): Likewise.
3266 (inc_bytepos): Remove.
3267 * dispextern.h (lookup_face): Remove declaration.
3268
f48fe1f0
EZ
32692010-11-19 Eli Zaretskii <eliz@gnu.org>
3270
3271 * xdisp.c (set_cursor_from_row): Display cursor after all the
3272 glyphs that come from an overlay. Don't overstep the last glyph
3273 when skipping glyphs from an overlay. (Bug#6687)
3274
654ef137
DN
32752010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3276
84dfc8a7
DN
3277 * alloc.c (refill_memory_reserve): Move declaration ...
3278 * lisp.h (refill_memory_reserve): ... here.
3279
94fa3833
DN
3280 * strftime.c (_strftime_copytm): Add declaration.
3281
dde990a0
DN
3282 * callproc.c (syms_of_callproc): Use intern_c_string.
3283
50c77428
DN
3284 Move declarations from .c files to .h files.
3285 * process.c (timers_run):
3286 * minibuf.c (quit_char):
3287 * lread.c (read_emacs_mule_char):
3288 * keyboard.c (minibuf_level, message_enable_multibyte)
3289 (pending_malloc_warning):
3290 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3291 (Qonly): Remove declarations.
3292 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3293 (Vselect_active_regions):
2f8f196d 3294 * keyboard.h (timers_run): Add declarations.
50c77428 3295
654ef137
DN
3296 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3297 (tm_diff): Convert definitions to standard C.
3298 (extra_args_spec_iso): Remove, unused.
3299
4a47c275 33002010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3301
3302 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3303
3304 * config.in (HAVE_G_TYPE_INIT): New symbol.
3305
4a47c275 33062010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3307
3308 * lread.c (Fload): Mention `load-in-progress' and
3309 `load-file-name'. (Bug#7346)
3310
86520d8c
EZ
3311 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3312 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3313 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3314 subprocesses. Use buffer_free only ifdef subprocesses.
3315
3316 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3317 the subprocesses version, not in the non-subprocesses one.
3318
794a4b6d
EZ
3319 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3320
146d267b
EZ
33212010-11-17 Eli Zaretskii <eliz@gnu.org>
3322
3323 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3324 lines on text-mode terminals. (bug#7417)
3325
fad0d565
SM
33262010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3327
3328 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3329 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3330
6b4bb703
KH
33312010-11-17 Kenichi Handa <handa@m17n.org>
3332
3333 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3334 change (set charset-ID list instead of charset-symbol list).
3335
9173a8fb
CY
33362010-11-16 Chong Yidong <cyd@stupidchicken.com>
3337
3338 * keyboard.c (make_lispy_position): For text area clicks, record Y
3339 pixel position relative to the text area, excluding header line.
3340 Also change X and Y to Lisp_Objects, not pointers; don't return
3341 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3342 buffer_posn_from_coords counting from the start of the text area.
3343 (Fposn_at_x_y, make_lispy_event): Callers changed.
3344
3345 * window.c (coordinates_in_window): Change X and Y to ints rather
3346 than pointers; don't return coordinates via pointers.
3347 (struct check_window_data): Change X and Y from pointers to ints.
3348 (window_from_coordinates): Remove args WX and WY; don't return
3349 coordinates via pointers.
3350 (Fcoordinates_in_window_p, window_from_coordinates):
3351 (check_window_containing, Fwindow_at): Callers changed.
3352 (window_relative_x_coord): New function.
3353
3354 * window.h (window_from_coordinates, window_relative_x_coord):
3355 Update prototypes.
3356
3357 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3358 the start of the text area.
3359
3360 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3361 call. Use window_relative_x_coord.
3362 (note_mouse_highlight): Change window_from_coordinates call.
3363
3364 * w32term.c (w32_read_socket):
3365 * msdos.c (dos_rawgetc):
3366 * xterm.c (handle_one_xevent): Likewise.
3367
d2762c86
DN
33682010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3369
3370 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3371 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3372 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3373 Convert definitions to standard C.
3374 * regex.c: Do not include <stdlib.h>, config.h does it.
3375 Include unistd.h.
3376 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3377 (regerror, regfree): Convert definitions to standard C.
3378 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3379 (__mktime_internal): Convert definitions to standard C.
3380
c2f0866a
DN
33812010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3382
42a7e7f1
DN
3383 * w32proc.c:
3384 * w32inevt.c:
3385 * w32heap.c:
3386 * w32.c: Remove config.h include guards.
3387
67802943
DN
3388 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3389 No code changes.
3390
f0e1af46
DN
3391 * process.c: Include <sys/ioctl.h> unconditionally,
3392 keyboard.c already does it.
3393
c2f0866a
DN
3394 * keyboard.c (pending_malloc_warning): Add const to match
3395 definition in alloc.c.
3396 (Fset_input_interrupt_mode): Simplify #ifdefs.
3397
92d3ab7e
DN
33982010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3399
12e610e8
DN
3400 Clean up systty.h macros.
3401 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3402 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3403 definition in all uses.
3404 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3405 * sysdep.c (discard_tty_input, child_setup_tty)
3406 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3407 * emacs.c (shut_down_emacs):
3408 * callproc.c (child_setup):
3409 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3410
92d3ab7e
DN
3411 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3412
a3e6bad4
CY
34132010-11-14 Chong Yidong <cyd@stupidchicken.com>
3414
3415 * w32fns.c (Fx_create_frame):
3416 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3417 resource here; it's now done at startup.
3418
5a232ffb
J
34192010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3420
3421 * xterm.c (set_wm_state): Add Qnil to final cons.
3422
3423 * xselect.c (x_send_client_event): Remove unused variables cons and
3424 size.
3425
24021b38
YM
34262010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3427
2f8f196d 3428 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3429 arg NAME_TABLE.
3430 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3431 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3432 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3433 Add const to array elements.
3434 (scroll_bar_parts): Make static. Fix position of const.
3435
3436 * w32fns.c (lispy_function_keys): Add const to extern.
3437
3438 * w32inevt.c (lispy_function_keys): Likewise.
3439
afa42fe3
CY
34402010-11-14 Chong Yidong <cyd@stupidchicken.com>
3441
3442 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3443 resource here; it's now done at startup.
3444
53260a94
DN
34452010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3446
c865c575 3447 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3448
c865c575 3449 Fix compilation on Solaris.
ff2e8052
DN
3450 * sysdep.c: Do not #include <term.h>.
3451 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3452
53260a94
DN
3453 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3454
933e29ff
J
34552010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3456
3457 * xterm.c (set_wm_state): Don't put Atom in cons, call
3458 make_fixnum_or_float on them first.
3459 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3460 Xatom_net_supported correctly.
3461
3462 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3463 (Fx_send_client_event): to here.
3464
a048073e
MR
34652010-11-13 Martin Rudalics <rudalics@gmx.at>
3466
3467 * window.c (Fwindow_use_time): New function.
3468
0eb025fb
EZ
34692010-11-13 Eli Zaretskii <eliz@gnu.org>
3470
3471 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3472 zero-width characters.
3473
3474 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3475
3476 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3477 box before drawing the glyphs inside it.
3478
3479 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3480
bba3e508
SM
3481 * dispextern.h (enum glyphless_display_method):
3482 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3483 All users changed.
0eb025fb 3484
bba3e508
SM
3485 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3486 Fix comments.
0eb025fb
EZ
3487 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3488 whitespace in "[]", to simulate a box. Don't use uninitialized
3489 variable `width'.
3490
c869cc37
JD
34912010-11-11 Julien Danjou <julien@danjou.info>
3492
2d9074ba
JD
3493 * xsettings.c (init_xsettings): Use already fetch atoms.
3494
3495 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3496 from dpyinfo.
3497
3498 * xselect.c (Fx_send_client_event): Split and create
3499 x_send_client_event.
3500
3501 * lisp.h: Do not EXFUN Fx_send_client_event.
3502
3503 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3504 from dpyinfo.
3505 (wm_supports): Use atoms from dpyinfo.
3506 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3507 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3508 (xembed_set_info): Use atoms from dpyinfo.
3509 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3510 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3511 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3512 Get all atoms in one round-trip.
3513 (set_wm_state): Use x_send_client_event rather than
3514 Fx_send_client_event, using Atom directly.
3515 (x_ewmh_activate_frame): Ditto.
3516 (x_set_sticky): Pass atoms to set_wm_state.
3517 (do_ewmh_fullscreen): Ditto.
3518
2d9074ba
JD
3519 * xterm.h (x_display_info): Add Xatom_net_supported,
3520 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3521 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3522
c869cc37
JD
3523 * xfns.c (Fx_show_tip): Fix typo in docstring.
3524
1a4236ea
SM
35252010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3526
3527 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3528 it's not negative.
3529
3106121c
YM
35302010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3531
3532 * font.c (font_filter_properties): Add const to array elements of
3533 properties args.
3534
3535 * font.h (font_filter_properties): Likewise.
3536
3537 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3538 elements.
3539
3540 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3541
da1fec2b
MA
35422010-11-10 Michael Albinus <michael.albinus@gmx.de>
3543
3544 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3545 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3546 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3547 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3548 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3549
bd6bc222
GM
35502010-11-10 Glenn Morris <rgm@gnu.org>
3551
3552 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3553
c0098065
EZ
35542010-11-09 Eli Zaretskii <eliz@gnu.org>
3555
bd6bc222 3556 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3557
d607b96b 35582010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3559
3560 * image.c (free_image): Don't garbage the frame here, since this
3561 function can be called while redisplaying (Bug#7210).
3562 (uncache_image): Garbage the frame here (Bug#6426).
3563
d607b96b 35642010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3565
d607b96b
SM
3566 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3567 parent is the root window. Check this after traversing window tree.
184765cc 3568
d607b96b 3569 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3570
d607b96b 3571 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3572
d607b96b
SM
3573 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3574 before traversing window tree (Bug#5721).
c2e124a9 3575
27f92be7
J
35762010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3577
66b16767
J
3578 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3579
25f38310
SM
3580 * xdisp.c (note_mode_line_or_margin_highlight):
3581 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3582
a971c0a7
EZ
35832010-11-06 Eli Zaretskii <eliz@gnu.org>
3584
3585 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3586 adjust width of tool-tip frame to the width of text, excluding the
3587 stretch glyph at the beginning of R2L glyph rows.
3588
3589 * w32fns.c (Fx_show_tip): Likewise.
3590
80417b95
JD
35912010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3592
3593 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 3594 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 3595
28118eb6
EZ
35962010-11-05 Eli Zaretskii <eliz@gnu.org>
3597
c1fc2d3a 3598 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
3599
3600 * term.c: Remove static mouse_face_* variables. All users
3601 changed.
3602 (term_show_mouse_face, term_clear_mouse_face)
3603 (fast_find_position, term_mouse_highlight): Functions deleted.
3604 (tty_draw_row_with_mouse_face): New function.
3605 (term_mouse_movement): Call note_mouse_highlight instead of
3606 term_mouse_highlight.
3607
bbf534ce
EZ
3608 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3609 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3610 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3611 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3612 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3613 Replace Display_Info with Mouse_HLInfo everywhere where
3614 mouse_face_* members were accessed for mouse highlight purposes.
3615
3616 * xterm.c (x_update_window_begin, x_update_window_end)
3617 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
3618 (handle_one_xevent, x_free_frame_resources, x_term_init):
3619 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
3620 members were accessed for mouse highlight purposes.
3621
3622 * w32term.c (x_update_window_begin, x_update_window_end)
3623 (x_update_end, w32_read_socket, x_free_frame_resources)
3624 (w32_initialize_display_info): Replace Display_Info with
3625 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3626 for mouse highlight purposes.
3627
3628 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3629 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3630 unless the frame is on a window-system.
c1fc2d3a 3631 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
3632 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3633 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3634 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3635 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3636 Replace Display_Info with Mouse_HLInfo everywhere where
3637 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 3638 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
3639 HAVE_WINDOW_SYSTEM conditional.
3640 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3641 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
3642 (try_window_id) [HAVE_GPM || MSDOS]:
3643 Call x_clear_window_mouse_face.
d009ae66 3644 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
3645 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3646 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3647 calling draw_glyphs directly.
d009ae66
EZ
3648 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3649 (cursor_in_mouse_face_p, rows_from_pos_range)
3650 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3651 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3652 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3653 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3654 fragments.
3655 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3656 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3657 integer.
3658 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
3659 (x_consider_frame_title, tool_bar_lines_needed):
3660 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
3661 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3662 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3663 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3664 part.
d009ae66
EZ
3665
3666 * dispnew.c (mirror_make_current): Set Y coordinate of the
3667 mode-line and header-line rows.
c1fc2d3a
EZ
3668 (init_display): Setup initial frame's output_data for text
3669 terminal frames.
d009ae66 3670
c1fc2d3a
EZ
3671 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3672 its own definition on msdos.c.
d009ae66
EZ
3673
3674 * msdos.c (show_mouse_face, clear_mouse_face)
3675 (fast_find_position, IT_note_mode_line_highlight)
3676 (IT_note_mouse_highlight): Functions deleted.
3677 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3678 instead of IT_note_mouse_highlight.
3679 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
3680 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3681 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3682 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3683 where mouse_face_* members were accessed for mouse highlight
3684 purposes.
3685
3686 * msdos.h (initialize_msdos_display): Add prototype.
3687
3688 * frame.h (MOUSE_HL_INFO): New macro.
3689
3690 * lisp.h (Mouse_HLInfo): New data type.
3691
3692 * xterm.h (struct x_display_info):
3693 * w32term.h (struct w32_display_info):
3694 * nsterm.h (struct ns_display_info):
3695 * termchar.h (struct tty_display_info): Use it instead of
3696 mouse_face_* members.
3697
3698 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3699 1st argument.
3700 (frame_to_window_pixel_xy, note_mouse_highlight)
3701 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3702 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3703 HAVE_WINDOW_SYSTEM conditional.
3704 (draw_row_with_mouse_face): Declare prototype.
3705 (tty_draw_row_with_mouse_face): Declare prototype.
3706
6e8d7c47
EZ
37072010-11-05 Eli Zaretskii <eliz@gnu.org>
3708
bba3e508
SM
3709 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3710 Remove unused variables.
6e8d7c47 3711
f31ba3f0
AR
37122010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3713
3714 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3715 logic pointed out by Eli Zaretskii.
3716
448e17d6
LMI
37172010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3718
0c3a9a9f
GM
3719 * coding.c (coding-category-list): Refer to set-coding-system-priority
3720 instead of the obsolete set-coding-priority in the doc string.
448e17d6 3721
3fdebbf9 37222010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 3723
2f8f196d 3724 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
3725 correct value.
3726 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3727 don't change the method signature, change the return.
3728
37292010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
3730
3731 * nsfont.m (nsfont_draw)
3732 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 3733 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 3734
17c0c952
JD
37352010-11-03 Julien Danjou <julien@danjou.info>
3736
3737 * image.c (gif_load): Add support for transparency and specified
3738 :background.
3739
b18fad6d
KH
37402010-11-01 Kenichi Handa <handa@m17n.org>
3741
3742 * dispextern.h (lookup_glyphless_char_display): Extern it.
3743
3744 * termhooks.h (struct terminal): New member charset_list.
3745
3746 * coding.c (Fset_terminal_coding_system_internal): Set the
3747 `charset_list' member of struct terminal.
3748
a8039db1 3749 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
3750 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3751
3752 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3753 (lookup_glyphless_char_display): Set it->what at the end.
3754 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3755 (last_glyphless_glyph_merged_face_id): Make them non-static.
3756
a8039db1
JB
3757 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3758 Fix the arg with_background for font->driver->draw.
65b6b59a 3759
a8039db1 37602010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 3761
a8039db1
JB
3762 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3763 Surround chp by parentheses.
0269bd90 3764
a8039db1 37652010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
3766
3767 Implement various display methods for glyphless characters.
3768
3769 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3770 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3771 (Qzero_width): New variables.
3772 (THIN_SPACE_WIDTH): New macro.
01c35094 3773 (lookup_glyphless_char_display): New function.
b2cca856
KH
3774 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3775 (last_glyphless_glyph_merged_face_id): New variables.
3776 (get_next_display_element): Check glyphless characters.
3777 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3778 last_glyphless_glyph_face_id.
3779 (fill_glyphless_glyph_string): New function.
3780 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3781 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3782 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3783 (x_produce_glyphs): If a suitable font is not found, produce a
3784 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3785 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3786 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3787 Qzero_width.
3788 (Vglyphless_char_display): Declare it as a Lisp variable.
3789
3790 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
3791 (struct glyph): Change the size of the member "type" to 3.
3792 Add glyphless to the union slice and u.
b2cca856
KH
3793 (enum display_element_type): Add IT_GLYPHLESS.
3794 (enum glyphless_display_method): New enum.
3795 (struct it): New member glyphless_method.
3796 (Vglyphless_char_display): Extern it.
3797
3798 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3799 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3800
a8039db1 3801 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
3802 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3803
3804 * nsterm.m (ns_draw_glyph_string): Handle the case
3805 GLYPHLESS_GLYPH (the detail is not yet implemented).
3806
c8c59954
GM
38072010-10-31 Glenn Morris <rgm@gnu.org>
3808
80696982
GM
3809 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3810
c8c59954
GM
3811 * frame.c (syms_of_frame) <tool-bar-mode>:
3812 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3813
46eadc7a
CY
38142010-10-31 Chong Yidong <cyd@stupidchicken.com>
3815
3816 * xterm.c (x_connection_closed): Print informative error message
3817 when aborting on GTK. This requires using shut_down_emacs
3818 directly instead of Fkill_emacs.
3819
ffe75e6b
EZ
38202010-10-29 Eli Zaretskii <eliz@gnu.org>
3821
3822 * emacs.c (main): Call syms_of_filelock unconditionally.
3823
3824 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3825 clause, but keep part of it conditioned on CLASH_DETECTION.
3826
9d794026
GM
38272010-10-29 Glenn Morris <rgm@gnu.org>
3828
4f4f2973
GM
3829 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3830 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3831 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3832 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3833 Sync docs between X, W32, NS.
3834
9d794026
GM
3835 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3836 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3837
d46f6bbb
JB
38382010-10-26 Juanma Barranquero <lekktu@gmail.com>
3839
3840 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3841 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3842
2e35f1a2
EZ
38432010-10-26 Eli Zaretskii <eliz@gnu.org>
3844
3845 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 3846 zero or negative. (Bug#7281)
2e35f1a2 3847
8daaeda6
J
38482010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3849
3850 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3851
6a5c2175
GM
38522010-10-25 Glenn Morris <rgm@gnu.org>
3853
3854 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3855
7c051dd8
GM
38562010-10-24 Glenn Morris <rgm@gnu.org>
3857
3858 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3859 (Fx_window_property, Fx_file_dialog):
3860 * xfns.c (Fx_synchronize, Fx_change_window_property)
3861 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3862
23c261f5
CY
38632010-10-24 Chong Yidong <cyd@stupidchicken.com>
3864
3865 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3866
d414c713 38672010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
3868
3869 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3870
3871 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3872 Deprecate use as a boolean flag.
3873
947f5e01
JM
38742010-10-24 Jim Meyering <jim@meyering.net>
3875
3876 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3877
65807d73
GM
38782010-10-24 Glenn Morris <rgm@gnu.org>
3879
f5f25615
GM
3880 * w16select.c (syms_of_win16select) <selection-coding-system>:
3881 <next-selection-coding-system>:
3882 * w32select.c (syms_of_w32select) <selection-coding-system>:
3883 <next-selection-coding-system>:
3646b86d
GM
3884 Sync docs with select.el.
3885
46710489
GM
3886 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3887 Lisp version.
3888
ea883883
GM
3889 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3890 Sync doc with the xterm.c version.
3891
65807d73
GM
3892 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3893 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3894
f3d87560
GM
38952010-10-23 Glenn Morris <rgm@gnu.org>
3896
66c6abf0 3897 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 3898 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 3899 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 3900 <hourglass-delay>: Sync docs with Lisp.
f3d87560 3901
7b7e2c18
EZ
39022010-10-23 Eli Zaretskii <eliz@gnu.org>
3903
d1d6801e 3904 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
3905
3906 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3907 (mouse_face_from_string_pos): New function, replaces
3908 fast_find_string_pos.
3909 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
3910 (note_mode_line_or_margin_highlight): Support bidi-reordered
3911 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
3912 (note_mouse_highlight): When bidi reordering is turned on in a
3913 buffer, call next-single-property-change and
ef1b0ba7
SM
3914 previous-single-property-change with last argument nil.
3915 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 3916 glyph that stands for no text beyond the line end.
1f382a02
EZ
3917 (row_containing_pos): Don't return too early when CHARPOS is in a
3918 bidi-reordered continued line. Return immediately when the first
3919 hit is found in a line that is not continued, or when an exact
3920 match for CHARPOS is found.
d1d6801e
EZ
3921 (rows_from_pos_range): New function.
3922 (mouse_face_from_buffer_pos): Use it instead of calling
3923 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3924 function to support mouse highlight in bidi-reordered lines and
3925 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3926 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3927 that the former is always above the latter or identical to it.
1554d88e 3928 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
3929 (coords_in_mouse_face_p): New function, bidi-aware.
3930 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3931 Call it instead of comparing with mouse-face members of dpyinfo.
3932 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3933 usage of hpos and vpos.
544bbc31 3934
dee186b6
J
39352010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3936
3937 * xrdb.c: Include keyboard.h for MOTIF.
3938
3939 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3940 MOTIF (Bug#7263).
3941
3942 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
3943 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3944 Make ANSI prototypes.
dee186b6 3945
5fb59edb
GM
39462010-10-22 Glenn Morris <rgm@gnu.org>
3947
3948 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3949 Remove ccl and duplicate mouse.
3950
8b78d5e3
CY
39512010-10-21 Chong Yidong <cyd@stupidchicken.com>
3952
3953 * insdel.c (prepare_to_modify_buffer): Don't set
3954 saved-region-selection if modification hooks are disabled.
3955
b8a47412
CY
39562010-10-19 Chong Yidong <cyd@stupidchicken.com>
3957
3958 * cmds.c (Fdelete_char): Doc fix.
3959
ca3fa302 39602010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
3961
3962 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3963
ca3fa302 39642010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
3965
3966 Fix incorrect font metrics when the same font is opened with
3967 different pixelsizes.
3968
3969 * xftfont.c: Include composite.h.
3970 (xftfont_shape): New function.
3971 (syms_of_xftfont): Set xftfont_driver.shape.
3972
c978536f
JD
39732010-10-18 Julien Danjou <julien@danjou.info>
3974
3975 * frame.c (Fframe_pointer_visible_p):
3976 Add `frame-pointer-visible-p' to get the pointer visibility.
3977
4b2d9ec2
LMI
39782010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3979
3980 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3981 non-"EAGAIN"-like error to signal to Emacs that the socket should
3982 be closed.
3983
9cf66cf2
EZ
39842010-10-15 Eli Zaretskii <eliz@gnu.org>
3985
c3911ead
EZ
3986 * unexcoff.c (make_hdr): Fix prototype according to changes in
3987 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3988
9cf66cf2
EZ
3989 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3990
be98da05
TH
39912010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3992
3993 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3994 made building the X menu fail.
cc98b256 3995 (really-oldXMenu): Fix my previous fix.
be98da05 3996
220d91b8 39972010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3998
3999 Fix handling of font properties on Windows (bug#6303).
4000 * font.c (font_filter_properties): New function, refactored from
4001 ftfont_filter_properties.
4002 * font.h (font_filter_properties): Declare.
4003 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4004 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4005 (w32font_filter_properties): New function.
4006 (w32font_driver): Add w32font_filter_properties.
4007
220d91b8 40082010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 4009
c0943d3d 4010 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
4011 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4012
24f981c9
JB
40132010-10-14 Juanma Barranquero <lekktu@gmail.com>
4014
4015 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4016 * w32font.c (w32_generic_family):
4017 * w32inevt.c (key_event):
4018 * w32menu.c (fill_in_menu):
4019 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4020 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4021 * w32term.c (w32_read_socket): Make static.
4022
850690cc
JB
40232010-10-13 Juanma Barranquero <lekktu@gmail.com>
4024
4025 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4026 prototypes; all callers changed.
4027
5e371708
JB
40282010-10-13 Juanma Barranquero <lekktu@gmail.com>
4029
4030 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4031 (OBJ2): New macro.
4032 (WIN32OBJ, FONTOBJ): Remove.
4033 (OBJ1): Redistribute object files with OBJ2.
4034 (LIBS, $(TEMACS)): Use TLIB2.
4035 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4036 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4037
2e288d54
JB
40382010-10-13 Juanma Barranquero <lekktu@gmail.com>
4039
4040 * emacs.c (Vdynamic_library_alist)
4041 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4042 Doc fix.
4043
4044 * lisp.h (Vdynamic_library_alist): Declare extern.
4045
4046 * image.c (Vimage_library_alist)
4047 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4048 (lookup_image_type): Use Vdynamic_library_alist.
4049 (Finit_image_library): Doc fix.
4050
aba1381b
DN
40512010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4052
4053 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4054 (lispdir): Remove trailing /, update all uses.
4055
4c14013d 40562010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
4057
4058 * nsterm.m (Qleft): Declare.
01c35094 4059 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
4060 (NSRightAlternateKeyMask): New define.
4061 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4062 ns_right_alternate_modifier isn't Qleft.
4063 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4064 as emacs modifier for NSRightAlternateKeyMask.
4065 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4066
355cdaf3
LMI
40672010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4068
4069 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4070 gnutls is ready, return EAGAIN as the errno.
4071
4c620157
DN
40722010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4073
edfd76ce
DN
4074 * vm-limit.c:
4075 * unexhp9k800.c:
4076 * unexelf.c:
4077 * unexaix.c:
4078 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4079
a4daeecf
DN
4080 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4081 (PROFILING_LDFLAGS): Remove, not needed anymore.
4082
01c35094 4083 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
4084 (CRT_DIR): Move near potential user.
4085 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 4086
4c620157
DN
4087 * sysdep.c (LPASS8): Remove, unused.
4088 (emacs_ospeed): Change from being a global to a local in the only
4089 user: init_baud_rate.
4090
b845653d
LMI
40912010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4092
4093 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 4094 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 4095 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 4096 gnutls_read. This allows us to actually read lots of data from
b845653d 4097 the GnuTLS stream.
2e6c74c5
LMI
4098 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4099 According to the documentation, this is correct, and it seems to
4100 make things work.
b845653d 4101
3625b3e2
CY
41022010-10-09 Chong Yidong <cyd@stupidchicken.com>
4103
4104 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4105
8b1c619f
MA
41062010-10-08 Michael Albinus <michael.albinus@gmx.de>
4107
4108 * keyboard.c: Revert last change; it was not intended to be
4109 synchronized with the trunk.
4110
93d50df8
KH
41112010-10-08 Kenichi Handa <handa@m17n.org>
4112
2b7c9342 4113 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 4114
4628bef1 41152010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
4116
4117 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4118 (Fdbus_init_bus): ... here. (Bug#7113)
4119
4628bef1 41202010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
4121
4122 * buffer.c (before-change-functions, after-change-functions):
4123 Three-year overdue doc fix following 2007-08-13 change.
4124
4628bef1 41252010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
4126
4127 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4128 eol-format, inherit from the system's default.
4129 (complement_process_encoding_system): Make a new coding system
4130 inherit the original eol-format.
4131
4628bef1 41322010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
4133
4134 * coding.c (complement_process_encoding_system): New function.
4135
4136 * coding.h (complement_process_encoding_system): Extern it.
4137
4138 * callproc.c (Fcall_process): Complement the coding system for
4139 encoding arguments.
4140 (Fcall_process_region): Complement the coding system for encoding
4141 the input to the process.
4142
4143 * process.c (Fstart_process): Complement the coding system for
4144 encoding arguments.
4145 (send_process): Complement the coding system for encoding what
4146 sent to the process.
4147
4628bef1 41482010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
4149
4150 * xfont.c (xfont_open): Fix setting of font->average_width from
4151 :avgwidth property (Bug#7123).
4152
4628bef1 41532010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
4154
4155 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4156 is more portable.
4157
4158 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 4159 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
4160 has not defined SIGIO.
4161
389454fb
CY
41622010-10-08 Chong Yidong <cyd@stupidchicken.com>
4163
4164 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4165 draw the outermost line using the black relief, for legibility.
4166 Omit drawing the four corner pixels.
4167
51b403bd
CY
41682010-10-04 Chong Yidong <cyd@stupidchicken.com>
4169
4170 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4171 (read_key_sequence): Inline echo_prompt.
4172 (echo_dash): Add a dash only if key is continued (Bug#7137).
4173
3e6ae1a4
DN
41742010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4175
4176 Remove O_RDONLY, O_WRONLY definitions, not needed.
4177 * unexcoff.c:
4178 * lread.c:
4179 * fileio.c:
4180 * doc.c:
4181 * callproc.c:
4182 * alloc.c:
4183 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4184
c1ae068b
LMI
41852010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4186
4187 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4188
4189 * gnutls.c: Add property list symbol holders.
4190 (emacs_gnutls_handshake): Clarify how sockets are passed to
4191 GnuTLS.
4192 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4193 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4194 and keyfiles to be a list of file names. Default to "NORMAL" for
4195 the priority string. Improve logging.
4196
e2afe435
GM
41972010-10-03 Glenn Morris <rgm@gnu.org>
4198
4199 * fileio.c (Vdirectory_sep_char): Remove.
4200
dd5ecd6b
DN
42012010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4202
b5437a05
DN
4203 * termhooks.h: Remove #ifdef CONSP.
4204
4777478a
DN
4205 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4206
a3d5088d
DN
4207 Include <fcntl.h> unconditionally.
4208 * termcap.c:
4209 * sysdep.c:
4210 * lread.c:
4211 * keyboard.c:
4212 * filelock.c:
4213 * fileio.c:
4214 * doc.c:
4215 * callproc.c:
4216 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4217 does it.
4218
82719735
DN
4219 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4220
9de940b5
DN
4221 * sysdep.c (flush_pending_output): Remove code, does not do
4222 anything on any platform.
4223
57507bf8 4224 Remove unused code.
bba3e508
SM
4225 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4226 Remove select emulation, all systems support select.
57507bf8
DN
4227 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4228 * process.c (create_process): Remove #if 0 code.
4229
dd5ecd6b
DN
4230 Remove unused arguments for unexec.
4231 The third one is never used, and the last two are always passed as zero.
4232 * emacs.c (unexec): Add declaration.
4233 (Fdump_emacs): Only pass the first two arguments to unexec.
4234 Simplify #ifdef.
4235 * unexw32.c (unexec):
4236 * unexsol.c (unexec):
4237 * unexhp9k800.c (unexec):
4238 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4239 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4240 (find_section): Use const.
4241 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4242 (unexec_error): Declare it NO_RETURN.
4243 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4244 it as an argument, remove data_start and entry_address arguments, unused.
4245 (unexec): Remove bss_start, data_start and
4246 entry_address arguments.
4247 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4248 it as an argument, remove data_start and entry_address arguments, unused.
4249 (unexec): Remove bss_start, data_start and
4250 entry_address arguments.
4251
74f1829d
JB
42522010-10-03 Juanma Barranquero <lekktu@gmail.com>
4253
7f467e14
JB
4254 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4255
74f1829d
JB
4256 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4257 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4258 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4259 Fix typos in docstrings.
4260 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4261 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4262
6926550f
CY
42632010-10-03 Chong Yidong <cyd@stupidchicken.com>
4264
4265 * keyboard.c (command_loop_1): Make sure the mark is really alive
4266 before using it (Bug#7044).
4267
54b65f7b
JB
42682010-10-02 Juanma Barranquero <lekktu@gmail.com>
4269
4270 * makefile.w32-in (tags): Rename target to full-tags.
4271
383ebd15
EZ
42722010-10-02 Eli Zaretskii <eliz@gnu.org>
4273
4274 * emacs.c (main): Remove !WINDOWSNT conditional.
4275 (Fkill_emacs): Don't mention exemption on MS-Windows.
4276
9c524fcb
GM
42772010-10-02 Glenn Morris <rgm@gnu.org>
4278
3226d6ca
GM
4279 * character.c (Fchar_bytes): Remove obsolete function.
4280 (syms_of_character): Remove Schar_bytes.
4281
9c524fcb
GM
4282 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4283 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4284 in batch-mode.
4285 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4286 (kill-emacs-hook): Doc fix.
4287
1b217849
LMI
42882010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4289
4290 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4291 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4292 renamed to reflect that these are the libxml functions.
4293
54cc6a83
EZ
42942010-10-01 Eli Zaretskii <eliz@gnu.org>
4295
0ebf79de
EZ
4296 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4297 screen dimensions in tty->Wcm.
4298
54cc6a83
EZ
4299 * xdisp.c (set_cursor_from_row): When the row is truncated and
4300 point is outside the range of displayed characters, position the
4301 cursor inside the scroll margin. (Bug#6349)
4302
321401d1
DN
43032010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4304
4cacd822
DN
4305 Do not include stdlib.h and string.h, config.h does it.
4306 * xfont.c:
4307 * w32term.c:
4308 * w32reg.c:
4309 * w32inevt.c:
4310 * w32heap.c:
4311 * w32console.c:
4312 * w16select.c:
4313 * unexsol.c:
4314 * term.c:
4315 * sound.c:
4316 * scroll.c (m):
4317 * gtkutil.c:
4318 * font.c:
4319 * filelock.c:
4320 * fileio.c:
4321 * dosfns.c:
4322 * dbusbind.c:
4323 * bidi.c:
4324 * callproc.c:
4325 * process.c:
4326 * msdos.c:
4327 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4328
bba3e508
SM
4329 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4330 defines it.
0781e7ab 4331
9bf58201
DN
4332 * process.c: Move #include <pty.h> earlier.
4333 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4334 (pty_name): Move definition later.
4335
088dcc3e
DN
4336 * nsselect.m (syms_of_nsselect):
4337 * nsmenu.m (syms_of_nsmenu):
4338 * nsfns.m (syms_of_nsfns):
4339 * msdos.c (syms_of_msdos):
4cacd822 4340
088dcc3e
DN
4341 * image.c (syms_of_image):
4342 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4343
321401d1
DN
4344 * point.h: Remove, unused.
4345
73077a9a
EZ
43462010-10-01 Eli Zaretskii <eliz@gnu.org>
4347
4348 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4349 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4350 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4351
55e572ef
DN
43522010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4353
4354 * xml.c (parse_string): Use const.
4355
d4b6d95d
LMI
43562010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4357
ef1b0ba7
SM
4358 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4359 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4360 the level to 8 to produce more useful backtraces for bug reports.
4361
e4b6db12
DN
43622010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4363
4364 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4365
1becef93
JB
43662010-09-30 Juanma Barranquero <lekktu@gmail.com>
4367
4368 * w32console.c (vga_stdcolor_name): Remove unused function;
4369 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4370
df7fcaff
LMI
43712010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4372
bac5cef8
LMI
4373 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4374 (Fgnutls_boot): Start the handshake.
4375 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4376 (Fgnutls_boot): Remove some debugging messages.
4377 Change indentation throughout to use the Emacs style.
4378 (emacs_gnutls_handshake): Cast the fds to something that's
4379 possibly the expected length.
4380 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4381
df7fcaff
LMI
4382 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4383
4384 * process.c (make_process): Set the gnutls_p field to zero by
4385 default.
4386 (read_process_output): Always call the gnutls_read function if the
4387 stream is a gnutls stream.
4388 (send_process): Ditto for writes.
4389
4390 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4391 or write anything until the state is GNUTLS_STAGE_READY.
4392 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4393
d585695f
EZ
43942010-09-29 Eli Zaretskii <eliz@gnu.org>
4395
af7ef32d
EZ
4396 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4397 NEUTRAL_DIR.
4398 (handle_invisible_prop, iterate_out_of_display_property)
4399 (next_element_from_buffer): If bidi_it.first_elt is set, call
4400 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4401 (Bug#7128)
4402
d585695f
EZ
4403 * print.c (print_object): Fix format string and argument types for
4404 printing a Lisp_Misc_Marker.
4405
4406 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4407 (load_overlay_strings, get_overlay_strings_1)
4408 (get_overlay_strings, forward_to_next_line_start)
4409 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4410 (get_next_display_element, next_element_from_string)
4411 (next_element_from_c_string, next_element_from_buffer)
4412 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4413 (message_dolog, message_log_check_duplicate, message2_nolog)
4414 (message3, message3_nolog, vmessage, set_message, set_message_1)
4415 (hscroll_window_tree, text_outside_line_unchanged_p)
4416 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4417 (find_last_unchanged_at_beg_row)
4418 (find_first_unchanged_at_end_row, row_containing_pos)
4419 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4420 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4421 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4422
4423 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4424 (row_containing_pos): Adjust prototype.
4425
4426 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4427 (message2_nolog, set_message): Adjust prototypes.
4428
a6f3211f
SM
44292010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4430
4431 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4432 (Fgnutls_boot): Use SDATA.
4433 (Fgnutls_handshake): Remove unused var `max_log_level'.
4434
e0720500
MA
44352010-09-27 Michael Albinus <michael.albinus@gmx.de>
4436
11a5af7c 4437 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4438 (Bug#7113)
4439
d8a4b27a
J
44402010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4441
42d3022b
J
4442 * xgselect.c (xg_select): Clear file descriptors not set from
4443 rfds and wfds.
4444
d8a4b27a
J
4445 * process.c (wait_reading_process_output): Add missing FD_CLR
4446 for write_mask (must mirror connect_wait_mask).
4447
8ed70bf3
LMI
44482010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4449
4450 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4451 prefix.
4452 (Fgnutls_boot): Use changed process members. Use log level with a
4453 function parameter to set it. Bring back Emacs-level debugging
4454 messages at log level 1 and 2.
4455
4456 * process.c (make_process): Initialize gnutls_log_level.
4457
4458 * process.h: Add gnutls_log_level and rename x509_cred and
4459 anon_cred to have the gnutls_ prefix for consistency.
4460
4461 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4462
bedf4aab
JB
44632010-09-27 Juanma Barranquero <lekktu@gmail.com>
4464
4465 * w32.c (g_b_init_get_sid_identifier_authority)
4466 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4467 Remove, not used.
4468 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4469 (init_winsock): Remove useless assignment.
4470 (open_process_token, get_token_information, lookup_account_sid)
4471 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4472 (get_security_descriptor_owner, get_security_descriptor_group)
4473 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4474 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4475 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4476 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4477 (unc_volume_file_attributes, convert_from_time_t)
4478 (create_toolhelp32_snapshot, process32_first, process32_next)
4479 (open_thread_token, impersonate_self, revert_to_self)
4480 (get_process_memory_info, get_process_working_set_size)
4481 (global_memory_status, global_memory_status_ex, socket_to_fd)
4482 (shutdown_handler): Make static.
4483
08609ffd
MA
44842010-09-27 Michael Albinus <michael.albinus@gmx.de>
4485
4486 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4487 (xd_pending_messages): Functions removed.
4488 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4489 order to be compatible with add_read_fd. Determine bus from data,
4490 and call xd_read_message just for this bus.
4491 (xd_add_watch): Use xd_read_queued_messages as callback function.
4492 Add data.
4493
4494 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4495
d2e9d0bb
LMI
44962010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4497
ef1b0ba7 4498 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4499 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4500
4be9765d
KH
45012010-09-27 Kenichi Handa <handa@m17n.org>
4502
4503 These changes are to remove restriction on the number of glyphs in
4504 one composition.
4505
4506 * dispextern.h (struct glyph): Change the member "slice" to union.
4507 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4508 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4509
4510 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4511 instead of glyph->slice.
4512 (marginal_area_string): Likewise.
4513
4514 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4515 glyph->u.cmp.
4516 (append_composite_glyph): Likewise.
4517
4518 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4519 glyph->u.cmp.
4520 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4521 (append_composite_glyph): Likewise.
4522 (fill_image_glyph_string): Use glyph->slice.img instead of
4523 glyph->slice.
4524 (append_glyph, produce_image_glyph, append_stretch_glyph)
4525 (note_mouse_highlight): Likewise.
4526
3fad2ad2
J
45272010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4528
bf05eed6
J
4529 * process.c (add_keyboard_wait_descriptor)
4530 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4531 (wait_reading_process_output): Don't pass write_mask to select
4532 if SELECT_CANT_DO_WRITE_MASK is defined.
4533 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4534
3fad2ad2
J
4535 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4536 (delete_write_fd): Declare.
4537
4538 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4539 (write_mask): New variable.
ef1b0ba7 4540 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4541 (fd_callback_info): New variable.
70e31436
JB
4542 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4543 New functions.
3fad2ad2
J
4544 (Fmake_network_process): FD_SET write_mask.
4545 (deactivate_process): FD_CLR write_mask.
4546 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4547 check_connect removed. check_write is new. Remove references to gpm.
4548 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4549 NON_BLOCKING_CONNECT) instead of Connecting.
4550 Loop over file descriptors and call callbacks in fd_callback_info
4551 if file descriptor is ready for I/O.
4552 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4553 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4554 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4555 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4556 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4557 (init_process): Initialize write_mask and fd_callback_info.
4558
4559 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4560
4561 * dbusbind.c: Include process.h.
4562 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4563 (xd_read_message_1): New functions.
70e31436
JB
4564 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4565 Handle watch for both read and write.
3fad2ad2
J
4566 (Fdbus_init_bus): Also register xd_toggle_watch.
4567 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4568 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4569 to dbus_connection_flush.
70e31436 4570 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4571 Call xd_read_message_1 until status is COMPLETE.
4572
dce4c2ac
DN
45732010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4574
4575 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4576 (init_tty): Reorder code to reduce the number of #ifdefs.
4577 No code changes.
dce4c2ac 4578
8af55556
TZ
45792010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4580
4581 * process.h: Set up GnuTLS support.
4582
4583 * process.c (make_process, Fstart_process)
4584 (read_process_output, send_process): Set up GnuTLS support for
4585 process input/output file descriptors.
4586
4587 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4588
4589 * gnutls.c: The source code for GnuTLS support in Emacs.
4590
4591 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4592
4593 * config.in: Set up GnuTLS support.
4594
4595 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4596 (obj, LIBES): Set up GnuTLS support.
4597
83e245c4
JB
45982010-09-26 Juanma Barranquero <lekktu@gmail.com>
4599
4600 * w32.c (get_emacs_configuration_options): Fix previous change.
4601
d24ec09a
CY
46022010-09-25 Chong Yidong <cyd@stupidchicken.com>
4603
4604 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4605 alive before using it (Bug#6977).
4606
b7bdc47c
LMI
46072010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4608
a952d5f3
LMI
4609 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4610
4611 * dispextern.h: EMACS_INT/int fixup.
4612
4613 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4614 fixup.
4615
b7bdc47c
LMI
4616 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4617
41118bd3
EZ
46182010-09-25 Eli Zaretskii <eliz@gnu.org>
4619
2452438f
EZ
4620 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4621 (Fselect_window, window_scroll_pixel_based)
4622 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4623 Use EMACS_INT for buffer positions.
4624
4625 * textprop.c (validate_interval_range, interval_of)
4626 (property_change_between_p, Fadd_text_properties)
4627 (set_text_properties_1, Fremove_text_properties)
4628 (Fremove_list_of_text_properties, Ftext_property_any)
4629 (Ftext_property_not_all, copy_text_properties)
4630 (text_property_list, extend_property_ranges)
4631 (verify_interval_modification): Use EMACS_INT for buffer
4632 positions.
4633
f877c546
EZ
4634 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4635 for buffer positions.
4636
4637 * process.c (read_process_output, send_process)
4638 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4639 and string positions and size.
4640
da43f021
EZ
4641 * print.c (print_object, print_string, strout): Use EMACS_INT for
4642 string indices.
4643
4644 * minibuf.c (string_to_object): Use EMACS_INT for string position
4645 and size.
4646
4647 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4648
4649 * lread.c <read_from_string_index, read_from_string_index_byte>
4650 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4651 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4652 buffer positions and string length.
4653
41118bd3
EZ
4654 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4655 EMACS_INT.
4656 (echo_truncate, adjust_point_for_property, read_char)
4657 (gen_help_event, make_lispy_event, modify_event_symbol)
4658 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4659 for buffer positions and string length.
4660
4661 * keyboard.h (gen_help_event): Adjust prototype.
4662
4663 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4664
4665 * commands.h <last_point_position>: Declare EMACS_INT.
4666
4667 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4668 (truncate_echo_area): Accept EMACS_INT argument.
4669
4670 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4671
4672 * lisp.h (truncate_echo_area): Adjust prototype.
4673
4674 * composite.c (composition_adjust_point): Return EMACS_INT.
4675
4676 * composite.h (composition_adjust_point): Adjust prototype.
4677
ba3033ee
JB
46782010-09-25 Juanma Barranquero <lekktu@gmail.com>
4679
4680 * process.c (Fmake_network_process): When arg :host is 'local,
4681 use address 127.0.0.1, not name "localhost". (Bug#6781)
4682
4f3a2f8d
EZ
46832010-09-24 Eli Zaretskii <eliz@gnu.org>
4684
5816888b
EZ
4685 * indent.c (Fcurrent_indentation, indented_beyond_p)
4686 (compute_motion): Use EMACS_INT for buffer position variables.
4687
4688 * lisp.h (indented_beyond_p): Adjust prototype.
4689
4690 * buffer.c (overlay_strings): Return EMACS_INT.
4691
4692 * buffer.h (overlay_strings): Adjust prototype.
4693
4694 * region-cache.c (pp_cache): Adjust format to arguments.
4695
4696 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4697 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4698 (verror): Use EMACS_INT for size of allocated buffer.
4699
ace1712c
EZ
4700 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4701 positions.
4702
4703 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
4704 (set_cursor_from_row, find_first_unchanged_at_end_row):
4705 Use EMACS_INT for buffer positions.
ace1712c 4706
f5276b75 4707 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
4708
4709 * dispnew.c (increment_matrix_positions)
4710 (increment_row_positions, copy_glyph_row_contents)
4711 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4712 positions.
4713
4714 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
4715 (increment_matrix_positions, increment_row_positions):
4716 Adjust prototypes.
ace1712c
EZ
4717
4718 * data.c (Faref, Faset): Use EMACS_INT for string length and
4719 positions.
4720
4721 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4722 characters to insert.
4723
4724 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4725 position and size.
4726
4f3a2f8d
EZ
4727 * syntax.c (scan_words, update_syntax_table)
4728 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
4729 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4730 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
4731
4732 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4733
4734 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4735 positions.
4736
db063399
LMI
47372010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4738
f0812d35
LMI
4739 * scroll.c (calculate_scrolling, line_ins_del)
4740 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4741 conversion.
4742
f5c7fc27
LMI
4743 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4744 (region_cache_backward, region_cache_forward)
4745 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4746 conversion.
4747
db063399
LMI
4748 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4749
4750 * eval.c (verror): Fix EMACS_INT/int conversion.
4751
07914cd0 4752 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
4753 (print_preprocess, print_check_string_charset_prop)
4754 (print_object): Fix EMACS_INT/int conversion.
4755
4756 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4757
e6d4aefa
EZ
47582010-09-24 Eli Zaretskii <eliz@gnu.org>
4759
69481da7
EZ
4760 * callproc.c (Fcall_process): Use EMACS_INT for count of
4761 characters read from the subprocess.
4762
61bfec98
EZ
4763 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4764 positions.
4765 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4766 positions.
4767
145582a0
EZ
4768 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4769 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4770 length.
4771 (advance_to_char_boundary, Fset_buffer_multibyte)
4772 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4773 (overlay_touches_p, record_overlay_string, overlay_strings)
4774 (recenter_overlay_lists, fix_start_end_in_overlays)
4775 (modify_overlay, Fmove_overlay, report_overlay_modification)
4776 (evaporate_overlays): Use EMACS_INT for buffer positions.
4777
bba3e508
SM
4778 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4779 Adjust prototypes.
145582a0 4780
446470a9
EZ
4781 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4782 positions.
4783
e6d4aefa
EZ
4784 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4785 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4786 (Fsubstring_no_properties, substring_both, Ffillarray)
4787 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4788 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4789 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4790 (Fmd5): Use EMACS_INT for buffer and string positions and length
4791 variables and arguments.
4792
4793 * lisp.h (substring_both): Adjust prototype.
4794
eb652396
JB
47952010-09-24 Juanma Barranquero <lekktu@gmail.com>
4796
4797 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4798 * w32fns.c (clipboard_sequence_fn): Don't declare.
4799 (globals_of_w32fns): Don't initialize it.
4800
266a86bd 48012010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
4802
4803 * syntax.c (back_comment): Detect the case where a 1-char comment
4804 starter is also the 2nd char of a 2-char comment ender.
4805
266a86bd 48062010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
4807
4808 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4809
40283062
LMI
48102010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4811
db063399
LMI
4812 * eval.c (verror): EMACS_INT/int cleanup.
4813
faf8b5bc
LMI
4814 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4815 unwind_protect more than 2GB worth of functions.
4816
4817 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4818
40283062
LMI
4819 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4820 string and avoid compiler warnings.
4821 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4822 all users.
4823
4824 * lread.c (oblookup): EMACS_INT/int cleanup.
4825
4826 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4827
fe3537c3
EZ
48282010-09-23 Eli Zaretskii <eliz@gnu.org>
4829
4830 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4831
4832 * lisp.h (clip_to_bounds): Adjust prototype.
4833
4834 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4835
0350982f
LMI
48362010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4837
84c9ce05
LMI
4838 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4839
4840 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4841
4842 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4843 cleanup.
4844
0350982f
LMI
4845 * lisp.h: Change the definition of all marker.c functions that
4846 take and return buffer stuff to be EMACS_INT instead of int.
4847
4848 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4849 (buf_charpos_to_bytepos, bytepos_to_charpos)
4850 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4851 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4852 for all buffer positions.
4853
c50bd0d2
CY
48542010-09-23 Chong Yidong <cyd@stupidchicken.com>
4855
4856 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4857 (split_interval_right, find_interval, next_interval)
4858 (delete_node, delete_interval, interval_deletion_adjustment)
4859 (adjust_intervals_for_deletion, merge_interval_right)
4860 (merge_interval_left, graft_intervals_into_buffer)
4861 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4862
4863 * intervals.h (traverse_intervals): Update prototype.
4864
14162469
EZ
48652010-09-23 Eli Zaretskii <eliz@gnu.org>
4866
c098fdb8
EZ
4867 * indent.c (compute_motion): Use EMACS_INT for arguments to
4868 region_cache_forward.
4869
bba3e508
SM
4870 * region-cache.c (struct boundary, struct region_cache):
4871 Use EMACS_INT for positions.
c098fdb8
EZ
4872 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4873 (delete_cache_boundaries, set_cache_region)
4874 (invalidate_region_cache, know_region_cache)
bba3e508
SM
4875 (region_cache_forward, region_cache_backward, pp_cache):
4876 Use EMACS_INT for buffer positions.
c098fdb8
EZ
4877
4878 * region-cache.h (know_region_cache, invalidate_region_cache)
4879 (region_cache_forward, region_cache_backward): Adjust prototypes.
4880
4881 * search.c (string_match_1, fast_c_string_match_ignore_case)
4882 (looking_at_1, scan_buffer, scan_newline)
4883 (find_next_newline_no_quit, find_before_next_newline)
4884 (search_command, trivial_regexp_p, search_buffer, simple_search)
4885 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4886 and string positions and length.
4887
caefdbe7
EZ
4888 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4889 (find_before_next_newline): Adjust prototypes.
c098fdb8 4890
29cdc13e
EZ
4891 * editfns.c (transpose_markers, update_buffer_properties)
4892 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4893 (get_pos_property, Fconstrain_to_field)
4894 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4895 (Fchar_after, Fchar_before, Finsert_char)
4896 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
4897 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4898 Use EMACS_INT for buffer and string position variables.
c098fdb8 4899 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
4900
4901 * lisp.h (clip_to_bounds): Adjust prototype.
4902
e79123aa
EZ
4903 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4904 (balance_an_interval, split_interval_right, split_interval_left)
4905 (find_interval, next_interval, update_interval)
4906 (adjust_intervals_for_insertion, delete_node, delete_interval)
4907 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4908 (offset_intervals, merge_interval_right, merge_interval_left)
4909 (graft_intervals_into_buffer, adjust_for_invis_intang)
4910 (move_if_not_intangible, get_local_map, copy_intervals)
4911 (copy_intervals_to_string, compare_string_intervals)
4912 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 4913 and for interval tree size.
e79123aa
EZ
4914
4915 * intervals.h (traverse_intervals, split_interval_right)
4916 (split_interval_left, find_interval, offset_intervals)
4917 (graft_intervals_into_buffer, copy_intervals)
4918 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4919 (update_interval): Adjust prototypes.
4920
579c18d0
EZ
4921 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4922 Use EMACS_INT for buffer position variables and arguments.
4923
4924 * composite.c (get_composition_id, find_composition)
4925 (run_composition_function, compose_text)
4926 (composition_gstring_width, autocmp_chars)
4927 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4928 for buffer positions and string length variables and arguments.
4929
4930 * composite.h (get_composition_id, find_composition, compose_text)
4931 (composition_gstring_width): Adjust prototypes.
4932
4933 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4934
bba3e508
SM
4935 * xdisp.c (store_mode_line_noprop, display_mode_element):
4936 Use EMACS_INT for string positions.
579c18d0
EZ
4937
4938 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4939 position arguments.
4940
4941 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
4942
4943 * character.c (parse_str_as_multibyte, str_as_multibyte)
4944 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 4945 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
4946 (strwidth, lisp_string_width, multibyte_chars_in_text):
4947 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4948
4949 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 4950 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
4951 (c_string_width, strwidth, lisp_string_width):
4952 Adjust prototypes.
14162469 4953
579c18d0
EZ
4954 * font.c (font_intern_prop): Use EMACS_INT for string length
4955 variables.
4956
4957 * font.c (font_intern_prop): Use EMACS_INT for string length
4958 variables.
4959
14162469
EZ
4960 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4961 variables.
4962
4963 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4964 (Fmake_string): Protect against too large strings.
4965 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4966 (live_misc_p): Use ptrdiff_t instead of int for pointer
4967 differences.
4968 (string_bytes, check_sblock, check_string_free_list)
4969 (allocate_string_data, compact_small_strings, Fmake_string)
4970 (Fmake_bool_vector, make_string, make_unibyte_string)
4971 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4972 (make_specified_string_string, Fmake_list, Fmake_vector):
4973 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4974 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4975 (Fpurecopy): Use EMACS_INT for string size.
4976 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4977 for vector size.
4978
4979 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4980 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4981 (make_pure_string, string_bytes, check_point_in_composition):
4982 Adjust prototypes.
14162469 4983
c8a66ab8
EZ
49842010-09-22 Eli Zaretskii <eliz@gnu.org>
4985
4986 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4987 (check_translation): Use EMACS_INT for buffer positions and
4988 length.
4989
4990 * undo.c (record_marker_adjustment, record_delete)
4991 (record_change, record_point, record_insert)
4992 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4993 buffer positions.
4994
4995 * lisp.h (record_marker_adjustment, record_delete)
4996 (record_change, record_point, record_insert)
4997 (record_property_change, Fprimitive_undo): Adjust prototypes.
4998
38c54d9d
JB
49992010-09-22 Juanma Barranquero <lekktu@gmail.com>
5000 Eli Zaretskii <eliz@gnu.org>
5001
5002 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5003
413d18e7
EZ
50042010-09-22 Eli Zaretskii <eliz@gnu.org>
5005
5006 * minibuf.c (Fminibuffer_contents)
5007 (Fminibuffer_contents_no_properties)
5008 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5009 positions.
5010
5011 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5012 mark.
5013
5014 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5015 (allocate_string_data): Accept EMACS_INT for string length.
5016
5017 * editfns.c (Ffield_string, Ffield_string_no_properties)
5018 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5019 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5020 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5021 (Ffield_end): Use EMACS_INT for buffer positions.
5022
5023 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5024 point with mark.
5025
5026 * lisp.h (allocate_string_data, make_uninit_string)
5027 (make_uninit_multibyte_string, make_buffer_string)
5028 (make_buffer_string_both): Adjust prototypes.
5029
4b9832a6
CY
50302010-09-22 Chong Yidong <cyd@stupidchicken.com>
5031
5032 * xml.c: Switch to GNU indentation.
5033 (make_dom): Change parse tree format to match xml.el.
5034 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5035 (Fxml_parse_string_internal): Rename from xml-parse-string.
5036
86282aab
KH
50372010-09-22 Kenichi Handa <handa@m17n.org>
5038
5039 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5040 only if we are not at a composition.
5041 (set_iterator_to_next): Give it->end_charpos to
5042 composition_compute_stop_pos.
5043 (set_iterator_to_next, next_element_from_buffer): Likewise.
5044
5045 * dispnew.c (buffer_posn_from_coords): Fix position when the
5046 current display element is a grapheme cluster in bidi-reordered
5047 region.
5048
840b985a
AR
50492010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5050
5051 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5052 the regions may overlap.
5053
5bc88f4b
JB
50542010-09-21 Juanma Barranquero <lekktu@gmail.com>
5055
5056 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5057
92bc9a36
DN
50582010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5059
d19e096e
DN
5060 * emacs.c: Do not include sys/ioctl.h, not needed.
5061
92bc9a36
DN
5062 * doprnt.c: Do not include stdlib.h, config.h does it.
5063 Move #include before macro definition.
5064
15f844ac
DN
50652010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5066
48e24408
DN
5067 * Makefile.in (temacs): Link using $(CC) not $(LD).
5068 (LD_FIRSTFLAG): Define using autoconf.
5069 (LD): Remove.
5070
65539506
DN
5071 Remove HAVE_TERMIOS definitions.
5072 * s/usg5-4-common.h (HAVE_TERMIOS):
5073 * s/template.h (HAVE_TERMIOS):
5074 * s/gnu-linux.h (HAVE_TERMIOS):
5075 * s/darwin.h (HAVE_TERMIOS):
5076 * s/cygwin.h (HAVE_TERMIOS):
5077 * s/bsd-common.h (HAVE_TERMIOS):
5078 * s/aix4-2.h (HAVE_TERMIOS):
5079 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5080 defined on all non-MS platforms.
5081 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5082
15f844ac
DN
5083 * xterm.c (xt_action_hook): Use const.
5084
7d701334
JB
50852010-09-20 Juanma Barranquero <lekktu@gmail.com>
5086
5087 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5088 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5089 (gethostname) [!HAVE_SOCKETS]: Remove.
5090 (SOCK_REPLACE_HANDLE): Remove macro.
5091 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5092 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5093 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5094 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5095
f3ec267a
EZ
50962010-09-18 Eli Zaretskii <eliz@gnu.org>
5097
5098 * deps.mk (xml.o): Add dependencies.
5099
93acd23d
JB
5100 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5101 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
5102
5103 * bidi.c (bidi_paragraph_init): Accept an additional argument
5104 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5105 search back until a paragraph with a strong directional character
5106 is found, and use that to determine paragraph's base direction.
5107
5108 * dispextern.h (bidi_paragraph_init): Update prototype.
5109
69e847be
EZ
51102010-09-17 Eli Zaretskii <eliz@gnu.org>
5111
5112 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5113 of w32api >= 3.15. (Bug#6989)
5114
283357a7
LMI
51152010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5116
5117 * process.c (wait_reading_process_output): Don't message about
5118 accept-process-output unless the time limit really is zero.
5119
4ddb20d6
SM
51202010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5121
5122 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5123 int/Lisp_Object mixup).
5124
e24ad6dd
J
51252010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5126
5127 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5128 not HELP.
5129
fb0cf781
J
51302010-09-17 Stephen Berman <stephen.berman@gmx.net>
5131
5132 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5133 bar's pixel width to Lisp (Bug#7048).
5134
4ddb20d6
SM
51352010-09-14 Juanma Barranquero <lekktu@gmail.com>
5136
5137 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 5138
318a04c6
J
51392010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5140
5141 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5142 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5143
78a21772
KH
51442010-09-17 Kenichi Handa <handa@m17n.org>
5145
5146 * ftfont.c (ftfont_check_otf): Fix previous change.
5147
fa3f6039
KH
51482010-09-14 Kenichi Handa <handa@m17n.org>
5149
5150 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5151 existence of GSUB or GPOS.
5152
2b5491fa
JB
51532010-09-14 Juanma Barranquero <lekktu@gmail.com>
5154
5155 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5156
c97c655f
LMI
51572010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5158
ef1b0ba7 5159 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
5160 what it does.
5161 (parse_string): Return nil when the document can't be parsed.
5162
6664fc59 51632010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
5164
5165 * xterm.c (get_current_vm_state): New function.
5166 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5167 want_fullscreen so set_wm_state calls are few (Bug#7013).
5168 (x_handle_net_wm_state): Move code to get_current_vm_state and
5169 call that function.
5170
6664fc59 51712010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
5172
5173 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5174
6664fc59 51752010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
5176
5177 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5178 we may use designation or locking-shift.
5179
6664fc59 51802010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
5181
5182 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5183 sequence when the source is multibyte.
5184
1da70e99
AS
51852010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5186
6664fc59
JB
5187 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5188 Don't make first argument optional. Doc fix.
1da70e99 5189
26632d8d
LMI
51902010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5191
5192 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5193 parameters for the doc string.
5194
21fa8e37
LMI
51952010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5196
5197 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5198
5616cc54
SM
51992010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5200
5201 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5202 (syms_of_fns): Don't defsubr Sy_or_n_p.
5203 * lisp.h: Don't declare Fy_or_n_p.
5204 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5205
381408e2
LMI
52062010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5207
5208 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5209
52102010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5211
5212 * xml.c: New file.
5213 (Fhtml_parse_buffer): New function to interface to the libxml2
5214 html parsing function.
5215
733946e7
JB
52162010-09-05 Juanma Barranquero <lekktu@gmail.com>
5217
5218 * biditype.h: Regenerate.
5219
7574650a
AS
52202010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5221
5222 * nsimage.m (ns_load_image): Check argument types.
5223
5224 * image.c: Remove all uses of gcpro.
5225 (xpm_load): Check all lisp types.
5226 (pbm_load): Likewise.
5227 (png_load): Likewise.
5228 (jpeg_load): Likewise.
5229 (tiff_load): Likewise.
5230 (gif_load): Likewise.
5231 (imagemagick_load_image): Likewise.
5232 (imagemagick_load): Likewise.
5233 (svg_load): Likewise.
5234 (gs_load): Likewise.
5235
6e6b8e25
EZ
52362010-09-04 Eli Zaretskii <eliz@gnu.org>
5237
bba3e508
SM
5238 * w32uniscribe.c (uniscribe_shape): Update commentary.
5239 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5240 hold them in the logical order.
5241 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5242 return glyph codes in the logical order.
5243
dbfe4532
AS
52442010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5245
5246 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5247 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5248 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5249
6d7cc563
JD
52502010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5251
5252 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5253
5254 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5255
5256 * xselect.c: Remove declaration of cut-buffer objects and functions.
5257 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5258 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5259 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5260 (Fx_rotate_cut_buffers_internal): Remove.
5261 (syms_of_xselect): Remove defsubr of above.
5262 Remove intern of QCUT_BUFFERn.
5263
8f4e9110
SM
52642010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5265
5266 * cmds.c (Vblink_paren_function): Remove.
5267 (internal_self_insert): Make it insert N chars at a time.
5268 Don't call blink-paren-function.
5269 (Fself_insert_command): Adjust accordingly.
5270 (syms_of_cmds): Don't declare blink-paren-function.
5271
d419e1d9
KH
52722010-08-31 Kenichi Handa <handa@m17n.org>
5273
5274 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5275 characters.
5276
5277 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5278 (produce_glyphs): Don't set it->char_to_display here.
5279 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5280 (produce_special_glyphs): Set temp_it.char_to_display before
5281 calling produce_glyphs.
5282
5283 * xdisp.c (get_next_display_element): Set it->char_to_display
5284 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5285 characters.
5286 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5287 calling PRODUCE_GLYPHS.
5288 (append_space_for_newline): Save and store it->char_to_display.
5289 Set it->char_to_display before calling PRODUCE_GLYPHS.
5290 (extend_face_to_end_of_line): Set it->char_to_display before
5291 calling PRODUCE_GLYPHS.
5292 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5293 character to its byte value.
5294 (get_char_glyph_code): New function.
5295 (produce_stretch_glyph): Set it2.char_to_display too before
5296 calling x_produce_glyphs.
5297 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5298 non-ASCII characters. Don't set it->char_to_display here.
5299 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5300 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5301
b819f760
SM
53022010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5303
5304 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5305
07fa68a7
CY
53062010-08-31 Chong Yidong <cyd@stupidchicken.com>
5307
5308 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5309
cd196f12
SM
53102010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5311
5312 * marker.c (Fcopy_marker): Make the first arg optional.
5313
49a752bb
KH
53142010-08-30 Kenichi Handa <handa@m17n.org>
5315
5316 * composite.c (composition_update_it): Fix computing of
5317 cmp_it->width.
5318
769ae9e1
KH
53192010-08-29 Kenichi Handa <handa@m17n.org>
5320
9e69cb05 5321 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5322 corresponding bytes.
9e69cb05 5323
4520b858
J
53242010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5325
5326 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5327
fe50eb41
KH
53282010-08-26 Kenichi Handa <handa@m17n.org>
5329
5330 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5331 on calling composition_compute_stop_pos.
5332
f6aa6ec6
KH
53332010-08-25 Kenichi Handa <handa@m17n.org>
5334
9dfdbc0a
KH
5335 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5336 :otf.
5337
f6aa6ec6
KH
5338 * composite.c (composition_compute_stop_pos): Don't break
5339 composition at PT.
5340 (composition_reseat_it): Likewise. Fix calculation of character
5341 position starting a composition.
5342 (Fcomposition_get_gstring): Don't limit the number of components
5343 for automatic composition.
5344
ff94e32c
KH
53452010-08-25 Kenichi Handa <handa@m17n.org>
5346
5347 * composite.c (composition_compute_stop_pos): In forward search,
5348 pay attention to the possibility that some character after ENDPOS
5349 will be composed with charactrs before ENDPOS.
5350
1c409d0b
CY
53512010-08-24 Chong Yidong <cyd@stupidchicken.com>
5352
5353 * keyboard.c (command_loop_1): Don't clobber primary selection
5354 during handle-switch-frame (Bug#6872).
5355
0c372655
MA
53562010-08-23 Michael Albinus <michael.albinus@gmx.de>
5357
5358 * dbusbind.c: Accept UNIX domain sockets as bus address.
5359 (Fdbus_close_bus): New function.
5360 (Vdbus_registered_buses): New variable.
5361 (xd_initialize): Implement string as bus address.
5362 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5363 (Fdbus_get_unique_name, Fdbus_call_method)
5364 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5365 (Fdbus_method_error_internal, Fdbus_send_signal)
5366 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5367 check. This is done in xd_initialize_bus. Adapt doc string, if
5368 necessary.
5369 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5370 Vdbus_registered_buses.
5371 (Vdbus_registered_objects_table): Create hash.
5372
7133b7ee
JL
53732010-08-22 Juri Linkov <juri@jurta.org>
5374
5375 * keyboard.c (Fexecute_extended_command): Move reading a command name
5376 with `completing-read' to a new Elisp function `read-extended-command'.
5377 Call it to read a command to `function' (bug#5364, bug#5214).
5378
198a7a97
CY
53792010-08-22 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5382
b0126eac 53832010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5384
5385 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5386 instead of SAFE_ALLOCA.
5387
b0126eac 53882010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5389
5390 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5391 (Bug#6214).
5392
b0126eac 53932010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5394
5395 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5396
b0126eac
CY
53972010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5398
5399 * doc.c (Fsnarf_documentation): Initialize skip_file before
5400 build-files test.
5401
692f3ddc 54022010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5403
692f3ddc
JB
5404 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5405 New definitions.
b0126eac
CY
5406 (HAVE_TERMIO): Remove.
5407
5f2f0bc1
EZ
54082010-08-22 Eli Zaretskii <eliz@gnu.org>
5409
b613941b
EZ
5410 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5411
a583bbef
EZ
5412 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5413 for w32.
5414
5415 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5416 it's done in nt/config.nt.
5417
5418 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5419
5f2f0bc1
EZ
5420 * unexcoff.c (report_error, make_hdr, write_segment)
5421 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5422 Convert argument lists and prototypes to ANSI C.
5423 (make_hdr, write_segment): Remove unused variables.
5424 (unexec): Remove commented-out line. Initialize `new' to shut up
5425 compiler warnings.
5426
a7ebc409
DN
54272010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5428
5429 Simplify termio code.
5430 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5431 HAVE_TERMIO code is obsolete.
5432 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5433 * systty.h: Do not define HAVE_TCATTR.
5434 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5435 Do not define EMACS_HAVE_TTY_PGRP. Only define
5436 EMACS_GET_TTY_PGRP for !DOS_NT.
5437 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5438 sys/ioctl.h and termios.h, systty.h does it.
5439 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5440 (init_baud_rate): Remove HAVE_TERMIO code.
5441 (child_setup_tty): Remove HAVE_TERMIO code.
5442 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5443 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5444 (new_ltchars, new_tchars): Remove, unused.
5445 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5446 code. Remove special casing for __mips__, it was a no-op.
5447 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5448 (init_sys_modes): Remove HPUX special case.
5449 * process.c: Include stdlib.h unconditionally. Do not include
5450 fcntl.h, systty.h does it. Remove conditional code for
5451 HAVE_SERIAL, it is always true.
5452 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5453 always true when SIGNALS_VIA_CHARACTERS is true.
5454 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5455 !WINDOWSNT means HAVE_TERMIOS.
5456 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5457 conditional, which is true for all HAVE_TERMIOS systems.
5458 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5459 instead of HAVE_TERMIOS.
5460 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5461 EMACS_HAVE_TTY_PGRP.
5462 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5463 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5464 anyway.
5465
914f049b 54662010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5467
5468 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5469 mirroring pixel positions.
5470
d931da8c
DN
54712010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5472
b5c76d0c
DN
5473 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5474 write only.
5475 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5476 malloc_sbrk_used, nothing uses them.
5477
74815588
DN
5478 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5479 defined, unconditionally defined in lisp.h.
5480
f5817d1c
DN
5481 * term.c: Do not include <termios.h>, systty.h does it.
5482
d931da8c
DN
5483 * s/unixware.h (HAVE_TCATTR):
5484 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5485 systty.h defines it when HAVE_TERMIOS is defined.
5486
ff2de6d2 54872010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5488
b43c883c 5489 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5490 terminals: add one-character offset for R2L lines.
b43c883c 5491
491a1546
EZ
5492 * emacs.c <emacs_version>: Add a comment regarding
5493 msdos/mainmake.v2's dependency on the syntax of this declaration.
5494
2396cbba
EZ
54952010-08-20 Eli Zaretskii <eliz@gnu.org>
5496
5497 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5498 position for R2L lines by mirroring the pixel position wrt the
5499 text are box. Improve commentary.
5500
7df6150a
AS
55012010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5502
5503 * image.c (imagemagick_clear_image): Remove debugging output.
5504
a2e5caf7
SM
55052010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5506
5507 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5508 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5509 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5510 self-insert-face.
5511 (syms_of_cmds): Initialize the new vars.
5512
20d60baf
JR
55132010-08-19 Jason Rumney <jasonr@gnu.org>
5514
cc477da7
JR
5515 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5516
20d60baf
JR
5517 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5518
2c0ac867
J
55192010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5520
5521 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5522
93352106
EZ
55232010-08-18 Eli Zaretskii <eliz@gnu.org>
5524
5525 * xterm.c (x_draw_bar_cursor):
5526 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5527 R2L, draw the bar cursor on its right rather than on its left.
5528
c785836d
SM
55292010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5530
0193499f
SM
5531 * eval.c (Fdefmacro): Only obey one declaration.
5532
c785836d
SM
5533 * casefiddle.c (casify_region): Setup gl_state.
5534
9cb728a5
J
55352010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5536
5537 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5538
e1e18511
J
55392010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5540
1d77b63e 5541 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5542
64cb6c78
J
55432010-08-18 David De La Harpe Golden <david@harpegolden.net>
5544
5545 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5546 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5547 QPRIMARY => NXPrimaryPboard.
5548 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5549 NXPrimaryPboard => QPRIMARY.
5550 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5551 NXSecondaryPboard = SecondarySelection.
5552 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5553
0c9b8993
GM
55542010-08-18 Joakim Verona <joakim@verona.se>
5555
5556 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5557 defined:
5558 (imagemagick_image_p): New function to test for ImageMagic image.
5559 (imagemagick_load): New function to load ImageMagick image.
5560 (imagemagick_load_image): New function, helper for imagemagick_load.
5561 (imagemagick-types): New function.
5562 (Qimagemagick): New Lisp_object.
5563 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5564
c3554f68
SM
55652010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5566
5567 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5568 is a string.
5569
1ff2e434
J
55702010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5571
5572 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5573 x_set_tool_bar_position handler.
5574
0cc56427
EZ
55752010-08-17 Eli Zaretskii <eliz@gnu.org>
5576
5577 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5578 x_set_tool_bar_position handler, needed to support changes from
5579 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5580
e45a249b
JD
55812010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5582
2f8f196d 5583 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5584 declaration (Bug#6863).
573d150b 5585 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5586
e45a249b
JD
5587 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5588
5589 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5590
7c23dd44
CY
55912010-08-16 Chong Yidong <cyd@stupidchicken.com>
5592
5593 * keyboard.c (command_loop_1): Avoid setting selection twice,
5594 since it's done in deactivate-mark as well.
5595 (Vselect_active_regions): Change default to t. Replace `lazy'
5596 with non-default value `only', meaning only set PRIMARY for
5597 temporarily active regions.
5598
5599 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5600 select-active-regions.
5601
0005830c
J
56022010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5603
5604 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5605 isn't a string.
5606
603dfc72
AS
56072010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5608
5609 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5610
c25ce9d0
J
56112010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5612
c3554f68
SM
5613 * keyboard.c (parse_tool_bar_item): malloc buf.
5614 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5615 new_lbl (Bug#6855).
c25ce9d0 5616
5872c762
EZ
56172010-08-14 Eli Zaretskii <eliz@gnu.org>
5618
b236615c
EZ
5619 * xterm.c (x_draw_stretch_glyph_string):
5620 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5621 the cursor on the right edge of the stretch glyph.
5622
c3554f68
SM
5623 * xdisp.c (window_box_right_offset, window_box_right):
5624 Fix commentary.
b236615c 5625
5872c762
EZ
5626 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5627 direction when point is inside a run of whitespace characters.
5628
5629 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5630
e66f9a1b
JR
56312010-08-14 Jason Rumney <jasonr@gnu.org>
5632
5633 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5634
79d6f59e
CY
56352010-08-14 Chong Yidong <cyd@stupidchicken.com>
5636
5637 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5638
1c9b4129
JR
56392010-08-13 Jason Rumney <jasonr@gnu.org>
5640
5641 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5642 (MessageBoxW_Proc): New function typedef.
5643 (unicode-message-box): New function pointer.
2f8f196d 5644 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 5645
2b4e6277
J
56462010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5647
5648 * frame.h (Qtool_bar_position): Declare.
5649
5650 * xfns.c (Fx_create_frame): Call x_default_parameter for
5651 Qtool_bar_position.
5652
94c97d85
EZ
56532010-08-13 Eli Zaretskii <eliz@gnu.org>
5654
8ee81892
EZ
5655 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5656 (report_error, report_error_1): Ditto.
5657 (write_segment): Remove "#if 0" unused code.
5658 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5659 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5660 (start_of_text): Remove unused function (was used only if NO_REMAP
5661 was NOT defined).
5662
891ef8f7
EZ
5663 * msdos.c (IT_set_face): Fix format string to match argument
5664 types.
5665 (IT_write_glyphs, IT_note_mode_line_highlight)
5666 (IT_set_frame_parameters): Remove unused variables.
5667 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5668 (IT_set_terminal_modes): Disambiguate expression in if clause.
5669 (Fmsdos_remember_default_colors): Return Qnil.
5670 (IT_set_frame_parameters): Add parens to disambiguate boolean
5671 expression for logging the cursor type to termscript.
5672 (keyboard_layout_list, keypad_translate_map)
5673 (grey_key_translate_map): Add braces in inner initializers.
5674 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5675 (dos_rawgetc): Remove unused label.
5676 (XMenuActivate): Add braces to remove ambiguous `else'.
5677 (dos_ttraw): Always return a value.
5678 (spawnve): Declare.
5679 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5680
5681 * dosfns.h (x_set_title): Declare.
5682
5683 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5684 Remove unused variables.
5685
5686 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5687 variables.
5688 (init_dosfns): Declare get_lim_data.
5689 (system_process_attributes): Declare Fget_internal_run_time.
5690
38e41e0e
EZ
5691 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5692 list to be consistent with menu.h.
5693
94c97d85
EZ
5694 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5695 warnings due to mixing of "char *" and "const char *".
5696
c5683ceb
SM
56972010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5698
5699 Introduce a new comment style "c" flag.
5700 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5701 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5702 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5703 (syntax_prefix_flag_p): New function.
5704 (Fstring_to_syntax): Understand new "c" flag.
5705 (Finternal_describe_syntax_value): Recognize new flag; use the
5706 SYNTAX_FLAGS_* macros.
5707 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5708 comment style to accomodate the new styles.
5709 (back_comment, forw_comment, Fforward_comment, scan_lists)
5710 (scan_sexps_forward): Update code to obey the new comment style flag.
5711
5712 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5713
5714 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5715
7aee76f4
J
57162010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5717
3a46642b
J
5718 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5719 first.
94dff98f 5720 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
5721
5722 * gtkutil.h (xg_check_special_colors): Declare.
5723
5724 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5725 (xg_create_frame_widgets): Connect theme name changes to
5726 style_changed_cb.
5727
42ca4633
J
5728 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5729 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5730 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 5731 string literal. file is const char*.
42ca4633
J
5732
5733 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5734 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5735 props. Free them at the end.
5736
5737 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5738
c5683ceb
SM
5739 * xrdb.c (get_system_app): Make path const and use char *p for
5740 non-const char.
42ca4633
J
5741
5742 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 5743 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
5744 char *.
5745 (button_names): Is const char *.
5746 (xdialog_show): error_name and pane_string is const.
5747
5748 * process.h (synch_process_death): Is const char*.
5749
5750 * w32menu.c (w32_menu_show):
5751 * nsmenu.m (ns_menu_show): error parameter is const char **.
5752
5753 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5754 is const char **.
5755
5756 * menu.c (Fx_popup_menu): error_name is const.
5757
5758 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5759 with unsigned char and XtPointer with void *.
5760
5761 * gtkutil.h: Replace widget_value with struct _widget_value.
5762 (enum button_type, struct _widget_value): Remove and use the one from
5763 keyboard.h.
5764
5765 * gtkutil.c (get_utf8_string): Always return an allocated string.
5766 Parameter is const.
5767 (create_dialog, xg_create_one_menuitem, create_menus)
5768 (xg_item_label_same_p, xg_update_menu_item): Free result from
5769 get_utf8_string.
5770 (xg_separator_p, xg_item_label_same_p): label is const.
5771
5772 * font.h (font_open_by_name): Make name const.
5773
5774 * font.c (font_open_by_name): Make name const.
5775
5776 * floatfns.c (matherr): Use a const char* variable for x->name.
5777
5778 * emacs.c (main): Pass char[] to putenv instead of literal.
5779
5780 * callproc.c (synch_process_death): Make const.
5781 (Fcall_process): Make signame const.
5782
9c5bd55a
J
5783 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5784 (addDisplayItemWithImage): Use const char*.
5785
5786 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5787 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5788
5789 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5790
5791 * keyboard.h (_widget_value): name, value and key are const char*.
5792
7aee76f4
J
5793 * unexmacosx.c (unexec_error): Use const char *.
5794
09d93395
DN
57952010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5796
5797 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5798 (font_parse_name, font_open_by_name):
09d93395 5799 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5800 (font_parse_name, font_open_by_name): Remove const.
09d93395 5801
671d409f
AS
58022010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5803
5804 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5805 definition.
5806
5807 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5808 * m/amdx86-64.h: Likewise.
5809 * m/arm.h: Likewise.
5810 * m/hp800.h: Likewise.
5811 * m/ia64.h: Likewise.
5812 * m/ibmrs6000.h: Likewise.
5813 * m/ibms390.h: Likewise.
5814 * m/intel386.h: Likewise.
5815 * m/iris4d.h: Likewise.
5816 * m/m68k.h: Likewise.
5817 * m/macppc.h: Likewise.
5818 * m/mips.h: Likewise.
5819 * m/sh3.h: Likewise.
5820 * m/sparc.h: Likewise.
5821 * m/template.h: Likewise.
5822 * m/vax.h: Likewise.
5823 * m/xtensa.h: Likewise.
5824 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5825 WORDS_BIG_ENDIAN.
5826 * lisp.h: Likewise.
5827 * md5.c: Likewise.
5828 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5829
8ea90aa3
DN
58302010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5831
5832 Use const char* instead of char*.
5833 Reduce the number of warnings with -Wwrite-strings.
5834 * xrdb.c (get_environ_db, get_system_name):
5835 * unexelf.c (find_section):
5836 * term.c (string_cost, string_cost_one_line, per_line_cost)
5837 (get_named_tty, init_tty):
5838 * sysdep.c (sys_subshell):
5839 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5840 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5841 * search.c (Freplace_match):
5842 * process.c (Fmake_network_process, send_process, init_process):
5843 * lread.c (Fload, init_lread):
5844 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5845 * keyboard.c (parse_tool_bar_item, struct event_head):
5846 * gtkutil.h (xg_get_font_name):
5847 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5848 (make_widget_for_menu_item, make_menu_item, create_menus)
5849 (xg_make_tool_item):
5850 * font.c (parse_matrix, font_parse_name):
5851 * floatfns.c (rounding_driver, float_error_fn_name):
5852 * filelock.c (get_boot_time_1, lock_file_1):
5853 * fileio.c (barf_or_query_if_file_exists, check_writable):
5854 * editfns.c (get_system_name, get_operating_system_release)
5855 (Fencode_time, Fset_time_zone_rule):
5856 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5857 * buffer.c (defvar_per_buffer): Use const.
5858
7815fe19 58592010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 5860
692f3ddc 5861 * charset.c: Include <stdlib.h>.
7a84eee5
KH
5862 (struct charset_sort_data): New struct.
5863 (charset_compare): New function.
692f3ddc 5864 (Fsort_charsets): New function.
7a84eee5
KH
5865 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5866
5867 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5868 number in CTEXT extended segment.
5869
7815fe19 58702010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
5871
5872 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5873 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5874
7815fe19 58752010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
5876
5877 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5878 (Fhash_table_size): Fix typos in docstrings.
5879 (Fmake_hash_table): Doc fix.
5880
7815fe19 58812010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
5882
5883 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5884 Doc fix (bug#5625).
5885
7815fe19 58862010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
5887
5888 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5889 the MSDOS definition.
5890
1b6d8cf0
DN
58912010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5892
675e2c69
DN
5893 Use const char* instead of char*.
5894 * xterm.c (x_create_toolkit_scroll_bar):
5895 * xfont.c (xfont_list_pattern):
5896 * xfns.c (x_default_scroll_bar_color_parameter)
5897 (xic_create_fontsetname, x_default_font_parameter)
5898 (x_screen_planes):
5899 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5900 (store_mode_line_string, decode_mode_spec, display_string):
5901 * menu.c (digest_single_submenu):
5902 * keymap.h (initial_define_key, initial_define_lispy_key):
5903 * keymap.c (initial_define_key, initial_define_lispy_key):
5904 * image.c (image_error, image_keyword):
5905 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5906 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5907 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5908 (ftfont_list, ftfont_match):
5909 * frame.c (frame_parm_table):
5910 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5911 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5912 (font_add_log, font_deferred_log):
5913 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5914 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5915 (font_add_log, font_deferred_log):
5916 * emacs.c (argmatch):
5917 * dispextern.h (struct it):
5918 * coding.c (ENCODE_DESIGNATION):
5919 * charset.c (define_charset_internal): Use const.
5920
25717ca1
DN
5921 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5922
c5683ceb
SM
5923 * xrdb.c: Remove include guard.
5924 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
5925 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5926 realloc->xrealloc instead of using #defines.
5927
efb41e21
EZ
59282010-08-08 Eli Zaretskii <eliz@gnu.org>
5929
cd21226d 5930 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
5931 * editfns.c (Fline_beginning_position, Fline_end_position):
5932 State in the doc strings that start and end of line are in the
5933 logical order.
cd21226d 5934
efb41e21
EZ
5935 * xdisp.c (display_line): Move the handling of overlay arrow after
5936 the call to find_row_edges. (Bug#6699)
5937
746812d9
CY
59382010-08-07 Chong Yidong <cyd@stupidchicken.com>
5939
5940 * keyboard.c (command_loop_1):
5941 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5942
9852377f
CY
59432010-08-07 Chong Yidong <cyd@stupidchicken.com>
5944
5945 * insdel.c (prepare_to_modify_buffer): Save active region text to
5946 Vsaved_region_selection.
5947
5948 * xselect.c (QPRIMARY): Move to keyboard.c.
5949
5950 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
5951 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5952 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 5953
0e9c8657
JB
59542010-08-07 Juanma Barranquero <lekktu@gmail.com>
5955
5956 * alloc.c (lisp_malloc):
5957 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5958 * charset.h (emacs_mule_charset):
5959 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5960 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5961 (bitch_at_user):
5962 * lisp.h (Fcheck_coding_system, Fget_text_property)
5963 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5964 Remove duplicate declarations.
5965
648801d1
DN
59662010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5967
32bc6709
DN
5968 * process.c: Simplify include logic.
5969
3ef1d108
DN
5970 * keyboard.h (quit_char): Add declaration.
5971 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5972 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5973 Add declarations.
3ef1d108
DN
5974 * sysdep.c:
5975 * w32.c: Remove the above declarations.
5976
97ec208f
DN
5977 Remove extern declarations in .c files, .h files have them.
5978 * xterm.c:
5979 * xdisp.c:
97ec208f
DN
5980 * msdos.c:
5981 * image.c:
5982 * gtkutil.c:
5983 * fileio.c:
5984 * eval.c: Remove declarations.
5985
94eed851
DN
5986 * frame.c (frame_params): Make const.
5987
36e053eb
DN
5988 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5989
0e843971
DN
5990 * emacs.c (emacs_copyright, emacs_version): Make static.
5991 (Vinitial_window_system, Vauto_save_list_file_name)
5992 (Vinhibit_redisplay): Remove declarations.
5993 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5994 for AIX.
5995
648801d1
DN
5996 Use const for some arrays and functions.
5997 * xterm.h (xg_set_icon_from_xpm_data):
5998 * xfns.c (xg_set_icon_from_xpm_data):
5999 * term.c (fkeys):
6000 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6001 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6002 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6003 (frame.c frame_parms):
6004 * emacs-icon.h (gnu_xpm_bits):
6005 * callint.c (callint_argfuns): Use const.
6006
8646d999
J
60072010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6008
6009 * sysdep.c: Move include term.h last of includes (Bug#6812).
6010
cb4545ad
EZ
60112010-08-06 Eli Zaretskii <eliz@gnu.org>
6012
6013 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6014
6015 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6016
6017 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6018
da7e2be6
JB
60192010-08-06 Juanma Barranquero <lekktu@gmail.com>
6020
6021 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6022
3d608a86
J
60232010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6024
7908fb60
J
6025 * xterm.h (x_get_focus_frame): Declare.
6026
6027 * keyboard.h (poll_for_input_1): Unconditionally declare.
6028
4094bf36
J
6029 * nsterm.h (x_set_menu_bar_lines): Declare.
6030
6031 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6032
3d608a86
J
6033 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6034
6035 * window.c: Include menu.h.
6036
6037 * unexmacosx.c (print_region_list, print_regions)
6038 (build_region_list, find_emacs_zone_regions)
6039 (unexec_regions_merge, read_load_commands, dump_it)
6040 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6041
6042 * term.c: Check HAVE_SYS_IOCTL_H.
6043
686b968e 6044 * sysdep.c: Check HAVE_TERM_H.
3d608a86 6045
686b968e 6046 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
6047
6048 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6049 (ns_ring_bell, ns_defined_color, hide_hourglass)
6050 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6051 Convert to ANSI C prototypes.
6052 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6053 before code.
6054
6055 * nsterm.h : Include sysselect.h.
6056 (x_sync, x_get_focus_frame, x_set_mouse_position)
6057 (x_set_mouse_pixel_position, x_make_frame_visible)
6058 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6059 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6060 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6061 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 6062 Declare.
3d608a86
J
6063
6064 * nsmenu.m (popup_activated, name_is_separator)
6065 (syms_of_nsmenu): Convert to ANSI C prototypes.
6066 (runMenuAt): Prototypes and move declarations before code.
6067
6068 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6069
6070 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6071 prototypes.
6072
6073 * nsfns.m (have_menus_p, ns_display_info_for_name)
6074 (x_set_cursor_type, ns_appkit_version_str)
6075 (ns_appkit_version_int, ns_do_applescript)
6076 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6077 (syms_of_nsfns): Convert to ANSI C prototypes.
6078
6079 * menu.h (x_set_menu_bar_line): Declare.
6080 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6081
6082 * lisp.h (fmod_float): Declare.
6083
6084 * image.c (xpm_scan, xpm_make_color_table_v)
6085 (xpm_put_color_table_v, xpm_get_color_table_v)
6086 (xpm_make_color_table_h, xpm_put_color_table_h)
6087 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6088 (xpm_load): Convert to ANSI C prototypes.
6089
6090 * emacs.c: Include nsterm.h if HAVE_NS.
6091
6092 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6093
fce70521
DN
60942010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6095
6096 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6097 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6098 (socket_options): Use const char* for name.
6099
a11889ab
JB
61002010-08-06 Juanma Barranquero <lekktu@gmail.com>
6101
6102 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6103
6104 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6105 Don't declare xmalloc_widget_value and digest_single_submenu.
6106
6107 * w32font.c (Qlatin): Remove declaration.
6108
6109 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6110
c95b508f 6111 * dired.c (compile_pattern): Restore declaration.
a11889ab 6112
6254cdda
DN
61132010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6114
04bab72c
DN
6115 Remove extern declarations in .c files, .h files have them.
6116 * data.c:
6117 * dired.c:
6118 * editfns.c:
6119 * filelock.c:
6120 * fns.c:
6121 * font.c:
6122 * fontset.c:
6123 * frame.c:
6124 * fringe.c:
6125 * ftfont.c:
6126 * gtkutil.c:
6127 * indent.c:
6128 * keyboard.c:
6129 * keymap.c:
6130 * lread.c:
6131 * menu.c:
6132 * print.c:
6133 * search.c:
6134 * sound.c:
6135 * window.c:
6136 * xdisp.c:
6137 * xfaces.c:
6138 * xfns.c:
6139 * xfont.c:
6140 * xftfont.c:
6141 * xmenu.c:
6142 * xterm.c: Remove declarations.
6143
dff94ed5
DN
6144 Cleanup syssignal.h.
6145 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6146 (main_thread): Move down to remove #ifdef.
6147 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6148 Remove conditional definition following unconditional ones.
6149
99f3388e
DN
6150 * lisp.h: Remove HAVE_SHM code, unused.
6151 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6152 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6153 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6154 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6155 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6156 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6157 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6158 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6159 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6160 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6161 (Qwindow_scroll_functions, Vafter_load_alist)
6162 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6163 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6164 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6165 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6166 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6167 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6168 (initial_argv, last_nonmenu_event, load_in_progress)
6169 (noninteractive_need_newline, scroll_margin): Add declarations.
6170
bba3e508
SM
6171 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6172 Remove declarations, menu.h has them.
99f3388e
DN
6173 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6174 (Vinput_method_function, Qinput_method_function)
6175 (Qevent_symbol_element_mask, last_event_timestamp):
6176 * dispextern.h (Voverflow_newline_into_fringe):
6177 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6178 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6179 (syms_of_w32font, syms_of_nsfont):
6180 * fontset.h (find_font_encoding, Qlatin):
6181 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6182 (Vtool_bar_mode, set_frame_menubar):
6183 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6184 * xterm.h (Qx_gtk_map_stock):
6185 * keymap.h (meta_prefix_char): Add declarations.
6186
9f5dd6f2
DN
6187 * term.c: Remove dead code.
6188
6254cdda
DN
6189 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6190 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6191 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6192 which is what was there before BSD_PGRPS was removed.
6193
29cf3e20
EZ
61942010-08-05 Eli Zaretskii <eliz@gnu.org>
6195
6196 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6197
6198 * unexcoff.c: Renamed from unexec.c.
6199
aaa0a19a
SM
62002010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6201
6202 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6203
8d1d9587
JB
62042010-08-03 Johan Bockgård <bojohan@gnu.org>
6205
6206 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 6207 (Bug#6744)
8d1d9587 6208
9a747ba6
JD
62092010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6210
4d464ae4
JD
6211 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6212 to TRUE if depth of screen is < 16.
6213
ac01763e
JD
6214 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6215 USE_GTK_TOOLTIP.
e0d62a9b
JB
6216 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6217 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 6218 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
6219 USE_GTK_TOOLTIP.
6220 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6221
6222 * xterm.h (USE_GTK_TOOLTIP): New define.
6223 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6224
9a747ba6
JD
6225 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6226 to Control-D (Bug#6771).
6227
7b0815ba
JB
62282010-08-02 Juanma Barranquero <lekktu@gmail.com>
6229
6230 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6231 Wording by Drew Adams <drew.adams@oracle.com>.
6232
aa1859f5
J
62332010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6234
6235 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6236 ttip_lbl.
6237
6238 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6239 calling gtk_widget_queue_draw.
6240 (x_free_frame_resources): Call xg_free_frame_widgets.
6241
6242 * xfns.c (x_gtk_use_system_tooltips): New variable.
6243 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6244 new gtkutil tooltip functions to show the tooltip.
6245 (Fx_hide_tip): Call xg_hide_tooltip.
6246 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6247
6248 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6249 (xg_show_tooltip, xg_hide_tooltip): Declare.
6250
6251 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6252 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6253 New functions.
aa1859f5
J
6254 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6255 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6256 Remove code that is commented out.
6257
76417ef4
SM
62582010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6259
6260 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6261
16041401
CY
62622010-07-31 Chong Yidong <cyd@stupidchicken.com>
6263
6264 * xselect.c (x_own_selection): Use list4.
6265
2c09a58f
DN
62662010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6267
6268 * buffer.c (Qwindow): Do not define, already defined in data.c.
6269 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6270
59df9fdd 62712010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6272
59df9fdd
JB
6273 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6274 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6275 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6276 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6277 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6278
1b231651
DN
62792010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6280
6281 Rename s/usg5-4.h -> s/usg5-4-common.h.
6282 * s/usg5-4.h: Rename file to ...
6283 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6284 * s/unixware.h:
6285 * s/sol2-6.h:
6286 * s/irix6-5.h: Update includes accordingly.
6287
bfeabdc3
JD
62882010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6289
2ebf1083
J
6290 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6291
bfeabdc3 6292 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6293 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6294 Remove toolbar_height.
6295 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6296 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6297 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6298 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6299
6300 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6301
6302 * xfns.c (x_set_tool_bar_position): New function.
6303 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6304 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6305 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6306
6307 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6308 and FRAME_TOOLBAR_LEFT_WIDTH.
6309
6310 * gtkutil.h (xg_change_toolbar_position): Declare.
6311
6312 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6313 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6314 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6315 (xg_create_frame_widgets): Create a hobox for placing widgets
6316 vertically. Use gtk_box_pack_start.
ef1b0ba7 6317 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6318 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6319 (xg_update_frame_menubar, free_frame_menubar): Change to
6320 xg_height_or_width_changed.
6321 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6322 size correctly. Remove hardcoded 4, instead use handlebox size -
6323 toolbar size.
6324 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6325 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6326 (xg_pack_tool_bar): POS is a new parameter.
6327 Set orientation of tool bar based on pos.
6328 Only make handlebox_widget if NULL.
6329 Check if tool bar goes to vbox or hbox depending on pos.
6330 (xg_update_tool_bar_sizes): New function.
686b968e 6331 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6332 height, call xg_update_tool_bar_sizes instead.
6333 (free_frame_tool_bar): Remove from hbox or vbox depending on
6334 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6335 (xg_change_toolbar_position): New function.
6336
6337 * frame.h (struct frame): Add tool_bar_position.
6338 (Qbottom): Declare.
6339
6340 * frame.c (Qtool_bar_position): New variable.
6341 (make_frame): Set tool_bar_position to Qtop.
6342 (frame_parms): Add tool-bar-position.
6343 (x_report_frame_params): Store tool_bar_position.
6344 (x_set_fringe_width): Reset wm size hint after fringe changes.
6345
26469a38
DN
63462010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6347
6348 Make lisp_time_argument declaration work on all systems.
6349 * lisp.h (lisp_time_argument): Move declaration ...
6350 * systime.h (lisp_time_argument): ... here
6351 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6352
8848b728
JD
63532010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6354
6355 * vm-limit.c (POINTER): Add typedef for it.
6356 (start_of_data): Change return type from POINTER to char *.
6357
6358 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6359 HAVE_WINDOW_SYSTEM.
6360
76fd1ee9
DN
63612010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6362
0441987e
DN
6363 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6364 Remove reference to __osf__, unused.
6365
56a000c7
DN
6366 * mem-limits.h: Remove duplicated includes.
6367 (NULL): Remove definition, unused.
6368 (POINTER): Remove definition.
6369 (start_of_data): Use char* in prototype, as the function
6370 definition does.
6371
e6cba650
DN
6372 Remove extern declarations from .c files, and them to .h files.
6373 * keyboard.h (Qhelp_echo, waiting_for_input)
6374 (input_available_clear_time, ignore_mouse_drag_p)
6375 (Vdouble_click_time, real_this_command, Vthis_original_command):
6376 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6377 (Voverriding_local_map_menu_flag):
6378 * lisp.h (Qinteractive_form, use_file_dialog)
6379 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6380 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6381 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6382 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6383 (Qfunction, debug_on_next_call, Qfield)
6384 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6385 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6386 (Qfile_directory_p, Qinsert_file_contents)
6387 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6388 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6389 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6390 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6391 (Qminibuffer_prompt)
6392 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6393 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6394 (gray_bitmap_bits, xic_create_fontsetname):
6395 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6396
6397 * xsmfns.c (Vuser_login_name):
6398 * xrdb.c (Vdouble_click_time):
6399 * xfaces.c (xic_create_fontsetname):
6400 * w32select.c (waiting_for_input):
6401 * print.c (minibuffer_auto_raise):
6402 * msdos.c (Qhelp_echo):
6403 * macros.c (real_this_command):
6404 * keymap.c (Voverriding_local_map):
6405 * xterm.c (poll_for_input_1, gray_bitmap_width)
6406 (gray_bitmap_height, gray_bitmap_bits;
6407 * xmenu.c ( Voverriding_local_map)
6408 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6409 (use_file_dialog, Xt_app_con):
6410 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6411 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6412 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6413 (Qtool_bar_lines, ignore_mouse_drag_p):
6414 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6415 (Qrear_nonsticky, nconc2):
6416 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6417 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6418 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6419 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6420 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6421 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6422 (gc_in_progress):
6423 * doc.c (Voverriding_local_map, Qremap):
6424 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6425 (Vcompletion_regexp_list):
6426 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6427 (Qcompletion_ignore_case):
6428 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6429 (Vhistory_length, Vthis_original_command, real_this_command)
6430 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6431 * image.c (Qrisky_local_variable):
6432 * fontset.c (QCname):
6433 * fns.c (minibuffer_auto_raise, QCname):
6434 * dispnew.c (char_ins_del_cost):
6435 * composite.c (font_fill_lglyph_metrics):
6436 * cmds.c (Qface, Vtranslation_table_for_input):
6437 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6438 * ccl.c (charset_unicode):
6439 * callproc.c (Vtemporary_file_directory):
6440 * buffer.c (emacs_strerror): Remove extern declarations.
6441
6442 * data.c (Qwindow): Make non-static, used from other files too.
6443 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6444
76fd1ee9
DN
6445 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6446 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6447 * s/usg5-4.h (COFF):
6448 * s/template.h:
6449 * s/msdos.h (COFF, NO_REMAP):
6450 * s/ms-w32.h (NO_REMAP):
6451 * s/hpux10-20.h (NO_REMAP):
6452 * m/sparc.h (SEGMENT_MASK):
6453 * m/m68k.h (NO_REMAP):
6454 * m/intel386.h (SEGMENT_MASK):
6455 * m/arm.h (NO_REMAP):
6456 * m/alpha.h (COFF):
6457 * m/template.h: Remove references to unused defines.
6458
8a52f00a
JD
64592010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6460
6461 * xsettings.c (Ftool_bar_get_system_style): Also check for
6462 Qtext_image_horiz.
6463
6464 * xdisp.c (Qtext_image_horiz): Define.
6465 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6466 to documentation of tool-bar-style.
8a52f00a
JD
6467
6468 * lisp.h (Qtext_image_horiz): Declare.
6469
6470 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6471 style text_image_horiz.
6472
89dc303e
DN
64732010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6474
60799703
DN
6475 * emacs.c (Fkill_emacs): Remove return statement.
6476
37254dc1
DN
6477 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6478 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6479 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6480 Remove local extern declarations.
37254dc1 6481
71c7345a
DN
6482 * xmenu.c: Do not included lwlib.h, not needed.
6483
6ba577cb
DN
6484 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6485
fdb183d6
DN
6486 * process.c: Move definitions earlier to minimize #ifdefs.
6487
6488 * xterm.h (x_get_customization_string, x_load_resources)
6489 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6490 (x_check_errors, x_property_data_to_lisp, defined_color)
6491 (xic_set_xfontset, x_defined_color): Use const.
6492
6493 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6494 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6495
6496 * xselect.c (selection_data_to_lisp_data)
6497 (x_property_data_to_lisp):
6498 * xrdb.c (x_get_string_resource, file_p)
6499 (x_get_customization_string, magic_file_p, search_magic_path)
6500 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6501 (x_get_string_resource): Use const.
6502
6503 * xfns.c: Include xlwmenu.h when USE_LUCID.
6504 (x_defined_color, xic_set_xfontset): Use const.
6505 (Fx_hide_tip): Remove local extern declaration.
6506
6507 * xfaces.c (Qmouse_face): Remove declaration.
6508 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6509 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6510
6511 * xdisp.c (do_mouse_tracking): Remove declaration.
6512 (add_to_log): Use const.
6513
6514 * minibuf.c (Qmouse_face): Remove declaration.
6515
6516 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6517
6518 * keyboard.h (do_mouse_tracking): Add declaration.
6519
6520 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6521 (QCdata, QCtype, Qcenter): Remove declarations.
6522
6523 * frame.c (x_get_resource_string, x_get_string_resource)
6524 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6525 (x_default_parameter): Use const.
6526
6527 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6528 (QCheight, QCsize, QCname): Remove declarations.
6529
6530 * emacs.c (main): Remove local extern declaration.
6531
6532 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6533 declarations.
6534
6535 * dispnew.c: Remove duplicate #include <unistd.h>.
6536 (update_window, update_frame_1, init_display): Remove local extern
6537 declarations.
6538
6539 * dispextern.h (add_to_log): Remove declaration.
6540 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6541 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6542
6543 * dired.c (scmp): Add const.
6544 (directory_files_internal): Remove local extern declaration.
6545
6546 * data.c (Finteractive_form): Use const.
6547
6548 * composite.c (syms_of_composite): Remove local extern declarations.
6549
6550 * charset.c (add_to_log): Remove declaration.
6551
6552 * character.c (strwidth, parse_str_to_multibyte): Add const.
6553
6554 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6555
6556 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6557
89dc303e 6558 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6559 (Lisp_Subr): Make doc and intspec constant.
6560 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6561 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6562 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6563 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6564 (display_arg): Add declarations.
89dc303e 6565
0ed082fe 65662010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6567
6568 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6569
0ed082fe
JB
6570 * window.c (Fwindow_height): Doc fix (bug#6518).
6571
65722010-07-27 Juanma Barranquero <lekktu@gmail.com>
6573
6574 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6575
ccaf0336
DN
65762010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6577
977105dc
DN
6578 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6579 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6580 functions.
6581
f5ada890
DN
6582 * frame.h (Qtty_color_mode): Add declaration.
6583
ccaf0336
DN
6584 * lisp.h (Ftop_level, Fexit_recursive_edit)
6585 (Fabort_recursive_edit): Mark as NO_RETURN.
6586
dfe3c90f
KH
65872010-07-26 Kenichi Handa <handa@m17n.org>
6588
6589 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 6590 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 6591
7d383292
JB
65922010-07-26 Juanma Barranquero <lekktu@gmail.com>
6593
6594 * lread.c (unreadpure, mapatoms_1): Make static.
6595
da31e629
JB
65962010-07-25 Juanma Barranquero <lekktu@gmail.com>
6597
6598 * terminfo.c (tparam): Fix prototype of tparm.
6599
7bfa6d77
AS
66002010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6601
dcc19aac
AS
6602 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6603 find start of text segment.
6604 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6605 is defined.
6606
7bfa6d77
AS
6607 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6608
63f9a672
KB
66092010-07-25 Ken Brown <kbrown@cornell.edu>
6610
6611 * vm-limit.c (check_memory_limits): Fix previous change;
6612 accidentally reverted an earlier change.
6613
24933075
KB
66142010-07-25 Ken Brown <kbrown@cornell.edu>
6615
6616 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6617 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6618
361358ea
JB
66192010-07-25 Juanma Barranquero <lekktu@gmail.com>
6620
6621 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6622 * dired.c (opendir, readdir): Fix prototypes.
6623 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6624 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6625 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6626 (telldir): Remove declaration.
6627 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6628 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6629 * syssignal.h (strsignal): Fix prototype.
6630 * term.c (tparam): Fix prototype.
6631 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6632 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6633 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6634 and __morecore.
6635 * w32gui.h (XParseGeometry): Fix prototype.
6636 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6637 * w32term.c (my_set_focus): Declare inside #if 0.
6638 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6639 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6640 (drain_message_queue, get_next_msg, post_msg, parse_button)
6641 (ClipboardSequence_Proc): Fix prototypes.
6642 (wait_for_sync): Remove declaration.
6643
630b9592
JB
66442010-07-24 Juanma Barranquero <lekktu@gmail.com>
6645
6646 * w32fns.c (w32_to_x_color): Remove, unused.
6647
6a0d6611
AS
66482010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6649
6650 * lisp.h: Remove leftover P_.
6651
4e8608ff
DN
66522010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6653
6654 * ecrt0.c, unexalpha.c: Remove files, unused.
6655
c8197983
AS
66562010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6657
6658 * cmds.c (internal_self_insert): Make static.
6659 * lisp.h (internal_self_insert): Remove declaration.
6660
97b372d7
JB
66612010-07-23 Juanma Barranquero <lekktu@gmail.com>
6662
33ac0414
JB
6663 * alloc.c (free_float):
6664 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6665 * frame.c (delete_frame_handler):
6666 * ralloc.c (reorder_bloc):
6667 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6668 Remove unused static functions.
6669
94da8397
JB
6670 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6671 it is called only from NS code.
6672
2e6c8532
JB
6673 * w32term.c (my_set_focus): #ifdef away; it is called only from
6674 "#ifdef 0" code.
6675
97b372d7
JB
6676 * w32fns.c (x_edge_detection):
6677 * xfaces.c (may_use_scalable_font_p):
6678 Remove obsolete static declarations.
6679
7c3320d8
JB
66802010-07-20 Juanma Barranquero <lekktu@gmail.com>
6681
6682 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6683 (emacs_blocked_realloc, uninterrupt_malloc):
6684 * fringe.c (w32_reset_fringes):
6685 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6686 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6687 * sound.c (be2hs, do_play_sound):
6688 * vm-limit.c (get_lim_data, ret_lim_data):
6689 * w32term.c (x_free_frame_resources):
6690 * xfaces.c (x_create_gc, x_free_gc):
6691 Convert definitions to standard C.
6692
d5273788
SM
66932010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6694
6695 * eval.c (Feval, Ffuncall): Use the new names.
6696
6697 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6698 (DEFUN): Add braces around the union initialisation and use ## to
6699 specify the right union alternative and avoid a cast.
6700
8d16a259
JB
67012010-07-18 Juanma Barranquero <lekktu@gmail.com>
6702
6703 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6704
3b8eff32
CY
67052010-07-17 Chong Yidong <cyd@stupidchicken.com>
6706
6707 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6708
499322ce
J
67092010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6710
6711 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6712 is related to the menu bar (Bug#6499).
a628ad9d 6713 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 6714
f6003da5 67152010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
6716
6717 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6718
6719 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6720
6721 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6722 i.e. don't put back ButtonRelease (Bug#6608).
6723
6724 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6725 instead of Window. Call xg_event_is_for_menubar when
6726 USE_GTK (Bug#6499).
6727
6728 * gtkutil.h (xg_event_is_for_menubar): Declare.
6729
6730 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6731
f6003da5 67322010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
6733
6734 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6735 when it's the same as the old foreground. (Bug#6609)
6736
23243f29
J
67372010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6738
6739 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6740 widget is non-null (Bug#6645).
6741
2b23d2a6
AS
67422010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6743
01b564ff
AS
6744 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6745 Convert old-style definition.
6746
2b23d2a6
AS
6747 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6748 timestamp argument.
6749
c4affd2c
EZ
67502010-07-15 Eli Zaretskii <eliz@gnu.org>
6751
6752 * fringe.c (update_window_fringes): Restore mistakenly reverted
6753 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6754
cf28cebc
J
67552010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6756
6757 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6758 (SET_SAVED_KEY_EVENT): Remove (not used).
6759 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6760 remove size parameter.
6761 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6762 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6763 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6764 ButtonRelease.
6b2c4bd9
J
6765 (x_set_window_size_1): scroll_bar_actual_width is always
6766 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
6767
6768 * xdisp.c (pending_menu_activation): Remove extern declaration.
6769 (prepare_menu_bars): Remove setting of pending_menu_activation.
6770
6771 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
6772 (x_activate_menubar): Set popup_activated_flag for Xt also.
6773 Remove setting of pending_menu_activation.
cf28cebc
J
6774 (set_frame_menubar): Remove check of pending_menu_activation.
6775 Declare menubar_size before code. Correct spelling in comment.
6776
f6c1c771
KH
67772010-07-14 Kenichi Handa <handa@m17n.org>
6778
6779 * font.c (font_open_entity): Cancel previous change.
6780 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6781
20477505
EZ
67822010-07-13 Eli Zaretskii <eliz@gnu.org>
6783
77defa9a
EZ
6784 Remove subprocesses #ifdefs.
6785 * process.c <inhibit_sentinels>: Move to the common part.
6786 (Fwaiting_for_user_input_p): Move to the common part; return nil
6787 if async subprocesses aren't supported.
6788 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6789 MS-DOS. Remove "#ifdef subprocesses".
6790 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6791 (gettimeofday): Remove "#ifdef subprocesses".
6792 (wait_without_blocking): Remove function.
6793 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6794 Remove "#ifdef subprocesses".
6795 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6796 compiled on MS-DOS.
6797 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6798 wait_for_termination on MS-DOS.
6799 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6800 initialization of inhibit_sentinels.
6801 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6802 subprocesses" conditional.
6803 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6804 wait_for_termination, since `buffer' cannot be an integer when
6805 async subprocesses are not supported
6806 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6807 for ifdefing away the call to Fprocess_status.
6808
20477505
EZ
6809 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6810 away the entire body of the function.
6811
b3ffc17c
DN
68122010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6813
01faa934
DN
6814 Remove subprocesses #ifdefs from term.c.
6815 * process.c (add_keyboard_wait_descriptor)
6816 (delete_keyboard_wait_descriptor): Move to common section, do
6817 nothing when subprocesses is not defined.
a628ad9d
JB
6818 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6819 Remove subprocesses #ifdefs.
01faa934 6820
b3ffc17c
DN
6821 Convert maybe_fatal to standard C.
6822 * lisp.h (verror): Declare.
6823 * eval.c (verror): New function containing the code from ...
6824 (error): ... this. Call verror.
6825 * term.c (vfatal): New function containing the code from ...
6826 (fatal): ... this. Call vfatal.
6827 (maybe_fatal): Convert to standard C, use variable number of
6828 arguments. Declare as non-return.
6829 (init_tty): Fix maybe_fatal call.
6830
0521f580
DN
68312010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6832
6833 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6834 (_scroll_bar_note_movement): Convert definitions to standard C.
6835 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6836 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6837
ebd15611
DN
68382010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6839
6840 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6841 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6842 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6843 (xaw_jump_callback, xaw_scroll_callback)
6844 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
6845 (x_wm_set_size_hint, x_activate_timeout_atimer):
6846 Convert definitions to standard C.
ebd15611
DN
6847 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6848 (popup_activate_callback, popup_deactivate_callback)
6849 (menu_highlight_callback, menubar_selection_callback)
6850 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6851 (free_frame_menubar, popup_selection_callback, as)
6852 (create_and_show_popup_menu, dialog_selection_callback)
6853 (create_and_show_dialog):
6854 * xfns.c (hack_wm_protocols, x_window):
6855 * xfaces.c (x_update_menu_appearance):
6856 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6857 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6858 (set_frame_size, update_wm_hints, setup_frame_gcs)
6859 (update_various_frame_slots, update_from_various_frame_slots)
6860 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6861 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6862 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6863
de06a2dd
AS
68642010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6865
a628ad9d 6866 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 6867
fc549af9
EZ
68682010-07-12 Eli Zaretskii <eliz@gnu.org>
6869
6870 * process.c (setup_process_coding_systems): Move to the part
6871 shared by non-subprocesses systems, and make its body empty when
6872 subprocesses is not defined.
6873 (close_process_descs): Move to the part shared by non-subprocesses
6874 systems.
1408902e
EZ
6875 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6876 ANSI C.
fc549af9 6877
d5a3eaaf
AS
68782010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6879
6880 * editfns.c (transpose_markers): Convert old-style definition.
6881 * emacs.c (abort, shut_down_emacs, fixup_locale)
6882 (synchronize_system_time_locale)
6883 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6884 * floatfns.c (extract_float, matherr, init_floatfns)
6885 (syms_of_floatfns): Likewise.
6886 * fns.c (make_hash_table): Likewise.
6887 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6888 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6889 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6890 (ftfont_variation_glyphs): Likewise.
6891 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6892 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6893 * lread.c (read_filtered_event): Likewise.
6894 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6895 * process.c (wait_reading_process_output): Likewise.
6896 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6897 * search.c (search_buffer, boyer_moore): Likewise.
6898 * syntax.c (scan_sexps_forward): Likewise.
6899 * xdisp.c (try_scrolling): Likewise.
6900 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6901 (face_at_string_position): Likewise.
6902 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6903 * xselect.c (x_get_window_property, receive_incremental_selection)
6904 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6905 Likewise.
6906 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6907
6f704c76
DN
69082010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6909
ded80a25
DN
6910 * callproc.c (child_setup): Remove subprocesses conditional.
6911 Remove code dealing with SET_EMACS_PRIORITY, unused.
6912
49d937f4 6913 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
6914 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6915
6916 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6917 (__do_global_dtors, __main): Use void in definition.
6918 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6919 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6920 the only users from ...
6921 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6922 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6923 (HAVE_VOLATILE): Remove, unused.
6924
6f704c76
DN
6925 Convert more function definitions to standard C.
6926 * xdisp.c (window_box_edges, handle_single_display_spec)
6927 (display_string): Convert definition to standard C.
6928 * scroll.c (do_direct_scrolling, scrolling_1):
6929 * dispnew.c (allocate_matrices_for_frame_redisplay)
6930 (mirrored_line_dance):
6931 * coding.c (code_convert_string):
6932 * charset.c (map_charset_chars):
6933 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6934 (Fregister_ccl_program, Fregister_code_conversion_map):
6935 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6936 (head_table): Make static and const.
6937
e6cfa7c3
AS
69382010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6939
6940 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6941 (PROFILING_LDFLAGS): Set from substitution.
6942 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6943 CFLAGS last.
6944
892dd565
KH
69452010-07-12 Kenichi Handa <handa@m17n.org>
6946
6f2cdcd1
KH
6947 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6948 (shortlisp): Likewise.
6949
892dd565
KH
6950 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6951
6952 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6953 of FONT_ENTITY_INDEX.
6954 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6955 property, get the property value dynamically.
6956 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 6957 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 6958 return value changed.
bba3e508 6959 (syms_of_font): Adjust for the above change.
892dd565 6960
ae96d47a
AS
69612010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6962
c8fc18ee
AS
6963 * blockinput.h: Remove obsolete comment.
6964
89887d67
AS
6965 * lisp.h: Include <stddef.h>.
6966 (OFFSETOF): Don't define.
6967 (VECSIZE): Use offsetof instead of OFFSETOF.
6968 (PSEUDOVECSIZE): Likewise.
6969 * process.c (conv_sockaddr_to_lisp): Likewise.
6970 * alloc.c: Don't include <stddef.h>.
6971 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6972
ae96d47a
AS
6973 * process.c: Remove obsolete comment.
6974
635c0aa1
CY
69752010-07-11 Chong Yidong <cyd@stupidchicken.com>
6976
6977 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6978
a64df650
AS
69792010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6980
8966b757
AS
6981 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6982 index, rindex.
6983 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6984 * editfns.c (Fuser_full_name, Fformat): Likewise.
6985 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6986 * fileio.c (Ffile_symlink_p): Likewise.
6987 * filelock.c (current_lock_owner): Likewise.
6988 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6989 * fontset.c (fontset_pattern_regexp): Likewise.
6990 * lread.c (read1): Likewise.
6991 * sysdep.c (init_system_name): Likewise.
6992 * xfns.c (select_visual): Likewise.
6993 * s/hpux10-20.h (index, rindex): Don't define.
6994 * s/ms-w32.h (index): Likewise.
6995 * s/usg5-4.h: Likewise.
6996
cf237e27
AS
6997 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6998
a8fe7202
AS
6999 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7000 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7001 (egetenv): Likewise.
7002 * doprnt.c (doprnt): Likewise.
7003 * editfns.c (set_time_zone_rule, format2): Likewise.
7004 * emacs.c (decode_env_path): Likewise.
7005 * eval.c (signal_error, error): Likewise.
7006 * insdel.c (replace_range_2): Likewise.
7007 * keyboard.c (cmd_error_internal): Likewise.
7008 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7009 * print.c (write_string, write_string_1, print_error_message):
7010 Likewise.
7011 * vm-limit.c (warn_function, memory_warnings): Likewise.
7012 * xdisp.c (message1, message1_nolog, message_with_string)
7013 (vmessage, message, message_nolog): Likewise.
7014 * emacs.c: Remove duplicate declaration.
7015 * keyboard.h: Likewise.
7016 * lisp.h: Update prototypes.
7017
bb8e180f
AS
7018 * eval.c: Fix indentation problem.
7019
01c35094 7020 * keyboard.c: Include "process.h".
83380e65 7021
a64df650
AS
7022 * eval.c: Remove obsolete noinline declaration.
7023 * fns.c: Likewise.
7024
6a8033e1
KR
70252010-07-11 Ken Raeburn <raeburn@raeburn.org>
7026
7027 * doprnt.c (doprnt): Take a va_list argument instead of count and
7028 pointer.
7029 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 7030 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
7031 changed to take a va_list argument.
7032 (message): New variadic wrapper.
7033 (message_nolog): Now a variadic function, calling vmessage.
7034 * lisp.h: Include stdarg.h for va_list.
7035 (doprnt, error, message, message_nolog): Decls updated.
7036
462aa963
EZ
70372010-07-11 Eli Zaretskii <eliz@gnu.org>
7038
7039 * process.c (syms_of_process) <delete-exited-processes>: Define
7040 even if !subprocesses.
7041 (delete_exited_processes): Ditto.
7042
7043 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7044 (delete_exited_processes): Don't define.
7045
48104462
CY
70462010-07-10 Chong Yidong <cyd@stupidchicken.com>
7047
7048 * frame.c (make_frame): Initialize menu_bar_lines and
7049 tool_bar_lines members.
bba3e508
SM
7050 (make_initial_frame, make_terminal_frame):
7051 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
7052
7053 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7054
f388c88a
EZ
70552010-07-10 Eli Zaretskii <eliz@gnu.org>
7056
7057 * process.c: Reshuffle #include's. Condition some of the global
7058 and static variables on `subprocesses'.
7059 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7060 Leave only one implementation.
7061 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7062 (kill_buffer_processes, Flist_system_processes)
7063 (Fprocess_attributes, init_process, syms_of_process): Unify the
7064 implementations for with subprocesses and without them.
7065
723f5a07
J
70662010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7067
7068 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7069 correct size for Motif.
7070 (free_frame_menubar): Call x_set_window_size to update frame size.
7071
7072 * xfns.c (x_window): Set borderWidth to 0 for pane and
7073 EmacsFrame. Frame size calculation is wrong otherwise.
7074
2536a4b7
MA
70752010-07-09 Michael Albinus <michael.albinus@gmx.de>
7076
7077 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7078 allows to suppress errors when polling in Emacs' main loop.
7079 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7080 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7081 (Fdbus_method_error_internal, Fdbus_send_signal)
7082 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7083 (Fdbus_register_method): Use it. (Bug#6579)
7084
5842a27b
DN
70852010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7086
7087 * alloc.c: Convert DEFUNs to standard C.
7088 * buffer.c:
7089 * bytecode.c:
7090 * callint.c:
7091 * callproc.c:
7092 * casefiddle.c:
7093 * casetab.c:
7094 * category.c:
7095 * character.c:
7096 * charset.c:
7097 * chartab.c:
7098 * cmds.c:
7099 * coding.c:
7100 * composite.c:
7101 * data.c:
7102 * dbusbind.c:
7103 * dired.c:
7104 * dispnew.c:
7105 * doc.c:
7106 * dosfns.c:
7107 * editfns.c:
7108 * emacs.c:
7109 * eval.c:
7110 * fileio.c:
7111 * filelock.c:
7112 * floatfns.c:
7113 * fns.c:
7114 * font.c:
7115 * fontset.c:
7116 * frame.c:
7117 * fringe.c:
7118 * image.c:
7119 * indent.c:
7120 * insdel.c:
7121 * keyboard.c:
7122 * keymap.c:
7123 * lread.c:
7124 * macros.c:
7125 * marker.c:
7126 * menu.c:
7127 * minibuf.c:
7128 * msdos.c:
7129 * nsfns.m:
7130 * nsmenu.m:
7131 * nsselect.m:
7132 * print.c:
7133 * process.c:
7134 * search.c:
7135 * sound.c:
7136 * syntax.c:
7137 * term.c:
7138 * terminal.c:
7139 * textprop.c:
7140 * undo.c:
7141 * w16select.c:
7142 * w32console.c:
7143 * w32fns.c:
7144 * w32font.c:
7145 * w32menu.c:
7146 * w32proc.c:
7147 * w32select.c:
7148 * window.c:
7149 * xdisp.c:
7150 * xfaces.c:
7151 * xfns.c:
7152 * xmenu.c:
7153 * xselect.c:
7154 * xsettings.c:
7155 * xsmfns.c: Likewise.
7156
d568829b
EZ
71572010-07-08 Eli Zaretskii <eliz@gnu.org>
7158
7159 * process.c (kbd_is_on_hold, hold_keyboard_input)
7160 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7161
52214050
J
71622010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7163
7164 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7165 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7166 unless USE_LUCID.
7167
313d9eb2
DN
71682010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7169
a628ad9d
JB
7170 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7171 declaration.
d8825aa3 7172
295d0d8f
DN
7173 Clean up include guards.
7174 * tparam.c: Remove include guards for config.h, string.h and code
7175 that assumes #ifndef emacs.
7176 * termcap.c:
7177 * unexalpha.c:
7178 * sysdep.c:
7179 * filemode.c:
7180 * filelock.c:
7181 * bidi.c: Likewise.
7182
49d9e6b0
DN
7183 Remove prefix-args.c
7184 * prefix-args.c: Remove file.
7185 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7186 * Makefile.in (temacs${EXEEXT}): Remove references to
7187 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7188 (mostlyclean): Remove reference to prefix-args.
7189 (prefix-args): Remove.
7190
313d9eb2
DN
7191 Simplify cstart_of_data, start_of_code and related code.
7192 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7193 (start_of_data): Merge into start_of_data function.
7194 * sysdep.c (start_of_text): Remove. Move simplified versions of
7195 it in the only users: unexaix.c and unexec.c.
7196 (read_input_waiting): Remove local declaration of quit_char.
7197 (start, etext): Remove declarations.
7198 (start_of_data): Merge with the version in mem-limits.h and move
7199 to vm-limits.c.
7200 * vm-limit.c (start_of_data): Merged and simplified version of the
7201 code formerly in mem-limits.h and sysdep.c.
7202 * unexec.c (start): New declaration, moved from sysdep.c.
7203 (start_of_text): Simplified version of the code formerly in sysdep.c.
7204 * unexaix.c (start_of_text): Simplified version of the code
7205 formerly in sysdep.c.
7206 * m/alpha.h (HAVE_TEXT_START): Remove.
7207 (TEXT_START): Move ...
7208 * unexalpha.c (TEXT_START): ... here.
7209 * s/hpux10-20.h (TEXT_START): Remove.
7210 * s/darwin.h (TEXT_START):
7211 * m/mips.h (TEXT_START):
7212 * m/macppc.h (HAVE_TEXT_START):
7213 * m/m68k.h (TEXT_START):
7214 * m/iris4d.h (TEXT_START):
7215 * m/intel386.h (TEXT_START):
7216 * m/ibmrs6000.h (TEXT_START):
7217 * m/ia64.h (HAVE_TEXT_START):
7218 * s/msdos.h (TEXT_START): Likewise.
7219
72af86bd
AS
72202010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7221
7222 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7223 (overrun_check_free, xstrdup, allocate_string)
7224 (allocate_string_data, compact_small_strings, Fmake_string)
7225 (make_unibyte_string, make_multibyte_string)
7226 (make_string_from_bytes, make_specified_string, make_float)
7227 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7228 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7229 memcpy, memmove, memset, memcmp.
7230 * atimer.c (start_atimer, set_alarm): Likewise.
7231 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7232 (mmap_realloc, init_buffer_once): Likewise.
7233 * callint.c (Fcall_interactively): Likewise.
7234 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7235 (getenv_internal_1): Likewise.
7236 * casefiddle.c (casify_object): Likewise.
7237 * ccl.c (ccl_driver): Likewise.
7238 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7239 * charset.c (load_charset_map_from_file)
7240 (load_charset_map_from_file, load_charset_map_from_vector)
7241 (Fdefine_charset_internal): Likewise.
7242 * cm.c (Wcm_clear): Likewise.
7243 * coding.c (decode_eol, decode_coding_object)
7244 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7245 * data.c (Faset): Likewise.
7246 * dired.c (directory_files_internal, file_name_completion_stat):
7247 Likewise.
7248 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7249 (clear_glyph_row, copy_row_except_pointers)
7250 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7251 (save_current_matrix, restore_current_matrix)
7252 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7253 (mirror_line_dance, scrolling_window): Likewise.
7254 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7255 Likewise.
7256 * doprnt.c (doprnt): Likewise.
7257 * editfns.c (Fuser_full_name, make_buffer_string_both)
7258 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7259 * emacs.c (sort_args): Likewise.
7260 * eval.c (Fapply, Ffuncall): Likewise.
7261 * fileio.c (Ffile_name_directory, make_temp_name)
7262 (Fexpand_file_name, search_embedded_absfilename)
7263 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7264 (auto_save_error): Likewise.
7265 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7266 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7267 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7268 (Fmake_hash_table): Likewise.
7269 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7270 * ftfont.c (ftfont_text_extents): Likewise.
7271 * getloadavg.c (getloadavg): Likewise.
7272 * image.c (define_image_type, make_image, make_image_cache)
7273 (x_create_x_image_and_pixmap, xbm_image_p)
7274 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7275 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7276 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7277 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7278 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7279 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7280 Likewise.
7281 * indent.c (scan_for_column, compute_motion): Likewise.
7282 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7283 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7284 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7285 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7286 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7287 (store_user_signal_events, menu_bar_items, tool_bar_items)
7288 (process_tool_bar_item, append_tool_bar_item)
7289 (read_char_minibuf_menu_prompt, read_key_sequence)
7290 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7291 Likewise.
7292 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7293 Likewise.
7294 * lisp.h (STRING_COPYIN): Likewise.
7295 * lread.c (Fload, read1, oblookup): Likewise.
7296 * msdos.c (Frecent_doskeys): Likewise.
7297 * nsfns.m (Fx_create_frame): Likewise.
7298 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7299 Likewise.
7300 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7301 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7302 Likewise.
7303 * nsmenu.m (ns_update_menubar): Likewise.
7304 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7305 * print.c (print_unwind, printchar, strout, print_string)
7306 (print_error_message): Likewise.
7307 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7308 (Fmake_network_process, Fnetwork_interface_list)
7309 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7310 (init_process): Likewise.
7311 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7312 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7313 Likewise.
7314 * scroll.c (do_scrolling, do_direct_scrolling)
7315 (scrolling_max_lines_saved): Likewise.
7316 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7317 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7318 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7319 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7320 (emacs_set_tty): Likewise.
7321 * term.c (encode_terminal_code, calculate_costs)
7322 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7323 Likewise.
7324 * termcap.c (tgetst1, gobble_line): Likewise.
7325 * termhooks.h (EVENT_INIT): Likewise.
7326 * tparam.c (tparam1): Likewise.
7327 * unexalpha.c (unexec): Likewise.
7328 * unexec.c (write_segment): Likewise.
7329 * unexmacosx.c (unexec_write_zero): Likewise.
7330 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7331 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7332 * w32font.c (w32font_list_family, w32font_text_extents)
7333 (w32font_list_internal, w32font_match_internal)
7334 (w32font_open_internal, compute_metrics, Fx_select_font):
7335 Likewise.
7336 * w32menu.c (set_frame_menubar, add_menu_item)
7337 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7338 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7339 * w32uniscribe.c (uniscribe_list_family): Likewise.
7340 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7341 * window.c (make_window, replace_window, set_window_buffer)
7342 (Fsplit_window): Likewise.
7343 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7344 (add_to_log, message3, x_consider_frame_title)
7345 (append_space_for_newline, extend_face_to_end_of_line)
7346 (decode_mode_spec_coding, init_glyph_string): Likewise.
7347 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7348 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7349 (face_attr_equal_p, make_realized_face, make_face_cache)
7350 (free_realized_faces, lookup_named_face, smaller_face)
7351 (face_with_height, lookup_derived_face)
7352 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7353 (Finternal_set_font_selection_order, realize_default_face)
7354 (compute_char_face, face_at_buffer_position)
7355 (face_for_overlay_string, face_at_string_position, merge_faces):
7356 Likewise.
7357 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7358 (Fx_window_property, x_create_tip_frame)
7359 (Fx_backspace_delete_keys_p): Likewise.
7360 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7361 (xfont_text_extents): Likewise.
7362 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7363 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7364 * xselect.c (x_queue_event, x_get_window_property)
7365 (receive_incremental_selection): Likewise.
7366 * xsmfns.c (x_session_check_input): Likewise.
7367 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7368 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7369 Likewise.
7370 * character.h (BCOPY_SHORT): Removed.
7371 * config.in: Regenerate.
7372 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7373 * emacs.c (main) [PROFILING]: Don't declare
7374 dump_opcode_frequencies.
7375 * lisp.h (safe_bcopy): Remove declaration.
7376 (memset) [!HAVE_MEMSET]: Declare.
7377 (memcpy) [!HAVE_MEMCPY]: Likewise.
7378 (memmove) [!HAVE_MEMMOVE]: Likewise.
7379 (memcmp) [!HAVE_MEMCMP]: Likewise.
7380 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7381 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7382 Don't define.
7383 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7384 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7385 (BCOPY_DOWNWARD_SAFE): Don't define.
7386 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7387 (memcpy) [!HAVE_MEMCPY]: Define.
7388 (memmove) [!HAVE_MEMMOVE]: Define.
7389 (memcmp) [!HAVE_MEMCMP]: Define.
7390
cb768704
J
73912010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7392
7393 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7394 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7395 New functions.
cb768704
J
7396 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7397 select on empty input mask.
7398 (init_process): Initialize kbd_is_on_hold to 0.
7399
7400 * process.h (hold_keyboard_input, unhold_keyboard_input)
7401 (kbd_on_hold_p): Declare.
7402
7403 * keyboard.c (input_available_signal): Declare.
7404 (kbd_buffer_nr_stored): New function.
7405 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7406 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7407 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7408 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7409 (tty_read_avail_input): If input is on hold, return.
7410 Don't read more that free slots in kbd_buffer (Bug#6571).
7411
3a8ce822
EZ
74122010-07-07 Eli Zaretskii <eliz@gnu.org>
7413
7414 * msdos.h:
7415 * msdos.c:
7416 * dosfns.c:
7417 * w16select.c: Convert function definitions to ANSI C.
7418
a628ad9d
JB
7419 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7420 Remove unused prototypes.
3a8ce822 7421
cf84bb53
JB
74222010-07-07 Juanma Barranquero <lekktu@gmail.com>
7423
7424 * coding.c, sysdep.c: Convert some more functions to standard C.
7425
1a4990fb
JB
74262010-07-07 Juanma Barranquero <lekktu@gmail.com>
7427
7428 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7429 (encode_coding_object): Use SPECPDL_INDEX.
7430 (syms_of_coding): Use DOS_NT.
7431
c0f2f16b
DN
74322010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7433
48fb6855
DN
7434 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7435
c0f2f16b
DN
7436 Make the function member of Lisp_Subr use standard C prototypes.
7437 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7438 (DECL_ALIGN): Add a cast for the function.
7439 * eval.c (Feval, Ffuncall): Use the proper type for each type
7440 function call.
7441
67aecef9
CY
74422010-07-06 Chong Yidong <cyd@stupidchicken.com>
7443
7444 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7445 fringe face id, so face-remapping-alist works (Bug#6091).
7446
b56ceb92
JB
74472010-07-06 Juanma Barranquero <lekktu@gmail.com>
7448
7449 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7450 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7451 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7452
7af07b96
AS
74532010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7454
7455 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7456 * lisp.h: Declare x_get_keysym_name.
7457 * keyboard.c (modify_event_symbol): Don't declare
7458 x_get_keysym_name here.
7459
69e24e34
DN
74602010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7461
7462 * ecrt0.c: Revert conversion to standard C.
7463
d3da34e0 74642010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7465
7466 * vm-limit.c (memory_warnings):
7467 * keyboard.c (modify_event_symbol):
7468 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7469 (round2, emacs_rint):
7470 * process.c (send_process, old_sigpipe): Convert function
7471 definitions and declarations to standard C.
7472
74732010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7474
7475 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7476 * xdisp.c: Convert function definitions to standard C.
7477
7478 * cm.c (cmputc): Arg C is now int, not char.
7479 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7480
00be444c
J
74812010-07-05 James Cloos <cloos@jhcloos.com>
7482
7483 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7484
7485 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7486 _NET_WM_ICON_NAME atoms.
7487
7488 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7489 and _NET_WM_ICON_NAME properties, too, matching what is
7490 done in the Gtk+ case.
7491
e4c8d29a
J
74922010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7493
ff919460
J
7494 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7495
e4c8d29a
J
7496 * xsmfns.c (SSDATA): New macro.
7497 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7498 passed to strlen/strcpy/strcat.
bba3e508
SM
7499 (create_client_leader_window): Surround with #ifndef USE_GTK.
7500 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7501
7502 * xsettings.c (something_changedCB, parse_settings)
7503 (apply_xft_settings): Reformat prototype.
7504 (something_changedCB, init_gconf): Remove unused variable i.
7505 (read_settings): Remove unused variable long_len.
7506
7507 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7508 (xg_get_image_for_pixmap, create_dialog)
7509 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7510 (menuitem_highlight_callback, make_menu_item)
7511 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7512 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7513 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7514 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7515 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7516 (xg_tool_bar_item_expose_callback): Reformat prototype.
7517 (xg_update_menubar): GList *group => GSList *group.
7518 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7519 before use.
7520 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7521 to GTK_IMAGE (wimage).
7522
dd4c5104
DN
75232010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7524
898b4c5c
DN
7525 * atimer.c: Use "" instead of <> for local includes for
7526 consistency with the rest of the code.
7527
dd4c5104
DN
7528 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7529 * xrdb.c (get_system_name):
7530 * window.c (shrink_windows):
7531 * syntax.c (forw_comment):
7532 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7533 (ins_del_costs):
7534 * mem-limits.h (start_of_data):
7535 * lread.c (readevalloop):
7536 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7537 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7538 * frame.c (x_get_focus_frame):
7539 * floatfns.c (fmod_float):
7540 * fileio.c (choose_write_coding_system):
7541 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7542 (malloc_initialize_hook, sort_args, synchronize_locale):
7543 * doprnt.c (doprnt):
7544 * dired.c (compile_pattern):
7545 * data.c (fmod_float):
7546 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7547 (map_char_table_for_charset):
7548 * charset.c (define_charset_internal):
7549 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7550 to standard C.
7551
9a39b306 75522010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7553 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7554
7555 * lread.c (read1): Fix up last change to not mess up `c'.
7556
e6cb2cbb
JB
75572010-07-04 Juanma Barranquero <lekktu@gmail.com>
7558
7559 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7560
438105ed
JB
75612010-07-04 Juanma Barranquero <lekktu@gmail.com>
7562
7563 Fix prototypes.
7564
e5447b22 7565 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7566 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7567 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7568 arg, as required by internal_condition_case_1.
dcc7404b 7569 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7570 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7571 (analyse_first): Fix "const const".
e5447b22 7572 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7573 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7574 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7575
971de7fb
DN
75762010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7577
7578 * alloc.c: Convert function definitions to standard C.
7579 * atimer.c:
7580 * bidi.c:
7581 * bytecode.c:
7582 * callint.c:
7583 * callproc.c:
7584 * casefiddle.c:
7585 * casetab.c:
7586 * category.c:
7587 * ccl.c:
7588 * character.c:
7589 * charset.c:
7590 * chartab.c:
7591 * cmds.c:
7592 * coding.c:
7593 * composite.c:
7594 * data.c:
7595 * dbusbind.c:
7596 * dired.c:
7597 * dispnew.c:
7598 * doc.c:
7599 * doprnt.c:
7600 * ecrt0.c:
7601 * editfns.c:
7602 * fileio.c:
7603 * filelock.c:
7604 * filemode.c:
7605 * fns.c:
7606 * font.c:
7607 * fontset.c:
7608 * frame.c:
7609 * fringe.c:
7610 * ftfont.c:
7611 * ftxfont.c:
7612 * gtkutil.c:
7613 * indent.c:
7614 * insdel.c:
7615 * intervals.c:
7616 * keymap.c:
7617 * lread.c:
7618 * macros.c:
7619 * marker.c:
7620 * md5.c:
7621 * menu.c:
7622 * minibuf.c:
7623 * prefix-args.c:
7624 * print.c:
7625 * ralloc.c:
7626 * regex.c:
7627 * region-cache.c:
7628 * scroll.c:
7629 * search.c:
7630 * sound.c:
7631 * strftime.c:
7632 * syntax.c:
7633 * sysdep.c:
7634 * termcap.c:
7635 * terminal.c:
7636 * terminfo.c:
7637 * textprop.c:
7638 * tparam.c:
7639 * undo.c:
7640 * unexelf.c:
7641 * window.c:
7642 * xfaces.c:
7643 * xfns.c:
7644 * xfont.c:
7645 * xftfont.c:
7646 * xgselect.c:
7647 * xmenu.c:
7648 * xrdb.c:
7649 * xselect.c:
7650 * xsettings.c:
7651 * xsmfns.c:
7652 * xterm.c: Likewise.
7653
ae492bec
EZ
76542010-07-03 Eli Zaretskii <eliz@gnu.org>
7655
76ea4cc9
EZ
7656 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7657 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
7658 `reverse' is specified in the frame parameters.
7659 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
7660 internal-set-lisp-face-attribute. Initialize screen colors from
7661 initial_screen_colors[] when f->default_face_done_p is zero,
7662 instead of depending on being called with default-frame-alist as
7663 the alist argument.
7664
7665 * xfaces.c (update_face_from_frame_parameter): Move out of
7666 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7667 with HAVE_WINDOW_SYSTEM.
7668
1e6255ae
EZ
7669 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7670 to menu-bar-mode, if not set in the frame parameters or in
7671 default-frame-alist.
7672
ae492bec
EZ
7673 * w32console.c (sys_tputs): Adjust argument list to prototype in
7674 term.c.
7675
3a35a84c
JB
76762010-07-03 Juanma Barranquero <lekktu@gmail.com>
7677
7678 * lisp.h (memory_warnings): Fix prototype.
7679
7680 * cm.h (evalcost): Fix prototype.
7681
7682 * cm.c (evalcost): Fix arg type.
7683
c532d349
DN
76842010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7685
7686 * term.c (term_clear_mouse_face, Fidentity):
7687 * syssignal.h (signal_handler_t):
7688 * lisp.h (memory_warnings):
7689 * coding.h (preferred_coding_system):
7690 * cm.h (evalcost):
7691 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7692
c0b36d46
EZ
76932010-07-02 Eli Zaretskii <eliz@gnu.org>
7694
7695 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7696 from prototypes.
7697
7698 * msdos.h (load_pixmap): Don't define away.
7699
383e0970
J
77002010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7701
f57e2426
J
7702 * lisp.h:
7703 * atimer.h: Remove define for P_.
7704
7705 * alloc.c: Remove __P and P_ from .c and .m files.
7706 * atimer.c:
7707 * buffer.c:
7708 * callint.c:
7709 * category.c:
7710 * charset.c:
7711 * chartab.c:
7712 * cm.c:
7713 * coding.c:
7714 * composite.c:
7715 * data.c:
7716 * dired.c:
7717 * dispnew.c:
7718 * doc.c:
7719 * editfns.c:
7720 * emacs.c:
7721 * eval.c:
7722 * fileio.c:
7723 * filelock.c:
7724 * fns.c:
7725 * font.c:
7726 * fontset.c:
7727 * frame.c:
7728 * ftfont.c:
7729 * ftxfont.c:
7730 * gmalloc.c:
7731 * gtkutil.c:
7732 * image.c:
7733 * indent.c:
7734 * intervals.c:
7735 * keyboard.c:
7736 * keymap.c:
7737 * lread.c:
7738 * marker.c:
7739 * menu.c:
7740 * minibuf.c:
7741 * print.c:
7742 * process.c:
7743 * scroll.c:
7744 * search.c:
7745 * sound.c:
7746 * strftime.c:
7747 * syntax.c:
7748 * sysdep.c:
7749 * term.c:
7750 * terminal.c:
7751 * textprop.c:
7752 * unexalpha.c:
7753 * w32console.c:
7754 * w32fns.c:
7755 * w32font.c:
7756 * w32menu.c:
7757 * w32term.c:
7758 * w32uniscribe.c:
7759 * window.c:
7760 * xdisp.c:
7761 * xfaces.c:
7762 * xfns.c:
7763 * xfont.c:
7764 * xftfont.c:
7765 * xmenu.c:
7766 * xselect.c:
7767 * xterm.c: Likewise.
7768
383e0970 7769 Remove P_ and __P macros.
f57e2426
J
7770 * atimer.h: Remove P_ and __P macros.
7771 * buffer.h:
383e0970
J
7772 * category.h:
7773 * ccl.h:
7774 * character.h:
7775 * charset.h:
7776 * cm.h:
7777 * coding.h:
7778 * composite.h:
7779 * dispextern.h:
7780 * disptab.h:
9e892c8d 7781 * dosfns.h:
383e0970
J
7782 * font.h:
7783 * fontset.h:
7784 * frame.h:
7785 * gtkutil.h:
7786 * indent.h:
7787 * intervals.h:
7788 * keyboard.h:
7789 * keymap.h:
7790 * lisp.h:
7791 * macros.h:
7792 * md5.h:
7793 * menu.h:
7794 * msdos.h:
7795 * nsterm.h:
7796 * puresize.h:
7797 * region-cache.h:
7798 * syntax.h:
7799 * syssignal.h:
7800 * systime.h:
7801 * termhooks.h:
9e892c8d 7802 * w32font.h:
383e0970
J
7803 * w32term.h:
7804 * widget.h:
7805 * window.h:
7806 * xgselect.h:
7807 * xsettings.h:
7808 * xterm.h: Likewise.
7809
98601119
DN
78102010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7811
d9170db5
DN
7812 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7813
98601119
DN
7814 Cleanup old code.
7815 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7816 * syssignal.h: Remove code for Lynx, not supported anymore.
7817 * vm-limit.c: Remove unused code the depends on emacs not being
7818 defined and NO_LIM_DATA being defined.
7819 * mem-limits.h: Remove dead code.
7820
1f984e12
J
78212010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7822
c49d071a
J
7823 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7824
9d5405ec
J
7825 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7826 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7827
7a18115b
J
7828 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7829 parameters, they are already absolute.
7830
a628ad9d
JB
7831 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7832 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 7833
a628ad9d 7834 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 7835
a628ad9d
JB
7836 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7837 Update FRAME_TOOLBAR_HEIGHT.
581a8100 7838
a628ad9d
JB
7839 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7840 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 7841
c1ef4455
CY
78422010-06-30 Chong Yidong <cyd@stupidchicken.com>
7843
bba3e508
SM
7844 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7845 Don't check default-frame-alist.
c1ef4455 7846
ce8f5a9a
AS
78472010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7848
7849 * process.c (create_process): Avoid using invalid file descriptors.
7850
7851 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7852
bf935339
J
78532010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7854
7855 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7856 Improve documentation. Return font regardless of use_system_font.
7857 (syms_of_xsettings): Improve documentation for font-use-system-font.
7858
7c33a057
CY
78592010-07-10 Chong Yidong <cyd@stupidchicken.com>
7860
2ec1b5ee
CY
7861 * xfaces.c (realize_face): Garbage the frame if a face is removed
7862 (Bug#6593).
7863
78642010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7865
7866 * keyboard.c: Remove duplicate <setjmp.h>.
7867 (read_key_sequence): Remove volatile qualifiers.
7868
78692010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7870
7871 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7872 (struct glyph_row): New members left_fringe_offset and
7873 right_fringe_offset.
7874
7875 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7876 specially.
7877 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7878 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7879
7880 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 7881 Take account of bitmap offset.
2ec1b5ee
CY
7882 (draw_window_fringes): Take account of window vscroll.
7883 (update_window_fringes): Likewise. Extend top-aligned top indicator
7884 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7885 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7886 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7887
78882010-07-04 Juanma Barranquero <lekktu@gmail.com>
7889
7890 * w32fns.c (Qtooltip): Declare.
7891 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7892
78932010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7894
7895 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7896 grab on just Press (Bug#6499).
7897
78982010-07-02 Chong Yidong <cyd@stupidchicken.com>
7899
7900 * frame.c (Qtooltip): New var.
7901 (delete_frame): Use it. Fix faulty if statement. Don't update
7902 mode line for tooltip frames. Suggested by Martin Rudalics.
7903
7904 * xfns.c (x_create_tip_frame):
7905 * w32fns.c (x_create_tip_frame): Use it.
7906
79072010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
7908
7909 * xftfont.c (xftfont_open): Check font width one by one also when
7910 spacing is dual.
7911
7912 * ftfont.c (ftfont_open): Ditto.
7913
6259c2ec
GM
79142010-06-30 Glenn Morris <rgm@gnu.org>
7915
a46007e9
GM
7916 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7917
6259c2ec
GM
7918 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7919
7920 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7921 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7922 * s/darwin.h (SYSTEM_MALLOC):
7923 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7924
5d1d3d04
J
79252010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7926
7927 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7928 (ns_get_screen): Don't assign integer to f.
7929 (Fx_display_color_cells): Declarations before statements.
7930
e547b051
J
79312010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7932
5fc8e5bc
J
7933 * xfns.c (x_default_font_parameter): Remove got_from_system
7934 (Bug#6526).
7935
e547b051 7936 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
7937 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7938 New defines based on what configure finds.
e547b051
J
7939
7940 * xterm.c (XTflash): Use gtk_widget_get_window.
7941 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7942 gtk_adjustment_get_page_size.
7943 (handle_one_xevent): Use gtk_widget_get_mapped.
7944 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7945 messages.
7946
7947 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7948
7949 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7950 HAVE_GTK_FILE_SELECTION_NEW.
7951
bba3e508
SM
7952 * gtkutil.c (xg_display_open, xg_display_close):
7953 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
7954 (xg_display_open): Return type is void.
7955 (gtk_widget_set_has_window)
7956 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7957 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7958 (gtk_adjustment_set_page_increment)
7959 (gtk_adjustment_get_step_increment): #define these if not found
7960 by configure.
7961 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
7962 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7963 Use gtk_widget_get_window.
e547b051
J
7964 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7965 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7966 (create_dialog): Use gtk_dialog_get_action_area and
7967 gtk_dialog_get_content_area.
7968 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7969 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7970 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7971 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7972 Use g_object_ref and g_object_unref.
7973 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7974 Use gtk_widget_get_sensitive.
e547b051
J
7975 (xg_update_submenu): Use remove_submenu.
7976 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7977 properties instead to get old x and y position.
7978 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7979 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7980 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7981 (xg_get_tool_bar_widgets): New function.
7982 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7983 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7984 (toolbar_set_orientation): New #define based on if configure
7985 finds gtk_orientable_set_orientation.
7986 (xg_create_tool_bar): Call toolbar_set_orientation.
7987 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7988 instead of gtk_box_pack_start_defaults.
7989
b9229673
CY
79902010-06-28 Chong Yidong <cyd@stupidchicken.com>
7991
7992 * cmds.c (Fdelete_backward_char): Move into Lisp.
7993
bbc803b0
DN
79942010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7995
7996 * s/freebsd.h (BSD4_2): Remove redundant definition.
7997 bsd-common.h defines it already.
7998
6431f2e6
CY
79992010-06-27 Chong Yidong <cyd@stupidchicken.com>
8000
8001 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8002 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8003 tool-bar-mode, which are now set using these X resources at
8004 startup, to determine the defaults (Bug#2249).
8005
8006 * w32fns.c (Fx_create_frame):
8007 * nsfns.m (Fx_create_frame): Likewise.
8008
8009 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8010
8c079ebb
JB
80112010-06-24 Juanma Barranquero <lekktu@gmail.com>
8012
8013 * gtkutil.c (xg_update_scrollbar_pos):
8014 Avoid C99 mid-block variable declaration.
8015
e9b7ab96
JD
80162010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8017
bc869eca
JD
8018 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8019
2b7e356a 8020 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
8021
8022 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8023 if height is less than scroll bar min size.
8024 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8025
e9b7ab96
JD
8026 * xfns.c (x_default_font_parameter): Try to open font from system
8027 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8028
a628ad9d 80292010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
8030
8031 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8032
70c4cfbb
EZ
80332010-06-20 Eli Zaretskii <eliz@gnu.org>
8034
8035 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8036 most-positive-fixnum, be extra accurate when scrolling window
8037 start, to avoid missing the cursor line.
8038
ad5a12b5
EZ
80392010-06-19 Eli Zaretskii <eliz@gnu.org>
8040
8041 * xdisp.c (try_scrolling): Compute the limit for searching point
8042 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
8043 of 10 screen lines.
8044 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
8045 and
8046 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8047 for details.
8048
2a64315a 80492010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
8050
8051 * editfns.c (Fbyte_to_string): Pacify compiler.
8052
288cf4e9
SM
80532010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8054
8055 * lread.c (read1): Phase out old-style backquotes a bit more.
8056
6e6e5760
EZ
80572010-06-12 Eli Zaretskii <eliz@gnu.org>
8058
cbc4fd20
EZ
8059 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8060 bidimirror.h.
8061
8062 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8063
317fbf33
EZ
8064 * bidi.c (bidi_initialize): Remove explicit initialization of
8065 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 8066 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 8067 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
8068
8069 * biditype.h: New file.
8070
cbc4fd20
EZ
8071 * bidimirror.h: New file.
8072
6e6e5760
EZ
8073 * window.c (syms_of_window): Doc fix (bug#6409).
8074
4176cba2
RF
80752010-06-12 Romain Francoise <romain@orebokech.com>
8076
8077 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8078 ediff-hook.
8079
cb4bfcb5
GM
80802010-06-10 Glenn Morris <rgm@gnu.org>
8081
64c60c2f
GM
8082 * editfns.c (Fbyte_to_string): Pacify compiler.
8083
cb4bfcb5
GM
8084 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8085
2ec1b5ee
CY
80862010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8087
8088 * alloc.c (Fmake_byte_code): Don't access undefined argument
8089 (Bug#6517).
8090
80912010-06-25 Chong Yidong <cyd@stupidchicken.com>
8092
8093 * xdisp.c (next_element_from_image): Ensure that after-strings are
8094 read the next time we hit handle_stop (Bug#1336).
8095
80962010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8097
8098 * lread.c (read1): Signal error if #s is not followed by paren.
8099
81002010-06-19 Chong Yidong <cyd@stupidchicken.com>
8101
8102 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8103
8104 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8105
81062010-06-15 Glenn Morris <rgm@gnu.org>
8107
8108 * editfns.c (Fbyte_to_string): Pacify compiler.
8109
e454a4a3
SM
81102010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8111
8112 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8113 Check `object's type before accessing its guts.
8114
c1b1acc2
DN
81152010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8116
8117 * s/usg5-4.h: Fix previous change.
8118 Suggested by Lawrence Mitchell <wence@gmx.li>
8119
657d4c0b
AS
81202010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8121
8122 * minibuf.c (Fall_completions): Add more checks.
8123
9b27fd9f
JB
81242010-06-08 Juanma Barranquero <lekktu@gmail.com>
8125
8126 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8127
a99ebb40
DN
81282010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8129
d7c5d87d
DN
8130 * lread.c (X_OK): Remove, unused.
8131
0263a941
DN
8132 * dispnew.c: Remove obsolete comment.
8133
a99ebb40
DN
8134 Remove INCLUDED_FCNTL.
8135 * xterm.c (INCLUDED_FCNTL):
8136 * callproc.c (INCLUDED_FCNTL):
8137 * alloc.c (INCLUDED_FCNTL):
8138 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8139 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8140
13b5221f
MR
81412010-06-07 Martin Rudalics <rudalics@gmx.at>
8142
8143 * window.c (Fselect_window): Move `record_buffer' up to the
8144 beginning of this function, so the buffer gets recorded
8145 even if the selected window does not change.
8146 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8147
5220357f
JB
81482010-06-07 Juanma Barranquero <lekktu@gmail.com>
8149
8150 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8151 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8152
3085237c
DN
81532010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8154
8155 Remove BSTRING related code, all platforms define it.
8156 * s/usg5-4.h (BSTRING): Remove definition.
8157 * s/template.h (BSTRING):
8158 * s/msdos.h (BSTRING):
8159 * s/ms-w32.h (BSTRING):
8160 * s/hpux10-20.h (BSTRING):
8161 * s/gnu-linux.h (BSTRING):
8162 * s/darwin.h (BSTRING):
8163 * s/cygwin.h (BSTRING):
8164 * s/bsd-common.h (BSTRING):
8165 * s/aix4-2.h (BSTRING): Likewise.
8166 * sysdep.c: Remove code depending on BSTRING not being defined.
8167
409f2919
JB
81682010-06-05 Juanma Barranquero <lekktu@gmail.com>
8169
8170 Remove obsolete macro BASE_LEADING_CODE_P.
8171 * character.h (BASE_LEADING_CODE_P): Remove.
8172 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8173 * buffer.c (Fset_buffer_multibyte):
8174 * indent.c (scan_for_column, compute_motion):
8175 * insdel.c (count_combining_before, count_combining_after):
8176 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8177
087fc47a
JB
81782010-06-04 Juanma Barranquero <lekktu@gmail.com>
8179
8180 Turn `directory-sep-char' into a noop.
8181
8182 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8183 (DIRECTORY_SEP): Define unconditionally.
8184
8185 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8186
8187 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8188 call dostounix_filename directly.
8189
8190 * fileio.c (CORRECT_DIR_SEPS): Remove.
8191 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8192 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8193 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8194 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8195
8196 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8197 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8198
0eb7675e
AS
81992010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8200
a628ad9d
JB
8201 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8202 (Bug#6346)
0eb7675e 8203
78edd3b7
JB
82042010-06-03 Juanma Barranquero <lekktu@gmail.com>
8205
8206 * ccl.c (Fccl_program_p): Fix typo in docstring.
8207
eb697db5
DN
82082010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8209
8210 Move UNEXEC definition to autoconf.
8211 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8212 * s/sol2-10.h (UNEXEC):
8213 * s/irix6-5.h (UNEXEC):
8214 * s/hpux10-20.h (UNEXEC):
8215 * s/gnu-linux.h (UNEXEC):
8216 * s/darwin.h (UNEXEC):
8217 * s/cygwin.h (UNEXEC):
8218 * s/bsd-common.h (UNEXEC):
8219 * s/aix4-2.h (UNEXEC):
8220 * m/alpha.h (UNEXEC): Likewise.
8221 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8222
aa3830c4
JB
82232010-06-03 Juanma Barranquero <lekktu@gmail.com>
8224
8225 Remove obsolete pre-unicode2 macros.
8226 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8227 * composite.c (composition_reseat_it):
8228 * data.c (Faset):
8229 * fns.c (Ffillarray):
8230 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8231 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8232
d234d13e
JL
82332010-06-03 Juri Linkov <juri@jurta.org>
8234
8235 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8236 (Fswitch_to_buffer): Remove unused variable `err'.
8237
0d4bcf4d
GM
82382010-06-03 Glenn Morris <rgm@gnu.org>
8239
e23dc1e2
GM
8240 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8241
05b09564
GM
8242 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8243 now that AH_BOTTOM does it.
8244
824e2978
GM
8245 * m/hp800.h (HAVE_ALLOCA):
8246 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8247
0d4bcf4d
GM
8248 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8249 Remove NOT_C_CODE tests, it is always true now.
8250
c55d2abf
DN
82512010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8252
08a494a3
DN
8253 Fix config.h includes.
8254 * xsettings.c:
8255 * xgselect.c:
8256 * nsterm.m:
8257 * nsselect.m:
8258 * nsimage.m:
8259 * nsfont.m:
8260 * nsfns.m:
8261 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8262 other files do.
8263
75934b1d
DN
8264 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8265
9f32a766
DN
8266 * s/sol2-6.h: Remove obsolete comments.
8267
c55d2abf
DN
8268 Remove unnecessary alloca.h includes.
8269 * keymap.c: Do not include alloca.h, config.h does that.
8270 * sysdep.c: Likewise. Do not define fwrite, not used.
8271
06ac62b4
SM
82722010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8273
8274 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8275 the HAVE_TERMIO where it belongs (bug#6149).
8276
1ab8293c
SM
82772010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8278
8279 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8280 of bug#6305).
8281
6dcfd253
EZ
82822010-05-30 Eli Zaretskii <eliz@gnu.org>
8283
8284 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8285 state is always cached (bug#6306).
8286
6d26bbb2
EZ
82872010-05-29 Eli Zaretskii <eliz@gnu.org>
8288
06fa4a23
EZ
8289 Fix cursor motion in bidi-reordered continued lines.
8290 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8291 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8292 over continuation lines in bidi-reordered buffers.
8293 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8294 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8295
f5783df3
MA
82962010-05-28 Michael Albinus <michael.albinus@gmx.de>
8297
8298 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8299
7d56b2dd
KH
83002010-05-28 Kenichi Handa <handa@m17n.org>
8301
8302 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8303 Don't sheck SPEC if it is nil.
8304 (font_list_entities): Call font_delete_unmatched if
b925d231 8305 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8306
e58d4ff7
GM
83072010-05-28 Glenn Morris <rgm@gnu.org>
8308
8309 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8310
f1a5d776
CY
83112010-05-27 Chong Yidong <cyd@stupidchicken.com>
8312
8313 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8314 whether to trash.
8315 (internal_delete_file, Frename_file): Callers changed.
8316 (delete_by_moving_to_trash): Doc fix.
8317 (Fdelete_directory_internal): Don't move to trash.
8318
8319 * callproc.c (delete_temp_file):
8320 * buffer.c (Fkill_buffer): Callers changed.
8321
8322 * lisp.h: Update prototype.
8323
f44a59e6
CY
83242010-05-27 Chong Yidong <cyd@stupidchicken.com>
8325
8326 * xdisp.c (redisplay_window): After redisplay, check if point is
8327 still valid before setting it (Bug#6177).
8328
81ac4f35
GM
83292010-05-27 Glenn Morris <rgm@gnu.org>
8330
8331 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8332 Convert comments to Makefile format.
8333
8334 * Makefile.in (bootstrap-clean): No more Makefile.c.
8335
ccd89fb3
GM
83362010-05-26 Glenn Morris <rgm@gnu.org>
8337
90278cb6
GM
8338 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8339 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8340
ccd89fb3
GM
8341 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8342 Remove.
8343 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8344
b7050583
KH
83452010-05-26 Kenichi Handa <handa@m17n.org>
8346
8347 * composite.c (composition_compute_stop_pos): Fix condition for
8348 backward scanning.
8349
e5458003
GM
83502010-05-25 Glenn Morris <rgm@gnu.org>
8351
c345fe90
GM
8352 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8353 Move before TEMACS_LDFLAGS.
8354 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8355 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8356
2e0689ab
GM
8357 * Makefile.in (NOT_C_CODE): No longer define.
8358 (config.h): No longer include.
8359
8009a5e8
GM
8360 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8361 variables it may reference.
8362
e5458003
GM
8363 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8364 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8365
10f72a37
KH
83662010-05-25 Kenichi Handa <handa@m17n.org>
8367
8368 * dispextern.h (struct composition_it): New members rule_idx and
8369 charpos.
8370
8371 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8372 that the character positions of IT point the last character of the
8373 current grapheme cluster.
8374 (next_element_from_composition): Don't change character positions
8375 of IT.
8376 (append_composite_glyph): Set glyph->charpos to
8377 it->cmp_it.charpos.
8378
8379 * composite.c (autocmp_chars): Change the first argument to RULE,
8380 and try composition with RULE only.
8381 (composition_compute_stop_pos): Record the index number of the
8382 composition rule in CMP_IT->rule_idx.
8383 (composition_reseat_it): Call autocmp_chars repeatedly until the
8384 correct rule of the composition is found.
8385 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8386 is at the last character of the current grapheme cluster when
8387 CMP_IT->reversed_p is nonzero.
8388
171eda53 83892010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8390
171eda53
SM
8391 * editfns.c (Fbyte_to_string): New function.
8392
66a9f7f4
SM
83932010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8394
8395 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8396 Suggested by Masatake YAMATO <yamato@redhat.com>.
8397
d8c315d1
EZ
83982010-05-23 Eli Zaretskii <eliz@gnu.org>
8399
171eda53 8400 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8401
f5b416d2 84022010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8403
8404 * s/netbsd.h: If terminfo is found, use it in preference to
8405 termcap. (Bug#6190) [Backport from trunk]
8406
0416466c
EZ
84072010-05-19 Eli Zaretskii <eliz@gnu.org>
8408
11117830 8409 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8410
8411 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8412 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8413 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8414 and maxpos members instead of start.pos and end.pos, respectively.
8415
8416 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8417 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8418 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8419 (try_window_reusing_current_matrix, try_window_id):
8420 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8421 (init_from_display_pos, init_iterator): Use EMACS_INT for
8422 character and byte positions.
66a9f7f4 8423 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8424 arguments for minimum and maximum buffer positions seen by
8425 display_line for this row. Don't use iterator to find the
8426 position following the maximum one; instead, increment the
11117830
EZ
8427 position found by display_line directly. Fix logic; eol_pos
8428 should be tested before the rest. Handle the case of characters
8429 delivered from display vector (bug#6036). Fix tests related to
8430 it->method. Handle the truncated_on_right_p rows.
8431 (RECORD_MAX_MIN_POS): New macro.
8432 (display_line): Use it to record the minimum and maximum buffer
8433 positions for glyphs in the row being assembled. Record the
8434 position of the newline that terminates the line. If word wrap is
8435 in effect, restore minimum and maximum positions seen up to the
8436 wrap point, when iterator returns to it.
8437 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8438 row and cursor not already at point. Restore original pre-bidi
8439 code for unidirectional buffers.
d36fe237
EZ
8440
8441 * dispnew.c (increment_row_positions, check_matrix_invariants):
8442 Increment and check row->start.pos and row->end.pos, in addition
8443 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8444
11117830
EZ
8445 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8446 Display truncated_on_left_p and truncated_on_right_p flags.
8447 Formatting fixes.
8448 (pmtxrows): Display the ordinal number of each row. Don't display
8449 rows beyond the last one.
8450
8451 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8452 it is not copied by bidi_copy_it.
8453
6e83d800
EZ
84542010-05-22 Eli Zaretskii <eliz@gnu.org>
8455
8456 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8457 (Bug#6237)
8458
110683ad
CY
84592010-05-22 Chong Yidong <cyd@stupidchicken.com>
8460
8461 * image.c (Fimage_flush): Rename from image-refresh.
8462
98fe5161
CY
84632010-05-21 Chong Yidong <cyd@stupidchicken.com>
8464
8465 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8466 just one window.
8467
8468 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8469 (clear_image_cache): If the number of cached images is unusually
8470 large, decrease the cache eviction delay (Bug#6230).
8471
e8752c66
GM
84722010-05-21 Glenn Morris <rgm@gnu.org>
8473
66dbf213
GM
8474 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8475 Move these rules to ns.mk.
8476 * ns.mk: New file.
8477
04384b2d
GM
8478 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8479
e8752c66
GM
8480 * Makefile.in (CANNOT_DUMP): New, set by configure.
8481 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8482
2e2bbddb
JL
84832010-05-20 Juri Linkov <juri@jurta.org>
8484
8485 * fileio.c (Fdelete_file): Change interative spec to use
8486 `read-file-name' like in `find-file-read-args' where the default
8487 value is `default-directory' instead of `buffer-file-name'.
8488 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8489
31c4aaf6
KR
84902010-05-20 Kevin Ryde <user42@zip.com.au>
8491
8492 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8493 (Voverriding_terminal_local_map, Vsystem_key_alist)
8494 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8495
9d5cf9b6
GM
84962010-05-20 Glenn Morris <rgm@gnu.org>
8497
8498 * Makefile.in (DEPDIR): New constant.
8499 (DEPFLAGS): Set with configure, not cpp.
8500 (MKDEPDIR): New, set by configure.
8501 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8502 (clean): Use $DEPDIR.
8503 (deps_frag): Include from configure.
8504 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8505 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8506
bba3e508
SM
8507 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8508 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8509
7f34aec3
GM
85102010-05-19 Glenn Morris <rgm@gnu.org>
8511
d494e8f2
GM
8512 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8513
c1d0dcfd
GM
8514 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8515 (GNULIB_VAR): Remove.
8516 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8517
8518 * m/ibms390x.h (LINKER):
8519 * m/macppc.h (LINKER) [GNU_LINUX]:
8520 * s/aix4-2.h (ORDINARY_LINK):
8521 * s/cygwin.h (LINKER):
8522 * s/darwin.h (ORDINARY_LINK):
8523 * s/gnu.h (ORDINARY_LINK):
8524 * s/netbsd.h (LINKER):
8525 * s/usg5-4.h (ORDINARY_LINK):
8526 Move to configure.
8527
7f34aec3
GM
8528 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8529
754790b6
CY
85302010-05-18 Chong Yidong <cyd@stupidchicken.com>
8531
8532 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8533 prevent stack overflow if number of arguments is too large
8534 (Bug#6214).
8535
161e44d1
JB
85362010-05-18 Juanma Barranquero <lekktu@gmail.com>
8537
8538 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8539
be4ff9da
GM
85402010-05-18 Glenn Morris <rgm@gnu.org>
8541
9539dc5d
GM
8542 * s/gnu-linux.h: Combine two conditionals.
8543
8544 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8545 $(POST_ALLOC_OBJ).
8546
40dc6bf4
GM
8547 * Makefile.in (RALLOC_OBJ): New, set by configure.
8548 (rallocobj): Replace with the previous variable.
8549 (otherobj): Use $RALLOC_OBJ.
8550
8551 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8552 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8553
be4ff9da
GM
8554 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8555 (gmallocobj, vmlimitobj): Replace with previous two variables.
8556 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8557
16455a85
GM
85582010-05-17 Glenn Morris <rgm@gnu.org>
8559
8560 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8561 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8562
5fdb7468
GM
85632010-05-16 Glenn Morris <rgm@gnu.org>
8564
7ca1f3f9
GM
8565 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8566
7541dad5
GM
8567 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8568
da53fab9
GM
8569 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8570 trailing "/".
8571
b02a6645
GM
8572 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8573 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8574
8877ca0f
GM
8575 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8576 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8577 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8578 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8579 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8580
5fdb7468
GM
8581 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8582 Remove ${STARTFLAGS}, nothing ever sets it.
8583
95adb4b1
DN
85842010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8585
8586 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8587
676b6304
GM
85882010-05-16 Glenn Morris <rgm@gnu.org>
8589
9beab9ce
GM
8590 * Makefile.in (LIBX_BASE): Always define.
8591
8a95f0e7
GM
8592 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8593
676b6304
GM
8594 * Makefile.in (LIBXT): Always define.
8595
6e546d18
GM
85962010-05-15 Glenn Morris <rgm@gnu.org>
8597
4235ca47 8598 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 8599
6e546d18
GM
8600 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8601 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8602
8c5ff6dd
KR
86032010-05-15 Ken Raeburn <raeburn@raeburn.org>
8604
560bb7ae 8605 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
8606 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8607
8b4eb796
KR
8608 * emacs.c (main): Initialize initial-environment and
8609 process-environment before generating from env, not after.
8610
8c5ff6dd
KR
8611 Handle --version reasonably in CANNOT_DUMP configuration.
8612 * emacs.c (emacs_version, emacs_copyright): New string variables.
8613 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8614 (syms_of_emacs): Defvar them, and initialize them from the C
8615 string variables.
8616 (main): If initialization hasn't been done, print initial version
8617 info from the C strings, instead of starting an interactive session.
8618
dbd3f723
EZ
86192010-05-15 Eli Zaretskii <eliz@gnu.org>
8620
d20e1419
EZ
8621 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8622 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
8623 (bidi_paragraph_init): Remove redundant assertion that we are at
8624 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
8625
8626 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8627 (syms_of_xdisp): Defsubr it.
8628
d36fe237
EZ
8629 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8630
dbd3f723
EZ
8631 * Makefile.in: Fix MSDOS-related comments.
8632
02be533b
GM
86332010-05-15 Glenn Morris <rgm@gnu.org>
8634
1a82cca9
GM
8635 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8636 (really-lwlib, really-oldXMenu): Always define.
8637 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8638
3df7b338
GM
8639 * Makefile.in: Simplify cpp conditional.
8640
2b5f541b
GM
8641 * Makefile.in (${ns_appdir}): Simplify using umask.
8642
02be533b
GM
8643 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8644
4e2db1fe
SM
86452010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8646
8647 * eval.c (specbind): Remove left-over duplicate test.
8648 Disallow let-binding frame-local vars. Add comment.
8649
4b292a22
EZ
86502010-05-14 Eli Zaretskii <eliz@gnu.org>
8651
2fe72643 8652 Make the cache of bidi iterator states dynamically allocated.
1edbd309 8653 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
8654 (bidi_init_it): Call it.
8655 (bidi_cache_iterator_state): Enlarge the cache if needed.
8656
4e2db1fe 8657 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
8658 bidi_get_next_char_visually. All callers changed.
8659
82ebc97b
KH
86602010-05-14 Kenichi Handa <handa@m17n.org>
8661
8662 * dispextern.h (struct composition_it): New member reversed_p.
8663
8664 * composite.c (composition_compute_stop_pos): Search backward if
8665 ENDPOS < CHARPOS.
8666 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8667 Set CMP_IT->reversed_p.
b4b6e17e 8668 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 8669
4e2db1fe
SM
8670 * xdisp.c (set_iterator_to_next):
8671 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
8672 scanning backward. Call composition_compute_stop_pos if scan
8673 direction is changed.
8674 (next_element_from_buffer): Call composition_compute_stop_pos with
8675 negative ENDPOS if we are scanning backward.
8676 (next_element_from_composition): Pay attention to
8677 IT->cmp_it.reversed_p.
8678
0e5d7800
KH
86792010-05-14 Kenichi Handa <handa@m17n.org>
8680
560bb7ae 8681 * font.c (font_range): Return the range for the font found at first.
0e5d7800 8682
cb027b32
GM
86832010-05-14 Glenn Morris <rgm@gnu.org>
8684
177b0288
GM
8685 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8686
fbc00890
GM
8687 * Makefile.in (mktime, X11, register): Move undefs to configure.
8688
f14d1dfd
GM
8689 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8690 (MSDOS_X_OBJ): New variable.
8691 (MSDOS_SUPPORT_REAL): New constant.
8692 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8693 (obj): Use MSDOS_X_OBJ.
8694 (lisp): Use MSDOS_SUPPORT as a variable.
8695
11842bd8
GM
8696 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8697 (GPM_MOUSE_SUPPORT): Now it's a constant.
8698 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8699 not cpp.
8700
489d31a4 8701 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 8702 (ns_appresdir): Remove, unused.
e20f1f07 8703
489d31a4
GM
8704 * Makefile.in (SHELL): Move outside cpp section.
8705
cb027b32
GM
8706 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8707
5a903aa9
GM
87082010-05-13 Glenn Morris <rgm@gnu.org>
8709
3369c79f
GM
8710 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8711 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8712
d5e982a6
GM
8713 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8714 HAVE_WINDOW_SYSTEM must be too.
8715
6192e163
GM
8716 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8717 (lisp): Remove WINNT_SUPPORT.
8718
472c5d6b
GM
8719 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8720 Let configure set these variables (to empty) in this case as well.
8721
0116466b
GM
8722 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8723 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8724
5a903aa9
GM
8725 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8726 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8727 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8728 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8729 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 8730 the values output by configure.
5a903aa9
GM
8731 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8732
1a0d7c06
GM
87332010-05-12 Glenn Morris <rgm@gnu.org>
8734
b5457f14
GM
8735 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8736 (LINKER_WAS_SPECIFIED): Remove.
8737
1a0d7c06
GM
8738 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8739 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8740 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8741 * s/cygwin.h (LIB_GCC):
8742 * s/freebsd.h (LIB_GCC):
8743 * s/gnu-linux.h (LIB_GCC):
8744 * s/msdos.h (LIB_GCC):
8745 * s/netbsd.h (LIB_GCC):
8746 Move to configure.
8747
d1ddd1d0 87482010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
8749
8750 * ftfont.c: Fix incorrect parentheses of #if condition for
8751 definining M17N_FLT_USE_NEW_FEATURE.
8752
acddf8ae
GM
87532010-05-11 Glenn Morris <rgm@gnu.org>
8754
8755 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8756 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8757
ae5e04fa
EZ
87582010-05-10 Eli Zaretskii <eliz@gnu.org>
8759
8760 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8761 unibyte buffers. See
8762 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8763
7490175b
GM
87642010-05-10 Glenn Morris <rgm@gnu.org>
8765
97efb629
GM
8766 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8767 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8768 (LIBES): Use LIBS_SYSTEM as a variable.
8769 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8770 * s/aix4-2.h (LIBS_SYSTEM):
8771 * s/freebsd.h (LIBS_SYSTEM):
8772 * s/hpux10-20.h (LIBS_SYSTEM):
8773 * s/sol2-6.h (LIBS_SYSTEM):
8774 * s/unixware.h (LIBS_SYSTEM):
8775 Move to configure.
8776
7490175b
GM
8777 * s/aix4-2.h (MAIL_USE_LOCKF):
8778 * s/bsd-common.h (MAIL_USE_FLOCK):
8779 * s/darwin.h (MAIL_USE_FLOCK):
8780 * s/gnu-linux.h (MAIL_USE_FLOCK):
8781 * s/irix6-5.h (MAIL_USE_FLOCK):
8782 * s/template.h (MAIL_USE_FLOCK):
8783 Move to configure.
8784
0235128c 87852010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
8786
8787 * Version 23.2 released.
8788
0235128c 87892010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
8790
8791 * composite.c (autocmp_chars): Save point as marker before calling
8792 auto-composition-function (Bug#5984).
8793
8794 * lisp.h (restore_point_unwind): Add prototype.
8795
8796 * fileio.c (restore_point_unwind): Remove static attribute.
8797
0235128c 87982010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
8799
8800 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8801 new feature of libotf and m17n-flt.
0235128c
SM
8802 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8803 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
8804 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8805 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8806 that OUT is NULL. Use OTF_drive_gsub_with_log and
8807 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8808 OTF_drive_gpos.
8809 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
8810 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8811 Setup mflt_enable_new_feature and mflt_try_otf.
8812
4721152c
J
88132010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8814
8815 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8816
8817 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8818 box and toolbar (Bug #6139).
8819 (xg_create_tool_bar): Remove comment (Bug #6139).
8820 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8821 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8822
ee0a16cf
JB
88232010-05-08 Juanma Barranquero <lekktu@gmail.com>
8824
8825 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8826 Update dependencies.
8827
96d79611
EZ
88282010-05-08 Eli Zaretskii <eliz@gnu.org>
8829
8830 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8831 R2L lines.
8832
40c17879
GM
88332010-05-08 Glenn Morris <rgm@gnu.org>
8834
7b42b29f
GM
8835 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8836
40c17879
GM
8837 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8838 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8839 (termcapobj): Replace with TERMCAP_OBJ.
8840 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8841 (LIBES): Use LIBS_TERMCAP as a variable.
8842
8843 * s/freebsd.h (osreldate.h): No longer include, since this file
8844 does not use __FreeBSD_version any more.
8845
8846 * s/aix4-2.h (TERMINFO):
8847 * s/cygwin.h (TERMINFO):
8848 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8849 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8850 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8851 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8852 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8853 * s/irix6-5.h (TERMINFO):
8854 * s/netbsd.h (LIBS_TERMCAP):
8855 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8856 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8857 * s/usg5-4.h (TERMINFO):
8858 Move to configure.
8859
94b612ad
SM
88602010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8861
8862 * eval.c (unbind_to): Don't unbind a local binding into the global
8863 binding when the local binding disappeared. Inversely, don't unbind
8864 a global binding into a newly created local binding.
8865 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8866 can specify the frame to use, when applicable. Adjust callers.
8867
15e12598 88682010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 8869 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
8870
8871 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8872
f724825e
EZ
88732010-05-07 Eli Zaretskii <eliz@gnu.org>
8874
5cba3209
EZ
8875 * w32fns.c: Include w32.h.
8876 (Fw32_shell_execute): Decode the error message before passing it
8877 to `error'. (Bug#6126)
8878
d16bdfc3
EZ
8879 * msdos.c (dos_set_window_size):
8880 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8881 instead of `XSYMBOL (foo)->value'.
8882
59d93e87
EZ
88832010-05-07 Eli Zaretskii <eliz@gnu.org>
8884
9fdec8bc
EZ
8885 Fix the MS-DOS build, broken by autoconfiscation.
8886
8887 * Makefile.in: Don't use Make-style comments past the "start of
8888 cpp stuff" line.
8889 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8890
8891 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8892 edited directly by msdos/sed1v2.inp).
f724825e 8893
2f86b22b
GM
88942010-05-07 Glenn Morris <rgm@gnu.org>
8895
8896 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8897 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8898 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8899 move out of cpp section.
8900 * s/freebsd.h (LD_SWITCH_SYSTEM):
8901 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8902 * s/netbsd.h (LD_SWITCH_SYSTEM):
8903 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8904
49ebbd65
DN
89052010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8906
8907 Define LIB_STANDARD and START_FILES using autoconf.
8908 * s/usg5-4.h (LIB_STANDARD):
8909 * s/netbsd.h (START_FILES):
8910 * s/irix6-5.h (LIB_STANDARD):
8911 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8912 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8913 * s/freebsd.h (START_FILES):
8914 * s/darwin.h (START_FILES):
8915 * s/cygwin.h (START_FILES):
8916 * s/aix4-2.h (LIB_STANDARD):
8917 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8918 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8919 autoconf, not cpp.
8920
d43c06d6
DN
89212010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8922
28823648
DN
8923 Remove NEED_BSDTTY and NEED_UNISTD_H.
8924 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8925 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8926 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8927 <sys/ptyio.h> and <unistd.h>.
8928
aca00430
DN
8929 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8930
d43c06d6
DN
8931 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8932 * s/gnu.h (START_FILES): Remove empty definition.
8933
3e56b11d
JD
89342010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8935
8936 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8937
e3cf0cde
GM
89382010-05-06 Glenn Morris <rgm@gnu.org>
8939
8940 * Makefile.in (CPP, LN_S): Remove unused variables.
8941
774b9a60
SM
89422010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8943
8944 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8945
4ab92842
LM
89462010-05-05 Lawrence Mitchell <wence@gmx.li>
8947
8948 * m/sparc.h: Fix typo in earlier change.
8949
178f2507
SM
89502010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8951
8952 Misc tweaks.
8953 * eval.c (Fdefvaralias): Remove unintended nested if.
8954 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8955
80f00217 89562010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
8957
8958 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8959
ef03a4e6
DN
89602010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8961
58eb6cf0
DN
8962 Remove BSD_PGRPS.
8963 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8964 * s/gnu-linux.h (BSD_PGRPS): Remove.
8965 * term.c (dissociate_if_controlling_tty):
8966 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8967 (init_sys_modes, reset_sys_modes):
8968 * emacs.c (main):
8969 * callproc.c (Fcall_process, child_setup): Remove code depending
8970 on BSD_PGRPS.
8971
ef03a4e6
DN
8972 Remove POSIX_SIGNALS.
8973 * s/usg5-4.h (POSIX_SIGNALS):
8974 * s/netbsd.h (POSIX_SIGNALS):
8975 * s/msdos.h (POSIX_SIGNALS):
8976 * s/ms-w32.h (POSIX_SIGNALS):
8977 * s/hpux11.h (POSIX_SIGNALS):
8978 * s/gnu.h (POSIX_SIGNALS):
8979 * s/gnu-linux.h (POSIX_SIGNALS):
8980 * s/freebsd.h (POSIX_SIGNALS):
8981 * s/darwin.h (POSIX_SIGNALS):
8982 * s/cygwin.h (POSIX_SIGNALS):
8983 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8984 * s/unixware.h:
8985 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8986 * process.c (create_process):
8987 * syssignal.h:
8988 * sysdep.c (wait_for_termination, init_signals):
8989 * process.c (create_process):
8990 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8991 remove all code that assumes the contrary.
8992
49628785
GM
89932010-05-04 Glenn Morris <rgm@gnu.org>
8994
27a2cdfc
GM
8995 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8996 variable.
8997 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8998 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8999 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9000 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9001 LD_SWITCH_SYSTEM_tmp.
9002 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9003 New variables, set by configure.
9004
eb21eab5
GM
9005 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9006 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9007 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9008 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9009 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9010
49628785
GM
9011 * s/aix4-2.h (C_SWITCH_SYSTEM):
9012 * m/alpha.h (C_SWITCH_MACHINE):
9013 Move to configure.in.
9014 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9015 New variables, set by configure.
9016 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9017 $c_switch_machine and $c_switch_system.
9018
7dff330b
DN
90192010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9020
9021 * s/hpux10-20.h (LIB_STANDARD): New definition.
9022 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9023 on it, not used anymore.
9024
53967e09
CY
90252010-05-03 Chong Yidong <cyd@stupidchicken.com>
9026
9027 * eval.c (internal_condition_case_n): Rename from
9028 internal_condition_case_2.
9029 (internal_condition_case_2): New function.
9030
9031 * xdisp.c (safe_call): Use internal_condition_case_n.
9032
9033 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9034 (internal_delete_file, Frename_file): Callers changed.
9035
9036 * buffer.c (Fkill_buffer):
9037 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9038
9039 * lisp.h: Update prototypes.
9040
3dee6fdb
GM
90412010-05-03 Glenn Morris <rgm@gnu.org>
9042
9043 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9044 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9045 (LIBXT): Set with configure, not cpp.
9046 (LIBX): Remove.
9047 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9048
a101e0fb
DN
90492010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9050
9051 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9052 The FreeBSD is not needed, the default works, Solaris version is
9053 not needed, and the remaining case is not supported by configure.
9054
f63d0028
JD
90552010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9056
9057 * xsmfns.c (CHDIR_OPT): New define.
9058 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9059 restarting emacs.
9060
9061 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9062 shut_down_emacs.
9063
9064 * emacs.c (USAGE1): Mention --chdir.
9065 (main): Handle --chdir.
9066 (standard_args): Add --chdir.
9067 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9068 #5552).
9069
e4814a9f
DN
90702010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9071
cd03c74a
DN
9072 Remove LD_SWITCH_MACHINE.
9073 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9074 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9075
c3a398a1
DN
9076 Clean up IRIX code.
9077 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9078 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9079
87e7285c
DN
9080 Clean up AIX code.
9081 * m/ibmrs6000.inp: Remove file, unused.
9082 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9083 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9084 definition ...
9085 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9086
80f00217
JB
9087 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9088 unused.
e4814a9f 9089
59ca28de
EZ
90902010-05-01 Eli Zaretskii <eliz@gnu.org>
9091
197daef4
EZ
9092 Emulate POSIX_SIGNALS on MS-Windows.
9093
9094 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9095 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
9096
9097 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9098 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9099 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9100
80f00217
JB
9101 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9102 New stubs.
197daef4 9103
af7c7572
EZ
9104 Miscellaneous fixes of bidi display.
9105
59ca28de
EZ
9106 * xdisp.c (find_row_end): New function, refactored from display_line.
9107 (display_line): Use it.
017ea819
EZ
9108 (extend_face_to_end_of_line): In almost-filled rows, extend only
9109 if the row is R2L and not continued.
166e930d 9110 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 9111 Preserve overlay and string info in row->end.
166e930d
EZ
9112 (insert_left_trunc_glyphs): Support addition of left truncation
9113 glyphs to R2L rows.
b47e0dcf 9114 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
9115 glyph between adjacent windows. Fix a crash when a display string
9116 is continued to the next line. Don't return zero if cursor was
9117 found by `cursor' property of a display string.
b47e0dcf
EZ
9118 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9119 test for that explicitly.
59ca28de 9120
7acac9f4
GM
91212010-05-01 Glenn Morris <rgm@gnu.org>
9122
9123 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9124 for clarity.
9125 (OTHER_OBJ): Remove.
9126 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9127 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9128
45841e65
KK
91292010-05-01 Karel Klíč <kklic@redhat.com>
9130
9131 * fileio.c (Ffile_selinux_context): Context functions may return null.
9132
afc61943
DN
91332010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9134
80f00217 9135 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 9136
5a1bb006
GM
91372010-04-30 Glenn Morris <rgm@gnu.org>
9138
9139 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9140 (OTHER_OBJ): Define as a separate variable, for clarity.
9141
210af043
J
91422010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9143
2f8f196d 9144 * xsettings.c: Include limits.h and update file comment.
210af043 9145
0a7df391
GM
91462010-04-30 Glenn Morris <rgm@gnu.org>
9147
d5096f16
GM
9148 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9149 Set with configure, not cpp.
9150 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9151
7eb1ac33
GM
9152 * Makefile.in (mallocobj): Remove.
9153 (otherobj): Simplify using @OTHER_OBJ@.
9154
517d086b
GM
9155 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9156 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9157 Don't bother making nsgui.h dependency platform-specific.
9158
0a7df391
GM
9159 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9160
d6d23852
SM
91612010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9162
d2630aef
SM
9163 * process.c (read_process_output, exec_sentinel): Don't burp if the
9164 sentinel/filter kills the current buffer (bug#6060).
9165
f9dddf52 9166 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
9167 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9168 Remove unused var `args'.
9169 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9170 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9171 * doc.c (store_function_docstring): Use XSETCAR.
9172
f1e3642a
GM
91732010-04-28 Glenn Morris <rgm@gnu.org>
9174
faf535f8
GM
9175 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9176 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9177
c40f9449
GM
9178 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9179
658f86ca
GM
9180 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9181 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9182
bc0b5f61
GM
9183 * Makefile.in (FONT_OBJ): New, set by configure.
9184 (FONT_DRIVERS): Use $FONT_OBJ.
9185
294c50a0
GM
9186 * Makefile.in (LIBXMU): Set with configure, not cpp.
9187 * s/aix4-2.h (LIBXMU):
9188 * s/hpux10-20.h (LIBXMU):
9189 Remove definition, now set in configure.
9190
e6ec4e99
GM
9191 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9192
f1e3642a
GM
9193 * m/amdx86-64.h [i386]: Move this test to configure.in.
9194
c6ea2936
GM
91952010-04-27 Glenn Morris <rgm@gnu.org>
9196
8fdac2c3
GM
9197 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9198 * s/unixware.h (NEED_LIBW): Remove definition.
9199
986fb647
GM
9200 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9201 (TOOLKIT_LIBW): New, set by configure.
9202 (@X_TOOLKIT_TYPE@): No longer define it.
9203
c6ea2936
GM
9204 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9205 (MOTIF_LIBW): Set with configure, not cpp.
9206 * s/aix4-2.h (LIB_MOTIF):
9207 * s/gnu-linux.h (LIB_MOTIF):
9208 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9209
aaa36002
DN
92102010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9211
9212 Reduce CPP usage.
9213 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9214 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
9215 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9216 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 9217 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 9218
b678dd8b
GM
92192010-04-27 Glenn Morris <rgm@gnu.org>
9220
76cda504
GM
9221 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9222 since the defaults (set by the system file) are fine in most cases.
9223 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9224 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9225 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9226 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9227 Remove definitions, since they are set correctly in s/gnu-linux.h.
9228 * s/freebsd.h (START_FILES, LIB_STANDARD):
9229 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9230 * s/hpux10-20.h (START_FILES):
9231 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9232 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9233
b678dd8b
GM
9234 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9235 (MOTIF_LIBW): Use $LIBXP.
9236 (otherobj): Use $WIDGET_OBJ.
9237
9452ded1
DN
92382010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9239
7e10844c
DN
9240 * Makefile.in (LIBS_MACHINE): Remove, unused.
9241
9452ded1
DN
9242 Use autoconf instead of cpp for LIB_MATH.
9243 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9244 * s/cygwin.h (LIB_MATH): Likewise.
9245 * Makefile.in (LIB_MATH): Do not define with cpp.
9246 (LIBES): Use autoconf for LIB_MATH.
9247
fcebfc6a
KH
92482010-04-26 Kenichi Handa <handa@m17n.org>
9249
9250 * composite.c (Ffind_composition_internal): Fix the return value
9251 for an automatic composition.
9252
39e2ad1b
DN
92532010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9254
9255 Remove all NO_ARG_ARRAY uses.
9256 * fns.c (concat2, concat3, nconc2):
9257 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9258 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9259 * m/xtensa.h (NO_ARG_ARRAY):
9260 * m/template.h (NO_ARG_ARRAY):
9261 * m/sparc.h (NO_ARG_ARRAY):
9262 * m/sh3.h (NO_ARG_ARRAY):
9263 * m/mips.h (NO_ARG_ARRAY):
9264 * m/macppc.h (NO_ARG_ARRAY):
9265 * m/iris4d.h (NO_ARG_ARRAY):
9266 * m/intel386.h (NO_ARG_ARRAY):
9267 * m/ibms390x.h (NO_ARG_ARRAY):
9268 * m/ibms390.h (NO_ARG_ARRAY):
9269 * m/ibmrs6000.h (NO_ARG_ARRAY):
9270 * m/ia64.h (NO_ARG_ARRAY):
9271 * m/hp800.h (NO_ARG_ARRAY):
9272 * m/arm.h (NO_ARG_ARRAY):
9273 * m/amdx86-64.h (NO_ARG_ARRAY):
9274 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9275
adf4f59c
EZ
92762010-04-25 Eli Zaretskii <eliz@gnu.org>
9277
6bdf5d65
EZ
9278 * xdisp.c (display_line): Don't assume 2nd call to
9279 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9280 (iterate_out_of_display_property): New function, body from pop_it.
9281 (pop_it): Use it.
adf4f59c 9282
dfbbda83
GM
92832010-04-24 Glenn Morris <rgm@gnu.org>
9284
9285 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9286 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9287 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9288 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9289
2d4018aa
EZ
92902010-04-24 Eli Zaretskii <eliz@gnu.org>
9291
a49884a6
EZ
9292 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9293 use `get_next_display_element' and `set_iterator_to_next' to
9294 advance to the next character, when looking for the character that
9295 begins the next row.
9296
76db6fcc 9297 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9298 definition of "struct Lisp_Symbol".
9299
70eab5c1
GM
93002010-04-24 Glenn Morris <rgm@gnu.org>
9301
9302 * Makefile.in (CRT_DIR): New variable, set by configure.
9303 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9304 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9305
1ad4cc3d
DN
93062010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9307
e769f484
DN
9308 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9309
4196ff33
DN
9310 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9311
879b0ee4
DN
9312 Remove redundant flags.
9313 * s/freebsd.h (C_SWITCH_SYSTEM):
9314 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9315 * s/netbsd.h (C_SWITCH_SYSTEM):
9316 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9317 of these.
9318
03cbbcb8
DN
9319 Simplify m/intel386.h.
9320 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9321 user: ecrt0.c.
9322 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9323 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9324 the only user: s/unixware.h.
9325 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9326 from m/intel386.h.
bba3e508
SM
9327 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9328 Definitions moved here from m/intel386.h.
03cbbcb8 9329
1ad4cc3d
DN
9330 * m/mips.h: Remove #if 0 code.
9331
8785b888
EZ
93322010-04-23 Eli Zaretskii <eliz@gnu.org>
9333
728588cc
EZ
9334 Fix display of composed characters from L2R scripts in bidi buffers.
9335 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9336 After advancing IT past the composition, resync the bidi iterator
9337 with IT's position. (Bug#5977)
9338
a63f80b4
DN
93392010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9340
9341 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9342 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9343
ff5dec5c
SM
93442010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9345
9346 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9347
8785b888
EZ
93482010-04-23 Eli Zaretskii <eliz@gnu.org>
9349
58ccf243 9350 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9351 * xdisp.c (pop_it): When the stack is popped after displaying
9352 from a string, bidi-iterate to exit from the text portion covered
9353 by the `display' property or overlay. (Bug#5988, bug#5920)
9354
feeb1604
DN
93552010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9356
8e324eb6
DN
9357 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9358 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9359
809fcaba
DN
9360 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9361 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9362
ed710380
DN
9363 Simplify STARTFILES definition.
9364 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9365 relying on Makefile.in to define it.
9366 * s/cygwin.h (START_FILES): Likewise.
9367 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9368
feeb1604
DN
9369 Clean up Solaris code.
9370 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9371 (LIB_MOTIF): Remove, configure takes care of this.
9372 (NOT_USING_MOTIF): Remove, unused.
9373 * xrdb.c: Remove #if 0-ed #include.
9374 (SYSV): Remove conditional for old SysV.
9375 * sysdep.c (closedir): Remove conditional code for Solaris,
9376 Solaris has closedir.
9377
a0d0b563
JD
93782010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9379
9380 * xsettings.c (read_and_apply_settings): Check if current_font is
9381 NULL before strcmp (Bug#6001).
9382
56bae7c7
DN
93832010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9384
9385 Clean up HP-UX files.
9386 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9387 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9388 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9389 * s/hpux10-20.h: ... to the only user, here.
9390
372b7a95
EZ
93912010-04-21 Eli Zaretskii <eliz@gnu.org>
9392
9393 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9394 use buffer-local values of paragraph-start and paragraph-separate.
9395 <paragraph_start_re, paragraph_separate_re>: Rename from
9396 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9397 (Bug#5992)
9398
f904c0f9
JD
93992010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9400
9401 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9402 current_tool_bar_style are new.
9403 (store_config_changed_event): Rename from store_font_changed_event.
9404 (XSETTINGS_TOOL_BAR_STYLE): New define.
9405 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9406 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9407 HAVE_XFT.
9408 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9409 store_config_changed_event.
bba3e508
SM
9410 (parse_settings): Rename from parse_xft_settings.
9411 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9412 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9413 (apply_xft_settings): Take current settings as parameter. Do not
9414 call read_(xft)_settings.
9415 (read_and_apply_settings): New function.
bba3e508
SM
9416 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9417 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9418 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9419 Call read_and_apply_settings unconditionally.
9420 (xsettings_initialize): Call init_xsettings.
9421 (Ftool_bar_get_system_style): New function.
9422 (syms_of_xsettings): Define Qmonospace_font_name and
9423 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9424 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9425 dynamic-setting.
01c35094 9426 Move misplaced HAVE_GCONF.
f904c0f9
JD
9427
9428 * xsettings.h (Ftool_bar_get_system_style): Declare.
9429
9430 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9431 Qtext, Qboth, Qboth_horiz are new.
9432 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9433 Vtool_bar_style, tool_bar_max_label_size.
9434
9435 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9436
9437 * keyboard.c: QClabel is new.
9438 (parse_tool_bar_item): Take out QClabel from tool bar items.
9439 Try to construct a label if ther is no QClabel.
9440 (syms_of_keyboard): Intern :label as QClabel.
9441
9442 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9443 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9444 New.
9445
9446 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9447 dynamic-setting.el.
9448
9449 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9450 (xg_make_tool_item, xg_show_toolbar_item): New function.
9451 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9452 Call xg_make_tool_item to make a tool bar item.
9453 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9454
9455 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9456 into account for toolbars.
9457
c632dfda
JD
94582010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9459
9460 * data.c (make_blv): Declarations before code (Bug#5993).
9461
10efe302
GM
94622010-04-21 Glenn Morris <rgm@gnu.org>
9463
9464 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9465 Define using autoconf, not cpp.
9466 (LIBXSM): New variable, set by autoconf.
9467 (LIBXT): Use $LIBXSM.
9468
4285ac5a
DN
94692010-04-21 Dan Nicolaescu <local_user@dannlt>
9470
3ec759e7
DN
9471 Remove NOMULTIPLEJOBS, unused.
9472 * s/template.h (NOMULTIPLEJOBS):
9473 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9474
4285ac5a
DN
9475 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9476 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9477 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9478 detects -znocombreloc and passes it to the linker
9479 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9480
2807228d
GM
94812010-04-21 Glenn Morris <rgm@gnu.org>
9482
9483 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9484
574c05e2
KK
94852010-04-21 Karel Klíč <kklic@redhat.com>
9486
9487 * Makefile.in (LIBSELINUX_LIBS): New.
9488 (LIBES): Add $LIBSELINUX_LIBS.
9489 * eval.c, lisp.h (call7): New function.
9490 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9491 (Ffile_selinux_context, Fset_file_selinux_context):
9492 New functions.
9493 (Fcopy_file): New parameter preserve-selinux-context.
9494 (Frename_file): Preserve selinux context when renaming by copy-file.
9495
91eac4bb 94962010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9497 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9498
50426a04
JB
9499 Don't depend on cm.c or termcap.c on Windows, use stubs.
9500 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9501 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9502 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9503 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9504 (sys_tputs, sys_tgetstr): New stubs.
9505 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9506 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9507
938efb77
JB
95082010-04-20 Juanma Barranquero <lekktu@gmail.com>
9509
9510 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9511
b4bf28b7
SM
95122010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9513
8b1e1112
SM
9514 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9515 Just signal a warning rather than an error when inside a let.
9516 (Fmake_variable_frame_local): Add the same test.
9517
933ac235
SM
9518 * font.c (syms_of_font): Make the style table vars read-only.
9519
b4bf28b7
SM
9520 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9521 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9522
9523 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9524
93d68d0c
EZ
95252010-04-20 Eli Zaretskii <eliz@gnu.org>
9526
9527 Fix R2L paragraph display on TTY.
9528
9529 * xdisp.c (unproduce_glyphs): New function.
9530 (display_line): Use it when produced glyphs are discarded from R2L
9531 glyph rows.
9532 (append_composite_glyph): In R2L rows, prepend the glyph rather
9533 than appending it.
9534
9535 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9536 rather than append it. Set up the resolved_level and bidi_type
9537 attributes of the appended glyph.
283ccc18
EZ
9538 (produce_special_glyphs): Mirror the backslash continuation
9539 character in R2L lines.
93d68d0c 9540
283ccc18 9541 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9542
283ccc18
EZ
9543 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9544 append_stretch_glyph.
bba3e508
SM
9545 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9546 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9547 (append_stretch_glyph): In reversed row, prepend the glyph rather
9548 than append it. Set resolved_level and bidi_type of the glyph.
9549 (extend_face_to_end_of_line): If the row is reversed, prepend a
9550 stretch glyph whose width is such that the rightmost glyph will be
9551 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9552 TTY frames in testing whether a line needs face extension.
9553 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9554 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9555 region face.
bba3e508
SM
9556 (set_cursor_from_row, display_line):
9557 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9558 row->continuation_lines_width.
283ccc18
EZ
9559 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9560 are at ZV. Fixes a crash when reseated to ZV by
9561 try_window_reusing_current_matrix.
45903529
EZ
9562 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9563 which happens with R2L glyph rows. Fixes a crash when inserting a
9564 character at end of an R2L line.
283ccc18
EZ
9565 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9566 treat them as having zero-width characters. Improve comments.
9567 Don't reverse pos_before and pos_after for reversed glyph rows.
9568 Set cursor.x to negative value when the cursor might be on the
9569 left fringe.
9570 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9571 left fringe, not the right one.
f951a506
EZ
9572 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9573 (erase_phys_cursor): For reversed cursor_row, support cursor on
9574 the left fringe.
9575
283ccc18
EZ
9576 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9577 of continuation indicators on the fringes.
9578 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9579 left fringe.
9580
f951a506
EZ
9581 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9582 draw cursor on the left fringe.
9583
9584 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9585 cursor on the left fringe.
9586
f951a506
EZ
9587 * dispnew.c (update_text_area): Handle reversed desired rows when
9588 the cursor is on the left fringe.
9589 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9590 below, not by 0, for when the cursor is on the left fringe.
9591
3bb49aaf
JD
95922010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9593
9594 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9595 widget is a scrollbar.
9596
c0be27fd
KH
95972010-04-20 Kenichi Handa <handa@m17n.org>
9598
9599 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9600 only when the arg CHARSET_LIST is nil.
9601
ce5b453a
SM
96022010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9603
9604 Make variable forwarding explicit rather the using special values.
9605 Basically, this makes the structure of buffer-local values and object
9606 forwarding explicit in the type of Lisp_Symbols rather than use
9607 special Lisp_Objects for that. This tends to lead to slightly more
9608 verbose code, but is more C-like, simpler, and makes it easier to make
9609 sure we handled all cases, among other things by letting the compiler
9610 help us check it.
9611 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9612 Removing forwarding objects.
9613 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9614 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9615 explicit rather than hiding them inside Lisp_Object "values".
9616 (XFWDTYPE): New macro.
9617 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9618 (XBUFFER_LOCAL_VALUE): Remove.
9619 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9620 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9621 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9622 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9623 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9624 Remove the Lisp_Misc_* header.
9625 (struct Lisp_Buffer_Local_Value): Redefine.
9626 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9627 (struct Lisp_Misc_Any): Add filler to get the right size.
9628 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9629 Lisp_Intfwd.
9630 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9631 (DEFVAR_KBOARD): Allocate a forwarding object.
9632 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9633 (let_shadows_global_binding_p): New function.
9634 (union Lisp_Val_Fwd): New type.
9635 (make_blv): New function.
9636 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9637 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9638 (swap_in_symval_forwarding, find_symbol_value, Fset)
9639 (let_shadows_buffer_binding_p, set_internal, default_value)
9640 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9641 (Fkill_local_variable, Fmake_variable_frame_local)
9642 (Flocal_variable_p, Flocal_variable_if_set_p)
9643 (Fvariable_binding_locus):
9644 * xdisp.c (select_frame_for_redisplay):
9645 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9646 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9647 * frame.c (store_frame_param):
9648 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9649 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9650 value structure.
9651 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9652 (clone_per_buffer_values): Only adjust markers into the current buffer.
9653 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9654 (Fbuffer_local_value, set_buffer_internal_1)
9655 (swap_out_buffer_local_variables):
9656 Adapt to the new symbol value structure.
9657 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9658 (defvar_per_buffer): Take a new arg for the fwd object.
9659 (buffer_lisp_local_variables): Return a proper alist (different fix
9660 for bug#4138).
9661 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9662 (Fgarbage_collect): Don't handle buffer_defaults specially.
9663 (mark_object): Handle new symbol value structure rather than the old
9664 special Lisp_Misc_* objects.
9665 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9666 * term.c (set_tty_color_mode):
9667 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9668 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9669 a buffer_local_flags.
9670 * print.c (print_object): Get rid of impossible forwarding objects.
9671
fd3998ff
EZ
96722010-04-19 Eli Zaretskii <eliz@gnu.org>
9673
9674 * bidi.c (bidi_get_type, bidi_get_category)
9675 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
9676 (bidi_type_of_next_char, bidi_level_of_next_char):
9677 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 9678
e42cd1a7
JB
96792010-04-19 Juanma Barranquero <lekktu@gmail.com>
9680
9681 * dired.c (Ffile_attributes): Fix typo in docstring.
9682
6e104790 96832010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
9684
9685 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9686 NSInteger (Bug#5811).
9687
6e104790 96882010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
9689
9690 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9691 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9692
6e104790 96932010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
9694
9695 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9696
6e104790
SM
96972010-04-19 Chong Yidong <cyd@stupidchicken.com>
9698
9699 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9700 terminal frames (Bug#5837).
9701
37dcfea0
EZ
97022010-04-19 Eli Zaretskii <eliz@gnu.org>
9703
d1da276f
EZ
9704 * .gdbinit (xsubchartable): New command.
9705
37dcfea0
EZ
97062010-04-19 Eli Zaretskii <eliz@gnu.org>
9707
9708 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 9709 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
9710 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9711 and
9712 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9713
e9515805
SM
97142010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9715
9716 * alloc.c (Fpurecopy): Hash-cons if requested.
9717 (syms_of_alloc): Update purify-flag docstring.
9718
22aa44a8
JD
97192010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9720
9721 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9722 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9723
ebb5722e
EZ
97242010-04-17 Eli Zaretskii <eliz@gnu.org>
9725
9726 Fix a crash when an NSM character is inserted at BEGV.
9727
9728 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9729 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9730 NEUTRAL_B or UNKNOWN_BT.
9731
0f4442ef
EZ
97322010-04-16 Eli Zaretskii <eliz@gnu.org>
9733
9734 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9735 other rows with cursor unless they are different from this row and
9736 this row is part of a continued line. (Bug#5943)
9737
7d4e45f8
DN
97382010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9739
9740 * s/freebsd.h: Restore osreldate.h include.
9741 Suggested by Naohiro Aota.
9742
5ba5ec85
J
97432010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9744
9745 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9746
20af301d
CY
97472010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9748
9749 * s/cygwin.h: Avoid linking against static libgcc.
9750
a4b000fb
JL
97512010-04-15 Juri Linkov <juri@jurta.org>
9752
9753 * window.c: Add Qscroll_command.
9754 Remove Vscroll_preserve_screen_position_commands.
9755 (window_scroll_pixel_based, window_scroll_line_based): Check the
9756 `scroll-command' property on the last command instead of searching
9757 the last command in Vscroll_preserve_screen_position_commands.
9758 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9759 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9760 (scroll-preserve-screen-position): Doc fix.
9761 (Vscroll_preserve_screen_position_commands): Remove variable.
9762
bc319ba4
DN
97632010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9764
6bb24457
DN
9765 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9766
19d4c244
DN
97672010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9768
9769 Reduce cpp use in Makefile.in.
9770 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9771 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9772 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9773 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9774 (CRT0_COMPILE): Remove, inline it in the only user.
9775
32129746
JL
97762010-04-14 Juri Linkov <juri@jurta.org>
9777
9778 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9779 `scroll-up-command' and `M-v' from `scroll-down' to
9780 `scroll-down-command'.
9781
9013a7f8
JL
97822010-04-14 Juri Linkov <juri@jurta.org>
9783
9784 * window.c (Vscroll_preserve_screen_position_commands): New variable
9785 with the default value as the list of Qscroll_down and Qscroll_up.
9786 (window_scroll_pixel_based, window_scroll_line_based): Search the
9787 last command in the list Vscroll_preserve_screen_position_commands
9788 instead of comparing with Qscroll_up and Qscroll_down.
9789
4bef8d26
JD
97902010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9791
92848133
JD
9792 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9793 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9794 does that.
9795
4bef8d26
JD
9796 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9797 to zero.
9798
58b963f7
SM
97992010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9800
84164a0d
SM
9801 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9802
2b0a91e7
SM
9803 Try to solve the problem of spurious EOF chars in long lines of text
9804 sent to interactive subprocesses.
9805 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9806 (system_process_attributes): Remove unused var `ttotal'.
9807 * process.c (send_process): Don't bother breaking long line with EOF
9808 chars when talking to ttys any more.
9809 (wait_reading_process_output): Output a warning when called in such
9810 a way that it could block without being interruptible.
9811
58b963f7
SM
9812 Try to detect file modification within the same second.
9813 * buffer.h (struct buffer): New field modtime_size.
9814 * buffer.c (reset_buffer): Initialize it.
9815 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9816 (Fverify_visited_file_modtime): Check it.
9817 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9818 (Fset_visited_file_modtime): Set (or clear) it.
9819
01f5787b
SM
98202010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9821
9822 * process.c (status_notify): Remove unused var `ro'.
9823
83725342
JD
98242010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9825
9826 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9827 more than one visual (Bug#5938).
9828
b9465836
DN
98292010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9830
50426a04
JB
9831 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9832 Undefine.
b9465836 9833
8d9c8ece
DN
98342010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9835
b1f52161
DN
9836 Remove C_SWITCH_SYSTEM_TEMACS.
9837 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9838 (malloc, realloc, free): Use emacs, not temacs for conditional
9839 definition.
9840
9841 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9842 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9843
8d9c8ece
DN
9844 Use autoconf, not cpp for some variables.
9845 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9846 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9847 (ALL_CFLAGS): Use them as make variables.
9848 (really-lwlib, really-oldXMenu): Do not pass them.
9849
1ecb2d3f
JD
98502010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9851
9852 * xmenu.c (apply_systemfont_to_dialog): New.
9853 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9854
3a4fa2f2
SM
98552010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9856
97e53006
SM
9857 * process.c (exec_sentinel): Preserve current-buffer.
9858
3a4fa2f2
SM
9859 * process.c (read_process_output): Move the save-current-buffer to
9860 apply to both the filter and the non-filter branches.
9861
88df7221
DN
98622010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9863
9864 * s/msdos.h (UNEXEC): New definition.
9865
5634ff85
YM
98662010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9867
6eff5c3d
YM
9868 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9869 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9870
9871 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9872 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9873 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9874 TRY_WINDOW_CHECK_MARGINS.
9875
9876 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
9877 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9878 width only when it is for padding.
5634ff85 9879
b13aef54
J
98802010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9881
9882 * xfns.c (Fx_show_tip): Call try_window in a loop until
9883 fonts_changed_p is zero (Bug#2423).
9884
21d28484
EZ
98852010-04-08 Eli Zaretskii <eliz@gnu.org>
9886
9887 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9888 the end of TEXT_AREA. (Bug#5856)
9889
0269ef77
JD
98902010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9891
9892 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9893 HAVE_GCONF.
9894
5930fe97
EZ
98952010-04-08 Eli Zaretskii <eliz@gnu.org>
9896
9897 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9898 prev.orig_type, for resolving type of NSM. (Bug#5858)
9899
99852628
JD
99002010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9901
9902 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9903 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9904 in current_font.
9905 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
9906 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9907 New functions.
9908 (syms_of_xsettings): Initialize current_font.
9909 defsubr Sfont_get_system_normal_font.
99852628 9910
686b968e
JB
9911 * xsettings.h (Ffont_get_system_normal_font)
9912 (xsettings_get_system_normal_font): Declare.
99852628
JD
9913
9914 * xfns.c (extern xlwmenu_default_font): Remove.
9915 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9916 to xlwmenu.c.
9917
9918 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9919 menu items in UTF-8.
9920
2f8f196d 9921 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 9922 (apply_systemfont_to_menu): New function.
bba3e508
SM
9923 (set_frame_menubar, create_and_show_popup_menu):
9924 Call apply_systemfont_to_menu.
99852628 9925
7fc874c4
J
99262010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9927
9928 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9929 FRAME_LINE_TO_PIXEL_Y.
9930
9931 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9932 pixelwidth/height.
9933
863bf481
DN
99342010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9935
5e5a3b92
DN
9936 Simplify code for HP machines.
9937 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9938 for GNU_LINUX, not needed.
9939 (UNEXEC, NEED_BSDTTY): Move definitions...
9940 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9941
863bf481
DN
9942 * m/iris4d.h (UNEXEC): Move definition ...
9943 * s/irix6-5.h (UNEXEC): ... here.
9944
3e6bec3b
JD
99452010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9946
9947 * xfns.c (set_machine_and_pid_properties): New function.
9948 (Fx_create_frame): Call set_machine_and_pid_properties.
9949
2912322b
SM
99502010-04-03 Eli Zaretskii <eliz@gnu.org>
9951
bba3e508
SM
9952 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9953 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
9954 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9955
2912322b
SM
9956 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9957 in this function. (Bug#5703)
9958
99592010-04-03 Chong Yidong <cyd@stupidchicken.com>
9960
9961 * nsterm.h: Fix last change.
9962
c435b432
DN
99632010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9964
a568f507
DN
9965 * m/intel386.h (NO_REMAP): Move definition ...
9966 * s/msdos.h (NO_REMAP): ... here.
9967
4cd9f6c2
DN
9968 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9969
c435b432
DN
9970 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9971 used on those platforms.
9972
42a2c622
DN
99732010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9974
9975 Remove extern errno declarations.
9976 * xterm.c:
9977 * xrdb.c:
9978 * w32term.c:
9979 * unexec.c:
9980 * unexaix.c:
9981 * sysdep.c:
9982 * process.c:
9983 * lread.c:
9984 * keyboard.c:
9985 * floatfns.c:
9986 * filelock.c:
9987 * fileio.c:
9988 * emacs.c (main):
9989 * ecrt0.c:
9990 * dispnew.c:
9991 * callproc.c:
9992 * buffer.c: Remove errno extern declarations.
9993 * s/netbsd.h (NEED_ERRNO): Remove.
9994
8224f93d
DN
99952010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9996
9997 Remove all uses of LIBX11_SYSTEM.
9998 * Makefile.in (LIBX11_SYSTEM): Remove.
9999 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10000 instead.
10001
814062c7
EZ
100022010-04-01 Eli Zaretskii <eliz@gnu.org>
10003
ed68db4d
EZ
10004 Remove support for DJGPP v1.x (bug#5813).
10005
10006 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
10007 * s/msdos.h:
10008 * unexec.c (make_hdr, copy_text_and_data):
10009 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 10010 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
10011 (IT_set_terminal_modes, __write, _rename, gethostname)
10012 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10013 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10014 the value of __DJGPP__.
ed68db4d
EZ
10015 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10016 compatibility code.
8224f93d
DN
10017 * lread.c:
10018 * gmalloc.c (memalign):
10019 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10020 * emacs.c (main):
10021 * dosfns.c (init_dosfns):
ed68db4d
EZ
10022 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10023
52f4d8d5
EZ
100242010-04-01 Eli Zaretskii <eliz@gnu.org>
10025
814062c7
EZ
10026 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10027 string with `cursor' property comes from an `after-string'
10028 overlay. (Bug#5816)
10029
0dc2e11d
GM
100302010-04-01 Glenn Morris <rgm@gnu.org>
10031
10032 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10033 Define as Makefile variables.
10034 (LIBX): Use above variables rather than directly using autoconf.
10035
1d29df59
DN
100362010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10037
10038 Clean up BSD_SYSTEM use.
10039 * xterm.c:
10040 * process.c:
10041 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10042 for including <sys/ioctl.h>.
10043 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10044 code is only used for MSDOS.
10045
1546c559
JL
100462010-03-31 Juri Linkov <juri@jurta.org>
10047
10048 * image.c: Add `Qextension_data'.
10049 (syms_of_image): Initialize and staticpro `Qextension_data'.
10050 (Fimage_metadata): Rename from `Fimage_extension_data'.
10051 (gif_load): Put GIF extension data to the property
10052 `Qextension_data'.
10053
6521c534
CY
100542010-03-31 Chong Yidong <cyd@stupidchicken.com>
10055
10056 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10057 * nsterm.h: Fix prototype.
10058
52c30783
EZ
100592010-03-31 Eli Zaretskii <eliz@gnu.org>
10060
10061 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10062 trailing whitespace in right-to-left rows.
10063
855a0da7
SM
100642010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10065
10066 Get rid of the direct_output optimizations.
10067 * keyboard.c (nonundocount): Remove extern declaration.
10068 (command_loop_1): Remove brittle optimisation for cheap and
10069 common operations.
10070 * xdisp.c (redisplay_internal): Don't bother checking
10071 redisplay_performed_directly_p any more.
10072 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10073 any more.
10074 * dispnew.c (redisplay_performed_directly_p)
10075 (direct_output_for_insert, direct_output_forward_char):
10076 * dispextern.h (redisplay_performed_directly_p)
10077 (direct_output_for_insert, direct_output_forward_char): Remove.
10078 * cmds.c (nonundocount): Make it static.
10079
85738751 100802010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
10081
10082 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10083
85738751 100842010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
10085
10086 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10087 invisible (Bug#5766).
10088
85738751 100892010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 10090
855a0da7
SM
10091 * xdisp.c (x_consider_frame_title, update_window_cursor):
10092 Remove HAVE_NS conditionals.
194d44e7 10093 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
10094
10095 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10096 filename for the title.
10097 (ns_set_doc_edited): Do nothing if the selected window is a
10098 minibuffer window.
10099
10100 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10101 ns_set_doc_edited.
10102
10103 * nsterm.m: Remove unneeded prototype.
10104
85738751 101052010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
10106
10107 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10108 in the DOC file. (Bug#5336)
10109
85738751 101102010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
10111
10112 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10113
75d1428c
SM
101142010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10115
10116 * window.c (keys_of_window): Remove redundant/overridden bindings.
10117
82043cfb
EZ
101182010-03-30 Eli Zaretskii <eliz@gnu.org>
10119
10120 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10121 Restore original behavior when the iterator is not bidi_p.
10122
b5dd0ae7
DN
101232010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10124
10125 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10126
bd924a5d
EZ
101272010-03-30 Eli Zaretskii <eliz@gnu.org>
10128
10129 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10130 are outside the range of cached character positions.
10131
3580374b
JB
101322010-03-30 Juanma Barranquero <lekktu@gmail.com>
10133
10134 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10135
a7b02820
EZ
101362010-03-30 Eli Zaretskii <eliz@gnu.org>
10137
10138 Initial support for bidirectional editing.
10139
10140 * Makefile.in (obj): Include bidi.o.
10141 (bidi.o): New target.
10142
10143 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10144 ($(BLD)/bidi.$(O)): New target.
10145
10146 * bidi.c: New file.
10147
10148 * buffer.h (struct buffer): New members bidi_display_reordering
10149 and bidi_paragraph_direction.
10150
10151 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10152 and bidi_paragraph_direction.
10153 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10154 and bidi-paragraph-direction.
10155 (Fbuffer_swap_text): Swap the values of
10156 bidi_display_reordering and bidi_paragraph_direction.
10157
10158 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10159 (bidi_type_t, bidi_dir_t): New types.
10160 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10161 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10162 prev_stop, base_level_stop, and eol_pos.
10163 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10164 (IT_STACK_SIZE): Enlarge to 5.
10165 (struct glyph_row): New member reversed_p.
10166 <string_buffer_position>: Update prototype.
10167 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10168 glyph_row if bidi_it.paragraph_dir == R2L.
10169 (struct glyph): New members resolved_level and bidi_type.
10170
10171 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10172 processing or buffer's direction is right-to-left.
10173 (prepare_desired_row): Preserve the reversed_p flag.
10174 (row_equal_p): Compare the reversed_p attributes as well.
10175
bba3e508
SM
10176 * xdisp.c (init_iterator): Initialize it->bidi_p.
10177 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
10178 buffer's value of bidi_paragraph_direction.
10179 (reseat_1): Initialize bidi_it.first_elt.
10180 (set_iterator_to_next, next_element_from_buffer): Use the value of
10181 paragraph_embedding to determine the paragraph direction.
10182 (set_iterator_to_next): Under bidi reordering, call
10183 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10184 new_paragraph flag is set in the bidi iterator.
10185 (next_element_from_buffer): If bidi_it.first_elt is set,
10186 initialize paragraph direction and find the first character to
10187 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
10188 prime the bidi iterator starting at the line's beginning.
10189 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
10190 non-linearity of the bidi iteration. Likewise for when we back up
10191 beyond the previous stop_charpos. When moving across stop_charpos,
10192 record it in prev_stop.
10193 (display_line): Set row->end and it->start for the next row to the
10194 next character in logical order. Always extend reversed_p rows to
10195 the end of line, even if they end at ZV. Copy the reversed_p flag
10196 to the next glyph row. Keep calling set_cursor_from_row for
10197 bidi-reordered rows even if we already have a possible candidate
10198 for cursor position. Set row_end after all the row's glyphs have
10199 been produced, by looping over the glyphs. Record the position
10200 after EOL in it->eol_pos, and use it to set end_pos of the last
10201 row produced for a continued line.
10202 <Qright_to_left, Qleft_to_right>: New variables.
10203 (syms_of_xdisp): Initialize and staticpro them.
10204 (string_buffer_position_lim): New function.
10205 (string_buffer_position): Most of code moved to
10206 string_buffer_position_lim. Last argument and return value are
10207 now EMACS_INT; all callers changed.
10208 (set_cursor_from_row): Rewritten to support bidirectional text and
10209 reversed glyph rows.
bba3e508
SM
10210 (text_outside_line_unchanged_p, try_window_id):
10211 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
10212 paragraph direction can be affected by the change.
10213 (append_glyph, append_composite_glyph)
10214 (produce_image_glyph, append_stretch_glyph): Set the
10215 resolved_level and bidi_type members of each glyph.
10216 (append_glyph): If the glyph row is reversed, prepend the glyph
10217 rather than appending it.
10218 (handle_stop_backwards): New function.
10219 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10220 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10221 base_level_stop for the new position.
10222 (handle_invisible_prop): Under bidi iteration, skip invisible text
10223 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10224 paragraph direction. Update IT->prev_stop after skipping
10225 invisible text.
10226 (move_it_in_display_line_to): New variables prev_method
10227 and prev_pos. Compare for strict equality in
10228 BUFFER_POS_REACHED_P.
10229 (try_cursor_movement): Examine all the candidate rows that occlude
10230 point, to return the best match. If rows are bidi-reordered
10231 and point moved backwards, back up to the row that is not a
10232 continuation line, and start looking for a suitable row from
10233 there.
10234
10235 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10236 rather than appending, if the glyph_row's reversed_p flag is set.
10237 Set the resolved_level and bidi_type members of each glyph.
10238
10239 * .gdbinit (pbiditype): New command.
10240 (pgx): Use it to display bidi level and type of the glyph.
10241 (pitx): Display some bidi information about the iterator.
10242 (prowlims, pmtxrows): New commands.
10243
32a8894e
DN
102442010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10245
10246 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10247 * s/usg5-4.h (LIBS_DEBUG):
10248 * s/irix6-5.h (C_DEBUG_SWITCH):
10249 * s/gnu-linux.h (LIBS_DEBUG):
10250 * s/darwin.h (LIBS_DEBUG):
10251 * s/bsd-common.h (LIBS_DEBUG):
10252 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10253 * m/iris4d.h (LIBS_DEBUG):
10254 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10255
10256 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10257 (LIBS_DEBUG): Remove definition.
10258
649dbf36
CY
102592010-03-27 Chong Yidong <cyd@stupidchicken.com>
10260
10261 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10262 Windows.
10263
cad4261f
YM
102642010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10265
10266 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10267 `connect' (Bug#5723).
10268
cd591dbc
HE
102692010-03-25 Helmut Eller <eller.helmut@gmail.com>
10270
10271 * process.c (Fmake_network_process): Call `select' for interrupted
10272 `connect' rather than creating new socket (Bug#5173).
10273
e867cb5d 102742010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10275
10276 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10277
10278 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10279
10280 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10281
e867cb5d 102822010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10283
10284 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10285 XLoadQueryFont.
10286
e867cb5d 102872010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10288
10289 * coding.c (decode_coding_ccl): Fix previous change for the
10290 multibyte case.
fb608df3
KH
10291 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10292 case that the output buffer is fullfilled.
10293 (encode_coding): Setup ccl program here.
fbdc1721 10294
5845f0ed
DN
102952010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10296
814fb708
DN
10297 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10298
5845f0ed
DN
10299 Simplify LIBS_MACHINE definitions.
10300 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10301 * m/iris4d.h (LIBS_MACHINE): Likewise.
10302 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10303 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10304 * s/netbsd.h: Remove commented out code.
5845f0ed 10305
b7064064
DN
103062010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10307
df7734b2
DN
10308 Remove dead code dealing with POSIX_SIGNALS.
10309 * atimer.c (set_alarm): Remove dead code, all USG systems define
10310 POSIX_SIGNALS.
10311 * data.c (arith_error): Likewise.
10312 * keyboard.c (input_available_signal, handle_user_signal)
10313 (interrupt_signal): Likewise.
10314 * process.c (sigchld_handler): Likewise.
10315 (create_process): Remove if 0 code. Remove HPUX conditional when
10316 !defined (POSIX_SIGNALS), it cannot be true.
10317 * syssignal.h: Remove USG5_4 and USG conditionals when
10318 !POSIX_SIGNALS, they cannot be true.
10319
b7064064
DN
10320 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10321 NO_SOCK_SIGIO, not used anymore.
10322
55da5ee3
DN
103232010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10324
0be96e3a
DN
10325 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10326 support vax on BSDs.
10327
55da5ee3
DN
10328 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10329 * s/aix4-2.h (ORDINARY_LINK): ... here.
10330
c0282183
AS
103312010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10332
82c3d67a
AS
10333 * Makefile.in (abs_builddir): Define.
10334 (bootstrap_exe): Use it.
10335 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10336
3613edce
SM
103372010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10338
10339 * Makefile.in (bootstrap_exe): Use an absolute name.
10340
7f110ddc
DN
103412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10342
22e87574
DN
10343 Remove support for old GNU/Linux using libc version 5.
10344 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10345 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10346
05a670e6
DN
10347 Consolidate redundant definitions in s/bsd-common.h.
10348 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10349 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10350 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10351 doing it in all files that include this one.
10352 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10353 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10354 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10355 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10356 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10357 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10358 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10359 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10360 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10361
2968f561
DN
10362 Consolidate redundant definitions.
10363 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10364 it's undefined in all files that include this one.
10365 (POSIX_SIGNALS): Define here instead of doing it in all files that
10366 include this one.
10367 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10368 (POSIX_SIGNALS): Do not define.
10369 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10370 (POSIX_SIGNALS): Do not define.
10371 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10372 (POSIX_SIGNALS): Do not define.
10373
15d25dc0
DN
10374 Remove support for old UNIX System V systems.
10375 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10376 * s/usg-5-4-2.h: Remove.
10377
07e339e4
DN
10378 Remove support for Solaris on PPC and for old versions.
10379 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10380 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10381 that cancel each other.
10382 * s/sol2-3.h:
10383 * s/sol2-4.h:
10384 * s/sol2-5.h: Remove.
10385 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10386 (NO_REMAP): Remove, unused.
10387 (UNEXEC): Move definition ...
10388 * s/aix4-2.h (UNEXEC): ... here.
10389
7f110ddc
DN
10390 * s/openbsd.h: Remove support for non-ELF and for systems that do
10391 not support shared libraries.
10392 * s/netbsd.h:
10393 * s/freebsd.h: Likewise.
10394
605f35cd
DN
103952010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10396
10397 Remove non-working support for lynxos 3.0.
10398 * s/lynxos.h: Remove file.
10399
10400 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10401 COFF_BSD_SYMBOLS, nothing defines it anymore.
10402
aed71cf4
DN
104032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10404
10405 Remove obsolete uses of HAVE_SHM.
10406 * emacs.c (standard_args):
10407 (Fdump_emacs):
10408 (syms_of_emacs): Remove code depending on HAVE_SHM.
10409
10410 * alloc.c: Remove HAVE_SHM dependent definition.
10411
10412 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10413
aded53ff
GM
104142010-03-18 Glenn Morris <rgm@gnu.org>
10415
17284745
GM
10416 * emacs.c (USAGE4): Hard-code bug address.
10417 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10418 (bug_reporting_address): Remove.
10419 (main): Don't call bug_reporting_address.
10420
aded53ff
GM
10421 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10422 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10423
303500aa
CY
104242010-03-15 Chong Yidong <cyd@stupidchicken.com>
10425
10426 * xfns.c (Fx_create_frame):
10427 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10428 on left.
10429
cef3058f
CY
104302010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10431
10432 * editfns.c (Fformat): Account for string precision when computing
10433 field width (Bug#5710).
10434
a647d59d
CY
104352010-03-12 Chong Yidong <cyd@stupidchicken.com>
10436
4fa42018
CY
10437 * xfns.c (Fx_create_frame): Set default to Qright.
10438
a647d59d
CY
10439 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10440 all window systems.
10441
6da23aaa
EZ
104422010-03-12 Eli Zaretskii <eliz@gnu.org>
10443
a96f6398 10444 These changes remove termcap.c from the build on Posix platforms.
83d02def 10445 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10446 (MSDOS_OBJ): ...to here.
10447 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10448 now identical to when LIBS_TERMCAP is defined.
10449
10450 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10451
10452 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10453
a96f6398 10454 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10455
288f9fc0
CY
104562010-03-10 Chong Yidong <cyd@stupidchicken.com>
10457
10458 * Branch for 23.2.
10459
d48cd3f4
SM
104602010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10461
10462 Cleanup setup of gl_state in various parts of the code.
10463 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10464 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10465 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10466 (skip_chars):
10467 * regex.c (regex_compile): Use it.
10468 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10469 it's now set in regex_compile when/if we need it.
10470
618db430
SM
104712010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10472
c0335e02
SM
10473 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10474 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10475 (QUIT): Use it to consolidate code and remove redundancy.
10476 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10477
254c06a8
SM
10478 * regex.c (regex_compile): Setup gl_state as well.
10479
618db430
SM
10480 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10481 (in_classes): Use CONSP before XCAR/XCDR.
10482
233f0c9f
CY
104832010-03-03 Chong Yidong <cyd@stupidchicken.com>
10484
10485 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10486 definitions, so that keyboard macros are correctly handled
10487 (Bug#5481).
10488
75f80e63
EZ
104892010-03-02 Eli Zaretskii <eliz@gnu.org>
10490
10491 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10492 text that could be relocated inside the call to emacs_mule_char.
10493 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10494 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10495
dcfb9bc4
KH
104962010-03-02 Kenichi Handa <handa@m17n.org>
10497
fc9a17bc
KH
10498 * character.c (parse_str_as_multibyte): Fix handling of the
10499 multibyte form of raw-bytes.
10500 (str_as_multibyte): Likewise.
10501
dcfb9bc4
KH
10502 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10503 form of raw-bytes.
10504
412c01b6
CY
105052010-02-28 Chong Yidong <cyd@stupidchicken.com>
10506
10507 * charset.c (load_charset_map_from_file)
10508 (load_charset_map_from_vector): Zero out allocated
10509 charset_map_entries before using them.
10510
df7e1ea0
AS
105112010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10512
10513 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10514
fe69a722
CY
105152010-02-27 Chong Yidong <cyd@stupidchicken.com>
10516
4ed28cf4
CY
10517 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10518 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10519
7379cfce
KH
105202010-02-26 Kenichi Handa <handa@m17n.org>
10521
f88cc4d6
KH
10522 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10523
7379cfce
KH
10524 * xdisp.c (reseat_to_string): Fix previous change.
10525
cf2fdcfb
CY
105262010-02-26 David Reitter <david.reitter@gmail.com>
10527
10528 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10529 Lisp_Object (Bug#4736).
10530
cc6c7c75
KH
105312010-02-25 Kenichi Handa <handa@m17n.org>
10532
10533 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10534
32e737d7
JD
105352010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10536
10537 * xterm.c (XTflash): Move declarations before statements.
10538
10539 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10540 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10541 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10542 (xg_create_tool_bar): Remove unused variables.
10543 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10544 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10545
676cae9f
CY
105462010-02-21 Chong Yidong <cyd@stupidchicken.com>
10547
10548 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10549
886cc2b8
SM
105502010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10551
10552 * term.c (fatal): Add a final \n if needed (bug#5596).
10553
ddb2d8e2
CY
105542010-02-18 Chong Yidong <cyd@stupidchicken.com>
10555
10556 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10557
2a4f8d3d
GM
105582010-02-18 Glenn Morris <rgm@gnu.org>
10559
10560 * callint.c (Finteractive): Doc fix.
10561
ebaf11b6
KH
105622010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10563
886cc2b8
SM
10564 * coding.c (record_conversion_result):
10565 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10566 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10567 memory allocation error.
10568
d0396581
KH
105692010-02-17 Kenichi Handa <handa@m17n.org>
10570
886cc2b8
SM
10571 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10572 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10573 (decode_coding): Setup ccl program here. Keep looping when the
10574 decoder stopped because the output buffer is
10575 fullfilled (bug#5534).
10576
10577 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10578
98599f74
JD
105792010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10580
471e4f04 10581 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10582 bug #5571.
886cc2b8 10583 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10584 overdrawn.
98599f74 10585
182659ae
JD
105862010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10587
10588 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10589 doing_interact here.
10590 (ice_connection_closed): New function.
10591 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10592 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10593 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10594 returns I/O error.
10595 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10596 bug #5512.
10597
9be32c4e 105982010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
10599
10600 * nsfont.m (nsfont_open): The system's value for the font descent
10601 is negative, so round it down to avoid clipping.
10602
a2f3eb19
CY
106032010-02-06 Chong Yidong <cyd@stupidchicken.com>
10604
10605 * charset.c (load_charset_map_from_file)
10606 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10607 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 10608
3088147c
CY
106092010-02-05 Chong Yidong <cyd@stupidchicken.com>
10610
10611 * charset.c (load_charset_map_from_file): Allocate large
10612 charset_map_entries structure on the heap rather than the stack.
10613 (Bug#5526).
10614
b57d9029
KH
106152010-01-31 Kenichi Handa <handa@m17n.org>
10616
10617 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 10618 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 10619
c67d885b
CY
106202010-01-31 Chong Yidong <cyd@stupidchicken.com>
10621
10622 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10623 <deactivated@gmail.com> (Bug#3605).
10624
8fab2362
CY
106252010-01-31 David De La Harpe Golden <david@harpegolden.net>
10626
10627 * fileio.c (Frename_file): Correctly rename symlinks to
10628 directories (Bug#5496).
10629
cb2a62f2
CY
106302010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10631
10632 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10633
944c7a26
AS
106342010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10635
10636 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10637
c024ac08
CY
106382010-01-29 Chong Yidong <cyd@stupidchicken.com>
10639
10640 * frame.c (DEFAULT_ROWS): Change default to 35.
10641
10642 * xfns.c (x_default_font_parameter): Change default XFT font to
10643 monospace-10 (Bug#3643).
10644
af93af83
EZ
106452010-01-29 Eli Zaretskii <eliz@gnu.org>
10646
10647 * w32inevt.c (key_event): Remove unnecessary comparison of
10648 event->uChar.AsciiChar with 128.
10649
ca0eb708
CY
106502010-01-28 Chong Yidong <cyd@stupidchicken.com>
10651
b242dbfc
CY
10652 * fileio.c (Frename_file): Fix last change (Bug#5487).
10653
ca0eb708
CY
10654 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10655
10656 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10657
45d45af5
JD
106582010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10659
10660 * xfns.c (Fx_create_frame): Remove window size matching code from
10661 2010-01-15.
a73f9c9d 10662 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 10663
7e233730
JR
106642010-01-27 Jason Rumney <jasonr@gnu.org>
10665
10666 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 10667 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 10668
86e893e3
KH
106692010-01-27 Kenichi Handa <handa@m17n.org>
10670
10671 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 10672 pattern string (Bug#4209).
86e893e3 10673
8719abec
CY
106742010-01-27 David De La Harpe Golden <david@harpegolden.net>
10675
10676 * fileio.c (Frename_file): Call copy-directory and
10677 delete-directory for directories, in order to handle cross-device
10678 renaming (Bug#3353).
10679
844794c8
JD
106802010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10681
aa3e13b5 10682 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 10683 sizes 24 and 10. Bug #3643.
844794c8 10684
bd4b5750
SM
106852010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10686
8dc1adf6 10687 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
10688 * keymap.c (shadow_lookup): Add `remap' arg.
10689 (describe_map, describe_vector): Update calls to shadow_lookup.
10690 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10691 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
10692 perform remapping during shadow_lookup check of remapped_sequences.
10693
285d07e2
CY
106942010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10695
10696 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10697 png_check_sig, which has been removed in libpng 1.4.
10698
c6d09b8d
CY
106992010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10700
10701 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10702 lacks this header file).
10703
3d782998
YM
107042010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10705
10706 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10707 as in Emacs 22.
10708
2aff7c53
YM
107092010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10710
10711 * lisp.h (make_pure_string): String pointer arg now points to const.
10712
10713 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10714 args now point to const.
10715
74327f7a
EZ
107162010-01-22 Eli Zaretskii <eliz@gnu.org>
10717
10718 * lread.c (Fload): Don't treat files without .elc extension as
10719 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10720 them. (bug#5303)
10721
4d1e6632
KH
107222010-01-20 Kenichi Handa <handa@m17n.org>
10723
10724 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10725 treat the source as actual byte sequence.
10726
1fdede8f
AM
107272010-01-19 Alan Mackenzie <acm@muc.de>
10728
10729 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 10730 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
10731 `signal_after_change_p' to `coherent_change_p', and make the
10732 invocation of `modify_region' conditional on it.
10733
67477f30
JD
107342010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10735
10736 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10737 for debug purpose.
10738 (syms_of_xsettings): Declare xft-settings.
10739
244b023e
CY
107402010-01-18 Chong Yidong <cyd@stupidchicken.com>
10741
10742 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10743
617364fe
CY
107442010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10745
10746 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10747
4fe22cdf
CY
107482010-01-16 Chong Yidong <cyd@stupidchicken.com>
10749
10750 * emacs.c (standard_args): Adjust arg priorities to reflect how
10751 they are processed in startup.el.
10752
e118d2be
AS
107532010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10754
10755 * Makefile.in (lisp, shortlisp): Update.
10756
523ae620
SM
107572010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10758
10759 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10760 code, link the new kboard into all_kboard before running Lisp code,
10761 and protect the new terminal with GCPRO (Bug#5365).
10762 (x_term_init): Remove unused var `atom'.
10763 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10764
f0d13888
JD
107652010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10766
10767 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10768 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10769 to find out usable size of the desktop. Don't make frames larger than
ac146f82 10770 this. Bug #3643.
f0d13888 10771
cc320f07
KH
107722010-01-15 Kenichi Handa <handa@m17n.org>
10773
10774 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10775
7ffdf101
CY
107762010-01-15 Chong Yidong <cyd@stupidchicken.com>
10777
10778 * nsterm.m (Qnone): Define.
10779
10780 * nsfns.m (Qnone): Move definition to nsterm.m.
10781
d12bd917
KH
107822010-01-14 Kenichi Handa <handa@m17n.org>
10783
10784 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10785 systems.
10786
d9a7c140
KH
107872010-01-14 Kenichi Handa <handa@m17n.org>
10788
10789 Make auto-composition work on all buffers even if they are
10790 fundamental mode.
10791
10792 * composite.c (Vauto_composition_mode): New variable.
10793 (composition_compute_stop_pos): Check Vauto_composition_mode
10794 instead of Vauto_composition_function.
10795 (composition_adjust_point, Ffind_composition_internal): Likewise.
10796 (syms_of_composite): Declare Lisp variable
10797 "auto-composition-mode" here.
10798
63286bb2
CY
107992010-01-13 Chong Yidong <cyd@stupidchicken.com>
10800
10801 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10802 during call to vendor-specific-keysyms (Bug#5365).
10803
c2623ee7
YM
108042010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10805
10806 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10807 Call SIGNAL_THREAD_CHECK (Bug#5333).
10808
10809 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10810 Call SIGNAL_THREAD_CHECK.
10811
0b5397c2
SM
108122010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10813
10814 Try to fix bug#5314. This is probably not the final word, tho.
10815 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10816 recent-auto-save-p as a side-effect.
10817 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10818 * buffer.c (Fkill_buffer, reset_buffer):
10819 * editfns.c (Fsubst_char_in_region):
10820 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10821 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10822
dc954cb2
KH
108232010-01-13 Kenichi Handa <handa@m17n.org>
10824
10825 Display buffer name, etc. in mode line by composing correctly.
10826
10827 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10828 STRING is not nil.
0b5397c2 10829 (display_mode_element): Adjust for the change of
dc954cb2
KH
10830 decode_mode_spec and display_line.
10831 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10832 (display_string): Handle the case that STRING is non-null and
10833 LISP_STRING is not nil.
10834
0b5397c2
SM
10835 * xterm.c (x_draw_composite_glyph_string_foreground):
10836 Pay attention to s->face->overstrike.
dc954cb2
KH
10837
10838 * composite.c (composition_reseat_it): Don't check PT if STRING is
10839 non nil.
10840
4a00eaca
YM
108412010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10842
10843 * keyboard.c (read_char): Don't apply previous change when current
10844 buffer is unchanged by command execution.
10845
60abb287
JD
108462010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10847
10848 * keyboard.c (read_char): Return after executing from special map.
10849
893db5bc
GM
108502010-01-12 Glenn Morris <rgm@gnu.org>
10851
10852 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10853 bug-gnu-emacs rather than emacs-pretest-bug.
10854
4d03ece0
CY
108552010-01-11 Chong Yidong <cyd@stupidchicken.com>
10856
10857 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10858 initializing the Lisp variables that depend on them.
10859
1df47e38
YM
108602010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10861
10862 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10863 Clear areas that will not be updated after change of menu bar lines.
10864 Clear the menu bar window's current matrix when the window gets empty.
10865
2f1c6384
CY
108662010-01-09 Chong Yidong <cyd@stupidchicken.com>
10867
e398c61c
CY
10868 * intervals.h, textprop.c (extend_property_ranges): Return value
10869 and args changed. Discard properties that begin at or after the
10870 new end (Bug#5306).
10871
10872 * editfns.c (Fformat): Caller changed.
10873
e5a29a10
CY
10874 * nsterm.m (ns_set_default_prefs): Delete function.
10875 (syms_of_nsterm): Initialize ns_command_modifier,
10876 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10877 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10878
2f1c6384
CY
10879 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10880 position (Bug#4040).
10881
d427a9fa
EZ
108822010-01-09 Eli Zaretskii <eliz@gnu.org>
10883
10884 * editfns.c (Ffloat_time): Doc fix.
10885
21b9df2f
JD
108862010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10887
10888 * xfns.c (Fx_create_frame): Don't create frame larger than display
10889 by default bug#3643.
10890
4b00d3b1
YM
108912010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10892
10893 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10894 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10895 windows above internal border.
10896
10897 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10898 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10899 windows above internal border.
10900
10901 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10902 tool bar windows specially.
10903
10904 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10905
10906 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10907 specially.
10908 (XTflash): Take account of menu bar height.
10909
10910 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10911 specially.
10912
5075d853
JD
109132010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10914
ac146f82 10915 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
10916 also be true before we can return early (bug #5339).
10917
474217c8
CY
109182010-01-06 David Reitter <david.reitter@gmail.com>
10919
10920 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10921 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10922 (Bug#3233).
10923
c0e6d47d
JD
109242010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10925
d0cf45b7
JD
10926 * font.c (font_open_entity): Enable chache and call cached_font_ok
10927 for the driver if defined.
10928 (QCuser_spec): New symbol.
10929 (font_spec_from_name): Save name as user-spec.
10930 (font_load_for_lface): Keep user-spec instead of name.
10931 (font_open_by_name): Save name as user-spec.
10932 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 10933 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
10934
10935 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10936 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10937 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10938
10939 * font.h (struct font_driver): Add cached_font_ok.
10940
c0e6d47d
JD
10941 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10942
7c583cd8
JD
109432010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10944
10945 * xterm.c (x_new_font): Move code for setting rows/cols before
10946 resizing ...
ac146f82 10947 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
10948
10949 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
10950 (xg_frame_resized, xg_frame_set_char_size):
10951 Call xg_clear_under_internal_border.
7c583cd8 10952 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 10953
03f77f0a
CY
109542010-01-05 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * keyboard.c (read_key_sequence): Catch keyboard switch after
10957 making a new tty frame (Bug#5095).
10958
2a1ef5be
KH
109592010-01-05 Kenichi Handa <handa@m17n.org>
10960
10961 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10962
e3eb1dae
SM
109632010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10964
10965 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10966 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10967 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10968
777013f2
MA
109692010-01-03 Michael Albinus <michael.albinus@gmx.de>
10970
10971 * dbusbind.c (xd_add_watch): Improve debug message.
10972 (xd_remove_watch): Improve debug message. If DATA is the session
10973 bus, unset D-Bus session environment.
10974 (Fdbus_init_bus): Pass the bus as argument to
10975 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10976
8932b1c2
CY
109772010-01-01 Chong Yidong <cyd@stupidchicken.com>
10978
87231e2c
CY
10979 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10980
4801c5fa
CY
10981 * lread.c (syms_of_lread): Make it clearer that these are the
10982 names of loaded files (Bug#5068).
10983
8932b1c2
CY
10984 * eval.c (run_hook_with_args): Handle the case where the global
10985 value has the obsolete single-function form (Bug#5026).
10986
11e3c684
CY
109872009-12-27 Chong Yidong <cyd@stupidchicken.com>
10988
10989 * minibuf.c (Fall_completions): Minor optimization.
10990
5b28ce35
EZ
109912009-12-26 Eli Zaretskii <eliz@gnu.org>
10992
5ce6e4f4
JB
10993 * .gdbinit (pgx): Fix display of composite glyphs.
10994 Display cmp.from and cmp.to as well.
10995 (pitx): Fix last change.
5b28ce35 10996
bcffff46
KH
109972009-12-25 Kenichi Handa <handa@m17n.org>
10998
10999 * composite.h (composition_adjust_point): Update prototype.
11000
11001 * composite.c (composition_reseat_it): Don't make a composition
11002 spanning over point.
11003 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11004 composable characters.
11005 (composition_adjust_point): New arg NEW_PT. Callers changed.
11006
11007 * keyboard.c (command_loop_1): Force redisplay if the last point
11008 was within a composition.
11009 (adjust_point_for_property): Don't adjust point for automatic
11010 composition when called after buffer modification.
11011
3f670e9a
EZ
110122009-12-19 Eli Zaretskii <eliz@gnu.org>
11013
5ce6e4f4
JB
11014 * .gdbinit (pitx): Don't use enum names, use their values.
11015 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
11016 (pgx): Don't use enum names, use their values.
11017 (pitmethod): New helper command.
11018 (pitx): Use it to display iteration method.
11019 (pgrowit): New command.
11020
ad903955
EZ
11021 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11022
3f670e9a
EZ
11023 Update dependencies in Makefile.in.
11024
11025 * Makefile.in (alloc.o): Depend on termhooks.h.
11026 (atimer.o): Depend on blockinput.h.
11027 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11028 and frame.h.
11029 (callint.o): Depend on systime.h, coding.h, and composite.h.
11030 (callproc.o): Depend on buffer.h.
11031 (casefiddle.o): Don't depend on charset.h.
11032 (casetab.o): Depend on character.h.
11033 (ccl.o): Depend on composite.h.
11034 (chartab.o): Depend on ccl.h.
11035 (cm.o): Depend on dispextern.h.
11036 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11037 (coding.o): Don't depend on $(INTERVALS_H).
11038 (composite.o): Don't depend on dispextern.h explicitly (it's in
11039 $(INTERVALS_H)). Depend on ccl.h.
11040 (data.o): Depend on systime.h, coding.h, composite.h,
11041 dispextern.h, font.h, and ccl.h.
11042 (dired.o): Depend on composite.h.
11043 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11044 composite.h (it's in $(INTERVALS_H)).
11045 (doc.o): Depend on systime.h, coding.h, and composite.h.
11046 (editfns.o): Don't depend explicitly on dispextern.h.
11047 (emacs.o): Depend on frame.h and coding.h.
11048 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11049 (fileio.o): Depend on frame.h and commands.h. Don't depend
11050 explicitly on dispextern.h.
11051 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11052 composite.h.
11053 (fns.o): Don't depend on termhooks.h.
11054 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11055 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11056 coding.h, $(INTERVALS_H), window.h, xterm.h.
11057 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11058 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11059 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11060 fontset.h, ccl.h, and ftfont.h.
11061 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11062 (gtkutil.o): Depend on dispextern.h and composite.h.
11063 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11064 termhooks.h, and ccl.h.
11065 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11066 (intervals.o): Depend on systime.h and coding.h.
11067 (keyboard.o): Depend on composite.h and coding.h.
11068 (keymap.o): Depend on coding.h and frame.h.
11069 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11070 (macros.o): Depend on systime.h, coding.h, and composite.h.
11071 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11072 and atimer.h.
11073 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11074 dispextern.h explicitly.
0b5397c2
SM
11075 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11076 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
11077 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11078 (regex.o): Don't depend on charset.h.
11079 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11080 (search.o): Don't depend explicitly on composite.h.
11081 (sound.o): Depend on atimer.h and systime.h.
11082 (syntax.o): Don't depend explicitly on composite.h.
11083 (sysdep.o): Depend on coding.h and composite.h.
11084 (term.o): Depend on xterm.h and buffer.h.
11085 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11086 (textprop.o): Don't depend on dispextern.h explicitly.
11087 (undo.o): Depend on dispextern.h.
11088 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11089 dispextern.h and composite.h explicitly.
11090 (xdisp.o): Depend on ccl.h.
11091 (xfaces.o): Depend on coding.h and ccl.h.
11092 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11093 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11094 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11095 ftfont.h.
11096 (xgselect.o): New dependency.
11097 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11098 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11099 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11100 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11101 (xsmfns.o): Depend on frame.h and dispextern.h.
11102 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11103 sysselect.h.
11104
7a6f7fea
AS
111052009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11106
11107 * font.c (Fclear_font_cache): Pass correct cache argument to
11108 font_clear_cache.
11109
f4c21026
AS
111102009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11111
11112 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11113 twice.
11114
f7ab0997
CY
111152009-12-15 Chong Yidong <cyd@stupidchicken.com>
11116
11117 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11118 calling file-remote-p. Reported by Jim Meyering.
11119
fa8e045a
MA
111202009-12-15 Michael Albinus <michael.albinus@gmx.de>
11121
11122 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 11123 avoid compiler warnings. (Bug #5217)
fa8e045a 11124
a63dba42
KH
111252009-12-14 Kenichi Handa <handa@m17n.org>
11126
11127 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11128 in 8-bit encoding.
11129
5ce6e4f4 111302009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
11131
11132 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11133 tooltip windows.
11134
223e5fc6
JD
111352009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11136
36acb2a7
JD
11137 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11138 Xatom_net_window_type.
11139
11140 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11141 Xatom_net_window_type.
11142
b8f00677
JD
11143 * xterm.c (my_log_handler): New function.
11144 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 11145 so we can filter out buggy messages. (Bug #5120).
b8f00677 11146
e5f0bc9a
JD
11147 * xterm.c (xg_scroll_callback): Parameter list changed,
11148 use parameter GtkScrollType to determine scroll/line/page.
11149 Only allow dragging if a button < 4 is grabbed (bug #5177).
11150 (xg_end_scroll_callback): New function.
11151 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11152 xg_create_scroll_bar.
11153
11154 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11155 (scroll_end_callback): Remove.
11156 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11157 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 11158 bug #5177.
e5f0bc9a
JD
11159 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11160 bug #5177.
11161
11162 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11163 (xg_create_scroll_bar): Add GCallback end_callback.
11164
223e5fc6
JD
11165 * xftfont.c (QClcdfilter): New variable.
11166 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11167 (syms_of_xftfont): Initialize QClcdfilter.
11168
3c055b77
JD
111692009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11170
11171 * xsettings.c (struct xsettings): Add member seen.
11172 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 11173 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
11174 (apply_xft_settings): Only update Xft settings with what member seen
11175 indicates as new.
11176
05fe33ff
EZ
111772009-12-12 Eli Zaretskii <eliz@gnu.org>
11178
c4cc8b9a 11179 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
11180 (struct glyph): Use EMACS_INT for charpos.
11181 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11182 region_beg_charpos, region_end_charpos,
11183 redisplay_end_trigger_charpos, and also for
11184 iterator_stack_entry.end_charpos and
11185 iterator_stack_entry.stop_charpos.
11186
e8d7886a
JD
111872009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11188
5ce6e4f4 11189 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
11190 (xg_create_scroll_bar): Call scroll_end_callback on button release
11191 event (bug #5177).
11192 (xg_event_is_for_scrollbar): != replaced with ==.
11193
d0db2ec8
KH
111942009-12-12 Kenichi Handa <handa@m17n.org>
11195
11196 * ftfont.c (struct ftfont_info): New member matrix.
11197 (ftfont_open): Setup xftfont_info->matrix.
11198 (MFLTFontFT): New member matrix.
11199 (FLOOR, CEIL, ROUND): New macros.
11200 (ftfont_get_metrics): Handle matrix transformation.
11201 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11202
11203 * xftfont.c (struct xftfont_info): New member matrix.
11204 (xftfont_open): Setup xftfont_info->matrix.
11205
112062009-12-10 Kenichi Handa <handa@m17n.org>
11207
11208 * xdisp.c (append_space_for_newline): Consider face-remapping.
11209
2cc7b62f
AS
112102009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11211
b87dd913
AS
11212 * xsettings.c: Include "keyboard.h".
11213
eba5eb94
AS
11214 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11215
2cc7b62f
AS
11216 Fix implicit function declarations.
11217 * cmds.c: Include "frame.h".
11218 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11219 * frame.h: Move declaration of delete_frame outside of
11220 HAVE_WINDOW_SYSTEM.
11221
a4ef73c8
CY
112222009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11223
11224 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11225
11226 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11227 GTK builds.
11228
944a300c
AS
112292009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11230
11231 * unexelf.c (unexec): Don't search for .data twice.
11232
022eef62
CY
112332009-12-05 Chong Yidong <cyd@stupidchicken.com>
11234
426ac949
CY
11235 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11236 if push failed.
11237 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11238 of push_display_prop (Bug#5000).
11239
022eef62
CY
11240 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11241 value of font_list_entities (Bug#5085).
11242
be95bee9
JB
112432009-12-04 Juanma Barranquero <lekktu@gmail.com>
11244
11245 Fix `string-to-number' to deal consistently with integers and floats.
11246 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11247 trailing characters, not just whitespace.
11248 (read1): Pass new arg 0 to keep old behavior.
11249 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11250 trailing chars, as it is already done for integers. Doc fixes.
11251 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11252
24c2d7ce
EZ
112532009-12-04 Eli Zaretskii <eliz@gnu.org>
11254
0b5397c2
SM
11255 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11256 Delete unused enumeration value.
24c2d7ce 11257
7e694795
EZ
112582009-12-03 Eli Zaretskii <eliz@gnu.org>
11259
11260 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11261
84b31826
SM
112622009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11263
11264 * process.c (Fmake_network_process): Fix up the tests for
11265 "connectionless socket", so they DTRT for seqpacket sockets as well.
11266
f00c449b
SM
112672009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11268
11269 * process.c (Qseqpacket): New symbol.
11270 (HAVE_SEQPACKET): New macro.
11271 (Fmake_network_process): Accept new :type `seqpacket'.
11272 (init_process): Add `seqpacket' feature when applicable.
11273 (syms_of_process): Initialize Qseqpacket.
11274
8096a0ff
YM
112752009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11276
11277 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11278 if entity is Qnil.
11279
3e0de07f
SM
112802009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11281
11282 * print.c (print_preprocess): Preprocess the key_and_value table of
11283 hashtables, even tho they're "hidden" (bug#5082).
11284
abeafb2a
JD
112852009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11286
11287 * frame.c (frame_make_pointer_invisible)
11288 (frame_make_pointer_visible): Declare f before statements.
11289
4bf47195
EZ
112902009-11-28 Eli Zaretskii <eliz@gnu.org>
11291
11292 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11293 omitted dependencies on lisp.h.
11294
c525b3f2
JD
112952009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11296
ece2d4ed
JD
11297 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11298 is NULL.
11299
11300 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11301
11302 * frame.c (frame_make_pointer_invisible)
3e0de07f 11303 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11304 frame.
11305
c525b3f2
JD
11306 * search.c (simple_search): Remove warning by making *p const.
11307
2f00e299
DN
113082009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11309
11310 * xdisp.c (power_letter): Remove duplicate const.
11311
084b049b
JD
113122009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11313
a1fadc6f
JD
11314 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11315
5ce6e4f4 11316 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11317 defaults (bug #5025).
11318
28259cac
SM
113192009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11320
11321 * insdel.c (adjust_markers_for_delete): Move it in the
11322 right direction! (bug#4803)
11323
e8e14166
YM
113242009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11325
11326 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11327
11328 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11329
86677b58
GM
113302009-11-24 Glenn Morris <rgm@gnu.org>
11331
11332 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11333
581e51e8
JD
113342009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11335
cfc86c7a
JD
11336 * Makefile.in: Must create deps for ecrt0.o in its rule.
11337
581e51e8
JD
11338 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11339 because that is what Gtk+ font dialog understands.
11340
11341 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11342 of Fcopy_sequence.
11343 (font_open_by_name): Put name given into QCname for font-object returned.
11344
11345 * frame.c (x_set_font): Save original font name as frame parameter
11346 font-parameter.
11347
11348 * xsettings.c (set_default_xft_settings): New function.
11349 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11350 is found.
11351
8b264ecb
AS
113522009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11353
11354 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11355 searching backwards through multibyte buffer.
11356
872870b2
JD
113572009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11358
11359 * xterm.c: #include xgselect.h.
11360 (x_initialize): Call xgselect_initialize.
11361
11362 * xsettings.c (something_changedCB): C++ comments => C comments.
11363 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11364 does that now.
11365
11366 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11367 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11368 (scroll_bar_button_cb): Remove.
5ce6e4f4 11369 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11370 event.
11371 (xg_create_scroll_bar): Don't bind button-press-event and
11372 button-release-event.
11373
11374 * process.c: Include xgselect.h if defined (USE_GTK) ||
11375 defined (HAVE_GCONF).
11376 (wait_reading_process_output): Call xg_select for the same condition.
11377
11378 * xgselect.c (xg_select): New function to better integrate with
11379 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11380
11381 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11382
11383 * Makefile.in (XOBJ): Add xgselect.o.
11384
62a6e103
AS
113852009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11386
0b5397c2
SM
11387 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11388 Remove ignored second argument. All callers changed.
62a6e103
AS
11389 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11390 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11391 * xdisp.c (string_char_and_length): Likewise.
11392
b0ca0f33
DN
113932009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11394
11395 * xterm.c (x_new_font):
11396 * print.c (print_object):
11397 * cmds.c (Fself_insert_command): Move declarations before statements.
11398
dd5a6279
CY
113992009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11400
11401 * s/cygwin.h: Remove unneeded linker flags.
11402
4a8e097d
JD
114032009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11404
0d1d0d26
JD
11405 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11406
11407 * xsettings.h: Declare xsettings_get_system_font.
11408
11409 * xsettings.c (xsettings_get_system_font): New function.
11410 (init_gconf): No use initiating gconf unless we have Xft also.
11411 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11412 HAVE_GCONF.
11413
4a8e097d
JD
11414 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11415 add a blank entry so it doesn't collapse into nothing.
11416
8ab1650e
SM
114172009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11418
11419 * lread.c (Funintern): Comment out last change.
11420
82c602f0
RS
114212009-11-19 Richard Stallman <rms@gnu.org>
11422
11423 * lread.c (Funintern): Error if symbol is t or nil.
11424
87e32266
SM
114252009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11426
11427 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11428 representation of Lisp integers.
11429 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11430
1b9ac145
AS
114312009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11432
11433 * lisp.h: Remove declaration of Ffont_get_system_font.
11434 * xfns.c: Move include of "xsettings.h".
11435 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11436
dfb3c4c6
JD
114372009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11438
87e32266
SM
11439 * xsettings.c (something_changedCB, Ffont_get_system_font):
11440 Check use_system_font.
dfb3c4c6
JD
11441 (syms_of_xsettings): DEFVAR font-use-system-font.
11442
9370c1d8
AS
114432009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11444
25fe851a
AS
11445 * xfns.c (x_default_font_parameter): Remove dead assignment.
11446
9370c1d8
AS
11447 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11448
637fa988
JD
114492009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11450
87e32266 11451 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11452 not have FC_LCD_*. #define them if not there.
a6eb20d8 11453
87e32266 11454 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11455
637fa988
JD
11456 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11457
11458 * xterm.c (handle_one_xevent): Call xft_settings_event for
11459 ClientMessage, PropertyNotify and DestroyNotify.
11460 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11461 Call xsettings_initialize.
11462
11463 * xftfont.c (xftfont_fix_match): New function.
11464 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11465 Call xftfont_fix_match after XftFontMatch.
11466
11467 * xfont.c (xfont_driver): Initialize all members.
11468
87e32266
SM
11469 * xfns.c (x_default_font_parameter):
11470 Try font from Ffont_get_system_font.
637fa988
JD
11471 Do not get font from x_default_parameter if we got one from
11472 Ffont_get_system_font.
87e32266 11473 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11474
11475 * w32font.c (w32font_driver): Initialize all members.
11476
11477 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11478
11479 * lisp.h: Declare syms_of_xsettings.
11480
87e32266
SM
11481 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11482 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11483
11484 * ftfont.c (ftfont_filter_properties): New function.
11485
11486 * frame.c (x_set_font): Remove unused variable lval.
11487
87e32266 11488 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11489
11490 * font.c (font_put_extra): Don't return if val is nil, it means
11491 boolean option is off.
11492 (font_parse_fcname): Collect all extra properties in extra_props
11493 and call filter_properties for all drivers with extra_props and
11494 font as parameter.
87e32266
SM
11495 (font_open_entity): Do not use cache, it does not pick up new
11496 fontconfig settings like hinting.
637fa988
JD
11497 (font_load_for_lface): If spec had a name in it, store it in entity.
11498
a73f9c9d 11499 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11500
11501 * config.in: HAVE_GCONF is new.
11502
11503 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11504 xsettings.o is new.
11505
5a942932
KH
115062009-11-17 Kenichi Handa <handa@m17n.org>
11507
11508 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11509 back to the default font in case that no suitable font is found.
11510
b7c7a4d1
SM
115112009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11512
11513 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11514 Suggested by Chad Brown <yandros@mit.edu>.
11515 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11516
072f1e39
JD
115172009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11518
11519 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11520
5d1e70a2
AS
115212009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11522
87e32266 11523 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11524
a53cfbe5
JD
115252009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11526
473a99b7
JD
11527 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11528 has a parent.
11529
a53cfbe5 11530 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11531 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11532
11533 * config.in: Generated (AUTO_DEPEND).
11534
f04bb9b2
MA
115352009-11-13 Michael Albinus <michael.albinus@gmx.de>
11536
b7c7a4d1 11537 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11538 Vdbus_registered_functions_table, because it contains also
11539 properties. Fix docstring.
b7c7a4d1 11540 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11541
8f11f7ec
SM
115422009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11543
11544 * alloc.c (mark_object): Don't reprocess marked strings.
11545 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11546 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11547
8a605fe8
KH
115482009-11-13 Kenichi Handa <handa@m17n.org>
11549
8f11f7ec 11550 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11551 semantics of Vword_combining_categories.
11552 (Vword_combining_categories): Describe the slight change of the
11553 semantics.
11554
241c4680
EZ
115552009-11-13 Eli Zaretskii <eliz@gnu.org>
11556
11557 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11558
11559 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11560
5d58e44c
SM
115612009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11562
11563 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11564
5e13f9d3
JB
115652009-11-12 Juanma Barranquero <lekktu@gmail.com>
11566
11567 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11568
cf54c754
DR
115692009-11-11 David Reitter <david.reitter@gmail.com>
11570
11571 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11572 variables to fix 2009-11-09 change.
11573
a4ada374
DN
115742009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11575
91433552
DN
11576 * process.c (ifflag_def): Make flag_sym constant.
11577 (Fnetwork_interface_info): Use a constant pointer.
11578 (ifflag_table):
11579 * xfns.c (cursor_bits):
11580 * xdisp.c (power_letter):
11581 * termcap.c (speeds, esctab):
11582 * sysdep.c (baud_convert):
11583 * keyboard.c (lispy_accent_codes, modifier_names):
11584 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11585 (jpeg_format, tiff_format, gif_format, svg_format)
11586 (interlace_start, interlace_increment, gs_format):
11587 * gtkutil.c (separator_names):
11588 * fringe.c (swap_nibble):
11589 * fns.c (base64_value_to_char, base64_char_to_value):
11590 * fileio.c (make_temp_name_tbl):
11591 * coding.c (suffixes): Make constant.
11592
f4265f6c
DN
11593 * frame.c (make_initial_frame):
11594 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11595 build_string.
11596 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11597
04420943
DN
11598 * s/freebsd.h:
11599 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11600
0a5d24ae
DN
11601 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11602 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11603
a4ada374
DN
11604 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11605 * xterm.c (syms_of_xterm):
11606 * xfaces.c (syms_of_xfaces):
11607 * xdisp.c (syms_of_xdisp):
11608 * lread.c (syms_of_lread):
11609 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11610 build_string.
91433552 11611
a4ada374
DN
11612 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11613
af98fc7f
SM
116142009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11615
8ab1650e 11616 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 11617
e90292a9
JD
116182009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11619
11620 * keyboard.h: Declare timer_check.
11621
11622 * keyboard.c (timer_check_2): New function that does what the old
11623 timer_check did.
11624 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11625 returned, i.e. don't return -1 with timers pending.
11626
11627 * process.c: Remove extern declaration of timer_check.
11628
11629 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11630 even if timer_check returned -1.
11631
af98fc7f
SM
11632 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11633 xg_dialog_data.
e90292a9
JD
11634 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11635 the event loop.
11636 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11637 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11638 Destroy the dialog after xg_dialog_run.
11639
045b83c0
SM
116402009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11643
1fb99a3a
JD
116442009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11645
11646 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11647
04e452cb
JB
116482009-11-09 Juanma Barranquero <lekktu@gmail.com>
11649
11650 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11651
ef7417fd
SM
116522009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11653
11654 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11655 w32menu.c, and nsmenu.m.
11656 Simplify the obsolete case where position is nil.
11657 (cleanup_popup_menu): New function, moved from nsmenu.m.
11658 (struct skp): Remove slot `notreal'.
11659 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11660 adjust callers.
11661 (single_menu_item): Adjust call to parse_menu_item.
11662 (syms_of_menu): Defsubr x-popup-menu.
11663 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11664 (keymap_panes): Don't export any more.
11665 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11666 (xmenu_show): Declare.
11667 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11668 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11669 * keyboard.h (parse_menu_item): Update declaration.
11670 * xmenu.c (Fx_popup_menu): Remove.
11671 (syms_of_xmenu): Don't defsubr x-popup-menu.
11672 * w32menu.c (Fx_popup_menu): Remove.
11673 (syms_of_w32menu): Don't defsubr x-popup-menu.
11674 * nsmenu.m (cleanup_popup_menu): Remove.
11675 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11676 moved to menu.c's Fx_popup_menu.
11677 (Fx_popup_menu): Remove.
11678 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11679 menu_items (it's done in menu.c already).
11680
424d6179
SM
116812009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11682
11683 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11684 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11685
c0df13a6 116862009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
11687
11688 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 11689 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
11690 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11691 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11692
2de9f71c
SM
116932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11694
11695 Let integers use up 2 tags to give them one extra bit and thus double
11696 their range.
11697 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11698 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11699 New macros.
11700 (enum Lisp_Type): Use them. Give explicit values.
11701 (Lisp_Type_Limit): Remove.
11702 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11703 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11704 Pay attention to USE_2_TAGS_FOR_INTS.
11705 (INTEGERP): Use LISP_INT_TAG_P.
11706 * fns.c (internal_equal): Simplify the default case.
11707 (sxhash): Use case_Lisp_Int.
11708 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11709 any more.
11710 (Ftype_of): Use case_Lisp_Int.
11711 (store_symval_forwarding): Take into account the fact that Ints can
11712 now have more than one tag.
11713 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 11714 (buffer_slot_type_mismatch):
2de9f71c
SM
11715 * xfaces.c (face_attr_equal_p):
11716 * print.c (print_object):
11717 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11718 Use case_Lisp_Int.
11719
323637a2
EZ
117202009-11-06 Eli Zaretskii <eliz@gnu.org>
11721
7ac65b38
EZ
11722 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11723
323637a2
EZ
11724 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11725 warning.
11726
e511451f
JD
117272009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11728
11729 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11730
11731 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11732
11733 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11734 ButtonPressRelease and MotionNotify (bug#4870).
11735
5e2327cf
DN
117362009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11737
5adc433e
DN
11738 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11739
d67b4f80
DN
11740 * xterm.c (syms_of_xterm):
11741 * xselect.c (syms_of_xselect):
11742 * xmenu.c (syms_of_xmenu):
11743 * xfns.c (syms_of_xfns):
11744 * xfaces.c (syms_of_xfaces):
11745 * xdisp.c (syms_of_xdisp):
11746 * window.c (syms_of_window):
11747 * w32fns.c (syms_of_w32fns):
11748 * undo.c (syms_of_undo):
11749 * textprop.c (syms_of_textprop):
11750 * terminal.c (syms_of_terminal):
11751 * syntax.c (syms_of_syntax):
11752 * sound.c (syms_of_sound):
11753 * search.c (syms_of_search):
11754 * print.c (syms_of_print):
11755 * minibuf.c (syms_of_minibuf):
11756 * macros.c (syms_of_macros):
11757 * keymap.c (syms_of_keymap, initial_define_key)
11758 (initial_define_lispy_key):
11759 * keyboard.c (syms_of_keyboard):
11760 * insdel.c (syms_of_insdel):
11761 * image.c (syms_of_image):
11762 * fringe.c (syms_of_fringe):
11763 * frame.c (syms_of_frame):
11764 * fontset.c (syms_of_fontset):
11765 * fns.c (syms_of_fns):
11766 * fns.c (syms_of_fns):
11767 * fileio.c (syms_of_fileio):
11768 * fileio.c (syms_of_fileio):
11769 * eval.c (syms_of_eval):
11770 * doc.c (syms_of_doc):
11771 * dispnew.c (syms_of_display):
11772 * dired.c (syms_of_dired):
11773 * dbusbind.c (syms_of_dbusbind):
11774 * data.c (syms_of_data):
11775 * composite.c (syms_of_composite):
11776 * coding.c (syms_of_coding):
11777 * cmds.c (syms_of_cmds):
11778 * charset.c (define_charset_internal, syms_of_character):
11779 * ccl.c (syms_of_ccl):
11780 * category.c (syms_of_category, init_category_once):
11781 * casetab.c (syms_of_casetab):
11782 * casefiddle.c (syms_of_casefiddle):
11783 * callint.c (syms_of_callint):
11784 * bytecode.c (syms_of_bytecode):
11785 * buffer.c (keys_of_buffer, syms_of_buffer):
11786 * alloc.c (syms_of_alloc):
11787 * process.c (syms_of_process, init_process):
11788 * lread.c (syms_of_lread, init_obarray):
11789 * font.c (build_style_table):
11790 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11791 intern_c_string, calls to make_pure_string with
11792 make_pure_c_string. Use pure_cons instead of Fcons.
11793
5e2327cf
DN
11794 * process.c (socket_options): Make it const.
11795 (set_socket_option, init_process): Use a const pointer.
11796
11797 * lread.c (intern_c_string): New function.
11798 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11799 (defvar_int): Uset it. Make the name const char*.
11800
11801 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11802 (defvar_int): Update prototypes.
11803 (DEFUN, EXFUN): Support for prototypes is now required.
11804 (intern_c_string): New prototype.
11805 (struct Lisp_Subr): Make symbol_name constant.
11806
11807 * font.c (struct table_entry): Remove unused member. Make NAMES
11808 constant.
11809 (weight_table, slant_table, width_table): Make constant.
11810
11811 * emacs.c (struct standard_args): Make name and longname constant.
11812
11813 * character.h (DEFSYM): Use intern_c_string.
11814
a56eaaef
DN
118152009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11816
11817 * alloc.c (make_pure_c_string): New function.
11818
11819 * eval.c (Fautoload): Purecopy all arguments.
11820
f6a07420
KH
118212009-11-05 Kenichi Handa <handa@m17n.org>
11822
11823 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11824 the buffer in case of replace.
11825
5d28d4b1
DN
118262009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11827
11828 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11829
b349d111
SM
118302009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11831
d528b1ce
SM
11832 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11833 when applicable (bug#4851).
11834
b349d111
SM
11835 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11836 (P_): Support for prototypes is now required.
11837
c38eb027
CY
118382009-10-31 Chong Yidong <cyd@stupidchicken.com>
11839
11840 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11841 (Bug#4827).
11842
0405f8d9
EZ
118432009-10-30 Eli Zaretskii <eliz@gnu.org>
11844
d528b1ce 11845 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 11846
ca0a881a
DN
118472009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11848
11849 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11850
d528b1ce
SM
11851 * lread.c (Fload): Purecopy the file name when building
11852 Vpreloaded_file_list.
ca0a881a 11853
47e0e0e4
JR
118542009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11855
11856 * w32fns.c (syms_of_w32fns): Change default value of
11857 w32-scroll-lock-modifier to nil. (Bug#2827)
11858
057bce6f
JB
118592009-10-26 Juanma Barranquero <lekktu@gmail.com>
11860
782a943e 11861 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 11862
242bc74c
AS
118632009-10-26 Andreas Schwab <schwab@redhat.com>
11864
11865 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11866
522d013a
JB
118672009-10-26 Juanma Barranquero <lekktu@gmail.com>
11868
11869 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11870 For delta < 0, skip check that only makes sense when the mini-window
11871 is going to be enlarged. (Bug#4534)
11872
18060980
CY
118732009-10-25 Chong Yidong <cyd@stupidchicken.com>
11874
11875 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11876 string in menu maps (Bug#4471).
11877
fec8f0fe
CY
118782009-10-24 Chong Yidong <cyd@stupidchicken.com>
11879
11880 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11881 FRAME_NS_VIEW on terminal frames (Bug#4765).
11882
10d66ec0
AS
118832009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11884
1cae01f7
AS
11885 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11886 DBUS_TYPE_UINTnn separately to get proper sign extension.
11887
58a12889
AS
11888 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11889 can properly handle unsigned types.
d528b1ce 11890 (make_uid, make_gid): Remove.
58a12889 11891
987c9327
AS
11892 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11893 types again.
11894
522d013a 11895 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
11896 (system_process_attributes): Likewise.
11897
905a9ed3
DN
118982009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11899
11900 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11901
11902 * eval.c (Fautoload): Purecopy the filename. Simplify.
11903
11904 * category.c (Fdefine_category): Purecopy docstring.
11905
a599b3e8
AS
119062009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11907
7b792fc9
AS
11908 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11909
a599b3e8
AS
11910 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11911
b35ac83e
CY
119122009-10-23 Chong Yidong <cyd@stupidchicken.com>
11913
11914 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11915 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11916 (Bug#4775).
11917
e8903e00
SM
119182009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11919
11920 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11921 (init_fileio_once):
11922 * lisp.h (init_fileio_once): Remove.
11923 * emacs.c (main): Don't call init_fileio_once.
11924
8f43cbf3
DN
119252009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11926
11927 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11928
26898943
AS
119292009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11930
11931 * doprnt.c (doprnt): Fix overflow check.
11932
5c646d5a
JD
119332009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11934
3132a7ea
JD
11935 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11936
5c646d5a
JD
11937 * xterm.h (x_wait_for_event): Declare it.
11938
11939 * xterm.c (pending_event_wait): New variable.
11940 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11941 see pending_event_wait.eventtype.
11942 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
11943 (x_new_font): Call change_frame_size with new rows/columns before we
11944 try to resize the frame.
5c646d5a 11945 (x_wait_for_event): New function.
d528b1ce
SM
11946 (x_set_window_size_1): Don't change gravity unless change_gravity
11947 is set.
5c646d5a
JD
11948 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11949 don't change frame size, instead wait for the ConfigureNotify.
11950 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11951 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11952 (x_initialize): Initialize pending_event_wait.
11953
11954 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11955 size.
11956
11957 * widget.c (EmacsFrameSetValues): Add comment.
11958 (EmacsFrameSetCharSize): Just call x_set_window_size.
11959
11960 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11961 x_wait_for_event.
d528b1ce 11962 (flush_and_sync): Remove again.
5c646d5a
JD
11963 (xg_get_font_name): Suggest monospace if no previous font is known.
11964
e9c1637d
SM
119652009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11966
11967 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11968 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11969
5a72cccb
YM
119702009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11971
11972 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11973 processing pending events when event is filtered for input method.
ab04798f 11974 (Bug#3681)
5a72cccb 11975
2629aa37
JB
119762009-10-20 Juanma Barranquero <lekktu@gmail.com>
11977
11978 * fns.c: Add #endif accidentally removed in previous change.
11979
c3417a74
DN
119802009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11981
11982 * fns.c: Remove code for unsupported system: MAC_OS.
11983 * image.c: Likewise. Include setjmp.h.
11984
9685cef2
JD
119852009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11986
11987 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11988 pixel -1 (bug #4742).
11989
d7306fe6
DN
119902009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11991
019d2c4c
DN
11992 * process.c (create_pty): Remove conditionals for no longer
11993 supported systems: UNIPLUS and RTU.
11994
ee6bacd4
DN
11995 * xterm.c:
11996 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11997
d7306fe6
DN
11998 * alloc.c: Do not define struct catchtag.
11999 * eval.c: Move struct catchtag definition ...
12000 * lisp.h: ... here.
12001
12002 * image.c: Move png.h #include earlier to avoid warnings.
12003
12004 * xterm.c:
12005 * xsmfns.c:
12006 * xselect.c:
12007 * xrdb.c:
12008 * xmenu.c:
12009 * xftfont.c:
12010 * xfont.c:
12011 * xfns.c:
12012 * xfaces.c:
12013 * xdisp.c:
12014 * window.c:
12015 * widget.c:
12016 * w32xfns.c:
12017 * w32uniscribe.c:
12018 * w32term.c:
12019 * w32select.c:
12020 * w32reg.c:
12021 * w32proc.c:
12022 * w32menu.c:
12023 * w32inevt.c:
12024 * w32heap.c:
12025 * w32font.c:
12026 * w32fns.c:
12027 * w32console.c:
12028 * w32.c:
12029 * w16select.c:
12030 * vm-limit.c:
12031 * unexsol.c:
12032 * unexec.c:
12033 * unexcw.c:
12034 * unexaix.c:
12035 * undo.c:
12036 * tparam.c:
12037 * textprop.c:
12038 * terminfo.c:
12039 * terminal.c:
12040 * termcap.c:
12041 * term.c:
12042 * syntax.c:
12043 * sound.c:
12044 * sheap.c:
12045 * search.c:
12046 * scroll.c:
12047 * region-cache.c:
12048 * regex.c:
12049 * ralloc.c:
12050 * process.c:
12051 * print.c:
b024548b
DN
12052 * nsterm.m:
12053 * nsselect.m:
12054 * nsmenu.m:
12055 * nsimage.m:
12056 * nsfont.m:
12057 * nsfns.m:
d7306fe6
DN
12058 * msdos.c:
12059 * minibuf.c:
12060 * menu.c:
12061 * marker.c:
12062 * macros.c:
12063 * keymap.c:
12064 * keyboard.c:
12065 * intervals.c:
12066 * insdel.c:
12067 * indent.c:
12068 * gtkutil.c:
12069 * ftxfont.c:
12070 * ftfont.c:
12071 * fringe.c:
12072 * frame.c:
12073 * fontset.c:
12074 * font.c:
12075 * fns.c:
12076 * floatfns.c:
12077 * filelock.c:
12078 * fileio.c:
12079 * emacs.c:
12080 * editfns.c:
12081 * dosfns.c:
12082 * doprnt.c:
12083 * doc.c:
12084 * dispnew.c:
12085 * dired.c:
12086 * dbusbind.c:
12087 * data.c:
12088 * composite.c:
12089 * coding.c:
12090 * cmds.c:
12091 * cm.c:
12092 * chartab.c:
12093 * charset.c:
12094 * character.c:
12095 * ccl.c:
12096 * category.c:
12097 * casetab.c:
12098 * casefiddle.c:
12099 * callproc.c:
12100 * callint.c:
12101 * bytecode.c:
12102 * buffer.c:
12103 * atimer.c: Include setjmp.h. (Bug#4643)
12104
fd5f21e6
SM
121052009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12106
4c0354d7
SM
12107 Remove leftover table unibyte_to_multibyte_table.
12108 * character.c (unibyte_to_multibyte_table): Remove.
12109 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12110 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12111 * character.h (UNIBYTE_TO_CHAR): New macro.
12112 (MAKE_CHAR_MULTIBYTE): Use it.
12113 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12114 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12115 (message_dolog, set_message_1):
12116 * search.c (Freplace_match):
12117 * editfns.c (Fcompare_buffer_substrings):
12118 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12119 (concat):
12120 * insdel.c (copy_text, count_size_as_multibyte):
12121 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12122 * term.c (produce_glyphs):
12123 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12124 * regex.c (RE_CHAR_TO_MULTIBYTE):
12125 * cmds.c (internal_self_insert):
12126 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12127
fd5f21e6
SM
12128 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12129
4418646e
DN
121302009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12131
12132 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12133
35f5c1d2
JB
121342009-10-16 Juanma Barranquero <lekktu@gmail.com>
12135
12136 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12137
a0cd8f6b
AR
121382009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12139
12140 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12141 still needed under Tiger.
12142
12143 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12144
12145 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12146 __Apple__.
12147
12148 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12149
01a8d3fa
KH
121502009-10-15 Kenichi Handa <handa@m17n.org>
12151
12152 * print.c (print_object): Escape a symbol like "2E10" too.
12153
bf6c75c9 121542009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
12155
12156 Cleanups and changes for 64-bit compile under Snow Leopard.
12157 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
12158
12159 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12160
c5959062 12161 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
12162 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12163 cast argument.
12164 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 12165 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
12166
12167 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12168
12169 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12170 where appropriate.
12171
12172 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12173 where appropriate.
6e4780c5
JB
12174 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12175 Use stringWithUTF8String.
bf6c75c9
AR
12176 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12177
6e4780c5
JB
12178 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12179 Add formal protocol mention to inheritance.
bf6c75c9
AR
12180 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12181
6e4780c5
JB
12182 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12183 Fix printf format.
bf6c75c9
AR
12184 (ns_query_color): Use CGFloat where appropriate.
12185 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 12186 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
12187 argument.
12188
3d87f118
AR
12189 * config.in (NS_HAVE_NSINTEGER): Drop.
12190
a95c8102
AR
12191 * dbusbind.c (dbus-method-return-internal)
12192 (dbus-method-error-internal): Use long format in printf, and cast
12193 argument.
12194
12195 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12196 in printf, and cast argument.
12197
6873acca 12198 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
12199 cast argument.
12200
9ec6f100
GM
122012009-10-11 Glenn Morris <rgm@gnu.org>
12202
12203 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12204
5be883cd
JD
122052009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12206
12207 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12208 menu bar with a small width so it doesn't enlarge the frame.
12209
d7a39b51
JB
122102009-10-08 Juanma Barranquero <lekktu@gmail.com>
12211
12212 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12213
0c2b6f8e
GM
122142009-10-06 Glenn Morris <rgm@gnu.org>
12215
12216 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12217 SOME_MACHINE_LISP (this enters indirectly via DOC).
12218
e02131a2
EZ
122192009-10-05 Eli Zaretskii <eliz@gnu.org>
12220
12221 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12222
b4744254
EZ
122232009-10-04 Eli Zaretskii <eliz@gnu.org>
12224
12225 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12226 Doc fix.
12227
dbf64827
JB
122282009-10-03 Martin Rudalics <rudalics@gmx.at>
12229
12230 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12231
e9a0aef8
MA
122322009-10-02 Michael Albinus <michael.albinus@gmx.de>
12233
d528b1ce 12234 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12235 used anymore outside fileio.c.
12236
12237 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12238
64eb2b56
JB
122392009-10-01 Juanma Barranquero <lekktu@gmail.com>
12240
12241 * lisp.h (Qdelete_directory_internal):
12242 Declare, instead of Qdelete_directory.
12243
12244 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12245
9d28c33e
SM
122462009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12247
12248 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12249
9d8f3bd9
MA
122502009-10-01 Michael Albinus <michael.albinus@gmx.de>
12251
9d28c33e 12252 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12253 Fdelete_directory. It is not a command anymore. It has no file
12254 name handler.
12255
9694740b
SM
122562009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12257
12258 * xdisp.c (get_next_display_element): Use an enum in last change.
12259
748e162f
KH
122602009-09-28 Kenichi Handa <handa@m17n.org>
12261
9694740b 12262 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12263 unibyte_display_via_language_environment in handling
12264 Vnobreak_char_display.
12265
17efd58d
AR
122662009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12267
12268 * nsterm.h (ns_app_name): New extern variable.
12269
12270 * nsterm.m (ns_app_name): New variable.
12271 (ns_term_init): Set and use it.
12272 (ns_term_shutdown): Use it.
12273
12274 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12275 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12276
12277 * nsfns.m (ns_set_name_iconic, ns_set_name)
12278 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12279 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12280
9694740b
SM
12281 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12282 Remove double-casting in client_data comparison.
31c2d412 12283
3208cb35
YM
122842009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12285
12286 * keyboard.c (make_lispy_event): Remember last wheel direction.
12287 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12288
b7d552d6
GM
122892009-09-26 Glenn Morris <rgm@gnu.org>
12290
12291 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12292 internal.elc. Add term/pc-win.elc.
12293 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12294 term/x-win.elc.
12295 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12296 term/w32-win.elc.
12297 (NS_SUPPORT): New.
12298 (lisp): Add NS_SUPPORT.
12299 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12300
4ff670a8
DR
123012009-09-25 David Reitter <david.reitter@gmail.com>
12302
12303 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12304 on Mac OS X 10.6+ (bug#4513).
12305
feabfb6c
JB
123062009-09-24 Juanma Barranquero <lekktu@gmail.com>
12307
12308 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12309 some parts of Emacs code (like font selection) don't grok them.
12310 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12311
de59072a
AS
123122009-09-24 Andreas Schwab <schwab@redhat.com>
12313
12314 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12315
a489517b
JB
123162009-09-24 Juanma Barranquero <lekktu@gmail.com>
12317
12318 * dired.c (Fdirectory_files): Fix typo in docstring.
12319
0592970c
AR
123202009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12321
12322 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12323 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12324 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12325 under GNUstep.
12326 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12327
12328 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12329 glyph advancement.
12330
48e8a88b
AR
123312009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12332
12333 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12334 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12335
12336 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12337 deleted (bug #4492).
12338
e14f0a78
AR
12339 * nsfont.m (Vns_reg_to_script): New lisp variable.
12340 (syms_of_nsfont): Declare it.
12341 (ns_registry_to_script): New function.
12342 (ns_get_req_script): Call it.
12343 (ns_findfonts): Don't give up on non-unicode registry.
12344
12345 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12346
5b650faa
SM
123472009-09-20 Tom Tromey <tromey@redhat.com>
12348
12349 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12350 batch mode (bug#4228).
12351
a489517b 123522009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12353
12354 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12355 carefully. (Bug #4339)
0bae4e09 12356
fcfe06f3
CY
123572009-09-18 Chong Yidong <cyd@stupidchicken.com>
12358
d798ba87 12359 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12360
31642728
AR
123612009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12362
12363 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12364 (main) [HAVE_NS]: Don't process --no-init-file option.
12365 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12366
12367 * nsterm.h (ns_no_defaults): Remove.
12368
12369 * nsterm.m (ns_no_defaults): Remove.
12370 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12371 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12372 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12373 don't update the NSWindow itself.
bba3e508
SM
12374 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12375 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12376
12377 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12378 ns_use_qd_smoothing.
12379
12380 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12381 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12382 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12383 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12384
8686ac71
JB
123852009-09-17 Juanma Barranquero <lekktu@gmail.com>
12386
12387 * emacs.c (inhibit_x_resources): New variable.
12388 (main) [HAVE_NS]: Don't process --quick command line option.
12389 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12390
12391 * lisp.h (inhibit_x_resources): Declare it extern.
12392
12393 * w32reg.c (x_get_string_resource):
12394 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12395
e227ba05
EZ
123962009-09-17 Eli Zaretskii <eliz@gnu.org>
12397
362654a6
JB
12398 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12399 Add lisp/term/internal.elc.
e227ba05 12400
742d40e8
SM
124012009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12402
12403 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12404 (bug#4461).
12405
005bd5a2
DN
124062009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12407
12408 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12409
12410 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12411 (OBJECTS_MACHINE): Remove, unused.
12412
f9af9719
SM
124132009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12414
12415 * frame.c (x_get_resource_string): Remove unused.
12416
0307c7d2
JD
124172009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12418
12419 * xterm.c (x_new_font): Call change_frame_size before calling
12420 x_set_window_size, in case frame size won't change.
12421
12422 * frame.c (x_set_font): Remove dead code.
12423
428b13d6
SM
124242009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12425
12426 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12427
5766c380
SM
124282009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12429
12430 * lread.c (Fload): Don't output a message after loading an obsolete
12431 package any more (done in Lisp now).
12432
2fd0161b
CY
124332009-09-12 Chong Yidong <cyd@stupidchicken.com>
12434
12435 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12436
bc5e75b6
SM
124372009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12438
12439 * keymap.c (Fwhere_is_internal): Use nconc2.
12440
c31c985e
AM
124412009-09-11 Alan Mackenzie <acm@muc.de>
12442
12443 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12444 batch mode.
12445
78012bd2
AS
124462009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12447
12448 * xdisp.c (display_mode_element): Detect cycles.
12449
9d889332
SM
124502009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12451
12452 * keymap.c (where_is_internal): Don't erroneously return nil right after
12453 filling the cache.
12454 (where_is_internal_1): Fix up typo.
12455
7ab5d780
GM
124562009-09-11 Glenn Morris <rgm@gnu.org>
12457
12458 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12459 share a common doc-string.
12460
5238a749
SM
124612009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12462
66d77eda
SM
12463 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12464 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12465
5238a749
SM
12466 * keymap.c (QCadvertised_binding): New constant.
12467 (syms_of_keymap): Initialize it.
12468 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12469 if applicable.
12470
19f48442
SM
124712009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12472
50d4ba39
SM
12473 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12474 (parse_menu_item): Streamline since bindings are recomputed all the
12475 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12476 more and don't support lmenu's menu-alias any more either.
12477
a88a5372
SM
12478 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12479 (where_is_internal): Strip it down to only traverse the keymaps.
12480 Move the cache handling from Fwhere_is_internal to here.
12481 (Fwhere_is_internal): Move the handling of remapping and the choice of
12482 the best binding from where_is_internal to here.
12483 Unify the cached/noncached paths, so remapping is also handled
12484 correctly when the cache is used, and so the cache can be used to
12485 speed up remap-handling when applicable.
12486 Give preference to non-remapped bindings.
12487 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12488 non-remapped bindings.
12489 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12490 command remapping.
12491
19f48442
SM
12492 * xdisp.c (display_mode_element): Move list length limit from 50 to
12493 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12494
599498c3 124952009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12496
12497 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12498
f9b7b5ac
SM
124992009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12500
a53af587
JB
12501 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12502 (Bug#4334)
12503
f9b7b5ac
SM
12504 * keymap.c (where_is_internal): Filter out shadowed remappings.
12505 Assume that where_is_internal returns unshadowed bindings to simplify
12506 the code and get rid of the gotos. Use ASIZE.
12507
04f4b72d
JD
125082009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12509
4da146f2
JD
12510 * xterm.c (x_focus_changed): If we get a focusout and pointer
12511 is invisible, make it visible.
12512
04f4b72d
JD
12513 * xterm.h: Remove condition for declaration of
12514 x_*_window_to_frame.
12515
7cef7ce3
SM
125162009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12517
12518 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12519 initial terminal as well.
12520
a54fa5b7
JD
125212009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12522
12523 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12524 x_menubar_window_to_frame.
a54fa5b7 12525
50426a04 12526 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12527 (XTmouse_position): Do not return valid positions
12528 for clicks in the menubar and the toolbar for Gtk+.
12529
12530 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12531 if the widget for the event has the same top level as a frame,
12532 return the frame.
12533 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12534 internal windows, bug #4122.
12535 (x_non_menubar_window_to_frame): Remove.
12536
5a021dd0
GM
125372009-09-02 Glenn Morris <rgm@gnu.org>
12538
12539 * buffer.c (default-major-mode): Move most of the doc from here...
12540 (major-mode): ... to here.
12541
548fe2f3
NR
125422009-08-30 Nick Roberts <nickrob@snap.net.nz>
12543
12544 * process.c (wait_reading_process_output): Keep the descriptor
12545 when pty is used by a non-child process, e.g., in I/O buffer of
12546 GDB this allows inferior to be restarted.
12547
e0840eef
EZ
125482009-08-29 Eli Zaretskii <eliz@gnu.org>
12549
12550 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12551 both branches into one.
12552
82e98df4
SM
125532009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12554
12555 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12556 (main): Use enable-multibyte-characters rather than
12557 default-enable-multibyte-characters. Output a warning message when
12558 running a unibyte session.
12559
890617cb
YM
125602009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12561
12562 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12563 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12564 (copy_data_segment): Also copy __program_vars section.
12565 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12566 (dump_it) [LC_DYLD_INFO]: Use it.
12567
12568 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12569
e7adeadc
EZ
125702009-08-28 Eli Zaretskii <eliz@gnu.org>
12571
12572 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12573 $(SRC)/buildobj.h.
ef1b0ba7 12574 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12575 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12576 $(SRC)/buildobj.h.
12577 (clean): Add buildobj.h.
12578
3ed8bbdc
TZ
125792009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12580
12581 * print.c (print_object): Set escapeflag to 1 when printing
12582 hashtable keys and values.
12583
155a6764
SM
125842009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12585
12586 * lread.c (read_integer): Use doubles (and potentially return a float
12587 number) as we do in string-to-number.
12588 (read1): Use strtol to read integers, signal errors on strtol's
12589 overflow and use floats if strtol's output is too large for
12590 Elisp integers.
12591
877610de
EZ
125922009-08-27 Eli Zaretskii <eliz@gnu.org>
12593
12594 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12595 (make-buildobj-SH): Fix last change.
12596 (SRC): Move to before where it's first used.
12597
ef73e7be
KH
125982009-08-27 Kenichi Handa <handa@m17n.org>
12599
550c8289
KH
12600 * process.c (send_process): Use encode_coding_object instead of
12601 encode_coding_string to perform eol-conversion even if the string
12602 is unibyte.
12603
60afa08d
KH
12604 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12605 character.
12606
ef73e7be 12607 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 12608 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 12609
7b3a82d7
DN
126102009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12611
5654bf63
DN
12612 * callproc.c (Fcall_process): Remove always true #if.
12613
7b3a82d7
DN
12614 * lisp.h: Replace #if 0 code for checking with text pointing to
12615 the --enable-checking configure flag.
12616
12617 * emacs.c (main): Mention the --enable-profiling configure flag
12618 instead of using CFLAGS.
12619
878bde49
KR
126202009-08-26 Ken Raeburn <raeburn@raeburn.org>
12621
12622 * Makefile.in (buildobj.h): New target.
12623 (doc.o): Depend on it.
12624 (temacs${EXEEXT}): Don't generate buildobj.lst.
12625 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12626 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12627 ($(BLD)/doc.$(O)): Depend on it.
12628 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12629 provided by Eli Zaretskii.)
12630 ($(TEMACS)): Don't generate buildobj.lst.
12631 * doc.c: Include buildobj.h.
12632 (buildobj): New static variable.
12633 (Fsnarf_documentation): Use it, instead of opening and reading
12634 buildobj.lst.
12635
1574224c
MA
126362009-08-25 Michael Albinus <michael.albinus@gmx.de>
12637
12638 * dbusbind.c (Fdbus_call_method)
12639 (Fdbus_call_method_asynchronously): Use English numeric format for
12640 timeout values in doc string.
12641
d9da2f45
KH
126422009-08-25 Kenichi Handa <handa@m17n.org>
12643
ef73e7be
KH
12644 * alloc.c (mark_char_table): New function.
12645 (mark_object): Use mark_char_table for a char-table.
12646
d9da2f45
KH
12647 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12648 (CHAR_TABLE_REF): Use it.
12649
c8edcc01
KR
126502009-08-23 Ken Raeburn <raeburn@raeburn.org>
12651
12652 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12653 before invoking the newly build emacs to check for load-path
12654 shadowing.
12655
7763401b
GM
126562009-08-22 Glenn Morris <rgm@gnu.org>
12657
12658 * Makefile.in (bootstrap_exe): New variable.
12659 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12660 Use ${bootstrap_exe}.
12661
729eadda
EZ
126622009-08-22 Eli Zaretskii <eliz@gnu.org>
12663
12664 * coding.h (encode_coding_string): Don't encode unibyte strings.
12665 (Bug#4047)
12666
eb4c6ace
MA
126672009-08-22 Michael Albinus <michael.albinus@gmx.de>
12668
12669 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12670
12671 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12672 intended as hotfix only.
12673 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12674
36e34d1b
AR
126752009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12676
12677 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
12678 change, and clean up loose ends in the code left by it.
12679 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
12680 yet another X11 format (rgb:r/g/b) for compatibility.
12681 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12682 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12683
f983eb8a
SM
126842009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12685
12686 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12687
3f56d3c6
MA
126882009-08-20 Michael Albinus <michael.albinus@gmx.de>
12689
12690 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12691 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12692 (xd_initialize, xd_pending_messages): Check, whether
12693 $DBUS_SESSION_BUS_ADDRESS is set.
12694
fb641d68
YM
126952009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12696
12697 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12698
12699 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12700
cf59a374
GM
127012009-08-20 Glenn Morris <rgm@gnu.org>
12702
12703 * emacs.c (system-type): Doc fix.
12704
1373f3be
SM
127052009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12706
12707 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12708 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12709
058ed861
MA
127102009-08-18 Michael Albinus <michael.albinus@gmx.de>
12711
1373f3be
SM
12712 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12713 New functions.
058ed861
MA
12714 (xd_initialize): Revert change from 2009-08-16.
12715
563a866e 127162009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
12717
12718 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 12719 font-group vector, return nil.
5fc05db0 12720
e42bdf01
CY
127212009-08-17 Chong Yidong <cyd@stupidchicken.com>
12722
12723 * process.c (status_notify): Don't perform redisplay.
12724 (Fdelete_process, list_processes_1, process_send_signal):
12725 Expliticly perform redisplay.
12726 (wait_reading_process_output): Always check process status, but
12727 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12728
4230ab74
KR
127292009-08-17 Ken Raeburn <raeburn@raeburn.org>
12730
1373f3be 12731 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
12732 (XFLOAT_INIT): New macro for storing a float value.
12733 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12734 * fns.c (sxhash): Copy out the value of a float in order to
12735 examine its bytes.
12736 * dbusbind.c (xd_append_arg): Likewise.
12737
4230ab74
KR
12738 * emacs.c (main): Don't call syms_of_data twice.
12739
a0645cdd
MA
127402009-08-16 Michael Albinus <michael.albinus@gmx.de>
12741
12742 * dbusbind.c (xd_initialize): Add connection file descriptor to
12743 input_wait_mask, in order to let select() detect, whether a new
12744 message has been arrived.
ca4f31ea 12745 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 12746
485db0ba
MA
127472009-08-15 Michael Albinus <michael.albinus@gmx.de>
12748
1373f3be
SM
12749 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12750 New functions.
485db0ba
MA
12751
12752 * lisp.h (xd_pending_messages): Declare.
12753
12754 * keyboard.c (readable_events): Call xd_pending_messages.
12755
b5b98ff4
CY
127562009-08-15 Chong Yidong <cyd@stupidchicken.com>
12757
1373f3be 12758 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 12759
f8354c6e
CY
12760 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12761
b5b98ff4
CY
12762 * buffer.c (set_buffer_internal_1)
12763 (swap_out_buffer_local_variables): Check for unbound local
12764 variables (Bug#4138).
12765
8b9fc636
EZ
127662009-08-14 Eli Zaretskii <eliz@gnu.org>
12767
12768 * process.c (create_pty): Fix last change.
12769
ce959360
CY
127702009-08-13 Chong Yidong <cyd@stupidchicken.com>
12771
12772 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12773 (xbm_load_image): Caller changed.
64b807c9 12774 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 12775
c7baf7e9
NR
127762009-08-13 Nick Roberts <nickrob@snap.net.nz>
12777
12778 * process.c (create_pty): New function.
12779 (Fstart_process): Use it to allow Emacs to just associate a pty
12780 with the buffer. See associated change in gdb-mi.el.
12781 (list_processes_1): Deal with no program name.
12782 (start_process_unwind): Use pid == -2 to mean no process.
12783
1ac9108a
SM
127842009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12785
12786 * cmds.c (nonundocount): New global variable.
12787 (keys_of_cmds): Initialize it.
12788 (Fself_insert_command): Use it to combine upto 20 sequential chars
12789 into a single undo entry, just like the Qself_insert_command code in
12790 keyboard.c does.
12791 Call frame_make_pointer_invisible, also like the Qself_insert_command
12792 code in keyboard.c does.
12793 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12794 than its own local replacement for it.
12795
e267324c
KR
127962009-08-10 Ken Raeburn <raeburn@raeburn.org>
12797
1ac9108a 12798 * fns.c (concat): Don't re-set string length to its current value.
77437343 12799
1ac9108a
SM
12800 * coding.h (decode_coding_string, encode_coding_string):
12801 Use SBYTES macro.
f0bed503 12802
1ac9108a 12803 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
12804 (doprnt): Merge with doprnt1, discarding lispstrings code.
12805 * lisp.h (doprnt_lisp): Don't declare.
12806
416e006d
JL
128072009-08-07 Juri Linkov <juri@jurta.org>
12808
12809 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12810
6f7d5780
DN
128112009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12812
12813 * print.c (syms_of_print): Undo previous change.
12814
f19a0f5b
TZ
128152009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12816
12817 * lread.c (read1, syms_of_lread): Read hashtables back from the
12818 readable format.
12819
12820 * print.c (print_preprocess, print_object): Print hashtables fully
12821 and readably.
12822 (syms_of_print): Provide 'hashtable-print-readable.
12823
b9173dc2
AR
128242009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12825
12826 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12827 no family set.
12828 (nsfont_open): Handle case when entity has no family.
12829
1586503c
AR
128302009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12831
12832 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12833 element, not a list, for match case.
12834
087048cd
KH
128352009-07-28 Kenichi Handa <handa@m17n.org>
12836
12837 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12838 rigidly.
12839
12840 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12841 font_parse_xlfd. Check font properties more rigidly.
12842
780c2506
DN
128432009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12844
31fd7c5c
JB
12845 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12846 bsd-common.h.
780c2506 12847
a8c0cc18
KH
128482009-07-27 Kenichi Handa <handa@m17n.org>
12849
12850 * xfaces.c (face_with_height): Call font_clear_prop.
12851
4fbe2306
CY
128522009-07-26 Chong Yidong <cyd@stupidchicken.com>
12853
111d9af3
CY
12854 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12855
12856 * xterm.c (x_term_init): Use Qx.
12857
4fbe2306
CY
12858 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12859
1ac9108a 12860 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
12861 (ns_get_color): Revert 2009-07-16 change.
12862
beb0b7f9
EZ
128632009-07-25 Eli Zaretskii <eliz@gnu.org>
12864
12865 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 12866 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 12867
2baf5e76
KR
128682009-07-25 Ken Raeburn <raeburn@raeburn.org>
12869
1ac9108a
SM
12870 * coding.h (decode_coding_string, encode_coding_string):
12871 Use SCHARS macro.
8890e5f5 12872
2baf5e76 12873 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 12874 (load_depth): Delete.
2baf5e76
KR
12875 (Qload_in_progress): New variable.
12876 (load_unwind): Don't reference load_depth or load_in_progress.
12877 (Fload): Likewise; specbind Qload_in_progress instead.
12878 (init_lread): Don't initialize load_depth.
12879 (syms_of_lread): Initialize and protect Qload_in_progress.
12880
1395c6f5
AR
128812009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12882
12883 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12884
4e2f36cf
AR
128852009-07-23 Yavor Doganov <yavor@gnu.org>
12886
12887 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12888
5dd9a6f7
AR
128892009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12890
12891 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
12892 Bugs 3792, 3720, 2402.
12893 (ns_lookup_indexed_color): Check for bad index.
12894 (ns_index_color): Init unused slot to 0.
12895 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12896 Bug 3714, possibly 3082.
5dd9a6f7 12897
c902b920
JR
128982009-07-22 Jason Rumney <jasonr@gnu.org>
12899
1ac9108a
SM
12900 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12901 Position IME window at cursor (Bug#2570).
c902b920
JR
12902 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12903 (globals_of_w32fns): Dynamically load functions required above.
12904
12905 * w32term.c (w32_draw_window_cursor): Send message to reposition
12906 any IME window.
12907
090101cf
CY
129082009-07-21 Chong Yidong <cyd@stupidchicken.com>
12909
12910 * fileio.c: Revert 2009-07-16 changes.
12911 (Vauto_save_include_big_deletions): New variable.
12912 (Fdo_auto_save): Disable auto-save only if
12913 auto-save-include-big-deletions is nil.
12914
e6583e3d
CY
129152009-07-21 Chong Yidong <cyd@stupidchicken.com>
12916
12917 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12918 the overflowed pixels into account (Bug#3879).
12919
ece435a5
KR
129202009-07-21 Ken Raeburn <raeburn@raeburn.org>
12921
12922 * lread.c (load_depth): New variable.
12923 (Fload, load_unwind, init_lread): Set it to the load recursion
12924 depth; set load_in_progress as a simple boolean based on the
12925 current load_depth. (Bug#3892)
12926
40b2d973
AR
129272009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12928
12929 * nsfont.m (ns_has_attribute): Remove.
12930 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12931
10be7e0d
JL
129322009-07-18 Juri Linkov <juri@jurta.org>
12933
12934 * process.c (Fset_process_query_on_exit_flag): Mention killing
12935 a buffer in docstring.
12936
fa055055
KH
129372009-07-17 Kenichi Handa <handa@m17n.org>
12938
12939 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12940
042f7b69
YM
129412009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12942
12943 * nsfns.m (Fns_set_alpha): Remove function.
12944 (syms_of_nsfns): Don't defsubr it.
12945
12946 * nsterm.m (ns_get_color): Remove incompatible color formats.
12947 (ns_color_to_lisp): Generate #rrggbb color format string.
12948
4be941e3
RS
129492009-07-16 Richard Stallman <rms@gnu.org>
12950
12951 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12952 (Fset_buffer_auto_saved): Handle save_length = -2.
12953
4e6b227d
CY
129542009-07-16 Chong Yidong <cyd@stupidchicken.com>
12955
12956 * xterm.c (Qx_gtk_map_stock): New var.
12957
12958 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12959 of calling intern each time.
12960
a1856973
YM
129612009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12962
12963 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12964 does tiling.
12965
12966 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12967
497e54d8
KH
129682009-07-14 Kenichi Handa <handa@m17n.org>
12969
72d36834
KH
12970 * font.c (font_vconcat_entity_vectors): New function.
12971 (struct font_sort_data): New member font_driver_preference.
12972 (font_compare): Check font_driver_preference.
12973 (font_sort_entities): The format of the first argument changed.
12974 (font_delete_unmatched): Likewise.
12975 (font_list_entities): The return type changed.
12976 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12977 (font_find_for_lface): Adjuste for the above changes.
12978 Don't suppress the checking of C even if the repertory supports it.
12979 (Flist_fonts): Adjust for the above changes.
72d36834 12980
1ac9108a
SM
12981 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12982 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12983 Reject a font who has adstyle property that is different from a
12984 langname derived from registry property.
1ac9108a 12985 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12986
b6046155
EZ
129872009-07-13 Eli Zaretskii <eliz@gnu.org>
12988
12989 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12990 local copy of dirfilename.
12991
fb6b6049
KH
129922009-07-13 Kenichi Handa <handa@m17n.org>
12993
e2402a5e
KH
12994 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12995 against max_char.
12996
fb6b6049
KH
12997 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12998 calling XSYMBOL (sym).
12999
65156807
EZ
130002009-07-11 Eli Zaretskii <eliz@gnu.org>
13001
1ac9108a
SM
13002 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13003 New function.
13004 (directory_files_internal) [WINDOWSNT]:
13005 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
13006 the filesystem of the directory is fast or slow.
13007
13008 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13009 file name.
13010 (is_slow_fs): New function.
13011 (stat): Use it to determine whether to issue more system calls to
13012 get accurate file attributes, when w32-get-true-file-attributes is
13013 `local'.
13014
e0ab5fcf
JD
130152009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13016
13017 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 13018 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
13019 parameter font-parameter as default to the font dialog.
13020
784ceded
KH
130212009-07-10 Kenichi Handa <handa@m17n.org>
13022
13023 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13024
fb8edc0b
EZ
130252009-07-09 Eli Zaretskii <eliz@gnu.org>
13026
1ac9108a 13027 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 13028
fb8edc0b
EZ
13029 * w32.c (stat): Treat UNC file names as residing on remote
13030 drives. (Bug#3542)
13031
635c75b1
KH
130322009-07-09 Kenichi Handa <handa@m17n.org>
13033
13034 * fontset.c (fontset_find_font): Fix previous change.
13035
c1d5ce94
MA
130362009-07-08 Michael Albinus <michael.albinus@gmx.de>
13037
13038 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13039 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13040 error flag.
13041
edb61b39
KH
130422009-07-08 Kenichi Handa <handa@m17n.org>
13043
374bf7e4
KH
13044 * fontset.c (fontset_find_font): Fix the logic of handling
13045 charset_matched.
13046 (font_for_char): Delete unused var.
13047 (generate_ascii_font_name): Delete it.
13048
edb61b39
KH
13049 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13050
13051 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13052 (encode_coding_sjis): Fix the code range check.
13053
0f3f018c
CY
130542009-07-07 Chong Yidong <cyd@stupidchicken.com>
13055
13056 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13057 (Fexpand_file_name): Copy string data properly (Bug#3772).
13058
fcaf6f3a
JD
130592009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13060
13061 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13062 first MapNotify.
13063
6809ca75
KH
130642009-07-07 Kenichi Handa <handa@m17n.org>
13065
13066 * character.h (unibyte_has_multibyte_table): Delete extern.
13067 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13068
13069 * charset.c (Fset_charset_priority): Update charset_unibyte.
13070 (syms_of_charset): Initialize charset_unibyte.
13071
13072 * character.c (unibyte_has_multibyte_table): Delete it.
13073 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13074 charset_unibyte.
13075 (multibyte_char_to_unibyte_safe): Likewise.
13076 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13077
1ac9108a 13078 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
13079 (x_produce_glyphs): Likewise.
13080
13081 * .gdbinit (xcharset): Fix the treating $arg0.
13082
ad9e2d54
EZ
130832009-07-04 Eli Zaretskii <eliz@gnu.org>
13084
13085 Emulation of `getloadavg' on MS-Windows.
50426a04 13086 * w32.c: Include float.h.
ad9e2d54
EZ
13087 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13088 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13089 (get_native_system_info, get_system_times): New functions.
13090 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13091 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13092 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13093 g_b_init_get_system_times, and num_of_processors.
13094
0a3472c7
JR
130952009-07-03 Jason Rumney <jasonr@gnu.org>
13096
13097 * w32term.c (w32_initialize): Use standard types.
13098
80904120
EZ
130992009-07-03 Eli Zaretskii <eliz@gnu.org>
13100
13101 * dired.c (Ffile_attributes): Decode user and group names by the
13102 locale's encoding. (Bug#3443)
13103
6978862d
DN
131042009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13105
f8d23104
DN
13106 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13107 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13108
13109 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13110
13111 * term.c (init_tty): Remove spurious #ifdef.
13112
6978862d
DN
13113 * m/mips.h: Mention this file is also used for netbsd.
13114 * m/pmax.h: Remove file.
13115
e044e4fc
JD
131162009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13117
13118 * xterm.h (struct x_display_info): Add invisible_cursor.
13119 (struct x_output): Add current_cursor.
13120
13121 * xterm.c (XTtoggle_invisible_pointer): New function.
13122 (x_define_frame_cursor): Don't define cursor if invisible or the
13123 same as before. Set current_cursor.
13124 (x_create_terminal): Set toggle_invisible_pointer_hook.
13125
13126 * xfns.c (make_invisible_cursor): New function.
13127 (x_set_mouse_color): Call make_invisible_cursor.
13128 Set current_cursor.
13129 (x_window): Set current_cursor.
13130
13131 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13132
13133 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13134 inserting a character.
13135 (read_avail_input): Call frame_make_pointer_visible.
13136
13137 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
13138 (frame_make_pointer_invisible, frame_make_pointer_visible):
13139 New functions.
e044e4fc
JD
13140 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13141
13142 * frame.h: Declare frame_make_pointer_invisible and
13143 frame_make_pointer_visible.
13144 (struct frame): Add pointer_invisible.
13145
574c8efa
JD
131462009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13147
7b507248
JD
13148 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13149 frame isn't visible.
13150 (xg_frame_resized): If width/height is -1, get size of window
13151 from X server.
13152
13153 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13154 for MapNotify.
13155
835bdaa7 13156 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 13157 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 13158 (flush_and_sync): Reintroduce.
574c8efa 13159
3f1c6666 131602009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 13161
31fd7c5c 13162 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
13163
13164 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13165 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13166
13167 * frame.h: Declare Qsticky.
13168
cad9ef74
JD
13169 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13170
13171 * nsfns.m (ns_frame_parm_handlers): Ditto.
13172
13173 * frame.c: Declare Qsticky.
13174 (frame_parms): Add sticky.
13175
13176 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13177
13178 * xterm.h: Declare x_set_sticky.
13179
13180 * xterm.c (x_set_sticky): New function.
13181
69b16610
JD
13182 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13183 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13184 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
13185
13186 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13187
13188 * frame.c: Qmaximized is new.
13189 (x_set_frame_parameters): Do not handle fullscreen specially.
13190 Only set width and height if explicitly set.
13191 (x_set_fullscreen): Handle Qmaximized.
13192 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13193 (syms_of_frame): Initialize Qmaximized.
13194
1ac9108a
SM
13195 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13196 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
13197
13198 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
13199 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13200 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
13201 set gravity to NorthWestGravity when USE_GTK.
13202 (set_wm_state): New function.
31fd7c5c 13203 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
13204 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13205 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 13206 or the case when no window manager is running. That means remove calls
3f1c6666
JD
13207 to x_real_positions and x_fullscreen_adjust.
13208
13209 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13210 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13211 flush_and_sync.
13212 (xg_height_changed): New function.
13213 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
13214 and gtk_window_set_policy. Set frame gravity after parsing the
13215 geometry string.
3f1c6666
JD
13216 (xg_update_frame_menubar, free_frame_menubar)
13217 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13218 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13219 Remove calls to xg_frame_set_char_size.
13220
fd503d99
KH
132212009-07-01 Kenichi Handa <handa@m17n.org>
13222
13223 * keyboard.c (decode_keyboard_code): New function.
13224 (tty_read_avail_input): Decode the input bytes if necessary.
13225
1ac9108a
SM
13226 * coding.c (setup_coding_system):
13227 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13228 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13229 use Qno_conversion.
13230
24ed93fb
YM
132312009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13232
13233 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13234
99061dfc
CY
132352009-06-30 Chong Yidong <cyd@stupidchicken.com>
13236
1ac9108a 13237 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13238
ff90fbde
JR
132392009-06-30 Jason Rumney <jasonr@gnu.org>
13240
13241 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13242 is already loaded.
13243 Set user model ID if supported (bug#1849).
13244
5f445726
JM
132452009-06-29 Jim Meyering <meyering@redhat.com>
13246
13247 Remove useless if-before-xfree test.
13248 * nsfont.m (nsfont_close): Remove useless test.
13249 * term.c (delete_tty): Likewise.
13250 * w32.c (system_process_attributes): Likewise.
13251 * w32font.c (w32font_close): Likewise.
13252 * xfaces.c (x_free_gc): Likewise.
13253 * xselect.c (buffer): Likewise.
13254
b9607587
AS
132552009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13256
13257 * process.c (send_process): Keep decoded string in a local
13258 variable and protect it from GC. (Bug#3521)
13259
89ba96f4
EZ
132602009-06-28 Eli Zaretskii <eliz@gnu.org>
13261
13262 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13263 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13264
098a1589
CY
132652009-06-28 Chong Yidong <cyd@stupidchicken.com>
13266
485422be
CY
13267 * xdisp.c (start_display, handle_face_prop)
13268 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13269 (redisplay_window, try_window_id, produce_image_glyph):
13270 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13271
098a1589
CY
13272 * xterm.c (x_update_window_begin, x_new_focus_frame)
13273 (x_scroll_bar_handle_click, handle_one_xevent)
13274 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13275 (x_make_frame_visible, x_make_frame_invisible)
13276 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13277 code chunks that are now obsolete.
13278
78c38319
MA
132792009-06-28 Michael Albinus <michael.albinus@gmx.de>
13280
13281 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13282 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13283 for hours, when optimzation is enabled.
13284 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13285 (xd_read_message): Make them static.
13286
4189ed40
CY
132872009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13288
13289 * term.c (turn_on_face): Allow simultaneously bold and dim
13290 terminal faces (Bug#3530).
13291
cd9b5e16
CY
132922009-06-27 Chong Yidong <cyd@stupidchicken.com>
13293
4e23bedb
CY
13294 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13295
cd9b5e16
CY
13296 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13297 truncation glyphs (Bug#3686).
13298
07cc3c35
GM
132992009-06-27 Glenn Morris <rgm@gnu.org>
13300
13301 * m/pmax.h: Restore file, with only netbsd portions.
13302
31fd7c5c 133032009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13304
cd9b5e16 13305 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13306
42d4a64f
KH
133072009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13308
13309 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13310 the arg FORCE_SYMBOL.
13311
930fe55b 133122009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13313
13314 * fontset.c (fontset_find_font): When a usable rfont_def is found
13315 in a fallback font-group, make it the first element of the group.
13316
57ebc3fd
CY
133172009-06-24 Chong Yidong <cyd@stupidchicken.com>
13318
13319 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13320
f084f942
KH
133212009-06-24 Kenichi Handa <handa@m17n.org>
13322
13323 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13324 set for C.
13325 (fontset_font): Record the availability of a font for C both in
13326 the realized fontsets of the current one and the default one.
13327
2f686c87
DN
133282009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13329
13330 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13331 conditional, it is always defined on AIX.
13332
666e158e
MB
133332009-06-23 Miles Bader <miles@gnu.org>
13334
13335 * window.c (Vrecenter_redisplay): New variable.
13336 (syms_of_window): Initialize it.
13337 (Qtty): New extern declaration.
13338 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13339
c6da7cd2
JM
133402009-06-23 Jim Meyering <meyering@redhat.com>
13341
1ac9108a
SM
13342 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13343 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13344 pointer dereferences are guaranteed to be valid.
c6da7cd2 13345
678dca3d
KH
133462009-06-23 Kenichi Handa <handa@m17n.org>
13347
74d75424
KH
13348 * emacs.c (main): Call init_font ().
13349
13350 * font.h (Vfont_log): Extern it.
13351 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13352
13353 * font.c (font_sort_entities, font_list_entities)
13354 (font_matching_entity, font_open_entity)
13355 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13356 (Vfont_log): Delete static.
13357 (font_log_env_checked): Delete this variable.
13358 (font_add_log): Don't check font_log_env_checked.
13359 (font_deferred_log): Check Vfont_log.
13360 (init_font): New function.
13361
678dca3d
KH
13362 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13363
13364 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13365
13366 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13367
13368 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13369
13370 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13371 (face_for_char): Don't call font_deferred_log here.
13372 (font_for_char): Likewise.
13373
8a668709
CY
133742009-06-22 Chong Yidong <cyd@stupidchicken.com>
13375
9a01ee33
CY
13376 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13377 rather than its background_width for drawing the overline and
13378 underline (Bug#489).
13379
13380 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13381 rather than its background_width for drawing the overline and
13382 underline (Bug#489).
ec7c9926
CY
13383 (xg_default_icon_file): New variable.
13384 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13385 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13386
8a668709
CY
13387 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13388 (load_overlay_strings): Remove externs.
13389 (fast_find_position): Function deleted.
13390 (mouse_face_from_buffer_pos): New function, based on
13391 fast_find_position. Correctly handle before-strings,
13392 display-strings, and after-strings (Bug#1220).
13393 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13394
4d4c02d8
CY
133952009-06-21 Chong Yidong <cyd@stupidchicken.com>
13396
1ac9108a 13397 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13398 (move_it_in_display_line_to, move_it_in_display_line_to)
13399 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13400
70243478
CY
134012009-06-21 Chong Yidong <cyd@stupidchicken.com>
13402
13403 * Branch for 23.1.
13404
13087e59
JR
134052009-06-21 Jason Rumney <jasonr@gnu.org>
13406
13407 * w32term.c (keyboard_codepage): New static variable.
13408 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13409 (w32_read_socket) [WM_CHAR]: Use it to decode character
13410 input (bug#3237).
13411 (w32_initialize): Initialize it.
13412 (codepage_for_locale): New function.
13413
4735b74e
KR
134142009-06-20 Ken Raeburn <raeburn@raeburn.org>
13415
13416 * process.c (status_message): Pass Faset index argument as a lisp
13417 object, so as to work with USE_LISP_UNION_TYPE.
13418
0e727afa
YM
134192009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13420
13421 * coding.c (Ffind_coding_systems_region_internal):
13422 Cache checked characters.
13423
cf299835
KH
134242009-06-18 Kenichi Handa <handa@m17n.org>
13425
1ac9108a 13426 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13427
90f20d94
AS
134282009-06-18 Andreas Schwab <aschwab@redhat.com>
13429
13430 * xdisp.c (redisplay_internal): Check that the frame is still
13431 live after redisplay of its windows.
13432 (redisplay_windows): Check that the window is still live.
13433
7f1faf1c
KH
134342009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13435
13436 * coding.c (detect_coding_utf_16): Fix previous change.
13437
cc13543e
KH
134382009-06-16 Kenichi Handa <handa@m17n.org>
13439
13440 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13441 UTF-16 by checking the dispersion of Eth and Oth bytes.
13442
977b85f4
AS
134432009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13444
13445 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13446
66bd43d1
KH
134472009-06-15 Kenichi Handa <handa@m17n.org>
13448
13449 * process.c (status_message): Fix previous change. Be sure to
13450 decode a localized string.
13451
cb5ca9c5
YM
134522009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13453
13454 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13455 add comment explaining why.
13456
ec7709ba 134572009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13458
ec7709ba 13459 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13460
4b7f335c
AR
134612009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13462
13463 * nsfont.m (ns_attribute_value): Remove.
13464 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13465 (ns_has_attribute): Shrink the normal range.
13466 (ns_findfonts): Don't worry about requested spec in determining
13467 need for synthItal.
e41820ee 13468 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13469
73b26103
SZ
134702009-06-14 Seiji Zenitani <zenitani@mac.com>
13471
13472 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13473
5753e4da
KH
134742009-06-11 Kenichi Handa <handa@m17n.org>
13475
13476 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13477 overhang for the static composition case.
13478
3561b671
KH
134792009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13480
5753e4da
KH
13481 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13482 overhang for the automatic composition case.
13483
3561b671
KH
13484 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13485 composition case.
13486
852bbd41
CY
134872009-06-10 Chong Yidong <cyd@stupidchicken.com>
13488
13489 * xdisp.c (get_next_display_element): When handling wrap-prefix
13490 and line-prefix, treat \n as a control character (bug#3502).
13491
9903d1e6
KH
134922009-06-10 Kenichi Handa <handa@m17n.org>
13493
13494 * font.c (font_parse_family_registry): Fix for one-char foundry.
13495 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13496
0bcbaaaa
CY
134972009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13498
13499 * process.c (status_message): Fix handling of multibyte signal
13500 string (Bug#3499).
13501
40aa3f13
JM
135022009-06-09 Jim Meyering <meyering@redhat.com>
13503
1f80c7e2
CY
13504 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13505 color name is missing.
40aa3f13 13506
72d51285
KH
135072009-06-09 Kenichi Handa <handa@m17n.org>
13508
13509 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13510 FROM-CODE and TO-CODE are codepoints of CHARSET.
13511
c1d04d84
AR
135122009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13513
13514 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13515
135162009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13517
13518 Changes to support :script/:lang/:otf in NS font driver.
13519 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13520 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13521 indicate not part of font driver interface, and change callers.
13522 (ns_get_family): Remove pointless null check.
13523 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13524 ns_spec_to_descriptor, ns_descriptor_to_entity.
13525 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13526 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13527 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13528 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13529 (ns_get_req_script, ns_accumulate_script_ranges)
13530 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13531 New functions.
13532 (nsfont_list, nsfont_match): Use ns_findfonts.
13533 (nsfont_open): Use font descriptor instead of traits.
13534 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13535 (dump_glyphstring): Rename to ns_dump_glyphstring.
13536
c7eb9816
AR
13537 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13538
c1d04d84
AR
13539 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13540
13541 * fontset.c (fontset_from_font): Remove NS-specific code.
13542
ec7709ba 135432009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13544
13545 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13546 nonactive windows.
13547
31fd7c5c 135482009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13549
1ac9108a 13550 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13551
68852c13 135522009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13553
13554 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13555
6756cd1d
CY
135562009-06-07 Chong Yidong <cyd@stupidchicken.com>
13557
13558 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13559 account for the overflowing of newlines into the last glyph on the
13560 display line (Bug#3482).
13561
28bf482a
DR
135622009-06-05 David Reitter <david.reitter@gmail.com>
13563
ec7709ba
JB
13564 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13565 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13566 Fns_selection_exists_p, Fns_selection_owner_p.
13567
fdb55376
JR
135682009-06-03 Jason Rumney <jasonr@gnu.org>
13569
13570 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13571 available. (Bug#3379)
13572
05129fbe
KH
135732009-05-29 Kenichi Handa <handa@m17n.org>
13574
1ac9108a
SM
13575 * coding.c (get_translation_table):
13576 Check Venable_character_translation.
05129fbe 13577
ec7709ba 135782009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13579
ec7709ba
JB
13580 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13581 (x_make_frame_visible): Move frame to front rather than calling
15891144 13582 ns_raise_frame().
ec7709ba 13583 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13584 isn't key window.
ec7709ba 13585 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13586 drawRect may be called by NSView even if the frame is hidden.
13587
ec7709ba
JB
13588 * nsfns.m (Fx_create_frame): Follow other ports in
13589 determining visibility; default to t. Ensure async_visible is set.
15891144 13590
21f73755
EZ
135912009-05-23 Eli Zaretskii <eliz@gnu.org>
13592
13593 * dired.c (Ffile_attributes): Doc fix.
13594
34001e41
CY
135952009-05-22 Chong Yidong <cyd@stupidchicken.com>
13596
13597 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13598
46306a17
SM
135992009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13600
13601 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13602 and xfont_scratch_props.
13603 (syms_of_xfont): Do it here instead.
13604 (xfont_find_ccl_program): Delete, unused.
13605 (xfont_open): Delete unused var `i'.
13606
ef6e0694
KH
136072009-05-21 Kenichi Handa <handa@m17n.org>
13608
13609 * fontset.c (Qlatin): Don't make it static.
13610
46306a17
SM
13611 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13612 New functions.
ef6e0694
KH
13613 (xfont_scripts_cache, xfont_scratch_props): New variables.
13614 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
13615 (xfont_list_pattern): Argument changed. Callers changed.
13616 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
13617 (xfont_list): Don't reject a font spec with :script property.
13618 (xfont_has_char): Fix setting of encoding.
13619 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13620 xfont_scratch_props.
13621
136222009-05-19 Kenichi Handa <handa@m17n.org>
13623
46306a17 13624 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
13625 Callers changed.
13626
136272009-05-18 Kenichi Handa <handa@m17n.org>
13628
13629 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13630
ac71ced7
SM
136312009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13632
13633 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13634 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13635
1c6d1051
YM
136362009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13637
13638 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13639 (x_delete_terminal): Dissociate resource database from display and
13640 then call XrmDestroyDatabase before closing display.
13641
9b9b779c
AR
136422009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13643
13644 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
13645 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13646 whether selected frame is viable before raising it (based on patch
13647 by David Reitter), and improve commentary.
13648 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 13649
cccd42d5
KH
136502009-05-15 Kenichi Handa <handa@m17n.org>
13651
13652 * font.c (Ffont_spec): Check arguments.
13653
337fbd17
CY
136542009-05-14 Chong Yidong <cyd@stupidchicken.com>
13655
13656 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13657 weight when testing attributes (Bug#3282).
13658
47a6002f
JD
136592009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13660
13661 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13662 what we expect to get in the next ConfigureNotify event.
13663
9cb363db
YM
13664 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13665 before Xft one (Bug#1696).
13666
b9126609
CY
136672009-05-07 David Reitter <david.reitter@gmail.com>
13668
13669 * nsfns.m (Fx_display_planes): Compute bitplanes using
13670 NSBitsPerPixelFromDepth (Bug#3207).
13671
27a69fd9
CY
136722009-05-10 Chong Yidong <cyd@stupidchicken.com>
13673
13674 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13675
00f37552
TTN
136762009-05-10 Ulrich Mueller <ulm@gentoo.org>
13677
13678 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13679
2d82a920
DR
136802009-05-07 David Reitter <david.reitter@gmail.com>
13681
ec7709ba
JB
13682 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13683 Respect mouse face background.
2d82a920 13684
46b0d52d
DR
136852009-05-07 David Reitter <david.reitter@gmail.com>
13686
ec7709ba
JB
13687 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13688 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
13689 in ns_update_begin and ns_update_end.
13690
ce1b23bb
SM
136912009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13692
5996e1b7
SM
13693 * nsfns.m (ns_get_screen): Rewrite.
13694 Don't presume selected-frame is of type `ns'.
13695
ba98e3a0
SM
13696 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13697 all drivers.
13698
ce1b23bb
SM
13699 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13700
bcda200f
YM
137012009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13702
13703 * keyboard.h (add_user_signal): Fix typo in extern.
13704
13705 * lisp.h (add_user_signal): Remove extern.
13706
13707 * unexelf.c (unexec): Consider a section to precede the .bss section
13708 if its addresses overlap that of .bss.
13709 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13710 instead of dumping process.
13711
864660a2
SM
137122009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13713
13714 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13715
50da4e56
SM
137162009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13717
13718 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13719
51520a1a
DN
137202009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13721
13722 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13723 any statements.
13724
409ea3a1
AS
137252009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13726
59c4c60f
AS
13727 * process.c (read_process_output): Make sure the current buffer is
13728 always restored.
13729
409ea3a1
AS
13730 * coding.c (record_conversion_result): Don't modify
13731 Vlast_code_conversion_error for successful result.
13732 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13733
56f00ed2
KH
137342009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13735
13736 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 13737 (load_charset_map): Remove unnecessary code.
56f00ed2 13738
4491c9d2
DR
137392009-04-30 David Reitter <david.reitter@gmail.com>
13740
35f5b128 13741 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
13742 through f24.
13743
6970f632
CY
137442009-04-30 Chong Yidong <cyd@stupidchicken.com>
13745
13746 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13747
13748 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13749 face_at_buffer_position.
13750 (face_before_or_after_it_pos, get_next_display_element)
13751 (note_mouse_highlight): Update face_at_buffer_position call.
13752
13753 * term.c (term_mouse_highlight):
13754 * msdos.c (IT_note_mouse_highlight):
13755 * fontset.c (Finternal_char_font):
35f5b128 13756 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
13757
13758 * dispextern.h (face_at_buffer_position): Update prototype.
13759
0c616f63
KH
137602009-04-30 Kenichi Handa <handa@m17n.org>
13761
35f5b128 13762 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 13763
ad3aaf33
AS
137642009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13765
13766 * callproc.c (Fcall_process): Fix GC protection. Make sure
13767 current buffer is always restored.
13768
c3c963a0
YM
137692009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13770
13771 * atimer.c (init_atimer): Also clear stopped_atimers.
13772
13773 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13774
7e3386cb
YM
13775 * process.c (create_process): Clean up merger residues of
13776 2008-07-17 change.
13777
91f68422
CY
137782009-04-29 Ulrich Mueller <ulm@gentoo.org>
13779
13780 * lread.c (Vread_circle): New variable.
13781 (read1): Disable recursive read if Vread_circle is nil.
13782
24b34550
KH
137832009-04-29 Kenichi Handa <handa@m17n.org>
13784
13785 * fontset.h (set_default_ascii_font): Delete extern.
13786
13787 * fontset.c (set_default_ascii_font): Delete this unused function.
13788
13789 * frame.c (x_set_font): When ARG is a font-object, check if the
13790 font-object matches with the ASCII font-spec of the frame's
9c358bda 13791 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 13792
77bf07e1
AS
137932009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13794
13795 * fns.c (Flocale_info): Protect vector from GC during decoding.
13796
13797 * process.c (Fstart_process): Protect argv strings from GC during
13798 encoding.
13799
2c55aacf
AS
138002009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13801
13802 * sysdep.c: Include <ctype.h>.
13803
b892d3c9
DR
138042009-04-27 David Reitter <david.reitter@gmail.com>
13805
35f5b128 13806 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
13807 Remove commented-out code.
13808
9d0644c4
JB
138092009-04-26 Johan Bockgård <bojohan@gnu.org>
13810
13811 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13812
b7053016
JR
138132009-04-25 Jason Rumney <jasonr@gnu.org>
13814
13815 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13816
4e8231f3
YM
138172009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13818
13819 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13820 Swap bytes in short integer if fringe bitmap width > 8.
13821
493dcf2c
KH
138222009-04-23 Kenichi Handa <handa@m17n.org>
13823
13824 * xfaces.c (Fx_list_fonts): If a font size is specified in
13825 PATTERN, set it in returned scalable fonts.
13826
401e9e57
CY
138272009-04-22 Chong Yidong <cyd@stupidchicken.com>
13828
708e05dc
CY
13829 * keyboard.c (Fset_input_meta_mode): Doc fix.
13830
13831 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13832
1ac9108a 13833 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
13834
13835 * coding.c (Fterminal_coding_system): Doc fix.
13836
13837 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13838 (Fx_display_pixel_height, Fx_display_planes)
13839 (Fx_display_color_cells, Fx_server_max_request_size)
13840 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13841 (Fx_display_mm_height, Fx_display_mm_width)
13842 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
13843 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13844 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
13845 (check_x_display_info): Handle terminal objects instead of
13846 terminal ids.
13847
401e9e57
CY
13848 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13849 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
13850 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13851 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 13852
df80c7f0
KH
138532009-04-21 Kenichi Handa <handa@m17n.org>
13854
5a8f12af 13855 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 13856 (font_score): Check AVGWIDTH too.
908567ef 13857
df80c7f0
KH
13858 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13859 worst case.
1ac9108a
SM
13860 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13861 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 13862
705af33f
JR
138632009-04-19 Jason Rumney <jasonr@gnu.org>
13864
13865 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 13866 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
13867
13868 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13869 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13870 get_phys_cursor_geometry.
13871
b71ac3dd 13872 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
13873 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13874 using get_phys_cursor_geometry.
13875
13876 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13877 correctly calculated.
13878
dc2933eb
JD
138792009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13880
1ac9108a
SM
13881 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13882 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
13883 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13884 is deprecated.
13885
973e7849
AS
138862009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13887
13888 * font.c (font_put_frame_data): Use xfree instead of free.
13889
314d66f4
JB
138902009-04-17 Juanma Barranquero <lekktu@gmail.com>
13891
13892 * w32font.c (Qja, Qko): Remove declarations.
13893 (syms_of_w32font): Don't DEFSYM them.
13894
cf702558
CY
138952009-04-17 Chong Yidong <cyd@stupidchicken.com>
13896
13897 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13898
13899 * font.h (Qja, Qko): Extern them.
13900
13901 * ftfont.c (Qja, Qko): Remove declarations.
13902
13903 * xfont.c (Qja, Qko): Remove declarations.
13904
b50504f5
KH
139052009-04-17 Kenichi Handa <handa@m17n.org>
13906
bde25748
KH
13907 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13908 string from a vector to handle Latin-1 characters correctly.
13909
b50504f5
KH
13910 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13911 entity even if the cache hits.
13912
f4646fff
AS
139132009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13914
13915 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 13916 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 13917
e7deaab0
AS
13918 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13919 * lisp.h: Adjust prototypes.
13920
0a0e7d49
CY
139212009-04-16 Chong Yidong <cyd@stupidchicken.com>
13922
13923 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13924 change (Bug#3003).
13925
3c908a57
KH
139262009-04-16 Kenichi Handa <handa@m17n.org>
13927
1ac9108a 13928 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
13929
13930 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13931 adstyle.
13932
13933 * ftfont.c (Qja, Qko): Don't make them static.
13934 (enum ftfont_cache_for): New enum.
13935 (fc_charset_table): Undo the previous change.
13936 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
13937 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13938 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
13939 non-scarable font, try to get AVERAGE_WIDTH.
13940 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13941 Change ft_face_cache from a list of a hash-table. Don't check
13942 `ja' and `ko' adstyle here.
13943 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13944 FTFONT_CACHE_FOR_CHARET.
13945 (ftfont_get_charset): Undo the previous change.
1ac9108a 13946 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
13947 (ftfont_close): Likewise.
13948 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13949
13950 * font.c (font_sort_entites): Change the meaning of the arg
13951 BEST-ONLY. Don't optimize for VEC of lenght 1.
13952 (font_select_entity): Just return the value of font_sort_entites.
13953
13954 * xfaces.c (merge_face_vectors): Reflect font properties in
13955 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13956 font_clear_prop if a face attribute doesn't change.
13957
3c908a57
KH
13958 * charset.h (charset_ksc5601): Extern it.
13959
13960 * charset.c (charset_ksc5601): New variable.
13961 (Fdefine_charset_internal): Set charset_ksc5601.
13962 (init_charset_once): Initialize charset_ksc5601 to -1.
13963
d65859c3
DN
139642009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13965
13966 * fileio.c (history_delete_duplicates): Remove unused declaration.
13967
13968 * callint.c (history_delete_duplicates): New declaration.
13969 (Fcall_interactively): Remove command history duplicates when
13970 history_delete_duplicates is true.
13971
3ba010e5
EZ
139722009-04-14 Eli Zaretskii <eliz@gnu.org>
13973
13974 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13975
06f19b91
KH
139762009-04-14 Kenichi Handa <handa@m17n.org>
13977
13978 * font.c (Ffont_info): Fix docstring. Fix the second element of
13979 the returned value (bug#2949).
13980
2cce8bfc
CY
139812009-04-14 Chong Yidong <cyd@stupidchicken.com>
13982
13983 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13984
d156542d
KH
139852009-04-14 Kenichi Handa <handa@m17n.org>
13986
13987 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13988 encoding charset is ascii_compatible.
13989
13990 * charset.c (Fdefine_charset_internal): Make charset
13991 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13992 code_offset is 0, and covers all ASCII characters.
13993
86fa089e
SM
139942009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13995
13996 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13997 (ns_string_to_pasteboard_internal):
13998 * nsmenu.m (process_dialog):
13999 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14000 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14001 * lisp.h (Fx_load_color_file): Declare.
14002
a8a3728b
KH
140032009-04-13 Kenichi Handa <handa@m17n.org>
14004
1ac9108a 14005 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
14006 (font_select_entity): Suppress the code to optimize for the same
14007 kind of fonts.
14008 (font_load_for_lface): Get a font that supports at least ASCII
14009 characters.
14010
14011 * ftfont.c (Qja, Qko): New variables.
14012 (fc_charset_table): Delete uniquifier data for iso8859-1.
14013 (ftfont_get_latin1_charset): New function.
14014 (get_adstyle_property): New function.
14015 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14016 bitmap fonts.
14017 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14018 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14019 `ko' or `ja'.
14020 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 14021 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
14022 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14023 property.
14024 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14025 (syms_of_ftfont): DEFSYM Qja and Qko.
14026
483670b5
KH
140272009-04-09 Kenichi Handa <handa@m17n.org>
14028
12b55765
KH
14029 * charset.c (map_charset_chars): For a charset of `superset'
14030 method, fix calculation of code range.
14031
483670b5
KH
14032 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14033 from the list of extra properties.
14034 (font_clear_prop): Be sure to delete `:name' font property.
14035
57d3b93b
KH
140362009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14037
b4b2c2ca
YM
14038 * dispnew.c (redraw_overlapping_rows): Fix detection of
14039 overlapping for topmost and bottommost rows.
14040
1ac9108a 14041 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 14042
472c3609
JR
140432009-04-06 Jason Rumney <jasonr@gnu.org>
14044
14045 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14046
ab193662
KH
140472009-04-06 Kenichi Handa <handa@m17n.org>
14048
14049 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14050
14051 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14052
0c26f026
KH
140532009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14054
14055 * ftfont.c (ftfont_open): Fix checking of the return value of
14056 FT_Load_Char. Fix setting font->underline_thickness.
14057
e173bbce
CY
140582009-04-04 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14061 (Fterminal_parameters, Fterminal_parameter)
14062 (Fset_terminal_parameter): In doc string, refer to terminal
14063 objects rather than terminal ids.
14064
693a2698
EZ
140652009-04-04 Eli Zaretskii <eliz@gnu.org>
14066
14067 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14068 ret_lim_data. (Bug#2867)
14069
d5221487
CY
140702009-04-03 Chong Yidong <cyd@stupidchicken.com>
14071
14072 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14073 so they don't get wider than the window, matching 2006-01-23
14074 change to the partner function in xdisp.c (Bug#2800).
14075
223509a3
KH
140762009-04-03 Kenichi Handa <handa@m17n.org>
14077
14078 * print.c (print_object): Make each lowest sub_char_table start a
14079 new line (Bug#2866).
14080
74fcd0b1
KH
140812009-04-02 Kenichi Handa <handa@m17n.org>
14082
14083 * fontset.c (fontset_font): Record no-font when a fontset
14084 explicitly tells not to try another font-specs.
14085
c542407d
SM
140862009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14087
14088 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14089
e3869731
KH
140902009-03-30 Kenichi Handa <handa@m17n.org>
14091
d8d2f142
KH
14092 * fontset.c (fontset_from_font): Specify only registry in a
14093 font-spec for all characters supported by that registry.
14094
e3869731
KH
14095 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14096 even if HAVE_M17N_FLT is not defined.
14097
5da5f805
CY
140982009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14099
14100 * ftfont.c: Conditionalize prototyping and use of
14101 ftfont_variation_glyphs.
14102
ab226c50
SM
141032009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14104
9628fed7
SM
14105 * frame.c (delete_frame): Work around compiler bug.
14106
14107 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14108 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14109 Some more EMACS_INT.
14110 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14111
14112 * xdisp.c (dump_glyph): Fix typo.
14113
ae19ba7c
SM
14114 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14115 (adjust_markers_gap_motion, adjust_markers_for_delete)
14116 (adjust_markers_for_insert, adjust_point)
14117 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14118 (make_gap, copy_text, count_size_as_multibyte, insert)
14119 (insert_and_inherit, insert_before_markers)
14120 (insert_before_markers_and_inherit, insert_1)
14121 (count_combining_before, count_combining_after, insert_1_both)
14122 (insert_from_string, insert_from_string_before_markers)
14123 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14124 (insert_from_buffer_1, adjust_after_replace)
14125 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14126 (replace_range_2, del_range, del_range_1, del_range_byte)
14127 (del_range_both, del_range_2, modify_region)
14128 (prepare_to_modify_buffer, signal_before_change)
14129 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14130 for buffer positions and sizes.
14131 * lisp.h: Adjust prototypes accordingly.
14132
14133 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14134 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14135 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14136
ab226c50
SM
14137 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14138
46dfb8fb
JD
141392009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14140
14141 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14142 lines and columns so we keep the same pixel height and width.
14143
14144 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14145 the property _NET_WM_STATE has changed.
46dfb8fb
JD
14146 (x_handle_net_wm_state): New function to update frame parameter
14147 fullscreen.
14148 (x_term_init): Initialize atoms for _NET_WM_STATE.
14149
14150 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14151
d347e494
SM
141522009-03-27 Kevin Ryde <user42@zip.com.au>
14153
14154 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14155 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14156 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14157 (Fgpm_mouse_stop): Pass that new parameter.
14158 * termhooks.h (close_gpm): Adjust prototype.
14159
84db11d6
SM
141602009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14161
c95a5008
SM
14162 * lisp.h (Fx_focus_frame): Declare.
14163
84db11d6
SM
14164 * callint.c (Fcall_interactively): For '^' just delegate the work to
14165 handle-shift-selection.
14166 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14167
0a1958d6
CY
141682009-03-24 Chong Yidong <cyd@stupidchicken.com>
14169
0bfdff23
CY
14170 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14171
0a1958d6
CY
14172 * data.c (Qinteractive_form): New variable.
14173 (Finteractive_form): Use it.
14174
14175 * eval.c (Fcommandp): Use Qinteractive_form.
14176
58aec0d6
JR
141772009-03-24 Jason Rumney <jasonr@gnu.org>
14178
14179 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14180 Calculate total size precisely. Decode environment variables
14181 before substituting. (Bug#38)
14182
553dd618
KH
141832009-03-24 Kenichi Handa <handa@m17n.org>
14184
14185 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 14186 encoding (Bug#2722).
553dd618 14187
c39ea606
JD
141882009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14189
14190 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14191 that gdpy is set.
14192
bc9b2b5e
AM
141932009-03-22 Alan Mackenzie <acm@muc.de>
14194
14195 * callint.c (Finteractive): Clarify the doc string - even
14196 promptless elements need \n separators.
14197
9f995a76
JR
141982009-03-22 Jason Rumney <jasonr@gnu.org>
14199
14200 * w32term.c (syms_of_w32term): Doc fix for
14201 x-use-underline-position-properties.
14202
22749e9a
EZ
142032009-03-21 Eli Zaretskii <eliz@gnu.org>
14204
14205 * w32.c (getpwuid): Change argument type to unsigned.
14206 (struct w32_id): Change type of `rid' member to unsigned.
14207 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14208 argument ID to unsigned. All callers changed.
14209 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14210
e00553bf
EZ
142112009-03-20 Eli Zaretskii <eliz@gnu.org>
14212
14213 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14214 negative, produce a float value.
14215
14216 * dired.c (make_uid, make_gid): New functions.
14217 (Ffile_attributes): Use them to avoid negative UID and GID.
14218
f761d6b6
JB
142192009-03-20 Juanma Barranquero <lekktu@gmail.com>
14220
14221 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14222 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14223 Fix typos in docstrings.
14224
d507f8d7
KH
142252009-03-19 Kenichi Handa <handa@m17n.org>
14226
14227 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14228 changed, use font_load_for_lface to get a new font object.
14229 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14230
14231 * frame.c (x_set_font): Handle the case that ARG is a cons.
14232
c68845e0
GM
142332009-03-19 Glenn Morris <rgm@gnu.org>
14234
14235 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14236
bfa49dd1
CY
142372009-03-19 Chong Yidong <cyd@stupidchicken.com>
14238
14239 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14240
8458d4c1
KH
142412009-03-19 Kenichi Handa <handa@m17n.org>
14242
14243 * charset.c (load_charset_map_from_file): When a mapfile can't be
14244 loaded, signal an error.
14245
78e7d1fe
EZ
142462009-03-18 Eli Zaretskii <eliz@gnu.org>
14247
14248 * dired.c (Ffile_attributes): Make sure UID and GID are always
14249 positive, even if the value is too large for a positive EMACS_INT.
14250 Doc fix.
14251
14252 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14253
5da9fdfa
YM
142542009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14255
14256 * xmenu.c (xdialog_show): Move Fredisplay call ...
14257 (Fx_popup_dialog): ... here.
14258
7519c40d
SM
142592009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14260
14261 * dired.c (file_name_completion): Disable the first optimization just
14262 installed, since it is not implemented correctly.
14263
2cd298e2
SM
142642009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14265
14266 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14267 only if the entry can affect bestmatch.
2cd298e2
SM
14268 Stop the search early, as Ftry_completion already does.
14269
48d37adf
CY
142702009-03-17 Chong Yidong <cyd@stupidchicken.com>
14271
e10c9c93 14272 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14273
9286b16a
CY
142742009-03-15 Chong Yidong <cyd@stupidchicken.com>
14275
14276 * keyboard.c (parse_menu_item): Don't display remappings as menu
14277 equivalent bindings (Bug#788).
14278
f7b146dc
JR
142792009-03-15 Jason Rumney <jasonr@gnu.org>
14280
14281 * w32term.h (WM_EMACS_PAINT): New message.
14282 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14283 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14284 before passing to lisp thread. (Bug#950)
14285
f761d6b6 142862009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14287
d93f9575
CY
14288 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14289 variable as it was never reset.
14290 (ns_term_init): Remove initialization of Lisp-settable defaults
14291 and ns_expand_space.
14292 (-setPanelFromDefaultValues): Remove ns_expand_space.
14293 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14294 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14295 i.e. no additional spacing, similar to Carbon port.
14296
d93f9575
CY
14297 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14298 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14299
305018ec
JD
143002009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14301
14302 * sound.c (alsa_configure): Remove call to deprecated
14303 snd_pcm_sw_params_set_xfer_align.
14304
f761d6b6 143052009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14306
14307 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14308 after clicking in a detached tool bar.
14309 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14310
46e722a9
SM
143112009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14312
348db3dd
SM
14313 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14314 int/Lisp_Object mixup).
46e722a9 14315
a3d16f39
KH
143162009-03-13 Kenichi Handa <handa@m17n.org>
14317
14318 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14319 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14320 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14321 (set_fontset_font): Change ARG to a vector. Handle range_list in
14322 ARG correctly.
14323 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14324 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14325 the above change.
14326 (fontset_from_font): Fix previous change.
fe24f56a 14327 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14328 entry. If FONTSET is the default fontset, don't set the extra
14329 slot of the returning char-table.
14330
b066e6b6
JB
143312009-03-12 Juanma Barranquero <lekktu@gmail.com>
14332
14333 * nsfns.m (Fx_close_connection): Doc fix.
14334 (Fns_do_applescript): Reflow docstring.
14335 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14336 (Fx_display_pixel_width, Fx_display_pixel_height)
14337 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14338 Fix typos in docstrings.
14339 (Fns_set_alpha): Fix typos in error messages.
14340
d472514e 143412009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14342
d472514e 14343 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14344 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14345 were used for such events.
14346
d472514e
JB
14347 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14348 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14349
d472514e 14350 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14351 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14352
fb930676
KH
143532009-03-11 Kenichi Handa <handa@m17n.org>
14354
ff85581a
KH
14355 * font.h (font_open_by_spec): Extern it.
14356
c50b7e98
KH
14357 * font.c (font_open_by_spec): New function.
14358 (font_open_by_name): Use font_open_by_spec.
14359
fb930676
KH
14360 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14361 fontset of the frame.
14362
14363 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14364 modify the default font of frames that use this fontset.
14365 (num_auto_fontsets): New variable.
14366 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14367 name. Be sure to set FONTSET_ASCII to the correct font name.
14368 (update_auto_fontset_alist): New function.
14369
df4e8455
JB
143702009-03-11 Juanma Barranquero <lekktu@gmail.com>
14371
14372 * makefile.w32-in: Update dependencies.
14373
0a375797
AR
143742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14375
14376 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14377
61313fa3
SM
143782009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14379
14380 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14381
b55103fb
CY
143822009-03-10 Chong Yidong <cyd@stupidchicken.com>
14383
14384 * lread.c (Feval_buffer): Doc fix.
14385
dde2559c
KH
143862009-03-09 Kenichi Handa <handa@m17n.org>
14387
14388 * charset.c (Qfile_name_handler_alist): Extern it.
14389 (load_charset_map_from_file): Temporarily bind
14390 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14391
df4e8455 143922009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14393
47f588bb
GM
14394 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14395 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14396
4ddf94bd
AR
143972009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14398
4c9bdfc2
AR
14399 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14400 (x_set_window_size): Change back to calculated method of setting
14401 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14402 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14403 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14404
fe41ae9e
AR
14405 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14406
4c9bdfc2
AR
14407 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14408 accelerator in parens under GNUstep.
14409
825d0875
KH
144102009-03-06 Kenichi Handa <handa@m17n.org>
14411
14412 These changes are to detect incorrect composition sequence without
f3b3be74 14413 looking ahead the source. (Bug#2370)
825d0875
KH
14414
14415 * coding.h: Include "composite.h".
14416 (enum compisition_state): New enum.
14417 (struct compisition_status): New struct.
14418 (struct iso_2022_spec): New member cmp_status.
14419 (struct emacs_mule_spec): New struct.
14420 (struct coding_system): New members ctext_extended_segment_len and
14421 embedded_utf_8. Change the union member
14422 spec.emacs_mule_full_support to spec.emacs_mule.
14423
14424 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14425 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14426 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14427 (ADD_COMPOSITION_DATA): New arg nbytes.
14428 (emacs_mule_char): New arg cmp_status.
14429 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14430 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14431 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14432 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14433 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14434 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14435 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14436 (EMACS_MULE_COMPOSITION_END): New macro.
14437 (emacs_mule_finish_composition): New function.
14438 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14439 (decode_coding_emacs_mule): Avoid long looking ahead while
14440 handling composition.
14441 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14442 (ENCODE_COMPOSITION_RULE): New macro.
14443 (finish_composition): New function.
14444 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14445 (DECODE_COMPOSITION_START): New implementation.
14446 (DECODE_COMPOSITION_END): Likewise.
14447 (STORE_COMPOSITION_RULE): New macro.
14448 (decode_coding_iso_2022): Avoid long looking ahead while handling
14449 composition, CTEXT extended segment, and embedded UTF-8.
14450 (setup_coding_system): For a coding of type iso-2022, reset
14451 CODING_ISO_EXTSEGMENT_LEN (coding) and
14452 CODING_ISO_EMBEDDED_UTF_8 (coding).
14453 (get_translation): Delete arguments last_block, from_nchars,
14454 to_nchars. Callers changed.
14455 (produce_chars): Don't modify charbuf. Adjusted for the change of
14456 get_translation.
98a326f7 14457 (produce_composition): Adjust for the new annotation sequence.
825d0875 14458 (handle_composition_annotation): Likewise.
98a326f7 14459 (consume_chars): Adjust for the change of get_translation.
825d0875 14460
ccbc4452
AR
144612009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14462
4ddf94bd 14463 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14464
988a7ddb
KH
144652009-03-05 Kenichi Handa <handa@m17n.org>
14466
14467 * font.c (font_select_entity): New function.
14468 (font_find_for_lface): Use font_select_entity to select a font.
14469
14470 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14471 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14472 font with C restriction.
14473
98a326f7 144742009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14475
be1bce46 14476 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14477
10ea2b82
JR
144782009-03-04 Jason Rumney <jasonr@gnu.org>
14479
2c93b248 14480 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14481 characters that have already been read. (Bug#2569)
2c93b248 14482
10ea2b82
JR
14483 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14484 Log an error message if check_image_size failed.
14485 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14486 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14487
71a0c011
EZ
144882009-03-02 Eli Zaretskii <eliz@gnu.org>
14489
14490 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14491 when decoding process output.
14492
2f63bba8
RS
144932009-03-01 Richard M Stallman <rms@gnu.org>
14494
14495 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14496
14497 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14498
0a9564cb
EZ
144992009-02-28 Eli Zaretskii <eliz@gnu.org>
14500
14501 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14502 (decode_coding_emacs_mule, decode_coding_iso_2022)
14503 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14504 (decode_coding_raw_text, decode_coding_charset)
14505 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14506 Honor inhibit-eol-conversion. (Bug #2186)
14507
449148b3
JR
145082009-02-28 Jason Rumney <jasonr@gnu.org>
14509
14510 * coding.c (detect_coding_charset): If not checking latin extra,
14511 fail on characters between 0x80 and 0xA0. (Bug#2354)
14512
a4aee864
EZ
145132009-02-28 Eli Zaretskii <eliz@gnu.org>
14514
14515 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14516 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14517
d88bee5a
GM
145182009-02-27 Glenn Morris <rgm@gnu.org>
14519
14520 * callint.c (Finteractive): Doc fix.
14521
a808f22d
KH
145222009-02-27 Kenichi Handa <handa@m17n.org>
14523
14524 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14525
caf8d60c
CY
145262009-02-27 Chong Yidong <cyd@stupidchicken.com>
14527
14528 * font.c (font_style_to_value): Set value for unknown symbols to
14529 100 instead of 255.
b61137ea
CY
14530 (weight_table, slant_table, width_table): Treat "unspecified" as
14531 the default value.
caf8d60c 14532
1a0de25c
JB
145332009-02-26 Juanma Barranquero <lekktu@gmail.com>
14534
14535 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14536
8fc45744
JB
145372009-02-25 Juanma Barranquero <lekktu@gmail.com>
14538
107bd7d1
JB
14539 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14540 error as soon as a recursive load is detected.
8fc45744 14541
f097e223
AR
145422009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14543
14544 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14545 before caching.
14546
8810a12f
KH
145472009-02-24 Kenichi Handa <handa@m17n.org>
14548
14549 * fontset.c (fontset_find_font): Fix the condition for checking
14550 unavailable font.
14551
2c7d1565
GM
145522009-02-24 Glenn Morris <rgm@gnu.org>
14553
14554 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14555 whitespace that confuses documentation.
14556
a20878b6
MB
145572009-02-23 Miles Bader <miles@gnu.org>
14558
14559 * process.c (Flist_system_processes, Fprocess_attributes)
14560 (syms_of_process): Rename `system-process-attributes' to
14561 `process-attributes'.
14562
b3b58c01
AS
145632009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14564
1b3b981b
AS
14565 * coding.h (struct coding_system): Make safe_charsets a pointer to
14566 unsigned char.
14567 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14568 being 255.
14569 (SAFE_CHARSET_P): Likewise.
14570 (setup_iso_safe_charsets): Properly setup safe_charsets.
14571 (Fdefine_coding_system_internal): Likewise.
14572 (setup_coding_system): Likewise. Remove unneeded casts.
14573 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14574 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14575 Remove unneeded casts.
1b3b981b 14576
b3b58c01
AS
14577 * insdel.c (del_range_2): Don't modify gap contents when called
14578 from decode_coding_object. (Bug#1809)
14579
0b6f228c
CY
145802009-02-21 Chong Yidong <cyd@stupidchicken.com>
14581
14582 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14583 Qfont_object.
14584 (Ftype_of): Recognize font objects.
14585
14586 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14587
bba3e508
SM
14588 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14589 Definitions moved to data.c.
0b6f228c 14590
52f8870b
AR
145912009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14592
14593 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14594 async_iconified. Based on a patch by Christian Lynbech
14595 <christian.lynbech@tieto.com>.
14596 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14597
7087d5e9
GM
145982009-02-20 Glenn Morris <rgm@gnu.org>
14599
14600 * syntax.c (Fskip_chars_forward): Fix doc typo.
14601
41d2ceef
CY
146022009-02-20 Chong Yidong <cyd@stupidchicken.com>
14603
14604 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14605
1a3b7ca6
CY
146062009-02-19 Chong Yidong <cyd@stupidchicken.com>
14607
14608 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14609
73cce38d
KH
146102009-02-19 Kenichi Handa <handa@m17n.org>
14611
14612 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 14613 Don't overflow coding->carryover. (Bug#2370)
73cce38d 14614
a51092ee
DN
146152009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14616
14617 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14618
c423ecca
KH
146192009-02-18 Kenichi Handa <handa@m17n.org>
14620
14621 * font.c (font_check_otf_features): Fix handling of `nil' element.
14622 (Ffont_spec): Describe :lang and :otf in the docstring.
14623
4c1958f4
AS
146242009-02-16 Andreas Schwab <schwab@suse.de>
14625
14626 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14627 string.
14628
5704f39a
KH
146292009-02-16 Kenichi Handa <handa@m17n.org>
14630
14631 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 14632 (Bug#1723)
5704f39a 14633
8f0085aa
CY
146342009-02-14 Chong Yidong <cyd@stupidchicken.com>
14635
a057d86a 14636 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
14637
14638 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14639 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14640
aff01dd9
EZ
146412009-02-14 Eli Zaretskii <eliz@gnu.org>
14642
14643 * msdos.c (MAX_SCREEN_BUF): New macro.
14644 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14645 Encode the entire run of glyphs sharing the same face, instead of
14646 doing that one glyph at a time (fixes a bug with displaying
14647 double-size characters).
14648
ba301db3
AR
146492009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14650
14651 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14652
14653 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14654 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 14655 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
14656
14657 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 14658 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 14659
51d861de
SM
146602009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14661
ac146f82 14662 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
14663 invisible areas.
14664
7fed8996
JR
146652009-02-12 Jason Rumney <jasonr@gnu.org>
14666
631ea4fb
JR
14667 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14668 (add_font_entity_to_list): Call check_face_name even when family
14669 is unspecified.
14670
cb4a3e42
JR
14671 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14672 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 14673 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 14674
7fed8996 14675 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 14676 raster fonts. (Bug#2219)
7fed8996 14677
895416e3
KH
146782009-02-12 Kenichi Handa <handa@m17n.org>
14679
14680 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14681 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14682 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 14683 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14684 (find_automatic_composition): While looking forward and backward,
14685 check static composition. Fix where to stop looking forward.
14686 (composition_adjust_point): Fix checking of static composition.
14687 (Fcomposition_get_gstring): Pay attention to
1dacf998 14688 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14689
14690 * lisp.h (fast_looking_at): Extern it.
14691
14692 * search.c (fast_looking_at): New function.
14693
51d861de 14694 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
14695 <struct glyph>.u.cmp.to.
14696 (append_composite_glyph): Likewise.
14697
51d861de 14698 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
14699 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14700 composition.
51d861de 14701 (append_composite_glyph): Adjust for the change of
895416e3
KH
14702 <strcut glyph>.u.cmp.to.
14703
8510724d
JB
147042009-02-11 Juanma Barranquero <lekktu@gmail.com>
14705
14706 * casetab.c (init_casetab_once):
14707 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14708 * font.c (font_update_lface):
14709 * fontset.c (Fnew_fontset):
14710 * ftfont.c (ftfont_drive_otf):
14711 * xfont.c (xfont_open):
14712 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14713
294fa707
SM
147142009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14715
14716 * fileio.c (Fwrite_region): !NILP -> CONSP.
14717
b5bfebec
AS
147182009-02-10 Andreas Schwab <schwab@suse.de>
14719
14720 * process.c (send_process): Properly relocate pointer into data
adab88bd 14721 when using encoded data. (Bug#2272)
b5bfebec 14722
cb84a2be
KH
147232009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14724
14725 * coding.c (detect_coding_charset): Fix previous change.
14726
89e09428
JR
147272009-02-08 Jason Rumney <jasonr@gnu.org>
14728
14729 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 14730 disappeared while hourglass was displayed. (Bug #2193)
89e09428 14731
4470a277
AS
147322009-02-07 Andreas Schwab <schwab@suse.de>
14733
14734 * unexelf.c (unexec): Fix error message.
14735
3175b12a
AR
147362009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14737
14738 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 14739 when modal window is active. (Bug #2152)
3175b12a
AR
14740 (applicationShouldTerminate:): Remove now-unneeded while loop
14741 around NSRunAlertPanel.
14742
14743 * nsmenu.m (popupSession): New file-global variable.
14744 (pop_down_menu): End the popupSession before closing dialog.
14745 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14746 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14747 don't query NSApp for events (just sleep instead).
14748
8434d0b8
EZ
147492009-02-07 Eli Zaretskii <eliz@gnu.org>
14750
51d861de
SM
14751 * coding.c (syms_of_coding) <translation-table-for-input>:
14752 Modify doc string to discourage use for character code unification.
8434d0b8 14753
aa82edfd
CY
147542009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14755
14756 * atimer.c (run_timers): Update pending_atimers.
14757
2d283c7c
CY
147582009-02-06 Chong Yidong <cyd@stupidchicken.com>
14759
eb306cab
CY
14760 * image.c (svg_load_image): Fix last change.
14761
2d283c7c
CY
14762 * xfns.c (Fx_create_frame): Signal an error if no font is
14763 found (Bug#2147).
14764
4d8e170e
JB
147652009-02-05 Juanma Barranquero <lekktu@gmail.com>
14766
14767 * character.c (syms_of_character) <script-representative-chars>:
14768 Fix typo in docstring.
14769
c96169a0
AR
147702009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14771
14772 * nsmenu.m (pop_down_menu): New function.
14773 (ns_popup_dialog): Call it on unwind.
14774 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14775 call timer_check() (Bug#2154).
14776 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14777 handling_signal is set.
14778 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14779
31fd7c5c 14780 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
14781
14782 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14783
14784 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14785
51d861de
SM
14786 * keyboard.c (poll_for_input_1, handle_async_input):
14787 Set handling_signal under HAVE_NS.
c96169a0 14788
aacd8ba1
GM
147892009-02-04 Glenn Morris <rgm@gnu.org>
14790
14791 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14792
4cb75c4b
KH
147932009-02-04 Kenichi Handa <handa@m17n.org>
14794
14795 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14796
14797 * charset.c (Fchar_charset): New optional arg restriction.
14798
14799 * coding.h (coding_system_charset_list): Extern it.
14800
14801 * coding.c (coding_system_charset_list): New function.
14802
14803 * composite.c: Include coding.h and termhooks.h.
14804 (composition_gstring_p): Fix for the terminal case.
14805 (composition_gstring_width): Likewise.
14806 (fill_gstring_body): Likewise.
14807 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14808 the frame.
14809 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14810 is within a composition.
867d4bb3 14811 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
14812
14813 * term.c (encode_terminal_code): Fix handling of composition.
14814 (produce_composite_glyph): For static composition, get pixel_width
14815 from struct composition.
14816
826ba17e
AS
148172009-02-02 Andreas Schwab <schwab@suse.de>
14818
14819 * unexelf.c (unexec): Handle unaligned bss offset.
14820
8ad093db
AR
148212009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14822
14823 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14824 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 14825
8ad093db
AR
14826 * keyboard.c (handle_interrupt): Don't call
14827 quit_throw_to_read_char() under NS.
d0a76a6e 14828
8ad093db
AR
14829 * blockinput.h: Remove NS-specific code.
14830
4d18a7a2
DN
148312009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14832
db878925
DN
14833 * dispnew.c (window_change_signal): Don't try to get the size of a
14834 suspended tty frame.
14835 * term.c (Fresume_tty): Resize if the size has changed while the
14836 tty was suspended.
14837
4d18a7a2
DN
14838 * alloc.c (mark_stack): Properly conditionalize previous change.
14839
8984df7c
JB
148402009-01-30 Juanma Barranquero <lekktu@gmail.com>
14841
14842 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14843 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14844 Remove; this code is not used on Windows.
14845
75f4f1ac
EZ
148462009-01-30 Eli Zaretskii <eliz@gnu.org>
14847
14848 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14849 EOLs that also has stray ^M characters.
14850
07a1e794
JB
148512009-01-30 Juanma Barranquero <lekktu@gmail.com>
14852
14853 * atimer.c (run_timers, alarm_signal_handler):
14854 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14855 * w32inevt.c (w32_console_read_socket):
14856 * w32term.c (w32_read_socket):
14857 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14858
a8b11cc9
CY
148592009-01-30 Chong Yidong <cyd@stupidchicken.com>
14860
14861 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14862 Initialize it as a relative filename pattern.
14863 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14864 (Fcall_process_region): Simplify temp file creation using
14865 temporary-file-directory.
14866
c279587b
EZ
148672009-01-29 Eli Zaretskii <eliz@gnu.org>
14868
14869 * msdos.c: Rename pending_signals to msdos_pending_signals.
14870 (sig_suspender, sigprocmask): Adjust.
14871
a8fe3242
CY
148722009-01-29 Chong Yidong <cyd@stupidchicken.com>
14873
14874 * keyboard.c (pending_signals): New var.
14875 (poll_for_input, input_available_signal, init_keyboard): Set it.
14876 (process_pending_signals): New function.
14877
14878 * lisp.h (QUIT): Check pending_signals instead of
14879 interrupt_input_pending. Use process_pending_signals.
14880
51d861de 14881 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 14882
51d861de 14883 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
14884
14885 * sysdep.c (emacs_write): Use process_pending_signals.
14886
14887 * xterm.c (XTread_socket): Update pending_signals.
14888
14889 * w32term.c (w32_read_socket): Update pending_signals.
14890
14891 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14892
6570a1c4
KH
148932009-01-29 Kenichi Handa <handa@m17n.org>
14894
14895 * xftfont.c (xftfont_has_char): New function.
14896 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14897
d72a4afa
AR
148982009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14899
14900 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14901 under GNUstep.
14902 (ns_query_color): New declaration.
14903
14904 * nsterm.m (ns_confirm_quit): New variable.
14905 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14906 (EmacsApp-applicationShouldTerminate:): Use it.
14907 (EmacsPrefsController): Let user set it.
14908 (ns_query_color): New function.
14909 (ns_defined_color): Use it.
14910 (ns_initialize): Drop.
14911 (ns_term_init): Add two lines from ns_initialize(), and set
14912 input_interrupt_mode to nil.
14913
14914 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 14915 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 14916
9fe78804
KH
149172009-01-28 Kenichi Handa <handa@m17n.org>
14918
14919 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
14920 (fontset_get_font_group): Remember that no font-group is specified
14921 for C.
9fe78804 14922
fa57de36
CY
149232009-01-27 Chong Yidong <cyd@stupidchicken.com>
14924
930600e9
CY
14925 * fns.c (concat): Check for string overflow (bug#1787).
14926
fa57de36
CY
14927 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14928 Quadruple undo limits (bug#1501).
14929
7179ce7b
KH
149302009-01-27 Kenichi Handa <handa@m17n.org>
14931
14932 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14933 directly use GT_Get_Char_index.
14934
14935 * xftfont.c (struct xftfont_info): New member `index'.
14936
14937 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 14938 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 14939
5be8fcc0
CY
149402009-01-26 Kenichi Handa <handa@m17n.org>
14941
14942 * fontset.c (fontset_find_font): Fix handling of non-cons return
14943 value of fontset_get_font_group.
14944 (fontset_font): Revert last change.
14945
19ae3e61
JR
149462009-01-26 Jason Rumney <jasonr@gnu.org>
14947
14948 * w32font.c (w32font_list_internal): Return quickly if registry is
14949 unknown. Simplify final return.
14950 (add_font_entity_to_list): Break complex logic down into more
14951 manageable chunks. Move unknown registry check to
14952 w32font_list_internal.
14953
8612b71a
AR
149542009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14955
14956 Changes to remove Feval calls from GUI under NS.
14957
d8038940
JB
14958 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14959 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
14960 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14961
14962 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14963 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14964 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14965 instead of NON_ASCII_KEYSTROKE_EVENT.
14966 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14967 (EmacsApp-applicationShouldTerminate:): Query user.
14968 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14969 instead of Feval.
14970
14971 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14972
14973 * keyboard.c (kbd_buffer_get_event): Check for it.
14974 (keys_of_keyboard): Define lispy keys for
14975 ns-put/unput-working-text.
14976
14977 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14978 versions.
14979 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14980
6288ae55
CY
149812009-01-25 Chong Yidong <cyd@stupidchicken.com>
14982
14983 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14984 setting current_buffer directly. (Bug#2044)
6288ae55 14985
289e7f8f
CY
149862009-01-24 Chong Yidong <cyd@stupidchicken.com>
14987
5ce87308 14988 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14989 any work. (Bug#1952, bug#1990).
5ce87308 14990
64cc3cf6 14991 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14992
b3243e6f
AR
149932009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14994
14995 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14996 (ns_no_defaults): New declaration.
14997 (main): Use it.
e0d2e69a 14998
d900b2af 14999 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 15000
d900b2af 15001 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 15002
d900b2af
AR
15003 * nsterm.m (ns_no_defaults): New variable.
15004 (ns_initialize): Don't read defaults when ns_no_defaults.
15005 (EmacsView-readSelectionFromPasteboard:)
15006 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 15007 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
15008 (ns_dumpglyphs_stretch): New function.
15009 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 15010 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 15011
e0d2e69a
AR
15012 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15013
3ac71f5d
CY
150142009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15015
15016 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15017 call for Sparc64.
15018
3fe53a83
AR
150192009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15020
15021 * nsfns.m:
15022 * nsgui.h:
15023 * nsmenu.m:
15024 * nsselect.m:
15025 * nsterm.h:
15026 * nsterm.m: Remove '23' comments that indicated code added during
15027 update from emacs-20 -> emacs-23.
15028
10f87c6f 150292009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
15030
15031 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 15032 ns_alternate_modifier. (Bug#1217)
a3b53a85 15033
c7cef62d
AR
15034 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15035 Display all shortcuts, including those w/o super modifier.
15036
575fb8bd
AR
15037 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15038
918b848b
CY
150392009-01-22 Chong Yidong <cyd@stupidchicken.com>
15040
15041 * fileio.c (Vwrite_region_post_annotation_function)
15042 (Vwrite_region_annotation_buffers): New vars.
15043 (build_annotations_unwind): Just reset
15044 Vwrite_region_annotation_buffers.
15045 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15046 Call write-region-post-annotation-function.
15047 (build_annotations): Add to Vwrite_region_annotation_buffers if
15048 buffer changes.
15049
a39e2539
AR
150502009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15051
15052 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15053 Tiger.
51d861de
SM
15054 * nsfns.m (ns_do_applescript):
15055 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 15056
35ed44db
AR
150572009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15058
15059 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15060
cbe0b5bf
AR
150612009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15062
15063 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 15064
6049d3a0
AR
15065 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15066
15067 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
15068 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15069 handle Ctrl-tab. (Bug#1841)
15070 (ns_get_color): Use unsigned long long for scanned hex string value.
15071 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 15072 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 15073 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 15074 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 15075 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 15076 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 15077 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 15078
d3810c21 15079 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 15080 DPI. (Bug#1316)
d3810c21
AR
15081 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15082 values in onTiger section.
4c7077c3 15083
e301e634
CY
150842009-01-19 Chong Yidong <cyd@stupidchicken.com>
15085
7f82490b
CY
15086 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15087 Check return value of font_spec_from_name.
64cc3cf6 15088 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
15089
15090 * font.c (font_spec_from_name): Return Qnil if font name could not
15091 be parsed.
15092 (font_parse_name): Treat a `?' character as part of an XLFD.
15093
e301e634
CY
15094 * fns.c (Fsubstring): Doc fix.
15095
1c0db158
KH
150962009-01-19 Kenichi Handa <handa@m17n.org>
15097
51d861de 15098 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
15099 (ftfont_list): Likewise.
15100
acf20901
JB
151012009-01-18 Juanma Barranquero <lekktu@gmail.com>
15102
fff4e459
JB
15103 * dbusbind.c (Fdbus_register_signal):
15104 * process.c (conv_sockaddr_to_lisp):
15105 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15106
acf20901
JB
15107 * callproc.c (Fgetenv_internal): Doc fix.
15108
e7abcdfb
CY
151092009-01-16 Chong Yidong <cyd@stupidchicken.com>
15110
15111 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15112 it is not even used.
15113
b60861e6
GM
151142009-01-16 Glenn Morris <rgm@gnu.org>
15115
15116 * font.c (Ffont_variation_glyphs): Silence compiler.
15117
8db52afe
JB
151182009-01-15 Juanma Barranquero <lekktu@gmail.com>
15119
15120 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15121 Reported by David Robinow <drobinow@gmail.com>.
15122
4cddb209
KH
151232009-01-15 Kenichi Handa <handa@m17n.org>
15124
51d861de 15125 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 15126
f247f67b
JR
151272009-01-14 Jason Rumney <jasonr@gnu.org>
15128
15129 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 15130 never a fontset. (Bug#1562)
f247f67b 15131
f56a4450
KH
151322009-01-14 Kenichi Handa <handa@m17n.org>
15133
15134 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 15135 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 15136
4e99855e
CY
151372009-01-13 Chong Yidong <cyd@stupidchicken.com>
15138
15139 * font.c (font_clear_prop): If clearing the family, clear the font
15140 width index too.
15141
fff4e459 15142 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 15143
24f01470
JB
151442009-01-12 Juanma Barranquero <lekktu@gmail.com>
15145
15146 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15147 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15148 functions, use sizeof.
15149
a41240a3
MR
151502009-01-12 Martin Rudalics <rudalics@gmx.at>
15151
15152 * keyboard.c (read_char): Fix case where last_nonmenu_event
15153 returned a bad value with submenus. (Bug#447)
15154
944636b8
CY
151552009-01-12 Chong Yidong <cyd@stupidchicken.com>
15156
15157 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15158 family, clear the font width index too.
15159
0dad7c6f
JR
151602009-01-11 Jason Rumney <jasonr@gnu.org>
15161
15162 * keyboard.c (cmd_error_internal): Exit when errors occur before
15163 frame creation and not in daemon mode. (Bug#1836)
15164
7c2363af
CY
151652009-01-10 Chong Yidong <cyd@stupidchicken.com>
15166
15167 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15168 of a display vector, backtrack.
15169 (try_window_reusing_current_matrix): Check glyph type before
15170 referencing charpos member.
15171
97b1b294
EZ
151722009-01-10 Eli Zaretskii <eliz@gnu.org>
15173
15174 Fix Bug #876:
15175
15176 * coding.c (inhibit_null_byte_detection): New variable.
15177 (detect_coding, detect_coding_system): Don't pay attention to null
15178 bytes if inhibit_null_byte_detection is non-zero.
51d861de 15179 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
15180 <inhibit-iso-escape-detection>: Doc fix.
15181
4624b6e3
JR
151822009-01-09 Jason Rumney <jasonr@gnu.org>
15183
15184 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 15185 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
15186 Only report Unicode Plane 2 fonts as unicode-sip.
15187
323b840c
CY
151882009-01-09 Chong Yidong <cyd@stupidchicken.com>
15189
51d861de
SM
15190 * xfaces.c (Fx_font_family_list): Delete function.
15191 Move compatibility version to faces.el.
323b840c 15192
51d861de 15193 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 15194
eba7400d
MR
151952009-01-09 Martin Rudalics <rudalics@gmx.at>
15196
15197 * frame.c (x_set_frame_parameters): Remember requested value for
15198 fullscreen before it's reset by the parameter handler.
15199
4b09796d
GM
152002009-01-09 Glenn Morris <rgm@gnu.org>
15201
15202 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 15203 (last_command_event): ... and update all users.
4b09796d
GM
15204 (last_input_char): For clarity, rename to...
15205 (last_input_event): ... and update all users.
15206 (last-command-char, last-input-char): Move to subr.el as aliases.
15207 * cmds.c, commands.h: Update for last_command_char rename.
15208
14ccea62
CY
152092009-01-08 Chong Yidong <cyd@stupidchicken.com>
15210
51d861de 15211 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 15212
5f004711
JR
152132009-01-08 Jason Rumney <jasonr@gnu.org>
15214
15215 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15216 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15217 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15218 Don't declare.
fff4e459 15219 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15220 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15221
b71f6f73
KH
152222009-01-07 Kenichi Handa <handa@m17n.org>
15223
50b06221 15224 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15225 remember the coding system used for decoding in
50b06221
KH
15226 coding_system (Bug#1039).
15227
b71f6f73 15228 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15229 breaking the loop. (Bug#870)
b71f6f73
KH
15230 (decode_coding_utf_16, decode_coding_emacs_mule)
15231 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15232 (decode_coding_charset): Likewise.
15233
56f668f7
MR
152342009-01-05 Martin Rudalics <rudalics@gmx.at>
15235
15236 * frame.c (x_set_frame_parameters): Make sure height (width) get
15237 applied when fullwidth (fullheight) is set. (Bug#1522)
15238
5da9424d
JB
152392009-01-04 Juanma Barranquero <lekktu@gmail.com>
15240
15241 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15242 (utc_base): Declare as ULONGLONG, not long double.
15243 (convert_time_raw): Delete.
15244 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15245 (initialize_utc_base): New function.
15246 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15247 (convert_from_time_t): Use initialize_utc_base; compute result with
15248 64-bit arithmetic.
15249 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15250
c4605e09
EZ
152512009-01-03 Eli Zaretskii <eliz@gnu.org>
15252
9acef61c 15253 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15254 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15255 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15256 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15257 [!subprocesses]: Define.
15258 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15259 (Flist_system_processes, Fsystem_process_attributes)
15260 [!subprocesses]: Call list_system_processes and
15261 system_process_attributes instead of returning Qnil.
15262
9acef61c
JB
15263 * dosfns.c (system_process_attributes, list_system_processes):
15264 New functions.
c4605e09
EZ
15265
15266 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15267
15268 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15269 Don't use the default (no-op) implementation.
15270
8b7d0a16
JR
152712009-01-03 Jason Rumney <jasonr@gnu.org>
15272
a6d46bc1
JR
15273 * keyboard.c (parse_modifiers_uncached): Wheel events are
15274 clicks (bug#687).
15275
8b7d0a16
JR
15276 * w32term.c (x_query_colors, x_query_color): New functions.
15277
15278 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15279 (svg_load_image): Cast returned pointers from dynamically loaded
15280 functions. Eliminate W32 specific code.
15281
bfe11752
DN
152822009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15283
89e2438a
DN
15284 * nsfns.m (x_set_foreground_color, x_set_background_color)
15285 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15286 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15287 x_ prefix instead of ns_. Update references.
15288 (syms_of_nsfns): Add a FIXME comment.
15289
15290 * nsterm.m (x_set_cursor_type): New prototype.
15291 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15292
bfe11752
DN
15293 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15294 for Solaris instead of incorrectly providing Qutime and Qcutime.
15295
031da700
EZ
152962009-01-02 Eli Zaretskii <eliz@gnu.org>
15297
15298 * w32.c (process_times): Compute sum of utime and stime.
15299 (system_process_attributes): Add Qtime to the alist.
15300
15301 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15302 and add them to the alist.
15303
15304 * process.c (top level) <Qtime, Qctime>: New variables.
15305 (syms_of_process): staticpro them.
15306 (Fsystem_process_attributes): Add their documentation to the doc
15307 string.
15308
15309 * process.h: Declare Qtime and Qctime.
15310
df23bf08
JR
153112009-01-02 Jason Rumney <jasonr@gnu.org>
15312
9acef61c 15313 * image.c (Qgobject): New symbol.
df23bf08
JR
15314 (syms_of_image): Initialize it.
15315 (init_svg_functions): Load some functions from gobject library.
15316
5bbdf7aa
DN
153172009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15318
15319 * frame.c (make_terminal_frame): Remove redundant code and useless
15320 block.
15321
63136da6
AS
153222009-01-01 Andreas Schwab <schwab@suse.de>
15323
15324 * process.c (conv_sockaddr_to_lisp): Add workaround for
15325 getsockname bug on BSD.
15326
9ef69046
CY
153272009-01-01 Chong Yidong <cyd@stupidchicken.com>
15328
d6fafbe0
CY
15329 * xfns.c (x_create_tip_frame): Set border width of the X window.
15330
51d861de 15331 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15332
f9c34147
JR
153332009-01-01 Jason Rumney <jasonr@gnu.org>
15334
9acef61c 15335 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15336 Don't block input, as per earlier xterm.c changes.
15337
f5497e45
AR
153382008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15339
15340 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15341 (ns_appkit_version_int): New function.
15342 (x-server-version): Use ns_appkit_version_int and follow 21+
15343 convention of returning 3 integers.
15344
c19cab20
KH
153452008-12-30 Kenichi Handa <handa@m17n.org>
15346
15347 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15348 (CHAR_SURROGATE_PAIR_P): New macro.
15349
15350 * font.h (struct font_driver): New member get_variation_glyphs.
15351
9acef61c 15352 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15353 (Ffont_variation_glyphs): New function.
15354 (syms_of_font): Defsubr it.
15355
15356 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15357 ftfont_variation_glyphs.
15358 (setup_otf_gstring): New function.
15359 (ftfont_drive_otf): Use it.
15360 (ftfont_shape_by_flt): Handle variation selector.
15361 (ftfont_variation_glyphs): New function.
15362
28cd591f
MR
153632008-12-30 Martin Rudalics <rudalics@gmx.at>
15364
15365 * frame.c (Vemacs_iconified): Remove.
15366
7f714baf
JR
153672008-12-30 Jason Rumney <jasonr@gnu.org>
15368
15369 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15370 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15371
9d2d22ab
CY
153722008-12-30 Chong Yidong <cyd@stupidchicken.com>
15373
15374 * indent.c (Fvertical_motion): Don't advance iterator if we have
15375 reseated to the desired position.
15376
15377 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15378 checking for pos match.
15379
545312c2
KH
153802008-12-30 Kenichi Handa <handa@m17n.org>
15381
1ede3eb6
KH
15382 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15383 just get the low 8-bit of the code.
15384
545312c2
KH
15385 * font.c (font_intern_prop): Validate str as multibyte.
15386
bd7bbf29
DN
153872008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15388
31e0750e
DN
15389 * dispextern.h (struct face): Move lface and hash from the middle
15390 of bitfields.
15391
bd7bbf29
DN
15392 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15393
b5672e7c
DN
153942008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15395
15396 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15397 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15398 instead of intervals.h.
15399
d704470f
AS
154002008-12-26 Andreas Schwab <schwab@suse.de>
15401
15402 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15403 cons.
15404
54b33868
MR
154052008-12-26 Martin Rudalics <rudalics@gmx.at>
15406
15407 * textprop.c (Qminibuffer_prompt): New variable.
15408 (syms_of_textprop): Initialize it.
15409 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15410 in minibuffer-prompt face. (Bug#1662)
15411
40b615d6
JR
154122008-12-25 Jason Rumney <jasonr@gnu.org>
15413
15414 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15415
baae5c2d
JR
154162008-12-24 Jason Rumney <jasonr@gnu.org>
15417
15418 * ralloc.c (r_alloc_reset_variable): New function.
15419
15420 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15421 record of what points where. (Bug#716)
baae5c2d 15422
a9051c88
DN
154232008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15424
15425 * minibuf.c (read_minibuf): Follow the non-interactive case when
15426 running as a daemon, before detaching.
15427
8b146312
AS
154282008-12-22 Andreas Schwab <schwab@suse.de>
15429
15430 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15431 * gtkutil.c (free_widget_value): Use xfree instead of free.
15432
56f2de10
MR
154332008-12-22 Martin Rudalics <rudalics@gmx.at>
15434
15435 * frame.c (delete_frame): New function derived from
15436 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15437 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15438 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15439 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15440 * frame.h: Extern delete_frame.
15441 * window.c (window_loop):
15442 * terminal.c (delete_terminal):
15443 * xterm.c (x_connection_closed):
15444 * xfns.c (Fx_hide_tip):
9acef61c 15445 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15446
1fc200d6
JR
154472008-12-21 Jason Rumney <jasonr@gnu.org>
15448
15449 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15450 when character maps to .notdef character.
15451
5e252df2
SM
154522008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15453
15454 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15455
99b72cc4
JR
154562008-12-20 Jason Rumney <jasonr@gnu.org>
15457
15458 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15459 a graphical frame on Windows. (Bug#1325)
99b72cc4 15460
acc49a52
JD
154612008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15462
15463 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15464
6ea15123
CY
154652008-12-20 Chong Yidong <cyd@stupidchicken.com>
15466
15467 * minibuf.c (Fread_buffer): Doc fix.
15468
b2dab6c8
JR
154692008-12-20 Jason Rumney <jasonr@gnu.org>
15470
54ea0c87 15471 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15472 server name in UNC paths. (Bug#719)
54ea0c87 15473
b2dab6c8 15474 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15475 charbuf. (Bug#1035)
b2dab6c8 15476
6d1921be
DN
154772008-12-19 Daniel Engeler <engeler@gmail.com>
15478
15479 * sysdep.c (serial_configure): Fix typo.
15480
53934c98
DN
154812008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15482
15483 * sysdep.c: Include alloca.h.
f4f634e8
DN
15484 (system_process_attributes): Add implementation for Solaris.
15485
15486 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15487
06e111a6
DN
154882008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15489
15490 Reorganize implementation of Flist_system_processes and
15491 Fsystem_process_attributes. No functional changes.
15492 * process.c: Don't #include pwd.h, grp.h and limits.h.
15493 (Flist_system_processes): Just call list_system_processes.
15494 (Fsystem_process_attributes): Just call system_process_attributes.
15495 (procfs_list_system_processes, time_from_jiffies)
15496 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15497 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15498
15499 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15500 (list_system_processes): Rename from
15501 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15502 Provide a do nothing implementation.
15503 (system_process_attributes): Rename from
15504 procfs_list_system_processes.
15505 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15506 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15507
15508 * w32.c (list_system_processes): Rename from
15509 w32_list_system_processes.
15510 (system_process_attributes): Rename from
15511 w32_system_process_attributes.
15512
15513 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15514
15515 * process.h (w32_list_system_processes)
15516 (w32_system_process_attributes): Remove.
362654a6
JB
15517 (list_system_processes, system_process_attributes):
15518 New prototypes.
06e111a6 15519
6a705b23
KH
155202008-12-19 Kenichi Handa <handa@m17n.org>
15521
15522 * xfont.c (xfont_decode_coding_xlfd): New function.
15523 (xfont_encode_coding_xlfd): New function.
15524 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15525 (xfont_list): Decode and encode XLFD by iso-8859-1.
15526 (xfont_match): Likewise.
15527 (xfont_list_family): Likewise.
15528 (xfont_open): Likewise.
15529
d66c0241 15530 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15531 names are utf-8.
15532
d66c0241 15533 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15534 names are utf-8.
15535
5a130941
JD
155362008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15537
15538 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15539 changed.
bfd20325
JD
15540 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15541 clicked on a detached tool bar button.
5a130941 15542
fd95644b
DN
155432008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15544
15545 * emacs.c (main): Print and error and exit when no data is read
15546 from the pipe.
15547
e6eee6ae
JR
155482008-12-17 Jason Rumney <jasonr@gnu.org>
15549
15550 * w32font.c (w32font_has_char): Always return -1.
15551
a35dd56b
KH
155522008-12-16 Kenichi Handa <handa@m17n.org>
15553
15554 * font.c (font_open_entity): Fix previous change.
15555
0e3635c2
DN
155562008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15557
15558 * process.c: Include <limits.h>.
15559
d4835507 155602008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15561
15562 * font.c (font_update_drivers): Fix mistake in reconstructing the
15563 driver list.
15564
155652008-12-16 Chong Yidong <cyd@stupidchicken.com>
15566
15567 * font.c (font_clear_cache): Fix format of font cache data.
15568
e2cbc401
CY
155692008-12-15 Chong Yidong <cyd@stupidchicken.com>
15570
15571 * xftfont.c (xftfont_open): Free Xft font pattern if
15572 XftFontOpenPattern fails.
15573
15574 * xterm.c (x_free_frame_resources): Remove extraneous call to
15575 free_frame_faces.
15576
b131d535
CY
155772008-12-13 Chong Yidong <cyd@stupidchicken.com>
15578
15579 * xterm.c (x_delete_display): Move xim_close_dpy call to
15580 x_delete_terminal.
15581 (x_delete_terminal): Call xim_close_dpy.
15582
e6df5336
JR
155832008-12-13 Jason Rumney <jasonr@gnu.org>
15584
15585 * w32font.c (intern_font_name): New function.
15586 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15587 (w32font_open_internal, Fx_select_font): Decode font name.
15588 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15589
15590 * w32font.h (intern_font_name): Declare new function.
15591
15592 * w32uniscribe.c (add_opentype_font_name_to_list):
15593 Use intern_font_name.
15594
20d68145
CY
155952008-12-13 Chong Yidong <cyd@stupidchicken.com>
15596
9f2554de
CY
15597 * frame.c (Fdelete_frame): Call free_font_driver_list.
15598
3d9bec9a
CY
15599 * font.c (free_font_driver_list): Implement missing function.
15600
20d68145
CY
15601 * w32term.c (w32_term_init): Don't initialize the image cache
15602 here; it will be done in init_frame_faces.
15603
15604 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
15605 (struct x_display_info): Remove unused member null_pixel.
15606 New member xim_callback_data.
20d68145
CY
15607
15608 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15609 (xim_initialize): Save pointer to callback function data.
15610 (xim_close_dpy): Free callback function data. Call XCloseIM,
15611 reverting 2008-11-04 change by David Smith.
15612 (x_term_init): Don't initialize the image cache here; it will be
15613 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15614 (x_delete_display): Free x_dnd_atoms member.
15615
96f9306b
KH
156162008-12-13 Kenichi Handa <handa@m17n.org>
15617
ef1b0ba7 15618 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 15619 Argument type changed. Handle a font-spec too.
96f9306b 15620 (font_score): Check Vface_font_rescale_alist.
6dec9044 15621 (font_open_entity): Likewise. (Bug#1547)
96f9306b 15622
ef1b0ba7 15623 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 15624
8d5b4964
CY
156252008-12-13 Chong Yidong <cyd@stupidchicken.com>
15626
15627 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15628
e6df5336
JR
156292008-12-12 Jason Rumney <jasonr@gnu.org>
15630
bba3e508
SM
15631 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15632 Set Vwindow_system_version to the real w32 major version.
e6df5336 15633
97c6058a
DN
156342008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15635
15636 * term.c (init_tty): Move setting the terminal name before the
15637 potential user: maybe_fatal.
15638
ec4e88d7
CY
156392008-12-11 Chong Yidong <cyd@stupidchicken.com>
15640
ef1b0ba7 15641 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 15642 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 15643
b4233ec9
JR
156442008-12-11 Jason Rumney <jasonr@gnu.org>
15645
8ec71e23 15646 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 15647 SYMBOL_CHARSET. (Bug#547)
8ec71e23 15648
b4233ec9 15649 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 15650 size for surrogates. (Bug#1096, bug#872)
b4233ec9 15651
011a0143
JB
156522008-12-11 Juanma Barranquero <lekktu@gmail.com>
15653
15654 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15655
3c309f34
JB
156562008-12-11 Juanma Barranquero <lekktu@gmail.com>
15657
15658 * process.c (Fsystem_process_attributes, syms_of_process):
15659 Fix typo in name of Ssystem_process_attributes.
15660 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15661
fedc6ab5
JB
156622008-12-11 Juanma Barranquero <lekktu@gmail.com>
15663
15664 * syntax.c (Fmodify_syntax_entry): Doc fix.
15665
ba3de0e8
JB
156662008-12-10 Juanma Barranquero <lekktu@gmail.com>
15667
15668 * font.c (Ffont_spec): Move usage to end of docstring.
15669
174f1c74
JR
156702008-12-10 Jason Rumney <jasonr@gnu.org>
15671
15672 * w32font.c (Qcham): New symbol.
15673 (font_supported_scripts): Add cham, and comments for other new
15674 scripts in bitfield from OpenType spec.
9d32f818
JR
15675 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15676 contain characters beyond the bmp.
174f1c74 15677
7b649478
KH
156782008-12-10 Kenichi Handa <handa@m17n.org>
15679
15680 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 15681 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
15682 Qunicode_sip.
15683
2133e2d1
JB
156842008-12-10 Juanma Barranquero <lekktu@gmail.com>
15685
15686 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15687 (Fcoding_system_put): Use QCdefault_char.
15688 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15689
9af886ee
CY
156902008-12-09 Chong Yidong <cyd@stupidchicken.com>
15691
74d819eb
CY
15692 * xftfont.c (syms_of_xftfont): Fix typo.
15693
4ccfa1c0 15694 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 15695
7c19d3ae
DN
156962008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15697
15698 * emacs.c (main): Close daemon_pipe on exec.
15699
567826bb
CY
157002008-12-08 Chong Yidong <cyd@stupidchicken.com>
15701
15702 * termchar.h (struct tty): New members termcap_term_buffer and
15703 termcap_strings_buffer.
15704
15705 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 15706 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
15707 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15708 All callers changed.
15709 (init_tty): Store termcap data and string buffers in new struct
15710 tty members termcap_term_buffer and termcap_strings_buffer.
15711 (delete_tty): Free them.
4ccfa1c0 15712 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 15713
aa96c42b
SZ
157142008-12-07 Seiji Zenitani <zenitani@mac.com>
15715
15716 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 15717 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 15718
b7e1d896
CY
157192008-12-06 Chong Yidong <cyd@stupidchicken.com>
15720
15721 * coding.c (make_conversion_work_buffer): Disable buffer
15722 modification hooks in the work buffer.
15723
b5ec91a5
EZ
157242008-12-05 Eli Zaretskii <eliz@gnu.org>
15725
15726 * process.c (procfs_system_process_attributes): If `nread' has a
15727 negative value, assign zero to it.
15728
a5d2a52b
CY
157292008-12-05 Chong Yidong <cyd@stupidchicken.com>
15730
68c5540b 15731 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 15732
7bf1bb21
KH
157332008-12-05 Kenichi Handa <handa@m17n.org>
15734
15735 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15736 second character is a combining character.
15737
2fdc7d00
EZ
157382008-12-05 Eli Zaretskii <eliz@gnu.org>
15739
15740 * process.c (procfs_system_process_attributes): Don't use cmd,
15741 cmdsize, and q without initializing them first.
15742
bf6bfba8
JR
157432008-12-04 Jason Rumney <jasonr@gnu.org>
15744
15745 * w32font.c (w32font_draw): Initialize orig_clip before getting
15746 it, and delete it when finished.
15747
a3b1a468
DN
157482008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15749
15750 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15751 case when running as a daemon before detaching.
15752
8b8be8eb
JB
157532008-12-03 Juanma Barranquero <lekktu@gmail.com>
15754
805f2638 15755 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 15756
b1bde622
KH
157572008-12-03 Kenichi Handa <handa@m17n.org>
15758
e500c47d
KH
15759 * font.c (font_at): Set `multibyte' at first.
15760
ca516334
KH
15761 * coding.c (decode_coding_charset): Check type of an element of
15762 vector VALIDS.
7bf1bb21 15763 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 15764
4ccfa1c0 15765 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
15766 (font_for_char): Likewise.
15767
1e5ecd37
CY
157682008-12-03 Chong Yidong <cyd@stupidchicken.com>
15769
d5b01609 15770 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
15771 (font_update_lface): Handle fonts with corrupted size specs,
15772 i.e. non-int and non-float.
d5b01609 15773
11e3a6e4 15774 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 15775 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 15776 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 15777
ab06788b
CY
15778 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15779
1e5ecd37 15780 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 15781 underline_minimum_offset for underline position.
1e5ecd37 15782
63c125ab
DN
157832008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15784
15785 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15786
15787 * character.c (c_string_width): Specify the type for LEN.
15788
3a8406e1
KH
157892008-12-03 Kenichi Handa <handa@m17n.org>
15790
4ccfa1c0 15791 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 15792 (decode_coding_utf_8): Likewise.
4ccfa1c0 15793 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 15794 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 15795
651df7d9
CY
157962008-12-02 Chong Yidong <cyd@stupidchicken.com>
15797
15798 * keyboard.c (make_lispy_position): Only use PT if the selected
15799 window is current.
15800
1f625c6c
AS
158012008-12-02 Andreas Schwab <schwab@suse.de>
15802
f7741ce9
AS
15803 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15804
1f625c6c
AS
15805 * doprnt.c (doprnt1): Fix size of charbuf.
15806
92bc2678
CY
158072008-12-02 Chong Yidong <cyd@stupidchicken.com>
15808
15809 * keyboard.c (timer_check): Revert last change.
15810
93b9e8cc
JB
158112008-12-02 Juanma Barranquero <lekktu@gmail.com>
15812
15813 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15814
fd7a37d5
JB
158152008-12-01 Juanma Barranquero <lekktu@gmail.com>
15816
15817 * makefile.w32-in: Update dependencies.
15818 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15819
c115043b
AS
158202008-12-01 Andreas Schwab <schwab@suse.de>
15821
15822 * font.c (register_font_driver): Use xmalloc.
15823 (font_put_frame_data): Likewise.
15824
f5668d2a
CY
158252008-12-01 Chong Yidong <cyd@stupidchicken.com>
15826
860d96be
CY
15827 * xfaces.c (realize_x_face): Make abort condition clearer.
15828
f5668d2a
CY
15829 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15830
379c17e7
CY
158312008-11-30 Chong Yidong <cyd@stupidchicken.com>
15832
15833 * keyboard.c (timer_check): After a timer runs, ensure that the
15834 selected window's buffer is current.
15835
35f36d65
JB
158362008-11-30 Juanma Barranquero <lekktu@gmail.com>
15837
f952c61c
JB
15838 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15839 It was accidentally restored by the Unicode merge.
15840
35f36d65
JB
15841 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15842
b23077df
JB
158432008-11-29 Juanma Barranquero <lekktu@gmail.com>
15844
15845 * w32proc.c: Include "coding.h".
15846 (Fw32_short_file_name): Encode filename passed to Windows API.
15847 (Fw32_long_file_name): Encode filename passed to Windows API and
15848 decode back the result. (Bug#1433)
15849
b8ebe9dd
KH
158502008-11-29 Kenichi Handa <handa@m17n.org>
15851
8cc53f96
KH
15852 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15853 not before accessing it.
15854
b8ebe9dd
KH
15855 * charset.c (Fdefine_charset_internal): After calculating
15856 min_char, max_char, and fastmap, copy the charset structure again.
15857 (encode_char): Fix the previous change.
15858
59bc82c0
SZ
158592008-11-28 Seiji Zenitani <zenitani@mac.com>
15860
15861 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15862
15863 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15864
15865 * nsterm.m (x_set_frame_alpha): New function.
15866
32247e3d
EZ
158672008-11-27 Eli Zaretskii <eliz@gnu.org>
15868
15869 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15870
b003e5ff
JB
158712008-11-27 Juanma Barranquero <lekktu@gmail.com>
15872
15873 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15874 pointer to check_face_name.
15875
708550f5
KH
158762008-11-27 Kenichi Handa <handa@m17n.org>
15877
15878 * category.h (SET_CATEGORY_SET): Call set_category_set.
15879 (set_category_set): Extern it.
15880
15881 * category.c (hash_get_category_set): New function.
bba3e508 15882 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
15883 char_table_ref_and_range. Call hash_get_category_set to get a
15884 category set to store in the table.
15885
15886 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15887 Funify_charset.
15888
2ae37cf0 15889 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
15890 (DECODE_CHAR): Check if the decoder vector is ready.
15891 (ENCODE_CHAR): Check if the encoder char-table is ready.
15892 (maybe_unify_char): Extern it.
15893
15894 * charset.c (Vchar_unified_charset_table): Delete it.
15895 (inhibit_load_charset_map): New variable.
15896 (temp_charset_work): New variable.
15897 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15898 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15899 New macros.
bba3e508
SM
15900 (load_charset_map): Meaning of control_flag changed.
15901 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
15902 temp_charset_work.
15903 (load_charset): New argument control_flag.
15904 (map_charset_for_dump): New function.
15905 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15906 map_charset_for_dump.
15907 (Fdefine_charset_internal): If the charset method is MAP, load
15908 mapping tables by calling load_charset.
15909 (Funify_charset): Don't load a mapping table but directly set
15910 Vchar_unify_table.
15911 (maybe_unify_char): New function.
15912 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15913 Handle the case of inhibit_load_charset_map being nonzero.
15914 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15915 Handle the case of inhibit_load_charset_map being nonzero.
15916 (Fclear_charset_maps): Just free temp_charset_work.
15917 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15918 variable.
15919
bba3e508 15920 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
15921 change of char_table_ref_and_range.
15922 (char_table_ref_and_range): Change the meaning of argument FROM
15923 and TO. Now the caller must provide initial values for *FROM
15924 and *TO.
15925
bba3e508 15926 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
15927 char_table_ref_and_range.
15928 (fontset_get_font_group): Likewise.
15929 (Ffontset_info): Likewise.
15930
bba3e508 15931 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
15932 char_table_ref_and_range. For char-table, put boundary between
15933 non-ASCII and 8-bit characters.
15934
15935 * print.c (print_object): For bool-vector, delete unnecessary
15936 check of ASCII_BYTE_P.
15937
9196133b
JR
159382008-11-26 Jason Rumney <jasonr@gnu.org>
15939
15940 * w32font.c (w32font_open_internal): Don't include external
9acef61c 15941 leading in font height. (Bug#879)
9196133b 15942
9f688acf
GM
159432008-11-26 Glenn Morris <rgm@gnu.org>
15944
15945 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15946 redefinition with ifdef. (Bug#1383)
15947
90d19aff
AR
159482008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15949
15950 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15951
4ccfa1c0 159522008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
15953
15954 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15955 New EmacsView methods.
15956 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15957 Fixes bug #1048,1357,1414.
15958
159592008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15960
15961 Fix bug #1362.
15962 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15963 is not an indexed color.
15964 * nsterm.m (free_indexed_color): Add argument checking.
15965 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15966
e7d5ecb3
CY
159672008-11-24 Chong Yidong <cyd@stupidchicken.com>
15968
15969 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15970 Document confirm-after-completion value for
15971 minibuffer-completion-confirm.
15972
c285743c
JR
159732008-11-24 Jason Rumney <jasonr@gnu.org>
15974
15975 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15976 warning.
15977
b0857706
JR
159782008-11-23 Jason Rumney <jasonr@gnu.org>
15979
15980 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15981 restored before returning.
15982
15983 * w32font.c (check_face_name): New function.
15984 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15985 fonts. (Bug#642)
b0857706 15986
ee50ff07
MR
159872008-11-22 Martin Rudalics <rudalics@gmx.at>
15988
15989 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15990 confirm-nonexistent-file-or-buffer in doc-string.
15991
b8ff72fa
SM
159922008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15993
15994 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15995 Fix copy/paste typo. Add checks.
15996
cee53ed4
KH
159972008-11-21 Kenichi Handa <handa@m17n.org>
15998
15999 * coding.c (detect_coding_iso_2022): Reject invalid composition
16000 sequence.
16001 (DECODE_COMPOSITION_START): If the current source is the last
16002 block, and the current composition doesn't end, regard this
16003 sequence as invalid.
16004 (decode_coding_iso_2022): Handle invalid composition sequence.
16005
f6ef1e65
MR
160062008-11-20 Martin Rudalics <rudalics@gmx.at>
16007
16008 * window.c (coordinates_in_window): Don't return
16009 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16010 line when the window is not the rightmost one. (Bug#1372)
16011
e08b1705
MR
160122008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16013
16014 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16015
ad98e89f
EZ
160162008-11-15 Eli Zaretskii <eliz@gnu.org>
16017
16018 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16019 and bright_bg if noninteractive is non-zero.
16020
fb098a4b
CY
160212008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16022
16023 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16024 x_draw_glyph_string_background.
16025
16026 * w32term.c (x_draw_glyph_string): Likewise.
16027
ce952b6e
CY
160282008-11-15 Chong Yidong <cyd@stupidchicken.com>
16029
16030 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16031 the next glyph string once past the overhang width.
16032
16033 * nsterm.m (ns_draw_glyph_string): Likewise.
16034
16035 * w32term.c (x_draw_glyph_string): Likewise.
16036
26ea7079
CY
160372008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16038
16039 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16040 double file close.
16041
1c33c906
MR
160422008-11-14 Martin Rudalics <rudalics@gmx.at>
16043
16044 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16045 dedicated status of window before attempting to display another
16046 buffer in it.
16047
8fc29035
JB
160482008-11-14 Juanma Barranquero <lekktu@gmail.com>
16049
16050 * msdos.c (Fmsdos_long_file_names):
16051 (syms_of_msdos) <dos-unsupported-char-glyph>:
16052 * dosfns.c (Fint86): Fix typos in docstrings.
16053
55fb4286
EZ
160542008-11-14 Eli Zaretskii <eliz@gnu.org>
16055
16056 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16057
3fda0315
KY
160582008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16059
16060 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16061
7e849c17
CY
160622008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16063
16064 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16065
16066 * frame.h: Negative alpha means "don't touch".
16067
16068 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16069
16070 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16071
b9fd67bd
DN
160722008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16073
16074 * hftctl.c:
16075 * chpdef.h:
16076 * acldef.h: Remove files used only for systems no longer supported.
16077
16078 * Makefile.in: Fix .o alphabetical ordering.
16079 (hftctl.o): Remove dependency, file removed.
16080 (keymap.o, print.o): Depend on charset.h.
16081
d5998e03
KH
160822008-11-10 Kenichi Handa <handa@m17n.org>
16083
2ae37cf0 16084 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 16085
be70e183
CY
160862008-11-08 Chong Yidong <cyd@stupidchicken.com>
16087
16088 * dired.c (file_name_completion): If completion_ignore_case is
16089 enabled, ignore case when checking completion-regexp-list.
16090
7cf94eac
EZ
160912008-11-08 Eli Zaretskii <eliz@gnu.org>
16092
16093 * vm-limit.c (get_lim_data): Fix last change.
16094
ee107a89
KH
160952008-11-08 Kenichi Handa <handa@m17n.org>
16096
16097 * character.c (Fget_byte): New function.
16098 (syms_of_character): Defsubr Fget_byte.
16099
5fd15622
CY
161002008-11-07 Chong Yidong <cyd@stupidchicken.com>
16101
16102 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16103 cursor position is valid after scrolling.
16104
13d62fad
JB
161052008-11-06 Juanma Barranquero <lekktu@gmail.com>
16106
16107 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16108
a1dd2936
GM
161092008-11-06 Glenn Morris <rgm@gnu.org>
16110
16111 * xterm.c (handle_one_xevent): Don't let popup menus cause
16112 mouse-autoselect-window related window switching. (Bug#1261)
16113
860cd236
CY
161142008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16115
16116 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16117
653a3150
AS
161182008-11-04 Andreas Schwab <schwab@suse.de>
16119
16120 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16121
870f5cac
CY
161222008-11-03 Chong Yidong <cyd@stupidchicken.com>
16123
16124 * xfns.c (Fx_wm_set_size_hint): New function.
16125
1e02f3cb
MR
161262008-11-03 Martin Rudalics <rudalics@gmx.at>
16127
16128 * textprop.c (Fprevious_single_char_property_change): Return 0
16129 when there's no change in a string. (Bug#1301)
16130
e630dfc6
MR
161312008-11-02 Martin Rudalics <rudalics@gmx.at>
16132
16133 * frame.c (do_switch_frame): New argument NORECORD passed to
16134 Fselect_window.
16135 (Fselect_frame): New argument NORECORD passed to
16136 do_switch_frame.
16137 (Fset_frame_selected_window): New argument NORECORD passed to
16138 Fselect_frame.
16139 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16140 in call of do_switch_frame.
16141 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16142 Handle NORECORD argument in call of Fselect_frame.
16143 * lisp.h (do_switch_frame, Fselect_frame)
16144 (Fset_frame_selected_window): Adjust declarations.
16145 * window.c (select_frame_norecord): New function.
16146 (run_window_configuration_change_hook): Use it and call
16147 Fselect_frame with NORECORD set.
16148 (Fselect_window): Pass NORECORD to Fselect_frame.
16149 (Fset_window_configuration): Handle NORECORD argument in call of
16150 do_switch_frame.
16151 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16152 Fset_frame_selected_window.
16153 * keyboard.c (command_loop_1): Handle NORECORD in call of
16154 Fselect_frame (currently ifdefd).
16155
9020b223
GM
161562008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16157
16158 * emacs.c (USAGE2): Untabify.
16159
793ffee8
SM
161602008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16161
16162 * composite.c (fill_gstring_header): Fix copy/paste typo.
16163
ab6d1131
MR
161642008-10-31 Martin Rudalics <rudalics@gmx.at>
16165
16166 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16167 (Fother_window): Rename argument and rewrite doc-string.
16168 (select_window_norecord): Fix return value. (Bug#1276)
16169
601a9cf1
JB
161702008-10-30 Juanma Barranquero <lekktu@gmail.com>
16171
16172 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16173 new frames overriding foreground for tooltips. Based on similar patch
16174 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16175
813b0652
CY
161762008-10-29 Chong Yidong <cyd@stupidchicken.com>
16177
16178 * emacs.c (Fdaemon_initialized): Initialize nfd.
16179
4414f58f
MR
161802008-10-29 Martin Rudalics <rudalics@gmx.at>
16181
16182 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16183 (Fwindow_text_height): Clarify doc-strings.
16184 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16185 doc-string of window-scroll-functions.
16186
ecdcaa09
RS
161872008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16188
16189 * category.c (syms_of_category): Fix typo in docstring.
16190
23fe745a
JB
161912008-10-28 Juanma Barranquero <lekktu@gmail.com>
16192
16193 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16194 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16195 Fix typos in docstrings.
16196
ff808935
DN
161972008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16198
16199 * emacs.c (daemon_pipe): Make non-static.
16200 (IS_DAEMON): Move definition ...
16201 * lisp.h (IS_DAEMON): ... here.
16202 (daemon_pipe): Declare.
16203 (is_daemon): Remove.
16204 * dispnew.c (init_display): Use IS_DAEMON.
16205
fc012771
SM
162062008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16207
16208 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16209 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16210
16211 * emacs.c (is_daemon): Remove.
16212 (main): Don't set is_daemon.
16213 (IS_DAEMON): New macro.
16214 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 16215 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
16216 parent exits.
16217 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16218
d8bdbe6f
CY
162192008-10-27 Chong Yidong <cyd@stupidchicken.com>
16220
d1a072bf
CY
16221 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16222 over-sized glyph, draw it with the default glyph width.
16223
e2e325aa
CY
16224 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16225 glyph, draw it with the default glyph width.
16226
16227 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16228 glyph, draw it with the default glyph width.
16229
d8bdbe6f
CY
16230 * xdisp.c (try_scrolling): When computing the distance from the
16231 scroll margin to PT, try moving some distance past the window
16232 bottom before giving up.
16233
7bfac547
MR
162342008-10-27 Martin Rudalics <rudalics@gmx.at>
16235
16236 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16237 (Fset_window_buffer): Explain in doc-string that a window can be
16238 "strongly" dedicated to its buffer.
16239
4ff029f6
DN
162402008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16241
16242 * emacs.c (daemon_name): New variable.
16243 (main): Deal with --daemon=SERVER_NAME.
16244 (Fdaemonp): Return a name if one was passed to --daemon.
16245
5790ef40
DN
162462008-10-26 Romain Francoise <romain@orebokech.com>
16247
f9bd0df9 16248 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16249 (main): Create a pipe before forking, make the parent exit only after
16250 the child has closed its end of the pipe. Move closing the
16251 descriptors ...
16252 (Fdaemon_initialized): ... here. New function.
16253
f5385255
SM
162542008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16255
4d632321
SM
16256 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16257 the previous unoptimized table.
16258
f5385255
SM
16259 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16260 the distinction between non-nil and non-t value of `dedicated'.
16261
6c56a0f3
CY
162622008-10-25 Chong Yidong <cyd@stupidchicken.com>
16263
16264 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16265 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16266
fec89261
MR
162672008-10-25 Martin Rudalics <rudalics@gmx.at>
16268
16269 * window.c (Fget_buffer_window, Fdelete_windows_on)
16270 (Freplace_buffer_in_windows): Make buffer argument optional and
16271 rename to buffer_or_name.
16272
34fcddd0
CY
162732008-10-24 Chong Yidong <cyd@stupidchicken.com>
16274
f5385255
SM
16275 * xdisp.c (handle_single_display_spec, handle_display_prop):
16276 Undo 2005-05-16 change.
34fcddd0
CY
16277 (handle_stop): Pop iterator if it's loaded with an empty string.
16278 (get_overlay_strings_1): Don't save iterator if it's loaded with
16279 an empty string (bug#1201).
16280
064766f2
KH
162812008-10-24 Kenichi Handa <handa@m17n.org>
16282
16283 * ftfont.c (ftfont_otf_features): Fix previous change.
16284 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16285 calling ftfont_otf_features.
16286
f9bd0df9 162872008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16288
16289 * font.c (font_match_p): Fix for the case that a vector of
16290 characters is in script-representative-chars.
16291
1dae9197
MA
162922008-10-24 Michael Albinus <michael.albinus@gmx.de>
16293
16294 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16295 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16296 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16297 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16298 macro. (Bug#1186)
1dae9197 16299
f9bd0df9 163002008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16301
16302 * s/sol2-10.h: New file.
16303
878a4584
JB
163042008-10-23 Juanma Barranquero <lekktu@gmail.com>
16305
16306 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16307 poor beast has survived 9+ years and the jump from xterm.c!).
16308
cd265ca6
MR
163092008-10-23 Martin Rudalics <rudalics@gmx.at>
16310
16311 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16312 Reword doc-string.
f5385255 16313 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16314
472a4dc9
JB
163152008-10-23 Juanma Barranquero <lekktu@gmail.com>
16316
16317 * character.c (syms_of_character) <script-representative-chars>:
16318 <unicode-category-table>: Doc fixes.
16319
159bd5a2
NF
163202008-10-23 Noah Friedman <friedman@splode.com>
16321
16322 * coding.c (make_conversion_work_buffer): Check that
16323 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16324 Fget_buffer_create.
16325
49f9c344
KH
163262008-10-23 Kenichi Handa <handa@m17n.org>
16327
16328 * font.c (font_add_log): Check the values of extra properties.
16329
12bb3111
MR
163302008-10-22 Martin Rudalics <rudalics@gmx.at>
16331
16332 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16333 Reword doc-string.
16334 (Fset_window_parameter): Use NILP.
16335 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16336 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16337
bbeb4e99
JB
163382008-10-22 Juanma Barranquero <lekktu@gmail.com>
16339
16340 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16341
163422008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16343
16344 * nsfns.m (ns_appkit_version): New function.
16345 (x-server-version): Use it.
16346 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16347 (x-server-vendor): Don't check_ns().
16348
16349 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16350
a9b555d3
JB
163512008-10-22 Juanma Barranquero <lekktu@gmail.com>
16352
16353 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16354 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16355
4626499f
KH
163562008-10-22 Kenichi Handa <handa@m17n.org>
16357
e3681952
KH
16358 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16359 scripts.
16360
4626499f
KH
16361 * category.c (word_boundary_p): Check scripts instead of charset.
16362 Handle nil value in word-separating-categories and
16363 word-combining-categories.
16364 (syms_of_category): Fix docstrings of word-separating-categories
16365 and word-combining-categories.
16366
1560f91a
EZ
163672008-10-21 Eli Zaretskii <eliz@gnu.org>
16368
16369 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16370 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16371
f4668441
MR
163722008-10-21 Martin Rudalics <rudalics@gmx.at>
16373
16374 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16375 Rename arg "buffer" to "buffer_or_name".
16376 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16377 it optional.
16378 (no_switch_window): Remove since the return value is not used.
a9b555d3 16379 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16380 Consider window as dedicated when Fwindow_dedicated_p returns a
16381 non-nil value.
16382 * lisp.h: Remove prototype for no_switch_window.
16383
fd75ddb2
JD
163842008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16385
16386 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16387 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16388
07295713
KH
163892008-10-21 Kenichi Handa <handa@m17n.org>
16390
16391 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16392 check Vlatin_extra_code_table.
16393
712adc82
EZ
163942008-10-20 Eli Zaretskii <eliz@gnu.org>
16395
16396 * fileio.c (Fset_file_modes): Doc fix.
16397
f549eb0b
MA
163982008-10-19 Michael Albinus <michael.albinus@gmx.de>
16399
16400 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16401 in arrays.
16402
aac0c6e3
MR
164032008-10-19 Martin Rudalics <rudalics@gmx.at>
16404
16405 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16406 Mention kill-buffer in doc-string.
16407 (Fset_window_buffer): Reinsert tem check removed in last commit.
16408 (Fenlarge_window, Fshrink_window): Have argument names and
16409 doc-string follow Elisp manual more closely.
16410
164112008-10-18 Eli Zaretskii <eliz@gnu.org>
16412
16413 * fileio.c (Fset_file_modes): Doc fix.
16414
164152008-10-18 Martin Rudalics <rudalics@gmx.at>
16416
16417 * window.c (Fwindow_width, Fset_window_start)
16418 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16419 (Fdelete_windows_on, Freplace_buffer_in_windows):
16420 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16421 (Fwindow_dedicated_p): Make window argument optional.
16422 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16423 (Fset_window_buffer): Respect any non-nil dedicated value for
16424 window. Rename "buffer" argument to "buffer_or_name".
16425
164262008-10-18 Ulrich Mueller <ulm@gentoo.org>
16427
16428 * m/sh3.h: New file, machine description for SuperH.
16429
164302008-10-17 Martin Rudalics <rudalics@gmx.at>
16431
16432 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16433
164342008-10-17 Kenichi Handa <handa@m17n.org>
16435
16436 * ftfont.c (ftfont_otf_features): Fix indexing
16437 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16438
164392008-10-16 Magnus Henoch <mange@freemail.hu>
16440
16441 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16442 (Fdbus_call_method_asynchronously): Ditto.
16443 This change makes C-h f display the argument list.
16444
164452008-10-16 Chong Yidong <cyd@stupidchicken.com>
16446
16447 * fileio.c (Fexpand_file_name): Doc fix.
16448
16449 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16450 of :foreground and :background equivalent to unspecified (20.x
16451 compatibility).
16452
164532008-10-15 Eli Zaretskii <eliz@gnu.org>
16454
16455 * buffer.c (syms_of_buffer): Doc fix.
16456
164572008-10-14 Kenichi Handa <handa@m17n.org>
16458
16459 * font.c (font_clear_prop): When clearing font width, clear the
16460 average width field too.
16461
164622008-10-12 Andreas Schwab <schwab@suse.de>
16463
16464 * ftfont.c (ftfont_shape_by_flt): Make static.
16465 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16466
16467 * font.c: Don't include <m17n-flt.h>.
16468
164692008-10-10 Eli Zaretskii <eliz@gnu.org>
16470
16471 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16472
164732008-10-09 Eli Zaretskii <eliz@gnu.org>
16474
16475 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16476 away code.
16477
164782008-10-09 Chong Yidong <cyd@stupidchicken.com>
16479
16480 * dispnew.c (update_text_area): Avoid looping due to large glyph
16481 overhangs (bug#1070).
16482
164832008-10-09 Kenichi Handa <handa@m17n.org>
16484
16485 * fontset.c (face_for_char): If face->fontset is negative, just
16486 return ascii_face.
16487
f5385255
SM
16488 * font.c (font_delete_unmatched): Fix previous change.
16489 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16490
164912008-10-09 Martin Rudalics <rudalics@gmx.at>
16492
16493 * frame.c (Fraise_frame): On text-only terminals select frame in
16494 order to make it visible. (Bug#1061)
16495
164962008-10-08 Chong Yidong <cyd@stupidchicken.com>
16497
16498 * fontset.c (fontset_find_font): Check frame validity.
16499
165002008-10-07 Chong Yidong <cyd@stupidchicken.com>
16501
a9b555d3 16502 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16503 (xg_display_close): Allow Emacs to close all displays (bug#985).
16504
165052008-10-06 Andreas Schwab <schwab@suse.de>
16506
f5385255 16507 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16508
165092008-10-06 Chong Yidong <cyd@stupidchicken.com>
16510
f5385255 16511 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16512
a9b555d3 16513 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16514
16515 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16516 during initialization.
16517
165182008-10-04 Eli Zaretskii <eliz@gnu.org>
16519
16520 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16521 whole thing on MSDOS frames as well as on a TTY.
16522
16523 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16524 well as for TTY.
16525 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16526 well as on a TTY.
16527
16528 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16529 as well as for TTY.
16530
16531 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16532
16533 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16534 MSDOS frames as well.
16535
165362008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16537
16538 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16539 correct arguments.
b71ac3dd 16540 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16541
165422008-10-03 Glenn Morris <rgm@gnu.org>
16543
16544 * emacs.c (USAGE1): Add --daemon.
16545
165462008-10-02 Eli Zaretskii <eliz@gnu.org>
16547
16548 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16549 100, so it's in percents as advertised.
16550
165512008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16552
16553 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16554 (ns_output.current_cursor, ns_output.desired_cursor)
16555 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16556 (FRAME_NEW_CURSOR_COLOR): Remove.
16557
16558 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16559 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16560 enumeration (HOLLOW_BOX_CURSOR, etc.).
16561
16562 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16563 (draw_window_cursor): Simplify code.
f5385255
SM
16564 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16565 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16566 updates manually.
a9b555d3
JB
16567 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16568 Use core Emacs cursor types.
aac0c6e3 16569
b8ff72fa 16570 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16571
165722008-10-02 Martin Rudalics <rudalics@gmx.at>
16573
16574 * process.c (Faccept_process_output): Fix doc-string.
16575
165762008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16577
16578 * gmalloc.c (__sbrk): Also define for uClibc.
16579
16580 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16581 for uClibc.
16582
165832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16584
16585 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16586 styles.
16587 (nsfont_open): Reenable the cache.
16588
165892008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16590
16591 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16592 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16593
165942008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16595
16596 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16597 a suspended terminal.
16598
165992008-09-30 Michael Albinus <michael.albinus@gmx.de>
16600
16601 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16602
166032008-09-30 Eli Zaretskii <eliz@gnu.org>
16604
16605 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16606
166072008-09-30 Chong Yidong <cyd@stupidchicken.com>
16608
16609 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16610 in a continued line coincides with a line beginning.
16611
166122008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16613
16614 * nsfont.m (nsfont_trait_distance): Fix bug.
16615 (nsfont_list): Return a list rather than a vector (syncs with Handa
16616 changes of 2008-05-14).
16617 (nsfont_open): Improve logging.
16618
166192008-09-29 Andreas Schwab <schwab@suse.de>
16620
16621 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16622
166232008-09-28 Martin Rudalics <rudalics@gmx.at>
16624
16625 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16626 name as char-resolve-modifiers.
16627 Reported by: Markus Triska <markus.triska@gmx.at>
16628
166292008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16630
16631 * dispnew.c (init_display): Return earlier when running as a daemon.
16632
166332008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16634
16635 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16636
166372008-09-27 Eli Zaretskii <eliz@gnu.org>
16638
16639 * composite.c (Fcomposition_get_gstring)
16640 (Fcompose_region_internal, Fcompose_string_internal)
16641 (Ffind_composition_internal): Doc fix.
16642 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16643 (syms_of_composite) <auto-composition-function>: Doc fix.
16644 (syms_of_composite) <composition-function-table>: Doc fix.
16645
166462008-09-25 Chong Yidong <cyd@stupidchicken.com>
16647
16648 * search.c (wordify): New argument for lax word-ends.
16649 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16650
166512008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16652
16653 * lisp.h (is_daemon): Declare.
16654 * dispnew.c (init_display): Do not try to initialize the terminal
16655 when running as a daemon.
16656
166572008-09-22 Chong Yidong <cyd@stupidchicken.com>
16658
16659 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16660 x_display_pixel_height.
16661
166622008-09-22 Martin Rudalics <rudalics@gmx.at>
16663
16664 * undo.c (record_point): Don't call Fundo_boundary for first
16665 change. (Bug#731)
16666
166672008-09-22 Juanma Barranquero <lekktu@gmail.com>
16668
16669 * emacs.c (Fdaemonp): Doc fix.
16670
166712008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16672
16673 * emacs.c (main): Place #ifdef in the proper place.
16674
166752008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16676
16677 * emacs.c (standard_args): Add --daemon.
16678 (main): Disconnect from the terminal when --daemon is passed.
16679 (is_daemon): New variable.
16680 (Fdaemonp): New function.
16681 (syms_of_emacs): Defsubr it.
16682
166832008-09-20 Chong Yidong <cyd@stupidchicken.com>
16684
16685 * xdisp.c (get_next_display_element): Handle string display
16686 correctly when checking for the end of a box run.
16687
166882008-09-20 Glenn Morris <rgm@gnu.org>
16689
16690 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16691 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16692 (Frename_file): Avoid copying to trash if a rename involves
16693 a delete. (Bug#964).
16694
166952008-09-20 Eli Zaretskii <eliz@gnu.org>
16696
16697 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16698 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16699 frames as well as termcap frames.
16700 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16701 get_named_tty.
16702
167032008-09-19 Eli Zaretskii <eliz@gnu.org>
16704
16705 * process.c (procfs_system_process_attributes): Fix cmdline in
16706 case /proc/PID/cmdline is empty.
16707
16708 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16709 x_display_pixel_height.
16710
167112008-09-19 Juanma Barranquero <lekktu@gmail.com>
16712
16713 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16714
16715 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16716 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16717
167182008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16719
16720 * dispextern.h (struct it): Move line_wrap away from the middle of
16721 bitfields. Move voffset in struct iterator_stack_entry after the
16722 bitfields. Move tab_width near after another short.
16723
167242008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16725
16726 * frame.h (struct frame): Move alpha from the middle of bitfields.
16727
16728 * window.h (struct window): Move frozen_window_start_p after the
16729 rest of the bitfields to reduce padding.
16730
167312008-09-18 Chong Yidong <cyd@stupidchicken.com>
16732
16733 * xterm.h (x_display_info): Remove `height' and `width' members.
16734
16735 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16736
16737 * w32term.h (w32_display_info): Remove `height', `width',
16738 `height_in', and `width_in' members.
16739
b8ff72fa
SM
16740 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16741 New functions.
aac0c6e3
MR
16742 (x_calc_absolute_position): Use them.
16743 (x_term_init): Omit removed `height' and `width' members.
16744
b8ff72fa
SM
16745 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16746 New functions.
aac0c6e3
MR
16747 (w32_read_socket, x_calc_absolute_position): Use them.
16748 (w32_initialize_display_info, w32_term_init): Omit removed members
16749 of w32_display_info.
16750
b8ff72fa
SM
16751 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16752 New functions.
16753 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 16754
b8ff72fa
SM
16755 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16756 New functions.
aac0c6e3
MR
16757 (x_calc_absolute_position): Use them.
16758 (x_term_init): Omit removed `height' and `width' members.
16759
16760 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
16761 (compute_tip_xy):
16762 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
16763 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16764 x_display_pixel_width.
16765
167662008-09-18 Kenichi Handa <handa@m17n.org>
16767
16768 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16769 (composition_compute_stop_pos): Fix handling of static composition.
16770 (Fcomposition_get_gstring): Check FROM and TO at first.
16771
167722008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16773
46e722a9 16774 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
16775 mixup (YAILOM).
16776
167772008-09-17 Chong Yidong <cyd@stupidchicken.com>
16778
16779 * indent.c (Fvertical_motion): Use position reported by iterator
16780 instead of PT for determining screen motion (bug#943).
16781
167822008-09-17 Romain Francoise <romain@orebokech.com>
16783
16784 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16785
167862008-09-17 Kenichi Handa <handa@m17n.org>
16787
16788 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16789
16790 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16791 if necessary.
16792
167932008-09-16 Kenichi Handa <handa@m17n.org>
16794
16795 * coding.c (make_conversion_work_buffer): Avoid calling
16796 Fget_buffer_create if it is not necessary.
16797
167982008-09-15 Martin Rudalics <rudalics@gmx.at>
16799
16800 * window.c (Fselect_window): Don't update window_select_count and
16801 use_time when norecord is not nil.
16802
168032008-09-14 Kenichi Handa <handa@m17n.org>
16804
16805 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16806 specpdl_ptr.
16807
168082008-09-12 Kenichi Handa <handa@m17n.org>
16809
16810 * indent.c (scan_for_column): Don't handle automatic composition
16811 if the current buffer is not associated with a window.
16812
16813 * composite.c (composition_reseat_it): If the current buffer is
16814 not associated with a window, ignore the automatic composition.
16815 (find_automatic_composition): Likewise.
16816
168172008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16818
16819 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16820 (Fgpm_mouse_stop): Use it.
16821 * termhooks.h (close_gpm): Declare.
16822 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16823 connection if Gpm_GetEvent fails.
16824
16825 * window.c (set_window_buffer): Always preserve current-buffer.
16826
168272008-09-12 Glenn Morris <rgm@gnu.org>
16828
16829 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16830
168312008-09-11 Glenn Morris <rgm@gnu.org>
16832
16833 * charset.c (charset-map-path): Doc fix.
16834
168352008-09-10 Kenichi Handa <handa@m17n.org>
16836
16837 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16838
16839 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16840 compose a grapheme cluster with the preceding base glyph.
16841
16842 * composite.c (composition_compute_stop_pos): Fix previous change.
16843 Reset cmp_it->id to -1 at first.
16844
168452008-09-10 Glenn Morris <rgm@gnu.org>
16846
16847 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16848
168492008-09-09 Chong Yidong <cyd@stupidchicken.com>
16850
16851 * keyboard.c (read_key_sequence): Reapply translation maps when
16852 switching keyboards.
16853
168542008-09-09 Kenichi Handa <handa@m17n.org>
16855
16856 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16857 characters.
16858
16859 * composite.c (FORWARD_CHAR): Fix calculation
16860 of (POSITION).pos_byte.
16861 (composition_compute_stop_pos): Limit the search of composition to
16862 at most 500 characters ahead. If we reach the limit or find a
16863 newline, set cmp_it->ch to -2 and return 0.
16864 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16865
168662008-09-08 Kenichi Handa <handa@m17n.org>
16867
16868 * indent.c (Fvertical_motion): Be sure to set
16869 it_overshoot_expected if it.cmp_it.id is non-negative.
16870
168712008-09-07 Andreas Schwab <schwab@suse.de>
16872
16873 * callproc.c (Fcall_process): Don't hold references to string data
16874 across garbage collection. Move initialisation of new_argv down
16875 to avoid compiler bug.
16876
168772008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16878
16879 * process.c (Fsystem_process_attributes): Doc fix.
16880
168812008-09-07 Chong Yidong <cyd@stupidchicken.com>
16882
16883 * callproc.c (Fcall_process): Canonicalize current directory name.
16884
16885 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16886 iterator advances to the next line if the current line ends in a
16887 continued tab.
16888
168892008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16890
16891 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16892 member to point to cmp_from.
16893
16894 * xdisp.c: Doc fix for references to gidx data member.
16895
168962008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16897
16898 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16899
169002008-09-07 Kenichi Handa <handa@m17n.org>
16901
16902 * composite.c (FORWARD_CHAR): Check STOP after
16903 incrementing (POSITION).pos.
16904
169052008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16906
16907 * process.c (Fsystem_process_attributes): Doc fix.
16908
169092008-09-06 Chong Yidong <cyd@stupidchicken.com>
16910
16911 * keyboard.c (Ftop_level): Doc fix.
16912
169132008-09-06 Eli Zaretskii <eliz@gnu.org>
16914
16915 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16916 minibuffer, don't let lower part of menu invade the echo area.
16917
16918 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16919 "char *q" to access menu text and advance through it. Revert the
16920 change that displayed ">" instead of ASCII character 0x10.
16921
169222008-09-05 Eli Zaretskii <eliz@gnu.org>
16923
16924 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16925 toggle boxes and radio buttons on MS-DOS as well.
16926
169272008-09-05 Kenichi Handa <handa@m17n.org>
16928
16929 * composite.c (autocmp_chars): Check lookback count.
16930 (composition_compute_stop_pos): Set cmp_it->lookback.
16931 (composition_reseat_it): Check lookback count.
16932 (struct position_record): New struct.
16933 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16934 (find_automatic_composition): New function.
16935 (composition_adjust_point): Use find_automatic_composition.
16936
16937 * dispextern.h (struct composition_it): New member lookback.
16938
169392008-09-02 Chong Yidong <cyd@stupidchicken.com>
16940
16941 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16942 if moving by a single line.
16943
169442008-09-02 Andreas Schwab <schwab@suse.de>
16945
16946 * xterm.c (x_delete_display): Fix merge error.
16947
16948 * fileio.c (Fexpand_file_name): Remove unused variables.
16949
169502008-09-02 Eli Zaretskii <eliz@gnu.org>
16951
16952 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16953 storage on all platforms, not just on DOS_NT.
16954
169552008-09-02 Jason Rumney <jasonr@gnu.org>
16956
b8ff72fa
SM
16957 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16958 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
16959
169602008-09-01 Chong Yidong <cyd@stupidchicken.com>
16961
16962 * xfaces.c (Finternal_set_alternative_font_family_alist)
16963 (Finternal_set_alternative_font_registry_alist): Properly copy
16964 entire alist structure.
16965
169662008-09-01 Kenichi Handa <handa@m17n.org>
16967
d66c0241 16968 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16969 representative chars of the script is a vector.
d66c0241
JB
16970 (ftfont_list): Handle the case where the representative chars of
16971 the script is a vector.
aac0c6e3
MR
16972
16973 * character.c (syms_of_character): Docstring of
16974 script-representative-chars fixed.
16975
169762008-08-31 Eli Zaretskii <eliz@gnu.org>
16977
16978 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16979 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16980 the menu. Allocate larger buffer for `text', to account for
16981 possible ^C characters.
16982
169832008-08-31 Martin Rudalics <rudalics@gmx.at>
16984
16985 * xdisp.c (prepare_menu_bars): Don't call
16986 Vwindow_size_change_functions with arg Qt.
16987
169882008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16989
16990 * font.h (font_range):
16991 * fileio.c (report_file_error):
46e722a9
SM
16992 * composite.c (composition_update_it): Yet another int/Lisp_Object
16993 mixup (YAILOM).
aac0c6e3
MR
16994
169952008-08-30 Glenn Morris <rgm@gnu.org>
16996
16997 * data.c (Fmake_variable_frame_local): Doc fix.
16998
16999 * frame.c (Fmodify_frame_parameters): Doc fix.
17000
170012008-08-30 Eli Zaretskii <eliz@gnu.org>
17002
17003 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17004 needed by GetTokenInformation.
17005 (w32_system_process_attributes): Check return values of all system
17006 APIs.
17007
17008 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17009 only when the state changes.
17010 (IT_update_begin, IT_update_end): Add termscript trace.
17011
17012 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17013 clipboard is unavailable. Set dst to NULL if it doesn't point to
17014 malloc'ed data.
17015 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17016 passing random values to xfree.
17017
17018 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 17019 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
17020
170212008-08-29 Jason Rumney <jasonr@gnu.org>
17022
17023 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17024
170252008-08-29 Eli Zaretskii <eliz@gnu.org>
17026
17027 * composite.c (fill_gstring_body): Avoid compiler warnings.
17028
17029 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17030 LGLYPH_SET_CODE to avoid compiler warnings.
17031
2ae37cf0 17032 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
17033
17034 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17035
17036 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17037 LGLYPH_SET_CODE.
17038
170392008-08-29 Kenichi Handa <handa@m17n.org>
17040
17041 * fileio.c (report_file_error): Don't downcase the first character
17042 of errstring if it is still unibyte.
17043
170442008-08-29 Kenichi Handa <handa@m17n.org>
17045
17046 These changes are to re-implement the automatic composition so
17047 that it doesn't use text properties.
17048
17049 * Makefile.in (ftfont.o): Depend on composite.h.
17050 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17051
17052 * character.h (Vunicode_category_table): Extern it.
17053
17054 * character.c (Vunicode_category_table): New variable.
17055 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17056
17057 * chartab.c (optimize_sub_char_table): Perform more greedy
17058 optimization.
17059
b8ff72fa
SM
17060 * composite.h (enum composition_method):
17061 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
17062 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17063 (Vcomposition_function_table): Extern it.
17064 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17065 (composition_gstring_put_cache, composition_gstring_from_id)
17066 (composition_gstring_p, composition_gstring_width)
17067 (composition_compute_stop_pos, composition_reseat_it)
17068 (composition_update_it, composition_adjust_point): Extern them.
17069 (Fcomposition_get_gstring): EXFUN it.
17070
d66c0241 17071 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
17072 (Vcomposition_function_table)
17073 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
17074 (gstring_hash_table, gstring_work, gstring_work_headers):
17075 New variables.
aac0c6e3
MR
17076 (gstring_lookup_cache, composition_gstring_put_cache)
17077 (composition_gstring_from_id, composition_gstring_p)
17078 (composition_gstring_width, fill_gstring_header)
17079 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17080 (composition_reseat_it, composition_update_it)
b8ff72fa 17081 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
17082 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17083 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 17084 Defsubr composition_get_gstring.
aac0c6e3
MR
17085
17086 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17087 cmp_id.
17088 (struct glyph_string): Delete the member gidx. New members
17089 cmp_id, cmp_from, and cmp_to.
17090 (enum it_method): Delete GET_FROM_COMPOSITION.
17091 (struct composition_it): New struct.
17092 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17093 Delete c, len, cmp_id, cmp_len in u.comp.
17094
17095 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 17096 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 17097 (enum lglyph_indices): Likewise.
b8ff72fa 17098 (font_range): Adjust extern.
aac0c6e3
MR
17099 (font_fill_lglyph_metrics): Extern it.
17100
17101 * font.c (QCf): New variable.
17102 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17103 (font_prepare_composition): Delete this function.
17104 (font_range): Type and arguments changed.
17105 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17106 (font_fill_lglyph_metrics): New function.
b8ff72fa 17107 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 17108 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
17109 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17110 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
17111
17112 * fontset.h (font_for_char): Extern it.
17113
17114 * fontset.c (font_for_char): New function.
17115
17116 * ftfont.c: Include composite.h.
17117 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 17118 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
17119
17120 * indent.c: Include composite.h and dispextern.h.
17121 (check_composition): Delete this function.
17122 (scan_for_column): Handle composition by
17123 composition_compute_stop_pos, composition_reseat_it, and
17124 composition_update_it.
17125 (compute_motion): Likewise.
17126 (Fvertical_motion): Fix checking of composition.
17127
17128 * keyboard.c (adjust_point_for_property): Check composition by
17129 composition_adjust_point.
17130
b8ff72fa 17131 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
17132 struct glyph_string.
17133
b8ff72fa
SM
17134 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17135 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
17136 struct glyph.
17137 (produce_composite_glyph): Likewise.
17138
b8ff72fa
SM
17139 * w32term.c (x_draw_composite_glyph_string_foreground):
17140 Adjust for the change of struct glyph_string.
aac0c6e3
MR
17141 (x_draw_glyph_string): Likewise.
17142
17143 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17144 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17145
17146 * xdisp.c: Include font.h.
17147 (it_props): Delete the entry for Qauto_composed.
17148 (init_iterator): Initialize it->cmp_it.id to -1.
17149 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 17150 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
17151 (handle_auto_composed_prop): Delete it.
17152 (handle_composition_prop): Handle only static composition.
17153 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17154 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 17155 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
17156 (pop_it): Likewise.
17157 (get_next_element): Delete next_element_from_composition.
17158 (CHAR_COMPOSED_P): New macro.
17159 (get_next_display_element): For automatic composition, get a face
17160 from the font in the glyph-string.
17161 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 17162 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
17163 (next_element_from_string): Check if the character at the current
17164 position is composed by CHAR_COMPOSED_P.
17165 (next_element_from_buffer): Likewise.
d66c0241
JB
17166 (next_element_from_composition): Adjust for the change of struct it.
17167 Update it->cmp_it.
b8ff72fa
SM
17168 (dump_glyph): Adjust for the change of struct glyph.
17169 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
17170 it and struct glyph. Don't handle automatic composition here.
17171 (fill_gstring_glyph_string): New function.
17172 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 17173 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
17174 (BUILD_GSTRING_GLYPH_STRING): New macro.
17175 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17176 automatic composition.
b8ff72fa 17177 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 17178 struct glyph.
b8ff72fa 17179 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 17180
b8ff72fa 17181 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
17182 the change of struct glyph_string.
17183 (x_draw_glyph_string): Likewise.
17184
171852008-08-29 Glenn Morris <rgm@gnu.org>
17186
17187 * buffer.c (word-wrap): Doc fix.
17188 * xdisp.c (truncate-partial-width-windows): Doc fix.
17189 Increase default to 50.
17190
171912008-08-29 Chong Yidong <cyd@stupidchicken.com>
17192
17193 * xdisp.c (update_tool_bar_unwind): New function.
17194 (update_tool_bar): Temporarily set selected frame before building
17195 tool-bar items.
17196
171972008-08-28 Michael Albinus <michael.albinus@gmx.de>
17198
17199 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17200 snprintf, respectively.
17201 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17202
172032008-08-28 Chong Yidong <cyd@stupidchicken.com>
17204
17205 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17206 LDFLAGS to GNUstep CC invocation.
17207
172082008-08-27 Chong Yidong <cyd@stupidchicken.com>
17209
17210 * indent.c (Fvertical_motion): Revert last change. Handle the
17211 general case where we are moving forward, and PT spans multiple
17212 screen lines.
17213
17214 * eval.c (find_handler_clause): Temporarily increase
17215 max-lisp-eval-depth while printing the backtrace buffer, to
17216 guarantee that help-mode code can run.
17217
172182008-08-27 Eli Zaretskii <eliz@gnu.org>
17219
17220 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17221 colors under -rv.
17222 (IT_set_frame_parameters): Don't swap foreground and background
17223 colors if `(reverse . t)' is present in the frame properties.
17224 (internal_terminal_init): Call init_frame_faces only for the
17225 initial frame.
17226
172272008-08-27 Andreas Schwab <schwab@suse.de>
17228
17229 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17230
172312008-08-27 Andreas Schwab <schwab@suse.de>
17232
17233 * search.c (search_buffer): Set char_base to zero only at the end.
17234
172352008-08-27 Kenichi Handa <handa@m17n.org>
17236
b8ff72fa 17237 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17238
172392008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17240
17241 * xterm.c (x_term_init): Temporarily hide the partially
17242 initialized terminal while calling vendor-specific-keysyms.
17243
172442008-08-26 Eli Zaretskii <eliz@gnu.org>
17245
17246 * msdos.c (internal_terminal_init): Most initializations done only
17247 once, especially initial_screen_colors[] and termscript open.
17248
172492008-08-26 Chong Yidong <cyd@stupidchicken.com>
17250
17251 * eval.c (Fcondition_case): Doc fix.
17252
17253 * widgetprv.h (EmacsFramePart): Change font member to the new font
17254 struct.
17255
17256 * widget.c: Include character.h and font.h for XSETFONT.
17257 (setup_frame_gcs): Compute X font id from font struct, just once.
17258
172592008-08-26 Eli Zaretskii <eliz@gnu.org>
17260
17261 * term.c (get_named_tty): Fix last change.
17262
172632008-08-26 Chong Yidong <cyd@stupidchicken.com>
17264
17265 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17266 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17267
172682008-08-25 Eli Zaretskii <eliz@gnu.org>
17269
17270 * frame.c (do_switch_frame): Mark previously displayed frame as
17271 obscured for FRAME_MSDOS_P frames as well.
17272
172732008-08-24 Eli Zaretskii <eliz@gnu.org>
17274
17275 * frame.c (make_terminal_frame): Initialize f->terminal,
17276 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17277 Set the top frame to newly created frame.
17278 (Fmake_terminal_frame): Reuse the_only_display_info.
17279
17280 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17281 estimating available memory.
17282
b97439ce 172832008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17284
17285 * nsterm.m (ns_draw_window_cursor): Don't call
17286 NSDisableScreenUpdates and NSEnableScreenUpdates on
17287 non-NS_IMPL_COCOA systems.
17288
172892008-08-23 Andreas Schwab <schwab@suse.de>
17290
17291 * process.c (procfs_system_process_attributes): Fix use of
17292 uninitialized variables.
17293
172942008-08-23 Eli Zaretskii <eliz@gnu.org>
17295
17296 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17297
17298 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17299 calling tty-set-up-initial-frame-faces.
17300
b8ff72fa
SM
17301 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17302 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17303
17304 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17305 addition to output_termcap.
17306
17307 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17308
17309 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17310 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17311 highlight.
17312
17313 * process.c [!subprocesses]: Define QCname.
17314 (syms_of_process): Intern and staticpro it.
17315
17316 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17317 Adjust for changes in encoding/decoding routines.
17318 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17319 encode_coding and decode_coding.
17320
b8ff72fa 17321 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17322
17323 * dosfns.c: Include frame.h before termhooks.h.
17324 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17325 variable termscript.
17326
17327 * s/msdos.h (USER_FULL_NAME): Define.
17328 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17329
17330 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17331 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17332 pw->pw_gecos.
17333
17334 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17335 SELECTED_FRAME as additional (1st) argument.
17336 (tty_read_avail_input): Handle output_msdos_raw in
17337 addition to output_termcap.
17338
17339 * msdos.c: Include frame.h before termhooks.h.
17340 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17341 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17342 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17343 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17344 (IT_set_terminal_modes, IT_reset_terminal_modes)
17345 (IT_set_frame_parameters): Use tty->termscript instead of a global
17346 variable termscript.
17347 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17348 global variable terminal_coding. Don't refer to
17349 Vnonascii_translation_table.
17350 (internal_terminal_init): Set Vwindow_system in current_kboard.
17351 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17352 Announce date and time of session start, if termscript is open.
17353 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17354 term.c:init_tty). Open termscript only of not already open.
17355 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17356 here instead of dos_ttraw. Don't initialize display if this is an
17357 initial tty. Don't set FRAME_FONT.
17358 (Vwindow_system_version): Bump to 23.
17359 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17360 is available, set up mouse_position_hook.
17361 (dos_ttraw, IT_set_terminal_modes): If called with initial
17362 terminal, do nothing.
17363 (IT_set_frame_parameters): Handle the Qtty_type frame
17364 parameter by calling internal_terminal_init.
17365 (dos_set_window_size, show_mouse_face)
17366 (clear_mouse_face, IT_note_mode_line_highlight)
17367 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17368 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17369 (initialize_msdos_display): New function.
17370 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17371 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17372 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17373 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17374 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17375 (request_sigio, unrequest_sigio): Don't define, now defined on
17376 sysdep.c.
17377 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17378
17379 * term.c [MSDOS]: Include msdos.h.
17380 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17381 conditional to DOS_NT. Allow only one call to this function in a
17382 session. Don't allocate a new struct tty_display_info; instead,
17383 reuse the_only_display_info. Call get_tty_size to get screen
17384 dimensions. Call init_baud_rate to set bad_rate.
17385 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17386 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17387 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17388 (get_tty_terminal, get_named_tty, Ftty_type)
17389 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17390 output_termcap.
b8ff72fa
SM
17391 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17392 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17393 only when subprocesses are supported.
aac0c6e3
MR
17394
17395 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17396 f->output_data.x.
17397 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17398 terminal devices.
17399
5582fbc7 17400 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17401 x_output.
17402 (FRAME_FONT): Use output_data.tty.
17403 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17404 (struct x_display_info): Rename from display_info. Update all users in
17405 msdos.c.
aac0c6e3 17406 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17407 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17408 (dos_ttraw): Update prototype.
17409
17410 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17411 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17412
174132008-08-23 Jason Rumney <jasonr@gnu.org>
17414
17415 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17416 (fn_TIFFSetDirectory): New library function used.
17417 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17418 (tiff_load): Use :index to select among multiple images. Set count
17419 property when multiple images exist.
17420 (gif_format): Use :index, not :image.
17421
174222008-08-23 Chong Yidong <cyd@stupidchicken.com>
17423
17424 * xdisp.c (try_scrolling): Check INT_MAX instead of
17425 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17426 to obtain INT_MAX.
17427
174282008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17429
17430 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17431
174322008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17433
17434 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17435 GNUstep library location.
17436
174372008-08-21 Chong Yidong <cyd@stupidchicken.com>
17438
17439 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17440 before using it.
17441
17442 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17443
174442008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17445
17446 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17447 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17448 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17449 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17450 (EmacsApp-cursor_blink_handler): Remove declaration.
17451 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17452 match 01 Feb 2008 changes in xterm.c.
17453 (ns_read_socket): Add cast to avoid warning.
17454 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17455 GNUstep.
17456
174572008-08-20 Chong Yidong <cyd@stupidchicken.com>
17458
17459 * xselect.c (x_get_foreign_selection): Return nil if desired
17460 selection could not be obtained, instead of signalling an error.
17461
174622008-08-20 David Reitter <david.reitter@gmail.com>
17463
17464 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17465 * nsterm.m: Remove ns-specific code for cursor blinking.
17466 (ns_draw_window_cursor): Clear cursor properly rather than
17467 redrawing the area. Respect width of bar cursors.
17468 These changes enable the use of generic blink-cursor-mode and
17469 generic cursor types in NS and support smooth cursor movements (do
17470 not blink off after command).
17471 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17472 Nextstep, too.
17473
174742008-08-19 Kenichi Handa <handa@m17n.org>
17475
17476 * font.c (Vfont_log_deferred): New variable.
17477 (font_add_log): Check Vfont_log_deferred.
17478 (font_deferred_log): New function.
17479
17480 * font.h (font_deferred_log): Extern it.
17481
17482 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17483 for sorting.
17484 (face_for_char): Use deferred log.
17485
174862008-08-18 Kenichi Handa <handa@m17n.org>
17487
17488 * fontset.c (face_for_char): Add font log.
17489
17490 * font.c (font_add_log): Add the font properties :script, :lang,
17491 and :otf in the log.
17492
174932008-08-17 Chong Yidong <cyd@stupidchicken.com>
17494
17495 * xdisp.c: Remove dead code.
17496 (handle_invisible_prop, next_overlay_string): Defer call to
17497 setup_for_ellipsis.
17498 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17499
175002008-08-15 Chong Yidong <cyd@stupidchicken.com>
17501
17502 * xfaces.c (lookup_derived_face): Properly handle possible zero
17503 return value of get_lface_attributes.
17504 (merge_faces): Don't tell lookup_derived_face to signal an error
17505 if face is not found.
17506
17507 * dired.c (Fdirectory_files): Doc fix.
17508
17509 * process.c (make_process): Initialize kill_without_query struct
17510 member.
17511
175122008-08-15 Eli Zaretskii <eliz@gnu.org>
17513
17514 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17515 Alternative calculation of totphys for Visual Studio 6.
17516
17517 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17518
17519 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17520 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17521 All users changed.
17522 (stat): Only root directory passed to GetDriveType. Allow RAM
17523 disk as well as local fixed disk when w32-get-true-file-attributes
17524 is set to `local'.
17525 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17526 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17527 (w32_cached_id, w32_add_to_cache): New functions.
17528 (get_name_and_id): Look account names in the cache before calling
17529 lookup_account_sid.
17530 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17531 New initialization flags.
17532 (globals_of_w32): Initialize them to zero.
17533 (w32_system_process_attributes): Use w32_cached_id and
17534 w32_add_to_cache.
17535
175362008-08-14 Lawrence Mitchell <wence@gmx.li>
17537
17538 * lread.c (Fread_char, Fread_char_exclusive): If no character
17539 event is read before timeout is reached, return nil, rather than
17540 converting to a number.
17541
175422008-08-14 Chong Yidong <cyd@stupidchicken.com>
17543
17544 * fns.c (use_dialog_box): Doc fix.
17545
17546 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17547 on OS X.
17548
175492008-08-13 Chong Yidong <cyd@stupidchicken.com>
17550
17551 * frame.c (Qns_parse_geometry): New var.
17552 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17553
175542008-08-11 Chong Yidong <cyd@stupidchicken.com>
17555
17556 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17557 space character in calculating tabs.
17558
175592008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17560
17561 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17562
175632008-08-10 Glenn Morris <rgm@gnu.org>
17564
17565 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17566 silence gcc "limited range of data type" warnings in some
17567 make_fixnum_or_float calls.
17568
175692008-08-09 Eli Zaretskii <eliz@gnu.org>
17570
17571 * w32.c (w32_system_process_attributes): If the process does not
17572 exist, return nil.
17573
17574 * w32.c: Include thelp32.h, psapi.h and coding.h.
17575 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17576 declarations.
17577 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17578 (Process32Next_Proc): New typedefs.
17579 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17580 (g_b_init_process32_next, g_b_init_open_thread_token)
17581 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17582 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17583 (g_b_init_get_process_working_set_size)
17584 (g_b_init_global_memory_status_ex): New static variables.
17585 (globals_of_w32): Initialize them.
17586 (create_toolhelp32_snapshot, process32_first, process32_next)
17587 (open_thread_token, impersonate_self, revert_to_self)
17588 (get_process_memory_info, get_process_working_set_size)
17589 (global_memory_status, global_memory_status_ex): New wrapper
17590 functions.
17591 (w32_list_system_processes, w32_system_process_attributes)
17592 (enable_privilege, restore_privilege, ltime, process_times):
17593 New functions.
17594 (convert_time_raw): New function.
17595 (convert_time): Remove conversion of FILETIME into time in 100
17596 nsec units, call convert_time_raw instead.
17597
17598 * process.h (w32_list_system_processes, w32_system_process_attributes):
17599 Add prototypes.
17600 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17601 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17602 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17603 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17604
17605 * process.c (Fsystem_process_attributes): Doc fix.
17606
176072008-08-08 Chong Yidong <cyd@stupidchicken.com>
17608
17609 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17610 a continued multi-char glyph; if so, advance to the actual glyph.
17611
176122008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17613
17614 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17615
17616 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17617 (.m.o): Use it.
17618 * config.in: Regenerate.
17619
176202008-08-07 Chong Yidong <cyd@stupidchicken.com>
17621
17622 * xdisp.c (redisplay_window): Revert last change.
17623 (try_window): Check bottom scroll margin too.
17624
176252008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17626
17627 * config.in: Regenerate.
17628
17629 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17630 -list-load-path-shadows'.
17631 (nsgui.h): Reduce number of things depending on it.
17632
176332008-08-06 Chong Yidong <cyd@stupidchicken.com>
17634
17635 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17636 instead of window-end which does the wrong thing at eob.
17637 (try_cursor_movement): Minor optimization.
17638 (redisplay_window): If scroll margin is defined, don't assume
17639 window doesn't need scrolling.
17640
176412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17642
17643 * config.in: Regenerate.
17644
17645 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17646 (mostlyclean): Don't delete *.d under NS.
17647
17648 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17649
176502008-08-06 Kenichi Handa <handa@m17n.org>
17651
17652 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17653
176542008-08-06 Andreas Schwab <schwab@suse.de>
17655
17656 * config.in: Regenerate.
17657
176582008-08-05 Chong Yidong <cyd@stupidchicken.com>
17659
17660 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17661 forcing a window start.
17662
17663 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17664 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17665
176662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17667
17668 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17669 argument.
17670
176712008-08-05 Juanma Barranquero <lekktu@gmail.com>
17672
17673 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17674 <scroll-down-aggressively, before-change-functions>:
17675 <after-change-functions>: Reflow docstrings.
17676
176772008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 17678 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
17679
17680 Dock menu customization, based on a patch by Ken Raeburn, plus some
17681 other fixes.
17682 * nsmenu.m (dockMenu): New variable.
17683 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17684
17685 * nsterm.h (dockMenu): Declare.
17686
17687 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17688 (ns_term_init): Initialize dockMenu.
17689 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17690 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17691 left.
17692
17693 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17694
176952008-08-04 Chong Yidong <cyd@stupidchicken.com>
17696
17697 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17698
17699 * config.in: Regenerate.
17700
177012008-08-04 Seiji Zenitani <zenitani@mac.com>
17702
17703 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17704
177052008-08-04 Chong Yidong <cyd@stupidchicken.com>
17706
17707 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17708
177092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17710
17711 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17712
17713 * keyboard.h: Comment an #endif.
17714
17715 * lisp.h (have_menus_p): Adjust comment.
17716
17717 * menu.c (find_and_return_menu_selection): Fix comparison with
17718 client_data.
17719
17720 * nsmenu.m (popup_activated_flag): New variable.
17721 (popup_activated): New function.
17722 (menu-or-popup-active-p): New exported lisp definition.
17723 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17724 when popup done.
17725 (ns_popup_dialog): Set popup_activated_flag.
17726
17727 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17728 version for GNUstep (handled by conditional typedef in nsterm.m).
17729 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17730 in rgb.txt).
17731
17732 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17733
17734 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17735
17736 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17737
17738 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17739 shortcircuit if popup_activated like GTK and X toolkit.
17740
17741 * m/inter386.h: Change DARWIN to DARWIN_OS.
17742
17743 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17744 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
17745 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17746 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
17747
177482008-08-03 Chong Yidong <cyd@stupidchicken.com>
17749
17750 * nsterm.m (windowDidResize): Remove stopModal call.
17751
177522008-08-03 Andreas Schwab <schwab@suse.de>
17753
17754 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17755 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17756
177572008-08-02 Chong Yidong <cyd@stupidchicken.com>
17758
17759 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17760 Don't use uninitialized pointer variable when using getrlimit.
17761
177622008-08-02 Jason Rumney <jasonr@gnu.org>
17763
17764 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17765
177662008-08-02 Eli Zaretskii <eliz@gnu.org>
17767
17768 * alloc.c (NSTATICS): Bump to 0x640.
17769
17770 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17771
17772 * lisp.h: Add prototype for directory_files_internal.
17773
17774 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17775 New functions.
17776 (syms_of_process): Defsubr them. Add initializations for various
17777 Q* symbols used in procfs_system_process_attributes.
17778 (procfs_list_system_processes, procfs_system_process_attributes)
17779 [HAVE_PROCFS]: New functions.
17780 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17781 (procfs_get_total_memory): New functions.
17782
177832008-08-01 Juanma Barranquero <lekktu@gmail.com>
17784
17785 * xfaces.c (Fx_load_color_file): Fix previous change;
17786 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17787
177882008-08-01 Michael Albinus <michael.albinus@gmx.de>
17789
17790 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17791
177922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17793
17794 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17795
177962008-08-01 Chong Yidong <cyd@stupidchicken.com>
17797
17798 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17799
17800 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17801 define NSApplicationDelegateReplySuccess.
17802 (EmacsView -converstationIdentifier): Use long instead of
17803 NSInteger for GNUstep, since it doesn't have NSInteger.
17804
17805 * xmenu.c: Revert last change.
17806
17807 * keyboard.h: Fix last change.
17808
178092008-08-01 Juanma Barranquero <lekktu@gmail.com>
17810
17811 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17812 on Windows.
17813
178142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17815
17816 Warning clearing and clean-up in NS port.
17817 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17818 Add prototypes.
17819 * nsgui.h (FACE_DEFAULT): Remove, unused.
17820 (XGCValues): Change colors to unsigned long.
17821 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17822 nsterm.m.
17823 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17824 (ns_list_fonts): Remove, unused.
17825 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17826 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17827 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17828 (nsfont_draw): Compare face colors to 0, not nil.
17829 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17830 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17831 (-addSubmenuWithTitle:): Use NSMenuItem class.
17832 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17833 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17834 (ns_clip_to_row): Make gc arg a BOOL.
17835 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17836 ns_clip_to_row() call.
17837 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17838 used). Cast FRAME_FONT assignments.
17839 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17840 (ns_string_to_lispmod): Change arg to const char.
17841 (ns_term_init): Use NSMenuItem class.
17842 (EmacsApp -openFile:): Move to different section of file.
17843 (EmacsApp -application:openFiles:): Don't return a value, call
17844 -replyToOpenOrPrint:.
17845 (EmacsView -keyDown:): Fix up cast.
17846 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17847 (EmacsView -menuDown:): Cast tag in call to
17848 find_and_call_menu_selection().
17849 (ns_list_fonts): Remove, unused.
17850 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17851 (ns_fontname_to_xlfd): Make static.
17852 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17853 Remove prototypes (now in keyboard.h).
17854 (next_menubar_widget_id): Remove, unused.
17855 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17856 Remove prototypes (now in keyboard.h).
17857 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17858
178592008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17860
17861 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17862 (floatfns.o): Depend on syssignal.h.
17863 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17864
17865 * systty.h: Fix previous change that removed BSD_TERMIOS.
17866 Add comments to #ifdefs.
17867
178682008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17869
17870 * w32fns.c (w32-load-color-file): Remove.
17871 (x-open-connection): Use renamed Fx_load_color_file.
17872 * xfaces.c (x-load-color-file): Add.
17873 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17874 Emacs.clr.
17875 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17876
178772008-07-31 Michael Albinus <michael.albinus@gmx.de>
17878
17879 * dbusbind.c (Fdbus_call_method_asynchronously)
17880 (Fdbus_method_error_internal): New defuns.
17881 (xd_read_message): Handle also reply messages.
17882 (Vdbus_registered_functions_table): Extend docstring.
17883
178842008-07-31 Juanma Barranquero <lekktu@gmail.com>
17885
17886 * keyboard.c (gobble_input): Fix previous change.
17887
178882008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17889
17890 * bitmaps/README:
17891 * xfns.c:
17892 * termcap.c:
17893 * term.c:
17894 * syswait.h:
17895 * systty.h:
17896 * systime.h:
17897 * syssignal.h:
17898 * sysdep.c:
17899 * process.h:
17900 * process.c:
17901 * print.c:
17902 * ndir.h:
17903 * lread.c:
17904 * keyboard.c:
17905 * getpagesize.h:
17906 * floatfns.c:
17907 * fileio.c:
17908 * emacs.c:
17909 * doc.c:
17910 * dispnew.c:
17911 * dired.c:
17912 * data.c:
17913 * callproc.c:
17914 * buffer.c:
17915 * README:
17916 * Makefile.in:
17917 * s/template.h:
17918 * s/msdos.h:
17919 * m/vax.h: Remove VMS support.
17920 * s/vms.h:
17921 * vlimit.h:
17922 * uaf.h:
17923 * temacs.opt:
17924 * param.h:
17925 * ioctl.h: Remove file.
17926
179272008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17928
17929 * s/ms-w32.h (MULTI_KBOARD): Remove.
17930 * xterm.c:
17931 * xselect.c:
17932 * xfns.c:
17933 * window.c:
17934 * w32term.c:
17935 * w32fns.c:
17936 * terminal.c:
17937 * termhooks.h:
17938 * term.c:
17939 * sysdep.c:
17940 * keyboard.h:
17941 * keyboard.c:
17942 * frame.h:
17943 * frame.c:
17944 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17945 * config.in: Regenerate.
17946
179472008-07-30 Jason Rumney <jasonr@gnu.org>
17948
17949 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17950
17951 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17952 (w32font_open_internal): Get unicode version of textmetrics.
17953 Don't enable or disable glyph indices here.
17954 (w32font_open): Disable use of glyph indices.
17955
17956 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17957
179582008-07-30 Chong Yidong <cyd@stupidchicken.com>
17959
17960 * minibuf.c (Vread_buffer_function): Doc fix.
17961
179622008-07-30 John Paul Wallington <jpw@pobox.com>
17963
17964 * minibuf.c (read_buffer_completion_ignore_case): New var.
17965 (Fread_buffer): Use it.
17966
179672008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17968
17969 * systty.h (sensemode): Remove empty #if. Remove reference to
17970 BSD_TERMIOS, unused.
17971
17972 * sysdep.c: Remove reference to DGUX.
17973 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17974
17975 * config.in: Regenerate.
17976
179772008-07-30 Jason Rumney <jasonr@gnu.org>
17978
17979 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17980
179812008-07-29 Jason Rumney <jasonr@gnu.org>
17982
17983 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17984 is populated.
17985 (uniscribe_encode_char): Always use uniscribe.
17986 Avoid using context if cache is populated.
17987
179882008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17989
17990 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17991 open menu.
17992
17993 * gtkutil.c (menu_nav_ended): Remove.
17994 (create_menus): Remove signal connect for menu_nav_ended.
17995
179962008-07-28 Chong Yidong <cyd@stupidchicken.com>
17997
17998 * xdisp.c (redisplay_window): Check return value of
17999 compute_window_start_on_continuation_line before forcing a window
18000 start.
18001
180022008-07-28 Jason Rumney <jasonr@gnu.org>
18003
18004 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18005
18006 * w32term.c (w32_enable_unicode_output, cleartype_active):
18007 Remove obsolete display options.
18008 (x_draw_glyph_string_background): Don't use old cleartype_active
18009 workaround.
18010 (w32_initialize): Remove cleartype_active initialization.
18011 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18012
180132008-07-28 Andreas Schwab <schwab@suse.de>
18014
18015 * lisp.h (init_weak_hash_tables, syms_of_font)
18016 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18017 (remove_hash_entry): Don't declare.
18018 * eval.c (maybe_call_debugger): Make static and move before use.
18019 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18020 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18021 * xterm.h (x_set_frame_alpha): Declare.
18022
180232008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18024
18025 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18026 (create_menus): Connect selection-done to menu_nav_ended.
18027
180282008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18029
18030 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18031 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18032 parameter with read of 'alpha' one.
18033 (Qns_frame_parameter): Remove.
5582fbc7 18034 * nsselect.m (selection-coding-system)
aac0c6e3
MR
18035 (next-selection-coding-system, Vselection_coding_system)
18036 (Vnext_selection_coding_system): Drop.
18037
180382008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18039
18040 * nsfns.m (do-applescript, do_applescript): Rename to
18041 ns-do-applescript, ns_do_applescript, and move within file.
18042
180432008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18044
18045 Remove support for Mac Carbon.
18046 * mactoolbox.c:
18047 * macterm.h:
18048 * macterm.c:
18049 * macselect.c:
18050 * macmenu.c:
18051 * macgui.h:
18052 * macfns.c:
18053 * mac.c: Remove file.
18054 * s/darwin.h:
18055 * m/intel386.h:
18056 * xfaces.c:
18057 * xdisp.c:
18058 * window.c:
18059 * tparam.c:
18060 * termhooks.h:
18061 * termcap.c:
18062 * term.c:
18063 * syssignal.h:
18064 * sysselect.h:
18065 * sysdep.c:
18066 * process.c:
18067 * lread.c:
18068 * lisp.h:
18069 * keyboard.c:
18070 * image.c:
18071 * fringe.c:
18072 * frame.h:
18073 * frame.c:
18074 * fontset.c:
18075 * font.h:
18076 * font.c:
18077 * fns.c:
18078 * fileio.c:
18079 * emacs.c:
18080 * dispnew.c:
18081 * dispextern.h:
18082 * config.in:
18083 * atimer.c:
2ae37cf0 18084 * Makefile.in: Remove code for Carbon.
aac0c6e3 18085
f0131492 180862008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
18087
18088 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18089
180902008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18091
18092 * macterm.h (kCGBitmapByteOrder32Host): New define for
18093 non-universal SDKs.
18094
18095 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18096 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18097
18098 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18099 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18100
181012008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18102
18103 * w32inevt.c: Include dispextern.h.
18104
181052008-07-26 Andreas Schwab <schwab@suse.de>
18106
18107 * print.c (print_object): Fix off-by-one in last change.
18108
181092008-07-25 Juanma Barranquero <lekktu@gmail.com>
18110
18111 * term.c (syms_of_term): Don't initialize default_orig_pair,
18112 default_set_foreground and default_set_background on Windows.
18113
181142008-07-25 Jason Rumney <jasonr@gnu.org>
18115
18116 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18117 ScriptItemize. Clean up return value checking. Remove unused
18118 variables.
18119 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18120 shaping engine.
18121
18122 * w32font.c (w32font_has_char): Handle the case where we can't
18123 determine the script for a character.
18124
181252008-07-25 Chong Yidong <cyd@stupidchicken.com>
18126
18127 * term.c (syms_of_term): Initialize default_orig_pair,
18128 default_set_foreground, and default_set_background.
18129
18130 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18131 clash (bug#86).
18132 (getloadavg): Callers changed.
18133
18134 * image.c (svg_load_image): Fix last change.
18135 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18136 image size is valid. Use g_object_unref instead of deprecated
18137 rsvg_handle_free to free rsvg handle.
18138 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18139
181402008-07-25 Jason Rumney <jasonr@gnu.org>
18141
18142 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18143 surrogates before looking up glyph index.
18144 (w32font_text_extents): Encode as surrogates if falling back to
18145 functions that need UTF-16 wide chars.
18146
18147 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18148 BMP as surrogates before looking up glyph index.
18149
181502008-07-25 Chong Yidong <cyd@stupidchicken.com>
18151
18152 * image.c (svg_load_image): Check for failure in return value of
18153 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18154
181552008-07-25 Jason Rumney <jasonr@gnu.org>
18156
18157 * w32font.c (Fx_select_font): Reverse sense of second arg.
18158
181592008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18160
18161 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18162 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18163
18164 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18165 (PURESIZE): Use it.
18166
181672008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18168
18169 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18170 * m/alpha.h (TEXT_END):
18171 * m/ibmrs6000.h (TEXT_END):
18172 * m/macppc.h (TEXT_END):
18173 * s/darwin.h (TEXT_END):
18174 * s/msdos.h (TEXT_END): Remove, unused.
18175 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18176 * s/cygwin.h: Remove comment.
18177
18178 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18179 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18180 * m/intel386.h (DOT_GLOBAL_START):
18181 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18182 (USG): Remove, file not used on USG platforms.
18183
18184 * Makefile.in (HAVE_X11): Remove empty #else.
18185
181862008-07-24 Andreas Schwab <schwab@suse.de>
18187
18188 * fileio.c (Finsert_file_contents): Properly adjust undo list
18189 after format conversion.
18190
181912008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18192
18193 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18194 (menu_nav_ended): Remove.
18195 (create_menus): Remove signal connect for menu_nav_ended.
18196 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18197 create_menus.
18198 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18199
182002008-07-23 Jason Rumney <jasonr@gnu.org>
18201
18202 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18203 with opened font.
18204 (w32font_open): Set font type to gdi.
18205
18206 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18207
182082008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18209
18210 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18211 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18212 defines it.
18213 * unexec.c (ADDR_CORRECT): Define unconditionally.
18214
18215 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18216
18217 * unexec.c: Remove code depending on !COFF and USG, the file is
18218 not used for such systems.
18219
18220 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18221 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18222 (LD_SWITCH_SYSTEM_1): Remove, update users.
18223
18224 * s/darwin.h (DATA_END):
18225 * m/intel386.h (DATA_END):
18226 * m/ibmrs6000.h (DATA_END):
18227 * m/alpha.h (DATA_END): Remove, unused.
18228
18229 * config.in: Regenerate.
18230 * s/ms-w32.h (subprocesses): Define unconditionally.
18231 * s/template.h (subprocesses): Update comment.
18232 * s/vms.h (subprocesses):
18233 * s/usg5-4.h (subprocesses):
18234 * s/hpux10-20.h (subprocesses):
18235 * s/gnu-linux.h (subprocesses):
18236 * s/cygwin.h (subprocesses):
18237 * s/bsd-common.h (subprocesses):
18238 * s/aix4-2.h (subprocesses):
18239 * s/darwin.h (subprocesses): Do not define, defined by default now.
18240
18241 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18242 Remove all references.
18243 (temacs): Add GNUstep specific ld flags.
18244
18245 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18246 similarly to what X does.
18247
182482008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18249
18250 * nsfns.m (x-list-fonts): Remove.
18251 (syms_of_nsfns): Drop the x-list-fonts declaration.
18252 * nsterm.m: Get rid of remaining "//" comments.
18253
182542008-07-22 Chong Yidong <cyd@stupidchicken.com>
18255
18256 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18257
18258 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18259 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18260 (Fns_own_selection_internal, Fx_disown_selection_internal)
18261 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18262
18263 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18264 ... */' style of docstrings. Doc fixes.
18265
182662008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18267
18268 * terminfo.c (UP, BC, PC): Undo previous change.
18269
18270 * nsfns.m: Rename ns prefixed functions/variables to the
18271 corresponding x versions. Update references.
18272
182732008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18274
18275 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18276
182772008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18278
18279 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18280 Remove forwarding functions.
18281 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18282 non-static.
18283 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18284 non-static.
18285 (ns_frame_parm_handlers): Use the new names.
18286 (syms_of_nsfns): Move to the end of file.
18287
18288 * nsterm.m (syms_of_nsterm): Move to the end of file.
18289
18290 * dispnew.c (init_display): Remove code for X10.
18291
182922008-07-22 Jason Rumney <jasonr@gnu.org>
18293
18294 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18295 bare drive.
18296
182972008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18298
18299 * nsterm.m (syms_of_nsterm): Remove debugging println.
18300
183012008-07-22 David Reitter <david.reitter@gmail.com>
18302
18303 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18304 Carbon implementation of the same functionality: execute arbitrary
18305 AppleScript code.
18306
183072008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18308
18309 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18310 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18311 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18312 (Fx_display_mm_height, Fx_display_mm_width)
18313 (Fx_display_backing_store, Fx_display_visual_class)
18314 (Fx_display_save_under, Fx_open_connection)
18315 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18316 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18317 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18318 (Fx_display_pixel_width, Fx_display_pixel_height)
18319 (Fx_display_usable_bounds, Fx_display_planes)
18320 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18321 ... */' style of docstrings.
18322
183232008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18324
18325 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18326 on this platform.
18327 (mips):
18328 * m/iris4d.h (mips): Do not define.
18329 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18330
18331 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18332
18333 * image.c:
18334 * nsfns.m:
18335 * nsselect.m:
18336 * nsterm.h:
18337 * nsterm.m: Rename ns prefixed functions/variables to the
18338 corresponding x versions. Update references.
18339
18340 * m/ibms390x.h (NO_REMAP): Do not undefine.
18341
18342 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18343
183442008-07-21 Chong Yidong <cyd@stupidchicken.com>
18345
18346 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18347 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18348 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18349 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18350 (Fns_display_mm_height, Fns_display_mm_width)
18351 (Fns_display_backing_store, Fns_display_visual_class)
18352 (Fns_display_save_under, Fns_open_connection)
18353 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18354 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18355 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18356 (Fns_display_pixel_width, Fns_display_pixel_height)
18357 (Fns_display_usable_bounds, Fx_display_planes)
18358 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18359
183602008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18361
18362 * print.c (print_object): Check print_depth before searching for
18363 circularities.
18364
183652008-07-21 Michael Albinus <michael.albinus@gmx.de>
18366
18367 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18368 only sprintf.
18369
183702008-07-21 Kenichi Handa <handa@m17n.org>
18371
18372 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18373
183742008-07-20 Andreas Schwab <schwab@suse.de>
18375
18376 * syntax.c (find_start_pos, find_start_value)
18377 (find_start_value_byte, find_start_begv, find_defun_start)
18378 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18379
183802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18381
18382 * s/sol2-3.h: Insert contents of s/sol2.h.
18383 (LD_SWITCH_SYSTEM): Remove redundant definition.
18384 * s/sol2.h: Remove, unused.
18385
183862008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18387
18388 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18389
183902008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18391
18392 * Makefile.in (ns_appdir): Fix typo in find command.
18393
183942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18395
18396 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18397
18398 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18399 added not supported anymore.
18400
18401 * s/usg5-4-2.h (LIBS_SYSTEM):
18402 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18403
18404 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18405 * s/lynxos.h (GETPGRP_NO_ARG):
18406 * s/hpux10-20.h (NO_SIOCTL_H):
18407 * s/gnu.h (GETPGRP_NO_ARG):
18408 * s/gnu-linux.h (NO_SIOCTL_H):
18409 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18410 * s/cygwin.h (GETPGRP_NO_ARG):
18411 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18412 (C_DEBUG_SWITCH): Remove duplicate definition.
18413
18414 * m/ibms390.h: Remove boilerplate comments.
18415
18416 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18417
18418 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18419 (wait_reading_process_output): Remove code for SunOS, platform not
18420 supported anymore. Use SOLARIS2 instead of sun.
18421
184222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18423
18424 * font.c (font_open_by_name): Under NS, default lface height to zero.
18425 (font_open_for_lface): Under NS, set size based on frame fontsize.
18426 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18427 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18428
184292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18430
18431 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18432 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18433 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18434 YES/NO.
18435 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18436 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18437 * Makefile.in (clean): Clear out build destination dir.
18438
184392008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18440
18441 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18442 xterm, xselect.
18443 * lisp.h: Remove declaration of hash_remove.
18444 * nsgui.h: Remove redefinitions of hash_remove.
18445 * fns.c (hash_remove): Rename to hash_remove_from_table.
18446
184472008-07-19 Seiji Zenitani <zenitani@mac.com>
18448
18449 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18450 strdup() the family UTF8String before modifying it.
18451
184522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18453
18454 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18455 NS_FACE_BACKGROUND with 0 instead of nil.
18456 * nsfont.m (nsfont_draw): Same.
18457
184582008-07-19 Chong Yidong <cyd@stupidchicken.com>
18459
18460 * nsfns.m (ns_set_background_color): Fix crash.
18461
184622008-07-18 Chong Yidong <cyd@stupidchicken.com>
18463
18464 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18465
184662008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18467
18468 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18469
184702008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18471
18472 * gtkutil.c: Include <config.h> instead of "config.h".
18473
18474 * lisp.h (Foverlay_buffer): Add EXFUN.
18475
18476 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18477 child process to complete child_setup. Undo 2005-09-21 change.
18478
18479 * s/darwin.h: Mention setsid after vfork.
18480
184812008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18482
18483 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18484 Depend on macgui.h.
18485
18486 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18487 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18488
18489 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18490 and f19.
18491 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18492
18493 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18494 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18495 Remove enumerators.
18496
18497 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18498 Check if FACE_FROM_ID returns NULL.
18499
185002008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18501
18502 * w32inevt.c (change_frame_size): Remove extern declaration.
18503 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18504 change_frame_size.
18505
185062008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18507
18508 * getloadavg.c: Revert last change (2008-07-15).
18509
185102008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18511
18512 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18513 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18514 from configure.
18515
185162008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18517
18518 * s/sol2.h:
18519 * s/sol2-4.h: Reorganize conditionals.
18520
18521 * ecrt0.c: Remove code depending on m68000, not used anymore.
18522
18523 * fns.c (hash_remove): Make static.
18524 * lisp.h (hash_remove): Don't prototype.
18525
18526 * m/ibmrs6000.h:
18527 * m/ibms390x.h:
18528 * m/macppc.h: Remove boilerplate comments.
18529
18530 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18531 Solaris, which does not need them.
18532
18533 * m/vax.h: Remove comments about unsupported systems.
18534
18535 * s/darwin.h: Reorganize ifdefs.
18536
185372008-07-17 Andreas Schwab <schwab@suse.de>
18538
18539 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18540
185412008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18542
18543 Use SDATA. Follow coding convention of placing operators at
18544 beginning of next line rather than end of previous line, and placing
18545 spaces around infix operators.
18546
18547 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18548 in case it was defined already.
18549 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18550 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18551 ns_default.
18552 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18553 Lisp_Objects.
18554 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18555 (ns_defined_color, ns_color_to_lisp): Declare.
18556 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18557 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18558 it's accepted even with USE_LISP_UNION_TYPE.
18559 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18560 (update_frame_tool_bar): Remove apparently obsolete tests for
18561 non-integerness of f->tool_bar_lines.
18562 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18563 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18564 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18565 (nsfont_open): Don't confuse NULL for Qnil.
18566 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18567 * menu.h (find_and_call_menu_selection):
18568 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18569 (find_and_return_menu_selection): Always return something.
18570 * frame.h: Include dispextern.h for Display_Info.
18571 (display_x_get_resource): Declare.
18572
185732008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18574
18575 * syntax.c: Remove stdio.h include accidentally introduced in
18576 Emacs.app commit.
18577 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18578 NS_IMPL_COCOA.
18579 * keyboard.c (handle_async_input, input_available_signal): Remove
18580 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18581
185822008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18583
18584 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18585 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18586 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18587 Use SDATA.
18588
18589 * keymap.c: Remove all NS-specific code.
18590 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18591 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18592 where_is_preferred_modifier, return a different value depending on how
18593 preferred is the binding.
18594 (where_is_internal): Adjust accordingly.
18595 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18596 Adjust to new preferred_sequence_p.
18597 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18598 * keyboard.c (parse_solitary_modifier): Not static any more.
18599 * keyboard.h (parse_solitary_modifier): Declare.
18600
186012008-07-16 Andreas Schwab <schwab@suse.de>
18602
18603 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18604 of easymenu.
18605
186062008-07-16 Chong Yidong <cyd@stupidchicken.com>
18607
18608 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18609 that we don't move off the line.
18610
186112008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18612
18613 * keyboard.c (Qsuper): Remove.
18614 (parse_menu_item): Don't call where_is_internal specially for NS.
18615
186162008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18617
18618 * s/gnu-linux.h: Remove boilerplate comments.
18619
18620 * m/alpha.h (__ELF__): Consolidate conditions.
18621
18622 * m/m68k.h (linux): Use GNU_LINUX instead.
18623 Remove boilerplate comments.
18624
18625 * m/intel386.h: Undo refactoring from previous change.
18626 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18627 too, remove dead code.
18628 (linux): Use GNU_LINUX instead.
18629
186302008-07-16 Jason Rumney <jasonr@gnu.org>
18631
18632 * w32gui.h: Repeat 26 June changes lost by last change.
18633
186342008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18635
18636 * systty.h: Remove code for Aix on 386, unsupported platform.
18637
18638 * s/ms-w32.h: Remove boilerplate comments.
18639 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18640
18641 * s/gnu-linux.h (TERM): Remove support.
18642 (HAVE_SYSVIPC): Remove, unused.
18643 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18644 for this system.
18645
18646 * process.c: Remove support for IRIS, unused.
18647 Remove support for TERM, not relevant anymore.
18648
18649 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18650 used with the definition.
18651
18652 * s/aix4-2.h (static): Do not undef.
18653
18654 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18655 only used on Aix.
18656 (HAVE_SYSVIPC): Remove, unused.
18657
18658 * m/hp800.h (CANNOT_DUMP): Do not undef.
18659
18660 * m/alpha.h: Fix comment.
18661
18662 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18663 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18664 used by this configuration.
18665 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18666 * unexec.c: Remove code depending on HPUX and
18667 USG_SHARED_LIBRARIES, not used with this file. Remove code
18668 depending on IRIS, unused. Remove if 0-ed code.
18669
18670 * s/template.h: Remove comments about static.
18671
18672 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18673 Remove if 0-ed code.
18674 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18675 were the same as the default.
18676 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18677 Remove boilerplate comments.
18678 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18679 (HAVE_SYSVIPC): Remove, unused.
18680 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18681
18682 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18683 Remove boilerplate comments.
18684 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18685 Remove boilerplate comments.
18686 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18687 Remove boilerplate comments.
18688 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18689
18690 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18691 USG systems which do not use DATA_SEG_BITS.
18692 Refactor code. Remove boilerplate comments.
18693
18694 * m/ibms390.h:
18695 * m/m68k.h:
18696 * s/bsd-common.h:
18697 * s/cygwin.h:
18698 * s/darwin.h:
18699 * s/freebsd.h:
18700 * s/gnu.h:
18701 * s/msdos.h: Remove boilerplate comments.
18702
18703 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 18704 do not use this file.
aac0c6e3
MR
18705 (IRIS_4D): Remove, unused.
18706
18707 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 18708 do not use this file.
aac0c6e3
MR
18709 (SIGN_EXTEND_CHAR):
18710 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18711 * unexmips.c: Remove file, unused.
18712
18713 * editfns.c (Fuser_full_name): Replace the only use of
18714 USER_FULL_NAME with its value.
18715 * config.in: Regenerate.
18716
187172008-07-16 David Reitter <david.reitter@gmail.com>
18718
18719 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18720 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18721
187222008-07-16 Glenn Morris <rgm@gnu.org>
18723
18724 * emacs.c (system-type): Doc fix.
18725
187262008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18727
18728 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18729 If the cache doesn't work, let's fix it, rather than work around it.
18730
187312008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18732
18733 * Makefile.in: Correct additions for nsfont.o in last commit.
18734 * nsfont.m: New file (forgot last commit).
18735
187362008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18737
bba3e508
SM
18738 * callproc.c (set_initial_environment):
18739 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
18740 batch-compiling for bootstrap).
18741
187422008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 18743 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 18744
c4cc8b9a
JB
18745 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18746 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
18747
187482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18749
18750 Changes and additions for NeXTstep windowing system (Cocoa and
18751 GNUstep) support.
18752
18753 * Makefile.in:
18754 * config.in: Support defines and build commands for NS port.
18755 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18756 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18757 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18758 windowing.
18759 (struct face): Add synth_ital field.
18760 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18761 (init_display): Initialize Vinitial_window_system to "ns" when so
18762 compiled.
18763 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18764 (display_arg): Use under NS.
18765 (main): Under NS, allocate autorelease pool and handle command line
18766 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18767 (standard_args): Add NS-specific args.
18768 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18769 * font.c (DEFAULT_ENCODING): New variable.
18770 (font_find_for_lface): Use it.
18771 (syms_of_font): Load syms_of_nsfont under NS.
18772 * font.h: Declare nsfont_driver when compiled under NS.
18773 * fontset.c: When compiling under NS, include nsterm.h.
18774 (fontset_from_font): Autoconstruct fontset under NS.
18775 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18776 symbol, document and use it.
18777 (do_switch_frame): When for_deletion under Cocoa, add
18778 Fraise_frame(Qnil).
18779 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18780 (x_get_arg): Allow "yes" and "no" as boolean values.
18781 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18782 Qright under Cocoa.
18783 (focus-follows-mouse): Default to 0 under NS.
18784 * frame.h (enum output_method): Add output_ns.
18785 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18786 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18787 (FRAME_WINDOW_P): NS-specific definition.
18788 * fringe.c (max_used_fringe_bitmap): Make public.
18789 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18790 (getloadavg): Use NeXT code under descendant OS's.
18791 * image.c (includes and header section, x_create_bitmap_from_data)
18792 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18793 (image_background_transparent, x_clear_image_1)
18794 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18795 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18796 (x_to_xcolors, x_from_xcolors, x_disable_image)
18797 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18798 other GUIs, including XPM support using code originally written for
18799 Carbon GUI.
18800 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18801 using NS API.
18802 (image_ascent): Use font metrics macros instead of direct struct field
18803 access.
18804 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18805 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18806 Also, handle NS as GTK for menu bar purposes.
18807 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18808 toolkit where they differ.
18809 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18810 use cachelist, still needed under NS.
18811 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18812 (struct widget_value): Define it here for menu.c.
18813 * keymap.c (includes): Include modifier internals.
18814 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18815 NS.
18816 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18817 support for preferring sequences using certain modifiers, specified by
18818 the FIRSTONLY argument.
18819 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18820 under NS GNUstep implementation.
18821 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18822 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18823 * menu.c: Include nsterm.h under NS.
18824 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18825 (free_menubar_widget_tree_value, update_submenu_strings)
18826 (find_and_call_menu_selection): Treat NS as X and NT.
18827 (find_and_return_menu_selection): New function, used for popup menus.
18828 * nsgui.h:
18829 * nsterm.h:
18830 * nsfns.m:
18831 * nsimage.m:
18832 * nsmenu.m:
18833 * nsselect.m:
18834 * nsterm.m: New files.
18835 * process.c (wait_reading_process_output): Under NS, call ns_select()
18836 instead of plain select().
18837 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18838 beginning of buffer.
18839 * sysselect.h (init_process): Rename when compiling under Cocoa to
18840 avoid name conflict.
18841 * termhooks.h (display_info): Add ns_display_info to union.
18842 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18843 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18844 COCOA environment.
18845 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18846 unexec() signature. (Note, this will dump, but the resulting file
18847 crashes; unexosx is used instead; keeping around for reference and
18848 possible aid in getting dump working under GNUstep.)
18849 * w32gui.h (button_type, widget_value): Remove definitions (now in
18850 keyboard.h).
18851 * window.c: Include nsterm.h when compiling under NS.
18852 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18853 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18854 other GUI windowing systems.
18855 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18856 GTK.
18857 (x_consider_frame_title): Under NS, set icon type and frame
18858 modified-state indicator; use ns_set_name_as_filename() when using
18859 formatted title.
18860 (update_window_cursor): Make public when compiling under NS.
18861 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18862 (hourglass_atimer, Vhourglass_delay
18863 * xfaces.c (header section, init_frame_faces, clear_font_table)
18864 (defined_color, unload_color, x_face_list_fonts)
18865 (prepare_face_for_display): Add NS support parallel to other GUIs.
18866 Emulate GCs like other non-X GUIs.
18867 (split_font_name): Don't lowercase font name under NS.
18868 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18869 under NS.
18870 * s/darwin.h: Add support for compilation under NS.
18871
188722008-07-15 Jason Rumney <jasonr@gnu.org>
18873
18874 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18875 (w32_show_hourglass): Rename from show_hourglass.
18876 (w32_hide_hourglass): Rename from hide_hourglass.
18877 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18878 (Vhourglass_delay): Declare extern.
18879 (hourglass_started): Remove.
18880
18881 * xdisp.c (Vhourglass_delay): Remove static.
18882 (hourglass_started, start_hourglass, cancel_hourglass):
18883 Don't include these versions on WINDOWSNT.
18884
188852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18886
18887 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18888 variables (formerly in xfns.c).
18889 (show_hourglass, hide_hourglass): New prototypes (same).
18890 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18891 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18892 in xfns.c).
18893 (syms_of_xdisp): Declare/initialize display-hourglass,
18894 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18895 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18896 formerly in xfns.c.
18897 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18898 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18899 (start_hourglass, cancel_hourglass): Remove.
18900 (show_hourglass, hide_hourglass): Remove prototypes and static
18901 modifiers.
18902 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18903 hourglass_atimer, hourglass_shown_p declaration/initialization.
18904 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18905 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18906 (start_hourglass, cancel_hourglass): Remove.
18907 (show_hourglass, hide_hourglass): Remove prototypes and static
18908 modifiers.
18909 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18910 hourglass_atimer, hourglass_shown_p declaration/initialization.
18911 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18912 (DEFAULT_HOURGLASS_DELAY): Remove.
18913 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18914 hourglass_shown_p declaration/initialization.
18915
189162008-07-14 Jason Rumney <jasonr@gnu.org>
18917
18918 * w32fns.c (w32_get_arg): Remove wrapper function.
18919 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18920 directly.
18921 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18922
189232008-07-14 Kenichi Handa <handa@m17n.org>
18924
18925 * xfont.c (xfont_open): Add workaround for X's bug.
18926
189272008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18928
18929 * fontset.c: Include <stdio.h> unconditionally.
18930
189312008-07-13 Michael Albinus <michael.albinus@gmx.de>
18932
18933 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18934 for filtering.
18935
189362008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18937
18938 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18939
18940 * m/macppc.h:
18941 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18942
c4cc8b9a 18943 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
18944 (SPECIAL_EMACS_INT):
18945 * m/ia64.h (SPECIAL_EMACS_INT):
18946 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18947 * s/gnu.h (NLIST_STRUCT):
18948 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18949 * s/gnu-linux.h (LINUX):
18950 * s/msdos.h (HAVE_FACES):
18951 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18952
18953 * systty.h:
18954 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18955 anymore.
18956
189572008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18958
18959 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18960 always defined as int.
18961
18962 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18963 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18964 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18965 * s/freebsd.h (HAVE_WAIT_HEADER):
18966 * s/bsd-common.h (HAVE_UNION_WAIT):
18967 * s/aix4-2.h (HAVE_WAIT_HEADER):
18968 * m/mips.h (HAVE_UNION_WAIT):
18969 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18970 (COFF, static): Do not define, they are undefined later in the file.
18971
18972 * process.c (update_status): Don't use a union.
18973 (status_convert):
18974 (sigchld_handler): Use int instead of WAITTYPE.
18975
189762008-07-12 Chong Yidong <cyd@stupidchicken.com>
18977
18978 * indent.c (Fvertical_motion): Restore hscroll before moving to
18979 goal column.
18980
189812008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18982
18983 * lisp.h: Remove left over code.
18984
189852008-07-11 Andreas Schwab <schwab@suse.de>
18986
18987 * lisp.h: Fix logic in last change.
18988
18989 * menu.h: New file.
18990 * menu.c: Include it.
18991 * xmenu.c: Likewise.
18992 * Makefile.in: Update dependencies.
18993
189942008-07-11 Kenichi Handa <handa@m17n.org>
18995
18996 * fontset.c (fontset_from_font): Cancel the previous change.
18997
189982008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18999
19000 * lisp.h:
19001 * w32heap.c:
19002 * emacs.c:
19003 * alloc.c: Replace all references of NO_UNION_TYPE with
19004 USE_LISP_UNION_TYPE.
19005
19006 * m/xtensa.h (NO_UNION_TYPE):
19007 * m/vax.h (NO_UNION_TYPE):
19008 * m/template.h (NO_UNION_TYPE):
19009 * m/sparc.h (NO_UNION_TYPE):
19010 * m/mips.h (NO_UNION_TYPE):
19011 * m/macppc.h (NO_UNION_TYPE):
19012 * m/m68k.h (NO_UNION_TYPE):
19013 * m/iris4d.h (NO_UNION_TYPE):
19014 * m/intel386.h (NO_UNION_TYPE):
19015 * m/ibms390x.h (NO_UNION_TYPE):
19016 * m/ibms390.h (NO_UNION_TYPE):
19017 * m/ibmrs6000.h (NO_UNION_TYPE):
19018 * m/ia64.h (NO_UNION_TYPE):
19019 * m/hp800.h (NO_UNION_TYPE):
19020 * m/arm.h (NO_UNION_TYPE):
19021 * m/amdx86-64.h (NO_UNION_TYPE):
19022 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19023 defining it the same.
19024
190252008-07-10 Chong Yidong <cyd@stupidchicken.com>
19026
19027 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19028
190292008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19030
19031 * fileio.c:
50426a04 19032 * sysdep.c:
aac0c6e3
MR
19033 * systty.h:
19034 * m/ibmrs6000.h:
19035 * m/iris4d.h:
19036 * s/aix4-2.h:
19037 * s/freebsd.h:
19038 * s/gnu-linux.h:
19039 * s/hpux10-20.h:
19040 * s/hpux11.h:
19041 * s/netbsd.h:
19042 * s/sol2-3.h:
19043 * s/sol2-4.h:
19044 * s/sol2.h:
19045 * s/usg5-4.h:
19046 * s/vms.h: Remove references to unused variables.
19047
190482008-07-10 Andreas Schwab <schwab@suse.de>
19049
19050 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19051 pattern before matching the generic family.
19052
190532008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19054
19055 * unexec.c:
19056 * s/vms.h:
19057 * s/usg5-4-2.h:
19058 * s/sol2-5.h:
19059 * s/freebsd.h:
19060 * s/darwin.h: Remove dead code.
19061
19062 * m/template.h:
19063 * m/sparc.h:
19064 * m/mips.h:
19065 * m/m68k.h:
19066 * m/iris4d.h:
19067 * m/intel386.h:
19068 * m/ibms390x.h:
19069 * m/ibms390.h:
19070 * m/ia64.h:
19071 * m/hp800.h:
19072 * m/arm.h:
19073 * m/amdx86-64.h: Remove dead code and references to unused
19074 and compiler defined symbols.
19075
19076 * unexmips.c:
19077 * unexelf.c: Remove references to desupported systems.
19078
19079 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19080
19081 * m/powermac.h: Remove boilerplate comments.
19082 (NO_REMAP): Remove unused definition.
19083
19084 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19085 define them.
19086
190872008-07-10 Kenichi Handa <handa@m17n.org>
19088
19089 * xfont.c (xfont_open): Log the reason of failure.
19090
190912008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19092
19093 * fontset.c (fontset_get_font_group):
19094 * font.c (font_check_otf): Specify argument types.
19095
190962008-07-09 Kenichi Handa <handa@m17n.org>
19097
19098 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19099 non-ASCII char is found.
19100
19101 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19102 (reorder_font_vector): Change the arg preferred_family to font.
19103 Prefer the spec matching with font.
19104 (fontset_get_font_group): New function.
19105 (fontset_find_font): Change the format of an element of a realized
19106 fontset. Use fontset_get_font_group.
19107 (fontset_font): Try the current fontset, the default fontset, the
19108 fallbacks of the current fontset, and the fallbacks of the default
19109 fontset in this order.
19110 (face_for_char): Delete the shortcut to use the current font.
19111 (fontset_from_font): Don't set fonts for Latin in the fontset.
19112
19113 * font.h (font_make_object, font_match_p): Adjust prototypes.
19114
19115 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19116
19117 * font.c (font_make_object): New arg entity and pixelsize.
19118 (font_check_otf_features, font_check_otf): New functions.
19119 (font_match_p): Check :lang, :script, and :otf properties.
19120
19121 * xfont.c (xfont_open): Adjust it for the change of
19122 font_make_object.
19123 (xfont_text_extents): Fix initial setting of metrics.
19124
19125 * ftfont.c (struct ftfont_info): New member index, delete member
19126 fc_charset_idx. Make the member order compatible with struct
19127 xftfont_info.
19128 (fc_charset_table): Change charset names to registry names.
19129 (ftfont_pattern_entity): Delete the args registry and
19130 fc_charset_idx. Change the value of :font-entity property
19131 to (FONTNAME . INDEX). Always set :registry property to
19132 `iso10646-1'.
19133 (struct ftfont_cache_data): New struct.
19134 (ftfont_lookup_cache): New arg for_face.
19135 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19136 (ftfont_driver): Set the member otf_capability.
19137 (ftfont_get_charset): Adjust it for the change of
19138 fc_charset_table.
19139 (OTF_TAG_SYM): New macro.
19140 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19141 for the change of fc_charset_table.
19142 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19143 ftfont_pattern_entity. Add FC_INDEX to objset.
19144 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19145 and ftfont_pattern_entity.
19146 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19147 font_make_object, struct ftfont_info.
19148 (ftfont_has_char): Use ftfont_get_fc_charset.
19149 (ftfont_otf_features, ftfont_otf_capability): New functions.
19150 (ftfont_shape): Use ftfont_get_otf.
19151 (ftfont_text_extents): Fix initial setting of metrics.
19152
19153 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19154 member order compatible with struct ftfont_info.
bba3e508
SM
19155 (xftfont_open): Add FC_CHARSET to the pattern.
19156 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
19157 properties if appropriate.
19158 (xftfont_close): Unlock the face.
19159 (xftfont_anchor_point, xftfont_shape): Deleted.
19160 (syms_of_xftfont): Don't set members anchor_point and shape of
19161 xftfont_driver.
19162
19163 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19164 font_make_object.
19165
19166 * w32font.c (w32font_open): Adjust it for the change of
19167 font_make_object.
19168 (w32font_open_internal): Don't set properties of font_object here.
19169
191702008-07-08 Chong Yidong <cyd@stupidchicken.com>
19171
19172 * macfns.c (x_create_tip_frame):
19173 * w32fns.c (x_create_tip_frame):
19174 * xfns.c (x_create_tip_frame): Pass parameter argument to
19175 face-set-after-frame-default.
19176
19177 * xfaces.c (Finternal_merge_in_global_face): Save merged
19178 attributes for the default face back into the face vector.
19179
191802008-07-08 Andreas Schwab <schwab@suse.de>
19181
19182 * fontset.h: Declare fontset_from_font. Don't declare
19183 new_fontset_from_font and fontset_from_font_name.
19184 * xterm.c: Include "fontset.h".
19185 * Makefile.in (xterm.o): Update dependencies.
19186
191872008-07-08 Glenn Morris <rgm@gnu.org>
19188
19189 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19190 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19191
191922008-07-07 Chong Yidong <cyd@stupidchicken.com>
19193
19194 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19195 (x_set_frame_parameters): Don't bind it.
19196
191972008-07-07 Juanma Barranquero <lekktu@gmail.com>
19198
19199 * w32fns.c (map_w32_filename): Declare extern.
19200
192012008-07-07 Jason Rumney <jasonr@gnu.org>
19202
19203 * w32term.c (WS_EX_LAYERED): Define if not already.
19204
192052008-07-06 Chong Yidong <cyd@stupidchicken.com>
19206
19207 * xfaces.c (set_font_frame_param): Don't try to set the font
19208 parameter if it is still unspecified in the lface.
19209
192102008-07-05 Chong Yidong <cyd@stupidchicken.com>
19211
19212 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19213 face if it didn't already exist.
19214
19215 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19216
192172008-07-05 Andreas Schwab <schwab@suse.de>
19218
19219 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19220
192212008-07-05 Chong Yidong <cyd@stupidchicken.com>
19222
19223 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19224 word-wrapping.
19225 (IT_DISPLAYING_WHITESPACE): New macro.
19226 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19227 when word-wrapping. Simplify word-wrapping logic. Use correct
19228 pixel positions when saving copies of the iterator.
19229 (display_line): Use proper wrap point if the last character on a
19230 line was preceded by whitespace.
19231
192322008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19233
19234 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19235
192362008-07-04 Kenichi Handa <handa@m17n.org>
19237
19238 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19239
19240 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19241
192422008-07-02 Jason Rumney <jasonr@gnu.org>
19243
19244 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19245 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19246
19247 * xdisp.c (next_element_from_display_vector): Move assignment out
19248 of if statement.
19249
192502008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19251
19252 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19253
19254 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19255 (syms_of_fileio): Initialize and export them.
19256 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19257
19258 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19259 (Fsystem_move_file_to_trash): New function.
19260 (syms_of_w32fns): Export it to lisp.
19261
192622008-07-01 Jason Rumney <jasonr@gnu.org>
19263
19264 * w32font.c (w32font_text_extents): Don't count overhang as part
19265 of width.
19266
192672008-06-30 Miles Bader <miles@gnu.org>
19268
19269 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19270 Add `avoid_cursor_p' field.
19271
19272 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19273 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19274 (append_glyph, append_composite_glyph, produce_image_glyph)
19275 (append_stretch_glyph): Initialize avoid_cursor_p.
19276 (get_it_property): Rename from `get_line_height_property'.
19277 (x_produce_glyphs): Use get_it_property.
19278 (handle_line_prefix, push_display_prop): New functions.
19279 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19280 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19281 New variables.
19282 (syms_of_xdisp): Initialize them.
19283
192842008-06-30 Kenichi Handa <handa@m17n.org>
19285
19286 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19287 XftDefaultSubstitute (they are called in XftFontMatch).
19288 (xftfont_open): Fix args to ftfont_font_format.
19289
19290 * ftfont.c (fc_charset_table): New member lang.
19291 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19292 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19293 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19294 (ftfont_open): Fix args to ftfont_font_format.
19295 (ftfont_font_format): New arg filename.
19296
192972008-06-30 Chong Yidong <cyd@stupidchicken.com>
19298
19299 * xfaces.c (Finternal_merge_in_global_face): If default face was
19300 modified, realize it again. Update the font face attribute.
19301
193022008-06-29 Jason Rumney <jasonr@gnu.org>
19303
19304 * w32term.c (x_set_frame_alpha): Fix logic.
19305
193062008-06-29 Kenichi Handa <handa@m17n.org>
19307
19308 * fontset.c (Finternal_char_font): Return font-object instead of
19309 font-name.
19310
19311 * composite.c (get_composition_id): Fix the width calculation for TAB.
19312
193132008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19314
19315 * indent.c (Fvertical_motion): Properly handle float column arg.
19316
193172008-06-28 Jason Rumney <jasonr@gnu.org>
19318
19319 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19320 (pfnSetLayeredWindowAttributes): New function pointer.
19321 (w32_initialize): Initialize it when supported.
19322 (x_set_frame_alpha): New function.
19323
19324 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19325 (w32_frame_parm_handlers): Set alpha handler.
19326
19327 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19328
193292008-06-27 Jason Rumney <jasonr@gnu.org>
19330
19331 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19332 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19333 (w32_to_x_charset, x_to_w32_charset)
19334 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19335 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19336 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19337 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19338 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19339 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19340 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19341 (Qw32_charset_unicode): Remove.
19342 (syms_of_w32fns): Update for above changes.
19343
19344 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19345 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19346 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19347 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19348 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19349 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19350 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19351 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19352 (syms_of_w32font): Update for above changes.
19353
193542008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19355
19356 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19357 removed #if.
19358 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19359
193602008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19361 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19362
19363 * makefile.w32-in (LOCAL_FLAGS):
19364 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19365
19366 * sysdep.c (_spawnlp, _getpid):
19367 Declare with explicit _cdecl instead of _CRTAPI1.
19368
19369 * editfns.c (Fget_internal_run_time):
19370 Check for WINDOWSNT with #ifdef, not #if.
19371
193722008-06-26 Jason Rumney <jasonr@gnu.org>
19373
19374 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19375
19376 * w32term.c (x_draw_glyph_string_foreground)
19377 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19378 Use FONT_HANDLE macro.
19379 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19380
19381 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19382 (uniscribe_encode_char): Use FONT_HANDLE macro.
19383
19384 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19385 (w32font_text_extents): Use precast w32_font.
19386 (w32font_close): Free cached metrics.
19387 (w32font_open_internal): Allocate space for name on stack.
19388
193892008-06-26 Chong Yidong <cyd@stupidchicken.com>
19390
19391 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19392
193932008-06-26 Jason Rumney <jasonr@gnu.org>
19394
19395 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19396 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19397
193982008-06-26 Juanma Barranquero <lekktu@gmail.com>
19399
19400 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19401
194022008-06-26 Jason Rumney <jasonr@gnu.org>
19403
19404 * w32bdf.c, w32bdf.h: Remove obsolete files.
19405
19406 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19407
19408 * w32gui.h: Don't include w32bdf.h.
19409 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19410 Remove obsolete font support.
19411
19412 * w32font.h (struct w32font_info): Remove compat_w32_font.
19413 Add hfont member.
19414 (FONT_COMPAT): Remove obsolete macro.
19415
19416 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19417 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19418 (w32font_open_internal): Remove compat code. Set new hfont member.
19419 (Fx_select_font): Use new hfont member.
19420
19421 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19422 (uniscribe_encode_char): Use new hfont member.
19423
19424 * w32term.c (x_draw_glyph_string_foreground)
19425 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19426 (x_draw_glyph_string): Use metrics in w32font_info.
19427
194282008-06-26 Kenichi Handa <handa@m17n.org>
19429
19430 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19431
194322008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19433
19434 * unexnext.c:
19435 * m/ews4800.h:
19436 * m/hp9000s300.h:
19437 * m/ibm370aix.h:
19438 * m/mips-siemens.h:
19439 * m/ncr386.h:
19440 * m/next.h:
19441 * m/pmax.h:
19442 * m/powerpcle.h:
19443 * m/tandem-s2.h:
19444 * s/386bsd.h:
19445 * s/bsd386.h:
19446 * s/bsd4-1.h:
19447 * s/bsd4-2.h:
19448 * s/bsdos2-1.h:
19449 * s/bsdos2.h:
19450 * s/bsdos3.h:
19451 * s/bsdos4.h:
19452 * s/nextstep.h:
19453 * s/ultrix4-3.h:
19454 * s/usg5-0.h:
19455 * s/usg5-2-2.h:
19456 * s/usg5-2.h:
19457 * s/usg5-4-3.h:
19458 * s/ux4800.h:
19459 * s/uxpds.h:
19460 * s/uxpv.h: Remove support for obsolete systems.
19461 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19462 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19463 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19464 Remove, insert contents in s/aix4-2.h.
19465 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19466 * s/bsd4-3.h: Rename to ...
19467 * s/bsd-common.h: ... this.
19468 * data.c:
19469 * doc.c:
19470 * ecrt0.c:
19471 * emacs.c:
19472 * fileio.c:
19473 * floatfns.c:
19474 * keyboard.c:
19475 * mem-limits.h:
19476 * print.c:
19477 * process.c:
19478 * sysdep.c:
19479 * syssignal.h:
19480 * systty.h:
19481 * syswait.h:
19482 * term.c:
19483 * unexec.c:
19484 * unexelf.c:
19485 * unexhp9k800.c:
19486 * m/hp800.h:
19487 * m/ibmrs6000.h:
19488 * m/mips.h:
19489 * m/vax.h:
19490 * s/darwin.h:
19491 * s/freebsd.h:
19492 * s/gnu.h:
19493 * s/ms-w32.h:
19494 * s/msdos.h:
19495 * s/netbsd.h:
19496 * s/template.h: Remove references to obsolete variables.
19497
19498 * Makefile.in: Add dependencies for all unexec files.
19499 (admindir): Remove unused variable.
19500 (UNEXEC_SRC): Remove references.
19501
195022008-06-25 Chong Yidong <cyd@stupidchicken.com>
19503
19504 * xfns.c (x_default_font_parameter): If Xft is available, first
19505 try Monospace-12 for the default font.
19506
195072008-06-25 Jason Rumney <jasonr@gnu.org>
19508
19509 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19510
195112008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19512
19513 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19514
19515 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19516
195172008-06-25 Juanma Barranquero <lekktu@gmail.com>
19518
19519 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19520 <scroll-conservatively>: Fix typo in docstring.
19521
19522 * xselect.c (Fx_send_client_event): Doc fix.
19523
195242008-06-25 Kenichi Handa <handa@m17n.org>
19525
19526 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19527
19528 * font.c (font_parse_fcname): Remove unused variables.
19529 (font_sort_entites): Delete the arg SPEC. Caller changed.
19530 Fix for the case of ! best_only.
19531 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19532
19533 * lisp.h (Fstring_to_unibyte): EXFUN it.
19534
19535 * character.h (str_to_unibyte): Extern it.
19536
19537 * character.c (str_to_unibyte): New function.
19538
19539 * fns.c (Fstring_to_unibyte): New function.
19540 (syms_of_fns): Defsubr it.
19541
195422008-06-24 Kenichi Handa <handa@m17n.org>
19543
19544 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19545 DPI too.
19546 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19547
195482008-06-24 Andreas Schwab <schwab@suse.de>
19549
19550 * Makefile.in (${lispsource}loaddefs.el): Rename from
19551 ../lisp/loaddefs.el.
19552 (bootstrap-clean): Do what distclean does but don't remove
19553 Makefile.
19554 (distclean): Depend on bootstrap-clean and remove Makefile.
19555
195562008-06-24 Chong Yidong <cyd@stupidchicken.com>
19557
19558 * buffer.h (struct buffer): New member word_wrap.
19559
19560 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19561 word-wrap.
19562 (init_buffer_once): Initialize them.
19563
19564 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19565 line_wrap enum possessing three possible values.
19566
19567 * termopts.h: Replace truncate_partial_width_windows with
19568 Vtruncate_partial_width_windows.
19569
19570 * dispnew.c (direct_output_for_insert): Avoid direct output when
19571 inserting a space with word wrap on.
19572
19573 * indent.c (compute_motion): Obey integer values of
19574 truncate-partial-width-windows.
19575
19576 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19577 replacing truncate_partial_width_windows.
19578 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19579 truncate only if the window width is below that integer.
19580 (start_display, resize_mini_window, produce_stretch_glyph)
19581 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19582 (back_to_previous_visible_line_start, reseat_1):
19583 Reset string_from_display_prop_p.
aac0c6e3
MR
19584 (display_line): Extend default face to end of line when wrapping.
19585
195862008-06-24 Kim F. Storm <storm@cua.dk>
19587
19588 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19589 to wrap continued lines at word boundaries.
19590
195912008-06-24 Jason Rumney <jasonr@gnu.org>
19592
19593 * font.c (Ffont_face_attributes): Multiply pixel size before point
19594 conversion to avoid multiplying rounding error.
19595
195962008-06-23 Jason Rumney <jasonr@gnu.org>
19597
19598 * w32term.c (x_draw_glyph_string_background)
19599 (x_draw_glyph_string): Remove old bdf font code.
19600
19601 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19602
196032008-06-22 Kenichi Handa <handa@m17n.org>
19604
19605 * font.c (font_find_for_lface): Try the adstyle specified in
19606 the property of LFACE_FONT of LFACE (if any).
19607
196082008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19609 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19610
19611 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19612
196132008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19614
19615 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19616 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19617 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19618 (witness-emacs): Remove.
19619 (lisp, shortlisp): Move loaddefs.el earlier.
19620 (mostlyclean): Forget about witness-emacs.
19621
196222008-06-22 Glenn Morris <rgm@gnu.org>
19623
19624 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19625 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19626
196272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19628
19629 * Makefile.in (PRECOMP): Remove.
19630 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19631 (witness-emacs): Run `compile-first'.
19632 (.el.elc): Use the new compile-onefile target.
19633
196342008-06-21 Kenichi Handa <handa@m17n.org>
19635
19636 * xftfont.c (xftfont_open): Handle QCembolden only when
19637 FC_EMBOLDEN is defined.
19638
196392008-06-21 Andreas Schwab <schwab@suse.de>
19640
19641 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19642 (.el.elc): Likewise.
19643
196442008-06-21 Miles Bader <miles@gnu.org>
19645
19646 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19647 build dir, not the lisp source dir.
19648
196492008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19650
19651 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19652 (bootstrapclean): Remove.
19653 (.el.elc): New rule.
19654 (PRECOMP): New var.
19655 (../lisp/subdirs.el): Remove.
19656 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19657 (witness-emacs): New target.
19658 (mostlyclean): Remove witness-emacs as well.
19659 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19660 Add witness-emacs dependency.
19661
196622008-06-20 Chong Yidong <cyd@stupidchicken.com>
19663
19664 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19665 defined by the font.
19666
196672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19668
19669 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19670 (bootstrap-clean): New target that keeps TAGS around.
19671 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19672 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19673
196742008-06-20 Jason Rumney <jasonr@gnu.org>
19675
19676 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19677 Remove obsolete font code.
19678
19679 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19680 to determine language support.
19681
196822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19683
19684 * sysdep.c (cfsetspeed): New fun extracted from the code.
19685 (cfmakeraw): Move before first use.
19686
196872008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19688
19689 * sysdep.c (cfmakeraw): Provide fallback implementation.
19690 (serial_configure): Provide fallback implementation of cfsetspeed.
19691
196922008-06-20 Kenichi Handa <handa@m17n.org>
19693
19694 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19695 the pattern.
19696
19697 * fontset.c (fontset_from_font): Copy font_spec before changing
19698 the elements.
19699
19700 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19701
197022008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19703
19704 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19705 for explicit `font' parameters.
19706
19707 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19708
197092008-06-19 Kenichi Handa <handa@m17n.org>
19710
19711 * frame.c: Include <ctype.h>.
19712 (x_set_font_backend): Allow spacing characters in the X resource
19713 for FontBackend.
19714
197152008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19716
19717 * w32fns.c, xfns.c (Qfont_param): New var.
19718 (syms_of_w32fns): Initialize it.
19719 (x_default_font_parameter): Record explicit `font' into
19720 `font-parameter'.
19721
197222008-06-18 Kenichi Handa <handa@m17n.org>
19723
19724 * font.c (font_parse_xlfd): Fix previous change.
19725 (font_parse_fcname): Don't use :fc-unknown-spec.
19726 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19727 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19728 (font_add_log): Prepend the driver name to the resulting fonts.
19729
19730 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19731 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19732 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19733
19734 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19735 (QCembolden): New variables.
19736 (syms_of_xftfont): DEFSYM them.
19737 (xftfont_open): Call XftFontMatch. Don't trust the result of
19738 XftTextExtents8 if the pixel_size is less than 5.
19739
197402008-06-18 Andreas Schwab <schwab@suse.de>
19741
19742 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19743 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19744
197452008-06-18 Jason Rumney <jasonr@gnu.org>
19746
19747 * w32font.c (w32font_list, w32font_match): Add logging.
19748
19749 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19750
197512008-06-17 Chong Yidong <cyd@stupidchicken.com>
19752
19753 * font.c (font_parse_fcname): Store divider characters for
19754 unknown-spec list. For known key symbols, intern using correct
19755 symbol name.
19756
197572008-06-17 Kenichi Handa <handa@m17n.org>
19758
19759 * xfaces.c (realize_default_face): If the frame is not on window
19760 system, set the fontset of face to nil.
19761
197622008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19763
19764 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19765
197662008-06-16 Juanma Barranquero <lekktu@gmail.com>
19767
19768 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19769 (build_font_name_from_vector): Delete externs.
19770
19771 * xfaces.c (struct font_name): Don't declare.
19772
197732008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19774
19775 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19776
197772008-06-16 Chong Yidong <cyd@stupidchicken.com>
19778
19779 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19780
197812008-06-16 Juanma Barranquero <lekktu@gmail.com>
19782
19783 * font.c (Ffont_spec): Fix usage in docstring.
19784 (Ffont_face_attributes): Doc fix.
19785
197862008-06-16 Andreas Schwab <schwab@suse.de>
19787
19788 * font.c (Ffont_face_attributes): Fix definition.
19789
197902008-06-16 Jason Rumney <jasonr@gnu.org>
19791
19792 * font.h (font_style_symbolic_from_value): Remove.
19793
19794 * font.c (font_style_symbolic_from_value): Remove.
19795 (font_style_symbolic): Revert to pre 2008-06-13 version.
19796
19797 * w32font.c (w32_to_fc_weight): New function.
19798 (w32font_full_name, logfont_to_fcname): Use it.
19799
198002008-06-16 Kenichi Handa <handa@m17n.org>
19801
19802 * font.c (font_check_object): Delete it.
19803 (font_clear_cache): Check if a font-object is alive.
19804 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19805 font-object to nil.
19806 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19807 (font_at): Don't call font_check_object.
19808 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19809
198102008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19811
19812 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19813
198142008-06-16 Chong Yidong <cyd@stupidchicken.com>
19815
19816 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19817
198182008-06-15 Chong Yidong <cyd@stupidchicken.com>
19819
19820 * font.c (font_parse_fcname): Only one decimal point.
19821 (font_unparse_fcname): Handle data in family and foundry indices
19822 as symbols, not strings.
19823 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19824
19825 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19826
19827 * font.h (font_unparse_gtkname): Add prototype.
19828
198292008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19830
19831 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19832
198332008-06-15 Andreas Schwab <schwab@suse.de>
19834
19835 * font.c (font_update_drivers): Fix crash when no drivers match.
19836
198372008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19838
19839 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19840 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19841
198422008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19843
19844 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19845
198462008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19847
19848 * process.c (Fserial_process_configure, Fprocess_send_eof):
19849 Use EQ to compare Lisp_Objects.
19850
198512008-06-13 Jason Rumney <jasonr@gnu.org>
19852
19853 * w32fns.c (Fw32_select_font): Remove old font API function.
19854
19855 * w32font.c (logfont_to_fcname): New function.
19856 (Fx_select_font): New font dialog function compatible with
19857 GTK/fontconfig version.
19858
19859 * font.c (font_style_symbolic_from_value): New function.
19860 (font_style_symbolic): Use it.
19861
19862 * font.h (font_style_symbolic_from_value): Declare new function.
19863
198642008-06-13 Juanma Barranquero <lekktu@gmail.com>
19865
19866 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19867 <font-width-table>: Fix typos in docstrings.
19868
198692008-06-13 Daniel Engeler <engeler@gmail.com>
19870
19871 These changes add serial port access.
19872 * process.c: Add HAVE_SERIAL.
19873 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19874 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19875 (list_processes_1, select_wrapper, Fstop_process)
19876 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19877 (status_notify): Modify to handle serial processes.
19878 [HAVE_SERIAL] (Fserial_process_configure)
19879 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19880 New functions.
19881 * process.h (struct Lisp_Process): Add `type'.
19882 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19883 New functions.
19884 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19885 serial ports.
b71ac3dd 19886 (serial_open, serial_configure): New functions.
aac0c6e3
MR
19887 * w32.h: Add FILE_SERIAL.
19888 (struct _child_process): Add ovl_read, ovl_write.
19889
198902008-06-13 Kenichi Handa <handa@m17n.org>
19891
19892 * dispextern.h (enum lface_attribute_index): New member
19893 LFACE_FOUNDRY_INDEX.
19894
19895 * font.c (font_score): Delete arg alternate_families. Check only
19896 weight, slant, width, and size. Ignore the difference of alias
19897 style symbols.
19898 (font_sort_entites): Adjust for the above change. Reflect the
19899 order of font-driver to scores.
19900 (font_list_entities): Don't check alternate_familes here.
19901 (font_clear_prop): Handle foundry.
19902 (font_update_lface): Don't parse "foundry-family" form here.
19903 Handle FONT_FOUNDRY_INDEX.
19904 (font_find_for_lface): Likewise. Handle alternate families here.
19905 If registry is nil, try iso8859-1 and ascii-0.
19906 (font_open_for_lface): Pay attention to size in ENTITY.
19907 (font_open_by_name): Simplify by calling font_load_for_lface.
19908 (free_font_driver_list): Delete it.
19909 (font_update_drivers): Preserve the order of backends.
19910 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19911 of font_score and font_sort_entites.
19912 (font_update_sort_order): Likewise.
19913
19914 * xfaces.c (LFACE_FOUNDRY): New macro.
19915 (check_lface_attrs): Check foundry.
19916 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19917 (merge_face_vectors): Check foundry.
19918 (merge_face_ref): Likewise.
19919 (Finternal_set_lisp_face_attribute): Likewise.
19920 (x_update_menu_appearance): Likewise.
19921 (Finternal_get_lisp_face_attribute): Likewise.
19922 (lface_hash): Likewise.
19923 (lface_same_font_attributes_p): Likewise.
19924 (x_supports_face_attributes_p): Likewise.
19925 (tty_supports_face_attributes_p): Likewise.
19926 (Finternal_set_alternative_font_family_alist): Intern strings.
19927 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19928 (realize_default_face): Set LFACE_FOUNDRY (lface).
19929
19930 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19931 font-driver at first.
19932
19933 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19934
199352008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19936
19937 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19938
199392008-06-12 Jim Meyering <meyering@redhat.com>
19940
19941 Make unexec_free handle NULL the same way free does.
19942 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19943
199442008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19945
19946 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19947 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19948 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19949 (WEAK_ALIAS): Simplify.
19950 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19951 when searching a unibyte buffer.
19952
199532008-06-12 Chong Yidong <cyd@stupidchicken.com>
19954
19955 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19956
199572008-06-12 Juanma Barranquero <lekktu@gmail.com>
19958
19959 * w32font.c: Include ctype.h.
19960
199612008-06-11 Jason Rumney <jasonr@gnu.org>
19962
19963 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19964 misreported as space.
19965 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19966 as aliases for registry iso10646-1.
19967
199682008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19969
19970 * buffer.c (clone_per_buffer_values): Skip `name'.
19971
199722008-06-11 Chong Yidong <cyd@stupidchicken.com>
19973
19974 * font.c (font_parse_fcname): Fix last change; accept decimal
19975 points in font size.
19976
199772008-06-10 Jason Rumney <jasonr@gnu.org>
19978
19979 * w32uniscribe.c (add_opentype_font_name_to_list):
19980 Skip non unicode fonts.
19981
199822008-06-10 Chong Yidong <cyd@stupidchicken.com>
19983
19984 * xfns.c (Fx_font_dialog): New function.
19985
19986 * gtkutil.c (xg_dialog_response_cb): Rename from
19987 xg_file_response_callback.
19988 (pop_down_dialog): Rename from pop_down_file_dialog.
19989 (xg_get_file_name): Callers changed.
19990 (xg_get_font_name): New function.
19991
19992 * gtkutil.h (xg_get_font_name): Insert prototype.
19993
199942008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19995
19996 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19997 x_underline_minimum_display_offset.
19998 (syms_of_xdisp): Declare it here rather than in xterm.c.
19999 * dispextern.h (underline_minimum_offset): Declare it.
20000 * w32term.c (x_draw_glyph_string): Use it.
20001 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20002 (syms_of_xterm): Don't declare it any more.
20003 (x_draw_glyph_string): Adjust to the new name.
20004
8719abec 200052008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
20006
20007 * xterm.c (x_underline_minimum_display_offset): New var.
20008 (x_draw_glyph_string): Use it.
20009 (syms_of_xterm): Declare it.
20010
200112008-06-10 Chong Yidong <cyd@stupidchicken.com>
20012
20013 * font.c (font_parse_fcname): Accept GTK-style font names too.
20014
200152008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20016
20017 * dired.c (file_name_completion): Don't return t if the match is exact
20018 but with different capitalization.
20019 * minibuf.c (Ftry_completion): Simplify.
20020
20021 * window.c (Vwindow_point_insertion_type): New var.
20022 (set_window_buffer): Use it.
20023 (syms_of_window): Init and export it to Lisp.
20024
200252008-06-10 Kenichi Handa <handa@m17n.org>
20026
20027 * font.h (font_intern_prop): Prototype adjusted.
20028
20029 * font.c (font_intern_prop): New arg force_symbol.
20030 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20031 Adjust for the change of font_intern_prop.
20032
20033 * ftfont.c (ftfont_pattern_entity):
20034 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20035 (w32_registry):
20036 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20037 the change of font_intern_prop.
20038
200392008-06-09 Juanma Barranquero <lekktu@gmail.com>
20040
20041 * w32menu.c (digest_single_submenu): Declare extern.
20042
200432008-06-09 Jason Rumney <jasonr@gnu.org>
20044
20045 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20046
20047 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20048 (parse_single_submenu): Remove.
20049 (digest_single_submenu): Remove.
20050 (syms_of_w32menu): Don't initialise variables that have moved
20051 to menu.c.
20052 (set_frame_menubar): Sync with version in xmenu.c.
20053 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20054
20055 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20056 Make static again.
20057
200582008-06-09 Jason Rumney <jasonr@gnu.org>
20059
20060 Changes to w32 files related to the move of common menu code
20061 to menu.c on 2008-06-08 by Chong Yidong.
20062
20063 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20064 defs to w32gui.h.
20065 (single_keymap_panes, push_menu_item, push_menu_pane):
20066 Make globally visible.
20067
20068 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20069 (local_free, malloc_widget_value, free_widget_value)
20070 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20071 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20072 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20073 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20074 (menu_items, menu_items_allocated, menu_items_used)
20075 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20076 (init_menu_items, finish_menu_items, discard_menu_items)
20077 (grow_menu_items, push_submenu_start, push_submenu_end)
20078 (push_left_right_boundary, push_menu_pane, push_menu_item)
20079 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20080 (free_menubar_widget_tree_value, parse_single_submenu)
20081 (update_submenu_strings): Remove functions.
20082 (xmalloc_widget_value): Remove and declare extern.
20083
20084 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20085 (OBJ1): Build it.
20086
20087 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20088 (local_heap, local_alloc, local_free, malloc_widget_value)
20089 (free_widget_value): Define here.
20090
200912008-06-09 Kenichi Handa <handa@m17n.org>
20092
20093 * font.h (Qascii_0): Extern it.
20094
20095 * font.c (Qascii_0): New variable.
20096 (syms_of_font): DEFSYM it.
20097 (font_open_by_name): If the registry "iso8859-1" fails, try also
20098 "ascii-0".
20099
20100 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20101
201022008-06-08 Kenichi Handa <handa@m17n.org>
20103
20104 * .gdbinit (xfont): New command.
20105
201062008-06-08 Andreas Schwab <schwab@suse.de>
20107
20108 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20109 * Makefile.in (menu.o): Update dependencies.
20110
20111 * Makefile.in (obj): Always add menu.o.
20112 * emacs.c (main): Always call syms_of_menu.
20113 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20114
201152008-06-08 Chong Yidong <cyd@stupidchicken.com>
20116
20117 * Makefile.in: Compile menu.c.
20118
20119 * lisp.h: Declare syms_of_menu.
20120
20121 * emacs.c (main): Call syms_of_menu.
20122
20123 * keyboard.h: Relocate platform-independent menu definitions from
20124 xmenu.c.
20125
20126 * menu.c: New file. Relocate platform-independent menu
20127 definitions from xmenu.c. Suggested by Adrian Robert.
20128
20129 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 20130 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
20131 (menu_items_used, menu_items_n_panes)
20132 (menu_items_submenu_depth): Move to keyboard.h.
20133 (init_menu_items, finish_menu_items, unuse_menu_items)
20134 (discard_menu_items, restore_menu_items, save_menu_items)
20135 (grow_menu_items, push_submenu_start, push_submenu_end)
20136 (push_left_right_boundary, push_menu_pane, push_menu_item)
20137 (keymap_panes, single_keymap_panes, single_menu_item)
20138 (list_of_panes, list_of_items, find_and_call_menu_selection)
20139 (xmalloc_widget_value, free_menubar_widget_value_tree)
20140 (parse_single_submenu, digest_single_submenu)
20141 (update_submenu_strings): Move to menu.c.
20142
201432008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20144
20145 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20146
201472008-06-06 Miles Bader <miles@gnu.org>
20148
20149 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20150 face, not frame default.
20151
201522008-06-05 Martin Rudalics <rudalics@gmx.at>
20153
20154 * window.c (pop_up_windows, pop_up_frames)
20155 (display_buffer_reuse_frames, Vpop_up_frame_function)
20156 (Vdisplay_buffer_function, Veven_window_heights)
20157 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20158 (Vspecial_display_function, Vsame_window_buffer_names)
20159 (Vsame_window_regexps, split_height_threshold)
20160 (Vsplit_window_preferred_function): Move those vars to window.el.
20161 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20162 (Fdisplay_buffer): Move those functions to window.el.
20163 (syms_of_window): Remove corresponding declarations.
20164 (display_buffer): New function.
20165 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20166 * dispnew.c (Flast_nonminibuf_frame): New function.
20167 * buffer.c (Fpop_to_buffer): Move to window.el.
20168
201692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20170
20171 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20172
201732008-06-05 Kenichi Handa <handa@m17n.org>
20174
20175 * coding.c (detect_coding): Fix previous change.
20176 (detect_coding_system): Likewise.
20177
201782008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20179
20180 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20181
20182 * keymap.c (Vminibuffer_local_filename_must_match_map):
20183 Rename from Vminibuffer_local_must_match_filename_map.
20184 (syms_of_keymap):
20185 * minibuf.c (Fcompleting_read): Adjust accordingly.
20186 * commands.h: Rename declaration as well.
20187
201882008-06-05 Kenichi Handa <handa@m17n.org>
20189
20190 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20191 family name.
20192 (Ffont_put): Likewise.
20193
20194 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20195 current font-spec.
20196
20197 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20198 is unspecified.
20199
20200 * xfaces.c (realize_x_face): If the font-related face attributes
20201 are the same as those of default face, realize a new fontset from
20202 default->fontset.
20203 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20204
202052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20206
20207 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20208 (move_it_in_display_line): New wrapper.
20209
20210 * window.c (window_scroll_pixel_based_preserve_x)
20211 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20212 (window_scroll_pixel_based, window_scroll_line_based):
20213 Use them to preserve column positions.
20214 (syms_of_window): Initialize them.
20215
20216 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20217 (HPOS . VPOS) pair.
20218
20219 * dispextern.h (move_it_in_display_line): Declare.
20220
202212008-06-05 Juanma Barranquero <lekktu@gmail.com>
20222
20223 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20224 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20225 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20226
202272008-06-04 Juanma Barranquero <lekktu@gmail.com>
20228
20229 * window.c (Fset_window_parameter): Doc fix.
20230 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20231
202322008-06-04 Joakim Verona <joakim@verona.se>
20233
20234 * window.h (struct window): Add new member window_parameters.
20235
20236 * window.c (Fwindow_parameters, Fwindow_parameter)
20237 (Fset_window_parameter): New defuns.
20238 (syms_of_window): Defsubr the new defuns.
20239 (make_window): Initialize window_parameters to nil.
20240
202412008-06-04 John Paul Wallington <jpw@pobox.com>
20242
20243 * eval.c (Fdefmacro): Doc fix.
20244
202452008-06-04 Kenichi Handa <handa@m17n.org>
20246
20247 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20248 Be sure to call setup_coding_system when we find a proper coding system.
20249 (detect_coding_system): Fix handling of coding->head_ascii.
20250
202512008-06-03 Andreas Schwab <schwab@suse.de>
20252
20253 * font.c (font_prop_validate_spacing): Fix last change.
20254
202552008-06-03 Kenichi Handa <handa@m17n.org>
20256
20257 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20258 (font_parse_fcname): Fix handling of unknown key.
20259
20260 * xfont.c (xfont_list): Try an alias.
20261
20262 * charset.c (char_charset): Return NULL if the arg charset_list is
20263 specified and C doesn't belong to any of them.
20264
202652008-06-02 Chip Coldwell <coldwell@redhat.com>
20266
20267 * font.c (font_pixel_size): Don't take cdr of an integer.
20268
202692008-06-02 Jim Meyering <meyering@redhat.com>
20270
20271 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20272 * alloc.c (xfree): Return right away for a NULL arg.
20273 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20274 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20275 * mac.c (create_apple_event_from_event_ref): Likewise.
20276 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20277 Likewise.
20278 * doprnt.c (doprnt1): Likewise.
20279 * frame.c (frame): Likewise.
20280 * keyboard.c (wipe_kboard): Likewise.
20281 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20282 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20283 * term.c (tty_default_color_capabilities, maybe_fatal)
20284 (delete_tty): Likewise.
20285 * w16select.c (string): Likewise.
20286 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20287 * w32bdf.c (w32_free_bdf_font): Likewise.
20288 * w32fns.c (w32_unload_font): Likewise.
20289 * w32font.c (w32font_close): Likewise.
20290 * window.c (size_window): Likewise.
20291 * xselect.c (receive_incremental_selection): Likewise.
20292 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20293 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20294 * w32.c (stat): Likewise.
20295
20296 Remove useless if-before-free tests.
20297 * editfns.c (Fset_time_zone_rule): Likewise.
20298 * lread.c (nosuffix): Likewise.
20299 * ralloc.c (get_bloc): Likewise.
20300 * regex.c (reg_free): Likewise.
20301 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20302 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20303 * xsmfns.c (smc_save_yourself_CB): Likewise.
20304
203052008-06-02 Kenichi Handa <handa@m17n.org>
20306
20307 * font.c (font_find_for_lface): Handle float font size.
20308 (font_open_for_lface): Likewise.
20309
20310 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20311 comparing the properties.
20312
203132008-06-01 Jason Rumney <jasonr@gnu.org>
20314
20315 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20316 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20317 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20318 Don't add empty script list.
20319 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20320
203212008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20322
20323 * Makefile.in (dot, dotdot): Remove, update users.
20324 ".." has been used elsewhere in the file for a long time.
20325 (LIBXT_STATIC): Remove conditional based on unused variable.
20326
203272008-06-01 Miles Bader <miles@gnu.org>
20328
20329 * xfaces.c (Vface_remapping_alist): New variable.
20330 (syms_of_xfaces): Initialize it.
20331 (enum named_merge_point_kind): New type.
20332 (struct named_merge_point): Add `named_merge_point_kind' field.
20333 (push_named_merge_point): Make cycle detection respect different
20334 named-merge-point kinds.
20335 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20336 Remove face-name alias resolution.
20337 (lface_from_face_name): New definition using
20338 `lface_from_face_name_no_resolve'.
20339 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20340 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20341 (get_lface_attributes): New definition that layers face-remapping on
20342 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20343 (lookup_basic_face): New function.
20344 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20345 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20346 `get_lface_attributes'.
20347 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20348 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20349 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20350
20351 * xdisp.c (init_iterator): Pass base_face_id through
20352 `lookup_basic_face' when we actually use it as a face-id.
20353 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20354 DEFAULT_FACE_ID.
20355
20356 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20357 lookup the initial face-id.
20358
20359 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20360
203612008-06-01 Juanma Barranquero <lekktu@gmail.com>
20362
20363 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20364 (Fremove_text_properties): Fix typos in docstrings.
20365
203662008-05-31 Kenichi Handa <handa@m17n.org>
20367
20368 * font.c (font_list_entities): Fix the car part of data to be
20369 stored in the cache.
20370
20371 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20372
203732008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20374
20375 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20376 Add a `test' argument so another predicate than `equal' can be used.
20377 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20378 (map_char_table): Remove unused vars `c' and `i'.
20379 * lisp.h (Foptimize_char_table): Adjust declaration.
20380 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20381
203822008-05-30 Kenichi Handa <handa@m17n.org>
20383
20384 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20385 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20386 defined.
20387
203882008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20389
20390 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20391 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20392 frame-local settings for the same variable.
20393
203942008-05-30 Kenichi Handa <handa@m17n.org>
20395
20396 * fontset.c (Ffont_info): Move to font.c.
20397 (syms_of_fontset): Delete defsubr of Sfont_info.
20398
20399 * font.c (font_style_to_value, font_score): Delete casting of the
20400 args to xstcasecmp.
20401 (register_font_driver): Increment num_font_drivers only when
20402 registering the driver globally.
20403 (Ffont_info): Move from fontset.c. Handle a font object too.
20404 (syms_of_font): Defsubr Sfont_info.
20405
204062008-05-29 Kenichi Handa <handa@m17n.org>
20407
20408 * coding.h (enum define_coding_utf8_arg_index): New enum.
20409 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20410 coding_attr_utf_bom.
20411 (enum utf_bom_type): Rename from utf_16_bom_type.
20412 (struct utf_16_spec): Adjust for the above change.
20413 (struct coding_system): Add utf_8_bom in `spec' union.
20414
20415 * coding.c (CODING_UTF_8_BOM): New macro.
20416 (enum coding_category): Delete coding_category_utf_8, add
20417 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20418 coding_category_utf_8_sig.
20419 (CATEGORY_MASK_UTF_8): Delete it.
20420 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20421 (CATEGORY_MASK_UTF_8_SIG): New macros.
20422 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20423 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20424 CATEGORY_MASK_UTF_8_SIG.
20425 (CATEGORY_MASK_UTF_8): New macro.
20426 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20427 (detect_coding_utf_8): Check BOM.
20428 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20429 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20430 (encode_coding_utf_16): Likewise.
20431 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20432 (detect_coding, detect_coding_system): Handle utf-8-auto.
20433 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20434 (syms_of_coding): Fix setting up of Vcoding_category_table.
20435
204362008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20437
20438 * process.c (Faccept_process_output): If `millisec' is non-nil,
20439 `seconds' default to 0.
20440 (wait_reading_process_output): Also return non-nil if we read output
20441 from a non-running process.
20442
204432008-05-29 Jason Rumney <jasonr@gnu.org>
20444
20445 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20446 `raster' specified.
20447 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20448 in the uniscribe backend, but disallow any font that has no
20449 unicode subrange support.
20450
204512008-05-29 Juanma Barranquero <lekktu@gmail.com>
20452
20453 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20454 Fix typos in docstrings.
20455
204562008-05-29 Kenichi Handa <handa@m17n.org>
20457
20458 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20459 (Fx_family_fonts): Set frame correctly.
20460
204612008-05-28 Jason Rumney <jasonr@gnu.org>
20462
20463 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20464
204652008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20466
20467 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20468 calling build_annotations.
20469
204702008-05-28 Juanma Barranquero <lekktu@gmail.com>
20471
20472 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20473 (Fencode_coding_string):
20474 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20475 <latin-extra-code-table>: Fix typos in docstrings.
20476 (syms_of_coding) <coding-system-alist>: Doc fix.
20477 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20478
204792008-05-28 Kenichi Handa <handa@m17n.org>
20480
20481 * fontset.c (Ffont_info): Don't call font_close_object.
20482
20483 * font.c (font_parse_family_registry): Use Ffont_put to validate
20484 foundry and family.
20485 (font_delete_unmatched): Don't check spacing.
20486 (font_list_entities): Add spacing to the spec to list fonts.
20487
20488 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20489 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20490
20491 * coding.c (encode_coding_raw_text): Fix previous change.
20492 (encode_coding_object): When the dst_object is a buffer and is
20493 different from src_object, move gap to PT.
20494
204952008-05-27 Chong Yidong <cyd@stupidchicken.com>
20496
20497 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20498
204992008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20500
20501 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20502 all branches. Compute it differently.
20503
20504 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20505
205062008-05-27 Juanma Barranquero <lekktu@gmail.com>
20507
20508 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20509 into "else if () ... else ...".
20510
205112008-05-27 Jason Rumney <jasonr@gnu.org>
20512
20513 * w32font.c (w32font_open_internal): Determine if glyph indices
20514 are likely to work here.
20515
205162008-05-27 Chong Yidong <cyd@stupidchicken.com>
20517
20518 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20519 draw overlap glyphs with appropriate highlighting.
20520
205212008-05-27 Kenichi Handa <handa@m17n.org>
20522
20523 * xfont.c (xfont_open): Fix calculation of font->average_width.
20524
205252008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20526
20527 * casefiddle.c (casify_object): Try to guess better whether the
20528 argument is a byte or a char.
20529
205302008-05-26 Andreas Schwab <schwab@suse.de>
20531
20532 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20533 Always send multiples of format size.
20534
20535 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20536
205372008-05-26 Jason Rumney <jasonr@gnu.org>
20538
20539 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20540 (compute_metrics): Don't set failure if we just cleared the cache.
20541 (w32_weight_table): Remove unused variable.
20542 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20543 backwards compatibility.
20544
205452008-05-25 Kenichi Handa <handa@m17n.org>
20546
20547 * w32term.c (x_draw_glyph_string):
20548 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20549
20550 * xfaces.c: Delete unused function prototypes.
20551 (xstrlwr, font_frame): Delete them.
20552 (clear_face_cache): Delete unused variable.
20553
20554 * xftfont.c (xftfont_open): Delete unused variable.
20555 If underline_thickness is not 1, adjust underline_position.
20556
20557 * ftxfont.c (ftxfont_open): Delete unused variable.
20558
20559 * fontset.c (face_for_char): Optimize for the case of no charset
20560 property.
20561
20562 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20563 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20564 (otf_open, font_otf_capability, generate_otf_features)
20565 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20566 Comment out by surrounding "#if 0" and "#endif" for the moment.
20567 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20568 (syms_of_font): Codes for accessing above commented out.
20569
205702008-05-24 Eli Zaretskii <eliz@gnu.org>
20571
20572 * w32proc.c: Include dispextern.h.
20573
20574 * w32.c: Include dispextern.h.
20575
205762008-05-23 Juanma Barranquero <lekktu@gmail.com>
20577
20578 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20579 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20580 Fix typos in docstrings.
20581
205822008-05-23 Jason Rumney <jasonr@gnu.org>
20583
20584 * xsmfns.c: Remove includes that are already included by config.h.
20585
205862008-05-23 Kenichi Handa <handa@m17n.org>
20587
20588 * charset.c (Qemacs, charset_emacs): New variables.
20589 (char_charset): Fix for non-Unicode characters.
20590 (syms_of_charset): Define charset_emacs.
20591
20592 * w32term.c (x_draw_glyph_string): Be sure to update
20593 s->underline_thickness and s->underline_position. Be sure to draw
20594 underline within the current line area.
20595
20596 * xterm.c (x_draw_glyph_string): Be sure to update
20597 s->underline_thickness and s->underline_position. Be sure to draw
20598 underline within the current line area.
20599
20600 * fontset.c: Delete unused variables and add casting for char *
20601 throughout the file.
20602 (fontset_font): Try the fallback fonts of the current fontset
20603 before consulting the default fontset.
20604
20605 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20606
20607 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20608
206092008-05-22 Jason Rumney <jasonr@gnu.org>
20610
20611 * font.c: Don't include strings.h.
20612
20613 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20614
20615 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20616 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20617 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20618 to call xstrcasecmp.
20619
20620 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20621
20622 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20623
20624 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20625
20626 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20627
206282008-05-22 Kenichi Handa <handa@m17n.org>
20629
20630 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20631
20632 * font.c (font_prop_validate_style): Adjust for the format
20633 change of font_style_table.
20634
20635 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20636 two args.
20637
20638 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20639 two args.
20640
206412008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20642
20643 * minibuf.c (keys_of_minibuf): Delete.
20644 * lisp.h (keys_of_minibuf): Delete.
20645 * emacs.c (main): Don't call keys_of_minibuf.
20646
206472008-05-22 Kenichi Handa <handa@m17n.org>
20648
20649 * ftfont.c (ftfont_resolve_generic_family): Rename from
20650 ftfont_list_generic_family. Return a single family for each
20651 generic family.
20652 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20653 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20654 Call font_add_log.
20655 (ftfont_match): Call font_add_log.
20656
20657 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20658 (FONT_DEBUG): Define it.
20659 (font_add_log): Extern it.
20660 (font_assert): Rename from xassert.
20661
20662 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20663 (xfont_list_family): Call font_add_log.
20664 (xfont_match): Likewise.
20665 (memq_no_quit): Delete.
20666
20667 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20668 call of Ffont_xlfd_name.
20669
20670 * xfaces.c (struct table_entry, slant_table, weight_table)
20671 (swidth_table): Move to font.c.
20672
20673 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20674 xassert are changed to font_assert. Delete many unused variables.
20675 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20676 New variables.
20677 (struct table_entry): Move from xfaces.c and modified.
20678 (weight_table, slant_table, width_table): Move from xfaces.c and
20679 contents adjusted for the change of struct table_entry.
20680 (font_style_to_value, font_style_symbolic): Adjust for the
20681 format change of font_style_table.
20682 (font_parse_family_registry): Don't overwrite existing foundry and
20683 family of font_spec.
20684 (font_score): Fix calculation of diff for sizes.
20685 (font_sort_entites): Call font_add_log.
20686 (font_delete_unmatched): Return a newly created list.
20687 (font_list_entities): Fix previous change. Call font_add_log.
20688 (font_matching_entity, font_open_entity, font_close_entity):
20689 Call font_add_log.
20690 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20691 (Finternal_set_font_style_table): Delete.
20692 (BUILD_STYLE_TABLE): New macro.
20693 (build_style_table): New function.
20694 (Vfont_log, font_log_env_checked): New variables.
20695 (font_add_log): New function.
20696 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20697 Declare Lisp variables "font-weight-table", "font-slant-table",
20698 "font-width-table", and "font-log". Initialize font_style_table.
20699
207002008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20701
20702 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20703
207042008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20705 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20706
20707 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20708 (Vframe_alpha_lower_limit): New variable.
20709 (x_set_alpha): New function.
20710
20711 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20712
20713 * xfns.c (x-create-frame, Qalpha):
20714 Initialize the frame parameter `alpha'.
20715 * xterm.c (OPAQUE, OPACITY): New.
20716 (x_set_frame_alpha): New function.
20717 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20718
20719 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20720 * w32fns.c (w32_frame_parm_handlers): Likewise.
20721
207222008-05-20 Jason Rumney <jasonr@gnu.org>
20723
20724 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20725 truetype fonts to opentype list.
20726
207272008-05-20 Juanma Barranquero <lekktu@gmail.com>
20728
20729 * fontset.c (Ffontset_info): Doc fix.
20730 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20731 <ignore-relative-composition>: Fix typos in docstrings.
20732
20733 * font.c (syms-of-font) <font-encoding-alist>:
20734 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20735 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20736 (Ffont_otf_alternates): Doc fixes.
20737
207382008-05-20 Kenichi Handa <handa@m17n.org>
20739
20740 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20741 font.h through out the file.
20742 (FONT_DRIVERS): Rename from FONTOBJ.
20743 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20744 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20745
20746 * emacs.c (main): Call syms_of_font unconditionally.
20747
20748 * font.h (find_font_encoding): Extern it.
20749
20750 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20751 fontset.c.
194d44e7 20752 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
20753 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20754 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20755 only when HAVE_WINDOW_SYSTEM is defined.
20756 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20757 when HAVE_WINDOW_SYSTEM is defined.
20758
20759 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20760 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20761
20762 * xfaces.c: Include font.h unconditionally.
20763 (merge_face_ref, merge_face_vectors)
20764 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20765
207662008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20767
20768 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20769 indirect_variable.
20770 * eval.c (lisp_indirect_variable): New fun.
20771 (Fuser_variable_p): Use it.
20772
207732008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20774
20775 * lisp.h (indirect_variable):
20776 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20777 Use Lisp_Symbol pointers rather than Lisp_Object.
20778 Adjust callers.
20779 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20780 To this end, change calling-convention.
20781
20782 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20783 if some non-hidden buffers are selected by string&pred.
20784
207852008-05-19 Chong Yidong <cyd@stupidchicken.com>
20786
20787 * process.c (wait_reading_process_output): Always check status
20788 when in batch mode.
20789
207902008-05-19 Kenichi Handa <handa@m17n.org>
20791
20792 * font.c (font_list_entities): Fix handling of cache.
20793 (font_matching_entity): Likewise.
20794
20795 * ftfont.c (cs_iso8859_1): Delete.
20796 (ft_face_cache): New variable.
20797 (struct ftfont_info): New member fc_charset_idx.
20798 (ftfont_build_basic_charsets): Delete.
20799 (fc_charset_table): New variable.
20800 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20801 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20802 Callers changed.
20803 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20804 (ftfont_spec_pattern): New argument fc_charset_idx.
20805 Check registry more rigidly. Change callers.
20806 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20807 change of :font-entity property of the font.
20808
20809 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20810 property of the font.
20811
208122008-05-18 Juanma Barranquero <lekktu@gmail.com>
20813
20814 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20815 (Funencodable_char_position, Fcheck_coding_systems_region)
20816 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20817 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20818 (Ffind_operation_coding_system, Fset_coding_system_priority)
20819 (Fcoding_system_eol_type): Doc fixes.
20820
208212008-05-17 Glenn Morris <rgm@gnu.org>
20822
20823 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20824
208252008-05-16 Eli Zaretskii <eliz@gnu.org>
20826
20827 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20828 and st_gid.
20829
20830 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20831 HAVE_WINDOW_SYSTEM is not defined.
20832
20833 * xfaces.c (merge_face_ref, merge_face_vectors)
20834 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20835 HAVE_WINDOW_SYSTEM is defined.
20836 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20837
208382008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20839
20840 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20841
208422008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20843
20844 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20845
208462008-05-15 Kenichi Handa <handa@m17n.org>
20847
20848 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20849 preference.
20850
208512008-05-15 Glenn Morris <rgm@gnu.org>
20852
20853 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20854
208552008-05-15 Chong Yidong <cyd@stupidchicken.com>
20856
20857 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20858 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20859
20860 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20861
208622008-05-15 Kenichi Handa <handa@m17n.org>
20863
20864 * ftfont.c (ftfont_list): Downcase family name to check generic
20865 families.
20866
20867 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20868 font-spec for QCfont value.
20869
20870 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20871 buffer. Check the return value of it.
20872
208732008-05-14 Jason Rumney <jasonr@gnu.org>
20874
20875 * w32term.c (w32_get_glyph_overhangs): Remove.
20876 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20877
208782008-05-14 Kenichi Handa <handa@m17n.org>
20879
20880 * font.c (font_prop_validate): Make nil a valid value.
20881 (font_clear_cache): Check if the cached vector of entities is nil
20882 or not.
20883
208842008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20885
20886 * emacs.c (main_thread): Conditionalize on
20887 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20888 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20889
20890 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20891 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20892 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20893
208942008-05-14 Kenichi Handa <handa@m17n.org>
20895
20896 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20897 has no corresponding coding system.
20898
208992008-05-14 Jason Rumney <jasonr@gnu.org>
20900
20901 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20902
20903 * w32font.h (w32font_open_internal): Update declaration.
20904
20905 * w32font.c (w32font_open_internal): Change last argument from
20906 w32font_info struct to font object. Fill in font object from
20907 font_entity. Get Outline metrics if possible. Use them to
20908 calculate underline position and thickness. Use xlfd name as name
20909 property. Don't set codepage.
20910 (w32font_open): Pass font_object to w32font_open_internal. Don't
20911 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20912 (w32font_draw): Use s->font.
20913 (clear_cached_metrics): Don't clear non-existent blocks.
20914
20915 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20916 font was not found.
20917 (x_draw_glyph_string): Use underline position and thickness from font.
20918
20919 * w32uniscribe.c (uniscribe_open): Pass font_object to
20920 w32font_open_internal.
20921
209222008-05-14 Kenichi Handa <handa@m17n.org>
20923
20924 These changes are to delete all legacy font-handling codes, and
20925 make Emacs use only font-backends.
20926
20927 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20928 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20929
20930 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20931
20932 * charset.h (Vcharset_non_preferred_head)
20933 (Vcurrent_iso639_language): Extern them.
20934
20935 * charset.c (Vcharset_non_preferred_head): New variable.
20936 (Vcurrent_iso639_language): New variable.
20937 (syms_of_charset): Declare it as a Lisp variable.
20938 (char_charset): Don't check non preferred charsets. As a last
20939 resort, return charset_unicode.
20940 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20941
20942 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20943 conditionals. Don't check enable_font_backend. Delete all codes
20944 used only when USE_FONT_BACKEND is not defined.
20945
20946 * dispextern.h (struct glyph_string): Change type of `font' to
20947 `struct font *'.
20948 (struct glyph_string): New member underline_position and
20949 underline_thickness.
20950 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
20951 (struct face): Change type of `font' to `struct font *'.
20952 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
20953 (per_char_metric, encode_char): Delete externs.
20954 (calc_pixel_width_or_height): Adjust the prototype.
20955
20956 * emacs.c (enable_font_backend): Delete extern.
20957 (main): Don't set enable_font_backend. Don't check the command
20958 line argument "-disable-font-backend".
20959
20960 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20961 (enum font_property_index): New members FONT_DPI_INDEX,
20962 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20963 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20964 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20965 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20966 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20967 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20968 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20969 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20970 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20971 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20972 (struct font): Many members from old "struct font_info" moved to
20973 here. Members font and entity deleted.
20974 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20975 the new font-related objects.
20976 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20977 (CHECK_FONT_GET_OBJECT): Likewise.
20978 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20979 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20980 (struct font_driver): New members case_sensitive anc check.
20981 Type of the member list and open changed.
aac0c6e3
MR
20982 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20983 (font_symbolic_width, font_find_object, font_get_spec)
20984 (font_set_lface_from_name): Delete extern.
20985 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20986
20987 * font.c: Include <strings.h>.
20988 (enable_font_backend): Delete it.
20989 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20990 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20991 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20992 (null_string): Delete it.
20993 (null_vector): Make it static.
20994 (font_family_alist): Delete it.
20995 (Qnormal): Extern it.
20996 (QCextra, QClanguage): Delete it.
20997 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20998 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20999 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 21000 the string. Callers changed.
bba3e508 21001 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
21002 objects.
21003 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21004 (font_style_to_value, font_style_symbolic): New function.
21005 (build_font_family_alist): Delete it.
21006 (font_registry_charsets): Use Fassoc_string instead of
21007 assq_no_quit.
21008 (font_prop_validate_symbol): Don't return null_string.
bba3e508 21009 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
21010 style-related values in a font vector.
21011 (font_property_table): Delete entries for QClanguage and
21012 QCantialias, add entries for QCavgwidth.
21013 (get_font_prop_index): Delete the 2nd argument FROM.
21014 (font_prop_validate): Arguments changed.
bba3e508 21015 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
21016 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21017 (font_parse_fcname, font_unparse_fcname)
21018 (font_prepare_composition): Likewise.
ef1b0ba7 21019 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 21020 (otf_open): Delete the 1st arg entity.
bba3e508 21021 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
21022 (font_score): New arg alternate_families. Adjusted for the change
21023 of font-related objects.
21024 (font_sort_entites): New arg best_only.
21025 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21026 Delete them.
21027 (font_match_p): Check alternate families.
21028 (font_find_object): Delete it.
21029 (font_check_object): New function.
bba3e508 21030 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
21031 (font_delete_unmatched): New arg.
21032 (font_list_entities): Call font_driver->list with a spec that
21033 doesn't specify style-related properties.
21034 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 21035 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
21036 (font_close_object, font_has_char, font_encode_char)
21037 (font_get_name, font_get_spec): Likewise.
21038 (font_spec_from_name, font_clear_prop, font_update_lface):
21039 New functions.
21040 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21041 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 21042 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
21043 (font_range): New function.
21044 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 21045 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 21046 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 21047 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
21048 (Finternal_set_font_style_table): Arguments changed.
21049 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 21050 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
21051 change of font-related objects.
21052 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21053
21054 * fontset.h (struct font_info): Delete it. Most members go to
21055 struct font.
ef1b0ba7 21056 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
21057 (enum FONT_SPEC_INDEX): Delete it.
21058 (font_info, list_fonts_func, load_font_func, query_font_func)
21059 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
21060 (get_font_repertory_func, new_fontset_from_font_name):
21061 Delete externs.
aac0c6e3
MR
21062 (fontset_from_font_name): Extern it.
21063 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21064 (FONT_INFO_FROM_FACE): Deleted.
21065 (face_for_font): Adjust prototype.
21066
21067 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21068 conditionals. Don't check enable_font_backend. Delete all codes
21069 used only when USE_FONT_BACKEND is not defined.
21070 (get_font_info_func, list_font_func, load_font_func)
21071 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21072 (get_font_repertory_func): Delete them.
21073 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21074 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21075 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21076 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21077 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21078 (fontset_compare_rfontdef): New function.
21079 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21080 rfont-defs by qsort. Adjusted for the change of font-group vector.
21081 (load_font_get_repertory): Deleted.
21082 (fontset_find_font): Use new macros to ref/set elements of
21083 font-def and rfont-def.
21084 (fontset_font): Fix the timing of remembering that no font for C.
21085 (free_face_fontset): Do nothing if the face has no fontset.
21086 (face_suitable_for_char_p): Use new macros to ref/set elements of
21087 rfont-def.
21088 (face_for_char): Likewise. Call face_for_char with font_object.
21089 (fs_load_font): Delete. Delete #pragma surrounding it.
21090 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 21091 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
21092 font-spec.
21093 (Fset_fontset_font): Likewise. Use new macros to set elements of
21094 font-def.
21095 (Fnew_fontset): Use font_unparse_xlfd to generate
21096 FONTSET_ASCII (fontset).
21097 (new_fontset_from_font_name): Deleted.
ef1b0ba7 21098 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
21099 a fontset is already created for the font. FIx updating of
21100 Vfontset_alias_alist.
21101 (fontset_ascii_font): Deleted.
bba3e508 21102 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
21103 (Finternal_char_font): Likewise.
21104 (Ffontset_info): Likewise.
21105 (syms_of_fontset): Don't check load_font_func.
21106
21107 * fns.c (internal_equal): Handle PREV_FONT.
21108
21109 * frame.h: Delete USE_FONT_BACKEND conditional.
21110
21111 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21112 conditionals. Don't check enable_font_backend. Delete all codes
21113 used only when USE_FONT_BACKEND is not defined.
21114 (x_set_font): Call x_new_font, not x_new_fontset2.
21115 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21116 already set for the frame.
21117
bba3e508
SM
21118 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21119 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
21120 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21121 font property. If a font is scalable, set avgwidth property to 0.
21122 Set font-entity property by font_put_extra.
21123 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 21124 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21125 (ftfont_spec_pattern): New function.
21126 (ftfont_list): Return a list, not vector.
21127 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21128 (ftfont_list_family): Don't downcase names.
21129 (ftfont_free_entity): Deleted.
21130 (ftfont_open): Return a font-object. Adjusted for the change of
21131 struct font. Get underline_thickness and underline_position from
21132 font property. Don't update dpyinfo->smallest_font_height and
21133 dpyinfo->smallest_char_width.
21134 (ftfont_close): Don't free `struct font'.
bba3e508 21135 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
21136 (ftfont_encode_char, ftfont_text_extents): Likewise.
21137
21138 * ftxfont.c (ftxfont_list): Return a list, not vector.
21139 (ftxfont_open): Return a font-object. Adjusted for the change of
21140 struct font. Get underline_thickness and underline_position from
21141 font property. Don't update dpyinfo->smallest_font_height and
21142 dpyinfo->smallest_char_width.
21143 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 21144 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 21145
bba3e508
SM
21146 * image.c (image_ascent): Don't include "charset.h".
21147 Include "character.h" and "font.h".
aac0c6e3
MR
21148
21149 * lisp.h (enum pvec_type): New member PREV_FONT.
21150 (Fassoc_string): EXFUN it.
21151
21152 * print.c: Include font.h.
21153 (print_object): Handle font-related objects.
21154
21155 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21156 conditionals. Don't check enable_font_backend. Delete all codes
21157 used only when USE_FONT_BACKEND is not defined.
21158 (handle_auto_composed_prop): Do nothing if it->f is not on a
21159 window system. Check how many following characters can be
21160 displayed by the same font.
21161 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21162 'struct font *'.
21163 (get_char_face_and_encoding): Assign the whole encoding task to
21164 the `encode-char' method of a font driver.
bba3e508 21165 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
21166 face' and `struct glyph_string'.
21167 (fill_glyph_string): Likewise.
21168 (get_per_char_metric): Arguments changed.
bba3e508 21169 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
21170 and `struct glyph_string'.
21171 (produce_stretch_glyph, calc_line_height_property)
21172 (x_produce_glyphs): Likewise.
21173
21174 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21175 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
21176 used only when USE_FONT_BACKEND is not defined.
21177 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
21178 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21179 (Qp): Extern them.
21180 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21181 Deleted.
21182 (struct font_name): Deleted.
21183 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21184 (compare_fonts_by_sort_order): New function.
21185 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21186 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21187 Deleted.
21188 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21189 compare_fonts_by_sort_order.
21190 (Fx_font_family_list): Call Ffont_family_list.
21191 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21192 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21193 (face_symbolic_slant, face_symbolic_swidth)
21194 (split_font_name_into_vector, build_font_name_from_vector)
21195 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21196 (font_rescale_ratio, split_font_name, build_font_name)
21197 (free_font_names, sort_fonts, x_face_list_fonts)
21198 (face_font_available_p, sorted_font_list, cmp_font_names)
21199 (font_list_1, concat_font_list, font_list, remove_duplicates):
21200 Deleted.
21201 (Fx_list_fonts): Use Ffont_list.
21202 (LFACE_AVGWIDTH): Deleted.
21203 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21204 by FONTP.
21205 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21206 (set_lface_from_font_name): Delete it.
ef1b0ba7 21207 (set_lface_from_font): Rename from
aac0c6e3
MR
21208 set_lface_from_font_and_fontset. Caller changed. Don't set
21209 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21210 for face.
21211 (merge_face_vectors): Copy font-spec if necessary.
21212 Clear properties of the font-spec if necessary.
21213 (merge_face_ref): Clear properties of the font-spec if necessary.
21214 (Finternal_set_lisp_face_attribute): Likewise.
21215 (set_font_frame_param): Use font_load_for_lface to load a
21216 font-object, and call Fmodify_frame_parameters with it.
21217 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21218 font name by Ffont_xlfd_name.
21219 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21220 QCslant, and QCwidth.
21221 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21222 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21223 Compare fonts by EQ.
21224 (lookup_non_ascii_face): Deleted.
21225 (face_for_font): The 2nd argument changed.
21226 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21227 Check atomic font properties by case insensitive.
21228 (realize_non_ascii_face): Set face->overstrike correctly.
21229 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21230 (dump_realized_face): Get font name from
21231 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21232
21233 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21234 conditionals. Don't check enable_font_backend. Delete all codes
21235 used only when USE_FONT_BACKEND is not defined.
21236 (xic_create_xfontset): Original code deleted and renamed from
21237 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21238 (x_make_gc): Don't set GCFont in GCs.
21239 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21240 opened by "fixed".
21241 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21242 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21243 get_font_repertory_func.
21244
21245 * xfont.c: Include <stdlib.h> and "ccl.h".
21246 (struct xfont_info): New structure.
21247 (xfont_query_font): Deleted.
ef1b0ba7 21248 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21249 moved from xterm.c.
bba3e508 21250 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21251 (compare_font_names): New function.
ef1b0ba7
SM
21252 (xfont_list_pattern): Sort font names case insensitively.
21253 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21254 (xfont_list): Return a list, not vector.
21255 (xfont_match): If the font doesn't have QCname property, generate
21256 a name from the other font properties.
21257 (xfont_open): Return a font-object. Adjusted for the change of
21258 struct font. Get underline_thickness and underline_position from
21259 font property. Don't update dpyinfo->smallest_font_height and
21260 dpyinfo->smallest_char_width.
21261 (xfont_close): Don't free struct font.
bba3e508 21262 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 21263 (xfont_done_face): Deleted.
bba3e508 21264 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21265 (xfont_encode_char, xfont_draw): Likewise.
21266 (xfont_check): New function.
21267
bba3e508 21268 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21269 callback function.
bba3e508
SM
21270 (xftfont_match): Adjust for the format change of font-entity.
21271 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21272 font-object. Adjusted for the change of struct font. Return a
21273 font-object. Don't update dpyinfo->smallest_font_height and
21274 dpyinfo->smallest_char_width.
21275 (xftfont_close): Block input while calling XftFontClose.
21276 (xftfont_prepare_face): Don't block input while calling
21277 xftfont_get_colors. Adjusted for the change of struct font.
21278 (xftfont_shape): Return value of error case fixed.
21279
21280 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21281
21282 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21283 conditionals.
21284 (FONT_WIDTH): Return (f)->max_width.
21285 (struct x_display_info): Delete member `font'.
21286 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21287 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21288 (struct x_output): Change type of `font' to `struct font *'.
21289
21290 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21291 conditionals. Don't check enable_font_backend. Delete all codes
21292 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21293 (x_per_char_metric, x_encode_char): Deleted.
21294 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21295 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21296 `struct face'.
21297 (x_draw_glyph_string_foreground)
21298 (x_draw_composite_glyph_string_foreground): Likewise.
21299 (x_draw_glyph_string): Likewise. Use font->underline_position and
21300 font->underline_thickness.
ef1b0ba7 21301 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
21302 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21303 (x_check_font): Call `check' method of a font driver.
21304 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21305 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 21306 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21307 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21308 redisplay_interface'.
21309
21310 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21311 conditionals. Don't check enable_font_backend. Delete all codes
21312 used only when USE_FONT_BACKEND is not defined. Surround non-used
21313 code by "#ifdef OLD_FONT" and "endif".
21314 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21315
21316 * w32font.h (struct w32font_info): New member.
21317 (FONT_COMPAT): New macro.
21318 (w32font_open_internal): Prototype adjusted.
21319
21320 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21321 OLD_FONT" and "endif".
21322
21323 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21324 conditionals. Don't check enable_font_backend. Delete all codes
21325 used only when USE_FONT_BACKEND is not defined.
21326 (w32font_open): Return a font-object. Make a font-object by
21327 font_make_object. Adjusted for the change of struct w32font_info.
21328 (w32font_close): Don't free struct font. Adjusted for the change
21329 of struct w32font_info.
21330 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21331 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21332 (w32font_draw): Likewise.
21333 (w32font_list_internal): Return a list, not vector.
21334 (w32font_open_internal): Change the 4th arg to font-object.
21335 Adjusted for the change of struct w32font_info and font-object format.
21336 (add_font_name_to_list): Don't downcase names.
21337 (w32_enumfont_pattern_entity): Make a font-entity by
21338 font_make_entity. Adjusted for the format change of font-entity.
21339 Use FONT_SET_STYLE to set a style-related font property. If a
21340 font is scalable, set avgwidth property to 0. Set font-entity
21341 property by font_put_extra.
bba3e508 21342 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21343 (w32_weight_table, w32_decode_weight): New variables.
21344 (w32_encode_weight): New function.
bba3e508 21345 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21346 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21347 weight value.
bba3e508 21348 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21349
21350 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21351 conditionals. Don't check enable_font_backend. Surround non-used
21352 code by "#ifdef OLD_FONT" and "endif".
21353 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21354 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21355
21356 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21357 conditionals. Don't check enable_font_backend. Delete all codes
21358 used only when USE_FONT_BACKEND is not defined. Surround non-used
21359 code by "#ifdef OLD_FONT" and "endif".
21360
21361 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21362 (uniscribe_open): Return value changed to font-object.
21363 Adjusted for the format change of font-object.
bba3e508 21364 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21365 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21366 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21367 font_driver.
21368
213692008-05-13 Chong Yidong <cyd@stupidchicken.com>
21370
21371 * dispnew.c (update_frame_1): Check if tty output is still valid
21372 before flushing it.
21373
213742008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21375
21376 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21377 to Gtk+ menus.
21378
213792008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21380
21381 * dired.c (file_name_completion): Tweak the code so as to always do it
21382 in a single pass. Tighten the scope of some variables.
21383
21384 * dired.c (Qdefault_directory): New var.
21385 (file_name_completion): Use it instead of Fexpand_file_name.
21386 (syms_of_dired): Initialize it.
21387
213882008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21389
21390 * fileio.c (double_dollars): Remove dead code.
21391
213922008-05-10 Eli Zaretskii <eliz@gnu.org>
21393
21394 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21395 Mention w32-get-true-file-attributes in doc string.
21396
21397 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21398
213992008-05-09 Glenn Morris <rgm@gnu.org>
21400
21401 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21402 2008-04-23.
21403
214042008-05-09 Eli Zaretskii <eliz@gnu.org>
21405
21406 Support for reporting owner and group of each file on MS-Windows:
21407 * dired.c (stat_uname, stat_gname): New functions, with special
21408 implementation for w32.
21409 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21410
21411 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21412 (dflt_group_name): New static variable.
21413 (dflt_group): Rename from the_group.
21414 (init_user_info): Init dflt_group fields. Get user's group name
21415 from LookupAccountSid.
21416 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21417 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21418 New initialization states.
21419 (globals_of_w32): Initialize them to zero. Initialize the default
21420 group name to "None".
21421 (GetFileSecurity_Name): New global var, the name of the function
21422 to call for GetFileSecurity.
21423 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21424 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21425 (get_file_security, get_security_descriptor_owner)
21426 (get_security_descriptor_group, is_valid_sid)
21427 (get_file_security_desc, get_rid, get_name_and_id)
21428 (get_file_owner_and_group): New functions.
21429 (stat): Use get_file_security_desc and get_file_owner_and_group to
21430 report the owner and primary group of each file. Don't ignore the
21431 high 32 bits of file's size, now that st_size is 64-bit wide.
21432 Fix test when to get true file attributes.
21433 (init_user_info): Use get_rid instead of equivalent inline code.
21434 (fstat): Don't ignore the high 32 bits of file's size.
21435
214362008-05-09 Chong Yidong <cyd@stupidchicken.com>
21437
21438 * image.c (png_load): Use correct bit-depth for setting background
21439 color.
21440
214412008-05-08 Eli Zaretskii <eliz@gnu.org>
21442
21443 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21444 epa-hook.elc.
21445
214462008-05-08 Juanma Barranquero <lekktu@gmail.com>
21447
21448 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21449
214502008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21451
21452 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21453 because the original parameters are in pure storage now.
21454 (mac_window): Remove unused params. Update callers.
21455
214562008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21457
21458 * lread.c (substitute_object_recurse): Use lower-level primitives.
21459 Don't signal errors when traversing sub-char-tables.
21460 Don't loop over all the possible characters when traversing char-tables.
21461
21462 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21463 just like we do in print.c.
21464
214652008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21466
21467 * minibuf.c (Ftry_completion): Remove code left over from when we used
21468 scmp instead of Fcompare_strings.
21469
214702008-05-04 Juanma Barranquero <lekktu@gmail.com>
21471
21472 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21473
214742008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21475
21476 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21477 Create bitmap context in native byte order.
21478
21479 * macterm.c (XDrawLine)
21480 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21481 context in native byte order.
21482
214832008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21484
21485 * config.in: Regenerate.
21486
21487 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21488 New definitions for Image I/O support.
21489 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21490 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21491 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21492 (mac_data_provider_release_data, image_load_image_io)
21493 [USE_MAC_IMAGE_IO]: New functions.
21494 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21495 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21496 (init_image_func_pointer) [MAC_OSX]: Remove function.
21497 (image_load_quartz2d) [MAC_OSX]: Check availability of
21498 CGImageCreateWithPNGDataProvider at compile time.
21499 Use lowercase `false' for boolean constant.
21500 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21501 Use image_load_image_io.
21502 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21503 Don't check MyCGImageCreateWithPNGDataProvider.
21504 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21505 Don't call init_image_func_pointer.
21506
21507 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21508
21509 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21510 Make variable non-static.
21511 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21512 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21513
21514 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21515 (RED_FROM_ULONG): Mask off higher bits.
21516 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21517
21518 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21519 Include AvailabilityMacros.h.
21520 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21521 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21522
215232008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21524
21525 * chartab.c (Fset_char_table_range): If range is t, really set all
21526 chars to that value.
21527
215282008-05-03 Eli Zaretskii <eliz@gnu.org>
21529
21530 * dired.c (Ffile_attributes): Don't allow the device number become
21531 negative.
21532
215332008-05-02 Daiki Ueno <ueno@unixuser.org>
21534
21535 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21536
215372008-05-02 Juri Linkov <juri@jurta.org>
21538
21539 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21540 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21541 DEFAULT argument as a list of default values in docstrings.
21542
215432008-05-01 Chong Yidong <cyd@stupidchicken.com>
21544
21545 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21546
215472008-05-01 Martin Rudalics <rudalics@gmx.at>
21548
21549 * dispnew.c (change_frame_size_1): Preserve small windows when
21550 shrinking frames by calling set_window_height|width with third
21551 arg 2.
21552
21553 * window.h (struct window): Replace field too_small_ok by field
21554 resize_proportionally.
21555
21556 * window.c (make_window): Initialize resize_proportionally.
21557 (enlarge_window): Temporarily set resize_proportionally to make
21558 sure that shrink_windows does scale the window proportionally.
21559 (shrink_windows): When window has resize_proportionally set try
21560 to shrink it proportionally by stealing from other windows.
21561 (struct saved_window, Fset_window_configuration)
21562 (compare_window_configurations): Handle resize_proportionally.
21563 (WINDOW_TOTAL_SIZE): New macro.
21564 (window_min_size, shrink_windows, size_window): Use it.
21565 (check_min_window_sizes): Remove. Invalid values of
21566 window-min-height|width are handled by window_min_size_2 now.
21567 (size_window, Fsplit_window, enlarge_window)
21568 (adjust_window_trailing_edge, grow_mini_window): Don't call
21569 check_min_window_sizes.
21570 (window_min_size_2, window_min_size_1, window_min_size):
21571 New argument safe_p for retrieving "safe" minimum sizes.
21572 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21573 (adjust_window_trailing_edge, grow_mini_window):
21574 Adjust arguments of window_min_size... functions.
21575 (shrink_windows): Argument min_size removed. New argument
21576 safe_p allows shrinking windows to their safe minimum sizes.
21577 Calculate minimum size and decide whether a window shall be
21578 deleted for each window individually.
21579 (size_window): When nodelete_p equals 2, tell shrink_windows to
21580 delete windows only if their new minimum size is no more safe.
21581 (shrink_window_lowest_first): Call window_min_size_1 to make
21582 sure to preserve modeline of bottom-most window when resizing
21583 the minibuffer.
21584 (Fset_window_configuration, Fcurrent_window_configuration)
21585 (compare_window_configurations): Do not handle
21586 window-min-height|width any more.
21587 (syms_of_window): Clarify window-min-height|width doc-strings.
21588
215892008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21590
21591 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21592 some more. Copy some of the code from Ftry_completions.
21593 Remove special case code that dates back to initial revision when the
21594 slash was only added when necessary and that can't trigger nowadays.
21595
215962008-04-27 Kenichi Handa <handa@m17n.org>
21597
21598 * font.c (font_prop_validate): Signal `error' instead of `font'.
21599
216002008-04-29 Jason Rumney <jasonr@gnu.org>
21601
21602 * w32fns.c (Fw32_battery_status): New defun.
21603 (syms_of_w32fns): Defsubr it.
21604
216052008-04-28 Andreas Schwab <schwab@suse.de>
21606
21607 * dired.c (file_name_completion): Fix another mixing of encoded
21608 and decoded names.
21609
216102008-04-28 Juanma Barranquero <lekktu@gmail.com>
21611
21612 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21613
216142008-04-27 Juanma Barranquero <lekktu@gmail.com>
21615
21616 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21617
216182008-04-27 Andreas Schwab <schwab@suse.de>
21619
21620 * dired.c (file_name_completion): Fix inappropriate mixing of
21621 encoded and decoded names.
21622
21623 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21624
21625 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21626
216272008-04-26 Eli Zaretskii <eliz@gnu.org>
21628
21629 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21630 2008-03-31, it's not needed anymore with `struct stat' definition
21631 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21632 for the same reasons.
21633
216342008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21635
21636 * m/sparc.h: Additional redefinitions for GNU/Linux.
21637
216382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21639
21640 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21641 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21642 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21643 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21644 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21645 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21646 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21647 Likewise.
21648
21649 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21650 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21651 (mac_ax_number_of_characters): Add externs.
21652 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21653 [USE_MAC_TSM]: Likewise.
21654 (mac_handle_text_input_event) [MAC_OSX]:
21655 Handle kEventTextInputOffsetToPos for no active input area case.
21656 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21657 (mac_handle_document_access_event)
21658 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21659 (install_application_handler) [MAC_OSX]: Register handlers for
21660 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21661 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21662 Register mac_handle_document_access_event.
21663
21664 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21665 Make functions non-static.
21666
216672008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21668
21669 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21670 (read_file_name_completion_ignore_case, insert_default_directory)
21671 (Qdefault_directory): Move to minibuffer.el.
21672 (Fread_file_name): Call the new `read-file-name' instead.
21673
216742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21675
21676 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21677 Make function non-static.
21678 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21679 Remove function.
21680 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21681 Move to mactoolbox.c.
21682 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21683
21684 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21685 (mac_rect_make): New macro.
21686
21687 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21688 instead of float.
21689 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21690 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21691 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21692 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21693 CGRectMake.
21694 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21695 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21696 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21697 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21698 instead of WindowRef in argument type.
21699 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21700 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21701 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21702 instead of DISPLAY. All uses changed.
21703 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21704 (x_calc_absolute_position): Simplify so as not to use
21705 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21706
21707 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21708 instead of WindowRef in argument type.
21709 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21710 [TARGET_API_MAC_CARBON]: Remove externs.
21711 (create_apple_event, mac_event_parameters_to_lisp)
21712 [TARGET_API_MAC_CARBON]: Add externs.
21713
21714 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21715 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21716 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21717 is clicked.
21718 (x_activate_menubar): Remove extern for saved_menu_event_location.
21719 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21720 Move from mac.c.
21721
217222008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21723
21724 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21725 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21726
217272008-04-23 Jason Rumney <jasonr@gnu.org>
21728
21729 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21730 attributes only for local files.
21731
21732 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21733 default to Qlocal.
21734
217352008-04-22 Juri Linkov <juri@jurta.org>
21736
21737 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21738 read-buffer-to-switch instead of using the letter "B".
21739
217402008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21741
21742 * fileio.c (Qdefault_directory): New variable.
21743 (Fread_file_name): Use it to pass `dir' to the completion functions.
21744
217452008-04-20 Chong Yidong <cyd@stupidchicken.com>
21746
21747 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21748
217492008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21750
21751 * keyboard.c (Vpre_help_message): Remove.
21752 (show_help_echo): Remove default C code.
21753
21754 * dired.c (directory_files_internal, file_name_completion):
21755 Only call ENCODE_FILE if the string is indeed decoded.
21756
217572008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21758
21759 * Makefile.in (TOOLKIT_DEFINES): Remove.
21760 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21761
217622008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21763
21764 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21765 (mactoolbox.o): New target.
21766
21767 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21768 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21769
21770 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21771 Use mac_set_frame_window_background instead of XSetWindowBackground.
21772 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21773 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21774 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21775 instead of SetWindowTitleWithCFString.
21776 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21777 Move function to mactoolbox.c.
21778 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21779 Use mac_set_window_modified instead of SetWindowModified.
21780 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21781 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21782 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21783 FrontNonFloatingWindow. Use mac_activate_window instead of
21784 ActivateWindow. Use mac_active_non_floating_window instead of
21785 ActiveNonFloatingWindow.
21786 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21787 Use mac_show_hourglass and mac_hide_hourglass.
21788 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21789 instead of GetGlobalMouse.
21790 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21791 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21792 Use mac_bring_window_to_front instead of BringToFront.
21793 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21794 mactoolbox.c.
21795 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21796 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21797 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21798 mactoolbox.c.
21799
21800 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21801 (XtPointer): Move typedef from macmenu.c.
21802 (enum button_type): Move enum from macmenu.c.
21803 (widget_value): Move typedef from macmenu.c.
21804 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21805 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21806 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21807 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21808 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21809 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21810 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21811 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21812 (Selection): Move typedef from macselect.c.
21813 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21814 macterm.c.
21815 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21816 (mac_is_window_collapsed, mac_bring_window_to_front)
21817 (mac_send_window_behind, mac_hide_window, mac_show_window)
21818 (mac_collapse_window, mac_front_non_floating_window)
21819 (mac_active_non_floating_window, mac_activate_window)
21820 (mac_move_window_structure, mac_move_window, mac_size_window)
21821 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21822
21823 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21824 (enum mac_menu_kind): Move enum to mactoolbox.c.
21825 (min_menu_id): Move variable to mactoolbox.c.
21826 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21827 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21828 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21829 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21830 [TARGET_API_MAC_CARBON]: Likewise.
21831 (XtPointer): Move typedef to macgui.h.
21832 (enum button_type): Move enum to macgui.h.
21833 (widget_value): Move typedef to macgui.h.
21834 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21835 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21836 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21837 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21838 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21839 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21840 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21841 (popup_activated_flag): Make variable non-static.
21842 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21843 (add_menu_item, fill_menu, dispose_menus):
21844 Move functions to mactoolbox.c.
21845 (restore_show_help_function, menu_target_item_handler)
21846 (install_menu_target_item_handler, mac_handle_dialog_event)
21847 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21848 [TARGET_API_MAC_CARBON]: Likewise.
21849 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21850 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21851 (find_and_call_menu_selection, name_is_separator): Make function
21852 non-static.
21853 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21854 to mactoolbox.c.
21855 (set_frame_menubar): Don't call install_menu_quit_handler.
21856 (menu_item_selection): New variable.
21857 (mac_menu_show): Use create_and_show_popup_menu.
21858 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21859 selection but set variable menu_item_selection. All uses changed.
21860 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21861 Call install_menu_quit_handler. Move to mactoolbox.c.
21862
21863 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21864 (Selection): Move typedef to macgui.h.
21865 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21866 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21867 Make variables non-static.
21868 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21869 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21870 Make functions non-static.
21871 (Vmac_service_selection) [MAC_OSX]: Likewise.
21872 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21873 (mac_valid_selection_target_p, mac_clear_selection)
21874 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21875 (mac_put_selection_value, mac_selection_has_target_p)
21876 (mac_get_selection_value, mac_get_selection_target_list)
21877 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21878 Move functions to mactoolbox.c.
21879 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21880 Likewise.
21881 (copy_scrap_flavor_data, mac_handle_service_event)
21882 (install_service_handler) [MAC_OSX]: Likewise.
21883 (syms_of_macselect) <Vmac_dnd_known_types>:
21884 Use mac_dnd_default_known_types.
21885
21886 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21887 Move to mactoolbox.c.
21888 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21889 (Fx_selection_owner_p): Add EXFUN.
21890 (install_window_handler, remove_window_handler, XSetWindowBackground):
21891 Remove externs.
21892 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21893 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21894 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21895 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21896 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21897 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21898 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21899 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21900 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21901 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21902 (mac_valid_selection_target_p, mac_clear_selection)
21903 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21904 (mac_put_selection_value, mac_selection_has_target_p)
21905 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21906 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21907 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21908 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21909 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21910 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21911 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21912 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21913 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21914
21915 * mactoolbox.c: New file.
21916
219172008-04-18 Jason Rumney <jasonr@gnu.org>
21918
21919 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21920
219212008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21922
21923 * character.c (Fmultibyte_char_to_unibyte):
21924 Return latin1 chars unchanged.
21925
21926 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21927 relocated if it points to `name'.
21928
219292008-04-17 Kenichi Handa <handa@m17n.org>
21930
21931 * data.c (Faset): Allow setting a multibyte character in an
21932 ASCII-only unibyte string.
21933
21934 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21935
219362008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21937
21938 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21939 done in config.h.
21940
219412008-04-16 Juanma Barranquero <lekktu@gmail.com>
21942
21943 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21944 (Fchar_direction): Add usage in the docstring.
21945
219462008-04-15 Chong Yidong <cyd@stupidchicken.com>
21947
21948 * keyboard.c (read_key_sequence): Remove always-true checks.
21949
219502008-04-14 Jason Rumney <jasonr@gnu.org>
21951
21952 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21953 compatibility struct, for better underline positioning.
21954
219552008-04-13 David Hansen <david.hansen@gmx.net>
21956
21957 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21958 string.
21959
219602008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21961
21962 * m/hp800.h (XUINT, XSET): Remove.
21963
219642008-04-12 Juanma Barranquero <lekktu@gmail.com>
21965
21966 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21967 previous change.
21968
219692008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21970
21971 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21972 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21973
219742008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21975
21976 * keymap.h (map_keymap_canonical): Declare.
21977 * xmenu.c (single_keymap_panes): Use it.
21978
219792008-04-11 Glenn Morris <rgm@gnu.org>
21980
21981 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21982 set the target's value to that of the alias.
21983
219842008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21985
21986 * term.c (set_tty_color_mode): Left over typo.
21987
219882008-04-10 Michael Albinus <michael.albinus@gmx.de>
21989
21990 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21991 only after check for file name handler functions. Signal, when
21992 native functionality is not supported.
21993 (syms_of_fileio): Declare it unconditionally.
21994
219952008-04-10 Jason Rumney <jasonr@gnu.org>
21996
21997 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21998 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21999
22000 * w32.c (logon_network_drive): Also logon to remote drives that
22001 are mapped to drive letters.
22002
220032008-04-10 Glenn Morris <rgm@gnu.org>
22004
22005 * xdisp.c (truncate-partial-width-windows): Doc fix.
22006
220072008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22008
22009 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22010 Move functions to minibuffer.el.
22011 (syms_of_fileio): Don't declare them.
22012
220132008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22014
22015 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22016 (syms_of_minibuf): Remove its initialization.
22017
22018 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22019
220202008-04-09 Juanma Barranquero <lekktu@gmail.com>
22021
22022 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22023
220242008-04-09 Jason Rumney <jasonr@gnu.org>
22025
22026 * makefile.w32-in (distclean): Delete makefile too.
22027 (maintainer-clean): New target.
22028
22029 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22030
22031 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22032 for new font backend and composite cases.
22033
220342008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22035
22036 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22037 Most of the code moved to run_timers.
22038 (do_pending_atimers): Call run_timers.
22039 (run_timers): New function.
22040
22041 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22042 run atimers.
22043
22044 * process.c (wait_reading_process_output): The same as above.
22045
220462008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22047
22048 * minibuf.c (last_exact_completion): Remove variable.
22049 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22050 (complete_and_exit_1, complete_and_exit_2)
22051 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22052 (Fdisplay_completion_list, display_completion_list_1)
22053 (Fminibuffer_completion_help, Fself_insert_and_exit)
22054 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22055 minibuffer.el.
22056 (syms_of_minibuf): Remove corresponding initializations.
22057
22058 * keyboard.c (Qdeactivate_mark): New var.
22059 (command_loop_1): Use it to call `deactivate-mark'.
22060 (syms_of_keyboard): Initialize it.
22061
22062 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22063 to another frame.
22064 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22065 Don't call set_tty_color_mode.
22066 (store_frame_param): Reset previous_frame rather than call
22067 set_tty_color_mode.
22068 * term.c (set_tty_color_mode): Rewrite.
22069 * dispextern.h (set_tty_color_mode): New type.
22070 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22071
220722008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22073
22074 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22075 for generic chars, which do not exist any more in emacs-unicode.
22076
220772008-04-08 Michael Albinus <michael.albinus@gmx.de>
22078
22079 * coding.c (detect_coding_emacs_mule)
22080 (Ffind_operation_coding_system): Fix typo.
22081
220822008-04-08 Jason Rumney <jasonr@gnu.org>
22083
22084 * w32uniscribe.c (SNAME): Extract only symbol name.
22085
22086 * w32font.h (struct w32_metric_cache): New struct.
22087 (w32font_info): Use it.
22088 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22089 (CACHE_BLOCKSIZE): New constants.
22090
22091 * w32font.c (Qja, Qko, Qzh): New symbols.
22092 (syms_of_w32font): Initialise them.
22093 (font_matches_spec): Use them to filter by language.
22094 (recompute_cached_metrics): Remove function.
22095 (compute_metrics, clear_cached_metrics): New functions.
22096 (w32font_encode_char): Use them to manage metric cache.
22097 (w32font_text_extents): Cache metrics for all glyphs on demand.
22098 Delay converting glyph indices to WORD until needed.
22099 (w32font_open_internal): Initialize metric cache to empty.
22100 (registry_to_w32_charset): Charset should always be a symbol.
22101 (fill_in_logfont, list_all_matching_fonts): Family should
22102 always be a symbol.
22103
221042008-04-06 Jason Rumney <jasonr@gnu.org>
22105
22106 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22107 Give up if glyph indices not supported. Use uniscribe obtained
22108 ABC widths for individual metrics. Map glyph clusters back to
22109 characters using fClusterStart flag. Return number of glyphs
22110 produced, not chars processed.
22111 (uniscribe_shape): Map char at FROM to current glyph.
22112
221132008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22114
22115 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22116 Use SetMenuItemHierarchicalMenu.
22117
221182008-04-05 Jason Rumney <jasonr@gnu.org>
22119
22120 * image.c (pbm_load): Allow color values up to 65535.
22121 Throw an error if max_color_idx is outside the supported range.
22122 Report an error when image size is invalid.
22123 Read two bytes at a time when raw images have max_color_idx above 255.
22124
aac0c6e3
MR
221252008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22126
22127 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22128 append "CCL: Quitted" when the CCL program is quitted.
22129 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22130
22131 * ccl.h (struct ccl_program): New member quit_silently.
22132
221332008-04-05 Chong Yidong <cyd@stupidchicken.com>
22134
22135 * search.c (compile_pattern_1): Treat non-nil and non-string of
22136 search-spaces-regexp as nil.
22137
22138 * minibuf.c (Fassoc_string): Tweak docstring.
22139
221402008-04-05 Eli Zaretskii <eliz@gnu.org>
22141
22142 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22143 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22144 2008-03-14 to force inode be positive.
22145
22146 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22147 _S_* ones, since we now use our own sys/stat.h.
22148 (stat, fstat): Don't mangle the inode number.
22149 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22150
221512008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22152
22153 * frame.h (struct frame): Give one more bit to `visible' since we use
22154 values larger than 1 to indicate obscured frames on ttys.
22155
22156 * keymap.c (Qkeymap_canonicalize): New var.
22157 (Fmap_keymap_internal): New fun.
22158 (describe_map): Use keymap-canonicalize.
22159
22160 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22161 (Fundo_boundary): Set them.
22162 (syms_of_undo): Initialize them.
22163 (record_point): Use them instead of last_point_position*.
22164 (last_undo_buffer): Change type.
22165
221662008-04-04 Jason Rumney <jasonr@gnu.org>
22167
22168 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22169 (recompute_cached_metrics): Don't set ascent and descent per char.
22170
22171 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22172 (uniscribe_check_otf): Add GC protection before consing.
22173 Rearrange loop for counting features.
22174
221752008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22176
22177 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22178 buffer with byte-size of source buffer.
22179
221802008-04-03 Chong Yidong <cyd@stupidchicken.com>
22181
22182 * callint.c (Fcall_interactively): Handle temporary region even
22183 when shift-select-mode is off.
22184
221852008-04-03 Jason Rumney <jasonr@gnu.org>
22186
22187 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22188
221892008-04-03 Kenichi Handa <handa@m17n.org>
22190
22191 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22192 (CATEGORY_MASK_UTF_16): Likewise.
22193 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22194 binary file.
22195 (detect_coding): Add null-byte detection for a binary file.
22196 (detect_coding_system): Likewise.
22197
221982008-04-03 Jason Rumney <jasonr@gnu.org>
22199
22200 * w32uniscribe.c: New file.
22201
22202 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22203
22204 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22205
22206 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22207 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22208 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22209 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22210 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22211 (Qphonetic): New symbols.
22212 (syms_of_w32font): Initialize them.
22213 (font_supported_scripts): Use them.
22214 (w32font_list_family): List all charsets.
22215 (w32font_text_extents, recompute_cached_metrics): Fix metric
22216 calculations.
22217 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22218 Give opentype fonts their own format.
22219 (font_matches_spec): New arguments backend and logfont.
22220 Handle :otf spec for uniscribe backend.
22221 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22222 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22223
22224 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22225 font backend.
22226 (globals_of_w32fns): Initialize uniscribe font backend.
22227
22228 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22229 dependencies.
22230 (w32uniscribe.$(O)): New file to build.
22231 (FONT_OBJ): Include w32uniscribe.$(O).
22232 (LIBS): Add uniscribe libraries.
22233
22234 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22235
222362008-04-02 Chong Yidong <cyd@stupidchicken.com>
22237
22238 * callint.c (Vshift_select_mode): New var.
22239 (Finteractive): Document new ^ spec.
22240 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22241 is present.
22242
22243 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22244 (command_loop_1): Avoid running the direct display versions of
22245 forward-char and backward-char if shift-selection may occur.
22246 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22247 shift-translation takes place.
22248
22249 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22250 avoid clobbering by define-minor-mode.
22251
22252 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22253 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22254
22255 * syntax.c (Fforward_word): Add ^ interactive spec.
22256
22257 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22258 (Fscroll_right): Add ^ interactive spec.
22259
222602008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22261
22262 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22263
22264 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22265
22266 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22267
222682008-03-31 Juri Linkov <juri@jurta.org>
22269
22270 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22271
222722008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22273
22274 * gtkutil.c (xg_set_geometry): Fix indentation.
22275 (xg_resize_outer_widget): Remove.
22276 (x_wm_size_hint_off): Fix indentation.
22277 (xg_frame_set_char_size): Call flush_and_sync after
22278 gtk_window_resize.
22279 (x_wm_set_size_hint): Pass NULL as geometry window to
22280 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22281 Add menu bar and tool bar height to base height.
22282 (xg_update_frame_menubar, free_frame_menubar)
22283 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22284 (update_frame_tool_bar, free_frame_tool_bar):
22285 Change xg_resize_outer_widget to xg_frame_set_char_size.
22286
222872008-03-30 Michael Albinus <michael.albinus@gmx.de>
22288
22289 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22290 (Fdbus_call_method): New parameter TIMEOUT.
22291 (dbus-send-signal): Optimize UNGCPRO call.
22292
222932008-03-29 Juri Linkov <juri@jurta.org>
22294
22295 * window.c (Fdisplay_buffer): Move call to
22296 Vsplit_window_preferred_function out of conditions that check
22297 if window is eligible for vertical splitting.
22298 When Vsplit_window_preferred_function is non-nil, call it and use
22299 its non-nil return value as window. Otherwise, continue doing
22300 vertical splitting using Fsplit_window with arg horflag=nil.
22301 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22302 default value from `split-window' to nil.
22303
223042008-03-29 Juri Linkov <juri@jurta.org>
22305
22306 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22307 for interactive code letters 'b' and 'B'.
22308
223092008-03-29 Eli Zaretskii <eliz@gnu.org>
22310
22311 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22312 multibyte string.
22313
223142008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22315
22316 * keyboard.c (pending_funcalls): New var.
22317 (timer_check): Run it.
22318 (syms_of_keyboard): Initialize it.
22319 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22320 (Vdelete_terminal_functions): New vars.
22321 (syms_of_terminal): Initialize them.
22322 (Fdelete_terminal): Run delete-terminal-functions.
22323 * xdisp.c (safe_eval): Rewrite.
22324 (safe_call2): New fun.
22325 * frame.c (Qdelete_frame_functions): New var.
22326 (syms_of_frame): Initialize it.
22327 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22328 * lisp.h (safe_call2, pending_funcalls): Declare.
22329
223302008-03-28 Andreas Schwab <schwab@suse.de>
22331
22332 * indent.c (Fmove_to_column): Move declaration before statements.
22333
223342008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22335
22336 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22337 (struct frame): Use bit fields for boolean vars.
22338
22339 * process.c (server_accept_connection): Simplify naming.
22340 (emacs_get_tty_pgrp): Use SDATA.
22341
22342 * coding.c (decode_coding_object): Fix last change.
22343
223442008-03-27 Jason Rumney <jasonr@gnu.org>
22345
22346 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22347
223482008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22349
22350 * charset.c (Fdefine_charset_internal): Change the way of
22351 registering charsets in Vcharset_order_list.
22352 (syms_of_charset): Make the charset `eight-bit' supplementary.
22353
223542008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22355
22356 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22357 operations, to avoid having the difference between pointers
22358 overflow.
22359
223602008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22361
22362 * indent.c (check_display_width): New fun.
22363 (scan_for_column): Use it.
22364
22365 * data.c (syms_of_data): Mark most-positive-fixnum and
22366 most-negative-fixnum as constants.
22367
22368 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22369
22370 * indent.c (scan_for_column): Extract from current_column_1.
22371 Merge with the same code from Fmove_to_column.
22372 (current_column_1, Fmove_to_column): Use it.
22373
223742008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22375
22376 * keymap.c (map_keymap_internal): New fun.
22377 (map_keymap): Use it.
22378 (Fmap_keymap_internal): New fun.
22379 (Fmap_keymap): Remove left-out test from before make_save_value.
22380
22381 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22382
22383 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22384 Use XCAR/XCDR.
22385
22386 * process.h (struct Lisp_Process): Remove filter_multibyte.
22387 * process.c (QCfilter_multibyte): Remove.
22388 (setup_process_coding_systems): Don't use filter_multibyte.
22389 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22390 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22391 (Fset_process_filter_multibyte): Change the coding-system to
22392 approximate the previous behavior.
22393 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22394 coding-system.
22395
22396 * coding.c (decode_coding_object): When not decoding into a buffer,
22397 obey the coding system's preference of (uni|multi)byte.
22398
223992008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22400
22401 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22402 every char is changed and has a different byte-length.
22403 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22404 Fix int -> EMACS_INT.
22405
224062008-03-23 David Hansen <david.hansen@gmx.net>
22407
22408 * dbusbind.c (xd_read_message): Remove extra copying of message
22409 strings. Check for NULL `interface' or `member'.
22410
224112008-03-22 Eli Zaretskii <eliz@gnu.org>
22412
22413 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22414 cFileName a file name that includes `?' characters, use the 8+3
22415 alias in cAlternateFileName instead.
22416
224172008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22418
22419 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22420
224212008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22422
22423 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22424 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22425 work on current_buffer only instead (that was already the case
22426 for some of the code anyway).
22427 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22428 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22429 (SET_PT, SET_PT_BOTH): Adjust.
22430 * intervals.h (set_point, temp_set_point, set_point_both)
22431 (temp_set_point_both): Remove redundant declarations.
22432
224332008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22434
22435 * fileio.c (Finsert_file_contents):
22436 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22437 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22438 when buffer != current_buffer anyway.
22439
224402008-03-20 Andreas Schwab <schwab@suse.de>
22441
22442 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22443 as default.
22444
224452008-03-19 Jason Rumney <jasonr@gnu.org>
22446
22447 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22448 (syms_of_w32fns): Initialize them.
22449 (HOURGLASS_ID): New constant.
22450 (x_window_to_frame): Don't check hourglass_window.
22451 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22452 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22453 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22454 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22455 Only change the cursor if hourglass is not active.
22456 (Fx_create_frame): Initialize frame's current_cursor.
22457 (hourglass_atimer): Remove.
22458 (hourglass_started): New function.
22459 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22460 (show_hourglass): Adapt to w32, changing argument to frame.
22461
22462 * w32term.h (struct w32_output): Remove hourglass_window.
22463 Add current_cursor.
22464
22465 * eval.c (call_debugger, Fsignal):
22466 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22467 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22468 (Fexecute_extended_command, cancel_hourglass_unwind):
22469 * minibuf.c (read_minibuf):
22470 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22471
224722008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22473
22474 * window.c (run_funs): New fun.
22475 (run_window_configuration_change_hook): Use it to run the buffer-local
22476 and the global part of the hook.
22477
22478 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22479 (unwind_format_mode_line): Restore selected window.
22480 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22481
224822008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22483
22484 * editfns.c (Fchar_equal): Check they are valid characters.
22485
22486 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22487
224882008-03-17 Andreas Schwab <schwab@suse.de>
22489
22490 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22491 against a charset.
22492
22493 * lisp.h (Fbuffer_list): Declare.
22494
224952008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22496
aac0c6e3
MR
22497 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22498 handlebox_widget is != 0.
22499
225002008-03-16 Juri Linkov <juri@jurta.org>
22501
22502 * callint.c (Fcall_interactively): For interactive code letters
22503 'b' and 'B' put the buffer list into the list of default "future"
22504 values of the minibuffer.
22505
225062008-03-16 Andreas Schwab <schwab@suse.de>
22507
22508 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22509 modifiers.
22510
22511 * regex.c (re_match_2_internal): Correct matching of a charset
22512 against latin-1 characters.
22513
225142008-03-16 Kenichi Handa <handa@m17n.org>
22515
22516 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22517 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22518 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22519 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22520 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22521 CHAR_STRING_ADVANCE.
22522 (produce_chars): Fix for the case that the source and the
22523 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22524 instead of CHAR_STRING_ADVANCE.
22525 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22526 STRING_CHAR_ADVANCE.
22527
225282008-03-15 Andreas Schwab <schwab@suse.de>
22529
22530 * regex.c (re_match_2_internal): Correct matching of eight bit
22531 characters in unibyte strings.
22532
225332008-03-15 Martin Rudalics <rudalics@gmx.at>
22534
22535 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22536 at end of range when it coincides with the end of the buffer.
22537
225382008-03-14 Eli Zaretskii <eliz@gnu.org>
22539
22540 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22541
22542 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22543
225442008-03-14 Jason Rumney <jasonr@gnu.org>
22545
22546 * editfns.c (initial_tz): New variable.
22547 (syms_of_editfns): Initialize it.
22548 (Fset_time_zone_rule): Set it when first called.
22549 Use it when TZSTRING is nil.
22550
22551 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22552 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22553 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22554 (globals_of_w32fns): Initialize them.
22555 (compute_tip_xy): Use them to position tooltips.
22556
225572008-03-14 Glenn Morris <rgm@gnu.org>
22558
22559 * emacs.c (main): Revert previous change.
22560 (standard_args): Revert -internal-script back to -scriptload,
22561 and remove the long-option form.
22562
225632008-03-13 Glenn Morris <rgm@gnu.org>
22564
22565 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22566 Remove option -enable-font-backend.
22567
225682008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22569
22570 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22571
225722008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22573
22574 * xterm.c (x_connection_closed): For GTK: If this is the last
22575 terminal just exit without closing the display.
22576
225772008-03-11 Jason Rumney <jasonr@gnu.org>
22578
22579 * w32font.c (w32font_full_name): Use floor to round.
22580
f0131492 225812008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22582
22583 * sound.c (alsa_configure): Declare vol at beginning of block.
22584
22585 * fontset.c (Ffontset_info): Remove extra semicolon.
22586
225872008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22588
22589 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22590 size of resulting string.
22591
225922008-03-10 Jason Rumney <jasonr@gnu.org>
22593
22594 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22595
225962008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22597
22598 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22599 Don't pretend as if characters with display property haven't been
22600 consumed for string-replacing-string case.
22601
226022008-03-08 Kim F. Storm <storm@cua.dk>
22603
22604 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22605 (get_next_display_element, next_element_from_string)
22606 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22607
226082008-03-08 Andreas Schwab <schwab@suse.de>
22609
22610 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22611
226122008-03-06 Jason Rumney <jasonr@gnu.org>
22613
22614 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22615 when charset not specified. Only translate ANSI to unicode when
22616 font_type is truetype.
22617 (w32font_coverage_ok): New function.
22618 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22619
226202008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22621
22622 * lread.c (Fread_char): Resolve modifiers.
22623 (Fread_char_exclusive): Likewise.
22624
22625 * character.c (char_resolve_modifier_mask): New function.
22626 (char_string): Use char_resolve_modifier_mask.
22627 (Fchar_resolve_modifiers): New function.
22628 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22629 function.
22630
226312008-03-04 Jason Rumney <jasonr@gnu.org>
22632
22633 * makefile.w32-in: Always include w32font.c in the build.
22634 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22635
226362008-03-04 Andreas Schwab <schwab@suse.de>
22637
22638 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22639 (versionclean): Likewise.
22640
226412008-03-04 Juanma Barranquero <lekktu@gmail.com>
22642
22643 * .cvsignore: Add oo.
22644
226452008-03-03 Andreas Schwab <schwab@suse.de>
22646
22647 * coding.c (decode_coding_object): Inhibit gap shrinking while
22648 decoding in place.
22649
226502008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22651
22652 * w32term.c: Remove unused include "gnu.h".
22653 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22654
22655 * gnu.h: Rename to ...
22656 * emacs-icon.h: ... this.
22657 * xterm.c: Use emacs-icon.h instead of gnu.h.
22658 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22659
226602008-03-03 Juanma Barranquero <lekktu@gmail.com>
22661
22662 * w32font.c: Include math.h.
22663
226642008-03-03 Jason Rumney <jasonr@gnu.org>
22665
22666 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22667 Compute options separately.
22668 (w32font_open_internal): Set glyph_idx before caching metrics.
22669
22670 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22671 Define if system headers don't.
22672 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22673 (w32font_encode_char): Don't declare here.
22674
22675 * w32font.c (Quniscribe, QCformat): New symbols.
22676 (syms_of_w32font): Define them.
22677 (w32font_has_char): Indicate uncertainty.
22678 (w32font_encode_char): Encode as glyph point. Make static.
22679 (recompute_cached_metrics): New function.
22680 (w32font_open_internal): Use it. Set font to use glyph points
22681 initially. Set format based on type of font.
22682 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22683 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22684 on it. Set format based on information available here.
22685 (add_font_entity_to_list): Identify backend based on opentype_only.
22686
226872008-03-02 Andreas Schwab <schwab@suse.de>
22688
22689 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22690
22691 * coding.c (decode_coding_big5, produce_chars):
22692 Fix typos in last change.
22693
226942008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22695
22696 * gnu.h: New icon.
22697
226982008-03-02 Kenichi Handa <handa@m17n.org>
22699
22700 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22701 `dos', don't decode '\r' if that is the last in the source.
22702 (decode_coding_utf_16, decode_coding_emacs_mule)
22703 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22704 (decode_coding_raw_text, decode_coding_charset): Likewise.
22705 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22706
227072008-03-01 Jason Rumney <jasonr@gnu.org>
22708
22709 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22710
227112008-03-01 Kim F. Storm <storm@cua.dk>
22712
22713 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22714
227152008-03-01 Jason Rumney <jasonr@gnu.org>
22716
22717 * w32font.c (w32font_full_name): New function.
22718 (w32font_open_internal): Use it.
22719
227202008-03-01 Kim F. Storm <storm@cua.dk>
22721
22722 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22723
227242008-03-01 Jason Rumney <jasonr@gnu.org>
22725
22726 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22727
227282008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22729
22730 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22731 xg_frame_resized when the event is for the edit widget.
22732
ef1b0ba7 22733 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
22734
22735 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22736 set_char_size.
ef1b0ba7 22737 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
22738 operations on widgets here. Just set frame size if needed.
22739 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22740 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22741 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22742 the whole frame.
22743 (xg_create_tool_bar): Move attachment of the tool bar to
22744 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22745 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22746
227472008-03-01 Jason Rumney <jasonr@gnu.org>
22748
22749 * w32fns.c (w32_msg_pump): Disable debug code.
22750
227512008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22752
22753 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22754
227552008-02-29 Chong Yidong <cyd@stupidchicken.com>
22756
22757 * xdisp.c (next_overlay_string): Don't set
22758 overlay_strings_at_end_processed_p if we're currently reading from
22759 a display string.
22760
227612008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22762
22763 * xdisp.c (get_overlay_strings_1): Fix typo.
22764
227652008-02-29 Chong Yidong <cyd@stupidchicken.com>
22766
22767 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22768
227692008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22770
22771 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22772
22773 * xdisp.c (display_mode_element): Cancel the previous change.
22774 (decode_mode_spec): Likewise.
22775 (handle_auto_composed_prop): Don't make composition if it->string
22776 is a string.
22777
227782008-02-27 Kim F. Storm <storm@cua.dk>
22779
22780 * lisp.h (GLYPH): Change type from int to struct with separate char
22781 and face_id members.
22782 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22783 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22784 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22785 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22786 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22787 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22788 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22789 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22790 handle new Lisp glyph code encoding, either an integer or a cons.
22791
22792 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22793 (GLYPH_ALIAS): Delete.
22794 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22795 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22796 (GLYPH_FROM_CHAR): Replace macro by ...
22797 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22798
22799 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22800 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22801 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22802 (GLYPH_INVALID_P): New macro.
22803 (spec_glyph_lookup_face): Update prototype.
22804
22805 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22806 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22807 new glyph code encoding.
22808 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22809 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22810
22811 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22812 Adapt to new glyph type and new glyph code encoding.
22813
22814 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22815
22816 * indent.c (current_column, current_column_1, Fmove_to_column)
22817 (compute_motion): Adapt to new glyph code encoding.
22818
22819 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22820
228212008-02-27 Chong Yidong <cyd@stupidchicken.com>
22822
22823 * process.c (wait_reading_process_output): Check for window
22824 changes caused by timers.
22825 Suggested by Johan Bockgård.
22826
228272008-02-27 Glenn Morris <rgm@gnu.org>
22828
22829 * emacs.c (USAGE1): Add `--disable-font-backend'.
22830
228312008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22832
22833 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22834 is made to the buffer.
22835
228362008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22837
22838 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22839 (face_at_string_position):
22840 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22841 (face_at_string_position):
22842 * xdisp.c (display_string, next_overlay_change):
22843 * buffer.h (overlays_at):
22844 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22845 Update callers.
22846
228472008-02-26 Chong Yidong <cyd@stupidchicken.com>
22848
22849 * editfns.c (Fformat): Doc fix.
22850
228512008-02-26 Juanma Barranquero <lekktu@gmail.com>
22852
22853 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22854 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22855 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22856
228572008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22858
22859 * buffer.c (Fbuffer_swap_text): New function.
22860 (syms_of_buffer): Defsubr it.
22861
228622008-02-25 Chong Yidong <cyd@stupidchicken.com>
22863
22864 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22865
228662008-02-25 Jason Rumney <jasonr@gnu.org>
22867
22868 * w32font.c (w32font_draw): Draw one character at a time when padding.
22869
228702008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22871
22872 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22873 Handle a nil arg. Use run_window_configuration_change_hook.
22874 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22875 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22876 Use run_window_configuration_change_hook.
22877
228782008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22879
22880 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22881 1-pixel width.
22882
228832008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22884
22885 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22886 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22887 if the glyph in the font is zero pixel with.
22888
22889 * dispextern.h (struct glyph_string): New member padding_p.
22890
22891 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22892
22893 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22894
22895 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22896
22897 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22898
22899 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22900
229012008-02-25 Jason Rumney <jasonr@gnu.org>
22902
22903 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22904
229052008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22906
22907 Allow fine-grained image-cache flushing.
22908 * dispextern.h (struct image): Add `dependencies' field.
22909 (clear_image_caches): Change arg to Lisp_Object.
22910 * image.c (make_image): Initialize `dependencies' field.
22911 (clear_image_cache): Change arg to allow fine-grained flushing.
22912 Perform the flush even if image-cache-eviction-delay is nil.
22913 (clear_image_caches): Change arg to Lisp_Object.
22914 (Fclear_image_cache): Expand meaning of the argument.
22915 (mark_image): Mark `dependencies' field.
22916 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22917 (lface_hash): Use XHASH rather than XFASTINT.
22918 (face_at_buffer_position): Fix int -> EMACS_INT position.
22919 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22920 (select_frame_for_redisplay): Remove code duplication.
22921 (redisplay_internal): Adapt arg to call to clear_image_caches.
22922
229232008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22924
22925 * s/vms4-0.h:
22926 * s/vms4-2.h:
22927 * s/vms4-4.h:
22928 * s/vms5-5.h: Remove, unused.
22929
22930 * s/irix5-2.h:
22931 * s/irix6-0.h:
22932 * s/riscos5.h:
22933 * s/mach-bsd4-3.h:
22934 * m/mips4.h: Remove files for obsolete systems.
22935
22936 * Makefile.in:
22937 * filelock.c:
22938 * unexmips.c:
22939 * m/hp9000s300.h:
22940 * m/iris4d.h:
22941 * s/aix3-1.h:
22942 * s/hpux.h:
22943 * s/msdos.h:
22944 * s/usg5-0.h:
22945 * s/usg5-2-2.h:
22946 * s/usg5-2.h:
22947 * s/usg5-3.h: Remove references to obsolete variables.
22948
22949 * s/irix5-0.h: Remove, move all the contents ...
22950 * s/irix6-5.h: ... here. Simplify.
22951 * config.in: Regenerate.
22952
229532008-02-24 Jason Rumney <jasonr@gnu.org>
22954
22955 * w32term.c (x_draw_glyph_string_background): Clear the background
22956 manually when cleartype is in use.
22957 (x_draw_glyph_string_foreground): Draw text transparently when
22958 cleartype is in use.
22959
22960 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22961 a font into it unless we have to.
22962
229632008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22964
22965 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22966 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22967
aac0c6e3
MR
229682008-02-18 Jason Rumney <jasonr@gnu.org>
22969
22970 * w32fns.c (Fw32_shell_execute): Encode parameters.
22971
229722008-02-09 Eli Zaretskii <eliz@gnu.org>
22973
22974 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22975
229762008-02-05 Juanma Barranquero <lekktu@gmail.com>
22977
22978 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22979
229802008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22981
22982 * xterm.c (x_set_offset): Don't change the gravity if
22983 CHANGE_GRAVITY is -1.
22984
229852008-02-23 Chong Yidong <cyd@stupidchicken.com>
22986
22987 * fileio.c (auto_save_error_occurred): New var.
22988 (auto_save_error): Set it.
22989 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22990 error occurred.
22991
229922008-02-23 Eli Zaretskii <eliz@gnu.org>
22993
22994 * w32.c (globals_of_w32): Add initializations for
22995 g_b_init_get_sid_sub_authority and
22996 g_b_init_get_sid_sub_authority_count.
22997
229982008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22999
23000 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23001 (font_parse_xlfd): Use them for sanity check.
23002 (Finternal_set_font_style_table): Make sure the table is bijective.
23003
23004 Consolidate the image_cache to the terminal struct.
23005 * termhooks.h (P_): Remove redundant def.
23006 (struct terminal): New field `image_cache'.
23007 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23008 of FRAME_X_IMAGE_CACHE.
23009 * xterm.h (struct x_display_info): Remove image_cache field.
23010 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23011 * w32term.h (struct w32_display_info): Remove image_cache field.
23012 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23013 * macterm.h (struct mac_display_info): Remove image_cache field.
23014 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23015 * xterm.c (x_term_init):
23016 * w32term.c (w32_term_init):
23017 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23018 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23019 Remove declarations.
23020 (clear_image_caches, mark_image_cache): New declarations.
23021 * xfaces.c (clear_face_cache):
23022 * xdisp.c (redisplay_internal): Use clear_image_caches.
23023 * image.c (clear_image_cache): Don't check that a frame is on
23024 a window-system before checking if it shares the same cache.
23025 (clear_image_caches): New function.
23026 (Fclear_image_cache): Use it.
23027 (mark_image): Move from allo.c.
23028 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23029 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23030 (mark_object): Don't call mark_image_cache for frames.
23031 (mark_terminals): Call mark_image_cache.
23032
23033 * lisp.h (Fdelete_terminal): Declare.
23034
23035 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23036 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23037 wrong_type_argument.
23038
230392008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23040
23041 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23042 malayalam.el, and tamil.el. Add sinhala.el.
23043
230442008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23045
23046 * xterm.c (x_connection_closed): Consolidate identical tests.
23047 (x_delete_terminal): Don't crash if called via x_connection_closed.
23048
230492008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23050
23051 * xdisp.c (decode_mode_spec): New arg string.
23052 (display_mode_element): Adjust for the above change.
23053
230542008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23055
23056 * callint.c (Fcall_interactively): Use AREF.
23057
230582008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23059
23060 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23061
230622008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23063
23064 * xfns.c (Fx_show_tip): Set string to " " if empty.
23065
230662008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23067
23068 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23069 with Qt.
23070
230712008-02-17 Kenichi Handa <handa@m17n.org>
23072
23073 * ftfont.c (ftfont_shape): Return Lispy number.
23074
23075 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23076 for GCs.
23077 (Finternal_set_font_selection_order): Call font_update_sort_order
23078 only when enable_font_backend is set.
23079 (realize_x_face): Set face->font_info to that of default face only
23080 when enable_font_backend is set.
23081
23082 * xdisp.c (handle_composition_prop): Set it->c to the fist
23083 character of the composed region.
23084 (fill_composite_glyph_string): Set base_face->font_info to
23085 s->font_info. Get a face for ascii from base_face->ascii_face.
23086 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23087 with a face already decided.
23088 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23089 non-negative.
23090 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23091 call font_prepare_composition unconditionally.
23092
23093 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23094
23095 * xterm.h (struct x_display_info): New member font.
23096
23097 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23098 (x_set_mouse_face_gc, x_new_font): Likewise.
23099 (x_term_init): Setup display_info->font.
23100 (x_delete_terminal): Free display_info->font.
23101
23102 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23103
23104 * ftxfont.c (ftxfont_default_fid): Delete it.
23105 (ftxfont_open): Set xfont->fid to 0.
23106 (ftxfont_end_for_frame): Clear data specific to the frame and the
23107 font-driver.
23108
23109 * xftfont.c (xftfont_default_fid): Delete it.
23110 (xftfont_open): Set xfont->fid to 0.
23111
23112 * fontset.c (FONTSET_OBJLIST): New macro.
23113 (fontset_find_font): Update font-object list of the fontset.
23114 (free_realized_fontset): New function.
23115 (free_face_fontset): Call free_realized_fontset.
23116 (Ffont_info): Call font_close_object only when enable_font_backend
23117 is set.
23118
23119 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23120 [HAVE_NTGUI]: Include w32term.h.
23121 [MAC_OS]: Include macterm.ch.
23122 (font_otf_ValueRecord): Use make_number.
23123 (font_finish_cache): Fix handling of reference count.
23124 (font_clear_cache): Update num_fonts.
23125 (font_open_entity): Update smallest_char_width and
23126 smallest_font_height of the frame.
23127 (font_close_object): Update num_fonts.
23128 (Fclear_font_cache): Fix finding the target cache data.
23129
231302008-02-16 Glenn Morris <rgm@gnu.org>
23131
23132 * fontset.c (Finternal_char_font): Fix compilation warning.
23133
231342008-02-16 Eli Zaretskii <eliz@gnu.org>
23135
23136 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23137 instead of char arrays. Enlarge the size of array passed to
23138 get_token_information.
23139
23140 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23141 warnings.
23142
231432008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23144
23145 * .gdbinit: Don't set `args', it breaks gdb --args.
23146
231472008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23148
23149 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23150 within a narrowed buffer.
23151
231522008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23153
23154 * coding.c (decode_coding_object, encode_coding_object):
23155 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23156
231572008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23158
23159 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23160 hardcoding 1.
23161 (detect_coding_system):
23162 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23163 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23164 * insdel.c (insert_from_gap):
23165 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23166 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23167 (string_to_multibyte):
23168 * character.c (chars_in_text, multibyte_chars_in_text):
23169 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23170
23171 * character.h (FETCH_STRING_CHAR_ADVANCE)
23172 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23173 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23174 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23175
23176 * casefiddle.c (casify_region): Only call after-change and composition
23177 functions on the part of the region that was changed.
23178
23179 * keyboard.c (read_avail_input):
23180 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23181
231822008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23183
23184 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23185 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23186
231872008-02-11 Juanma Barranquero <lekktu@gmail.com>
23188
23189 * w32menu.c (push_submenu_start, push_submenu_end)
23190 (push_left_right_boundary, push_menu_pane, push_menu_item):
23191 * keyboard.c (read_key_sequence): Don't pass args with side effects
23192 to AREF, it fails when compiling with -DENABLE_CHECKING.
23193
231942008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23195
23196 * Makefile.in (${lispsource}international/charprop.el):
23197 Delete this target.
23198
23199 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23200 emacs-unicode-2.
23201
232022008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23203
23204 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23205
232062008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23207
23208 * frame.c (Qnoelisp): New symbol.
23209 (syms_of_frame): Initialize it.
23210 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23211 harmless Elisp code, from a strong `force' from x_connection_closed.
23212 * frame.h (Qnoelisp): Declare.
23213 * xterm.c (x_connection_closed): Pass `noelisp'.
23214
23215 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23216 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23217 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23218 rather than `int' for the type of `type'.
23219
232202008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23221
23222 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23223
23224 * Makefile.in (GNUC): Remove support for gcc-1.x.
23225
232262008-02-10 Richard Stallman <rms@gnu.org>
23227
23228 * lisp.h (ASET): Use AREF, not ASLOT.
23229
232302008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23231
23232 * lisp.h (ASET): Check bounds.
23233
232342008-02-10 Glenn Morris <rgm@gnu.org>
23235
23236 * buffer.c (mode-name): Doc fix.
23237
232382008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23239
23240 * Makefile.in:
23241 * emacs.c:
23242 * gmalloc.c:
23243 * keyboard.c:
23244 * lisp.h:
23245 * m/ibm370aix.h:
23246 * process.c:
23247 * regex.c:
23248 * s/hpux.h:
23249 * sysdep.c:
23250 * sysselect.h:
23251 * systty.h:
23252 * unexec.c:
23253 * w32term.c:
23254 * xsmfns.c:
23255 * xterm.c: Remove code that deals with obsolete variables.
23256
23257 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23258
23259 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23260 nothing else needs it anymore.
23261
232622008-02-09 Eli Zaretskii <eliz@gnu.org>
23263
23264 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23265 instead of unibyte_char_to_multibyte.
23266
232672008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23268
23269 * s/gnu-linux.h: Remove commented out code.
23270
23271 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23272
23273 * Makefile.in: Update what RMS says about using autoconf.
23274 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23275 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23276 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23277 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23278
232792008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23280
23281 * keymap.c (Fkey_description): Move side effect outside of macro call.
23282
23283 * xfaces.c (Finternal_make_lisp_face):
23284 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23285
23286 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23287 (syms_of_fontset): Use ASET.
23288
23289 * fns.c (concat): Move side effect outside of macro call.
23290 (hash_clear): Use ASET.
23291
232922008-02-08 Richard Stallman <rms@gnu.org>
23293
23294 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23295 If FORCE, and frame has a surrogate minibuffer for another frame,
23296 delete the other frame first.
23297
232982008-02-07 Timo Savola <timo.savola@iki.fi>
23299
23300 * xterm.c (x_detect_focus_change): Handle embed client message.
23301 (handle_one_xevent): Ditto.
23302 (handle_one_xevent): If embedded and we get a button press/release,
23303 request focus.
23304 (xembed_set_info, xembed_send_message): New functions.
23305 (x_make_frame_visible): Call xembed_set_info if embedded.
23306 (x_make_frame_invisible): Call xembed_set_info if embedded.
23307 (x_term_init): Initialize Xatom_XEMBED.
23308 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23309 (x_iconify_frame): Ditto.
23310
23311 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23312 (enum xembed_info, enum xembed_message, enum xembed_focus)
23313 (enum xembed_modifier, enum xembed_accelerator): New.
23314 (xembed_set_info, xembed_send_message): Declare.
23315 (FRAME_X_EMBEDDED_P): New.
23316
23317 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23318 gtk_plug_new.
23319
23320 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23321 window ID of a frame.
23322 (x_window): Reparent frame if embedded.
23323 (Fx_create_frame): Don't set border width if embedded.
23324
23325 * emacs.c (USAGE3): Add --parent-id.
23326 (standard_args): Ditto.
23327
233282008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23329
23330 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23331
233322008-02-07 Jim Meyering <meyering@redhat.com>
23333
23334 Use "do...while (0)", not "if (1)...else" in macro definitions.
23335 The latter provokes a warning from gcc about the empty else, when
23336 followed by ";". Also, without that trailing semicolon, it would
23337 silently swallow up any following statement.
23338 * syntax.h (SETUP_SYNTAX_TABLE)
23339 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23340 * buffer.h (DECODE_POSITION): Likewise.
23341 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23342 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23343 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23344 (FETCH_CHAR_ADVANCE): Likewise.
23345 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23346
233472008-02-07 Jim Meyering <meyering@redhat.com>
23348
23349 * lread.c [lint]: Don't include <sys/inode.h>.
23350
233512008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23352
23353 * xselect.c (x_handle_dnd_message):
23354 * xmenu.c (digest_single_submenu, xmenu_show):
23355 * xdisp.c (with_echo_area_buffer_unwind_data)
23356 (format_mode_line_unwind_data, unwind_format_mode_line)
23357 (display_menu_bar):
23358 * eval.c (Ffetch_bytecode):
23359 * doc.c (store_function_docstring):
23360 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23361 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23362 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23363
233642008-02-07 Kenichi Handa <handa@m17n.org>
23365
23366 * ftxfont.c (ftxfont_open): Don't set
23367 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23368
23369 * ftfont.c (ftfont_open): Fix previous change.
23370
233712008-02-06 Jason Rumney <jasonr@gnu.org>
23372
23373 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23374 Use cached metrics for ASCII characters.
23375 (w32font_open_internal): Don't set font's owning_frame.
23376 Cache metrics for ASCII characters.
23377
23378 * w32font.h (struct w32font_info): Add ascii_metrics.
23379 Remove owning_frame.
23380
233812008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23382
23383 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23384 to negative value.
23385
23386 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23387
23388 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23389
23390 * charset.c (syms_of_charset): Set QCtest and Qeq.
23391
233922008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23393
23394 * process.c (Fstart_process):
23395 * callproc.c (Fcall_process): Handle the case where
23396 Funhandled_file_name_directory returns nil.
23397
23398 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23399 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23400 * font.c (check_gstring): Use them and AREF to access the vector before
23401 we know it's really a gstring.
23402 (Ffont_shape_text): Fix typo.
46e722a9 23403 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23404
23405 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23406 Declare.
23407
23408 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23409
234102008-02-05 Jason Rumney <jasonr@gnu.org>
23411
23412 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23413 Set smallest_font_height and smallest_char_width in display info.
23414
234152008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23416
23417 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23418
234192008-02-05 Miles Bader <miles@gnu.org>
23420
23421 * xfaces.c (get_lface_attributes, merge_named_face)
23422 (lookup_named_face, lookup_derived_face, realize_named_face):
23423 Revert 2008-02-01 change by cyd@stupidchicken.com.
23424
234252008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23426
23427 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23428 fallback fonts.
23429 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23430
234312008-02-04 Jason Rumney <jasonr@gnu.org>
23432
23433 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23434 set full_name.
23435 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23436
234372008-02-03 Jason Rumney <jasonr@gnu.org>
23438
23439 * makefile.w32-in (OBJ1): Include font.o here.
23440 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23441
234422008-02-02 Jason Rumney <jasonr@gnu.org>
23443
23444 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23445
234462008-02-01 Jason Rumney <jasonr@gnu.org>
23447
23448 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23449
23450 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23451
234522008-02-01 Andreas Schwab <schwab@suse.de>
23453
23454 * Makefile.in (shortlisp, lisp): Update for rename of
23455 ../lisp/language/myanmar.el.
23456
234572008-02-01 Chong Yidong <cyd@stupidchicken.com>
23458
23459 * xfaces.c (get_lface_attributes): Delete function.
23460 (merge_named_face, lookup_named_face, lookup_derived_face)
23461 (realize_named_face): Call lface_from_face_name directly, and use
23462 the fact that merge_face_vectors does not alter its FROM argument.
23463
234642008-02-01 Jason Rumney <jasonr@gnu.org>
23465
23466 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23467 input in the default locale. Handle non-Unicode multibyte input.
23468
234692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23470
23471 * fontset.c (reorder_font_vector): Exclude nil elements from the
23472 font group. Don't try multiple fonts.
23473 (fontset_font): Adjust for the above change.
23474 (Finternal_char_font): Return nil if the found font doesn't
23475 contain the character ch.
23476
23477 * Makefile.in (lisp, shortlisp): Add cham.el.
23478
234792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23480
23481 * font.h (FONTP): Make it return 1 also for a font-object.
23482
23483 * .gdbinit (xfontset): New function.
23484
23485 * font.c (font_find_for_lface): Check if the character C is
23486 supported or not only for the first font.
23487
23488 * fontset.c (reorder_font_vector): Fix typo.
23489 (fontset_find_font): Don't add a font-spec specifying a script.
23490 Use 0 (not Qt) for the indication of empty font-group. Change the
23491 format of RFONT-DEF. Return Qt if no font in the font-group
23492 support the character.
23493 (fontset_font): Adjust for the above change. If no font was
23494 found the character, remember that.
23495 (face_for_char): Adjust for the change of RFONT-DEF.
23496 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23497 no font for the target.
23498 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23499
235002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23501
23502 * font.c (font_load_for_face): Handle the case that the font in
23503 face->lface is a string.
23504
235052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23506
23507 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23508
235092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23510
23511 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23512 Fix previous change. If the frame is not on a window system,
23513 signal an error.
23514
235152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23516
bba3e508
SM
23517 * coding.c (decode_coding_object, encode_coding_object):
23518 Adjust marker positions after conversion.
aac0c6e3
MR
23519
23520 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23521
235222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23523
23524 * font.c (font_find_for_lface): Fix the handling of the return
23525 value of font_has_char.
23526 (Ffont_shape_text): Fix previous change.
23527
23528 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23529 (fontset_ref_and_range): Delete it.
23530 (fontset_find_font): Call char_table_ref_and_range instead of
23531 FONTSET_REF_AND_RANGE.
23532 (make_fontset): Don't setup font groups of Latin here.
23533 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23534 (new_fontset_from_font): Make the specified font the default for
23535 all Latin characters.
23536
235372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23538
23539 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23540 is on a window system before accessing the fontset of the frame.
23541
235422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23543
23544 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23545
23546 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23547 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23548
23549 * font.c (Ffont_shape_text): If the font driver doesn't have a
23550 shaper function, make zero-width glyphs to have at least one-pixel
23551 width. Fix setting of `to' field of glyphs.
23552
235532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23554
23555 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23556 glyphs.
23557
23558 * font.h (struct font_driver): Improve docstring of member `shape'.
23559
235602008-02-01 Kenichi Handa <handa@m17n.org>
23561
23562 * composite.c (syms_of_composite): Fix docstring of
23563 auto-composition-function.
23564
23565 * font.h (LGLYPH_SIZE): New macro.
23566
23567 * font.c (Ffont_fill_gstring): Stop filling when a character not
23568 supported by the font is found.
23569 (Ffont_shape_text): When a shape callback function returns nil,
23570 try at most two more times with larger gstring.
23571 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23572
23573 * xdisp.c (handle_auto_composed_prop): Change the argument to
23574 auto-composition-function.
23575
23576 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23577 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23578 Lispy glyph and store it in the lgstring.
23579
23580 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23581
23582 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23583
235842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23585
23586 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23587
23588 * fontset.c (Vfont_encoding_charset_alist): New variable.
23589 (syms_of_fontset): DEFVAR it.
23590 (reorder_font_vector, fontset_find_font): Optimize for the case of
23591 no need of reordering.
23592 (face_for_char): Map the charset property by
23593 Vfont_encoding_charset_alist.
23594
235952008-02-01 Jason Rumney <jasonr@gnu.org>
23596
23597 * w32font.c (logfonts_match): Don't check adstyle here.
23598 (font_matches_spec): Check here against physical font instead.
23599 (add_font_entity_to_list): Avoid some substitutions.
23600
23601 * font.c (font_parse_fcname): Default weight and slant to normal.
23602 (font_score): Prefer normal fonts if weight or slant unspecified.
23603 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23604 match freetype scores.
23605
236062008-02-01 Jason Rumney <jasonr@gnu.org>
23607
23608 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23609 font, as it may have been deleted.
23610 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23611 most common hyphenless variation.
23612 (logfonts_match): Check generic family.
23613 (font_matches_spec): Don't check generic family here.
23614 (fill_in_logfont): Set generic family based on adstyle.
23615
23616 * w32font.h (w32font_get_cache): Update declaration.
23617
236182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23619
23620 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23621
23622 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23623 If none of the new drivers are available, call font_update_drivers
23624 with the old drivers.
23625
23626 * w32font.c (w32font_get_cache): Adjust the argument type.
23627
23628 * xfont.c (xfont_get_cache): Adjust the argument type.
23629
23630 * font.h (struct font_driver): Change argument type of get_cache.
23631
23632 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23633
23634 * font.c (Ffont_get): Fix arguments to Fassoc.
23635 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23636 (font_clear_cache): New function.
23637 (font_list_entities, font_matching_entity): Use font_get_cache.
23638 (font_update_drivers): Call font_clear_cache when finishing a driver.
23639
23640 * fontset.c (fontset_find_font): Fix previous change.
23641
236422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23643
23644 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23645 dpyinfo->font_table.
23646 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23647 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23648
23649 * font.c (font_at): Handle the case that the arg C is negative.
23650 Handle the unibyte case.
23651 (Ffont_at): Call font_at with the arg C -1.
23652
23653 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23654 the position here, and call font_at with the arg C -1.
23655 Don't check the range of the existing composition at the point.
23656
236572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23658
23659 * fontset.c (fontset_add): New args charset_id and family.
23660 Change caller.
23661 (load_font_get_repertory, fontset_find_font): Assume that
23662 font_spec is always a font-spec object.
23663 (Fset_fontset_font): Always store a font-spec object in a fontset.
23664
23665 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23666 instead of get_property_and_range.
23667
236682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23669
23670 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23671 (xftfont_open): Don't keep locking face.
23672 (xftfont_close): Don't unlock face.
23673 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23674
23675 * fontset.c (fontset_find_font): Don't prefer a font of
23676 supplementary charset.
23677
236782008-02-01 Kenichi Handa <handa@m17n.org>
23679
23680 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23681 script, langsys_tag to langsys, new member script.
23682 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 23683 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
23684 listing to the script specified in that property. Fix arg to
23685 OTF_check_features.
23686
236872008-02-01 Jason Rumney <jasonr@gnu.org>
23688
23689 * w32font.h: New file.
23690
23691 * w32font.c: Include it.
23692 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23693 (w32font_open): Set owning_frame.
23694 (w32font_text_extents): Use owning_frame.
23695 (struct font_callback_data): Add opentype_only field.
23696 (add_font_entity_to_list): Use it to filter fonts.
23697 Don't check against full name.
23698 (w32font_list_internal): New function.
23699 (w32font_list): Use it.
23700 (w32font_match_internal): New function.
23701 (w32font_match): Use it.
23702 (w32font_open_internal): New function.
23703 (w32font_open): Use it.
23704 (w32font_get_cache, w32font_close, w32font_has_char)
23705 (w32font_encode_char, w32font_text_extents, w32font_draw):
23706 Make non-static.
23707
23708 * makefile.w32-in (w32font.o): Depend on w32font.h.
23709
237102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23711
23712 * charset.c (Fdefine_charset_internal): Record a supplementary
23713 charset at the tail of Vcharset_order_list.
23714
23715 * font.c (Ffont_shape_text): Fix the return value.
23716
23717 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23718
23719 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23720
237212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23722
23723 * ftfont.c (struct OpenTypeSpec): New struct.
23724 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23725 (ftfont_get_open_type_spec): New function.
23726 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23727
23728 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23729
237302008-02-01 Jason Rumney <jasonr@gnu.org>
23731
23732 * w32font.c (add_font_entity_to_list): Compare only the beginning
23733 of full name.
23734
237352008-02-01 Kenichi Handa <handa@m17n.org>
23736
23737 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23738 Never return HANDLED_RECOMPUTE_PROPS.
23739
237402008-02-01 Kenichi Handa <handa@m17n.org>
23741
23742 * font.c (font_gstring_produce): Delete it.
23743
23744 * composite.h (COMPOSITION_METHOD):
23745 Handle COMPOSITION_WITH_GLYPH_STRING.
23746
237472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23748
23749 * xfont.c (Qx): Delete.
23750 (syms_of_xfont): Don't initialize Qx.
23751
23752 * composite.h (enum composition_method):
23753 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23754
237552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23756
23757 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23758 (choose_face_font): Accept new form of font-spec.
23759
23760 * frame.h (font_driver_list): Declare it unconditionally.
23761 (struct frame): Define members font_driver_list and font_data_list
23762 unconditionally.
23763
23764 * fontset.c: Include "font.h" unconditionally.
23765 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23766 (Fset_fontset_font): Accept a font-spec object.
23767
23768 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23769 PIXEL_SIZE part a wild card.
23770
23771 * dispextern.h (struct glyph_string): Define members clip and
23772 num_clips unconditionally.
23773 (struct face): Define members font_info and extra unconditionally.
23774
23775 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23776 ftfont_info only when HAVE_LIBOTF is defined.
23777
237782008-02-01 Andreas Schwab <schwab@suse.de>
23779
23780 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23781 and end.
23782
237832008-02-01 Jason Rumney <jasonr@gnu.org>
23784
23785 * w32font.c (w32font_driver): Add new fields.
23786
237872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23788
23789 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23790 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23791 (LIBES): Add @M17N_FLT_CFLAGS@.
23792
23793 * composite.c (compose_text): Don't treat the new style
23794 composition specially.
23795
23796 * emacs.c (main): Call syms_of_font unconditionally.
23797
23798 * font.h (FONT_ENTITY_NOT_LOADABLE)
23799 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23800 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23801 (struct font_driver): New member shape.
23802 (font_registry_charsets): Extern it.
23803 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23804 (font_otf_capability, font_drive_otf): Delete their externs.
23805
23806 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23807 (font_charset_alist, font_registry_charsets): Move from xfont.c
23808 and rename.
23809 (font_prop_validate_otf): New function.
23810 (font_property_table): Register it for QCotf.
23811 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23812 (font_drive_otf): Delete.
23813 (font_prepare_composition): New arg F. Adjust for the change of
23814 lispy gstring.
23815 (font_find_for_lface): New arg C.
23816 (font_load_for_face): Adjust for the change of font_find_for_lface.
23817 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23818 lispy gstring.
23819 (Ffont_shape_text): New function.
23820 (Fopen_font): If the font size is not given, use 12-pixel.
23821 (Ffont_at): New arg STRING.
40b1a3a9 23822 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
23823 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23824 conditionally.
23825
23826 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23827 fonts of the same font-spec. Change the format of RFONT-DEF.
23828 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23829 Adjust for the change of RFONT-DEF.
23830 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23831
23832 * ftfont.h: New file.
23833
23834 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23835 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23836 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23837 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23838 font_otf_capability and font_drive_otf, set ftfont_shape.
23839 (ftfont_list): Adjust for the change of :otf property value.
23840 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23841 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23842 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23843 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23844 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23845 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23846
23847 * w32term.c (x_draw_composite_glyph_string_foreground):
23848 Adjust for the change of lispy gstring.
23849
23850 * xdisp.c (handle_composition_prop): Adjust for the change of
23851 lispy gstring. Call a function for auto-composition with the
23852 third arg it->window.
23853 (fill_composite_glyph_string): Adjust for the change of lispy string.
23854 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23855
23856 * xfaces.c (set_font_frame_param): Adjust for the change of
23857 font_find_for_lface.
23858
23859 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23860 (xfont_registry_charsets): Likewise. Change caller.
23861 (syms_of_xfont): Don't handle x_font_charset_alist.
23862
23863 * xftfont.c: Include "ftfont.h".
23864 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23865 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23866 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23867 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23868 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23869 Set xftfont_driver.shape to xftfont_shape.
23870
23871 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23872 the change of lispy gstring.
23873
238742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23875
23876 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23877
238782008-02-01 Jason Rumney <jasonr@gnu.org>
23879
23880 * w32font.c (w32font_draw): Fill background manually.
23881
238822008-02-01 Jason Rumney <jasonr@gnu.org>
23883
23884 * font.c (Qfontp): Remove unused symbol.
23885 (QCantialias): New symbol.
23886 (syms_of_font): Define it.
23887 (font_property_table): Set a validator for QCantialias.
23888
23889 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23890 Define if not already.
23891 (QCfamily): Share with xfaces.c.
23892 (Qstandard, Qsubpixel, Qnatural): New symbols.
23893 (syms_of_w32font): Define them. Don't define QCfamily here.
23894 (w32_antialias_type, lispy_antialias_type): New functions.
23895 (w32_enumfont_pattern_entity): New arg requested_font.
23896 Set antialias parameter if non-default was requested.
23897 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23898
238992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23900
23901 * lread.c (read1): Undo the previous change.
23902
239032008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23904
23905 * frame.c (Fdelete_frame): Call font_update_drivers only when
23906 USE_FONT_BACKEND is defined.
23907
239082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23909
23910 * font.h (struct font_bitmap): New member bits_per_pixel.
23911 (struct font_driver): New members start_for_frame and end_for_frame.
23912 (struct font_data_list): New struct.
23913 (font_put_frame_data, font_get_frame_data): Extern them.
23914
23915 * frame.h (struct frame): New member font_data_list.
23916
23917 * font.c (font_update_drivers): Call driver->start_for_frame and
23918 driver->end_for_frame at proper timings.
23919 (font_put_frame_data, font_get_frame_data): New functions.
23920 (Ffont_spec): Add usage in the docstring.
23921
23922 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23923 (Fdelete_frame): Call font_update_drivers.
23924
23925 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23926 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23927 (xftfont_get_xft_draw): New function.
23928 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23929 (xftfont_end_for_frame): New function.
23930 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23931
23932 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23933 Change argument. Cache GCs in the per-frame data.
23934 (struct ftxfont_frame_data): New struct.
23935 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23936 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23937 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23938 (ftxfont_end_for_frame): New function.
23939 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23940
23941 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23942
239432008-02-01 Kenichi Handa <handa@m17n.org>
23944
23945 * xselect.c (Vselection_coding_system)
23946 (Vnext_selection_coding_system): Delete them.
23947 (syms_of_xselect): Don't declare selection-coding-system and
23948 next-selection-coding-system. They are declared in select.el.
23949
239502008-02-01 Jason Rumney <jasonr@gnu.org>
23951
23952 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23953
23954 * w32fns.c: Include imm.h.
23955 (get_composition_string_fn, get_ime_context_fn): New optional
23956 system functions.
23957 (globals_of_w32fns): Load them from imm32.dll.
23958 (ignore_ime_char): New flag.
23959 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23960 WM_IME_ENDCOMPOSITION messages.
23961
23962 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23963 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23964
239652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23966
23967 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23968 (READCHAR_REPORT_MULTIBYTE): New macro.
23969 (readchar): New 2nd arg MULTIBYTE.
23970 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23971 Make symbol's name multibyte according to the multibyteness of the
23972 source.
23973
239742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23975
23976 * xfaces.c (face_for_overlay_string): Call lookup_face with
23977 correct arguments (fix of synching with the trunk).
23978
239792008-02-01 Kenichi Handa <handa@m17n.org>
23980
23981 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23982 (font_prop_validate_non_neg, font_prop_validate_spacing):
23983 Delete argument prop_index.
23984 (font_property_table): Change arguments to validater. Change Callers.
23985 (font_lispy_object): Delete.
23986 (font_at): Use font_find_object instead fo font_lispy_object.
23987
239882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23989
23990 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23991 and file names.
23992
239932008-02-01 Jason Rumney <jasonr@gnu.org>
23994
23995 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23996 (font_matches_spec): Remove debug output.
23997 (add_font_entity_to_list): Avoid using substituted fonts.
23998
239992008-02-01 Jason Rumney <jasonr@gnu.org>
24000
24001 * doc.c (Fsnarf_documentation):
24002 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24003
240042008-02-01 Miles Bader <miles@gnu.org>
24005
24006 * dispextern.h (struct glyph_row): Only define "clip" field if
24007 HAVE_WINDOW_SYSTEM is defined.
24008
240092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24010
24011 Fix up multi-tty merge.
24012
24013 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24014 and indentation.
24015
24016 * xfaces.c (free_realized_face, clear_face_gcs):
24017 Include font_done_for_face in the input_blocked section, just in case.
24018
24019 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24020 (get_char_face_and_encoding): Undo last change and remove the *other*
24021 duplicate definition (i.e. keep the one that's better scoped and that
24022 includes code for the font-backend).
24023
24024 * terminal.c (create_terminal): Default keyboard_coding to
24025 `no-conversion' and terminal_coding to `undecided'.
24026
24027 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24028
24029 * fontset.c (free_realized_fontsets): Check that the table entry does
24030 contain a fontset before trying to compare it to `base'.
24031
24032 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24033 syms_of_charset, and syms_of_coding earlier because init_window_once
24034 now needs Vcoding_system_hash_table to be setup.
24035
24036 * coding.h (default_buffer_file_coding): Remove.
24037
24038 * coding.c (default_buffer_file_coding): Remove.
24039 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24040 than ->symbol, and use the terminal-local coding system.
24041 (syms_of_coding): Don't setup the coding-systems that are not
24042 terminal-local.
24043 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24044
24045 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24046 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24047
24048 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24049 in chartab.c and were re-added here by mistake.
24050 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24051
24052 * doc.c (Fsnarf_documentation):
24053 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24054 src to etc.
24055
24056 * ChangeLog.10: Add mistakenly removed entry.
24057
240582008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24059
24060 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24061
240622008-02-01 Miles Bader <miles@gnu.org>
24063
24064 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24065 Add extra args to FACE_FOR_CHAR.
24066
240672008-02-01 Kenichi Handa <handa@m17n.org>
24068
24069 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24070 in sequence.
24071
24072 * chartab.c (map_sub_char_table, map_char_table): If the range
24073 contains just one character, call the function with that character
24074 even if the depth is not 3.
24075
240762008-02-01 Jason Rumney <jasonr@gnu.org>
24077
24078 * w32font.c (w32font_text_extents): Calculate metrics for the
24079 whole string.
24080
240812008-02-01 Jason Rumney <jasonr@gnu.org>
24082
24083 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24084
240852008-02-01 Jason Rumney <jasonr@gnu.org>
24086
bba3e508
SM
24087 * w32term.c (x_set_glyph_string_clipping):
24088 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24089 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24090 Adjust for the change of struct glyph_string.
24091
24092 * w32font.c (w32font_draw): Do clipping here.
24093
240942008-02-01 Kenichi Handa <handa@m17n.org>
24095
24096 * xftfont.c (xftfont_draw): Adjust for the change of struct
24097 glyph_string.
24098
bba3e508
SM
24099 * xterm.c (x_set_glyph_string_clipping):
24100 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24101 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24102 Adjust for the change of struct glyph_string.
24103
24104 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24105 the resulting clip(s}.
24106 (expose_overlaps): Add arg r. Change callers. Set it to
24107 row->clip temporarily.
24108 (expose_window): Redraw rows overlapping the exposed area.
24109
24110 * dispextern.h (struct glyph_row): New member clip.
24111 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24112 clip_height, new member clip, and num_clips.
24113
241142008-02-01 Kenichi Handa <handa@m17n.org>
24115
24116 * data.c (Fchar_or_string_p): Fix docstring.
24117
241182008-02-01 Kenichi Handa <handa@m17n.org>
24119
24120 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24121 create a temporary XftDraw object.
24122
241232008-02-01 Kenichi Handa <handa@m17n.org>
24124
24125 * font.c (Ffontp): Fix docstring.
24126
24127 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24128 strong evidence of ISO-2022.
24129
241302008-02-01 Kenichi Handa <handa@m17n.org>
24131
24132 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24133 SYNTAX_ENTRY_FOLLOW_PARENT.
24134
241352008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24136
24137 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24138 its type.
24139 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24140 Update to the new type of weak_hash_tables and next_weak.
24141
24142 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24143 a plain C pointer to Lisp_Hash_Table.
24144
24145 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24146 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24147 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24148 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24149 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24150 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24151 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24152 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24153 (GC_EQ): Remove since they've been identical to their non-GC_
24154 alter-egos ever since the markbit was eradicated.
24155
24156 * alloc.c:
24157 * buffer.c:
24158 * buffer.h:
24159 * data.c:
24160 * fileio.c:
24161 * filelock.c:
24162 * fns.c:
24163 * frame.h:
24164 * lisp.h:
24165 * macterm.c:
24166 * print.c:
24167 * process.c:
24168 * w32fns.c:
24169 * w32menu.c:
24170 * w32term.c:
24171 * xfns.c:
24172 * xmenu.c:
24173 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24174
241752008-02-01 Kenichi Handa <handa@m17n.org>
24176
24177 * chartab.c (map_sub_char_table): Make it work for the top-level
24178 char-table. Fix handling of parent char-table.
24179 (map_char_table): Adjust for the above change.
24180
241812008-02-01 Jason Rumney <jasonr@gnu.org>
24182
24183 * w32font.c (Qgdi): Rename from Qw32.
24184
241852008-02-01 Jason Rumney <jasonr@gnu.org>
24186
24187 * w32bdf.c (get_quoted_string): Make function static.
24188
241892008-02-01 Kenichi Handa <handa@m17n.org>
24190
24191 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24192 bigger ascent and descent than those of the font, use them as
24193 font's ascent and descent.
24194
241952008-02-01 Kenichi Handa <handa@m17n.org>
24196
24197 * Makefile.in (${lispsource}international/charprop.el): Move this
24198 target within "#ifdef HAVE_UNIDATA" and "#endif".
24199
242002008-02-01 Kenichi Handa <handa@m17n.org>
24201
24202 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24203 (shortlisp): Add ../lisp/language/tai-viet.el.
24204
242052008-02-01 Ulrich Mueller <ulm@gentoo.org>
24206
24207 * Makefile.in (${lispsource}international/charprop.el): Depend on
24208 temacs${EXEEXT}.
24209
242102008-02-01 Jason Rumney <jasonr@gnu.org>
24211
24212 * w32font.c (w32font_close): Delete the GDI font object.
24213
24214 * w32menu.c: Include character.h.
24215
24216 * w32proc.c: Likewise.
24217
24218 * w32select.c: Likewise.
24219
24220 * makefile.w32-in (w32proc.o): Depend on character.h.
24221
242222008-02-01 Jason Rumney <jasonr@gnu.org>
24223
24224 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24225
24226 * w32menu.c (syms_of_w32menu): Likewise.
24227
24228 * w32proc.c (syms_of_ntproc): Likewise.
24229
24230 * w32select.c (syms_of_w32select): Likewise.
24231
24232 * w32term.c (syms_of_w32term): Likewise.
24233
242342008-02-01 Jason Rumney <jasonr@gnu.org>
24235
24236 * w32font.c (w32font_draw): Delete brush after using it.
24237
242382008-02-01 Jason Rumney <jasonr@gnu.org>
24239
24240 * w32font.c (w32font_open): Don't set font_idx.
24241 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24242 to font settings.
24243 (w32font_draw): Fill background explicitly.
24244
242452008-02-01 Jason Rumney <jasonr@gnu.org>
24246
24247 * w32term.c (w32_initialize): Don't call w32font_initialize.
24248
24249 * w32font.c (w32font_info): Remove subranges.
24250 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24251 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24252 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24253 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24254 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24255 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24256 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24257 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24258 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24259 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24260 New symbols.
24261 (font_callback_data): New struct.
24262 (w32font_list, w32font_match): Use it.
24263 (w32font_open): Don't populate subranges.
24264 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24265 (w32font_encode_char): Always return unicode code-point as-is.
24266 (w32font_text_extents): Supply a transformation matrix to
24267 GetGlyphOutline. Never look up by glyph index. Avoid looping
24268 twice. Use unicode version of GetTexExtentPoint32 instead of
24269 glyph index version.
24270 (set_fonts_frame): Remove.
24271 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24272 set frame parameter. Use backward compatible fake foundries.
24273 Save generic family in extra slot under QCfamily. Make width slot
24274 constant. Save QCspacing value. Save list of scripts instead of
24275 binary subranges.
24276 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24277 (add_font_entity_to_list): Use font_callback_data struct.
24278 Filter unwanted fonts.
aac0c6e3
MR
24279 (add_one_font_entity_to_list): Use font_callback_data struct.
24280 (w32_registry): Default to iso10646_1.
24281 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24282 string font registries. Don't fill in font name if it is a generic
24283 family name, fill family instead. Use spacing, family and script
24284 extra info to fill pitch, family and charset fields.
24285 (list_all_matching_fonts): Use font_callback_data struct.
24286 (unicode_range_for_char): Remove.
24287 (font_supported_scripts): New function.
24288 (w32font_initialize): Remove.
24289 (syms_of_w32font): Update which symbols are defined.
24290
242912008-02-01 Jason Rumney <jasonr@gnu.org>
24292
24293 * font.c (font_pixel_size): Reverse assq_no_quit args.
24294
24295 * w32term.h (FONT_WIDTH): Report max width, not average.
24296 (FONT_MAX_WIDTH): Remove.
24297 (FONT_AVG_WIDTH): New macro.
24298
24299 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24300 redefinition of FONT_WIDTH.
24301
24302 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24303 (w32_cache_char_metrics): Use FONT_WIDTH.
24304
24305 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24306
243072008-02-01 Jason Rumney <jasonr@gnu.org>
24308
24309 * w32font.c (w32font_open): Make lfHeight negative.
24310
24311 * w32fns.c (x_default_font_parameter): Use new style font name.
24312 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24313
243142008-02-01 Jason Rumney <jasonr@gnu.org>
24315
24316 * w32font.c (QCsubranges): New symbol.
24317 (w32font_open, w32font_has_char): Get subranges from subproperty
24318 of extra.
24319 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24320 (syms_of_w32font): Define :subranges symbol.
24321
24322 * font.c (font_put_extra): Expose externally.
24323
24324 * font.h (font_put_extra): Move declaration from font.c.
24325
24326 * font.c (Ffont_get): Use font driver to determine otf capability.
24327 (adjust_anchor): Check if driver defines anchor_point before using.
24328
24329 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24330 (w32font_draw): Use options.
24331 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24332 Fix detection of truetype fonts.
24333 (registry_to_w32_charset): Handle charsets other than iso8859-1
24334 expressed as lisp symbols.
24335 (w32_registry): Express charset as lisp symbol.
24336 (fill_in_logfont): Reverse pixel and point height logic.
24337 Don't set width here. Set quality to default.
24338
24339 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24340 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24341
24342 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24343 Remove redundant loop and allocation.
24344
24345 * makefile.w32-in (font.o, w32font.o): New objects.
24346 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24347 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24348
24349 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24350 STORE_XCHARB a valid l-value.
24351
24352 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24353 calculations for non-Truetype fonts.
24354 (x_draw_glyph_string): Sync with xterm.c.
24355 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24356 Remove redundant code.
24357 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24358
24359 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24360 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24361
24362 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24363 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24364
24365 * w32font.c: New file for w32 font backend.
24366
243672008-02-01 Kenichi Handa <handa@m17n.org>
24368
24369 * term.c: Don't include "buffer.h" twice.
24370
243712008-02-01 Kenichi Handa <handa@m17n.org>
24372
24373 * character.c (Funibyte_string): New function.
24374 (syms_of_character): Defsubr it.
24375
243762008-02-01 Jason Rumney <jasonr@gnu.org>
24377
24378 * w32term.c [USE_FONT_BACKEND]:
24379 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24380 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24381 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24382 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24383 (x_free_frame_resources): Sync with xterm.c.
24384
243852008-02-01 Andreas Schwab <schwab@suse.de>
24386
24387 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24388 char-table size.
24389
243902008-02-01 Kenichi Handa <handa@m17n.org>
24391
24392 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24393
243942008-02-01 Kenichi Handa <handa@m17n.org>
24395
24396 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24397 font_otf_gpos, add font_drive_otf.
24398
24399 * fontset.c (fontset_find_font): Pay attention to font size
24400 specified for a font.
24401 (reorder_font_vector): Check contents of font_def.
24402
24403 * font.c (struct otf_list): Delete it.
24404 (otf_list): Make it a lisp variable.
24405 (otf_open): Use lispy otf_list.
24406 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24407 (check_otf_features): New function.
24408 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24409 New functions.
24410 (font_drive_otf): New function merging font_otf_gsub and
24411 font_otf_gpos.
24412 (font_open_for_lface): New arg spec. Change argument order.
24413 (font_load_for_face): Adjust for the change of font_open_for_lface.
24414 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24415 Ffont_otf_gpos.
24416 (syms_of_font): Staticpro otf_list. Delete defsubr of
24417 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24418
24419 * xfaces.c (set_font_frame_param): Adjust for the change of
24420 font_open_for_lface.
24421
24422 * font.h (font_open_for_lface): Adjust prototype.
24423 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24424 member otf_drive.
24425 (font_otf_gsub, font_otf_gpos): Delete externs.
24426 (font_drive_otf): Extern it.
24427
244282008-02-01 Kenichi Handa <handa@m17n.org>
24429
24430 * font.c (font_at): If the window W is not on a window system,
24431 return Qnil.
24432
24433 * coding.c (produce_chars, encode_coding): Don't call
24434 insert_from_gap if no characters to produce.
24435
244362008-02-01 Kenichi Handa <handa@m17n.org>
24437
24438 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24439 Fclear_face_cache.
24440
24441 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24442
244432008-02-01 Miles Bader <miles@gnu.org>
24444
24445 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24446 Parse "--disable-font-backend" option.
24447 (standard_args): Add "--disable-font-backend" option.
24448
244492008-02-01 Kenichi Handa <handa@m17n.org>
24450
24451 * fontset.c (fontset_find_font): New function.
24452 (fontset_font): Use fontset_find_font.
24453 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24454 Register the specified font for all Latin characters.
24455 (new_fontset_from_font): Register the specified font for all Latin
24456 characters.
24457 (dump_fontset): For a realized fontset, include the base fontset
24458 name in the returned vector.
24459
244602008-02-01 Kenichi Handa <handa@m17n.org>
24461
24462 * character.h (CHAR_STRING): Cast C to unsigned on calling
24463 char_string.
24464
24465 * character.c (char_string): Type of arg C changed to unsigned.
24466 Signal an error if C is an invalid character code.
24467
24468 * editfns.c (general_insert_function, Fchar_to_string):
24469 Use CHARACTERP, not INTEGERP.
24470
244712008-02-01 Kenichi Handa <handa@m17n.org>
24472
24473 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24474 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24475
24476 * regex.c (analyse_first): Fix for multibyte characters in "case
24477 charset:" and "case categoryspec:".
24478
244792008-02-01 Andreas Schwab <schwab@suse.de>
24480
24481 * Makefile.in (LIBES): Move standard libraries to the end.
24482
244832008-02-01 Kenichi Handa <handa@m17n.org>
24484
24485 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24486 nonzero, don't shrink the buffer nextb.
24487
24488 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24489
24490 * coding.c (coding_alloc_by_making_gap): New arg offset.
24491 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24492 offset.
24493 (decode_coding_iso_2022): Update coding->safe_charsets.
24494 (decode_coding_gap): Temporarily set
24495 current_buffer->text->inhibit_shrinking to 1.
24496
244972008-02-01 Kenichi Handa <handa@m17n.org>
24498
bba3e508
SM
24499 * xterm.c (x_draw_composite_glyph_string_foreground):
24500 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24501
245022008-02-01 Juanma Barranquero <lekktu@gmail.com>
24503
24504 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24505
245062008-02-01 Kenichi Handa <handa@m17n.org>
24507
24508 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24509 target_multibyte instead of multibyte.
24510 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24511 (bcmp_translate): Change the argument name from multibyte to
24512 target_multibyte.
24513
245142008-02-01 Kenichi Handa <handa@m17n.org>
24515
24516 These changes are to compile a regexp into a pattern that can be
24517 used both for multibyte and unibyte targets.
24518
24519 * Makefile.in (search.o): Depend on charset.h.
24520
24521 * character.c (multibyte_char_to_unibyte_safe): New function.
24522
24523 * search.c: Include "charset.h".
24524 (compile_pattern_1): Delete argument multibyte. Don't set
24525 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24526 (compile_pattern): Don't compare cp->buf.target_multibyte.
24527 Compare cp->buf.charset_unibyte.
24528 (compile_pattern): Set cp->buf.target_multibyte.
24529
24530 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24531
24532 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24533
24534 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24535 multibyte. Change callers.
24536 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24537 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24538 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24539 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24540 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24541 (regex_compile): Make the compiled pattern usable both for
24542 multibyte and unibyte targets.
24543 (analyse_first): Make the fastmap usable both for multibyte and
24544 unibyte targets.
24545 (TRANSLATE_VIA_MULTIBYTE): Delete.
24546 (re_match_2_internal): Pay attention to the case that the
24547 multibyteness of bufp and target may be different.
24548
245492008-02-01 Kenichi Handa <handa@m17n.org>
24550
24551 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24552 empty box occupy at least one column width.
24553
245542008-02-01 Miles Bader <miles@gnu.org>
24555
24556 * Makefile.in: Remove redundant HAVE_XFT clause.
24557
245582008-02-01 Kenichi Handa <handa@m17n.org>
24559
24560 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24561
245622008-02-01 Kenichi Handa <handa@m17n.org>
24563
24564 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24565 being nil.
24566
245672008-02-01 Kenichi Handa <handa@m17n.org>
24568
24569 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24570
245712008-02-01 Kenichi Handa <handa@m17n.org>
24572
24573 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24574
245752008-02-01 Kenichi Handa <handa@m17n.org>
24576
24577 * search.c (simple_search): Fix previous change.
24578
245792008-02-01 Kenichi Handa <handa@m17n.org>
24580
24581 * xftfont.c (ftfont_font_format): Extern declaration.
24582
24583 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24584
24585 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24586 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24587
24588 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24589 (ftfont_font_format): Fix previous change.
24590
24591 * font.h (Ffont_xlfd_name): EXFUN it.
24592
24593 * font.c (font_parse_xlfd): Fix the array size of `f'.
24594 (register_font_driver): Use EQ to compare driver->type.
24595
24596 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24597 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24598 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24599
246002008-02-01 Kenichi Handa <handa@m17n.org>
24601
24602 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24603 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24604
246052008-02-01 Kenichi Handa <handa@m17n.org>
24606
24607 * xfont.c (xfont_open): Set font->format.
24608
24609 * xftfont.c (xftfont_open): Set font->format.
24610
24611 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24612 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24613 (ftfont_open): Set font->format.
24614 (ftfont_font_format): New function.
24615
24616 * font.h (struct font): New member format.
24617
24618 * font.c (Qopentype): New variable.
24619 (syms_of_font): Defsym it.
24620 (Fquery_font): Change the format of the last element of the return
24621 value.
24622
246232008-02-01 Kenichi Handa <handa@m17n.org>
24624
24625 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24626 last resort.
24627
246282008-02-01 Kenichi Handa <handa@m17n.org>
24629
24630 * coding.c (detect_coding_charset): Fix detection of multi-byte
24631 charset.
24632
246332008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24634
24635 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24636
246372008-02-01 Kenichi Handa <handa@m17n.org>
24638
24639 * xdisp.c (get_next_display_element): Set it->face_id for the
24640 first component of a composition.
24641 (x_produce_glyphs): Check if the font is changed or not for composition.
24642
246432008-02-01 Kenichi Handa <handa@m17n.org>
24644
24645 * fontset.c (Qlatin): New variable.
24646 (syms_of_fontset): Define it as a lisp symbol.
24647 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24648
246492008-02-01 Kenichi Handa <handa@m17n.org>
24650
24651 * font.c (font_unparse_fcname): Pay attention to the case that
24652 some of font property is a null string.
24653
246542008-02-01 Kenichi Handa <handa@m17n.org>
24655
24656 * term.c: Include "composite.h".
24657 (encode_terminal_code): Output all components of composition.
24658 Check the size of encode_terminal_src.
24659 (produce_glyphs): For composition, call produce_composite_glyph.
24660 (append_composite_glyph, produce_composite_glyph): New functions.
24661
24662 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24663 is not found, get font_info from the current ascii face.
24664
246652008-02-01 Kenichi Handa <handa@m17n.org>
24666
24667 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24668 buffer-file-name to Qnil before calling insert_from_buffer.
24669
24670 * font.c (font_unparse_fcname): Pay attention to the case that
24671 foundry is a null string.
24672
246732008-02-01 Kenichi Handa <handa@m17n.org>
24674
24675 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24676
24677 * font.c (Qunicode_sip): New variable.
24678 (syms_of_font): Declare it as a Lisp symbol.
24679
24680 * font.h (Qunicode_sip): Extern it.
24681
246822008-02-01 Kenichi Handa <handa@m17n.org>
24683
24684 * composite.c (get_composition_id): Pay attention to TAB component.
24685
24686 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24687 TAB. Adjust for the change of s->char2b which always points to
24688 the first element of allocated memory.
24689
24690 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24691
24692 * xdisp.c (handle_composition_prop): Set it->c to the first
24693 non-TAB component.
24694 (fill_composite_glyph_string): Change argument.
24695 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24696 (x_produce_glyphs): Fix handling of left/right padding.
24697
246982008-02-01 Kenichi Handa <handa@m17n.org>
24699
24700 * coding.c (detect_coding_system): Fix for handling off
24701 inhibit_iso_escape_detection. Fix for the case that no coding
24702 system is defined for a specific coding category.
24703
247042008-02-01 Kenichi Handa <handa@m17n.org>
24705
24706 * font.c (font_matching_entity): Delete unused local var.
24707
24708 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24709 opening a font.
24710
24711 * fileio.c (Finsert_file_contents): On recovering a file, assume
24712 Unix-like eol.
24713 (choose_write_coding_system): On auto-saving a file, force
24714 Unix-like eol.
24715
24716 * coding.c (setup_coding_system): Fix setting of
24717 coding->common_flags based on eol_type.
24718 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24719 inherit from it.
24720
247212008-02-01 Kenichi Handa <handa@m17n.org>
24722
24723 * alloc.c (NSTATICS): Increas to 0x600.
24724
247252008-02-01 Kenichi Handa <handa@m17n.org>
24726
24727 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24728 (ftfont_list): Don't check :name property.
24729 (ftfont_match): New function.
24730 (ftfont_pattern_entity): If the pattern doesn't contain
24731 FC_SPACING, don't assume FC_MONO.
24732
24733 * font.h (struct font_driver): New member `match'.
24734 (font_update_drivers): Adjust prototype.
24735
24736 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24737 property of FONT.
bba3e508
SM
24738 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24739 Define them unconditionally.
aac0c6e3
MR
24740 (font_matching_entity): New function.
24741 (font_open_by_name): Try font_matching_entity if exact match is
24742 not found.
24743 (font_update_drivers): Delete the arg FONT. Return a list of
24744 actually used backends. Don't free faces, font caches here.
24745 Don't store data in frame parameters. Don't call x_set_font.
24746 (Ffont_spec): Store :name property as is.
24747 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24748 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24749 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24750 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24751 Call font->driver->otf_gsub instead of font_otf_gsub.
24752
24753 * frame.c (x_set_font_backend): Do more works that were done in
24754 font_update_drivers before.
24755
24756 * xfont.c (xfont_match): New function.
24757 (xfont_driver): Set xfont_driver.match to xfont_match.
24758 (xfont_draw): Set font in GC if necessary.
24759
24760 * ftxfont.c (ftxfont_match): New function.
24761 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24762
24763 * xftfont.c (xftfont_match): New function.
24764 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24765
247662008-02-01 Kenichi Handa <handa@m17n.org>
24767
24768 * font.h (struct font): New member scalable.
24769 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24770 (font_otf_gsub): Adjust prototype.
24771
24772 * font.c (font_otf_capability): Fix handling of the default langsys.
24773 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24774 Check the contents of SPEC.
24775 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24776 (check_gstring): New function.
24777 (REPLACEMENT_CHARACTER): New macro.
24778 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24779 glyph codes of GSTRING.
24780 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24781 (font_prepare_composition): Set cmp->glyph_len.
24782 (font_open_entity): Set font->scalable.
24783 (Ffont_get): Handle :otf property.
bba3e508
SM
24784 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24785 New functions.
aac0c6e3
MR
24786 (Fquery_font): Use font->font.full_name.
24787 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24788 Sfont_otf_alternates.
24789
24790 * ftfont.c (ftfont_open): Set font->font.full_name and
24791 font->font.name properly. Fix calculation of font->font.height
24792 and font->min_width.
24793
24794 * ftxfont.c (ftxfont_create_gcs): New function.
24795 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24796 (ftxfont_draw_backgrond): Fix filling region.
24797 (ftxfont_default_fid): New function.
24798 (ftxfont_open): Set xfont->fid to the return value of
24799 ftxfont_default_fid.
24800 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24801 (ftxfont_done_face): Free only GCs that are created by
24802 ftxfont_create_gcs.
24803 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24804
24805 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24806 Clip to src->width, etc (not src->clip_XXX).
24807
24808 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24809 FontBackend frame parameter.
24810
248112008-02-01 Kenichi Handa <handa@m17n.org>
24812
24813 * font.h (struct font_driver_list): New member `on'.
24814 (Fclear_font_cache): EXFUN it.
24815 (font_update_drivers): Extern it.
24816
24817 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24818 (font_list_entities): Check driver_list->on.
40b1a3a9 24819 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
24820 (font_update_drivers): New function.
24821 (Fclear_font_cache): Check driver_list->on.
24822
24823 * frame.h (Qfont_backend): Extern it.
24824 (x_set_font_backend): Extern it.
24825
24826 * frame.c (Qfont_backend): New variable.
24827 (frame_parms): New element for font-backend.
24828 (x_set_font_backend): New function.
24829
24830 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24831 FontBackend frame parameter.
24832 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24833 x_set_font_backend.
24834
24835 * xfont.c (xfont_list): Don't try listing by :name property if the
24836 name is not for XLFD.
24837
248382008-02-01 Kenichi Handa <handa@m17n.org>
24839
24840 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24841 (LGLYPH_SET_TO): New macros.
24842 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24843 element of G is vector or not.
24844 (font_at): Extern it.
24845
24846 * font.c: Include window.h.
24847 (font_lispy_object): New function.
24848 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24849 end of valid glyph.
24850 (font_close_object): Fix getting (struct font *).
24851 (font_at): New function.
24852 (Ffont_get): If FONT is a font-object, get entity from it.
24853 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
24854 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24855 Fix range check.
aac0c6e3
MR
24856 (Ffont_at): New function.
24857 (syms_of_font): Defsubr Sfont_at.
24858
24859 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24860 before the entry for Qcomposition.
24861 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24862 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24863 the font in gstring.
24864 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24865 LGLYPH_FORM (g) to detect the end of valid glyph.
24866 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24867 we are composing with gstring.
24868
24869 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24870 Check if adjustment is vector or not.
24871
24872 * Makefile.in (font.o): Make it depends on window.h.
24873
248742008-02-01 Kenichi Handa <handa@m17n.org>
24875
24876 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24877 adjustment is vector or not.
24878
248792008-02-01 Miles Bader <miles@gnu.org>
24880
24881 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24882
248832008-02-01 Kenichi Handa <handa@m17n.org>
24884
24885 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 24886 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
24887 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24888
24889 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24890 (DEVICE_DELTA): Fix typo.
24891 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24892 LGLYPH format.
24893
24894 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24895 the change of LGLYPH format.
24896
248972008-02-01 Kenichi Handa <handa@m17n.org>
24898
24899 * ftfont.c (ftfont_list): Fix typo.
24900 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24901
249022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24903
24904 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24905
24906 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24907 xftface_info is non-NULL.
24908
249092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24910
24911 * ftfont.c (ftfont_list): Move misplaced #endif.
24912
249132008-02-01 Kenichi Handa <handa@m17n.org>
24914
24915 * ftfont.c (ftfont_list): Pay attention to the case that
24916 FC_CAPABILITY is not defined.
24917
249182008-02-01 Kenichi Handa <handa@m17n.org>
24919
24920 * xftfont.c (xftfont_open): Set charset related members to -1.
24921
24922 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24923 QCname.
24924 (ftfont_open): Set charset related members to -1.
24925
24926 * fontset.c (Votf_script_alist): New variable.
24927 (syms_of_fontset): Initialize it.
24928 (fontset_font): Delete unused variable.
24929
24930 * fontset.h (Votf_script_alist): Extern it.
24931
24932 * font.c (font_find_for_lface): Optimize code.
24933
24934 * font.h (font_close_object, font_merge_old_spec): Extern them.
24935
249362008-02-01 Kenichi Handa <handa@m17n.org>
24937
24938 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24939 (syms_of_font): Initialize them.
24940 (font_pixel_size): Allow float value in dpi.
24941 (font_prop_validate_type): Delete.
24942 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24943 Change caller.
24944 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24945 (font_prop_validate_extra): Delete.
24946 (font_prop_validate_spacing): New function.
24947 (font_property_table): Add elements for all known properties.
bba3e508
SM
24948 (get_font_prop_index): Rename from check_font_prop_name.
24949 New argument FROM. Change caller.
aac0c6e3
MR
24950 (font_prop_validate): Validate all known properties.
24951 (font_put_extra): Delete argument force. Change caller.
24952 (font_expand_wildcards): Make it static. Fix the way of shrinking
24953 the possible range.
24954 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24955 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24956 Change caller.
24957 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24958 (font_parse_fcname): Delete argument merge. Fix parsing of point
24959 size. Don't validate properties values here. Change caller.
24960 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24961 (font_open_by_name): Delete unused variable.
24962 (Ffont_spec): Likewise. Validate property values.
24963 (Ffont_match_p): New function.
24964
24965 * font.h (QCscalable): Extern it.
24966 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24967
24968 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24969
24970 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24971 (xfont_list_pattern): New function.
24972 (xfont_list): Use xfont_list_pattern.
24973
249742008-02-01 Kenichi Handa <handa@m17n.org>
24975
24976 * font.h (Flist_fonts): EXFUN it.
24977
249782008-02-01 Jason Rumney <jasonr@gnu.org>
24979
24980 * w32term.c (w32_initialize): Add back smoothing_type and
24981 smoothing_enabled definitions.
24982
249832008-02-01 Kenichi Handa <handa@m17n.org>
24984
24985 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24986 s->face->font on determining underline position.
24987
249882008-02-01 Kenichi Handa <handa@m17n.org>
24989
24990 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24991 (font_has_char): Accept font-object too.
24992 (font_find_for_lface): Try at first with a size specified in face.
24993
249942008-02-01 Kenichi Handa <handa@m17n.org>
24995
24996 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24997 font_open_by_name.
24998
249992008-02-01 Kenichi Handa <handa@m17n.org>
25000
25001 * font.h (QCspacing, QCdpi): Extern them.
25002 (enum font_spacing): New enum.
25003 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25004
25005 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25006 (QCspacing, QCdpi): New variables.
25007 (syms_of_font): Initialize them.
25008 (font_pixel_size): New function.
25009 (font_put_extra): New function.
25010 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25011 in FONT_EXTRA.
25012 (font_parse_fcname): Handle enumerated values (e.g. bold).
25013 Fix handling font size. Add QCname property that contains only
25014 unknown properties.
25015 (font_score): Change argument. Change caller. Pay attention to
25016 FONT_PIXEL_SIZE_QUANTUM.
25017 (font_sort_entites, font_list_entities, font_find_for_lface)
25018 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25019 (Ffont_spec): Add QCname property that contains only unknown properties.
25020
bba3e508
SM
25021 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25022 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
25023 listed font. Don't include scalable in pattern. Pay attention to
25024 FONT_PIXEL_SIZE_QUANTUM.
25025
250262008-02-01 Kenichi Handa <handa@m17n.org>
25027
25028 * font.c (font_parse_fcname): Fix parsing of point-size.
25029 (font_unparse_fcname): Produce symbolic names for style properties.
25030 (font_list_entities): Handle float size correctly.
25031 (font_open_by_name): Prefer `normal' property values if the name
25032 doesn't specify them.
25033
25034 * fontset.c (Finternal_char_font): Use font_get_name, not
25035 Ffont_xlfd_name.
25036
25037 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25038 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25039 pattern. Don't force scalable.
25040
25041 * xftfont.c (xftfont_open): For generating a name, start from
25042 96-byte buffer.
25043
250442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25045
25046 * frame.h (x_new_fontset2): Fix prototype.
25047
250482008-02-01 Kenichi Handa <handa@m17n.org>
25049
25050 * font.h (struct font_driver): Delete member parse_name.
25051 (font_match_p, font_get_spec, font_parse_fcname)
25052 (font_unparse_fcname): Extern them.
25053 (font_get_name): Adjust prototype.
25054
25055 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25056 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
25057 (font_expand_wildcards): Fix handling ENCODING field.
25058 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
25059 (font_parse_fcname): New function.
25060 (font_unparse_fcname): New function.
25061 (font_parse_name): New function.
25062 (font_match_p): New function.
25063 (font_get_name): Change return value to Lisp string.
25064 (font_get_spec): New function.
25065 (Qunspecified, Qignore_defface): Don't extern them.
25066 (font_find_for_lface): Assume that LFACE is fully specified.
25067 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25068 object, use it for FACE.
25069 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25070 driver->parse_name.
25071 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25072
25073 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25074 prototype.
25075
25076 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25077 argument F. Don't call Fnew_fontset. Instead, directly call
25078 make_fontset.
25079
25080 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25081
25082 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25083 of x_new_fontset2.
25084
25085 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25086 (Qsans__serif): New variables.
25087 (ftfont_generic_family_list): New variable.
25088 (syms_of_ftfont): Initialize the above variables.
25089 (ftfont_pattern_entity): Delete argument NAME.
25090 (ftfont_list_generic_family): New function.
25091 (ftfont_parse_name): Delete this function.
25092 (ftfont_list): Try generic family only when FcFontList found no font.
25093 (ftfont_list_family): Fix args to FcObjectSetBuild.
25094
25095 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25096 object in attrs[LFACE_FONT_INDEX].
25097 (set_lface_from_font_name): Cancel all changes for font-backend.
25098 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25099 function.
25100 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25101 font object in QCfont attribute.
25102 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25103 (realize_default_face) [USE_FONT_BACKEND]: Call
25104 set_lface_from_font_and_fontset.
25105
25106 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25107 "fixed", and signal error here if no suitable font was found.
25108
25109 * xfont.c (xfont_parse_name): Delete this function.
25110
25111 * xftfont.c (xftfont_open): Change coding style of error
25112 handling. Generate fontconfig's fontname pattern.
25113
25114 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25115 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25116
25117 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25118 Both args FONTSET and FONT_OBJECT must be existing ones.
25119
251202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25121
25122 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25123
251242008-02-01 Kenichi Handa <handa@m17n.org>
25125
25126 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25127
25128 * font.h (struct font): Fix typo.
25129
25130 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25131 XLFD_XXX_INDEX.
25132 (enum xlfd_field_mask): New enum.
ef1b0ba7 25133 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
25134 are followed by non-digits, return a symbol.
25135 (font_expand_wildcards): New function.
25136 (font_parse_xlfd): Fix wildcard handling.
25137 (Ffont_spec): If :name is specified, reflect the info in the other
25138 properties.
25139
25140 * ftfont.c (ftfont_pattern_entity): Fix typo.
25141 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25142 locale.
25143
251442008-02-01 Kenichi Handa <handa@m17n.org>
25145
25146 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25147
25148 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25149 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25150 registry doesn't specify encoding part.
25151 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25152 (font_open_by_name): At first try parsing the name.
25153 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25154 as Lisp symbols.
25155
25156 * fontset.c (reorder_font_vector): Pay attention to the case that
25157 the 3rd element of font_def is nil.
25158 (fontset_font): For the default fontset, append one more fontset
25159 elements for a script-based font specification. Don't add script
25160 attribute on finding a font.
25161 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25162 font name.
25163 (fontset_ascii_font): If a font can't be opened, return nil.
25164
25165 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25166 (ftfont_pattern_entity): New function.
25167 (ftfont_get_cache): Assume that freetype_font_cache is already
25168 initialized.
25169 (ftfont_list): Handle the case that a file is specified in font
25170 name. Use ftfont_pattern_entity to generate entities.
25171 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25172 (syms_of_ftfont): Initialize freetype_font_cache.
25173
25174 * xftfont.c (xftfont_open): Make the font name fontconfig's
25175 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25176 (xftfont_close): Free font->font.name if not NULL.
25177
25178 * xfont.c (xfont_list): If script is specified for a font, return
25179 null_vector.
25180 (xfont_list_family): Declare argument type.
25181
25182 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25183 name, set LFACE_FONT (lface) to nil.
25184
25185 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25186 return Qnil.
25187
251882008-02-01 Kenichi Handa <handa@m17n.org>
25189
25190 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25191 (standard_args): Add "-enable-font-backend".
25192
251932008-02-01 Kenichi Handa <handa@m17n.org>
25194
25195 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25196 (struct xftdraw_list, xftdraw_list): Delete them.
25197 (register_xftdraw, check_xftdraw): Delete them.
25198 (xftfont_prepare_face): Don't call register_xftdraw.
25199 (xftfont_done_face): Don't call check_xftdraw.
25200 (xftfont_draw): Get background color only when with_background is
25201 nonzero.
25202
25203 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25204
252052008-02-01 Kenichi Handa <handa@m17n.org>
25206
25207 These changes are for the new font handling codes.
25208
25209 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25210 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25211 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25212 (FONTSRC, FONTOBJ): New variables.
25213 (obj): Add $(FONTOBJ).
25214 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25215 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25216 @LIBOTF_LIBS@.
25217 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25218 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25219
25220 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25221
25222 * character.h (Vscript_representative_chars): Extern it.
25223
25224 * character.c (Vscript_representative_chars): New variable.
25225 (syms_of_character): Declare it as a Lisp variable.
25226
25227 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25228 enable_font_backend is nonzero, accept the composition method
25229 COMPOSITION_WITH_GLYPH_STRING.
25230
25231 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25232 enumeration COMPOSITION_WITH_GLYPH_STRING.
25233
25234 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25235 members clip_x, clip_y, clip_width, and clip_height.
25236 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25237
25238 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25239 --enable-font-backend. Call syms_of_font.
25240
25241 * fns.c (assoc_no_quit): New function.
25242
25243 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25244 (face_for_font, new_fontset_from_font)
25245 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25246
25247 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25248 (fontset_font, fontset_ascii, face_for_char)
25249 (make_fontset_for_ascii_face, Ffont_info)
25250 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25251 is nonzero, use font-backend mechanism.
25252 (find_font_encoding): Make it non-static.
25253 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25254 New functions.
25255
25256 * frame.h (struct frame): New members resx and resy.
25257 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25258 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25259
25260 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25261 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25262
25263 * lisp.h (assoc_no_quit): Extern it.
25264
25265 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25266 Through out the file, use FONT_INFO_FROM_FACE instead of
25267 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25268 rif->per_char_metric.
25269 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25270 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25271 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25272 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25273 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25274 nonzero, use font-backend mechanism.
25275 (get_per_char_metric): New function.
25276
25277 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25278 (set_lface_from_font_name)
25279 (set_font_frame_param, free_realized_face)
25280 (prepare_face_for_display, clear_face_gcs)
25281 (Finternal_set_font_selection_order, realize_x_face)
25282 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25283 font-backend mechanism.
25284 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25285 (load_face_font) [USE_FONT_BACKEND]: Abort.
25286 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25287 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25288
25289 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25290 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25291 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25292 nonzero, register all available font drivers.
25293 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25294 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25295
25296 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25297 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25298 (x_set_glyph_string_clipping_exactly)
25299 (x_compute_glyph_string_overhangs)
25300 (x_draw_glyph_string_foreground)
25301 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25302 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25303 enable_font_backend is nonzero, use font-backend mechanism.
25304 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25305
253062008-02-01 Kenichi Handa <handa@m17n.org>
25307
25308 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25309 system_eol_type.
25310 (syms_of_coding): Initialize system_eol_type.
25311
25312 * process.c (Fset_process_coding_system): Inherit system's eol
25313 format if necessary.
25314
253152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25316
25317 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25318
253192008-02-01 Kenichi Handa <handa@m17n.org>
25320
25321 * coding.c (decode_eol): Pay attention to buffer relocation in
25322 del_range_2.
25323 (decode_coding): Call decode_eol before restoring undo_list.
25324
253252008-02-01 Kenichi Handa <handa@m17n.org>
25326
25327 * charset.c (Fdefine_charset_internal): Fix setting of
25328 emacs_mule_bytes.
25329
253302008-02-01 Kenichi Handa <handa@m17n.org>
25331
25332 * keyboard.c (read_char): Check if C is a character or not before
25333 looking up Vkeyboard_translate_table.
25334
253352008-02-01 Kenichi Handa <handa@m17n.org>
25336
bba3e508
SM
25337 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25338 Fix condition to terminate the loop.
aac0c6e3
MR
25339
253402008-02-01 Kenichi Handa <handa@m17n.org>
25341
25342 * coding.c (produce_composition): Compare charbuf[i] instead of
25343 args[i] against 0.
25344 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25345
253462008-02-01 Kenichi Handa <handa@m17n.org>
25347
25348 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25349 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25350 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25351 detect_coding.
25352 (emacs_mule_char): Handle old style (Emacs 20) component character
25353 of a composition.
25354 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25355 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25356 composition rule.
25357 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25358
253592008-02-01 Kenichi Handa <handa@m17n.org>
25360
25361 * coding.c (encode_coding_ccl): Allocate destination dynamically
25362 when necessary.
25363
253642008-02-01 Kenichi Handa <handa@m17n.org>
25365
25366 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25367 the loop. When quitted, show a proper error message.
25368
253692008-02-01 Kenichi Handa <handa@m17n.org>
25370
bba3e508
SM
25371 * xterm.c (x_set_glyph_string_clipping_exactly):
25372 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25373
25374 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25375 character sequence.
25376 (Fccl_execute_on_string): Use ASET, not XSET.
25377
253782008-02-01 Kenichi Handa <handa@m17n.org>
25379
25380 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25381
253822008-02-01 Kenichi Handa <handa@m17n.org>
25383
25384 * coding.c (decode_coding): Fix the condition of terminating the
25385 decoding loop.
25386
253872008-02-01 Kenichi Handa <handa@m17n.org>
25388
25389 * data.c (Faset): On setting a character bigger than 255 in a
25390 unibyte string, signal an error instead of make the string multibyte.
25391
253922008-02-01 Kenichi Handa <handa@m17n.org>
25393
25394 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25395 made by a mapping table.
25396
253972008-02-01 Kenichi Handa <handa@m17n.org>
25398
25399 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25400 not.
25401 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25402 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25403
bba3e508
SM
25404 * xterm.c (x_draw_composite_glyph_string_foreground):
25405 Check s->face is NULL or not.
aac0c6e3
MR
25406
254072008-02-01 Kenichi Handa <handa@m17n.org>
25408
25409 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25410 (x_draw_glyph_string): Fix drawing of right_overhang and
25411 left_overhang around/on cursor.
25412
25413 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25414
254152008-02-01 Kenichi Handa <handa@m17n.org>
25416
25417 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25418
254192008-02-01 Kenichi Handa <handa@m17n.org>
25420
25421 * coding.c (Fdefine_coding_system_internal)
25422 (Fdefine_coding_system_alias): Avoid a duplicated element in
25423 Vcoding_system_alist.
25424
254252008-02-01 Kenichi Handa <handa@m17n.org>
25426
25427 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25428
25429 * coding.c (Qcoding_system_define_form): New variable.
25430 (syms_of_coding): Intern and staticpro it.
25431 (Fcoding_system_p): Check Qcoding_system_define_form.
25432 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25433
25434 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25435 Fcoding_system_p.
25436 (CHECK_CODING_SYSTEM): If ID is not available, call
25437 Fcheck_coding_system.
25438 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25439 Try also Fcheck_coding_system.
25440
254412008-02-01 Kenichi Handa <handa@m17n.org>
25442
25443 * coding.c (code_conversion_restore): GCPRO arg.
25444
254452008-02-01 Kenichi Handa <handa@m17n.org>
25446
25447 * character.c (lisp_string_width): Check multibyteness of STRING.
25448
254492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25450
25451 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25452 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25453 (decode_mac_font_name): Use decode_coding_c_string instead of
25454 decode_coding.
bba3e508
SM
25455 (x_load_font): Initialize fontp->fontset to -1.
25456 Set fontp->encoding_type.
aac0c6e3
MR
25457
254582008-02-01 Kenichi Handa <handa@m17n.org>
25459
25460 * search.c (search_buffer): Give up BM search on case-fold-search
25461 if one of a target character has a case-equivalence of different
3b59c351 25462 byte length even if that target character is an ASCII.
aac0c6e3
MR
25463 (simple_search): Fix calculation of byte length of matched text.
25464 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25465
254662008-02-01 Kenichi Handa <handa@m17n.org>
25467
25468 * coding.c (decode_coding): Fix handling of invalid bytes.
25469
254702008-02-01 Kenichi Handa <handa@m17n.org>
25471
25472 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25473 Unicode characters.
25474
254752008-02-01 Kenichi Handa <handa@m17n.org>
25476
25477 * coding.c (encode_coding_object): If a pre-write-conversion
25478 function makes a new buffer, kill it.
25479
254802008-02-01 Kenichi Handa <handa@m17n.org>
25481
25482 * coding.c (QCascii_compatible_p): New variable.
25483 (syms_of_coding): Initialize it.
25484 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25485 calling string_char.
25486 (record_conversion_result): Add `default:' case.
25487 (coding_charset_list): Delete unused variable `coding_type'.
25488 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25489 property in the plist of the coding system.
25490 (Fcoding_system_put): Check QCascii_compatible_p.
25491
254922008-02-01 Miles Bader <miles@gnu.org>
25493
25494 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25495 removed calculation of frame `f', as it's now used.
25496
254972008-02-01 Kenichi Handa <handa@m17n.org>
25498
25499 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25500 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25501 (UNIDATA): New variable.
25502 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25503 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25504 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25505
255062008-02-01 Kenichi Handa <handa@m17n.org>
25507
25508 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25509 (admindir): New variable.
25510 ($(lispsource)international/charprop.el): New target.
25511
255122008-02-01 Miles Bader <miles@gnu.org>
25513
25514 * character.c (chars-in-region): Remove obsolete function.
25515 (syms_of_character): Remove its initialization.
25516
255172008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25518
25519 * w32select.c (validate_coding_system)
25520 (setup_windows_coding_system): New functions.
bba3e508
SM
25521 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25522 Use setup_windows_coding_system.
25523 (setup_config, Fw32_get_clipboard_data):
25524 Use validate_coding_system.
aac0c6e3
MR
25525 (Fx_selection_exists): Move call to setup_config to a place
25526 where signals are allowed.
25527
25528 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25529 (Fcheck_coding_system): Add declarations.
25530
255312008-02-01 Kenichi Handa <handa@m17n.org>
25532
25533 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25534
255352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25536
25537 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25538 string as the second argument for x_new_fontset.
25539
255402008-02-01 Kenichi Handa <handa@m17n.org>
25541
25542 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25543 (encode_coding_object): Use safe_call instead of call2.
25544
255452008-02-01 Kenichi Handa <handa@m17n.org>
25546
25547 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25548
25549 * Makefile.in (lisp): Include charprop.el.
25550
255512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25552
25553 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25554 Not sure if it's unnecessary.
25555
255562008-02-01 Steven Tamm <steventamm@mac.com>
25557
25558 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25559 some possibly unnecessary fontset checking code that crashed
25560 when creating a new frame.
25561
255622008-02-01 Kenichi Handa <handa@m17n.org>
25563
25564 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25565 lookup_face.
25566
25567 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25568
25569 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25570
255712008-02-01 Kenichi Handa <handa@m17n.org>
25572
25573 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25574 (coding_charset_list): New function.
25575
25576 * coding.h (coding_charset_list): Extern it.
25577
255782008-02-01 Kenichi Handa <handa@m17n.org>
25579
25580 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25581 concatenation of family and registry.
25582
255832008-02-01 Kenichi Handa <handa@m17n.org>
25584
25585 * character.h (BYTE8_STRING): Fix typo.
25586
25587 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25588 string to multibyte (sync to HEAD).
25589
25590 * casefiddle.c (casify_region): Handle changes in byte-length
25591 using replace_range_2 (sync to HEAD).
25592
255932008-02-01 Andreas Schwab <schwab@suse.de>
25594
25595 * chartab.c (map_char_table): GCPRO table and arg.
25596
255972008-02-01 Kenichi Handa <handa@m17n.org>
25598
25599 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25600 already at limit.
25601
256022008-02-01 Kenichi Handa <handa@m17n.org>
25603
25604 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25605 instead of fast_c_string_match_ignore_case.
bba3e508
SM
25606 (find_font_encoding): Change argument to Lisp_Object.
25607 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
25608 fast_c_string_match_ignore_case. Change caller.
25609
256102008-02-01 Kenichi Handa <handa@m17n.org>
25611
25612 * xdisp.c (get_next_display_element): In unibyte case, decide to
25613 display in octal form by checking a character by
25614 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25615
25616 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25617
25618 * character.c (unibyte_has_multibyte_table): New variable.
25619
25620 * character.h (unibyte_has_multibyte_table): Extern it.
25621 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25622
256232008-02-01 Kenichi Handa <handa@m17n.org>
25624
25625 * coding.c (encode_coding_iso_2022): Fix handling of charset
25626 annotation.
25627
256282008-02-01 Kenichi Handa <handa@m17n.org>
25629
25630 * coding.c (setup_coding_system): If coding_system is nil, use
25631 Qundecided.
25632 (Fterminal_coding_system): Return nil if terminal coding system is
25633 `undecided'.
bba3e508
SM
25634 (syms_of_coding): Define coding-system `undecided' here.
25635 Setup terminal_coding as `undecided'.
aac0c6e3
MR
25636
256372008-02-01 Kenichi Handa <handa@m17n.org>
25638
bba3e508
SM
25639 * xdisp.c (message_dolog, set_message_1):
25640 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
25641
25642 * lread.c (read1): Fix reading of a char-table.
25643
25644 * print.c (print_object): Include sub char-table in circularities
25645 detection.
25646
256472008-02-01 Kenichi Handa <handa@m17n.org>
25648
25649 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25650 Append the found sequences in car of ARGS instead of prepending.
25651
256522008-02-01 Kenichi Handa <handa@m17n.org>
25653
25654 * fileio.c (report_file_error): Make a unibyte string from
25655 strerror (errorno).
25656 (Fsubstitute_in_file_name): Fix the arg to
25657 unibyte_char_to_multibyte. It is evaluated twice.
25658
256592008-02-01 Kenichi Handa <handa@m17n.org>
25660
25661 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25662
256632008-02-01 Kenichi Handa <handa@m17n.org>
25664
25665 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25666 BOM is not found.
25667 (detect_coding, detect_coding_system): Optimization for ISO-2022
25668 when no 8-bit data is found.
25669
256702008-02-01 Jason Rumney <jasonr@gnu.org>
25671
25672 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25673
256742008-02-01 Kenichi Handa <handa@m17n.org>
25675
25676 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25677 CHARS.
25678
256792008-02-01 Steven Tamm <steventamm@mac.com>
25680
25681 * macterm.c (mac_encode_char): Add charset argument and update
25682 to use encoding_type.
25683 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25684 switch to pure fontset.
25685 (decode_mac_font_name): Temporarily remove decoding.
25686 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25687 (x_load_font): Temporarily remove encoding.
25688
256892008-02-01 Kenichi Handa <handa@m17n.org>
25690
25691 * xfaces.c (Fface_font): If frame is not on a window system,
25692 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25693 refer to face->font.
25694 (split_font_name_into_vector, build_font_name_from_vector)
25695 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25696 when HAVE_WINDOW_SYSTEM is defined.
25697
256982008-02-01 Kenichi Handa <handa@m17n.org>
25699
25700 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25701 (x_produce_glyphs): Fix setting of members of cmp in case
25702 cmp->glyph_len is zero.
25703
25704 * fontset.c (Fset_fontset_font): Fix docstring.
25705 (Ffontset_info): Make it backward compatible. New arg ALL.
25706
257072008-02-01 Kim F. Storm <storm@cua.dk>
25708
25709 * process.c (read_process_output): Grow decoding_buf when needed;
25710 this could cause a crash in allocate_string and compact_small_strings.
25711
257122008-02-01 Kenichi Handa <handa@m17n.org>
25713
25714 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25715
257162008-02-01 Kenichi Handa <handa@m17n.org>
25717
25718 * coding.c (setup_coding_system): Set coding->common_flags
25719 correctly for raw-text.
25720 (consume_chars): On encoding unibyte text by raw-text, don't check
25721 multibyte form.
25722 (encode_coding): On encoding by raw-text, never use translation tables.
25723
25724 * fileio.c (e_write): Short cut for the case of no encoding.
25725
257262008-02-01 Kenichi Handa <handa@m17n.org>
25727
25728 * coding.c (detect_coding, detect_coding_system): Delete unused
25729 variables.
25730
257312008-02-01 Kenichi Handa <handa@m17n.org>
25732
25733 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25734 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25735
257362008-02-01 Kenichi Handa <handa@m17n.org>
25737
bba3e508
SM
25738 * coding.c (Ffind_coding_systems_region_internal):
25739 Include raw-text and no-conversion in the result.
aac0c6e3
MR
25740
257412008-02-01 Kenichi Handa <handa@m17n.org>
25742
25743 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25744 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25745 FONT_DEF.
25746 (font_def_arg, add_arg, from_arg, to_arg): New args.
25747 (set_fontset_font): Change argument.
25748 (Fset_fontset_font): Fix for the case that TARGET is a script
25749 name and charset name.
25750 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25751
257522008-02-01 Kenichi Handa <handa@m17n.org>
25753
25754 * fontset.c (fontset_font): Rename from fontset_face. Change return
25755 value.
25756 (face_suitable_for_char_p, face_for_char): Adjust for the change
25757 of fontset_font.
25758 (make_fontset_for_ascii_face): Fix setting of the fontset element
25759 for ASCII.
25760 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25761 to get a font name.
25762 (Ffontset_info): Adjust for the change of fontset_font.
25763
25764 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25765
25766 * character.h (LEADING_CODE_LATIN_1_MIN)
25767 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25768
257692008-02-01 Kenichi Handa <handa@m17n.org>
25770
25771 * editfns.c (check_translation): New function.
25772 (Ftranslate_region_internal): Handle M:N mapping.
25773
257742008-02-01 Kenichi Handa <handa@m17n.org>
25775
25776 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25777
257782008-02-01 Kenichi Handa <handa@m17n.org>
25779
25780 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25781 goto invalid_code.
25782 (decode_coding_iso_2022): Fix handling of invalid designation.
25783
25784 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25785 after calling code_conversion_save.
25786
257872008-02-01 Kenichi Handa <handa@m17n.org>
25788
25789 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25790
25791 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25792
25793 * fontset.c: Include "intervals.h".
25794 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
25795 (free_face_fontset, new_fontset_from_font_name):
25796 Fix Lisp_Object/int mixup.
aac0c6e3
MR
25797
25798 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25799
25800 * coding.c: Add many prototypes for static functions.
25801 (get_translation_table): Allow max_lookup to be NULL.
25802 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
25803 (Funencodable_char_position, Fcheck_coding_systems_region):
25804 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
25805
258062008-02-01 Kenichi Handa <handa@m17n.org>
25807
25808 * coding.c (get_translation_table): Declare it as Lisp_Object.
25809 (LOOKUP_TRANSLATION_TABLE): New macro.
25810 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25811 instead of CHAR_TABLE_REF.
25812
258132008-02-01 Kenichi Handa <handa@m17n.org>
25814
25815 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25816 annotation data format.
25817 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25818 Change arguments FROM and TO to single argument NCHARS. Change caller.
25819 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25820 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25821 (decode_coding_ccl, decode_coding_charset): Pay attention to
25822 coding->charbuf_used.
25823 (get_translation): New function.
25824 (produce_chars): New arguments translation_table and last_block.
25825 Translate characters here. Return number of carryover chars.
25826 Change caller.
25827 (produce_composition): New argument pos. Change caller.
25828 Adjust for the change of annotation data format.
25829 (produce_charset, produce_annotation): Likewise.
25830 (decode_coding, encode_coding): Don't call translate_chars.
25831 (consume_chars): New arg translation_table. Change caller.
25832 (translate_chars): Delete.
25833 (syms_of_coding): Make translation-table's number of extra slots 2.
25834
258352008-02-01 Kenichi Handa <handa@m17n.org>
25836
25837 * search.c (simple_search): Fix setting this_pos_byte in backward
25838 search.
25839
25840 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25841 byte sequence.
25842 (detect_coding_ccl): Fix setting of the variable valids.
25843
258442008-02-01 Kenichi Handa <handa@m17n.org>
25845
25846 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25847
25848 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25849
25850 * editfns.c (Ftranslate_region_internal): Rename from
25851 Ftranslate_region. Accept a char-table in TABLE.
25852 (syms_of_editfns): Defsubr Stranslate_region_internal.
25853
25854 * xfaces.c (set_lface_from_font_name): If a font is specified for
25855 a frame, generate a fontset from the font.
25856 (build_scalable_font_name): If the scalable font is requested for
25857 a specific size, don't change that size.
25858 (try_font_list): Try a scalable font also in the case that a
25859 pattern string is specified.
25860
258612008-02-01 Kenichi Handa <handa@m17n.org>
25862
25863 * xfaces.c (Fface_font): New optional arg CHARACTER.
25864
258652008-02-01 Kenichi Handa <handa@m17n.org>
25866
25867 * charset.h (CHARSET_OFFSET): New macro.
25868
258692008-02-01 Kenichi Handa <handa@m17n.org>
25870
25871 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25872
25873 * fontset.c (fontset_face): Handle the case that repertory is a
25874 char-table.
25875 (find_font_encoding): Return nil for unknown encoding.
25876 (Fset_fontset_font): Ignore a font of unknown encoding.
25877
258782008-02-01 Kenichi Handa <handa@m17n.org>
25879
25880 * keymap.c (describe_vector): Handle default value of a char table.
25881
25882 * fontset.c (fontset_face): Handle fallback fonts correctly.
25883 (Ffontset_info): Return infomation about fallback fonts.
25884
258852008-02-01 Kenichi Handa <handa@m17n.org>
25886
25887 * fontset.c (FONTSET_DEFAULT): New macro.
25888 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25889 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25890 the case that it is nil.
25891 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25892 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25893
25894 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25895 subset or superset.
25896
258972008-02-01 Kenichi Handa <handa@m17n.org>
25898
25899 * emacs.c (main): Call init_charset after syms_of_XXX.
25900
25901 * charset.c (Vcharset_map_directory): Delete.
25902 (Vcharset_map_path): New variable.
25903 (load_charset_map_from_file): Use Vcharset_map_path instead.
25904 (init_charset): Initialize Vcharset_map_path.
25905 (syms_of_charset): Delete declaration of "charset-map-directory",
25906 add declaration of "charset-map-path".
25907
259082008-02-01 Kenichi Handa <handa@m17n.org>
25909
25910 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25911 ASCII only string.
25912
25913 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25914
25915 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25916 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25917
259182008-02-01 Kenichi Handa <handa@m17n.org>
25919
25920 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25921
25922 * coding.c (QCmnemonic, QCdefalut_char)
25923 (QCdecode_translation_table, QCencode_translation_table)
25924 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25925 (get_translation_table): Return a list of translation tables if
25926 necessary.
25927 (decode_coding): Call get_translation_table with ENCODEP 0.
25928 (char_encodable_p): If translation_table is non-nil, always call
25929 translate_char.
25930 (Fdefine_coding_system_internal): Accept list of translation
25931 tables as :encode-translation-table and :decode-translation-table.
25932 (Fcoding_system_put): New function.
bba3e508
SM
25933 (syms_of_coding): Declare new symbols.
25934 Defsubr Scoding_system_put.
aac0c6e3
MR
25935 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25936 typically JISX0212.
25937
25938 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25939 when the charset is superset type.
25940
25941 * character.c (translate_char): Accept list of translation tables.
25942
259432008-02-01 Kenichi Handa <handa@m17n.org>
25944
25945 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25946 (CODING_ATTR_TRANS_TBL): New macro.
25947
25948 * coding.c (get_translation_table): New function.
25949 (translate_chars): Fix the bug of skipping annotation data.
25950 (decode_coding, encode_coding): Utilize get_translation_table.
25951 (char_encodable_p, Funencodable_char_position): Translate char if
25952 necessary.
25953 (Ffind_coding_systems_region_internal)
25954 (Fcheck_coding_systems_region): Setup translation table for encode
25955 in a coding system attribute vector in advance.
25956 (Fdefine_coding_system_internal): Allow a symbol as translation
25957 table. For shift-jis type coding system, allow 4th charset.
25958
259592008-02-01 Kenichi Handa <handa@m17n.org>
25960
25961 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25962
25963 * xdisp.c (get_next_display_element): Pass -1 as POS to
25964 FACE_FOR_CHAR if displaying a C-string.
25965
259662008-02-01 Kenichi Handa <handa@m17n.org>
25967
25968 * composite.c (get_composition_id): Handle xoff and yoff in a
25969 composition rule.
25970
25971 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25972 (struct composition): New member lbearing and rbearing.
25973
25974 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25975 (x_get_glyph_overhangs): Handle a composition glyph.
25976 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25977
25978 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25979 composition glyph.
25980
259812008-02-01 Kenichi Handa <handa@m17n.org>
25982
25983 * print.c: Include charset.h.
25984 (Vprint_charset_text_property): New variable.
25985 (Qdefault): Extern it.
25986 (PRINT_STRING_NON_CHARSET_FOUND)
25987 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25988 (print_check_string_result): New variable.
25989 (print_check_string_charset_prop): New function.
25990 (print_prune_charset_plist): New variable.
25991 (print_prune_string_charset): New function.
25992 (print_object): Call print_prune_string_charset if
25993 Vprint_charset_text_property is not t.
25994 (print_interval): Print nothing if interval->plist is nil.
25995 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25996 variable. Init and staticpro print_prune_charset_plist.
25997
259982008-02-01 Kenichi Handa <handa@m17n.org>
25999
26000 * fontset.c (new_fontset_from_font_name): Use the specified font
26001 for all characters in the new fontset.
26002
26003 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26004 OBJECT args.
26005
26006 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26007 OBJECT args for composition too.
26008
26009 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26010 OBJECT args.
26011
260122008-02-01 Kenichi Handa <handa@m17n.org>
26013
26014 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26015
26016 * fontset.c (reorder_font_vector): Adjust for the change of
26017 FONT_DEF format.
26018 (fontset_face): New arg id. Change caller.
26019 (face_for_char): New args pos and object.
26020 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26021 (fs_query_fontset): Check NAME by Fassoc too.
26022 (Fset_fontset_font): Allow non-XLFD font name.
26023 (Ffontset_info): Adjust for the change of FONT_DEF format.
26024
26025 * fontset.h (face_for_char): Adjust prototype.
26026
26027 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26028 (append_space, extend_face_to_end_of_line)
26029 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26030 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26031
26032 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26033 POS and OBJECT args.
26034
26035 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26036 POS and OBJECT args.
26037
260382008-02-01 Jason Rumney <jasonr@gnu.org>
26039
26040 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26041 of GlobalAlloc'ed memory.
26042
260432008-02-01 Kenichi Handa <handa@m17n.org>
26044
26045 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26046
26047 * charset.h (charset_table_used): Delete extern.
26048
26049 * charset.c (charset_table_used): Make it static.
26050 (map_charset_chars): Fix args to c_function with.
26051
26052 * chartab.c (map_sub_char_table_for_charset): Fix args to
26053 c_function with.
26054
bba3e508
SM
26055 * coding.h (enum coding_result_code):
26056 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
26057
26058 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26059 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26060 (Vlast_code_conversion_error): New variables.
26061 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26062 (ONE_MORE_BYTE): Record error if any instead of signaling an
26063 error. If non-ASCII multibyte char is found, return the negative
26064 value of the code. All callers changed to check it.
26065 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26066 (record_conversion_result): New function. Change all codes setting
26067 coding->result to call this function.
26068 (detect_coding_utf_8, decode_coding_utf_8)
26069 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26070 Don't use the local variable incomplete.
26071 (emacs_mule_char): Change the second arg to `const'.
26072 (decode_coding): Fix of flushing out unprocessed data.
26073 (make_conversion_work_buffer): Fix making of a work buffer.
26074 (decode_coding_object): Return coding->dst_object.
26075
26076 * fontset.c (set_fontset_font): Fix args.
26077
26078 * lisp.h (CHARACTERBITS): Define as 22.
26079
26080 * process.c (send_process): Be sure to set coding->src_multibyte.
26081
26082 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26083
260842008-02-01 Kenichi Handa <handa@m17n.org>
26085
26086 * xdisp.c (handle_auto_composed_prop): Give limit to
26087 Fnext_single_char_property_change.
26088
260892008-02-01 Kenichi Handa <handa@m17n.org>
26090
26091 * composite.c (syms_of_composite): Don't make the composition hash
26092 table weak.
26093
26094 * fontset.c (Fset_fontset_font): Fix docstring.
26095
26096 * lisp.h (detect_coding_system): Adjust prototype.
26097
26098 * fileio.c (kill_workbuf_unwind): Delete this function.
26099 (Finsert_file_contents): Adjust the call of detect_coding_system.
26100 Get conversion_buffer by code_conversion_save. Use the macro
26101 CODING_MAY_REQUIRE_DECODING. After decoding, update
26102 coding_system.
26103
26104 * coding.h (make_conversion_work_buffer): Delete extern.
26105 (code_conversion_save): Extern it.
26106
26107 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26108 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26109 (decode_coding_utf_8): Don't do eol converion.
26110 (detect_coding_utf_16): Check coding->src_chars, not
26111 coding->src_bytes. Add heuristics for those that have no signature.
26112 (decode_coding_emacs_mule, decode_coding_iso_2022)
26113 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26114 Don't do eol converion.
26115 (adjust_coding_eol_type): Return a new coding system.
26116 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26117 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26118 each change.
26119 (decode_coding): Pay attention to undo_list. Do eol conversion for
26120 all types of coding-systems (if necessary).
26121 (Vcode_conversion_work_buf_list): Delete it.
26122 (Vcode_conversion_reused_workbuf): Rename from
26123 Vcode_conversion_reused_work_buf.
26124 (Vcode_conversion_workbuf_name): New variable.
26125 (reused_workbuf_in_use): New variable.
26126 (make_conversion_work_buffer): Delete the arg DEPTH.
26127 (code_conversion_restore): Change argument to cons.
26128 (code_conversion_save): Delete the argument BUFFER. Change callers.
26129 (detect_coding_system): New argument src_chars. Change callers.
26130 Fix for utf-16 detection.
26131 (init_coding_once): Don't use ISO_carriage_return.
26132 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26133 reused_workbuf_in_use.
26134
261352008-02-01 Kenichi Handa <handa@m17n.org>
26136
26137 * keymap.c (store_in_keymap): Pay attention to the case that idx
26138 is a cons specifying a character range.
26139
261402008-02-01 Kenichi Handa <handa@m17n.org>
26141
26142 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26143 HANDLED_RECOMPUTE_PROPS.
26144
26145 * coding.c (Fdefine_coding_system_internal): Fix checking of
26146 ascii compatibility.
26147
261482008-02-01 Kenichi Handa <handa@m17n.org>
26149
26150 * charset.c (find_charsets_in_text): Delete unused locale variable.
26151 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26152
26153 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26154 Resync charset_list to Vemacs_mule_charset_list.
26155
26156 * keymap.c (store_in_keymap): Pay attention to the case that idx
26157 is a cons specifying a character range.
26158
261592008-02-01 Kenichi Handa <handa@m17n.org>
26160
26161 * composite.c (update_compositions): Bind inhibit-read-only, etc
26162 to t before calling remove-list-of-text-properties.
26163
26164 * print.c (print_object): Always print ASCII chars as is.
26165
261662008-02-01 Kenichi Handa <handa@m17n.org>
26167
26168 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26169
26170 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26171 is a char table.
26172
261732008-02-01 Kenichi Handa <handa@m17n.org>
26174
26175 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26176
261772008-02-01 Kenichi Handa <handa@m17n.org>
26178
26179 * xfaces.c (set_lface_from_font_name): Fix for the case that
26180 FONTNAME is not fontset name.
26181
261822008-02-01 Kenichi Handa <handa@m17n.org>
26183
26184 * fns.c (base64_encode_1): Fix previous change.
26185
261862008-02-01 Kenichi Handa <handa@m17n.org>
26187
26188 * fontset.c (set_fontset_font): New function.
26189 (Fset_fontset_font): If a font is specified for a charset, use
26190 map_charset_chars to store the font spec in a fontset.
26191
261922008-02-01 Kenichi Handa <handa@m17n.org>
26193
26194 * fontset.c (fontset_face): Create a fallback fontset on demand.
26195 (make_fontset): Don't create a fallback fontset here.
26196 (free_face_fontset): Free a fallback fontset (if any) too.
26197 (n_auto_fontsets): Delete this variable.
26198 (auto_fontset_alist): New variable.
26199 (new_fontset_from_font_name): Check auto_fontset_alist.
26200 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26201 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26202 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26203 Defsubr Sfontset_list_all.
26204
262052008-02-01 Kenichi Handa <handa@m17n.org>
26206
26207 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26208
262092008-02-01 Kenichi Handa <handa@m17n.org>
26210
26211 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26212
262132008-02-01 Kenichi Handa <handa@m17n.org>
26214
26215 * editfns.c (Fgoto_char): Fix docstring.
26216
262172008-02-01 Kenichi Handa <handa@m17n.org>
26218
26219 * insdel.c (insert_from_gap): Adjust intervals correctly.
26220
262212008-02-01 Jason Rumney <jasonr@gnu.org>
26222
26223 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26224 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26225 (w32_initialize): Try to load it.
26226 (x_get_font_repertory): Use it if available.
26227 (w32_encode_char): Add shortcut for unicode output.
26228
26229 * w32fns.c (w32_load_system_font): Default charset to -1.
26230 (x_to_w32_charset): Match all fonts for unicode.
26231 (w32_to_x_charset): New parameter matching. Don't return partial
26232 or wildcard charsets.
26233 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26234 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26235 (w32_to_x_font): Match charset to real charset.
26236 (enum_font_cb2): Always list unicode versions.
26237
26238 * makefile.w32-in (temacs): Increase EMHEAP.
26239
262402008-02-01 Jason Rumney <jasonr@gnu.org>
26241
26242 * w32term.c (w32_encode_char): New charset parameter.
26243 font_info.encoding becomes encoding_type.
26244 (x_get_font_repertory): New function. Warning: stub only!
26245 (x_new_font): Return quickly if font already set.
26246 (x_new_fontset): fontsetname parameter is Lisp_Object.
26247 Use new fs_query_fontset. Try new_fontset_from_font_name.
26248 Use fontset_name for return value.
26249
26250 * w32term.h: Declare x_get_font_repertory.
26251
26252 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26253 place of find_charset_in_text. Use encode_coding_object in place
26254 of encode_coding.
26255 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26256 decode_coding.
26257
26258 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26259 of x_new_fontset.
26260 (w32_load_system_font): Initialize charset as unicode.
26261 font_info.encoding becomes encoding_type.
26262 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26263 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26264 (syms_of_w32fns): Set get_font_repertory_func.
26265
26266 * w32console.c: Include character.h. Use terminal_encode_buffer
26267 from term.c.
bba3e508
SM
26268 (write_glyphs): Use new version of encode_terminal_code.
26269 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26270
26271 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26272 encoding becomes encoding_type.
26273
26274 * term.c (terminal_encode_buffer): Make externally visible.
26275
26276 * makefile.w32-in: Add character.h dependancies.
26277 (character.o, chartab.o): New targets.
26278
262792008-02-01 Kenichi Handa <handa@m17n.org>
26280
26281 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26282 CODING_ID_EOL_TYPE.
26283
262842008-02-01 Andreas Schwab <schwab@suse.de>
26285
26286 * coding.c (produce_chars): Revert last change.
26287
262882008-02-01 Kenichi Handa <handa@m17n.org>
26289
26290 * charset.h (charset_unicode): Extern it.
26291
26292 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26293 (find_charsets_in_text): Change format of the arc CHARSETS.
26294 New arg MULTIBYTE.
aac0c6e3
MR
26295 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26296 change of find_charsets_in_text.
26297 (Fsplit_char): Fix doc. Never return unknown.
26298
26299 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26300
bba3e508
SM
26301 * coding.c (Fdefine_coding_system_alias):
26302 Update Vcoding_system_list.
aac0c6e3
MR
26303
26304 * fontset.c (load_font_get_repertory): Pay attention to the case
26305 that ENCODING of a font is specified by a char-table.
26306
26307 * xterm.c (x_get_font_repertory): Handle the case that the
26308 encoding of font is other than Unicode.
26309
263102008-02-01 Kenichi Handa <handa@m17n.org>
26311
bba3e508
SM
26312 * term.c (encode_terminal_code): Don't handle glyph-table.
26313 Check if a character is encodable by the terminal coding system.
26314 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26315 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26316 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26317
263182008-02-01 Kenichi Handa <handa@m17n.org>
26319
bba3e508
SM
26320 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26321 New variables.
aac0c6e3
MR
26322 (encode_terminal_code): Change argument. Encode multiple
26323 characters at once. Store the result of encoding in
26324 terminal_encode_buffer.
26325 (write_glyphs, insert_glyphs): Adjust for the change of
26326 encode_terminal_code.
26327 (term_init): Initialize terminal_encode_buffer and
26328 terminal_encode_buf_size.
26329
26330 * coding.c (consume_chars): If coding->src_object is nil, don't
26331 check annotation.
26332
263332008-02-01 Kenichi Handa <handa@m17n.org>
26334
26335 * character.c (char_string): Use ASCII_CHAR_P instead of
26336 SINGLE_BYTE_CHAR_P.
26337
263382008-02-01 Kenichi Handa <handa@m17n.org>
26339
26340 * xdisp.c (handle_auto_composed_prop): Check if the last
26341 characters of auto-composed region is newly composed with the
26342 following characters.
26343 (handle_composition_prop): Fix checking of point being inside
26344 composition.
26345
263462008-02-01 Kenichi Handa <handa@m17n.org>
26347
26348 * fns.c (concat): Don't change multibyteness of the result by
26349 concatenating an 8-bit character.
26350
26351 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26352 multibyteness of the result when newelt is an 8-bit character.
26353
263542008-02-01 Dave Love <fx@gnu.org>
26355
26356 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26357 EMACS_INT.
26358
26359 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26360
26361 * xfaces.c (face_numeric_value): Declare dim size_t.
26362 (Finternal_lisp_face_equal_p): Remove unused f.
26363
26364 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26365 (MATRIX_ROW): Remove unused vars.
26366 (draw_glyphs, x_insert_glyphs, fast_find_position)
26367 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26368 byte/char counts.
26369
26370 * regex.c (regex_compile): Remove unused var.
26371
26372 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26373
26374 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26375 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26376
26377 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26378
26379 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26380
26381 * fileio.c (Fwrite_region): Remove unused var.
26382
26383 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26384 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26385
26386 * composite.c (Fremove_list_of_text_properties): Declare.
26387
26388 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26389 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26390 (coding_inherit_eol_type): Remove unused attrs.
26391 (detect_coding): Cast arg of detect_eol.
26392
26393 * charset.c (syms_of_charset): Remove unused var p.
26394 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26395 byte/char counts.
26396
26397 * casetab.c (set_case_table): Remove unused var.
26398
bba3e508
SM
26399 * window.c (Fdisplay_buffer, Fframe_selected_window):
26400 Remove unused vars.
aac0c6e3
MR
26401
264022008-02-01 Dave Love <fx@gnu.org>
26403
26404 * xterm.c (x_bitmap_mask): Declare.
26405
264062008-02-01 Dave Love <fx@gnu.org>
26407
26408 * xterm.c (x_term_init): Fix type error.
26409
26410 * lisp.h: Add Funibyte_char_to_multibyte.
26411
26412 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26413 (Fset_coding_system_priority): Doc fix.
26414
26415 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26416
26417 * indent.c (check_composition): Make start and end EMACS_INT.
26418
26419 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26420
26421 * xdisp.c (handle_composition_prop, check_point_in_composition):
26422 Make buffer positions EMACS_INT.
26423
26424 * composite.c (find_composition, run_composition_function)
26425 (update_compositions, Ffind_composition_internal): Make buffer
26426 positions EMACS_INT.
26427
bba3e508
SM
26428 * composite.h (find_composition, update_compositions):
26429 Make position args EMACS_INT.
aac0c6e3
MR
26430
26431 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26432
26433 * intervals.c (get_property_and_range):
26434 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26435
26436 * unexalpha.c: Don't include varargs.h.
26437
264382008-02-01 Dave Love <fx@gnu.org>
26439
26440 * coding.h (ENCODE_UTF_8): New.
26441
26442 * Makefile.in (gtkutil.o): Depend on coding.h.
26443
26444 * coding.c (Fset_coding_system_priority): Doc fix.
26445
264462008-02-01 Kenichi Handa <handa@m17n.org>
26447
26448 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26449 the case of auto saving.
26450
264512008-02-01 Andreas Schwab <schwab@suse.de>
26452
bba3e508
SM
26453 * chartab.c (map_char_table, map_char_table_for_charset):
26454 Protect `range' from GC.
aac0c6e3
MR
26455
264562008-02-01 Kenichi Handa <handa@m17n.org>
26457
26458 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26459
264602008-02-01 Kenichi Handa <handa@m17n.org>
26461
26462 * fileio.c (choose_write_coding_system): Return a decided coding system.
26463 (Fwrite_region): Set Vlast_coding_system_used to the return value
26464 of choose_write_coding_system.
26465
264662008-02-01 Kenichi Handa <handa@m17n.org>
26467
26468 * charset.c (Fset_charset_priority): Pay attention to duplicated
26469 arguments.
26470
26471 * coding.c (QCcategory): New variable.
26472 (syms_of_coding): Defsym it. Set all elements of
26473 Vcoding_category_table and their symbol values.
26474 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26475 coding-category-XXX, and coding-category-list.
26476 (Fdefine_coding_system_internal): Add category in the plist.
26477
264782008-02-01 Kenichi Handa <handa@m17n.org>
26479
26480 * callproc.c (Fcall_process): Handle carryover correctly.
26481
26482 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26483 (raw_text_coding_system): Check NILP (coding_system).
26484 (coding_inherit_eol_type): Check NILP (coding_system) and
26485 NILP (parent).
26486 (consume_chars): Fix for the case of raw-text.
26487
26488 * process.c (read_process_output): Handle carryover correctly.
26489
264902008-02-01 Dave Love <fx@gnu.org>
26491
26492 * regex.c (re_search_2): Fix last change.
26493
264942008-02-01 Kenichi Handa <handa@m17n.org>
26495
26496 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26497 target_multibyte. Even in a unibyte case, return a converted
26498 multibyte char.
26499 (GET_CHAR_AFTER): New macro.
26500 (PATFETCH): Translate via multibyte char.
26501 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26502 (SETUP_MULTIBYTE_RANGE): New macro.
26503 (regex_compile): Setup compiled code so that its multibyteness
26504 matches that of a target. Fix the handling of "[X-YZ]" using
26505 SETUP_MULTIBYTE_RANGE.
26506 (analyse_first) <charset>: For filling fastmap for all multibyte
26507 characters, don't check by BASE_LEADING_CODE_P.
26508 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26509 the same as RE_MULTIBYTE_P (bufp) now.
26510 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26511 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26512 (TRANSLATE_VIA_MULTIBYTE): New macro.
26513 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26514 It is the same as RE_MULTIBYTE_P (bufp) now.
26515 <exactn>: Translate via multibyte.
bba3e508
SM
26516 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26517 Don't translate it.
aac0c6e3
MR
26518 <charset, charset_not>: Fetch a character by
26519 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26520 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26521 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26522 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26523 by GET_CHAR_AFTER.
26524 (bcmp_translate): Likewise.
26525
26526 * search.c (compile_pattern): Check the member target_multibyte,
26527 not the member multibyte of buf.
26528
26529 * lread.c (read1): While reading a string, set force_singlebyte
26530 and force_multibyte correctly.
26531
26532 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26533 up of unibyte_to_multibyte_table.
26534
265352008-02-01 Kenichi Handa <handa@m17n.org>
26536
26537 * coding.c (setup_coding_system): If coding has
26538 post-read-conversion or pre-write-conversion, set
26539 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26540 respectively.
26541 (decode_coding_gap): Run post-read-conversion if any.
26542
26543 * fileio.c (Finsert_file_contents): Even if we read into a
26544 unibyte buffer, check if we must decode the result or not.
26545
265462008-02-01 Kenichi Handa <handa@m17n.org>
26547
26548 * coding.c (make_conversion_work_buffer): Change the work buffer
26549 name to the same one as that of Emacs 21.
26550
265512008-02-01 Kenichi Handa <handa@m17n.org>
26552
26553 * coding.h (make_conversion_work_buffer): Adjust prototype.
26554 (code_conversion_restore): Don't extern it.
26555
26556 * coding.c (detected_mask): Delete unused variable.
26557 (decode_coding_iso_2022): Pay attention to the byte sequence of
26558 CTEXT extended segment, and retain those bytes as is.
26559 (decode_coding_ccl): Delete unused variable `valids'.
26560 (setup_coding_system): Delete unused variable `category'.
26561 (consume_chars): Delete unused variable `category'. Make it work
26562 for non-multibyte case.
26563 (make_conversion_work_buffer): Change argument.
26564 (saved_coding): Delete unused variable.
26565 (code_conversion_restore): Don't check saved_coding->destination.
26566 (code_conversion_save): New function.
26567 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26568 instead of record_unwind_protect.
26569 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26570 (detect_coding_system): Delete unused variable `mask'.
26571 (Fdefine_coding_system_internal): Delete unused variable id.
26572
26573 * fileio.c (kill_workbuf_unwind): New function.
26574 (Finsert_file_contents): On replacing, call
26575 make_conversion_work_buffer with correct args, and call
26576 record_unwind_protect with the first arg kill_workbuf_unwind.
26577
26578 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26579
265802008-02-01 Kenichi Handa <handa@m17n.org>
26581
26582 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26583 (fontset_add): Fix for the case that TO is less than TO1.
26584 (Ffontset_info): Don't use fallback fontset on checking the
26585 default fontset.
26586 (dump_fontset): New function for debugging.
26587
26588 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26589 coding_type is Qcharset.
26590
265912008-02-01 Kenichi Handa <handa@m17n.org>
26592
26593 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26594 (map_char_table): Don't inherit the value from the parent on
26595 initializing VAL. Adjust for the above change.
26596
265972008-02-01 Kenichi Handa <handa@m17n.org>
26598
26599 * coding.c (Qsignature, Qendian): Delete these variables.
26600 (syms_of_coding): Don't initialize them.
26601 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26602 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26603 detect_info->found.
26604 (decode_coding_utf_16): Don't detect BOM here.
26605 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26606 is NOT utf_16_without_bom.
26607 (setup_coding_system): For a coding system of type utf-16, check
26608 if the attribute :endian is Qbig or not (not nil or not), and set
26609 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26610 (detect_coding): If coding type is utf-16 and BOM detection is
26611 required, detect it.
26612 (Fdefine_coding_system_internal): For a coding system of type
26613 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26614
266152008-02-01 Kenichi Handa <handa@m17n.org>
26616
26617 * coding.c (coding_set_source): Fix for the case that the current
26618 buffer is different from coding->src_object.
26619 (decode_coding_object): Don't use the conversion work buffer if
26620 DST_OBJECT is a buffer.
26621
266222008-02-01 Dave Love <fx@gnu.org>
26623
26624 * lread.c (read_emacs_mule_char) [len==2]: Index
26625 emacs_mule_charset correctly.
26626
266272008-02-01 Dave Love <fx@gnu.org>
26628
26629 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26630 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26631 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26632 treated specially.)
26633 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26634 (detected_mask): Remove Big5 bits.
26635
266362008-02-01 Kenichi Handa <handa@m17n.org>
26637
26638 The following changes are to make the font rescaling facility
26639 compatible with Emacs 21.
26640
26641 * xfaces.c (Vface_font_rescale_alist): Rename from
26642 Vface_resizing_fonts.
26643 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26644 (font_rescale_ratio): Rename from font_resizing_ratio.
26645 (split_font_name): Set font->rescale_ratio.
26646 (better_font_p): Pay attention to font->rescale_ratio.
26647 (build_scalable_font_name): Likewise. Change RESX, and RESY
26648 fields.
26649 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26650
266512008-02-01 Kenichi Handa <handa@m17n.org>
26652
26653 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26654 (Qutf_16_le): Remove these variables.
26655 (syms_of_coding): Don't DEFSYM them.
26656 (decode_coding_utf_16): Fix handling of BOM.
26657 (encode_coding_utf_16): Fix handling of BOM.
26658
266592008-02-01 Kenichi Handa <handa@m17n.org>
26660
26661 * fileio.c (Finsert_file_contents): On replacing, before decoding
26662 the file into the work buffer, set point of the work buffer to the end.
26663
266642008-02-01 Dave Love <fx@gnu.org>
26665
26666 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26667
266682008-02-01 Dave Love <fx@gnu.org>
26669
26670 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26671 and fix C types.
26672
266732008-02-01 Kenichi Handa <handa@m17n.org>
26674
26675 * xdisp.c (SKIP_GLYPHS): New macro.
26676 (set_cursor_from_row): Pay attention to string display properties.
26677
26678 * category.c (copy_category_entry): Fix for the case that RANGE
26679 is an integer.
26680
26681 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26682
26683 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26684
266852008-02-01 Kenichi Handa <handa@m17n.org>
26686
26687 * charset.c (Fcharset_id_internal): New function.
26688 (syms_of_charset): Defsubr it.
26689
26690 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26691 with the last arg charset_list acquired from coding.
26692 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26693 the attribute coding_attr_ccl_valids.
26694
26695 * coding.h (enum define_coding_ccl_arg_index): Set the first
26696 member coding_arg_ccl_decoder to coding_arg_max.
26697
26698 * ccl.h (ccl_driver): Adjust prototype.
26699
26700 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26701 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 26702 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
26703 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26704 last arg Qnil.
26705
267062008-02-01 Kenichi Handa <handa@m17n.org>
26707
26708 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26709 call encode_char.
26710
26711 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26712
267132008-02-01 Dave Love <fx@gnu.org>
26714
26715 * composite.c (syms_of_composite): Make composition_hash_table weak.
26716
267172008-02-01 Kenichi Handa <handa@m17n.org>
26718
26719 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26720 (font_name_registry): Don't extern them.
26721 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26722
26723 * fontset.h (Qfontset): Don't extern it.
26724 (new_fontset_from_font_name): Extern it.
26725
26726 * fontset.c: Give 8 extra slots to fontset objects.
26727 (Qfontset_info): New variable.
26728 (syms_of_fontset): Defsym it.
26729 (FONTSET_FALLBACK): New macro.
26730 (fontset_face): Try also the default fontset.
26731 (make_fontset): Realize a fallback fontset from the default fontset.
26732 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26733 using split_font_name_into_vector and build_font_name_from_vector.
26734 (Fset_fontset_font): Access the elements of font_spec by enum
26735 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26736 name by using split_font_name_into_vector.
26737 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
26738 generate a proper font name from the fontset name.
26739 Update Vfontset_alias_alist.
aac0c6e3
MR
26740 (n_auto_fontsets): New variable.
26741 (new_fontset_from_font_name): New function.
26742 (Ffont_info): Store the information about fonts generated from the
26743 default fontset in the first extra slot of the returned char-table.
26744
26745 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26746 (font_name_registry): Delete function.
26747 (split_font_name_into_vector): New function.
26748 (build_font_name_from_vector): New function.
26749 (font_list): The argument REGISTRY is now a list of registry names.
26750 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26751 specifies an explicit font name, return the name as is. Make a
26752 list of registy names.
26753
26754 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26755 of x_new_fontset.
26756 (Fx_create_frame): Don't call x_new_fontset here. Just use
26757 x_list_fonts to check the existence of fonts.
26758
26759 * xterm.h (x_new_fontset): Adjust prototype.
26760
26761 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26762 string. Use new_fontset_from_font_name to create a fontset from a
26763 font name.
26764
267652008-02-01 Kenichi Handa <handa@m17n.org>
26766
26767 * syntax.c (Vfind_word_boundary_function_table): New name for
26768 Vnext_word_boundary_function_table.
26769 (find-word-boundary-function-table): New name for
26770 next-word-boundary-function-table.
26771
267722008-02-01 Dave Love <fx@gnu.org>
26773
26774 * Makefile.in: Fix some dependencies.
26775
26776 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26777 set it to nil before returning.
26778
26779 * composite.c (update_compositions): Fix type error.
26780
26781 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26782
267832008-02-01 Kenichi Handa <handa@m17n.org>
26784
26785 * xterm.c (x_new_font): Optimize for the case that the font is
26786 already set for the frame.
26787
267882008-02-01 Kenichi Handa <handa@m17n.org>
26789
26790 * chartab.c (char_table_ascii): Check if the char table contents
26791 is sub-char-table or not.
26792 (char_table_set, char_table_set_range): Fix argument to
26793 char_table_ascii.
26794
26795 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26796 (detect_coding_utf_8, detect_coding_utf_16)
26797 (detect_coding_emacs_mule, detect_coding_iso_2022)
26798 (detect_coding_sjis, detect_coding_big5)
26799 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26800 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26801 sequence is valid in this coding system. Change callers.
26802 (MAX_ANNOTATION_LENGTH): New macro.
26803 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
26804 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26805 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
26806 (ADD_CHARSET_DATA): New macro.
26807 (emacs_mule_char): New argument ID. Change callers.
26808 (decode_coding_emacs_mule, decode_coding_iso_2022)
26809 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26810 Produce charset annotation data in coding->charbuf.
26811 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26812 to charset annotation data in coding->charbuf.
26813 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26814 coding->common_flags if the coding system is iso-2022 based and
26815 uses designation.
26816 (produce_composition): Adjust for the new annotation data format.
26817 (produce_charset): New function.
26818 (produce_annotation): Handle charset annotation.
bba3e508
SM
26819 (handle_composition_annotation, handle_charset_annotation):
26820 New functions.
aac0c6e3
MR
26821 (consume_chars): Handle charset annotation. Utilize the above two
26822 functions.
26823 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26824 buffer, get the deleted text as a string and set
26825 coding->src_object to that string.
26826 (detect_coding, detect_coding_system): Use the new struct
26827 coding_detection_info.
26828
26829 * coding.h (struct coding_detection_info): New structure.
26830 (struct coding_system): Adjust prototype of the member `detector'.
26831 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26832
268332008-02-01 Kenichi Handa <handa@m17n.org>
26834
26835 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26836
268372008-02-01 Dave Love <fx@gnu.org>
26838
26839 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26840 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26841 to new local and nullify apropos_accumulate before returning.
26842 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26843
268442008-02-01 Kenichi Handa <handa@m17n.org>
26845
26846 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26847 correctly.
e3eea1fc 26848
aac0c6e3
MR
268492008-02-01 Dave Love <fx@gnu.org>
26850
26851 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26852
268532008-02-01 Kenichi Handa <handa@m17n.org>
26854
26855 The following changes are to make character composition happen
26856 automatically on displaying.
26857
26858 * Makefile.in (lisp, shortlisp): Add composite.elc.
26859
26860 * composite.h (Qauto_composed, Vauto_composition_function)
26861 (Qauto_composition_function): Extern them.
26862
26863 * composite.c (Vcomposition_function_table)
26864 (Qcomposition_function_table): Delete variables.
26865 (Qauto_composed, Vauto_composition_function)
26866 (Qauto_composition_function): New variables.
26867 (run_composition_function): Don't call
26868 compose-chars-after-function.
26869 (update_compositions): Clear `auto-composed' text property.
26870 (compose_chars_in_text): Delete this function.
26871 (syms_of_composite): Staticpro Qauto_composed and
26872 Qauto_composition_function. Declare Vauto_composition_function as
26873 a Lisp variable.
26874
26875 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26876
26877 * xdisp.c (it_props): Add an entry for Qauto_composed.
26878 (handle_auto_composed_prop): New function.
26879
26880 * xselect.c (selection_data_to_lisp_data): Don't call
26881 compose_chars_in_text.
26882
268832008-02-01 Dave Love <fx@gnu.org>
26884
26885 * keyboard.c (read_char): Modify checking around use of
26886 Vkeyboard_translate_table.
26887
26888 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26889 and fix C types.
26890
268912008-02-01 Kenichi Handa <handa@m17n.org>
26892
26893 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26894 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26895 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26896 the case that the last byte is '\r' correctly.
26897 (decode_coding): Flush out the unprocessed data correctly.
26898 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26899
269002008-02-01 Dave Love <fx@gnu.org>
26901
26902 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26903 Add XK_ISO... case.
26904 (xaw_scroll_callback): Revert last change.
26905
269062008-02-01 Kenichi Handa <handa@m17n.org>
26907
26908 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26909
269102008-02-01 Kenichi Handa <handa@m17n.org>
26911
26912 * xfaces.c (Vface_resizing_fonts): New variable.
26913 (struct font_name): New member `resizing_ratio'.
26914 (font_resizing_ratio): New function.
26915 (split_font_name): Set font->resizing_ratio.
26916 (better_font_p): Pay attention to font->resizing_ratio.
26917 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26918 RESX, and RESY fields.
26919 (try_alternative_families): Try scalable fonts if
26920 Vscalable_fonts_allowed is not Qt.
26921 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26922
269232008-02-01 Dave Love <fx@gnu.org>
26924
26925 * xterm.c (xaw_scroll_callback): Cast correctly.
26926
269272008-02-01 Dave Love <fx@gnu.org>
26928
26929 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26930 (lispy_kana_keys): Comment out.
26931 (make_lispy_event) [XK_kana_A]: Comment out.
26932
26933 * xterm.c (xaw_scroll_callback): Cast call_data.
26934 (XTread_socket): Deal with ASCII keysyms.
26935 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26936
269372008-02-01 Dave Love <fx@gnu.org>
26938
26939 * xterm.c (Vx_keysym_table): New.
26940 (syms_of_xterm): Initialize it.
26941 (XTread_socket): Use it.
26942 From head: Eliminate incorrect optimization that tried to avoid
26943 decoding the output of X*LookupString.
26944 (x_get_font_repertory): Delete charset declaration.
26945
269462008-02-01 Kenichi Handa <handa@m17n.org>
26947
26948 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26949 return 0.
bba3e508
SM
26950 (Fdefine_coding_system_internal):
26951 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
26952
269532008-02-01 Dave Love <fx@gnu.org>
26954
26955 * coding.c (Fcheck_coding_system): Doc fix.
26956
26957 * editfns.c (Finsert_byte): Return a proper value.
26958
269592008-02-01 Kenichi Handa <handa@m17n.org>
26960
bba3e508
SM
26961 * coding.c (decode_coding): Fix args to translate_chars.
26962 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
26963 (encode_coding): Fix args to translate_chars. Pay attention to
26964 Vstandard_translation_table_for_encode.
26965
26966 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26967 SINGLE_BYTE_CHAR_P.
26968
26969 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26970 not by SINGLE_BYTE_CHAR_P.
26971
26972 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26973 SINGLE_BYTE_CHAR_P.
26974
26975 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26976 SINGLE_BYTE_CHAR_P.
26977
26978 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26979 by SINGLE_BYTE_CHAR_P.
26980
26981 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26982 SINGLE_BYTE_CHAR_P.
26983
269842008-02-01 Dave Love <fx@gnu.org>
26985
26986 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26987
269882008-02-01 Dave Love <fx@gnu.org>
26989
26990 * fns.c (Flanginfo): Fix typo.
26991
26992 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26993
269942008-02-01 Kenichi Handa <handa@m17n.org>
26995
26996 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26997 (detect_coding_emacs_mule, detect_coding_iso_2022)
26998 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26999 incomplete byte sequence. Don't update *mask when correctly detected.
27000 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27001 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27002 (detect_coding, detect_coding_system): Adjust for the changes above.
27003
270042008-02-01 Kenichi Handa <handa@m17n.org>
27005
27006 * character.c (char_string): Rename from
27007 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27008 (string_char): Rename from string_char.
27009
27010 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27011 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
27012 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27013 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
27014
270152008-02-01 Dave Love <fx@gnu.org>
27016
27017 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27018
270192008-02-01 Kenichi Handa <handa@m17n.org>
27020
27021 * keymap.c (push_key_description): Pay attention to force_multibyte.
27022
27023 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27024
270252008-02-01 Dave Love <fx@gnu.org>
27026
27027 * charset.c (define_charset_internal): Rename `supprementary'.
27028
27029 * Makefile.in (lisp, shortlisp): Remove latin-N.
27030
270312008-02-01 Dave Love <fx@gnu.org>
27032
27033 * xfns.c (x_window, x_window): Use use_xim.
27034
27035 * xterm.c (use_xim): Initialize.
27036 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27037 (x_term_init): Maybe set use_xim.
27038
27039 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27040
270412008-02-01 Kenichi Handa <handa@m17n.org>
27042
27043 * search.c (search_buffer): Fix case-fold-search of multibyte
27044 characters.
27045 (boyer_moore): Rename the last argument to char_high_bits.
27046
270472008-02-01 Kenichi Handa <handa@m17n.org>
27048
27049 * xdisp.c (display_string): Fix for the case of zero width glyph.
27050
27051 * xfns.c (x_set_font): Change the error message of the case that
27052 x_new_fontset returns Qt.
27053
27054 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27055 (Finternal_set_lisp_face_attribute): Use signal_error for the
27056 error of invalid fontset.
27057
27058 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27059 fontset, return Qt.
27060
270612008-02-01 Dave Love <fx@gnu.org>
27062
27063 * unexelf.c (unexec): Make .got handling not SGI-specific.
27064
27065 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27066
27067 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27068
27069 * keyboard.c (read_key_sequence): Fix type error.
27070
bba3e508
SM
27071 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27072 Fix type error.
aac0c6e3
MR
27073
27074 * fontset.c (fontset_add): Return Lisp_Object.
27075
270762008-02-01 Dave Love <fx@gnu.org>
27077
27078 * charset.h (charset_ordered_list_tick): Declare extern.
27079
270802008-02-01 Kenichi Handa <handa@m17n.org>
27081
27082 The following changes (and some of 2008-02-01 changes of mine) are
27083 for handling syntax, category, and case conversion for unibyte
27084 characters by converting them to multibyte on the fly. With these
27085 changes, we don't have to setup syntax and case tables for unibyte
27086 characters in each language environment.
27087
27088 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27089 multibyte if necessary.
27090
27091 * bytecode.c (Fbyte_code): Likewise.
27092
27093 * character.h (LEADING_CODE_LATIN_1_MIN)
27094 (LEADING_CODE_LATIN_1_MAX): New macros.
27095 (unibyte_to_multibyte_table): Extern it.
27096 (unibyte_char_to_multibyte): New macro.
27097 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27098 (CHAR_LEADING_CODE): New macro.
27099 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27100
27101 * character.c (unibyte_to_multibyte_table): New variable.
27102 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27103 (multibyte_char_to_unibyte): If C is an eight-bit character,
27104 convert it to the corresponding byte value.
27105
27106 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27107 not 1, signals an error. Update the elements of
27108 unibyte_to_multibyte_table.
27109 (init_charset_once): Initialize unibyte_to_multibyte_table.
27110 (syms_of_charset): Define the charset `iso-8859-1'.
27111
27112 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27113 as is without converting it to unibyte. In a unibyte buffer,
27114 convert C to multibyte before checking the syntax.
27115
27116 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27117
27118 * minibuf.c (Fminibuffer_complete_word): Use the macro
27119 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27120
27121 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27122
27123 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
27124 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27125 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
27126 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27127 non-emacs case.
27128 (PATFETCH): Convert an eight-bit char to multibyte.
27129 (HANDLE_UNIBYTE_RANGE): New macro.
27130 (regex_compile): Setup the compiled pattern for multibyte chars
27131 even if the given regex string is unibyte. Use PATFETCH_RAW
27132 instead of PATFETCH in many places. To handle `charset'
27133 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27134 only for ASCII chars.
27135 (analyse_first) <exactn>: Simplify because the compiled pattern
27136 is multibyte.
27137 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27138 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27139 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27140 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27141 multibyte always 1.
27142 (re_search_2): In emacs, set the locale variable multibyte to 1,
27143 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
27144 to decide the multibyteness of STR1 and STR2.
27145 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
27146 before translating and checking fastmap.
27147 (TARGET_CHAR_AND_LENGTH): New macro.
27148 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
27149 to 1, otherwise to 0. New local variable target_multibyte.
27150 Check it to decide the multibyteness of STR1 and STR2.
27151 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
27152 <charset, charset_not>: If multibyte is nonzero, check fastmap
27153 only for ASCII chars. Call bcmp_translate with
27154 target_multibyte, not with multibyte.
27155 <begline>: Declare the local variable C as `unsigned'.
27156 (bcmp_translate): Change the last arg name to target_multibyte.
27157
27158 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27159 the regexp pattern and the matching target. Set cp->buf.multibyte
27160 to the multibyteness of the regexp pattern. Set
27161 cp->but.target_multibyte to the multibyteness of the matching target.
27162 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27163 FETCH_STRING_CHAR_ADVANCE.
27164 (Freplace_match): Convert unibyte chars to multibyte.
27165
27166 * syntax.c (char_quoted, back_comment, scan_words)
27167 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27168 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27169 unibyte chars to multibyte.
27170 (skip_chars): Delete the arg syntaxp, and move the code for
27171 handling syntaxes to skip_syntaxes. Change callers.
27172 Fix the case that the multibyteness of STRING and the current
27173 buffer doesn't match.
27174 (skip_syntaxes): New function.
27175 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27176 SINGLE_BYTE_CHAR_P.
27177
271782008-02-01 Kenichi Handa <handa@m17n.org>
27179
27180 * xfaces.c (QCfontset): New variable.
27181 (LFACE_FONTSET): New macro.
27182 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27183 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27184 (Finternal_set_lisp_face_attribute)
27185 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27186 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27187 check also LFACE_FONTSET_INDEX.
27188 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27189 attrs[LFACE_FONT_INDEX].
27190 (syms_of_xfaces): Intern and staticpro QCfontset.
27191
27192 * dispextern.h (enum lface_attribute_index): New member
27193 LFACE_FONTSET_INDEX.
27194
27195 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27196
271972008-02-01 Kenichi Handa <handa@m17n.org>
27198
27199 * coding.c (coding_set_destination): Fix coding->destination for
27200 the case converting a region.
27201 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27202 (encode_coding_object): Fix coding->dst_pos and
27203 coding->dst_pos_byte for the case converting a region.
27204
27205 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27206
27207 * character.h (BYTE8_STRING): New macro.
27208
27209 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27210
272112008-02-01 Kenichi Handa <handa@m17n.org>
27212
27213 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27214 characters by octal form.
27215
27216 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27217
27218 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27219 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27220 _fetch_multibyte_char_len.
27221 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27222
27223 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27224
27225 * casefiddle.c (casify_object): Simplify. Handle the case that
27226 the case conversion change the byte length.
27227 (casify_region): Likewise.
27228
27229 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27230
27231 * character.c (_fetch_multibyte_char_len): Delete this variable.
27232 (syms_of_character): Setup Vprintable_chars.
27233
27234 * editfns.c (Fchar_equal): Fix for the unibyte case.
27235 (Finsert_byte): New function.
27236 (syms_of_editfns): Defsubr it.
27237
27238 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27239 of direct code 0x3ffff.
27240
27241 * search.c (Freplace_match): Fix for the unibyte case.
27242
272432008-02-01 Kenichi Handa <handa@m17n.org>
27244
27245 * lread.c (safe_to_load_p): Fix the logic.
27246
27247 * syntax.c (scan_words): Don't treat characters belonging to
27248 different scripts as constituting a word.
27249
27250 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27251
27252 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27253
27254 * emacs.c (main): In the case of --unibyte, instead of aborting on
27255 finding non-empty buffer, make it unibyte.
27256
272572008-02-01 Kenichi Handa <handa@m17n.org>
27258
27259 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27260 to create a fontset.
27261
272622008-02-01 Dave Love <fx@gnu.org>
27263
27264 * character.c (Funibyte_char_to_multibyte): Doc fix.
27265
27266 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27267
272682008-02-01 Kenichi Handa <handa@m17n.org>
27269
27270 * fontset.c (fontset_add): Make the type `int'.
27271 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27272
27273 * character.c (unibyte_char_to_multibyte)
27274 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27275 charset_unibyte, not charset_primary.
27276
27277 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27278
27279 * charset.c (charset_unibyte): Rename from charset_primary.
27280 (Funibyte_charset): Rename from Fprimary_charset.
27281 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27282 (syms_of_charset): Adjust for the above changes.
27283
27284 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27285 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27286 it->multibyte_p is zero.
27287
27288 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27289 Delete extern.
27290
272912008-02-01 Kenichi Handa <handa@m17n.org>
27292
27293 * coding.c (Fdefine_coding_system_internal): Fix category setting
27294 for a coding system of type iso-2022.
27295
272962008-02-01 Kenichi Handa <handa@m17n.org>
27297
27298 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27299
273002008-02-01 Kenichi Handa <handa@m17n.org>
27301
27302 * syntax.c (Vnext_word_boundary_function_table): New variable.
27303 (next-word-boundary-function-table): Declare it as a Lisp variable
27304 in syms_of_syntax.
27305 (scan_words): Call functions in Vnext_word_boundary_function_table
27306 if any.
27307
27308 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27309
27310 * fontset.c (fs_load_font): If fontp->charset is not negative,
27311 return fontp without setting its members.
27312
273132008-02-01 Dave Love <fx@gnu.org>
27314
27315 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27316
27317 * m/sparc.h (HAVE_ALLOCA): Delete.
27318
27319 * s/irix6-5.h: Don't include strings.h.
27320 (bcopy, bzero, bcmp): Don't undef.
27321
27322 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27323
27324 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27325 (TIOCSIGSEND): Don't test IRIX6.
27326 (bcopy, bzero, bcmp): Define conditionally.
27327
273282008-02-01 Kenichi Handa <handa@m17n.org>
27329
27330 * buffer.c (Qas, Qmake, Qto): New variables.
27331 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27332 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27333
27334 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27335 we are inserting a process output into a multibyte buffer.
27336
27337 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27338 multibyte_char_to_unibyte.
27339
27340 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27341 by the primary charset, make it eight-bit char.
27342 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27343
27344 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27345 (charset_8_bit__control, charset_8_bit_graphic)
27346 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27347 (define_charset_internal): New function.
27348 (syms_of_charset): Call define_charset_internal for pre-defined
27349 charsets.
27350
27351 * charset.h (charset_8_bit): Extern it.
27352
27353 * coding.c (make_conversion_work_buffer): Adjust for the change
27354 of Fset_buffer_multibyte.
27355 (encode_coding_raw_text): Increment p0 in the loop.
27356
27357 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27358
bba3e508
SM
27359 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27360 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27361
27362 * fns.c (Fstring_to_multibyte): New function.
27363 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27364
273652008-02-01 Dave Love <fx@gnu.org>
27366
27367 * xfns.c (x_put_x_image): Declare args.
27368
27369 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27370 (try_font_list): Declare an arg.
27371
27372 * xdisp.c (message2_nolog, set_message): Declare an arg.
27373
27374 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27375
27376 * syntax.c (scan_sexps_forward): Declare an arg.
27377
27378 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27379 Declare an arg.
27380
27381 * lisp.h (Fnew_fontset): Declare.
27382
27383 * keymap.c (push_key_description): Call CHARACTERP correctly.
27384
27385 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27386 (face_for_char): Delete unused vars.
27387 (Fset_fontset_font): Doc fix. Delete unused vars.
27388
27389 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27390
27391 * composite.c (update_compositions): Declare arg.
27392
27393 * cm.c (calccost, cmgoto): Declare args.
27394
27395 * charset.c: Remove `emacs' conditional. Doc fixes.
27396 (map_char_table_for_charset): Declare.
27397
27398 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27399
27400 * ccl.c: Remove `emacs' conditional.
27401
274022008-02-01 Kenichi Handa <handa@m17n.org>
27403
27404 The following changes are to allow specifying multiple font
27405 patterns for a character range (specified by script or charset).
27406
27407 * Makefile.in (abbrev.o): Depend on syntax.h.
27408 (xfaces.o): Depend on charset.h.
27409
27410 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27411 SINGLE_BYTE_CHAR_P.
27412
27413 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27414
27415 * character.h (Vchar_script_table): Extern it.
27416
27417 * character.c (Vscript_alist): Delete.
27418 (Vchar_script_table, Qchar_script_table): New variable.
27419 (syms_of_character): Declare Vchar_script_table as a lisp variable
27420 and initialize it.
27421
27422 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27423 have property char-table-extra-slots, make no extra slot.
27424
27425 * dispextern.h (struct face): Delete member `charset'.
27426 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27427 SINGLE_BYTE_CHAR_P.
27428 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27429 Add prototypes.
27430 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27431 (generate_ascii_font_name): Rename from generate_ascii_font.
27432
27433 * fontset.h (get_font_repertory_func): New prototype.
27434 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27435 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27436
27437 * fontset.c (Qprepend, Qappend): New variables.
27438 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27439 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27440 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27441 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27442 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27443 (load_font_get_repertory): New functions.
27444 (fontset_set): Delete.
27445 (fontset_face): New arg FACE. Return face ID, not face.
27446 Complete re-write to handle new fontset structure. Change caller.
27447 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27448 (face_for_char): Don't call lookup_face.
27449 (make_fontset_for_ascii_face): New arg FACE.
27450 (fs_load_font): New arg CHARSET_ID. Don't check
27451 Vfont_encoding_alist here.
27452 (find_font_encoding): New function.
27453 (list_fontsets): Use STRINGP, not ! NILP.
27454 (accumulate_script_ranges): New function.
bba3e508
SM
27455 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27456 Completely re-written to handle new fontset structure.
aac0c6e3 27457 (Ffontset_font): Return a copy of element.
bba3e508
SM
27458 (syms_of_fontset): Define symbols Qprepend and Qappend.
27459 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27460
27461 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27462 (Fset_fotset_font): Fix arguments to 5.
27463
27464 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27465
27466 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27467 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27468 (highlight_trailing_whitespace): Adjust for the change of
27469 lookup_named_face.
27470
27471 * xfaces.c: Include charset.h.
27472 (load_face_font): Delete argument C. Change caller.
27473 (generate_ascii_font_name): Rename from generate_ascii_font.
27474 (font_name_registry): New function.
27475 (cache_face): Store ascii faces before non-ascii faces in buckets.
27476 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27477 Lookup only ascii faces.
27478 (lookup_non_ascii_face): New function.
27479 (lookup_named_face): Delete argument C. Change caller.
27480 (lookup_derived_face): Delete argument C. Change caller.
27481 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27482 a string, just call font_list with it.
27483 (choose_face_font): Delete arguments FACE and C. New arg
27484 FONT_SPEC. Change caller.
27485 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27486 Change caller.
27487 (realize_non_ascii_face): New function.
27488 (realize_x_face): Call load_face_font here.
27489 (realize_tty_face): Delete argument C. Change caller.
27490 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27491 get a face ID.
27492 (dump_realized_face): Don't print charset of FACE.
27493
27494 * xfns.c (x_set_font): Always call x_new_fontset and
27495 store_frame_parameter.
27496 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27497 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27498
27499 * xterm.h (x_get_font_repertory): Extern it.
27500
27501 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27502 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27503 it->multibyte_p is zero.
27504 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27505 (x_new_fontset): If FONTSETNAME doesn't match any existing
27506 fontsets, create a new one.
27507 (x_get_font_repertory): New function.
27508
275092008-02-01 Kenichi Handa <handa@m17n.org>
27510
27511 * coding.c (Ffind_coding_systems_region_internal): Detect an
27512 ASCII only string correctly.
27513
27514 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27515 version is 0.
27516
275172008-02-01 Kenichi Handa <handa@m17n.org>
27518
27519 * lread.c: Include "coding.h".
27520 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27521 (load_each_byte, unread_char): New variables.
27522 (readchar_backlog): Delete.
27523 (readchar): Return a character unless load_each_byte is nonzero.
27524 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27525 cons. If unread_char is not -1, simply return it.
27526 (unreadchar): Handle the case that readcharfun is
27527 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27528 (read_multibyte): Delete.
27529 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27530 (read_emacs_mule_char): New functions.
27531 (Fload): Even if the file doesn't have the extension ".elc", if
27532 safe_to_load_p returns a positive version number, assume that the
27533 file contains bytecompiled code. If the version is less than 22,
27534 load the file while decoding multibyte sequences by emacs-mule.
27535 (readevalloop): Don't use readchar_backlog.
27536 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27537 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27538 (read_escape): Delete the arg BYTEREP.
27539 (read1): Set load_each_byte to 1 temporarily while handling
27540 #@NUMBER. Don't call read_multibyte.
27541 (read_vector): Call Fread with a cons. If readcharfun is
27542 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27543 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27544 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27545 and Qload_force_doc_strings.
27546
275472008-02-01 Kenichi Handa <handa@m17n.org>
27548
bba3e508
SM
27549 * xdisp.c (face_before_or_after_it_pos):
27550 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27551
275522008-02-01 Kenichi Handa <handa@m17n.org>
27553
27554 * character.h (TRAILING_CODE_P): New macro.
27555 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27556 (string_char_with_unification): Fix prototype.
27557 (Vscript_alist): Extern it.
27558
27559 * character.c (Vscript_alist): New variable.
27560 (string_char_with_unification, str_as_unibyte)
27561 (string_escape_byte8): Add `const' to local variables.
27562 (syms_of_character): Declare script-alist as a Lisp variable.
27563
27564 * charset.h (Vcharset_ordered_list): Extern it.
27565 (charset_ordered_list_tick): Extern it.
27566 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27567 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27568 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27569 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27570 (Funify_charset): Adjust for the change of Funify_charset.
27571
27572 * charset.c (charset_ordered_list_tick): New variable.
27573 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27574 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27575 deunify instead of unify a charset.
aac0c6e3
MR
27576 (string_xstring_p): Add `const' to local variables.
27577 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27578 (encode_char): Adjust for the change of Funify_charset.
27579 Fix detecting of invalid code.
aac0c6e3
MR
27580 (Fset_charset_priority): Increment charset_ordered_list_tick.
27581 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27582 and TO_CODE.
27583
27584 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27585 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27586 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27587 (decode_coding_ccl, consume_chars)
27588 (Ffind_coding_systems_region_internal)
27589 (Fcheck_coding_systems_region): Add `const' to local variables.
27590
27591 * print.c (print_object): Use octal form for printing the
27592 contents of a bool vector.
27593
275942008-02-01 Dave Love <fx@gnu.org>
27595
27596 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27597 <version == 20>: Refuse to load.
27598
275992008-02-01 Dave Love <fx@gnu.org>
27600
27601 * fns.c: Move coding.h.
27602 (Qcodeset, Qdays, Qmonths): New.
27603 (concat): Use CHARACTERP instead of INTEGERP.
27604 (Flocale_codeset): Delete.
27605 (Flanginfo): New function.
27606 (syms_of_fns): Change accordingly.
27607
27608 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27609
276102008-02-01 Dave Love <fx@gnu.org>
27611
bba3e508
SM
27612 * casetab.c (init_casetab_once, init_casetab_once):
27613 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
27614
27615 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27616
27617 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27618
27619 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27620 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27621 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27622
27623 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27624
27625 * coding.c (ENCODE_DESIGNATION, decode_eol)
27626 (make_conversion_work_buffer, code_conversion_restore)
27627 (Fdefine_coding_system_internal): Convert Lisp types.
27628 (code_conversion_restore): Use EQ, not ==.
27629 (Fencode_coding_string): Fix code_convert_string call.
27630
27631 * coding.h (code_convert_region): Fix prototype.
27632
27633 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27634
27635 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27636 (Ffontset_info): Convert Lisp types.
27637
27638 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27639
27640 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27641
27642 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27643
27644 * chartab.c: Include "...h", not <...h> in some cases.
27645
27646 * callproc.c (Fcall_process): Remove unused variables.
27647
276482008-02-01 Dave Love <fx@gnu.org>
27649
27650 * coding.c (Fset_coding_system_priority): Allow null arg list.
27651
276522008-02-01 Dave Love <fx@gnu.org>
27653
27654 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27655 (Fself_insert_and_exit): Use CHARACTERP.
27656
27657 * callproc.c (Fcall_process): Remove unused vars.
27658
27659 * xterm.c (XTread_socket): Add extra dead keysyms.
27660
27661 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27662
27663 * dispextern.h: Remove prototypes for redraw_frame,
27664 redraw_garbaged_frames.
27665
27666 * cmds.c (Fself_insert_command): Use CHARACTERP.
27667
27668 * chartab.c (make_sub_char_table): Remove unused var.
27669 (Fset_char_table_default, Fmap_char_table): Doc fix.
27670
27671 * keymap.c (access_keymap): Remove generic char code.
27672 (push_key_description): Use CHARACTERP.
27673
276742008-02-01 Dave Love <fx@gnu.org>
27675
27676 * charset.c: Doc fixes.
27677 (Funify_charset): Extra checking.
27678
276792008-02-01 Dave Love <fx@gnu.org>
27680
27681 * lread.c: Remove some unused variables.
27682 (safe_to_load_p): If safe, return the magic number version byte.
27683 (Fload): Maybe use load-with-code-conversion.
27684
276852008-02-01 Kenichi Handa <handa@m17n.org>
27686
27687 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
27688 of category_set for characters out of the range.
27689 Avoid unnecessary modification.
aac0c6e3
MR
27690
27691 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27692 Vchar_unify_table. The default value of the table is now nil.
27693
27694 * character.c (syms_of_character): Setup Vchar_width_table for
27695 eight-bit-control and raw-byte chars.
27696
bba3e508
SM
27697 * charset.h (enum define_charset_arg_index):
27698 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
27699 charset_arg_superset.
27700 (enum charset_attr_index): Delete charset_parents and add
27701 charset_subset and charset_superset.
27702 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27703 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27704 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27705 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27706 (CHARSET_SUPERSET): New macros.
27707 (charset_work): Extern it.
27708 (ENCODE_CHAR): Use charset_work.
27709 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27710 (map_charset_chars): Extern it.
27711
27712 * charset.c (load_charset_map): Set the default value of encoder
27713 and deunifier char-tables to nil.
bba3e508
SM
27714 (map_charset_chars): Change argument. Change callers.
27715 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
27716 (Fmap_charset_chars): New optional args from_code and to_code.
27717 (Fdefine_charset_internal): Adjust for the change of
27718 `define-charset' (:parents -> :subset or :superset).
27719 (charset_work): New variable.
27720 (encode_char, syms_of_charset): Adjust for the change of
27721 Fdefine_charset_internal.
27722 (Ffind_charset_string): Setup the vector `charsets' correctly.
27723
bba3e508
SM
27724 * chartab.c (sub_char_table_ref_and_range): New arg default.
27725 Fix the previous change.
aac0c6e3
MR
27726 (char_table_ref_and_range): Adjust for the above change.
27727 (map_sub_char_table_for_charset): New function.
27728 (map_char_table_for_charset): New function.
27729
27730 * keymap.c (describe_vector): Handle a char-table directly here.
27731 (describe_char_table): Delete.
27732
27733 * lisp.h (map_charset_chars): Delete.
27734
277352008-02-01 Dave Love <fx@gnu.org>
27736
27737 * fns.c (count_combining): Comment out (unused).
27738 (Flocale_codeset): New.
27739 (syms_of_fns): Defsubr it.
27740
27741 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27742 (size_t): Remove.
27743
277442008-02-01 Dave Love <fx@gnu.org>
27745
27746 * Makefile.in (chartab.o): Depend on charset.h.
27747
277482008-02-01 Kenichi Handa <handa@m17n.org>
27749
27750 * character.c (syms_of_character): Set the default value of
27751 Vprintable_chars to Qnil.
27752
277532008-02-01 Dave Love <fx@gnu.org>
27754
27755 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27756
277572008-02-01 Kenichi Handa <handa@m17n.org>
27758
27759 * charset.c (load_charset_map): Handle the case that from < to
27760 correctly.
27761
27762 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27763 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27764 Pay attention to raw-8-bit chars.
27765
277662008-02-01 Kenichi Handa <handa@m17n.org>
27767
27768 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27769 It is not bytecompiled now.
27770
27771 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27772 (charset_jisx0208): New variables.
27773 (Fdefine_charset_internal): Setup them if appropriate.
27774 (init_charset_once): Initialize them to -1.
27775
27776 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27777 (charset_jisx0208): Extern them.
27778
27779 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27780 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27781 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27782 (setup_iso_safe_charsets): Fix arguments to Fassq.
27783 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27784 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27785 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27786 (encode_coding_iso_2022): Change the 1st arg to
27787 ENCODE_ISO_CHARACTER to a variable.
27788
277892008-02-01 Kenichi Handa <handa@m17n.org>
27790
27791 * charset.h (enum define_charset_arg_index): New enums
27792 charset_arg_min_code and charset_arg_max_code.
27793 (struct charset): New member char_index_offset.
27794
27795 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27796 Take charset->char_index_offset into account.
27797 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27798 args[charset_arg_max_code]. Setup charset.char_index_offset.
27799 (syms_of_charset): Fix args to Fdefine_charset_internal.
27800
278012008-02-01 Dave Love <fx@gnu.org>
27802
27803 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27804
278052008-02-01 Dave Love <fx@gnu.org>
27806
27807 * coding.c: Doc fixes.
27808 (Fcoding_system_aliases): Fix return value.
27809 (Qmac): Remove (duplicated) definition.
27810
278112008-02-01 Dave Love <fx@gnu.org>
27812
362654a6
JB
27813 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27814 New functions.
aac0c6e3
MR
27815
27816 * character.c (Fstring): Doc fix.
27817
27818 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27819
362654a6 27820 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
27821 (font-encoding-alist): Doc fix.
27822
278232008-02-01 Dave Love <fx@gnu.org>
27824
27825 * term.c (costs_set): Declare static, non-initialized for pcc.
27826 (encode_terminal_code): Remove unused var.
27827
27828 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27829 for K&R.
27830
27831 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27832
27833 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27834 (suffixes): Move out of make_subsidiaries for K&R.
27835
27836 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27837
27838 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27839
278402008-02-01 Dave Love <fx@gnu.org>
27841
27842 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27843
27844 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27845
278462008-02-01 Yong Lu <lyongu@asia-infonet.com>
27847
27848 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27849
27850 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27851
278522008-02-01 Kenichi Handa <handa@m17n.org>
27853
27854 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27855 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27856
278572008-02-01 Kenichi Handa <handa@m17n.org>
27858
27859 * coding.c (decode_coding_charset): Adjust for the change of
27860 Fdefine_coding_system_internal.
27861 (Fdefine_coding_system_internal): For a coding system of
27862 `charset' type, store a list of charset IDs in
27863 `charset_attr_charset_valids' element of coding attributes.
27864
278652008-02-01 Kenichi Handa <handa@m17n.org>
27866
27867 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
27868 (emacs_mule_char): New arg src. Delete arg `composition'.
27869 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
27870 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27871 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27872 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
27873 (DECODE_EMACS_MULE_21_COMPOSITION):
27874 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
27875 sequence.
27876 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27877 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27878 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27879 and alt&rule composition.
27880 (decode_coding_iso_2022): Handle composition correctly.
27881 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27882
27883 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27884 re-defining a charset. If the charset has :emacs-mule-id, setup
27885 emacs_mule_bytes.
27886 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27887
278882008-02-01 Kenichi Handa <handa@m17n.org>
27889
27890 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27891 (encode_coding_big5, encode_coding_charset): If coding requires safe
27892 encoding, produce a character specified by
27893 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27894
278952008-02-01 Dave Love <fx@gnu.org>
27896
27897 * xterm.c (XSetIMValues): Declare.
27898
27899 * process.c: Conditionally include sys/wait.h, pty.h.
27900
27901 * print.c (print_object): Fix print format for 64-bit systems.
27902
27903 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27904
27905 * buffer.c (emacs_strerror): Declare.
27906
27907 * fontset.c (Fclear_face_cache): Declare.
27908 (accumulate_font_info): Comment-out (unused).
27909 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27910 variables.
27911
27912 * character.h (string_escape_byte8): Declare.
27913
bba3e508
SM
27914 * charset.c (load_charset_map, load_charset_map_from_file):
27915 Remove unused vars.
aac0c6e3
MR
27916 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27917 (Fmap_charset_chars): Doc fix.
27918
27919 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27920 (Fset_coding_system_priority, Fset_coding_system_priority)
27921 (Fdefine_coding_system_internal): Doc fix.
27922
279232008-02-01 Dave Love <fx@gnu.org>
27924
27925 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27926
279272008-02-01 Kenichi Handa <handa@m17n.org>
27928
27929 * character.c (string_escape_byte8): Make multibyte string with
27930 correct size.
27931
27932 * charset.c (Fmake_char): Delete unnecessary code.
27933
279342008-02-01 Kenichi Handa <handa@m17n.org>
27935
27936 * xfns.c (x_encode_text): Allocate coding.destination here, and
27937 call encode_coding_object with dst_object Qnil.
27938
27939 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27940 multibyte form correctly.
27941
27942 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27943 against Vfont_encoding_alist.
27944
27945 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27946 handling of charset list.
27947 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27948 (decode_coding_object): Move point to coding->dst_pos before
27949 calling post-read-conversion function.
27950 (encode_coding_object): Give correct arguments to
27951 pre-write-conversion. Ignore the return value of
27952 pre-write-conversion function. Pay attention to the case that
27953 pre-write-conversion changes the current buffer. If dst_object is
27954 Qt, even if coding->src_bytes is zero, allocate at least one byte
27955 to coding->destination.
27956
27957 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27958
27959 * charset.c (Fmake_char): Make it more backward compatible.
27960 (Fmap_charset_chars): Fix docstring.
27961
279622008-02-01 Dave Love <fx@gnu.org>
27963
27964 * coding.c: Doc fixes.
27965 (Fdefine_coding_system_alias): Use names, not symbols, in
27966 coding-system-alist.
27967
279682008-02-01 Kenichi Handa <handa@m17n.org>
27969
27970 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27971 of calling free_realized_face.
27972
279732008-02-01 Yong Lu <lyongu@asia-infonet.com>
27974
27975 * charset.c (read_hex): Don't treat SPC as a comment starter.
27976 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27977 (Fdecode_char): Fix typo.
27978
279792008-02-01 Kenichi Handa <handa@m17n.org>
27980
27981 * charset.h (struct charset): New member `code_space_mask'.
27982
27983 * coding.c (coding_set_source): Delete the local variable beg_byte.
27984 (encode_coding_charset, Fdefine_coding_system_internal):
27985 Delete the local variable charset.
bba3e508
SM
27986 (Fdefine_coding_system_internal):
27987 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27988
27989 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27990 member to check if CODE is valid or not.
27991 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27992 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27993 is within the range of charset->min_code and carset->max_code.
27994
279952008-02-01 Dave Love <fx@gnu.org>
27996
27997 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27998
27999 * dispextern.h (generate_ascii_font): Fix return type.
28000
28001 * xfaces.c (generate_ascii_font): Fix arg declaration.
28002
28003 * coding.c (coding_inherit_eol_type)
28004 (Fset_terminal_coding_system_internal)
28005 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28006
280072008-02-01 Kenichi Handa <handa@m17n.org>
28008
bba3e508
SM
28009 * coding.c (decode_coding_charset, encode_coding_charset):
28010 Handle multiple charsets correctly.
aac0c6e3
MR
28011
280122008-02-01 Kenichi Handa <handa@m17n.org>
28013
28014 * search.c (boyer_moore): Fix handling of multibyte character
28015 translation.
28016
28017 * xdisp.c (display_mode_element): When the variable `elt' is
28018 changed, update `this' and `lisp_string'.
28019
280202008-02-01 Kenichi Handa <handa@m17n.org>
28021
28022 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28023
28024 * callproc.c (Fcall_process): Be sure to give the current buffer
28025 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28026
28027 * charset.c (struct charset_map_entries): New struct.
28028 (load_charset_map): Rename from parse_charset_map. New args
28029 entries and n_entries. Change caller.
28030 (load_charset_map_from_file): Rename from load_charset_map.
28031 Change caller. New arg control_flag. Call load_charset_map at
28032 the tail.
28033 (load_charset_map_from_vector): New function.
28034 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28035 (encode_char): If the charset is compact, change a character index
28036 to a code point.
28037
28038 * coding.c (coding_alloc_by_making_gap): Check the case that the
28039 source and destination are the same correctly.
28040 (decode_coding_raw_text): Set coding->consumed_char and
28041 coding->consumed to 0.
28042 (produce_chars): If coding->chars_at_source is nonzero, update
28043 coding->consumed_char and coding->consumed before calling
28044 alloc_destination.
28045 (Fdefine_coding_system_alias): Register ALIAS in
28046 Vcoding_system_alist.
28047 (syms_of_coding): Define `no-conversion' coding system at the tail.
28048
28049 * fileio.c (Finsert_file_contents): Set coding_system instead of
28050 val. If the current buffer is multibyte, always call
28051 decode_coding_gap.
28052
28053 * xfaces.c (try_font_list): Give higher priority to fontset's
28054 family than face's family.
28055
280562008-02-01 Kenichi Handa <handa@m17n.org>
28057
28058 * callproc.c (Fcall_process): Be sure to give the current buffer
28059 to decode_coding_c_string.
28060
28061 * xfaces.c (try_font_list): Give a family specified in a fontset
28062 higher priority than a family specified in a face.
28063
280642008-02-01 Kenichi Handa <handa@m17n.org>
28065
28066 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28067 Fix arguments to insert_from_buffer.
28068
28069 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28070
280712008-02-01 Kenichi Handa <handa@m17n.org>
28072
28073 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28074 (decode_coding_gap): Set coding->dst_multibyte correctly.
28075
280762008-02-01 Kenichi Handa <handa@m17n.org>
28077
28078 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28079 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28080 (encode_coding_utf_16): Substitute coding->default_char for
28081 non-Unicode characters.
28082 (decode_coding): Don't call record_insert here.
28083 (setup_coding_system): Initialize `surrogate' of
28084 coding->spec.utf_16 to 0.
28085 (EMIT_ONE_BYTE): Fix for multibyte case.
28086
28087 * insdel.c (insert_from_gap): Call record_insert.
28088
280892008-02-01 Kenichi Handa <handa@m17n.org>
28090
28091 * casefiddle.c (casify_region): Fix multibyte case.
28092
28093 * character.c (c_string_width): Add return type `int'.
28094 (char_string_with_unification): Delete arg ADVANCED.
28095
28096 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28097 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28098 (CHAR_STRING_ADVANCE): Make it do-while statement.
28099
28100 * chartab.c (sub_char_table_set_range): Optimize for the case
28101 DEPTH == 3. Add workaround code for a GCC optimization bug.
28102
28103 * charset.c (parse_charset_map): Remove an unused variable.
28104
28105 * coding.c: Delete unused variables.
28106
28107 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28108 earlier. If inserted is zero and the coding system doesn't
28109 require flushing, don't call decode_coding_gap.
28110
28111 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28112
281132008-02-01 Kenichi Handa <handa@m17n.org>
28114
28115 The following changes are for using Unicode as an internal
28116 character model, and use UTF-8 format for buffer/string
28117 representation.
28118
28119 * .gdbinit (xchartable): Adjust for the change of char table structure.
28120 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28121
28122 * Makefile.in (obj): Add character.o and chartab.o.
28123 (lisp, shortlisp): Remove utf-8.elc.
28124 (*.o): For many files, change dependency on charset.h to
28125 character.h, and add dependency on character.h.
28126 (character.o, chartab.o): New targets.
28127
28128 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28129 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28130 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28131 of "charset.h".
28132
28133 * dired.c, filelock.c: Include "character.h".
28134
28135 * alloc.c: Include "character.h" instead of "charset.h".
28136 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28137 (syms_of_alloc): Remove defsubr for Smake_char_table.
28138
28139 * buffer.c: Include "character.h" instead of "charset.h", don't
28140 include "coding.h".
28141 (Fset_buffer_multibyte): Adjust for UTF-8.
28142
28143 * buffer.h: EXFUN Fbuffer_live_p.
28144
28145 * callproc.c: Include "character.h" instead of "charset.h".
28146 (Fcall_process): Big change for the new code-conversion APIs.
28147
28148 * casetab.c: Include "character.h" instead of "charset.h".
28149 (set_canon, set_identity, shuffle): Adjust for the new
28150 map_char_table spec.
28151 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28152 accessing the char table structure.
28153
28154 * chartab.c: New file that implements char table.
28155
28156 * category.c: Include "character.h".
28157 (copy_category_entry): New function.
28158 (copy_category_table): Call map_char_table and copy_category_entry.
28159 (Fmake_category_table): Initialize all top-level slots.
28160 (char_category_set): New function.
28161 (modify_lower_category_set): Delete.
28162 (Fmodify_category_entry): Call char_table_ref_and_range.
28163
28164 * category.h (CATEGORY_SET): Just call char_category_set.
28165
28166 * ccl.c: Include "character.h".
28167 (Qccl, Qcclp): New variables.
28168 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28169 it's less than 256.
28170 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28171 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28172 and DST type.
28173 (ccl_driver): Change types of argument, adjust code accordingly.
28174 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28175 ccl_driver.
28176 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28177
28178 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28179 New members src_multibyte, dst_multibyte, consumed, and produced.
28180 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28181 (CODING_SPEC_CCL_PROGRAM): New macro.
28182 (ccl_driver): Update prototype.
28183 (Qccl, Qcclp, Fccl_program_p): Extern them.
28184 (CHECK_CCL_PROGRAM): New macro.
28185
28186 * character.c, character.h, chartab.c: New files.
28187
28188 * charset.c: Mostly re-written. Move character and multibyte sequence
28189 handling codes to character.c.
28190
28191 * charset.h: Mostly re-written. Move character and multibyte sequence
28192 handling codes to character.h.
28193
28194 * coding.c, coding.h: Mostly re-written.
28195
28196 * composite.c: Include "character.h" instead of "charset.h".
28197 (CHAR_WIDTH): Move to character.h.
28198 (HASH_KEY, HASH_VALUE): Delete.
28199
28200 * composite.h (enum composition_method): Change order of enumeration
28201 symbols.
28202
28203 * data.c: Include "character.h" instead of "charset.h".
28204 (Faref): Call CHAR_TABLE_REF for a char table.
28205 (Faset): Call CHAR_TABLE_SET for a char table.
28206
28207 * dispextern.h (free_realized_face, check_face_attribytes)
28208 (generate_ascii_font): Extern them.
28209 (free_realized_multibyte_face): Delete extern.
28210
28211 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28212 table structure.
28213
28214 * editfns.c: Include "character.h" instead of "charset.h".
28215 (Fchar_to_string): Always call CHAR_STRING.
28216
28217 * emacs.c (main): Call init_charset_once, init_charset,
28218 syms_of_chartab, and syms_of_character.
28219
28220 * fileio.c: Include "character.h" instead of "charset.h".
28221 (Finsert_file_contents): Big change for the new code-conversion API.
28222 (choose_write_coding_system, Fwrite_region): Likewise.
28223 (build_annotations_2): Delete.
28224 (e_write): Big change for the new code-conversion API.
28225
28226 * fns.c: Include "character.h" instead of "charset.h".
28227 (copy_sub_char_table): Move to chartab.c.
28228 (Fcopy_sequence): Call copy_char_table for a char table.
28229 (concat): Delete codes calling count_multibyte.
28230 (string_char_to_byte, string_byte_to_char): Adjust for the new
28231 multibyte form.
28232 (internal_equal): Adjust for the change of char table structure.
28233 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28234 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28235 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28236 (char_table_translate, optimize_sub_char_table)
28237 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28238 chartab.c.
28239 (char_table_ref_and_index): Delete.
28240 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28241 (Fmd5): Call preferred_coding_system instead of accessing
28242 Vcoding_category_list. Adjust for the new code-conversion API.
28243 (syms_of_fns): Move defsubr for char table related functions to
28244 chartab.c.
28245
28246 * fontset.c: Mostly re-written.
28247
28248 * fontset.h (struct font_info): Change type of the member encoding_type.
28249 (enum FONT_SPEC_INDEX): New enum.
28250 (fontset_font_pattern, fs_load_font): Update prototype.
28251 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28252
28253 * indent.c: Include "character.h" instead of "charset.h".
28254 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28255
28256 * insdel.c: Include "character.h" instead of "charset.h".
28257 (copy_text): Don't refer to Vnonascii_translation_table.
28258 (insert_from_gap): New function.
28259
28260 * keyboard.c: Include "character.h" instead of "charset.h".
28261 (command_loop_1): Never call direct_output_forward_char before
28262 a non-ASCII character.
28263 (read_char): If Vkeyboard_translate_table is a char table, always
28264 translate a character.
28265
28266 * keymap.c: Include "character.h".
28267 (store_in_keymap): Handle the case that IDX is a cons.
28268 (Fdefine_key): Handle the case that KEY is a cons and the car part
28269 is also a cons (range).
28270 (push_key_description): Adjust for the new character code.
28271 (describe_vector): Call describe_char_table for a char table.
28272 (describe_char_table): New function.
28273
28274 * keymap.h (describe_char_table): Extern it.
28275
28276 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28277 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28278 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28279 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28280 Delete.
28281 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28282 structure.
28283 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28284 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28285 (CHARTAB_SIZE_BITS_3): New macros.
28286 (chartab_size): Extern it.
28287 (struct Lisp_Char_Table): Re-design.
28288 (struct Lisp_Sub_Char_Table): New structure.
28289 (HASH_KEY, HASH_VALUE): Move from fns.c.
28290 (CHARACTERBITS): Define as 22.
28291 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28292 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28293 (GC_SUB_CHAR_TABLE_P): New macro.
28294 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28295 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28296 (init_character_once, syms_of_character, init_charset)
28297 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28298
28299 * lread.c: Include "character.h".
28300 (read_multibyte): New arg NBYTES.
28301 (read_escape): Change the meaning of returned *BYTEREP.
28302 (to_multibyte): Delete.
28303 (read1): Adjust the handling of char table and string.
28304
28305 * print.c: Include "character.h" instead of "charset.h".
28306 (print_string): Convert 8-bit raw bytes to octal form by
28307 string_escape_byte8.
28308 (print_object): Adjust for the new multibyte form. Print 8-bit
28309 raw bytes always in octal form. Handle sub char table correctly.
28310
28311 * process.c: Include "character.h" instead of "charset.h".
28312 (read_process_output, send_process): Adjust for the new
28313 code-conversion API.
28314
28315 * puresize.h (BASE_PURESIZE): Increase.
28316
28317 * regex.c: Include "character.h" instead of "charset.h".
28318 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28319 (regex_compile): Accept a range whose starting and ending
28320 character have different leading bytes.
28321 (analyse_first): Adjust for the above change.
28322
28323 * search.c: Include "character.h" instead of "charset.h".
28324 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28325 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28326
28327 * syntax.c: Include "character.h" instead of "charset.h".
28328 (syntax_parent_lookup): Delete.
28329 (Fmodify_syntax_entry): Accept a cons as CHAR.
28330 (skip_chars): Adjust for the new multibyte form.
28331 (init_syntax_once): Call char_table_set_range instead of directly
28332 accessing the structure of a char table.
28333
28334 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28335 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28336 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28337 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28338
28339 * term.c: Include "buffer.h" and "character.h".
28340 (encode_terminal_code, write_glyphs): Adjust for the new
28341 code-conversion API.
28342 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28343
28344 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28345
28346 * xdisp.c: Include "character.h".
28347 (get_next_display_element): Adjust for the new multibyte form.
28348 (disp_char_vector): Adjust for the new char table structure.
28349 (decode_mode_spec_coding): Adjust for the new structure of
28350 coding system.
28351 (decode_mode_spec): Adjust for the new code-conversion API.
28352
28353 * xfaces.c: Include "character.h" instead of "charset.h".
28354 (load_face_font): Adjust for the change of choose_face_font and
28355 FS_LOAD_FONT.
28356 (generate_ascii_font): New function.
28357 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28358 (set_font_frame_param): Adjust for the change of choose_face_font.
28359 (free_realized_face): Make it public.
28360 (free_realized_faces_for_fontset): Rename from
28361 free_realized_multibyte_face. Free also faces realized for ASCII.
28362 (choose_face_font): Change arguments. Adjust for the change of
28363 fontset_font_pattern and FS_LOAD_FONT.
28364
28365 * xfns.c: Include "character.h".
28366 (x_encode_text): Adjust for the new code-conversion API.
28367
28368 * xselect.c: Don't include "charset.h".
28369 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28370
28371 * xterm.c: Include "character.h".
28372 (x_encode_char): New argument CHARSET. Change caller.
28373 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28374 Call ENCODE_CHAR instead of SPLIT_CHAR.
28375 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28376 CHAR_WIDTH instead of CHARSET_WIDTH.
28377 (XTread_socket): Adjust for the new code-conversion API.
28378 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28379 (x_load_font): Adjust for the change of struct font.
28380
283812008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28382
28383 * xfaces.c (face_at_buffer_position): Remove unused vars.
28384
283852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28386
28387 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28388 Fix overflow checking.
28389
283902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28391
28392 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28393 Cancel previous change.
28394
283952008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28396
28397 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28398 ccl->eight_bit_control. Fix check for buffer overflow.
28399 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28400 (ccl_driver): Initialize extra_bytes to 0.
28401
284022008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28403
28404 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28405 return it ORed with ctrl_modifier.
28406
284072008-01-29 Miles Bader <miles@gnu.org>
28408
28409 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28410
284112008-01-28 Jason Rumney <jasonr@gnu.org>
28412
28413 * w32.c (stat): Don't double check for networked drive.
28414
284152008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28416
28417 * window.c (run_window_configuration_change_hook): New function.
28418 Code extracted from set_window_buffer. Set the selected frame.
28419 (set_window_buffer): Use it.
28420 * window.h (run_window_configuration_change_hook): Declare.
28421 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28422
28423 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28424
284252008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28426
28427 * Makefile.in: Remove references to unused macros.
28428
284292008-01-26 Eli Zaretskii <eliz@gnu.org>
28430
28431 * w32.c (g_b_init_get_sid_sub_authority)
28432 (g_b_init_get_sid_sub_authority_count): New static variables.
28433 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28434 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28435 (init_user_info): Use them to retrieve uid and gid.
28436 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28437 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28438 st_uid and st_gid of the file.
28439
284402008-01-26 Jason Rumney <jasonr@gnu.org>
28441
28442 * w32.c (logon_network_drive): New function.
28443 (stat): Use it.
28444
284452008-01-26 Chong Yidong <cyd@stupidchicken.com>
28446
28447 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28448 invisible text covered with an ellipsis.
28449
284502008-01-25 Richard Stallman <rms@gnu.org>
28451
28452 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28453 jump back to beginning. Move some other initializations after that.
28454 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28455 New variables.
28456 (syms_of_xdisp): Init them.
28457
28458 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28459
28460 * buffer.c (reset_buffer_local_variables):
28461 Implement `permanent-local-hook'.
28462 (Qpermanent_local_hook): New variable.
28463 (syms_of_buffer): Init and staticpro it.
28464
284652008-01-25 Michael Albinus <michael.albinus@gmx.de>
28466
28467 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28468
284692008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28470
28471 * fns.c (Fclrhash): Return TABLE.
28472
284732008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28474
28475 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28476 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28477 is set even without positional changes.
28478 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28479
28480 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28481
284822008-01-23 Jason Rumney <jasonr@gnu.org>
28483
28484 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28485
28486 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28487 the unicode range available in MULE by locale-coding-system.
28488 Improve dbcs lead byte detection. Set event timestamp and modifiers
28489 earlier.
28490
284912008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28492
28493 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28494 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28495 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28496 when used on child processes.
28497
284982008-01-21 Michael Albinus <michael.albinus@gmx.de>
28499
28500 * dbusbind.c (Fdbus_method_return_internal): Rename from
28501 Fdbus_method_return.
28502 (Fdbus_unregister_object): Move to dbus.el.
28503 (Fdbus_call_method, Fdbus_method_return_internal)
28504 (Fdbus_send_signal): Improve debug messages.
28505
285062008-01-20 Martin Rudalics <rudalics@gmx.at>
28507
28508 * undo.c (undo_inhibit_record_point): New variable.
28509 (syms_of_undo): Initialize it.
28510 (record_point): Don't record point when undo_inhibit_record_point
28511 is set.
28512
285132008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28514
28515 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28516
28517 * xdisp.c (Qauto_hscroll_mode): New var.
28518 (syms_of_xdisp): Initialize it.
28519 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28520 window's buffer.
28521 (hscroll_windows): Don't check automatic_hscrolling_p here.
28522
28523 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28524 vscroll if we're setting window-buffer to the value it already has.
28525
285262008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28527
28528 * m/intel386.h: Remove references to XENIX.
28529
285302008-01-17 Andreas Schwab <schwab@suse.de>
28531
28532 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28533 instead of HAVE_X86_64_LIB64_DIR.
28534 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28535
285362008-01-17 Glenn Morris <rgm@gnu.org>
28537
28538 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28539 to HAVE_X86_64_LIB64_DIR.
28540
285412008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28542
28543 * s/irix3-3.h:
28544 * s/irix4-0.h:
28545 * s/386-ix.h:
28546 * s/domain.h:
28547 * s/hpux9-x11r4.h:
28548 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28549
28550 * sysdep.c: Remove code containing references to symbols defined
28551 by unsupported systems.
28552
285532008-01-16 Glenn Morris <rgm@gnu.org>
28554
28555 * coding.c (select-safe-coding-system-function): Doc fix.
28556
285572008-01-15 Glenn Morris <rgm@gnu.org>
28558
28559 * config.in: Revert 2008-01-13 change: this is a generated file.
28560
285612008-01-13 Tom Tromey <tromey@redhat.com>
28562
28563 * lisp.h: Fix typo.
28564
285652008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28566
28567 * m/sequent-ptx.h:
28568 * m/sequent.h:
28569 * s/ptx.h:
28570 * s/ptx4-2.h:
28571 * s/ptx4.h: Remove files for systems no longer supported.
28572
28573 * callproc.c (Fcall_process): Fix previous change.
28574
285752008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28576
28577 * unexsunos4.c: Remove file, system not supported anymore.
28578
28579 * m/mips.h:
28580 * m/intel386.h:
28581 * callproc.c:
28582 * config.in:
28583 * ecrt0.c:
28584 * emacs.c:
28585 * fileio.c:
28586 * frame.c:
28587 * getpagesize.h:
28588 * keyboard.c:
28589 * lread.c:
28590 * process.c:
28591 * puresize.h:
28592 * sysdep.c:
28593 * systty.h:
28594 * syswait.h:
28595 * unexec.c:
28596 * xdisp.c:
28597 * alloc.c: Remove code containing references to symbols defined by
28598 unsupported systems.
28599
286002008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28601
28602 * coding.c (detect_coding_mask): Fix previous change.
28603
286042008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28605
28606 * coding.c (detect_coding_iso2022): New arg
28607 latin_extra_code_state. Allow Latin extra codes only
28608 when *latin_extra_code_state is nonzero.
28609 (detect_coding_mask): If there is a NULL byte, detect the encoding
28610 as UTF-16 or binary. If Latin extra codes exist, detect the
28611 encoding as ISO-2022 only when there's no other proper encoding is
28612 found.
28613
286142008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28615
28616 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28617 #ifdef MAC_OS.
28618
286192008-01-08 Richard Stallman <rms@gnu.org>
28620
28621 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28622
286232008-01-06 Nick Roberts <nickrob@snap.net.nz>
28624
28625 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28626 menu bar in parentheses.
28627
286282008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28629
28630 * m/7300.h:
28631 * m/acorn.h:
28632 * m/alliant-2800.h:
28633 * m/alliant.h:
28634 * m/alliant1.h:
28635 * m/alliant4.h:
28636 * m/altos.h:
28637 * m/amdahl.h:
28638 * m/apollo.h:
28639 * m/att3b.h:
28640 * m/aviion-intel.h:
28641 * m/aviion.h:
28642 * m/celerity.h:
28643 * m/clipper.h:
28644 * m/cnvrgnt.h:
28645 * m/convex.h:
28646 * m/cydra5.h:
28647 * m/delta88k.h:
28648 * m/dpx2.h:
28649 * m/dual.h:
28650 * m/elxsi.h:
28651 * m/f301.h:
28652 * m/gould-np1.h:
28653 * m/gould.h:
28654 * m/i860.h:
28655 * m/ibmps2-aix.h:
28656 * m/ibmrt-aix.h:
28657 * m/ibmrt.h:
28658 * m/irist.h:
28659 * m/is386.h:
28660 * m/isi-ov.h:
28661 * m/mega68.h:
28662 * m/mg1.h:
28663 * m/news-r6.h:
28664 * m/news-risc.h:
28665 * m/news.h:
28666 * m/nh3000.h:
28667 * m/nh4000.h:
28668 * m/ns16000.h:
28669 * m/ns32000.h:
28670 * m/nu.h:
28671 * m/orion.h:
28672 * m/orion105.h:
28673 * m/paragon.h:
28674 * m/pfa50.h:
28675 * m/plexus.h:
28676 * m/pyramid.h:
28677 * m/pyrmips.h:
28678 * m/sh3el.h:
28679 * m/sps7.h:
28680 * m/sr2k.h:
28681 * m/stride.h:
28682 * m/sun1.h:
28683 * m/sun2.h:
28684 * m/sun3-68881.h:
28685 * m/sun3-fpa.h:
28686 * m/sun3-soft.h:
28687 * m/sun3.h:
28688 * m/sun386.h:
28689 * m/symmetry.h:
28690 * m/tad68k.h:
28691 * m/tahoe.h:
28692 * m/targon31.h:
28693 * m/tek4300.h:
28694 * m/tekxd88.h:
28695 * m/tower32.h:
28696 * m/tower32v3.h:
28697 * m/ustation.h:
28698 * m/wicat.h:
28699 * m/xps100.h:
28700 * s/cxux.h:
28701 * s/cxux7.h:
28702 * s/dgux.h:
28703 * s/dgux4.h:
28704 * s/dgux5-4-3.h:
28705 * s/dgux5-4r2.h:
28706 * s/esix.h:
28707 * s/esix5r4.h:
28708 * s/hiuxmpp.h:
28709 * s/hiuxwe2.h:
28710 * s/iris3-5.h:
28711 * s/iris3-6.h:
28712 * s/isc2-2.h:
28713 * s/isc3-0.h:
28714 * s/isc4-0.h:
28715 * s/isc4-1.h:
28716 * s/newsos5.h:
28717 * s/newsos6.h:
28718 * s/osf1.h:
28719 * s/osf5-0.h:
28720 * s/riscix1-1.h:
28721 * s/riscix12.h:
28722 * s/sco4.h:
28723 * s/sco5.h:
28724 * s/sunos4-0.h:
28725 * s/sunos4-1.h:
28726 * s/sunos413.h:
28727 * s/sunos4shr.h:
28728 * s/umax.h:
28729 * s/unipl5-2.h:
28730 * s/xenix.h:
28731 * cxux-crt0.s:
28732 * unexapollo.c:
28733 * unexconvex.c:
28734 * unexenix.c:
28735 * unexsni.c: Remove files for systems no longer supported.
28736
28737 * m/intel386.h: Remove references to unsupported systems.
28738
28739 * w32.c (get_emacs_configuration): Remove reference to i860.
28740
28741 * sysdep.c: Remove dead code.
28742
287432008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28744
28745 * s/rtu.h:
28746 * m/masscomp.h: Remove files. Platform is obsolete.
28747
287482008-01-04 Michael Albinus <michael.albinus@gmx.de>
28749
28750 * dbusbind.c (Fdbus_method_return): New function.
28751 (xd_read_message): Add the serial number to the event.
28752 (Fdbus_register_method): Activate the function.
28753
287542008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28755
28756 * keyboard.c (read_key_sequence): Fix typo.
28757
287582008-01-03 Michael Albinus <michael.albinus@gmx.de>
28759
28760 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28761 (xd_signature, xd_append_arg): Handle element type detection for
28762 empty arrays.
28763 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28764 SDATA () calls; this must be solved more general.
28765 (Fdbus_register_signal): Use SBYTES instead of strlen.
28766
287672008-01-03 Magnus Henoch <magnus@zemdatav>
28768
28769 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28770 unsigned int for byte values (necessary for big-endian platform).
28771 (Fdbus_call_method): Handle the case of no returned arguments.
28772
287732007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28774
28775 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28776
287772007-12-31 Magnus Henoch <mange@freemail.hu>
28778
28779 * dbusbind.c (xd_signature): Signature of variant is just "v".
28780
287812007-12-30 Michael Albinus <michael.albinus@gmx.de>
28782
28783 * dbusbind.c: Fix several errors and compiler warnings.
28784 Reported by Tom Tromey <tromey@redhat.com>.
28785 (XD_ERROR, XD_DEBUG_MESSAGE)
28786 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28787 (xd_append_arg): Part for basic D-Bus types rewritten.
28788 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28789 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28790 appropriate.
28791 (xd_read_message): Return Qnil. Don't signal an error; it is not
28792 useful during event reading.
28793 (Fdbus_register_signal): Signal an error if the check for
28794 FUNCTIONP fails.
28795 (Fdbus_register_method): New function. The implementation is not
28796 complete, the call of the function signals an error therefore.
28797 (Fdbus_unregister_object): New function, renamed from
28798 Fdbus_unregister_signal. The initial check signals an error, if
28799 the object is not well formed.
28800
288012007-12-30 Richard Stallman <rms@gnu.org>
28802
28803 * textprop.c (get_char_property_and_overlay):
28804 Signal error if POSITION is out of range in a buffer.
28805
288062007-12-29 Martin Rudalics <rudalics@gmx.at>
28807
28808 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28809 because the original parameters are in pure storage now.
28810
288112007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28812
28813 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28814
288152007-12-22 Eli Zaretskii <eliz@gnu.org>
28816
28817 * callint.c (syms_of_callint) <command-history>: Add reference to
28818 history-length in the doc string.
28819
288202007-12-17 Jason Rumney <jasonr@gnu.org>
28821
28822 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28823 before passing as wParam.
28824
288252007-12-22 Michael Albinus <michael.albinus@gmx.de>
28826
28827 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28828 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28829 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28830 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28831 as number.
28832 (Fdbus_call_method): Fix docstring.
28833
288342007-12-21 Michael Albinus <michael.albinus@gmx.de>
28835
28836 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28837 New macros.
28838 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28839 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28840 Simplify.
28841 (xd_signature): New function.
28842 (xd_append_arg): Compute also signatures. Major rewrite.
28843 (xd_retrieve_arg): Make debug messages friendly.
28844 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28845 Check for signatures of arguments.
28846
288472007-12-19 Michael Albinus <michael.albinus@gmx.de>
28848
28849 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28850 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28851 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28852 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28853 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28854 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28855 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28856 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28857 (xd_retrieve_value): Remove. Functionality included in ...
28858 (xd_append_arg): New function.
28859 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28860
288612007-12-16 Michael Albinus <michael.albinus@gmx.de>
28862
28863 * dbusbind.c (top): Include <stdio.h>.
28864 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28865 dbus_message_new_method_call and dbus_message_new_signal.
28866 (Fdbus_register_signal): Rename unique_name to uname.
28867 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28868 non-existing unique name. Fix typos in matching rule. Return an
28869 object which is useful in Fdbus_unregister_signal.
28870 (Fdbus_unregister_signal): Reimplementation, in order to remove
28871 only the corresponding entry.
28872 (Vdbus_registered_functions_table): Change the order of entries.
28873 Apply these changes in xd_read_message and Fdbus_register_signal.
28874
288752007-12-16 Andreas Schwab <schwab@suse.de>
28876
28877 * fileio.c (Finsert_file_contents): Fix overflow check to not
28878 depend on undefined integer overflow.
28879
288802007-12-14 Jason Rumney <jasonr@gnu.org>
28881
28882 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28883 for characters above 127.
28884
288852007-12-13 Jason Rumney <jasonr@gnu.org>
28886
28887 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28888 before dereferencing array.
28889 (lookup_vk_code): Remove zero comparison.
28890
288912007-12-14 Michael Albinus <michael.albinus@gmx.de>
28892
28893 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28894 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28895 Use `unsigned int' instead of `uint'.
28896 (xd_read_message, Fdbus_register_signal): Split expressions into
28897 multiple lines before operators "&&" and "||", according to the
28898 GNU Coding Standards.
28899
289002007-12-14 Eli Zaretskii <eliz@gnu.org>
28901
28902 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28903
289042007-12-12 Juri Linkov <juri@jurta.org>
28905
28906 * buffer.c (Frename_buffer): In interactive spec replace
28907 `read-buffer' with `read-string' that uses `buffer-name-history'
28908 as history, and the current buffer's name as default.
28909
289102007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28911
28912 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28913 manipulating the backtrace manually.
28914 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28915 (struct backtrace, backtrace_list): Remove.
28916 (command_loop_1): Remove dead var `no_direct'.
28917
28918 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28919 preserve non-built-in buffer-local variables.
28920 (Fkill_all_local_variables): Don't re-create&re-set permanent
28921 buffer-local variables.
28922
289232007-12-09 Juri Linkov <juri@jurta.org>
28924
28925 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28926 Lisp code that uses `read-buffer' with current buffer as default.
28927
289282007-12-08 Michael Albinus <michael.albinus@gmx.de>
28929
28930 * dbusbind.c (xd_read_message): Generate an event for every
28931 registered handler. There might be several handlers registered
28932 for the same signal.
28933 (Fdbus_register_signal): Don't overwrite a registration for the
28934 same signal. Add a new registration if handlers are different.
28935 (Vdbus_registered_functions_table): Rework doc string.
28936
289372007-12-07 Michael Albinus <michael.albinus@gmx.de>
28938
28939 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28940 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28941 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28942 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28943 Unify argument lists.
28944 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28945 arguments and hash table keys. Use unique name for service.
28946 (Fdbus_unregister_signal): Remove checks.
28947 (Vdbus_registered_functions_table): Fix doc string.
28948
289492007-12-05 Magnus Henoch <mange@freemail.hu>
28950
28951 * process.c (make_process): Initialize pty_flag to 0.
28952
289532007-12-05 Jason Rumney <jasonr@gnu.org>
28954
28955 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28956 specified XBMs.
28957
289582007-12-05 Richard Stallman <rms@gnu.org>
28959
28960 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28961
289622007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28963
28964 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28965 New variable.
28966 (mac_try_close_socket) [MAC_OSX]: New function.
28967 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28968 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28969
28970 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28971 Use mac_try_close_socket.
28972
289732007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28974
28975 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28976 reloc_base.
28977 (copy_dysymtab): Compute relocation base here.
28978 (rebase_reloc_address) [__ppc64__]: New function.
28979 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28980 changed.
28981
289822007-12-05 Jason Rumney <jasonr@gnu.org>
28983
28984 * w32proc.c (sys_spawnve): Quote args with wildcards.
28985
289862007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28987
28988 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28989 __objc_* sections.
28990 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28991
289922007-12-05 Michael Albinus <michael.albinus@gmx.de>
28993
28994 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28995 Move check for Vdbus_registered_functions_table to
28996 xd_read_queued_messages.
28997 (xd_read_queued_messages): Protect xd_read_message calls by
28998 internal_condition_case_1.
28999
290002007-12-04 Michael Albinus <michael.albinus@gmx.de>
29001
29002 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29003 Qdbus_system_bus and Qdbus_session_bus, respectively.
29004 (Vdbus_intern_symbols): Remove.
29005 (Vdbus_registered_functions_table): New hash table.
29006 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29007 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29008 Rewrite in order to manage registered functions by hash table
29009 Vdbus_registered_functions_table.
29010
290112007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29012
29013 * xterm.c: Update URL to Window Manager Specification in comment.
29014
290152007-12-02 Michael Albinus <michael.albinus@gmx.de>
29016
29017 * config.in (HAVE_DBUS): Add.
29018
29019 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29020 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29021 (obj): Add $(DBUS_OBJ).
29022 (LIBES): Add $(DBUS_LIBS).
29023 (dbusbind.o): New target.
29024
29025 * dbusbind.c: New file.
29026
29027 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29028
29029 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29030 (Qdbus_event): New Lisp symbol.
29031 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29032 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 29033 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
29034
29035 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29036
290372007-12-01 Richard Stallman <rms@gnu.org>
29038
29039 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29040
290412007-11-30 Jason Rumney <jasonr@gnu.org>
29042
29043 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29044 (w32con_reset_terminal_modes): Clear screen buffer.
29045 (w32_face_attributes): Don't use color indexes that are out of range.
29046 Only reverse the default colors.
29047
29048 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29049 WINDOWSNT.
29050
29051 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29052
290532007-11-29 Jason Rumney <jasonr@gnu.org>
29054
29055 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29056 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29057 if the terminal colors are initialized.
29058 (unspecified_fg, unspecified_bg): Remove unused declarations.
29059
290602007-11-29 Andreas Schwab <schwab@suse.de>
29061
29062 * keyboard.c (apply_modifiers): Fix typo.
29063
290642007-11-29 Richard Stallman <rms@gnu.org>
29065
29066 * keymap.c (Fcurrent_local_map): Doc fix.
29067
290682007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29069
29070 * s/gnu-kfreebsd.h: New file.
29071
290722007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29073
29074 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29075 Don't cast redundantly.
29076
29077 * keyboard.c (KEY_TO_CHAR): New macro.
29078 (parse_modifiers, apply_modifiers): Accept integer arguments.
29079 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29080 for chars and symbol keys.
29081 After doing such remapping, apply function-key-map again.
29082
290832007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29084
29085 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29086 compiled anymore.
29087
290882007-11-26 Andreas Schwab <schwab@suse.de>
29089
29090 * process.c (list_processes_1): Fix indentation level of the
29091 command column.
29092
290932007-11-23 Andreas Schwab <schwab@suse.de>
29094
29095 * editfns.c (Fformat): Handle %c specially since it requires the
29096 argument to be of type int.
29097
290982007-11-23 Markus Triska <markus.triska@gmx.at>
29099
29100 * emacs.c (main): Call init_editfns before init_process, since
29101 init_process sets Vprocess_connection_type depending on OS release.
29102
291032007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29104
29105 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29106 (find_symbol_value): Use do_symval_forwarding.
29107
29108 * data.c (set_internal): Set the value in the `cons-cell' (for
29109 Buffer_Local_values) not only for frame-local variables.
29110
291112007-11-22 Andreas Schwab <schwab@suse.de>
29112
29113 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29114 values to sprintf.
29115 * keymap.c (Fsingle_key_description): Likewise.
29116 * print.c (print_object): Likewise.
29117
291182007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29119
29120 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29121 file for image is nil.
29122
291232007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29124
29125 * term.c: Include stdarg.h.
29126 (fatal): Implement using varargs.
29127 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29128
291292007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29130
29131 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29132 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29133 Update call to buffer_slot_type_mismatch.
29134 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29135 (buffer_slot_type_mismatch): Update.
29136 * buffer.c (buffer_local_types): Remove.
29137 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29138 (defvar_per_buffer): Set the type in the buffer_objfwd.
29139
291402007-11-21 Jason Rumney <jasonr@gnu.org>
29141
29142 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29143 CreateFileMapping returns NULL on failure.
29144
291452007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29146
29147 * search.c (Fset_match_data): Remove the `evaporate' feature.
29148 (unwind_set_match_data): Don't use the `evaporate' feature.
29149
291502007-11-21 Jason Rumney <jasonr@gnu.org>
29151
29152 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29153
29154 * w32console.c (w32con_write_glyphs): Remove unused variables.
29155
291562007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29157
29158 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29159
29160 * s/darwin.h (MULTI_KBOARD): Remove.
29161
29162 * macfns.c (x_create_tip_frame, Fx_create_frame)
29163 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29164
291652007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29166
29167 * buffer.c (Fbuffer_local_value): Remove redundant test.
29168 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29169 than in `current-buffer' to match the comment.
29170 Do the swap using swap_in_global_binding.
29171
29172 * data.c (store_symval_forwarding, set_internal):
29173 * eval.c (specbind): Remove dead code.
29174
29175 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29176 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29177 Since we do not want to see internal Lisp_*fwd objects here.
29178
291792007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29180
29181 * sysdep.c (init_system_name): Use getaddrinfo if available.
29182
29183 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29184 (x_scroll_bar_note_movement): start, end, with, height in struct
29185 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29186
291872007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29188
29189 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29190
291912007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29192
29193 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29194 This undoes Richard's change of 14-Oct-2002.
29195
29196 * alloc.c (allocate_other_vector):
29197 * lisp.h (allocate_other_vector): Remove.
29198
29199 * window.c (struct save_window_data): Move non-lisp data to the end
29200 and make it `int' rather than Lisp_Object.
29201 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29202 Done wrap/unwrap integer values.
29203 (Fset_window_configuration, compare_window_configurations):
29204 Update use of fields to their new types.
29205
29206 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29207 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29208 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29209 (SET_SCROLL_BAR_X_WINDOW): Remove.
29210 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29211 Access the new x_window field directly.
29212 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29213 Don't wrap/unwrap integers into Lisp_Objects.
29214 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29215 (x_scroll_bar_report_motion):
29216 Don't wrap/unwrap integers into Lisp_Objects.
29217 (x_term_init): Use SDATA.
29218 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29219 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29220 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29221 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29222 * xfns.c (x_set_background_color):
29223 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29224 Access the new x_window field directly.
29225
29226 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29227 (allocate_pseudovector): Make non-static.
29228
29229 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29230 (allocate_pseudovector): Declare.
29231 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29232
292332007-11-15 Andreas Schwab <schwab@suse.de>
29234
29235 * editfns.c (Fformat): Correctly format EMACS_INT values.
29236 Also take precision into account when formatting an integer.
29237
29238 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29239
292402007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29241
29242 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29243 (syms_of_keyboard): Defsubr it.
29244
29245 * data.c (swap_in_global_binding): Fix longstanding bug where
29246 store_symval_forwarding was not called with the right second argument,
29247 thus causing objfwd-ing from being dropped.
29248
292492007-11-14 Juanma Barranquero <lekktu@gmail.com>
29250
29251 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29252 (Fx_display_pixel_height, Fx_display_planes)
29253 (Fx_display_color_cells, Fx_server_max_request_size)
29254 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29255 (Fx_display_visual_class, Fx_display_save_under):
29256 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29257 (Fx_display_pixel_height, Fx_display_planes)
29258 (Fx_display_color_cells, Fx_server_max_request_size)
29259 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29260 (Fx_display_mm_height, Fx_display_mm_width)
29261 (Fx_display_backing_store, Fx_display_visual_class)
29262 (Fw32_select_font, Fx_display_save_under):
29263 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29264 (Fx_display_pixel_height, Fx_display_planes)
29265 (Fx_display_color_cells, Fx_server_max_request_size)
29266 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29267 (Fx_display_save_under): Fix typos in docstrings.
29268
292692007-11-14 Juanma Barranquero <lekktu@gmail.com>
29270
29271 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29272 corresponding to deleted entries; they are an implementation detail.
29273 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29274 Remove variables.
29275 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29276 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29277 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29278 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29279 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29280 (Fw32_define_rgb_color, Fw32_load_color_file)
29281 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29282 Fix typos in docstrings.
29283 (Fx_server_version): Reflow docstring.
29284 (Fw32_shell_execute): Doc fixes.
29285
292862007-11-13 Juanma Barranquero <lekktu@gmail.com>
29287
29288 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29289 if w32_parse_hot_key returned nil.
29290
292912007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29292
29293 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29294
292952007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29296
aac0c6e3
MR
29297 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29298
29299 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29300
29301 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29302 Remove W32_SCROLL_BAR_CLICK_EVENT.
29303
29304 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29305 Add MULTIMEDIA_KEY_EVENT.
29306
29307 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29308 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29309 (make_lispy_event) [WINDOWSNT]: Use it to translate
29310 MULTIMEDIA_KEY_EVENT.
29311
29312 * w32term.h (WM_APPCOMMAND): Define if not already.
29313 (GET_APPCOMMAND_LPARAM): Likewise.
29314
29315 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29316 WM_APPCOMMAND.
29317
29318 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29319 (syms_of_w32fns): Export and initialize it.
29320 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29321
293222007-11-09 Chong Yidong <cyd@stupidchicken.com>
29323
29324 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29325 twice.
29326
29327 * xdisp.c (handle_face_prop): Fix last change.
29328
293292007-11-09 Richard Stallman <rms@gnu.org>
29330
29331 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29332 not just for after-strings and before-strings.
29333 Call face_for_overlay_string and pass the overlay to it.
29334 (handle_display_prop): Determine whether property came from an overlay.
29335 Pass OVERLAY arg to handle_single_display_spec.
29336 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29337 (load_overlay_strings): Fill in it->string_overlays.
29338 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29339
29340 * xfaces.c (face_for_overlay_string): Function renamed from
29341 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29342
29343 * dispextern.h (struct it): New elt string_overlays.
29344 New elt from_overlay, also in stack.
29345 Rearrange a few elements.
29346 (face_for_overlay_string): Decl renamed from
29347 face_at_buffer_position_no_overlays, and add argument.
29348
293492007-11-09 Richard Stallman <rms@gnu.org>
29350
29351 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29352 to get the base face for an overlay string.
29353
29354 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29355
29356 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29357
29358 * xdisp.c (handle_stop): Move some code out of loop.
29359
293602007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29361
29362 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29363 Fix conversion from Lisp object to ATSUFontID.
29364
293652007-11-09 Jason Rumney <jasonr@gnu.org>
29366
29367 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29368
293692007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29370
29371 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29372 Don't assume regions are aligned to page boundary.
29373 (print_load_command_name): Add LC_UUID if defined.
29374
293752007-11-09 Richard Stallman <rms@gnu.org>
29376
29377 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29378
293792007-11-07 Jason Rumney <jasonr@gnu.org>
29380
29381 * s/windows95.h: Remove.
29382
293832007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29384
29385 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29386 abort with a message on unhandled store_type values.
29387
293882007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29389
29390 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29391 Remove HAVE_X11R5 and HAVE_X11R4.
29392
293932007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29394
29395 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29396
293972007-11-01 Johan Bockgård <bojohan@gnu.org>
29398
29399 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29400 Don't set s->stippled_p here, since it has already been set by
29401 x_set_glyph_string_gc from x_draw_glyph_string.
29402
294032007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29404
29405 * sunfns.c: Remove file.
29406
29407 * m/sun386.h:
29408 * m/sun2.h:
29409 * m/sparc.h: Remove Sun windows code.
29410
294112007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29412
29413 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29414 (init_keyboard): Set current_kboard's window-system to nil.
29415 (tty_read_avail_input): Typo.
29416 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29417
294182007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29419
29420 * s/usg5-4.h:
29421 * s/usg5-3.h:
29422 * s/ptx.h:
29423 * m/is386.h:
29424 * m/ibmps2-aix.h:
29425 * Makefile.in: Remove all mentions of X10.
29426
29427 * dispnew.c (syms_of_display): Don't mention version 10.
29428
294292007-10-28 Juanma Barranquero <lekktu@gmail.com>
29430
29431 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29432 ($(BLD)/abbrev.$(O)): Remove.
29433
294342007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29435
29436 Rewrite abbrev.c in Elisp.
29437 * image.c (Qcount): Don't declare as extern.
29438 (syms_of_image): Initialize and staticpro `Qcount'.
29439 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29440 * emacs.c (main): Don't call syms_of_abbrev.
29441 * Makefile.in (obj): Remove abbrev.o.
29442 (abbrev.o): Remove.
29443 * abbrev.c: Remove.
29444
294452007-10-26 Martin Rudalics <rudalics@gmx.at>
29446
29447 * window.c (window_min_size_2): Don't count header-line.
29448
294492007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29450
29451 * frame.h (struct frame): Move all bit fields after the first bit
29452 field to take advantage of the available space. Group all the
29453 chars together to reduce wasted space due to padding.
29454
294552007-10-26 Juanma Barranquero <lekktu@gmail.com>
29456
29457 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29458
29459 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29460 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29461 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29462 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29463 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29464 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29465 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29466 (last_marked, mark_object_loop_halt): Make static.
29467
29468 * frame.c (syms_of_frame) <delete-frame-functions>:
29469 Fix typo in docstring.
29470
294712007-10-25 Juanma Barranquero <lekktu@gmail.com>
29472
29473 * w32.c (init_environment): Fix tiny memory leak.
29474 (w32_get_resource): Remove unused variable `ok'.
29475
294762007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29477
29478 Make `window-system' into a keyboard-local variable (rather than
29479 frame-local as done originally by multi-tty).
29480
29481 * keyboard.h (struct kboard): Add Vwindow_system.
29482 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29483 (mark_kboards): Mark Vwindow_system.
29484
29485 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29486 (init_display): Don't set the obsolete `window-system' frame-param.
29487
29488 * xterm.c (x_term_init):
29489 * w32term.c (w32_create_terminal):
29490 * term.c (init_tty): Set Vwindow_system.
29491 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29492 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29493
29494 * xfns.c (Fx_create_frame, x_create_tip_frame):
29495 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29496 * macfns.c (Fx_create_frame):
29497 Don't set the obsolete `window-system' frame-param.
29498
29499 * frame.h (Qwindow_system): Remove.
29500 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29501 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29502
295032007-10-24 Richard Stallman <rms@gnu.org>
29504
29505 * frame.c (x_figure_window_size): For fullscreen case,
29506 set USPosition | PPosition without clobbering rest of window_prompting.
29507
29508 * keyboard.c (Fcurrent_idle_time): Doc fix.
29509
29510 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29511
295122007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29513
29514 * process.c (unwind_request_sigio): Only define if __ultrix__.
29515
29516 * callproc.c (child_setup): Remove spurious *.
29517
29518 * lisp.h (Fget_text_property): Declare.
29519 (have_menus_p): Declare it here rather than in sys-dep header files.
29520 * macterm.h (have_menus_p):
29521 * msdos.h (have_menus_p):
29522 * xterm.h (have_menus_p): Remove.
29523
29524 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29525 (Fmake_variable_frame_local): Just check the variable's const-ness
29526 rather than checking nil or t.
29527
295282007-10-22 Jason Rumney <jasonr@gnu.org>
29529
29530 * w32fns.c: Include math.h.
29531 (w32_abort): Declaration moved to nt/config.nt.
29532
29533 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29534 (abort): Redefinition moved to nt/config.nt.
29535
29536 * m/windowsnt.h: Remove.
29537
295382007-10-22 Juanma Barranquero <lekktu@gmail.com>
29539
29540 * emacs.c (Fdump_emacs): Fix typo in message.
29541 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29542 <installation-directory>: Reflow docstring.
29543
295442007-10-22 Juri Linkov <juri@jurta.org>
29545
29546 * minibuf.c: Allow minibuffer default to be a list of default values.
29547 With empty input use the first element of this list as returned default.
29548 (string_to_object)
29549 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29550 (read_minibuf): If defalt is cons, set histstring to its car.
29551 (Fread_string): If default_value is cons, set val to its car.
29552 (Fread_buffer): If def is cons, use its car.
29553 (Fcompleting_read): If defalt is cons, set val to its car.
29554
295552007-10-21 Michael Albinus <michael.albinus@gmx.de>
29556
29557 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29558
295592007-10-20 Juanma Barranquero <lekktu@gmail.com>
29560
29561 * doc.c (Fdocumentation): Check for advice in all cases.
29562
295632007-10-19 Chong Yidong <cyd@stupidchicken.com>
29564
29565 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29566
295672007-10-19 Richard Stallman <rms@gnu.org>
29568
29569 * doc.c (Fdocumentation): Check for and handle an advised function.
29570
295712007-10-19 Juanma Barranquero <lekktu@gmail.com>
29572
29573 * process.c (Fset_process_filter): Doc fix.
29574
295752007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29576
29577 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29578 which caused key-translation-map to applied repeatedly (thus breaking
29579 double-mode).
29580
295812007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29582
29583 * xselect.c (x_own_selection, x_handle_selection_clear)
29584 (x_clear_frame_selections):
29585 * w32menu.c (list_of_panes, list_of_items):
29586 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29587 * textprop.c (validate_plist, interval_has_all_properties)
29588 (interval_has_some_properties, interval_has_some_properties_list)
29589 (add_properties, text_property_list):
29590 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29591 * minibuf.c (Fassoc_string):
29592 * macselect.c (x_own_selection, x_clear_frame_selections)
29593 (Fx_disown_selection_internal):
29594 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29595 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29596
295972007-10-17 Chong Yidong <cyd@stupidchicken.com>
29598
29599 * process.c: Link to libs for calling res_init() if available.
29600 (Fmake_network_process): Call res_init() before getaddrinfo or
29601 gethostbyname, if possible.
29602
296032007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29604
29605 * lread.c (read1): Set pvectype for char_tables.
29606
29607 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29608 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29609 Add type checks.
29610 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29611
29612 * alloc.c (free_misc): Use XMISCTYPE.
29613 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29614
296152007-10-17 Glenn Morris <rgm@gnu.org>
29616
29617 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29618 (syms_of_minibuf): Add Qcompletion_ignore_case.
29619 * dired.c (Qcompletion_ignore_case): Change to external.
29620 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29621 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29622 (Fread_file_name): Use it rather than intern'ing.
29623
29624 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29625 (Fread_coding_system): Ignore case of user input.
29626
296272007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29628
29629 * xdisp.c (handle_display_prop): Ignore display specs after
29630 replacing one when string text is being replaced.
29631 (handle_single_display_spec): Pretend as if characters with display
29632 property haven't been consumed only when buffer text is being replaced.
29633
296342007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29635
29636 * xfns.c (Fx_create_frame, Fx_display_list):
29637 * window.c (window_fixed_size_p, enlarge_window)
29638 (shrink_window_lowest_first):
29639 * macterm.c (init_font_name_table):
29640 * macfns.c (Fx_create_frame, Fx_display_list):
29641 * lread.c (close_load_descs):
29642 * keyboard.c (read_char_x_menu_prompt):
29643 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29644 * coding.c (code_convert_region_unwind): Test the type of an object
29645 rather than just !NILP before extracting data from it.
29646
29647 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29648
29649 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29650 (XMISCANY): New macro.
29651 (XMISCTYPE): Use it.
29652 (struct Lisp_Misc_Any): New type.
29653 (union Lisp_Misc): Use it.
29654 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29655 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29656 (find_symbol_value, set_internal, default_value, Fset_default)
29657 (Fmake_variable_buffer_local, Fmake_local_variable)
29658 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29659 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29660 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29661 * alloc.c (allocate_buffer): Set the size and tag.
29662 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29663 Use XMISCANY.
29664 (die): Follow the GNU convention for error messages.
29665 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29666 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29667 tag any more.
29668 (set_buffer_internal_1):
29669 * frame.c (store_frame_param):
29670 * eval.c (specbind):
29671 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29672
29673 * doc.c (Fsnarf_documentation): Simplify.
29674
296752007-10-14 Juanma Barranquero <lekktu@gmail.com>
29676
29677 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29678 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29679
296802007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29681
29682 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29683
296842007-10-14 Juanma Barranquero <lekktu@gmail.com>
29685
29686 * eval.c (do_autoload): Don't save autoloads.
29687
29688 * data.c (Ffset): Save autoload of the function being set.
29689
296902007-10-07 John Paul Wallington <jpw@pobox.com>
29691
29692 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29693 parameter before setting up faces.
29694
296952007-10-13 Eli Zaretskii <eliz@gnu.org>
29696
29697 * ccl.c (Fregister_code_conversion_map):
29698 * keyboard.c (append_tool_bar_item): Reformat last change.
29699
29700 * lisp.h (eabs): Rename from `abs'. All callers changed.
29701
297022007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29703
29704 * buffer.c (add_overlay_mod_hooklist):
29705 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29706 * fontset.c (make_fontset):
29707 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29708 (append_tool_bar_item):
29709 * macmenu.c (grow_menu_items):
29710 * w32menu.c (grow_menu_items):
29711 * xmenu.c (grow_menu_items): Use larger_vector.
29712
297132007-10-13 Eli Zaretskii <eliz@gnu.org>
29714
29715 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29716 selected frame'' on MSDOS).
29717
297182007-10-12 Martin Rudalics <rudalics@gmx.at>
29719
29720 * frame.c (Qexplicit_name): New variable.
29721 (x_report_frame_params): Report it in parameter alist.
29722 (syms_of_frame): Intern and staticpro it.
29723
297242007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29725
29726 * macfns.c (x_create_tip_frame): Set terminal for frame.
29727
297282007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29729
29730 * frame.c (Qenvironment): Remove.
29731 (syms_of_frame) <Qenvironment>: Don't initialize.
29732 (Fdelete_frame): Don't treat the `environment' param specially.
29733 * frame.h (Qenvironment): Don't declare.
29734 * callproc.c (set_initial_environment): Don't set unused frame param.
29735
29736 * frame.c (Fframe_with_environment): Remove.
29737 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29738
29739 * lisp.h (Fframe_with_environment): Don't declare.
29740
297412007-10-10 Juanma Barranquero <lekktu@gmail.com>
29742
29743 * indent.c (indent_tabs_mode, last_known_column)
29744 (last_known_column_modified): Make static.
29745 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29746
297472007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29748
29749 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29750
297512007-10-09 Jason Rumney <jasonr@gnu.org>
29752
29753 * w32term.c (x_set_window_size): Disable code that attempts to tell
29754 Lisp code about a size change before it actually happens.
29755
297562007-10-09 Richard Stallman <rms@gnu.org>
29757
29758 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29759 return HANDLED_RETURN.
29760
297612007-10-08 Martin Rudalics <rudalics@gmx.at>
29762
29763 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29764 when there's an unread command event.
29765
29766 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29767 window autoselection act appropriately when leaving selected frame.
29768 (syms_of_frame): Initialize focus_follows_mouse.
29769 * frame.h (focus_follows_mouse): Extern it.
29770 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29771 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29772 * msdos.c (dos_rawgetc): Likewise.
29773 * w32term.c (w32_read_socket): Likewise.
29774 * xterm.c (handle_one_xevent): Likewise.
29775 * xdisp.c (syms_of_xdisp): In doc-string of
29776 mouse-autoselect-window mention focus-follows-mouse.
29777
297782007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29779
29780 * macterm.c (mac_load_query_font): Fix missing return value.
29781 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29782 Add BLOCK_INPUT.
29783
297842007-10-08 Richard Stallman <rms@gnu.org>
29785
29786 * xdisp.c (get_window_cursor_type): Implement documented behavior
29787 for cursor-in-non-selected-windows = t.
29788
297892007-10-08 Jason Rumney <jasonr@gnu.org>
29790
29791 * w32.c (w32_get_resource): Always close registry keys.
29792
297932007-10-08 Jason Rumney <jasonr@gnu.org>
29794
29795 * makefile.w32-in (LIBS): Add COMCTL32.
29796
29797 * w32fns.c (globals_of_w32fns): Init common controls.
29798
297992007-10-08 Richard Stallman <rms@gnu.org>
29800
29801 * image.c (our_memory_buffer): Rename from omfib_buffer.
29802
298032007-10-08 Richard Stallman <rms@gnu.org>
29804
29805 * buffer.c (Foverlays_at): Doc fix.
29806
298072007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29808
29809 * fns.c (Fplist_put): Preserve uneven tail data.
29810
298112007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29812
29813 * termhooks.h (enum event_kind): Remove trailing comma.
29814
29815 * frame.h (enum): Remove trailing comma.
29816
298172007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29818
29819 * w32proc.c (delete_child): Don't terminate threads of zombies.
29820
298212007-10-08 Martin Rudalics <rudalics@gmx.at>
29822
29823 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29824
29825 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29826 last-repeatable-command.
29827 (init_kboard): Initialize Vlast_repeatable_command.
29828 (command_loop_1): Set it to real_this_command unless that was
29829 bound to an input event.
29830 (mark_kboards): Mark it.
29831
298322007-10-08 Richard Stallman <rms@gnu.org>
29833
29834 * eval.c (condition-case): Doc fix.
29835
298362007-10-08 Masatake YAMATO <jet@gyve.org>
29837
29838 * xfaces.c (tty_supports_face_attributes_p): Fix code
29839 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29840 was copied and not edited.
29841
298422007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29843
29844 Add new `input-decode-map' keymap and use it for terminal
29845 escape sequences.
29846 * keyboard.h (struct kboard): Add Vinput_decode_map.
29847 Remove Vlocal_key_translation_map.
29848 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29849 (init_kboard): Init input-decode-map.
29850 Replace local-key-translation-map back with key-translation-map.
29851 (syms_of_keyboard): Declare input-decode-map.
29852 Remove local-key-translation-map. Update docstrings.
29853 (mark_kboards): Mark Vinput_decode_map.
29854 Don't mark Vlocal_key_translation_map.
29855 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29856 Replace local-key-translation-map back with key-translation-map.
29857 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29858 Bind in input-decode-map rather than function-key-map.
29859
29860 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29861 This was made redundant by the previous introduction of XSETPVECTYPE.
29862
298632007-10-09 Richard Stallman <rms@gnu.org>
29864
29865 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29866
298672007-09-29 Richard Stallman <rms@gnu.org>
29868
29869 * eval.c (internal_condition_case_2, internal_condition_case_1)
29870 (internal_condition_case): Reenable abort if x_catching_errors ()
29871 to see if that really happens and why.
29872
298732007-10-06 Andreas Schwab <schwab@suse.de>
29874
29875 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29876
298772007-10-04 Juanma Barranquero <lekktu@gmail.com>
29878
29879 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29880
298812007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29882
29883 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29884
298852007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29886
29887 * window.h (struct window):
29888 * window.c (struct save_window_data, struct saved_window):
29889 * termhooks.h (struct terminal):
29890 * process.h (struct Lisp_Process):
29891 * frame.h (struct frame):
29892 * buffer.h (struct buffer):
29893 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29894 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29895 The size field of (pseudo)vectors is now unsigned.
29896 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29897
29898 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29899 Turn `count' into an integer.
29900
29901 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29902 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29903 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29904 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29905 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29906
29907 * alloc.c (allocate_pseudovector): New fun.
29908 (ALLOCATE_PSEUDOVECTOR): New macro.
29909 (allocate_window, allocate_terminal, allocate_frame)
29910 (allocate_process): Use it.
29911 (mark_vectorlike): New function.
29912 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29913 (mark_terminals): Use it.
29914 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29915 (Fmake_byte_code): Use XSETPVECTYPE.
29916
29917 * frame.c (Fframe_parameters): Minor simplification.
29918
29919 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29920
29921 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29922
29923 * buffer.c (Fget_buffer_create, init_buffer_once):
29924 * lread.c (defsubr):
29925 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29926
29927 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29928 defined differently in the m/*.h files.
29929 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29930 (XSETPVECTYPE): New macro.
29931 (XSETPSEUDOVECTOR): Use it.
29932
29933 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29934 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29935
29936 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29937 * lread.c (defvar_per_buffer):
29938 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29939
29940 * window.c (candidate_window_p): Only consider as visible frames that
29941 are on the same terminal.
29942
29943 * m/ibms390x.h (MARKBIT): Remove unused macro.
29944
299452007-10-01 Juanma Barranquero <lekktu@gmail.com>
29946
29947 * lread.c (Fload): Fix typo in docstring.
29948
299492007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29950
29951 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29952 of a non-zero value can't yield zero.
29953
299542007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29955
29956 * term.c (term_clear_mouse_face, term_mouse_highlight)
29957 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29958
29959 * print.c (safe_debug_print): Use XHASH.
29960
29961 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29962 Lisp elements such as tags.
29963 (XHASH): New macro.
29964 (EQ): Use it.
29965 (SREF, SSET, STRING_COPYIN): Use SDATA.
29966 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29967
29968 * alloc.c (mark_terminal): Remove left-over declaration.
29969 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29970 (allocate_vectorlike): Remove type argument. Adjust callers.
29971 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29972 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29973
29974 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29975 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29976 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29977 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29978 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29979 Use them.
29980
29981 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29982 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29983 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29984
299852007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29986
29987 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29988 loaded by default.
29989
299902007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29991
29992 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29993 on this tty.
29994 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29995
29996 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29997 Update all users.
29998 (handle_one_term_event): Use Gpm_DrawPointer.
29999 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30000 Signal errors instead of returning nil. Always return nil.
30001 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30002 Make it a noop if gpm-mouse was not activated.
30003 (syms_of_term): Update names.
30004
300052007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30006
30007 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30008 (init_sys_modes): Check that gpm_tty is the current tty.
30009
30010 * alloc.c (allocate_terminal): Set the vector size to only count the
30011 lisp fields. Initialize those to nil.
30012 (mark_object): Don't treat terminals specially.
30013 (mark_terminal): Remove.
30014 (mark_terminals): Use mark_object instead.
30015
30016 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30017 the GC to the beginning.
30018
30019 * indent.h:
30020 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30021
30022 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30023
300242007-09-25 Jason Rumney <jasonr@gnu.org>
30025
30026 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30027
30028 * w32console.c (create_w32cons_output): Remove.
30029
30030 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30031
30032 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30033 (reset_sys_modes): Use reset_terminal_modes_hook.
30034
300352007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30036
30037 * eval.c (do_autoload): Don't output any message.
30038
300392007-09-24 Juri Linkov <juri@jurta.org>
30040
30041 * emacs.c (standard_args): Change priority of "--no-splash"
30042 from 40 to 3. Add "--no-desktop" with the same priority.
30043
300442007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30045
30046 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30047 and optimize the case where they are all 1.
30048
300492007-09-23 Johannes Weiner <hannes@saeurebad.de>
30050
30051 * lisp.h (abs): Define if not defined.
30052 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30053 Don't define `abs', since it's defined in lisp.h.
30054
300552007-09-22 Eli Zaretskii <eliz@gnu.org>
30056
30057 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30058 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30059 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30060 (init_tty): Use DEV_TTY instead of "/dev/tty".
30061 [WINDOWSNT]: No need to protect from NAME arg being null.
30062
300632007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30064
30065 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30066 up the tty state.
30067
300682007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30069
30070 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30071 (gpm_tty): Change its type.
30072 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30073 (gpm_tty): Change its type and initialize it.
30074 (Fterm_open_connection): Check the frame is indeed a tty.
30075 Use the new gpm_tty.
30076 (Fterm_close_connection): Use the new gpm_tty.
30077 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30078 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30079
300802007-09-21 Juanma Barranquero <lekktu@gmail.com>
30081
30082 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30083 underline_color, to draw strike-through.
30084
300852007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30086
30087 * lisp.h (allocate_terminal): Declare.
30088
30089 * window.c (candidate_window_p): Consider frames that are being placed
30090 by the user as somewhere between visible and iconified.
30091 (window_loop): Prefer windows on the current frame.
30092 (Fselect_window): Move the use of select-frame to the beginning so we
30093 can just delegate all the work (it'll call us back anyway).
30094
30095 * frame.c (Qdisplay_environment_variable):
30096 * frame.h (Qdisplay_environment_variable): Delete.
30097
30098 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30099 of the first arg, since that value may be a union.
30100
30101 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30102 parameter rather than Qdisplay_environment_variable. If all else
30103 fails, look for DISPLAY in initial-environment.
30104
301052007-09-21 Glenn Morris <rgm@gnu.org>
30106
30107 * Makefile.in (emacstool): Remove target.
30108 (lisp, shortlisp): Remove termdev.elc.
30109
301102007-09-21 Markus Triska <markus.triska@gmx.at>
30111
30112 * xterm.c (x_delete_display): Compile session management conditionally.
30113
301142007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30115
30116 * callproc.c (getenv_internal_1): New function.
30117 (getenv_internal): Use it.
30118 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30119
30120 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30121 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30122 (Fset_terminal_parameter): Work with dead terminals as well.
30123 (Fmodify_terminal_parameters): Remove.
30124
30125 * terminal.c (get_terminal): Handle terminals.
30126 Make sure the terminal returned is live.
30127 (create_terminal): Use allocate_terminal.
30128 (mark_terminals): Move to alloc.c.
30129 (delete_terminal): Use terminal->name as liveness status.
30130 NULL out fields after freeing their contents.
30131 Don't deallocate the object.
30132 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30133 rather than an int.
30134 (Fterminal_live_p): Accept non-integer arguments.
30135 (Fterminal_list): Return terminal objects rather than an ints.
30136
30137 * alloc.c (enum mem_type): New member for `terminal' objects.
30138 (allocate_terminal): New function.
30139 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30140 Handle terminals.
30141 (mark_terminal): New fun.
30142 (mark_terminals): Move from terminal.c.
30143
30144 * term.c (get_tty_terminal): Don't treat output_initial specially.
30145 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30146 (delete_tty): Use terminal->name as liveness status.
30147
30148 * termhooks.h (struct terminal): Make it into a pseudovector.
30149 Remove `deleted' replaced by checking `name's nullness.
30150
30151 * print.c (print_object): Handle terminals.
30152
30153 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30154 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30155
30156 * frame.c (make_terminal_frame):
30157 * keyboard.c (tty_read_avail_input):
30158 * w32term.c (x_delete_terminal):
30159 * xfns.c (Fx_create_frame, x_create_tip_frame):
30160 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30161
301622007-09-20 Glenn Morris <rgm@gnu.org>
30163
30164 * process.c (Fmake_network_process): Doc fix.
30165
301662007-09-19 Jason Rumney <jasonr@gnu.org>
30167
30168 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30169
301702007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30171
30172 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30173 Fix a C warning regarding variable constness.
30174
30175 * xterm.c (handle_one_xevent): Fix a C warning.
30176
301772007-09-18 Jason Rumney <jasonr@gnu.org>
30178
30179 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30180
301812007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30182
30183 * gtkutil.c (gdpy_def): New variable.
30184 (xg_initialize): Initialize gdpy_def.
30185 (xg_display_close): If no other display exists, set gdpy_def to a
30186 new connection.
30187
301882007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30189
30190 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30191 when we have no file name for the icon.
30192 (xg_tool_bar_expose_callback): Remove.
30193 (xg_create_tool_bar): Don't connect expose signal to
30194 xg_tool_bar_expose_callback.
30195 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30196
301972007-09-16 Andreas Schwab <schwab@suse.de>
30198
30199 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30200 values instead of zapping them.
30201
302022007-09-14 Glenn Morris <rgm@gnu.org>
30203
30204 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30205 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30206 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30207 scope and rename to omfib_buffer for clarity.
30208 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30209
302102007-09-14 Kenichi Handa <handa@m17n.org>
30211
30212 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30213
302142007-09-13 Jason Rumney <jasonr@gnu.org>
30215
30216 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30217
30218 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30219
30220 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30221 (mac_term_init): Call here instead, passing rif.
30222
302232007-09-13 Glenn Morris <rgm@gnu.org>
30224
30225 * s/hpux.h: No longer define `static' as nothing.
30226
302272007-09-13 Johan Bockgård <bojohan@gnu.org>
30228
30229 * callint.c (Fcall_interactively): Remove unused var `fun'.
30230
302312007-09-12 Romain Francoise <romain@orebokech.com>
30232
30233 * window.c (prefer_window_split_horizontally, display_buffer):
30234 Revert 2007-09-08 change.
30235
302362007-09-12 Glenn Morris <rgm@gnu.org>
30237
30238 * alloca.c: Remove file.
30239 * Makefile.in (alloca): Do not undef.
30240 (allocaobj, alloca.o): Remove.
30241 (otherobj): Remove allocaobj.
30242 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30243 * regex.c (C_ALLOCA): Remove all references and code that was only
30244 used when this was defined.
30245 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30246 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30247 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30248
30249 * Makefile.in (SOURCES, unlock, relock): Delete.
30250
30251 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30252 (menu_grab_callback): All uses changed.
30253
30254 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30255 (x_reply_selection_request): All uses changed.
30256
302572007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30258
30259 * lread.c (load_warn_old_style_backquotes): Change message to look
30260 better when it appears in the middle of byte-compiler messages.
30261
302622007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30263
30264 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30265
30266 * xterm.c (x_create_terminal): Add comment.
30267
30268 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30269
302702007-09-10 Richard Stallman <rms@gnu.org>
30271
30272 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30273
302742007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30275
30276 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30277 (DEFUN): Document `intspec', use it instead of `prompt'.
30278
30279 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30280
30281 * data.c (Finteractive_form): If the interactive specification starts
30282 with a `(', use it as a Lisp form.
30283
30284 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30285 name and file modes.
30286
30287 * callint.c (Fcall_interactively): Comment fixes.
30288
302892007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30290
30291 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30292 and compiled functions.
30293
302942007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30295
30296 * window.c (prefer_window_split_horizontally): New variable.
30297 (display_buffer): Consider splitting window horizontally depending
30298 on prefer_window_split_horizontally.
30299
303002007-09-08 Eli Zaretskii <eliz@gnu.org>
30301
30302 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30303
303042007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30305
30306 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30307
30308 * frame.c (x_set_frame_parameters): Check number is positive before
30309 using XFASTINT.
30310
30311 * window.c (freeze_window_start): Don't presume selected_window holds
30312 a window object.
30313 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30314
303152007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30316
30317 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30318
303192007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30320
30321 * window.c (Vsplit_window_preferred_function): New var.
30322 (Fdisplay_buffer): Use it.
30323 (syms_of_window): Export, and initialize it.
30324
303252007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30326
30327 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30328
303292007-09-06 Glenn Morris <rgm@gnu.org>
30330
30331 * gtkutil.c (menu_grab_callback) <cnt>:
30332 * xselect.c (x_reply_selection_request) <cnt>: Move static
30333 variable to file scope.
30334
303352007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30336
30337 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30338 consistent values of selected_frame and selected_window.
30339
303402007-09-04 Jason Rumney <jasonr@gnu.org>
30341
30342 * w32console.c (initialize_w32_display): Zero unused hooks.
30343
303442007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30345
30346 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30347 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30348
303492007-09-04 Jason Rumney <jasonr@gnu.org>
30350
30351 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30352 in w32console.c. Set up input. Remove XXX comments that have been
30353 confirmed as correct.
30354
30355 * s/ms-w32.h (MULTI_KBOARD): Define.
30356
30357 * w32console.c (one_and_only_w32cons): Remove.
30358 (initialize_w32_display): Take terminal argument.
30359
30360 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30361 initialize_w32_display.
30362 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30363
30364 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30365
30366 * keyboard.c (discard_mouse_events): Discard it.
30367 (make_lispy_event): Translate it to a lisp event.
30368 (lispy_wheel_names): Add wheel-left and right events.
30369 (syms_of_keyboard): Enlarge wheel_syms.
30370
30371 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30372 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30373
30374 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30375
30376 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30377 from WM_MOUSEHWHEEL.
30378 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30379
30380 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30381 terminal.
30382
30383 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30384 keyboard for the terminal.
30385
303862007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30387
30388 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30389 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30390 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30391 and resume-tty-function to resume-tty-hook.
30392 (Fsuspend_tty, Fresume_tty): Use new names.
30393
303942007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30395
30396 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30397 if it starts with "n:".
30398
303992007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30400
30401 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30402
304032007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30404
30405 * frame.h:
30406 * frame.c (Qterm_environment_variable): Remove.
30407 (syms_of_frame): Don't init and staticpro it.
30408
30409 * callproc.c (getenv_internal): Remove special case for $TERM.
30410
30411 * callproc.c (Vinitial_environment): New variable.
30412 (set_initial_environment): Initialize it.
30413 (syms_of_callproc): Declare it.
30414 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30415 TERM under which a process runs is never related to the TERM in which
30416 Emacs is running.
30417
304182007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30419
30420 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30421 * s/darwin.h: ... do it here.
30422
304232007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30424
30425 * lisp.h (set_initial_environment): Rename from set_global_environment.
30426
30427 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30428 removed by mistake on the multi-tty branch.
30429
30430 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30431 (Fmodify_frame_parameters): Return a value.
30432
30433 * image.c (png_load): Comment-out var only used in commented-out code.
30434
30435 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30436 before passing it to mark_object.
30437
30438 * xfaces.c (internal_resolve_face_name): Return a value.
30439 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30440
30441 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30442 (x_icon): Comment-out var only used in commented-out code.
30443
304442007-08-29 Romain Francoise <romain@orebokech.com>
30445
30446 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30447 QUIT hasn't been provided.
30448
304492007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30450
30451 * callproc.c (child_setup, getenv_internal): Use the
30452 display-environment-variable and term-environment-variable frame params.
30453 (set_initial_environment): Initialise Vprocess_environment.
30454
30455 * config.in: Disable multi-keyboard support on a mac.
30456
30457 * frame.c (Qterm_environment_variable)
30458 (Qdisplay_environment_variable): New variables.
30459 (syms_of_frame): Intern and staticpro them.
30460 (Fmake_terminal_frame): Disable output method test.
30461
30462 * frame.h: Declare them here.
30463
30464 * macfns.c (x_set_mouse_color): Get rif from the frame.
30465 (x_set_tool_bar_lines): Don't use updating_frame.
30466 (mac_window): Add 2 new parameters for consistency with other systems.
30467 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30468 frame parameters following what is done in X11 and w32. Don't use
30469 FRAME_MAC_DISPLAY_INFO.
30470 (Fx_open_connection, start_hourglass): Remove window-system check.
30471 (x_create_tip_frame): Get the keyboard from the terminal.
30472
30473 * macmenu.c: Reorder includes.
30474 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30475
30476 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30477 terminal parameter.
30478 (x_clear_frame): Add a frame parameter.
30479 (note_mouse_movement): Get rif from the frame.
30480 (mac_term_init): Initialize the terminal.
30481 (mac_initialize): Make static and move terminal initialization ...
30482 (mac_create_terminal): ... to this new function.
30483
30484 * macterm.h (struct mac_display_info): Add terminal.
30485 (mac_initialize): Delete declaration.
30486
30487 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30488
30489 * sysdep.c: Comment out text after #endif.
30490
30491 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30492 is defined. Better initialize ttys in windows. Use terminal
30493 specific mouse_position_hook.
30494
30495 * termhooks.h (union display_info): Add mac_display_info.
30496
30497 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30498 Set the default minibuffer frame, window_system and the rest of the
30499 frame parameters following what is done in X11.
30500
30501 * w32term.c (w32_initialize): Make static.
30502
30503 * xselect.c (x_handle_selection_clear): Only access
30504 terminal->kboard when MULTI_KBOARD is defined.
30505
30506 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30507 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30508
305092007-08-29 Jason Rumney <jasonr@gnu.org>
30510
30511 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30512 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30513
30514 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30515 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30516
30517 * keyboard.c (restore_kboard_configuration): Only define when
30518 MULTI_KBOARD defined.
30519
30520 * makefile.w32-in: Update dependancies from Makefile.in.
30521 (OBJ1): Add terminal.$(O)
30522
30523 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30524 Don't define function body.
30525 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30526
30527 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30528
30529 * w32.c (request_sigio, unrequest_sigio): Remove.
30530
30531 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30532 (w32con_clear_frame, w32con_clear_end_of_line)
30533 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30534 (w32con_delete_glyphs, w32con_set_terminal_window)
30535 (scroll_line, w32_sys_ring_bell): Add frame arg.
30536 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30537 Add terminal arg.
30538 (PICK_FRAME): Remove.
30539 (w32con_write_glyphs): Use frame specific terminal coding.
30540 (one_and_only_w32cons): New global variable.
30541 (initialize_w32_display): Use it for storing hooks.
30542 (create_w32cons_output): New function.
30543
30544 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30545 arg a frame.
30546
30547 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30548 Set window_system.
30549 (x_set_tool_bar_lines): Don't use updating_frame.
30550 (Fx_create_frame): Set terminal and ref count.
30551 (Fx_open_connection): Remove window-system check.
30552
30553 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30554
30555 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30556 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30557 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30558 Add frame arg.
30559 (x_delete_terminal, w32_create_terminal): New functions.
30560 (w32_term_init): Create a terminal.
30561 (w32_initialize): Move terminal specific initialization to
30562 w32_create_terminal.
30563
30564 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30565 (w32_clear_rect, w32_clear_area): Use background from frame.
30566 (w32_display_info): Add terminal.
30567 (w32_sys_ring_bell, x_delete_display): Declare here.
30568
30569 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30570
30571 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30572
305732007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30574
30575 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30576 Fix get_named_tty calls for the controlling tty.
30577
305782007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30579
194d44e7 30580 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30581
305822007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30583
30584 * term.c (tty_insert_glyphs): Add missing first parameter.
30585
305862007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30587
30588 * buffer.c (Fbuffer_list, Fbury_buffer):
30589 Take frame->buried_buffer_list into account.
30590
30591 * cm.c (current_tty): New variable, for cmputc().
30592 (cmputc): Use it.
30593 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30594 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30595 (cmgoto): Add tty parameter. Pass it on to calccost().
30596 Use emacs_tputs() instead of tputs().
30597
30598 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30599 tputs().
30600 (current_tty): New variable, for cmputc().
30601 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30602
30603 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30604 (internal_condition_case, internal_condition_case_1)
30605 (internal_condition_case_2): Don't abort when x_catching_errors.
30606
30607 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30608 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30609 prevent crashes caused by bogus longjmps in read_char.
30610
30611 * keymap.h (Fset_keymap_parent): Add EXFUN.
30612
30613 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30614 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30615 Remove redundant definition.
30616
30617 * macfns.c (x_set_mouse_color, x_make_gc):
30618 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30619
30620 * w32term.c (x_free_frame_resources):
30621 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30622 (w32_initialize): Use the accessor macros for terminal characteristics.
30623
30624 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30625 Use the accessor macros for terminal characteristics.
30626 * msdos.c (internal_terminal_init): Use the accessor macros for
30627 terminal characteristics.
30628 (ScreenVisualBell, internal_terminal_init):
30629 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30630
30631 * termopts.h (no_redraw_on_reenter): Declare.
30632
30633 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30634 (mark_terminals, mark_ttys): Declare.
30635 (Fgarbage_collect): Call them.
30636 (mark_object): Mark buried_buffer_list.
30637
30638 * prefix-args.c: Include stdlib.h for exit.
30639
30640 * syssignal.h: Add comment.
30641
30642 * indent.c: Include stdio.h.
30643
30644 * window.h (Vinitial_window_system): Declare.
30645 (Vwindow_system): Delete declaration.
30646
30647 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30648
30649 * image.c (lookup_image): Don't initialize `c' until the xasserts
30650 have been run.
30651
30652 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30653 FRAME_FOREGROUND_PIXEL.
30654
30655 * print.c (print_preprocess): Don't lose print_depth levels while
30656 iterating.
30657
30658 * widget.c (update_from_various_frame_slots):
30659 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30660
30661 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30662 frames.
30663 (window_internal_height): Remove bogus make_number call.
30664 (init_window_once): Call make_terminal_frame with two zero parameters.
30665
30666 * fileio.c (Fread_file_name): Update comment.
30667
30668 * callint.c (Fcall_interactively):
30669 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30670 Make sure it is correctly unwound.
30671
30672 * xsmfns.c (x_session_close): New function.
30673
30674 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30675 Delete declarations.
30676
30677 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30678 (x_output): Remove background_pixel and foreground_pixel fields.
30679 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30680 (x_delete_device, x_session_close): Declare.
30681
30682 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30683 (read_filtered_event): Call `read_char' with a local
30684 `wrong_kboard_jmpbuf'.
30685
30686 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30687 Don't call single_kboard_state. Use FRAME_RIF.
30688
30689 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30690 systems.
30691
30692 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30693 (Fframe_with_environment, Fset_input_meta_mode)
30694 (Fset_quit_char): EXFUN.
30695 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30696 (init_sys_modes, reset_sys_modes): Update prototypes.
30697 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30698
30699 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30700 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30701 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30702 Delete declarations.
30703 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30704 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30705 New declarations.
30706
30707 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30708 already does that during init_display(). Call syms_of_keymap
30709 before syms_of_keyboard. Call `syms_of_terminal'.
30710 Call set_initial_environment, not set_process_environment.
30711 (shut_down_emacs): Call reset_all_sys_modes() instead of
30712 reset_sys_modes().
30713
30714 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30715 (internal_resolve_face_name, resolve_face_name_error): New functions.
30716 (resolve_face_name): Protect against loops and errors thrown by Fget.
30717 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30718 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30719
30720 * scroll.c: Replace CURTTY() with local variables throughout the
30721 file (where applicable).
30722 (calculate_scrolling, calculate_direct_scrolling)
30723 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30724 characteristics.
30725
30726 * keymap.c (Vfunction_key_map): Remove.
30727 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30728 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30729 (Vkey_translation_map): Remove.
30730 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30731 (Fdescribe_buffer_bindings)
30732 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30733 Update for terminal-local key-translation-map.
30734
30735 * Makefile.in (callproc.o): Update dependencies.
30736 (lisp, shortlisp): Add termdev.elc.
30737 (obj): Add terminal.o.
30738 (terminal.o): Add dependencies.
30739 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30740 (data.o, fns.o): Add termhooks.h dependency.
30741 (SOME_MACHINE_LISP): Add dnd.elc.
30742 (minibuf.o): Fix typo.
30743 Update dependencies.
30744
30745 * data.c (do_symval_forwarding, store_symval_forwarding)
30746 (find_symbol_value): Use the selected frame's keyboard, not
30747 current_kboard.
30748
30749 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30750 Vwindow_system.
30751
30752 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30753 Fmenu_bar_open.
30754 (syms_of_xmenu): Update defsubr.
30755 (mouse_position_for_popup, Fx_popup_menu)
30756 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30757 (set_frame_menubar, free_frame_menubar)
b97439ce 30758 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
30759 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30760 an X frame.
30761
30762 * xselect.c (x_own_selection): Abort if not an X frame.
30763 (some_frame_on_display): Check if it is an X frame.
30764 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30765
30766 * coding.c: Include frame.h and termhooks.h.
30767 (terminal_coding, keyboard_coding): Delete.
30768 (Fset_terminal_coding_system_internal)
30769 (Fset_keyboard_coding_system_internal)
30770 (Fkeyboard_coding_system)
30771 (Fterminal_coding_system): Add a terminal parameter.
30772 Get terminal_coding from the terminal.
30773 (init_coding_once): Don't call setup_coding_system here.
30774
30775 * dispextern.h (set_scroll_region, turn_off_insert)
30776 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30777 (tty_clear_end_of_line, tty_setup_colors)
30778 (delete_tty, updating_frame)
30779 (produce_special_glyphs, produce_glyphs, write_glyphs)
30780 (insert_glyphs): Remove.
30781 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30782 (tty_turn_off_highlight, get_tty_size): Add declaration.
30783 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30784
30785 * frame.h (enum output_method): Add output_initial.
30786 (struct x_output): Delete.
30787 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30788 Access foreground_pixel and background_pixel directly from the frame.
30789 (tty_display): Delete.
30790 (struct frame): Add buried_buffer_list, foreground_pixel,
30791 background_pixel and terminal. Delete kboard.
30792 (union output_data): Add tty.
30793 (FRAME_KBOARD): Get the kboard from the terminal.
30794 (FRAME_INITIAL_P): New macro.
30795 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30796 (Qterm_environment_variable, Qdisplay_environment_variable)
30797 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30798 New declarations.
30799
30800 * termchar.h (tty_output, tty_display_info): New structures.
30801 (tty_list): Declare.
30802 (FRAME_TTY, CURTTY): New macros.
30803 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30804 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30805 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30806 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30807
30808 * callproc.c: Include frame.h and termhooks.h, for terminal
30809 parameters.
30810 (add_env): New function.
30811 (child_setup): Use it.
30812 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30813 (getenv_internal): Fix get_terminal_param call.
30814 (Fgetenv_internal, egetenv): Update doc.
30815 (syms_of_callproc): Initialize Vprocess_environment to nil.
30816 Register and initialize them. Remove obsolete defvars. Update doc
30817 strings.
30818 (child_setup): Handle Vlocal_environment_variables.
30819 (getenv_internal): Add terminal parameter.
30820 Handle Vlocal_environment_variables.
30821 (Fgetenv_internal): Add terminal parameter.
30822 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30823 environment in a frame (not terminal) parameter. Update doc strings.
30824 (set_initial_environment): Rename from set_global_environment.
30825 Store Emacs environment in initial frame parameter.
30826
30827 * xdisp.c (redisplay_internal): Update references to
30828 `previous_terminal_frame'.
30829 (display_mode_line, Fformat_mode_line): Replace calls to
30830 `push_frame_kboard' with `push_kboard'.
30831 (get_glyph_string_clip_rects): Add extra parentheses and
30832 braces to prevent compiler warnings.
30833 (calc_pixel_width_or_height): Add xassert to check that the
30834 frame is alive. Don't call `lookup_image' on a termcap frame.
30835 (message2_nolog, message3_nolog, redisplay_internal)
30836 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30837 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30838 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30839 (Fx_display_pixel_width, Fx_display_pixel_height)
30840 (Fx_display_planes, Fx_display_color_cells)
30841 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30842 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30843 (Fx_display_backing_store, Fx_display_visual_class)
30844 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30845 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30846
30847 * xfns.c (x_set_foreground_color x_set_background_color)
30848 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30849 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30850 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30851 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30852 terminal that is being deleted.
30853 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30854 frame parameter, and make sure it overrides any user-supplied setting.
30855 (Fx_close_connection, Fx_synchronize): Unify argument names with
30856 the rest of the DEFUNs.
30857
30858 * dispnew.c (Fsend_string_to_terminal): Update call to
30859 `get_tty_terminal'.
30860 (Fredraw_frame, Fsend_string_to_terminal)
30861 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30862 FRAME_TERMCAP_P and FRAME_TTY.
30863 (window_change_signal): Don't believe width/height values that are
30864 impossibly small.
30865 (Vinitial_window_system): Rename from Vwindow_system.
30866 (termscript, Wcm, rif): Delete.
30867
30868 * termhooks.h (struct terminal): New struct containing the
30869 previously global text display hooks and new members NAME,
30870 DELETED and PARAM_ALIST.
30871 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30872 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30873 (FRAME_RIF): New macros.
30874 (get_terminal_param, get_device): New declarations.
30875 (termscript): Delete declaration.
30876
30877 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30878 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30879 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30880 FRAME_FOREGROUND_PIXEL.
30881 (x_fully_uncatch_errors): Disable definition.
30882 (x_scroll_bar_expose): Fix reference to foreground pixel.
30883 (XTread_socket): Disable loop on all X displays.
30884 (x_delete_terminal): Don't set terminal->deleted and let
30885 delete_terminal delete the frames on the terminal.
30886 (x_delete_display): Doc update to reflect changes in
30887 delete_terminal.
30888 (x_display_info) <terminal>: Move member earlier in the struct.
30889 (deleting_tty): Remove old variable.
30890 (Fsuspend_tty): Call clear_tty_hooks.
30891 (Fresume_tty, init_tty): Call set_tty_hooks.
30892 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30893 errors on X frames.
30894 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30895 (handle_one_xevent): Initialize `f' to NULL.
30896 (x_delete_terminal, x_create_terminal): New functions.
30897 (XTset_terminal_modes, XTreset_terminal_modes)
30898 (XTread_socket, x_connection_closed, x_term_init)
30899 (x_term_init, x_delete_display): Add terminal parameter.
30900 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30901 X connections.
30902
30903 * frame.c: Include termchar.h.
30904 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30905 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30906 (Qdisplay_environment_variable): New vars.
30907 (Fframep): Deal with output_initial.
30908 (Fframe-live-p): Doc fix.
30909 (Fwindow-system): New function.
30910 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30911 (make_terminal_frame): Don't create frames on a terminal that is
30912 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30913 (store_frame_param): Check for found_for_frame before calling XFRAME.
30914 (Fmake_terminal_frame): Handle NULL tty names correctly.
30915 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30916 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30917 frames to refer to a deleted frame in their 'environment parameter.
30918 (Fframe_with_environment): New function.
30919 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30920 (get_future_frame_param): New function.
30921 (Fmake_terminal_frame): Use it.
30922 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30923
30924 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30925 * sysdep.c (reset_sys_modes): Update for renames.
30926
30927 * keyboard.c (tty_read_avail_input): New function.
30928 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30929 (syms_of_keyboard): Defsubr them.
30930 (Fset_input_meta_mode, Fset_quit_char): New functions.
30931 (Fset_input_mode): Split to above functions.
30932 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30933 parameter. Use it in call to `read_char'.
30934 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30935 Set wrong_kboard_jmpbuf correctly in recursive calls.
30936 Use current_kboard to access Vkeyboard_translate_table.
30937 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30938 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30939 Update longjmp invocations. Remember the original current_kboard,
30940 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30941 changes it. Comment out unnecessary calls to
30942 `record_single_kboard_state' and `any_kboard_state'.
30943 Update recursive calls.
30944 (wrong_kboard_jmpbuf): Remove global variable.
30945 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30946 Handle deleted interrupted_kboards correctly; that is a legal
30947 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30948 and read_char calls. Abort if interrupted_kboard died in read_char.
30949 (any_kboard_state, single_kboard_state)
30950 (push_frame_kboard): Remove function.
30951 (pop_kboard): Switch out of single_kboard mode if the kboard has
30952 been deleted. Remove unused variable. Help debugging by not
30953 changing current_kboard unnecessarily. Set current_kboard to the
30954 kboard of the selected frame when the stored kboard object has
30955 been deleted before pop_kboard.
30956 (temporarily_switch_to_single_kboard): Change first parameter to a
30957 frame pointer. Throw an error when caller wants to change kboards
30958 while in single_kboard mode. Don't push_kboard if we weren't in
30959 single kboard state. Don't pop_kboard if we popped into any
30960 kboard state.
30961 (restore_kboard_configuration): Abort if pop_kboard changed the
30962 kboard in single_kboard mode. Call pop_kboard only after setting
30963 up single_kboard mode.
30964 (Frecursive_edit): Switch to single_kboard mode only in nested
30965 command loops.
30966 (cmd_error, command_loop, command_loop_1, timer_check):
30967 Comment out unnecessary call to `any_kboard_state' and
30968 `record_single_kboard_state'.
30969 (delete_kboard): Exit single_kboard mode if we have just deleted
30970 that kboard. Use FRAME_KBOARD.
30971 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30972 `fatal_error_signal'.
30973 (record_single_kboard_state): Don't push_kboard if we weren't in
30974 single kboard state. Don't pop_kboard if we popped into any
30975 kboard state.
30976 (push_frame_kboard): Rename to push_kboard.
30977 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30978 (read_avail_input): Read input from all terminals.
30979 (mark_kboards): Also mark Vkeyboard_translate_table.
30980 (kbd_buffer_store_event_hold): Simplify condition.
30981 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30982 (Vkeyboard_translate_table): Move to struct kboard.
30983 (init_kboard): Initialize Vkeyboard_translate_table.
30984 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30985 Vkeyboard_translate_table. Update doc strings. Update docs of
30986 local-function-key-map and function-key-map.
30987
30988 * terminal.c: New file.
30989
30990 * term.c: Include errno.h.
30991 (Vring_bell_function, device_list, initial_device)
30992 (next_device_id, ring_bell, update_begin, update_end)
30993 (set_terminal_window, cursor_to, raw_cursor_to)
30994 (clear_to_end, clear_frame, clear_end_of_line)
30995 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30996 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30997 (syms_of_term): Move their initialization to terminal.c.
30998 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30999 (Ftty_display_color_cells)
31000 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31001 (clear_tty_hooks, set_tty_hooks)
31002 (init_tty, maybe_fatal): New functions.
31003 (Ftty_type): Return nil if terminal is not on a tty instead of
31004 throwing an error. Doc update.
31005 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31006 Doc update. Initialize new subrs and variables.
31007 (delete_tty): Use terminal->deleted.
31008 (tty_set_terminal_modes): Rename from set_terminal_modes.
31009 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31010 (set_scroll_region): Rename to `tty_set_scroll_region'.
31011 (turn_on_insert): Rename to `tty_turn_on_insert'.
31012 (turn_off_insert): Rename to `tty_turn_off_insert'.
31013 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31014 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31015 (toggle_highligh): Rename to `tty_toggle_highlight'.
31016 (background_highlight): Rename to `tty_background_highlight'.
31017 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31018 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31019 (tty_set_scroll_region, tty_background_highlight)
31020 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31021 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31022 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31023 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31024 Add static modifier.
31025 (tty_reset_terminal_modes, tty_set_terminal_window)
31026 (tty_set_scroll_region, tty_background_highlight)
31027 (tty_highlight_if_desired, tty_cursor_to)
31028 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31029 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31030 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31031 renames.
31032
310332007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31034
31035 * keyboard.c: Qrtl is new.
31036 (parse_tool_bar_item): Handle :rtl keyword.
31037 (syms_of_keyboard): Intern :rtl keyword.
31038
31039 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31040
31041 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31042 so no Lisp code is executed.
31043 (file_for_image, find_rtl_image): New functions.
31044 (xg_get_image_for_pixmap): Use file_for_image.
31045 (update_frame_tool_bar): If direction is RTL, use RTL image if
31046 defined. Use Gtk stock images if defined.
31047
310482007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31049
31050 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31051 for nonexistent or zero-width glyph in composition glyph.
31052
310532007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31054
31055 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31056
31057 * xdisp.c (Finvisible_p): New function.
31058 (syms_of_xdisp): defsubr it.
31059
310602007-08-24 Juanma Barranquero <lekktu@gmail.com>
31061
31062 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31063 Doc fixes.
31064
310652007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31066
31067 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31068
310692007-08-24 Martin Rudalics <rudalics@gmx.at>
31070
31071 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31072 whether decoding has modified buffer contents.
31073
310742007-08-24 Jason Rumney <jasonr@gnu.org>
31075
31076 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31077 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31078 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31079 (init_svg_functions) [HAVE_NTGUI]: New function.
31080 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31081 (svg_load_image): Use them.
31082 (svg_load_image) [HAVE_NTGUI]: Implement background.
31083
310842007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31085
31086 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31087 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31088 (LIBX): Remove @RSVG_LIBS@.
31089 (LIBES): Add $(RSVG_LIBS).
31090
31091 * image.c (svg_load_image): Blend with specified background if exists.
31092 Use IMAGE_BACKGROUND. Add Mac OS Support.
31093
31094 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31095 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31096 Remove macros.
31097 [MAC_OSX] (socket_callback): Do nothing.
31098 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31099 ReceiveNextEvent.
31100 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31101 socket_callback.
31102 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31103
311042007-08-22 Glenn Morris <rgm@gnu.org>
31105
31106 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31107
311082007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31109
31110 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31111
31112 * image.c: Add support for SVG images. Some additional comments
31113 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31114 (svg_image_p): New function to test for SVG image.
31115 (svg_load): New function to load SVG image.
31116 (svg_load_image): New function, helper for svg_load.
31117 (Qsvg): New Lisp_object.
31118 (svg_keyword_index): New enum.
31119 (svg_format): New static `image_keyword' struct.
31120 (svg_type): New static `image_type' struct.
31121 (librsvg/rsvg.h): Include it.
31122
311232007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31124
31125 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31126
311272007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31128
31129 * lread.c (Qold_style_backquotes): New var.
31130 (syms_of_lread): Init and staticpro it.
31131 (load_warn_old_style_backquotes): New fun.
31132 (Fload): Use them to warn about old style backquotes.
31133 (end_of_file_error, Fload): Remove unused vars.
31134
31135 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31136
31137 * lread.c (Vold_style_backquotes): New var.
31138 (syms_of_lread): Init and export it to Elisp.
31139 (read1): Set it when we find an old-style (back)quote.
31140
311412007-08-22 Jason Rumney <jasonr@gnu.org>
31142
31143 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31144
311452007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31146
31147 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31148
311492007-08-19 Richard Stallman <rms@gnu.org>
31150
31151 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31152
311532007-08-19 Andreas Schwab <schwab@suse.de>
31154
31155 * alloc.c (pure): Round PURESIZE up.
31156
311572007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31158
31159 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31160 active frame.
31161
311622007-08-16 Richard Stallman <rms@gnu.org>
31163
31164 * eval.c (Fcommandp): Add parens to clarify.
31165
31166 * minibuf.c (Fall_completions): Use enum for type of table.
31167
31168 * emacs.c (USAGE2): Improve text.
31169
311702007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31171
31172 * term.c (tty_default_color_capabilities): Declare static
31173 variables in file scope, to avoid HPUX compiler problem.
31174
311752007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31176
31177 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31178 to gtk_toolbar_insert.
31179
311802007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31181
31182 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31183
31184 * insdel.c (reset_var_on_error): New fun.
31185 (signal_before_change, signal_after_change):
31186 Use it to reset (after|before)-change-functions to nil in case of error.
31187 Bind inhibit-modification-hooks to t.
31188 Don't bind (after|before)-change-functions to nil while they run.
31189
311902007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31191
31192 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31193 filling pixmap with stippled background.
31194
311952007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31196
31197 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31198 Don't use invisible frame as parent window for repositioning.
31199
312002007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31201
31202 * print.c (new_backquote_output): Rename from old_backquote_output.
31203 (print): Inverse its logic (according to its name) so as to match the
31204 behavior of new_backquote_flag in lread.c.
31205
312062007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31207
31208 * gmalloc.c (posix_memalign): New function.
31209
31210 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31211 ActivateControl/DeactivateControl here.
31212 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31213 frame-notice-user-settings is non-nil.
31214 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31215 for kEventParamFMFontStyle.
31216 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31217 mac_pass_command_to_system and mac_pass_control_to_system here.
31218 (XTread_socket): Call ActivateControl/DeactivateControl here.
31219 (XTread_socket) [TARGET_API_MAC_CARBON]:
31220 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31221 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31222 for window repositioning.
31223
312242007-08-08 Glenn Morris <rgm@gnu.org>
31225
31226 * Replace `iff' in doc-strings and comments.
31227
312282007-08-07 Chong Yidong <cyd@stupidchicken.com>
31229
31230 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31231
312322007-08-07 Martin Rudalics <rudalics@gmx.at>
31233
31234 * fileio.c (Finsert_file_contents): Run format-decode and
31235 after_insert_file_functions on entire buffer when REPLACE is
31236 non-nil and inhibit modification_hooks and point_motion_hooks.
31237 For consistency, run after_insert_file_functions iff something
31238 got inserted. Move signal_after_change and update_compositions
31239 after code running after_insert_file_functions. Make sure that
31240 undo_list doesn't record intermediate steps of the decoding process.
31241
312422007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31243
31244 * emacs.c (main)
31245 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31246 Call malloc_enable_thread on interactive startup.
31247
31248 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31249 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31250 [USE_PTHREAD]: Conditionalize with it.
31251 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31252 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31253 New functions.
31254
312552007-08-06 Chong Yidong <cyd@stupidchicken.com>
31256
31257 * xdisp.c (redisplay_window): When restoring original buffer
31258 position, make sure it is still valid.
31259
31260 * image.c (png_load): Ignore png-supplied background color.
31261
312622007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31263
31264 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31265 Use kCFAbsoluteTimeIntervalSince1970.
31266
31267 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31268 New variable.
31269 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31270 event loop should be quit.
31271 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31272 Quit dialog event loop if quit_dialog_event_loop is set.
31273
31274 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31275 (Selection): New typedef. Use instead of ScrapRef.
31276 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31277 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31278 (mac_clear_selection): Rename from clear_scrap.
31279 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31280 scrap_has_target_type. All uses changed.
31281 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31282 (mac_selection_has_target_p): New functions.
31283 (mac_put_selection_value): Rename from put_scrap_string.
31284 (mac_get_selection_value): Rename from get_scrap_string.
31285 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31286 (put_scrap_private_timestamp, scrap_has_target_type)
31287 (get_scrap_private_timestamp): Remove functions.
31288 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31289 (x_own_selection, x_get_local_selection):
31290 Use mac_valid_selection_value_p.
31291 (x_own_selection): Don't use put_scrap_private_timestamp.
31292 Record OWNERSHIP-INFO into Vselection_alist instead.
31293 (x_get_local_selection): Don't check type if request is local.
31294 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31295 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31296
312972007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31298
31299 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31300 add comment explaining why.
31301
313022007-08-03 Richard Stallman <rms@gnu.org>
31303
31304 * fileio.c (Fvisited_file_modtime): Use make_time.
31305
313062007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31307
31308 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31309 build.
31310
313112007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31312
31313 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31314
313152007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31316
31317 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31318
313192007-07-30 Richard Stallman <rms@gnu.org>
31320
31321 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31322
313232007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31324
31325 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31326
313272007-07-28 Nick Roberts <nickrob@snap.net.nz>
31328
31329 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31330 remote default-directory.
31331
31332 * buffer.c (mode-line-format): Update doc string.
31333
313342007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31335
31336 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31337 scroll bar gap.
31338 (x_scroll_bar_create): Set bar->fringe_extended_p.
31339 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31340 on frame edge. Check fringe background extension. Don't clear
31341 extended fringe background area.
31342
31343 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31344 (w32_fill_area): Enclose multiple statements with do ... while (0).
31345
31346 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31347 Extend fringe background to scroll bar gap.
31348 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31349 Set bar->fringe_extended_p.
31350 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31351 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31352 background extension. Don't clear extended fringe background area.
31353
31354 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31355 New member fringe_extended_p.
31356
313572007-07-25 Glenn Morris <rgm@gnu.org>
31358
31359 * Relicense all FSF files to GPLv3 or later.
31360
31361 * COPYING: Switch to GPLv3.
31362
313632007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31364
31365 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31366
31367 * data.c (Finteractive_form): Check for the presence of an
31368 `interactive-form' symbol property more thoroughly.
31369
31370 * data.c (Finteractive_form): Use an `interactive-form' property if
31371 present, analogous to the function-documentation property.
31372
313732007-07-24 Jason Rumney <jasonr@gnu.org>
31374
31375 * w32fns.c (x_real_positions): Get real position from OS instead of
31376 calculating it.
31377
313782007-07-23 Jason Rumney <jasonr@gnu.org>
31379
31380 * filelock.c (current_lock_owner): Allow for @ sign in username.
31381
313822007-07-22 Nick Roberts <nickrob@snap.net.nz>
31383
31384 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31385 remote default-directory.
31386
31387 * buffer.c (mode-line-format): Describe above case in doc string.
31388
313892007-07-20 Eli Zaretskii <eliz@gnu.org>
31390
31391 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31392 Define if not defined.
31393
313942007-07-18 Jason Rumney <jasonr@gnu.org>
31395
31396 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31397
313982007-07-18 Richard Stallman <rms@gnu.org>
31399
31400 * data.c (Fsetq_default): Doc fix.
31401
31402 * eval.c (Fsetq): Doc fix.
31403
314042007-07-18 Juanma Barranquero <lekktu@gmail.com>
31405
31406 * coding.c (Ffind_operation_coding_system):
31407 * eval.c (For, Fand): Doc fixes.
31408 Reported by Johan Bockgård.
31409
314102007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31411
31412 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31413
31414 * xterm.h: Declare x_ewmh_activate_frame.
31415
31416 * xterm.c (x_ewmh_activate_frame): New function.
31417 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31418
314192007-07-17 Martin Rudalics <rudalics@gmx.at>
31420
31421 * window.c (Fdisplay_buffer): If largest or LRU window is the
31422 only window, split it even if it is not eligible for splitting.
31423 This restores the original behavior broken by the 2007-07-15
31424 change.
31425
314262007-07-17 Glenn Morris <rgm@gnu.org>
31427
31428 * abbrev.c (abbrev_check_chars): New function.
31429 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31430 Call abbrev_check_chars to check abbrev characters are word
31431 constituents. Doc fix.
31432
314332007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31434
31435 * process.c (Fstart_process, Fmake_network_process)
31436 (read_process_output): Fix up last changes.
31437
314382007-07-16 Eli Zaretskii <eliz@gnu.org>
31439
31440 * makefile.w32-in (clean): Don't delete *~.
31441
314422007-07-16 Andreas Schwab <schwab@suse.de>
31443
31444 * window.c (Fdisplay_buffer): Use NILP.
31445 (Fset_window_scroll_bars): Likewise.
31446
314472007-07-15 Martin Rudalics <rudalics@gmx.at>
31448
31449 * window.c (window_min_size_2): New function.
31450 (window_min_size_1, size_window, Fdisplay_buffer)
31451 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31452 windows without mode- or header-lines when window-min-height is
31453 too small.
31454 (size_window): Reset nodelete_p after testing it, following an
31455 earlier note by Kim F. Storm.
31456 (display_buffer): Do not set split_height_threshold to twice the
31457 value of window_min_height to avoid changing the value of a
31458 customizable variable. Rather explicitly check whether the
31459 height of the window that shall be splitted is at least as large
31460 as split_height_threshold.
31461 (Fwindow_full_width_p): New defun.
31462 (syms_of_window): Defsubr it.
31463
31464 * window.h: Add EXFUN for Fwindow_full_width_p.
31465
314662007-07-14 Jason Rumney <jasonr@gnu.org>
31467
31468 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31469
314702007-07-14 Richard Stallman <rms@gnu.org>
31471
31472 * eval.c (maybe_call_debugger): New function.
31473 (find_handler_clause): Use maybe_call_debugger.
31474 Call it when the handler says `debug'.
31475 Eliminate DEBUGGER_VALUE_PTR.
31476 (Fsignal): Eliminate debugger_value.
31477 (Qdebug): New variable.
31478 (syms_of_eval): Initialize it.
31479
314802007-07-14 Juanma Barranquero <lekktu@gmail.com>
31481
31482 * eval.c (Fprogn):
31483 * keyboard.c (Ftrack_mouse):
31484 * print.c (Fwith_output_to_temp_buffer):
31485 * window.c (Fsave_window_excursion): Doc fix.
31486
314872007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31488
31489 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31490
314912007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31492
31493 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31494 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31495 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31496 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31497 Remove unused encoding_carryover.
31498 * process.c: Adjust all functions accordingly.
31499
315002007-07-12 Richard Stallman <rms@gnu.org>
31501
31502 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31503
315042007-07-11 Jason Rumney <jasonr@gnu.org>
31505
31506 * makefile.w32-in (LIBS): Include OLE32.
31507
31508 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31509 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31510
315112007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31512
31513 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31514 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31515 from a Lisp_Object into a bare pointer.
31516 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31517 Adjust the code correspondingly.
31518
31519 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31520
31521 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31522 (term_show_mouse_face): Remove unused var `j'.
31523 (handle_one_term_event): Remove unused vars `i' and `j'.
31524 Don't cast return value of ttyname since it's not necessary.
31525
315262007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31527
31528 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31529 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31530
31531 * fns.c (map_char_table): Use an array of int for `indices' rather than
31532 an array of Lisp_Objects (which are only ever integers anyway).
31533 (Fmap_char_table): Update caller.
31534 * lisp.h: Update prototype.
31535 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31536 * fontset.c (Ffontset_info):
31537 * casetab.c (set_case_table): Update callers.
31538
31539 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31540
31541 * keymap.c (struct accessible_keymaps_data)
31542 (struct where_is_internal_data): New structures.
31543 (accessible_keymaps_1, where_is_internal_1): Use them to change
31544 interface to adhere to the one used by map_keymap.
31545 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31546 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31547
31548 * keymap.h (map_keymap_function_t): More informative prototype.
31549
315502007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31551
31552 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31553 (looking_at_1): Don't change search_regs and last_thing_searched
31554 if `inhibit-changing-match-data' is non-nil.
31555 (string_match_1, search_buffer, set_search_regs): Likewise.
31556 (syms_of_search): Add Lisp level definition for
31557 `inhibit-changing-match-data' and set it to nil.
31558 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31559 start and end of the match, instead of using values in search_regs.
31560
315612007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31562
31563 * minibuf.c (Fcompleting_read): New value `confirm-only'
31564 for `require-match'.
31565
315662007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31567
31568 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31569 part of the 2007-06-27 change to syms_of_fileio.
31570
315712007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31572
31573 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31574 Check WINDOWP before using XWINDOW. Consolidate return statements.
31575
315762007-06-27 Richard Stallman <rms@gnu.org>
31577
31578 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31579
315802007-06-27 Juanma Barranquero <lekktu@gmail.com>
31581
31582 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31583
315842007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31585
31586 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31587 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31588 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31589 (_free_internal, memalign): Use them.
31590 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31591 Initialize to PTHREAD_MUTEX_INITIALIZER.
31592 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31593 (morecore_nolock): Rename from morecore. All uses changed.
31594 Use only nolock versions of internal allocation functions.
31595 (_malloc_internal_nolock, _realloc_internal_nolock)
31596 (_free_internal_nolock): New functions created from
31597 _malloc_internal, _realloc_internal, and _free_internal.
31598 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31599 Copy hook value to automatic variable before its use.
31600 (memalign): Copy hook value to automatic variable before its use.
31601
316022007-06-26 Kenichi Handa <handa@m17n.org>
31603
31604 * coding.c (Ffind_operation_coding_system): Docstring improved.
31605 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31606
316072007-06-25 David Kastrup <dak@gnu.org>
31608
31609 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31610 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31611 cater for additional parameter.
31612
31613 * keymap.h: Adjust number of parameters to `current-active-maps'.
31614
31615 * doc.c (Fsubstitute_command_keys): Adjust call of
31616 `current-active-maps'.
31617
316182007-06-25 David Kastrup <dak@gnu.org>
31619
31620 * callint.c (Fcall_interactively): Make the parsing of interactive
31621 specs somewhat more readable.
31622
316232007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31624
31625 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31626 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31627 if extended background has already been filled.
31628
316292007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31630
31631 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31632 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31633
31634 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31635 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31636 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31637 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31638 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31639 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31640 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31641 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31642 Run timers during dialog popup.
31643 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31644
316452007-06-21 Jason Rumney <jasonr@gnu.org>
31646
31647 * image.c (convert_mono_to_color_image): Swap fore and background.
31648
316492007-06-20 Jason Rumney <jasonr@gnu.org>
31650
31651 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31652 (w32_free_bdf_font): Unmap memory not handle.
31653
316542007-06-20 Sam Steingold <sds@gnu.org>
31655
31656 * gmalloc.c (__morecore): Fix the declaration to comply with the
31657 definition.
31658
316592007-06-20 Juanma Barranquero <lekktu@gmail.com>
31660
31661 * w32term.c (w32_delete_display): Remove leftover declaration.
31662 (w32_define_cursor, w32_initialize): Make static.
31663
31664 * w32.c (_wsa_errlist): Fix typo in error message.
31665 (init_environment): Ignore any environment variable from the
31666 registry having a null value.
31667
316682007-06-20 Glenn Morris <rgm@gnu.org>
31669
31670 * Makefile.in (LIBGIF): Default to -lgif.
31671
316722007-06-17 Jason Rumney <jasonr@gnu.org>
31673
31674 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31675 unicode strings.
31676
316772007-06-16 Juanma Barranquero <lekktu@gmail.com>
31678
31679 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31680 Fix typo in docstring.
31681
316822007-06-16 Eli Zaretskii <eliz@gnu.org>
31683
31684 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31685 and their keybindings.
31686
316872007-06-15 Chong Yidong <cyd@stupidchicken.com>
31688
31689 * composite.c (update_compositions): Fix last fix.
31690
316912007-06-14 Jason Rumney <jasonr@gnu.org>
31692
31693 * w32.c (get_process_times_fn): New function pointer.
31694 (globals_of_w32): Intialize it if present in kernel32.dll.
31695 (w32_get_internal_run_time): New function.
31696
31697 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31698
316992007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31700
31701 * composite.c (update_compositions): Check the validness of
31702 compositions.
31703
317042007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31705
31706 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31707 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31708
31709 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31710 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31711
31712 * macgui.h (USE_MAC_TOOLBAR): New define.
31713
31714 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31715 Return immediately unless popup is activated.
31716
31717 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31718 background to scroll bar gap.
31719 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31720 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31721 scroll bars on frame edge. Check fringe background extension.
31722 Don't clear extended fringe background area.
31723 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31724 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31725 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31726 [USE_MAC_TOOLBAR]: New macros.
31727 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31728 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31729 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31730 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31731 [USE_MAC_TOOLBAR]: New functions.
31732 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31733 manually if previous repositioning has failed.
31734 (mac_handle_keyboard_event): Use precomputed event kind.
31735 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31736 as tool bar item click. Handle mouse movement over tool bar items.
31737
31738 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31739 toolbar_win_gravity.
31740 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31741 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31742 Add externs.
31743
31744 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31745 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31746
317472007-06-14 Chong Yidong <cyd@stupidchicken.com>
31748
31749 * image.c (search_image_cache): Remove unused variable.
31750
317512007-06-13 Chong Yidong <cyd@stupidchicken.com>
31752
31753 * xfns.c, xmenu.c: Link to xaw3d if available.
31754
317552007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31756
31757 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31758 frame_foreground and frame_background.
31759
31760 * image.c (lookup_image): Save frame foreground and background colors.
31761 (search_image_cache): Check if saved and current frame colors match.
31762
317632007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31764
31765 * regex.c (regex_compile): Remove the `regnum' counter.
31766 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31767
317682007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31769
31770 * term.c: Include intervals.h to declare Fget_text_property.
31771
317722007-06-10 Jason Rumney <jasonr@gnu.org>
31773
31774 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31775
317762007-06-08 Juanma Barranquero <lekktu@gmail.com>
31777
31778 * callint.c (Fcall_interactively):
31779 * editfns.c (Fdelete_and_extract_region):
31780 * fileio.c (Fread_file_name):
31781 * fns.c (Fmapconcat):
31782 * keyboard.c (cmd_error_internal):
31783 * keymap.c (Fkey_description):
31784 * lread.c (openp):
31785 * minibuf.c (read_minibuf):
31786 * search.c (wordify):
31787 * sunfns.c (sel_read):
31788 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31789 * xfns.c (x_default_scroll_bar_color_parameter):
31790 * xmenu.c (menu_help_callback):
31791 * xselect.c (Fx_get_atom_name):
31792 * xterm.c (x_term_init): Use empty_unibyte_string.
31793
317942007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31795
31796 * alloc.c (init_strings): Initialize canonical empty strings.
31797 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31798 canonical empty string when the requested size is 0.
31799
31800 * emacs.c (empty_unibyte_string): Rename from empty_string.
31801 (empty_multibyte_string): New canonical empty string.
31802 (syms_of_emacs): Don't initialize empty_string.
31803
31804 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31805 string, if appropriate.
31806 (empty_unibyte_string, empty_multibyte_string): New externs.
31807 (empty_string): Remove extern.
31808
31809 * lread.c (syms_of_lread): Use empty_unibyte_string.
31810
318112007-06-07 Jason Rumney <jasonr@gnu.org>
31812
31813 * s/ms-w32.h: Don't define HAVE_TZNAME.
31814
31815 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31816
318172007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31818
31819 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31820
31821 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31822 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31823
31824 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31825 Don't call next handler.
31826 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31827 Remove argument. Install handler to application.
31828 (set_frame_menubar): Don't change deep_p.
31829 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31830 FRAME_OUTER_TO_INNER_DIFF_Y.
31831 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31832 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31833 [HAVE_DIALOGS]: New macros.
31834 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31835 Use them.
31836 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31837
31838 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31839 init_service_handler. All callers changed. Return OSStatus value.
31840
31841 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31842 All callers changed so as not to call SetPortWindowPort.
31843 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31844 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31845 mac_draw_string_common.
31846 (mac_draw_image_string_qd): Likewise.
31847 (mac_draw_string_common): Use them. Add INLINE.
31848 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31849 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31850 GetGlobalMouse.
31851 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31852 and FRAME_OUTER_TO_INNER_DIFF_Y.
31853 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31854 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31855 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31856 repositioning window to mac_handle_window_event.
31857 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31858 saving window location to mac_handle_window_event
31859 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31860 (install_menu_target_item_handler): Remove argument in extern.
31861 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31862 Also accept command events.
31863 (do_keystroke): New function created from XTread_socket.
31864 (init_command_handler): Remove functions.
31865 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31866 and save window location by kEventWindowShowing and kEventWindowHiding
31867 handlers here. Don't call next handler for window state change and
31868 focus events.
31869 (mac_handle_application_event, mac_handle_keyboard_event)
31870 [TARGET_API_MAC_CARBON]: New functions.
31871 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31872 kEventWindowShowing and kEventWindowHiding events. Move installation
31873 of mouse, font, text input and menu target item handlers to
31874 install_application_handler.
31875 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31876 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31877 New function.
31878 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31879 Register it.
31880 (XTread_socket) [TARGET_API_MAC_CARBON]:
31881 Consolidate SendEventToEventTarget calls.
31882 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31883 Move application activation handler to mac_handle_application_event.
31884 Move keyboard handler to mac_handle_keyboard_event.
31885 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31886 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31887 init_command_handler. Call install_application_handler.
31888
31889 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31890 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31891
318922007-06-07 Glenn Morris <rgm@gnu.org>
31893
31894 * emacs.c (main): Use `emacs-copyright' in --version output.
31895
318962007-06-06 Chong Yidong <cyd@stupidchicken.com>
31897
31898 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31899
319002007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31901
31902 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31903
31904 * macgui.h: Replace WindowPtr with WindowRef.
31905
31906 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31907 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31908 Replace ControlHandle with ControlRef.
31909 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31910
31911 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31912 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31913 Replace ControlHandle with ControlRef.
31914 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31915 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31916
31917 * macterm.h (struct scroll_bar): Rename member control_handle_low
31918 and control_handle_high to control_ref_low and control_ref_high.
31919 All uses changed.
31920 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31921 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31922 respectively. All uses changed.
31923 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31924 (install_window_handler, remove_window_handler): Replace WindowPtr
31925 with WindowRef in externs.
31926
319272007-06-05 Juanma Barranquero <lekktu@gmail.com>
31928
31929 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31930
319312007-06-03 Nick Roberts <nickrob@snap.net.nz>
31932
31933 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31934
31935 * frame.c (Fmouse_position, Fmouse_pixel_position):
31936 Condition on HAVE_GPM too.
31937
31938 * term.c (term_mouse_highlight): Remove unused variables.
31939 (Fterm_open_connection): Set gpm_zerobased to 1.
31940 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31941 Use zero based co-ordinates.
31942 (handle_one_term_event): Report a drag as mouse movement too.
31943
31944 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31945
319462007-06-03 Chong Yidong <cyd@stupidchicken.com>
31947
31948 * image.c (search_image_cache): New function. Require background
31949 color match if background color is unspecified in the image spec.
31950 (uncache_image, lookup_image): Use it.
31951
319522007-06-01 Juanma Barranquero <lekktu@gmail.com>
31953
31954 * window.c (Fshrink_window): Reflow docstring.
31955
319562007-06-02 Chong Yidong <cyd@stupidchicken.com>
31957
31958 * Version 22.1 released.
31959
319602007-06-01 Richard Stallman <rms@gnu.org>
31961
31962 * xfns.c (x_encode_text): Add GCPRO.
31963
319642007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31965
31966 * xfns.c (x_set_name_internal): Save encoded name before
31967 x_encode_text in case string data is relocated.
31968
319692007-05-31 Richard Stallman <rms@gnu.org>
31970
31971 * buffer.c (syms_of_buffer): Doc fix.
31972
319732007-05-30 Nick Roberts <nickrob@snap.net.nz>
31974
31975 * sysdep.c (init_sys_modes): Add rather than replace with
31976 O_NONBLOCK.
31977
31978 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31979 term_mouse_moveto.
31980
31981 * termhooks.h (term_mouse_moveto): New extern.
31982
31983 * term.c (mouse_face_window): Rename...
31984 (Qmouse_face_window): ...to this.
31985 (term_show_mouse_face, term_clear_mouse_face)
31986 (term_mouse_highlight): Use Qmouse_face_window.
31987 (term_mouse_moveto): New function.
31988 (term_mouse_position): Make it work.
31989 (syms_of_term): Uncomment assignment to mouse_position_hook.
31990 Staticpro Qmouse_face_window.
31991
319922007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31993
31994 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31995 around current_column call.
31996
319972007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31998
31999 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32000 * xdisp.c (next_element_from_buffer):
32001 * window.c (delete_window):
32002 * term.c (term_mouse_highlight):
32003 * msdos.c (getdefdir):
32004 * macterm.c (mac_create_bitmap_from_bitmap_data)
32005 (init_font_name_table):
32006 * fns.c (Fsxhash):
32007 * data.c (Fmake_local_variable):
32008 * ccl.c (ccl_driver): Likewise.
32009
320102007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32011
32012 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32013 Call mac_wakeup_from_rne on window size change.
32014
320152007-05-25 Chong Yidong <cyd@stupidchicken.com>
32016
32017 * image.c (uncache_image): Fix typo.
32018
320192007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32020
32021 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32022
320232007-05-22 Richard Stallman <rms@gnu.org>
32024
32025 * xterm.c (x_connection_closed): Remove NO_RETURN.
32026
320272007-05-22 Martin Rudalics <rudalics@gmx.at>
32028
32029 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32030
320312007-05-21 Chong Yidong <cyd@stupidchicken.com>
32032
32033 * image.c (uncache_image): New function.
32034 (Fimage_refresh): New function.
32035
320362007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32037
32038 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32039
320402007-05-20 Nick Roberts <nickrob@snap.net.nz>
32041
32042 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32043 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32044
320452007-05-20 Nick Roberts <nickrob@snap.net.nz>
32046
32047 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32048 conditional on [HAVE_GPM_H].
32049
320502007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32051
32052 * syntax.c (skip_chars): Update syntax-table only after we checked that
32053 the new location is valid.
32054
320552007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32056
32057 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32058 mac_get_window_bounds.
32059
320602007-05-20 Nick Roberts <nickrob@snap.net.nz>
32061
32062 * Makefile.in (LIBGPM): Allow it to be set from configure.
32063 If set then link Emacs with it.
32064
32065 * config.in: Regenerate.
32066
32067 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32068 New externs.
32069
32070 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32071 Include gpm.h.
32072 (handle_one_term_event, term_gpm): New externs.
32073
32074 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32075 and allow it to be interrupted by SIGIO.
32076
32077 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32078 (wait_reading_process_output): Wait on gpm_fd too.
32079 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32080 (add_gpm_wait_descriptor_called_flag): New variable.
32081 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32082
32083 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32084 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32085 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32086 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32087 (make_lispy_event): Add case GPM_CLICK_EVENT.
32088 (read_avail_input): Handle mouse input.
32089
32090 * term.c (write_glyphs_with_face): New function.
32091 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32092 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32093 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32094 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32095 (last_mouse_x, last_mouse_y): New variables.
32096 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32097 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32098 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32099 (Fterm_close_connection): New functions.
32100 (term_init): Initialise mouse_face_window.
32101
321022007-05-19 Chong Yidong <cyd@stupidchicken.com>
32103
32104 * xdisp.c (redisplay_window): If first window line is a
32105 continuation line, recompute the new window start instead of
32106 recentering.
32107
321082007-05-18 Glenn Morris <rgm@gnu.org>
32109
32110 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32111 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32112
321132007-05-17 Glenn Morris <rgm@gnu.org>
32114
32115 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32116
321172007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32118
32119 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32120 dead key repeat and up events.
32121
321222007-05-14 Chong Yidong <cyd@stupidchicken.com>
32123
32124 * image.c (pbm_load): Check image size for monochrome pbm.
32125
321262007-05-13 Chong Yidong <cyd@stupidchicken.com>
32127
32128 * xterm.c (XTread_socket): Revert last change.
32129
321302007-05-12 Chong Yidong <cyd@stupidchicken.com>
32131
32132 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32133
32134 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32135
321362007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32137
32138 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32139 mixup (YAILOM).
32140
321412007-05-07 Andreas Schwab <schwab@suse.de>
32142
32143 * keymap.c (Flookup_key): Fix typo in last change.
32144
321452007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32146
32147 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32148 mapping for unibyte strings.
32149
321502007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32151
32152 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32153 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32154
321552007-04-29 Richard Stallman <rms@gnu.org>
32156
32157 * insdel.c (replace_range): For undo, record insertion first.
32158
321592007-04-29 Andreas Schwab <schwab@suse.de>
32160
32161 * lisp.h (VECSIZE): Use OFFSETOF.
32162
321632007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32164
32165 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32166 disabled lines.
32167
321682007-04-28 Richard Stallman <rms@gnu.org>
32169
32170 * lread.c (read_escape): In a string, \s is always space.
32171
321722007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32173
32174 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32175
32176 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32177 submenu for menu bar items.
32178
32179See ChangeLog.10 for earlier changes.
32180
32181;; Local Variables:
32182;; coding: utf-8
aac0c6e3
MR
32183;; End:
32184
73b0cd50 32185 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
32186
32187 This file is part of GNU Emacs.
32188
32189 GNU Emacs is free software: you can redistribute it and/or modify
32190 it under the terms of the GNU General Public License as published by
32191 the Free Software Foundation, either version 3 of the License, or
32192 (at your option) any later version.
32193
32194 GNU Emacs is distributed in the hope that it will be useful,
32195 but WITHOUT ANY WARRANTY; without even the implied warranty of
32196 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32197 GNU General Public License for more details.
32198
32199 You should have received a copy of the GNU General Public License
32200 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.