* lwlib/xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dfe3c90f
KH
12010-07-26 Kenichi Handa <handa@m17n.org>
2
3 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
4 number of glyphs gets smaller than the original length.
5
7d383292
JB
62010-07-26 Juanma Barranquero <lekktu@gmail.com>
7
8 * lread.c (unreadpure, mapatoms_1): Make static.
9
da31e629
JB
102010-07-25 Juanma Barranquero <lekktu@gmail.com>
11
12 * terminfo.c (tparam): Fix prototype of tparm.
13
7bfa6d77
AS
142010-07-25 Andreas Schwab <schwab@linux-m68k.org>
15
dcc19aac
AS
16 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
17 find start of text segment.
18 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
19 is defined.
20
7bfa6d77
AS
21 * callproc.c (set_initial_environment): Avoid unbalanced braces.
22
63f9a672
KB
232010-07-25 Ken Brown <kbrown@cornell.edu>
24
25 * vm-limit.c (check_memory_limits): Fix previous change;
26 accidentally reverted an earlier change.
27
24933075
KB
282010-07-25 Ken Brown <kbrown@cornell.edu>
29
30 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
31 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
32
361358ea
JB
332010-07-25 Juanma Barranquero <lekktu@gmail.com>
34
35 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
36 * dired.c (opendir, readdir): Fix prototypes.
37 * editfns.c (w32_get_internal_run_time): Fix prototypes.
38 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
39 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
40 (telldir): Remove declaration.
41 * ralloc.c (real_morecore, __morecore): Fix prototypes.
42 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
43 * syssignal.h (strsignal): Fix prototype.
44 * term.c (tparam): Fix prototype.
45 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
46 (term_get_fkeys): Set inside "#ifndef DOS_NT".
47 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
48 and __morecore.
49 * w32gui.h (XParseGeometry): Fix prototype.
50 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
51 * w32term.c (my_set_focus): Declare inside #if 0.
52 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
53 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
54 (drain_message_queue, get_next_msg, post_msg, parse_button)
55 (ClipboardSequence_Proc): Fix prototypes.
56 (wait_for_sync): Remove declaration.
57
630b9592
JB
582010-07-24 Juanma Barranquero <lekktu@gmail.com>
59
60 * w32fns.c (w32_to_x_color): Remove, unused.
61
6a0d6611
AS
622010-07-24 Andreas Schwab <schwab@linux-m68k.org>
63
64 * lisp.h: Remove leftover P_.
65
4e8608ff
DN
662010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
67
68 * ecrt0.c, unexalpha.c: Remove files, unused.
69
c8197983
AS
702010-07-24 Andreas Schwab <schwab@linux-m68k.org>
71
72 * cmds.c (internal_self_insert): Make static.
73 * lisp.h (internal_self_insert): Remove declaration.
74
97b372d7
JB
752010-07-23 Juanma Barranquero <lekktu@gmail.com>
76
33ac0414
JB
77 * alloc.c (free_float):
78 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
79 * frame.c (delete_frame_handler):
80 * ralloc.c (reorder_bloc):
81 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
82 Remove unused static functions.
83
94da8397
JB
84 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
85 it is called only from NS code.
86
2e6c8532
JB
87 * w32term.c (my_set_focus): #ifdef away; it is called only from
88 "#ifdef 0" code.
89
97b372d7
JB
90 * w32fns.c (x_edge_detection):
91 * xfaces.c (may_use_scalable_font_p):
92 Remove obsolete static declarations.
93
7c3320d8
JB
942010-07-20 Juanma Barranquero <lekktu@gmail.com>
95
96 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
97 (emacs_blocked_realloc, uninterrupt_malloc):
98 * fringe.c (w32_reset_fringes):
99 * image.c (convert_mono_to_color_image, lookup_rgb_color)
100 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
101 * sound.c (be2hs, do_play_sound):
102 * vm-limit.c (get_lim_data, ret_lim_data):
103 * w32term.c (x_free_frame_resources):
104 * xfaces.c (x_create_gc, x_free_gc):
105 Convert definitions to standard C.
106
d5273788
SM
1072010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
108
109 * eval.c (Feval, Ffuncall): Use the new names.
110
111 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
112 (DEFUN): Add braces around the union initialisation and use ## to
113 specify the right union alternative and avoid a cast.
114
8d16a259
JB
1152010-07-18 Juanma Barranquero <lekktu@gmail.com>
116
117 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
118
3b8eff32
CY
1192010-07-17 Chong Yidong <cyd@stupidchicken.com>
120
121 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
122
499322ce
J
1232010-07-17 Jan Djärv <jan.h.d@swipnet.se>
124
125 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
126 is related to the menu bar (Bug#6499).
a628ad9d 127 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 128
f6003da5 1292010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
130
131 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
132
133 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
134
135 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
136 i.e. don't put back ButtonRelease (Bug#6608).
137
138 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
139 instead of Window. Call xg_event_is_for_menubar when
140 USE_GTK (Bug#6499).
141
142 * gtkutil.h (xg_event_is_for_menubar): Declare.
143
144 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
145
f6003da5 1462010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
147
148 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
149 when it's the same as the old foreground. (Bug#6609)
150
23243f29
J
1512010-07-16 Jan Djärv <jan.h.d@swipnet.se>
152
153 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
154 widget is non-null (Bug#6645).
155
2b23d2a6
AS
1562010-07-15 Andreas Schwab <schwab@linux-m68k.org>
157
01b564ff
AS
158 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
159 Convert old-style definition.
160
2b23d2a6
AS
161 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
162 timestamp argument.
163
c4affd2c
EZ
1642010-07-15 Eli Zaretskii <eliz@gnu.org>
165
166 * fringe.c (update_window_fringes): Restore mistakenly reverted
167 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
168
cf28cebc
J
1692010-07-14 Jan Djärv <jan.h.d@swipnet.se>
170
171 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
172 (SET_SAVED_KEY_EVENT): Remove (not used).
173 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
174 remove size parameter.
175 (handle_one_xevent): Check popup_activated () for menu for Xt also.
176 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
177 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
178 ButtonRelease.
6b2c4bd9
J
179 (x_set_window_size_1): scroll_bar_actual_width is always
180 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
181
182 * xdisp.c (pending_menu_activation): Remove extern declaration.
183 (prepare_menu_bars): Remove setting of pending_menu_activation.
184
185 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
186 (x_activate_menubar): Set popup_activated_flag for Xt also.
187 Remove setting of pending_menu_activation.
cf28cebc
J
188 (set_frame_menubar): Remove check of pending_menu_activation.
189 Declare menubar_size before code. Correct spelling in comment.
190
f6c1c771
KH
1912010-07-14 Kenichi Handa <handa@m17n.org>
192
193 * font.c (font_open_entity): Cancel previous change.
194 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
195
20477505
EZ
1962010-07-13 Eli Zaretskii <eliz@gnu.org>
197
77defa9a
EZ
198 Remove subprocesses #ifdefs.
199 * process.c <inhibit_sentinels>: Move to the common part.
200 (Fwaiting_for_user_input_p): Move to the common part; return nil
201 if async subprocesses aren't supported.
202 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
203 MS-DOS. Remove "#ifdef subprocesses".
204 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
205 (gettimeofday): Remove "#ifdef subprocesses".
206 (wait_without_blocking): Remove function.
207 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
208 Remove "#ifdef subprocesses".
209 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
210 compiled on MS-DOS.
211 * callproc.c (Fcall_process) [!MSDOS]: Don't call
212 wait_for_termination on MS-DOS.
213 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
214 initialization of inhibit_sentinels.
215 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
216 subprocesses" conditional.
217 * callproc.c (Fcall_process) [!subprocesses]: Don't call
218 wait_for_termination, since `buffer' cannot be an integer when
219 async subprocesses are not supported
220 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
221 for ifdefing away the call to Fprocess_status.
222
20477505
EZ
223 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
224 away the entire body of the function.
225
b3ffc17c
DN
2262010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
227
01faa934
DN
228 Remove subprocesses #ifdefs from term.c.
229 * process.c (add_keyboard_wait_descriptor)
230 (delete_keyboard_wait_descriptor): Move to common section, do
231 nothing when subprocesses is not defined.
a628ad9d
JB
232 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
233 Remove subprocesses #ifdefs.
01faa934 234
b3ffc17c
DN
235 Convert maybe_fatal to standard C.
236 * lisp.h (verror): Declare.
237 * eval.c (verror): New function containing the code from ...
238 (error): ... this. Call verror.
239 * term.c (vfatal): New function containing the code from ...
240 (fatal): ... this. Call vfatal.
241 (maybe_fatal): Convert to standard C, use variable number of
242 arguments. Declare as non-return.
243 (init_tty): Fix maybe_fatal call.
244
0521f580
DN
2452010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
246
247 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
248 (_scroll_bar_note_movement): Convert definitions to standard C.
249 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
250 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
251
ebd15611
DN
2522010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
253
254 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
255 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
256 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
257 (xaw_jump_callback, xaw_scroll_callback)
258 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
259 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
260 definitions to standard C.
261 * xmenu.c (menubar_id_to_frame, popup_get_selection)
262 (popup_activate_callback, popup_deactivate_callback)
263 (menu_highlight_callback, menubar_selection_callback)
264 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
265 (free_frame_menubar, popup_selection_callback, as)
266 (create_and_show_popup_menu, dialog_selection_callback)
267 (create_and_show_dialog):
268 * xfns.c (hack_wm_protocols, x_window):
269 * xfaces.c (x_update_menu_appearance):
270 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
271 (char_to_pixel_size, round_size_to_char, get_wm_shell)
272 (set_frame_size, update_wm_hints, setup_frame_gcs)
273 (update_various_frame_slots, update_from_various_frame_slots)
274 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
275 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
276 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
277
de06a2dd
AS
2782010-07-12 Andreas Schwab <schwab@linux-m68k.org>
279
a628ad9d 280 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 281
fc549af9
EZ
2822010-07-12 Eli Zaretskii <eliz@gnu.org>
283
284 * process.c (setup_process_coding_systems): Move to the part
285 shared by non-subprocesses systems, and make its body empty when
286 subprocesses is not defined.
287 (close_process_descs): Move to the part shared by non-subprocesses
288 systems.
1408902e
EZ
289 (wait_reading_process_output) [!subprocesses]: Convert arg list to
290 ANSI C.
fc549af9 291
d5a3eaaf
AS
2922010-07-12 Andreas Schwab <schwab@linux-m68k.org>
293
294 * editfns.c (transpose_markers): Convert old-style definition.
295 * emacs.c (abort, shut_down_emacs, fixup_locale)
296 (synchronize_system_time_locale)
297 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
298 * floatfns.c (extract_float, matherr, init_floatfns)
299 (syms_of_floatfns): Likewise.
300 * fns.c (make_hash_table): Likewise.
301 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
302 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
303 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
304 (ftfont_variation_glyphs): Likewise.
305 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
306 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
307 * lread.c (read_filtered_event): Likewise.
308 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
309 * process.c (wait_reading_process_output): Likewise.
310 * scroll.c (do_line_insertion_deletion_costs): Likewise.
311 * search.c (search_buffer, boyer_moore): Likewise.
312 * syntax.c (scan_sexps_forward): Likewise.
313 * xdisp.c (try_scrolling): Likewise.
314 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
315 (face_at_string_position): Likewise.
316 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
317 * xselect.c (x_get_window_property, receive_incremental_selection)
318 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
319 Likewise.
320 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
321
6f704c76
DN
3222010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
323
ded80a25
DN
324 * callproc.c (child_setup): Remove subprocesses conditional.
325 Remove code dealing with SET_EMACS_PRIORITY, unused.
326
49d937f4 327 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
328 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
329
330 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
331 (__do_global_dtors, __main): Use void in definition.
332 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
333 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
334 the only users from ...
335 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
336 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
337 (HAVE_VOLATILE): Remove, unused.
338
6f704c76
DN
339 Convert more function definitions to standard C.
340 * xdisp.c (window_box_edges, handle_single_display_spec)
341 (display_string): Convert definition to standard C.
342 * scroll.c (do_direct_scrolling, scrolling_1):
343 * dispnew.c (allocate_matrices_for_frame_redisplay)
344 (mirrored_line_dance):
345 * coding.c (code_convert_string):
346 * charset.c (map_charset_chars):
347 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
348 (Fregister_ccl_program, Fregister_code_conversion_map):
349 * keyboard.c (kbd_buffer_nr_stored): Likewise.
350 (head_table): Make static and const.
351
e6cfa7c3
AS
3522010-07-12 Andreas Schwab <schwab@linux-m68k.org>
353
354 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
355 (PROFILING_LDFLAGS): Set from substitution.
356 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
357 CFLAGS last.
358
892dd565
KH
3592010-07-12 Kenichi Handa <handa@m17n.org>
360
6f2cdcd1
KH
361 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
362 (shortlisp): Likewise.
363
892dd565
KH
364 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
365
366 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
367 of FONT_ENTITY_INDEX.
368 (Ffont_get): If KEY is :otf and the font-object doesn't have the
369 property, get the property value dynamically.
370 (Ffont_put): Accept font-entity and font-object too.
371 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
372 return value changed.
373 (syms_of_font): Adjusted for the above change.
374
ae96d47a
AS
3752010-07-11 Andreas Schwab <schwab@linux-m68k.org>
376
c8fc18ee
AS
377 * blockinput.h: Remove obsolete comment.
378
89887d67
AS
379 * lisp.h: Include <stddef.h>.
380 (OFFSETOF): Don't define.
381 (VECSIZE): Use offsetof instead of OFFSETOF.
382 (PSEUDOVECSIZE): Likewise.
383 * process.c (conv_sockaddr_to_lisp): Likewise.
384 * alloc.c: Don't include <stddef.h>.
385 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
386
ae96d47a
AS
387 * process.c: Remove obsolete comment.
388
635c0aa1
CY
3892010-07-11 Chong Yidong <cyd@stupidchicken.com>
390
391 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
392
a64df650
AS
3932010-07-11 Andreas Schwab <schwab@linux-m68k.org>
394
8966b757
AS
395 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
396 index, rindex.
397 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
398 * editfns.c (Fuser_full_name, Fformat): Likewise.
399 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
400 * fileio.c (Ffile_symlink_p): Likewise.
401 * filelock.c (current_lock_owner): Likewise.
402 * font.c (font_parse_name, font_parse_family_registry): Likewise.
403 * fontset.c (fontset_pattern_regexp): Likewise.
404 * lread.c (read1): Likewise.
405 * sysdep.c (init_system_name): Likewise.
406 * xfns.c (select_visual): Likewise.
407 * s/hpux10-20.h (index, rindex): Don't define.
408 * s/ms-w32.h (index): Likewise.
409 * s/usg5-4.h: Likewise.
410
cf237e27
AS
411 * callproc.c (relocate_fd): Use F_DUPFD if defined.
412
a8fe7202
AS
413 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
414 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
415 (egetenv): Likewise.
416 * doprnt.c (doprnt): Likewise.
417 * editfns.c (set_time_zone_rule, format2): Likewise.
418 * emacs.c (decode_env_path): Likewise.
419 * eval.c (signal_error, error): Likewise.
420 * insdel.c (replace_range_2): Likewise.
421 * keyboard.c (cmd_error_internal): Likewise.
422 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
423 * print.c (write_string, write_string_1, print_error_message):
424 Likewise.
425 * vm-limit.c (warn_function, memory_warnings): Likewise.
426 * xdisp.c (message1, message1_nolog, message_with_string)
427 (vmessage, message, message_nolog): Likewise.
428 * emacs.c: Remove duplicate declaration.
429 * keyboard.h: Likewise.
430 * lisp.h: Update prototypes.
431
bb8e180f
AS
432 * eval.c: Fix indentation problem.
433
83380e65
AS
434 * keyboard.c: Include "process.h"
435
a64df650
AS
436 * eval.c: Remove obsolete noinline declaration.
437 * fns.c: Likewise.
438
6a8033e1
KR
4392010-07-11 Ken Raeburn <raeburn@raeburn.org>
440
441 * doprnt.c (doprnt): Take a va_list argument instead of count and
442 pointer.
443 * eval.c (error): Change to a standard-C variadic function.
444 * xdisp.c (vmessage): Renamed from message, made static, and
445 changed to take a va_list argument.
446 (message): New variadic wrapper.
447 (message_nolog): Now a variadic function, calling vmessage.
448 * lisp.h: Include stdarg.h for va_list.
449 (doprnt, error, message, message_nolog): Decls updated.
450
462aa963
EZ
4512010-07-11 Eli Zaretskii <eliz@gnu.org>
452
453 * process.c (syms_of_process) <delete-exited-processes>: Define
454 even if !subprocesses.
455 (delete_exited_processes): Ditto.
456
457 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
458 (delete_exited_processes): Don't define.
459
48104462
CY
4602010-07-10 Chong Yidong <cyd@stupidchicken.com>
461
462 * frame.c (make_frame): Initialize menu_bar_lines and
463 tool_bar_lines members.
464 (make_initial_frame, make_terminal_frame): Initialize
465 menu_bar_lines using value of menu-bar-mode.
466
467 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
468
f388c88a
EZ
4692010-07-10 Eli Zaretskii <eliz@gnu.org>
470
471 * process.c: Reshuffle #include's. Condition some of the global
472 and static variables on `subprocesses'.
473 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
474 Leave only one implementation.
475 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
476 (kill_buffer_processes, Flist_system_processes)
477 (Fprocess_attributes, init_process, syms_of_process): Unify the
478 implementations for with subprocesses and without them.
479
723f5a07
J
4802010-07-09 Jan Djärv <jan.h.d@swipnet.se>
481
482 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
483 correct size for Motif.
484 (free_frame_menubar): Call x_set_window_size to update frame size.
485
486 * xfns.c (x_window): Set borderWidth to 0 for pane and
487 EmacsFrame. Frame size calculation is wrong otherwise.
488
2536a4b7
MA
4892010-07-09 Michael Albinus <michael.albinus@gmx.de>
490
491 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
492 allows to suppress errors when polling in Emacs' main loop.
493 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
494 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
495 (Fdbus_method_error_internal, Fdbus_send_signal)
496 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
497 (Fdbus_register_method): Use it. (Bug#6579)
498
5842a27b
DN
4992010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
500
501 * alloc.c: Convert DEFUNs to standard C.
502 * buffer.c:
503 * bytecode.c:
504 * callint.c:
505 * callproc.c:
506 * casefiddle.c:
507 * casetab.c:
508 * category.c:
509 * character.c:
510 * charset.c:
511 * chartab.c:
512 * cmds.c:
513 * coding.c:
514 * composite.c:
515 * data.c:
516 * dbusbind.c:
517 * dired.c:
518 * dispnew.c:
519 * doc.c:
520 * dosfns.c:
521 * editfns.c:
522 * emacs.c:
523 * eval.c:
524 * fileio.c:
525 * filelock.c:
526 * floatfns.c:
527 * fns.c:
528 * font.c:
529 * fontset.c:
530 * frame.c:
531 * fringe.c:
532 * image.c:
533 * indent.c:
534 * insdel.c:
535 * keyboard.c:
536 * keymap.c:
537 * lread.c:
538 * macros.c:
539 * marker.c:
540 * menu.c:
541 * minibuf.c:
542 * msdos.c:
543 * nsfns.m:
544 * nsmenu.m:
545 * nsselect.m:
546 * print.c:
547 * process.c:
548 * search.c:
549 * sound.c:
550 * syntax.c:
551 * term.c:
552 * terminal.c:
553 * textprop.c:
554 * undo.c:
555 * w16select.c:
556 * w32console.c:
557 * w32fns.c:
558 * w32font.c:
559 * w32menu.c:
560 * w32proc.c:
561 * w32select.c:
562 * window.c:
563 * xdisp.c:
564 * xfaces.c:
565 * xfns.c:
566 * xmenu.c:
567 * xselect.c:
568 * xsettings.c:
569 * xsmfns.c: Likewise.
570
d568829b
EZ
5712010-07-08 Eli Zaretskii <eliz@gnu.org>
572
573 * process.c (kbd_is_on_hold, hold_keyboard_input)
574 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
575
52214050
J
5762010-07-08 Jan Djärv <jan.h.d@swipnet.se>
577
578 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
579 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
580 unless USE_LUCID.
581
313d9eb2
DN
5822010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
583
a628ad9d
JB
584 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
585 declaration.
d8825aa3 586
295d0d8f
DN
587 Clean up include guards.
588 * tparam.c: Remove include guards for config.h, string.h and code
589 that assumes #ifndef emacs.
590 * termcap.c:
591 * unexalpha.c:
592 * sysdep.c:
593 * filemode.c:
594 * filelock.c:
595 * bidi.c: Likewise.
596
49d9e6b0
DN
597 Remove prefix-args.c
598 * prefix-args.c: Remove file.
599 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
600 * Makefile.in (temacs${EXEEXT}): Remove references to
601 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
602 (mostlyclean): Remove reference to prefix-args.
603 (prefix-args): Remove.
604
313d9eb2
DN
605 Simplify cstart_of_data, start_of_code and related code.
606 * mem-limits.h: Remove !emacs and _LIBC conditional code.
607 (start_of_data): Merge into start_of_data function.
608 * sysdep.c (start_of_text): Remove. Move simplified versions of
609 it in the only users: unexaix.c and unexec.c.
610 (read_input_waiting): Remove local declaration of quit_char.
611 (start, etext): Remove declarations.
612 (start_of_data): Merge with the version in mem-limits.h and move
613 to vm-limits.c.
614 * vm-limit.c (start_of_data): Merged and simplified version of the
615 code formerly in mem-limits.h and sysdep.c.
616 * unexec.c (start): New declaration, moved from sysdep.c.
617 (start_of_text): Simplified version of the code formerly in sysdep.c.
618 * unexaix.c (start_of_text): Simplified version of the code
619 formerly in sysdep.c.
620 * m/alpha.h (HAVE_TEXT_START): Remove.
621 (TEXT_START): Move ...
622 * unexalpha.c (TEXT_START): ... here.
623 * s/hpux10-20.h (TEXT_START): Remove.
624 * s/darwin.h (TEXT_START):
625 * m/mips.h (TEXT_START):
626 * m/macppc.h (HAVE_TEXT_START):
627 * m/m68k.h (TEXT_START):
628 * m/iris4d.h (TEXT_START):
629 * m/intel386.h (TEXT_START):
630 * m/ibmrs6000.h (TEXT_START):
631 * m/ia64.h (HAVE_TEXT_START):
632 * s/msdos.h (TEXT_START): Likewise.
633
72af86bd
AS
6342010-07-07 Andreas Schwab <schwab@linux-m68k.org>
635
636 * alloc.c (overrun_check_malloc, overrun_check_realloc)
637 (overrun_check_free, xstrdup, allocate_string)
638 (allocate_string_data, compact_small_strings, Fmake_string)
639 (make_unibyte_string, make_multibyte_string)
640 (make_string_from_bytes, make_specified_string, make_float)
641 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
642 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
643 memcpy, memmove, memset, memcmp.
644 * atimer.c (start_atimer, set_alarm): Likewise.
645 * buffer.c (clone_per_buffer_values, report_overlay_modification)
646 (mmap_realloc, init_buffer_once): Likewise.
647 * callint.c (Fcall_interactively): Likewise.
648 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
649 (getenv_internal_1): Likewise.
650 * casefiddle.c (casify_object): Likewise.
651 * ccl.c (ccl_driver): Likewise.
652 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
653 * charset.c (load_charset_map_from_file)
654 (load_charset_map_from_file, load_charset_map_from_vector)
655 (Fdefine_charset_internal): Likewise.
656 * cm.c (Wcm_clear): Likewise.
657 * coding.c (decode_eol, decode_coding_object)
658 (Fset_coding_system_priority, make_subsidiaries): Likewise.
659 * data.c (Faset): Likewise.
660 * dired.c (directory_files_internal, file_name_completion_stat):
661 Likewise.
662 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
663 (clear_glyph_row, copy_row_except_pointers)
664 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
665 (save_current_matrix, restore_current_matrix)
666 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
667 (mirror_line_dance, scrolling_window): Likewise.
668 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
669 Likewise.
670 * doprnt.c (doprnt): Likewise.
671 * editfns.c (Fuser_full_name, make_buffer_string_both)
672 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
673 * emacs.c (sort_args): Likewise.
674 * eval.c (Fapply, Ffuncall): Likewise.
675 * fileio.c (Ffile_name_directory, make_temp_name)
676 (Fexpand_file_name, search_embedded_absfilename)
677 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
678 (auto_save_error): Likewise.
679 * fns.c (Fstring_equal, Fcopy_sequence, concat)
680 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
681 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
682 (Fmake_hash_table): Likewise.
683 * fringe.c (Fdefine_fringe_bitmap): Likewise.
684 * ftfont.c (ftfont_text_extents): Likewise.
685 * getloadavg.c (getloadavg): Likewise.
686 * image.c (define_image_type, make_image, make_image_cache)
687 (x_create_x_image_and_pixmap, xbm_image_p)
688 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
689 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
690 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
691 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
692 (tiff_image_p, tiff_read_from_memory, gif_image_p)
693 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
694 Likewise.
695 * indent.c (scan_for_column, compute_motion): Likewise.
696 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
697 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
698 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
699 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
700 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
701 (store_user_signal_events, menu_bar_items, tool_bar_items)
702 (process_tool_bar_item, append_tool_bar_item)
703 (read_char_minibuf_menu_prompt, read_key_sequence)
704 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
705 Likewise.
706 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
707 Likewise.
708 * lisp.h (STRING_COPYIN): Likewise.
709 * lread.c (Fload, read1, oblookup): Likewise.
710 * msdos.c (Frecent_doskeys): Likewise.
711 * nsfns.m (Fx_create_frame): Likewise.
712 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
713 Likewise.
714 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
715 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
716 Likewise.
717 * nsmenu.m (ns_update_menubar): Likewise.
718 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
719 * print.c (print_unwind, printchar, strout, print_string)
720 (print_error_message): Likewise.
721 * process.c (conv_lisp_to_sockaddr, set_socket_option)
722 (Fmake_network_process, Fnetwork_interface_list)
723 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
724 (init_process): Likewise.
725 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
726 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
727 Likewise.
728 * scroll.c (do_scrolling, do_direct_scrolling)
729 (scrolling_max_lines_saved): Likewise.
730 * search.c (search_buffer, wordify, Freplace_match): Likewise.
731 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
732 * syntax.c (skip_chars, skip_syntaxes): Likewise.
733 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
734 (emacs_set_tty): Likewise.
735 * term.c (encode_terminal_code, calculate_costs)
736 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
737 Likewise.
738 * termcap.c (tgetst1, gobble_line): Likewise.
739 * termhooks.h (EVENT_INIT): Likewise.
740 * tparam.c (tparam1): Likewise.
741 * unexalpha.c (unexec): Likewise.
742 * unexec.c (write_segment): Likewise.
743 * unexmacosx.c (unexec_write_zero): Likewise.
744 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
745 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
746 * w32font.c (w32font_list_family, w32font_text_extents)
747 (w32font_list_internal, w32font_match_internal)
748 (w32font_open_internal, compute_metrics, Fx_select_font):
749 Likewise.
750 * w32menu.c (set_frame_menubar, add_menu_item)
751 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
752 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
753 * w32uniscribe.c (uniscribe_list_family): Likewise.
754 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
755 * window.c (make_window, replace_window, set_window_buffer)
756 (Fsplit_window): Likewise.
757 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
758 (add_to_log, message3, x_consider_frame_title)
759 (append_space_for_newline, extend_face_to_end_of_line)
760 (decode_mode_spec_coding, init_glyph_string): Likewise.
761 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
762 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
763 (face_attr_equal_p, make_realized_face, make_face_cache)
764 (free_realized_faces, lookup_named_face, smaller_face)
765 (face_with_height, lookup_derived_face)
766 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
767 (Finternal_set_font_selection_order, realize_default_face)
768 (compute_char_face, face_at_buffer_position)
769 (face_for_overlay_string, face_at_string_position, merge_faces):
770 Likewise.
771 * xfns.c (xic_create_fontsetname, Fx_create_frame)
772 (Fx_window_property, x_create_tip_frame)
773 (Fx_backspace_delete_keys_p): Likewise.
774 * xfont.c (xfont_list, xfont_match, xfont_list_family)
775 (xfont_text_extents): Likewise.
776 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
777 * xrdb.c (magic_file_p, x_get_resource): Likewise.
778 * xselect.c (x_queue_event, x_get_window_property)
779 (receive_incremental_selection): Likewise.
780 * xsmfns.c (x_session_check_input): Likewise.
781 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
782 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
783 Likewise.
784 * character.h (BCOPY_SHORT): Removed.
785 * config.in: Regenerate.
786 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
787 * emacs.c (main) [PROFILING]: Don't declare
788 dump_opcode_frequencies.
789 * lisp.h (safe_bcopy): Remove declaration.
790 (memset) [!HAVE_MEMSET]: Declare.
791 (memcpy) [!HAVE_MEMCPY]: Likewise.
792 (memmove) [!HAVE_MEMMOVE]: Likewise.
793 (memcmp) [!HAVE_MEMCMP]: Likewise.
794 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
795 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
796 Don't define.
797 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
798 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
799 (BCOPY_DOWNWARD_SAFE): Don't define.
800 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
801 (memcpy) [!HAVE_MEMCPY]: Define.
802 (memmove) [!HAVE_MEMMOVE]: Define.
803 (memcmp) [!HAVE_MEMCMP]: Define.
804
cb768704
J
8052010-07-07 Jan Djärv <jan.h.d@swipnet.se>
806
807 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
808 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
809 New functions.
cb768704
J
810 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
811 select on empty input mask.
812 (init_process): Initialize kbd_is_on_hold to 0.
813
814 * process.h (hold_keyboard_input, unhold_keyboard_input)
815 (kbd_on_hold_p): Declare.
816
817 * keyboard.c (input_available_signal): Declare.
818 (kbd_buffer_nr_stored): New function.
819 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
820 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
821 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
822 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
823 (tty_read_avail_input): If input is on hold, return.
824 Don't read more that free slots in kbd_buffer (Bug#6571).
825
3a8ce822
EZ
8262010-07-07 Eli Zaretskii <eliz@gnu.org>
827
828 * msdos.h:
829 * msdos.c:
830 * dosfns.c:
831 * w16select.c: Convert function definitions to ANSI C.
832
a628ad9d
JB
833 * msdos.h (ctrl_break_func, install_ctrl_break_check):
834 Remove unused prototypes.
3a8ce822 835
cf84bb53
JB
8362010-07-07 Juanma Barranquero <lekktu@gmail.com>
837
838 * coding.c, sysdep.c: Convert some more functions to standard C.
839
1a4990fb
JB
8402010-07-07 Juanma Barranquero <lekktu@gmail.com>
841
842 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
843 (encode_coding_object): Use SPECPDL_INDEX.
844 (syms_of_coding): Use DOS_NT.
845
c0f2f16b
DN
8462010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
847
48fb6855
DN
848 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
849
c0f2f16b
DN
850 Make the function member of Lisp_Subr use standard C prototypes.
851 * lisp.h (struct Lisp_Subr): Use a union for the function member.
852 (DECL_ALIGN): Add a cast for the function.
853 * eval.c (Feval, Ffuncall): Use the proper type for each type
854 function call.
855
67aecef9
CY
8562010-07-06 Chong Yidong <cyd@stupidchicken.com>
857
858 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
859 fringe face id, so face-remapping-alist works (Bug#6091).
860
b56ceb92
JB
8612010-07-06 Juanma Barranquero <lekktu@gmail.com>
862
863 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
864 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
865 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
866
7af07b96
AS
8672010-07-06 Andreas Schwab <schwab@linux-m68k.org>
868
869 * xterm.c (x_get_keysym_name): Change type of parameter to int.
870 * lisp.h: Declare x_get_keysym_name.
871 * keyboard.c (modify_event_symbol): Don't declare
872 x_get_keysym_name here.
873
69e24e34
DN
8742010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
875
876 * ecrt0.c: Revert conversion to standard C.
877
d3da34e0 8782010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
879
880 * vm-limit.c (memory_warnings):
881 * keyboard.c (modify_event_symbol):
882 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
883 (round2, emacs_rint):
884 * process.c (send_process, old_sigpipe): Convert function
885 definitions and declarations to standard C.
886
8872010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
888
889 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
890 * xdisp.c: Convert function definitions to standard C.
891
892 * cm.c (cmputc): Arg C is now int, not char.
893 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
894
00be444c
J
8952010-07-05 James Cloos <cloos@jhcloos.com>
896
897 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
898
899 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
900 _NET_WM_ICON_NAME atoms.
901
902 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
903 and _NET_WM_ICON_NAME properties, too, matching what is
904 done in the Gtk+ case.
905
e4c8d29a
J
9062010-07-05 Jan Djärv <jan.h.d@swipnet.se>
907
ff919460
J
908 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
909
e4c8d29a
J
910 * xsmfns.c (SSDATA): New macro.
911 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
912 passed to strlen/strcpy/strcat.
913 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
914 7:th arg to XChangeProperty to (unsigned char *)
915
916 * xsettings.c (something_changedCB, parse_settings)
917 (apply_xft_settings): Reformat prototype.
918 (something_changedCB, init_gconf): Remove unused variable i.
919 (read_settings): Remove unused variable long_len.
920
921 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
922 (xg_get_image_for_pixmap, create_dialog)
923 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
924 (menuitem_highlight_callback, make_menu_item)
925 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
926 (xg_create_scroll_bar, xg_update_scrollbar_pos)
927 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
928 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
929 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
930 (xg_tool_bar_item_expose_callback): Reformat prototype.
931 (xg_update_menubar): GList *group => GSList *group.
932 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
933 before use.
934 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
935 to GTK_IMAGE (wimage).
936
dd4c5104
DN
9372010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
938
898b4c5c
DN
939 * atimer.c: Use "" instead of <> for local includes for
940 consistency with the rest of the code.
941
dd4c5104
DN
942 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
943 * xrdb.c (get_system_name):
944 * window.c (shrink_windows):
945 * syntax.c (forw_comment):
946 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
947 (ins_del_costs):
948 * mem-limits.h (start_of_data):
949 * lread.c (readevalloop):
950 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
951 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
952 * frame.c (x_get_focus_frame):
953 * floatfns.c (fmod_float):
954 * fileio.c (choose_write_coding_system):
955 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
956 (malloc_initialize_hook, sort_args, synchronize_locale):
957 * doprnt.c (doprnt):
958 * dired.c (compile_pattern):
959 * data.c (fmod_float):
960 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
961 (map_char_table_for_charset):
962 * charset.c (define_charset_internal):
963 * alloc.c (Fgarbage_collect): Convert declarations or definitions
964 to standard C.
965
9a39b306 9662010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 967 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
968
969 * lread.c (read1): Fix up last change to not mess up `c'.
970
e6cb2cbb
JB
9712010-07-04 Juanma Barranquero <lekktu@gmail.com>
972
973 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
974
438105ed
JB
9752010-07-04 Juanma Barranquero <lekktu@gmail.com>
976
977 Fix prototypes.
978
e5447b22 979 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 980 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
981 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
982 arg, as required by internal_condition_case_1.
dcc7404b 983 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
984 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
985 (analyse_first): Fix "const const".
e5447b22 986 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 987 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 988 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 989
971de7fb
DN
9902010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
991
992 * alloc.c: Convert function definitions to standard C.
993 * atimer.c:
994 * bidi.c:
995 * bytecode.c:
996 * callint.c:
997 * callproc.c:
998 * casefiddle.c:
999 * casetab.c:
1000 * category.c:
1001 * ccl.c:
1002 * character.c:
1003 * charset.c:
1004 * chartab.c:
1005 * cmds.c:
1006 * coding.c:
1007 * composite.c:
1008 * data.c:
1009 * dbusbind.c:
1010 * dired.c:
1011 * dispnew.c:
1012 * doc.c:
1013 * doprnt.c:
1014 * ecrt0.c:
1015 * editfns.c:
1016 * fileio.c:
1017 * filelock.c:
1018 * filemode.c:
1019 * fns.c:
1020 * font.c:
1021 * fontset.c:
1022 * frame.c:
1023 * fringe.c:
1024 * ftfont.c:
1025 * ftxfont.c:
1026 * gtkutil.c:
1027 * indent.c:
1028 * insdel.c:
1029 * intervals.c:
1030 * keymap.c:
1031 * lread.c:
1032 * macros.c:
1033 * marker.c:
1034 * md5.c:
1035 * menu.c:
1036 * minibuf.c:
1037 * prefix-args.c:
1038 * print.c:
1039 * ralloc.c:
1040 * regex.c:
1041 * region-cache.c:
1042 * scroll.c:
1043 * search.c:
1044 * sound.c:
1045 * strftime.c:
1046 * syntax.c:
1047 * sysdep.c:
1048 * termcap.c:
1049 * terminal.c:
1050 * terminfo.c:
1051 * textprop.c:
1052 * tparam.c:
1053 * undo.c:
1054 * unexelf.c:
1055 * window.c:
1056 * xfaces.c:
1057 * xfns.c:
1058 * xfont.c:
1059 * xftfont.c:
1060 * xgselect.c:
1061 * xmenu.c:
1062 * xrdb.c:
1063 * xselect.c:
1064 * xsettings.c:
1065 * xsmfns.c:
1066 * xterm.c: Likewise.
1067
ae492bec
EZ
10682010-07-03 Eli Zaretskii <eliz@gnu.org>
1069
76ea4cc9
EZ
1070 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1071 frames other than the initial one. Fix reversal of colors when
1072 `reverse' is specified in the frame parameters. Call
1073 update_face_from_frame_parameter instead of
1074 internal-set-lisp-face-attribute. Initialize screen colors from
1075 initial_screen_colors[] when f->default_face_done_p is zero,
1076 instead of depending on being called with default-frame-alist as
1077 the alist argument.
1078
1079 * xfaces.c (update_face_from_frame_parameter): Move out of
1080 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1081 with HAVE_WINDOW_SYSTEM.
1082
1e6255ae
EZ
1083 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1084 to menu-bar-mode, if not set in the frame parameters or in
1085 default-frame-alist.
1086
ae492bec
EZ
1087 * w32console.c (sys_tputs): Adjust argument list to prototype in
1088 term.c.
1089
3a35a84c
JB
10902010-07-03 Juanma Barranquero <lekktu@gmail.com>
1091
1092 * lisp.h (memory_warnings): Fix prototype.
1093
1094 * cm.h (evalcost): Fix prototype.
1095
1096 * cm.c (evalcost): Fix arg type.
1097
c532d349
DN
10982010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1099
1100 * term.c (term_clear_mouse_face, Fidentity):
1101 * syssignal.h (signal_handler_t):
1102 * lisp.h (memory_warnings):
1103 * coding.h (preferred_coding_system):
1104 * cm.h (evalcost):
1105 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1106
c0b36d46
EZ
11072010-07-02 Eli Zaretskii <eliz@gnu.org>
1108
1109 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1110 from prototypes.
1111
1112 * msdos.h (load_pixmap): Don't define away.
1113
383e0970
J
11142010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1115
f57e2426
J
1116 * lisp.h:
1117 * atimer.h: Remove define for P_.
1118
1119 * alloc.c: Remove __P and P_ from .c and .m files.
1120 * atimer.c:
1121 * buffer.c:
1122 * callint.c:
1123 * category.c:
1124 * charset.c:
1125 * chartab.c:
1126 * cm.c:
1127 * coding.c:
1128 * composite.c:
1129 * data.c:
1130 * dired.c:
1131 * dispnew.c:
1132 * doc.c:
1133 * editfns.c:
1134 * emacs.c:
1135 * eval.c:
1136 * fileio.c:
1137 * filelock.c:
1138 * fns.c:
1139 * font.c:
1140 * fontset.c:
1141 * frame.c:
1142 * ftfont.c:
1143 * ftxfont.c:
1144 * gmalloc.c:
1145 * gtkutil.c:
1146 * image.c:
1147 * indent.c:
1148 * intervals.c:
1149 * keyboard.c:
1150 * keymap.c:
1151 * lread.c:
1152 * marker.c:
1153 * menu.c:
1154 * minibuf.c:
1155 * print.c:
1156 * process.c:
1157 * scroll.c:
1158 * search.c:
1159 * sound.c:
1160 * strftime.c:
1161 * syntax.c:
1162 * sysdep.c:
1163 * term.c:
1164 * terminal.c:
1165 * textprop.c:
1166 * unexalpha.c:
1167 * w32console.c:
1168 * w32fns.c:
1169 * w32font.c:
1170 * w32menu.c:
1171 * w32term.c:
1172 * w32uniscribe.c:
1173 * window.c:
1174 * xdisp.c:
1175 * xfaces.c:
1176 * xfns.c:
1177 * xfont.c:
1178 * xftfont.c:
1179 * xmenu.c:
1180 * xselect.c:
1181 * xterm.c: Likewise.
1182
383e0970 1183 Remove P_ and __P macros.
f57e2426
J
1184 * atimer.h: Remove P_ and __P macros.
1185 * buffer.h:
383e0970
J
1186 * category.h:
1187 * ccl.h:
1188 * character.h:
1189 * charset.h:
1190 * cm.h:
1191 * coding.h:
1192 * composite.h:
1193 * dispextern.h:
1194 * disptab.h:
9e892c8d 1195 * dosfns.h:
383e0970
J
1196 * font.h:
1197 * fontset.h:
1198 * frame.h:
1199 * gtkutil.h:
1200 * indent.h:
1201 * intervals.h:
1202 * keyboard.h:
1203 * keymap.h:
1204 * lisp.h:
1205 * macros.h:
1206 * md5.h:
1207 * menu.h:
1208 * msdos.h:
1209 * nsterm.h:
1210 * puresize.h:
1211 * region-cache.h:
1212 * syntax.h:
1213 * syssignal.h:
1214 * systime.h:
1215 * termhooks.h:
9e892c8d 1216 * w32font.h:
383e0970
J
1217 * w32term.h:
1218 * widget.h:
1219 * window.h:
1220 * xgselect.h:
1221 * xsettings.h:
1222 * xterm.h: Likewise.
1223
98601119
DN
12242010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1225
d9170db5
DN
1226 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1227
98601119
DN
1228 Cleanup old code.
1229 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1230 * syssignal.h: Remove code for Lynx, not supported anymore.
1231 * vm-limit.c: Remove unused code the depends on emacs not being
1232 defined and NO_LIM_DATA being defined.
1233 * mem-limits.h: Remove dead code.
1234
1f984e12
J
12352010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1236
c49d071a
J
1237 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1238
9d5405ec
J
1239 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1240 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1241
7a18115b
J
1242 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1243 parameters, they are already absolute.
1244
a628ad9d
JB
1245 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1246 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1247
a628ad9d 1248 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1249
a628ad9d
JB
1250 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1251 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1252
a628ad9d
JB
1253 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1254 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1255
c1ef4455
CY
12562010-06-30 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1259 check default-frame-alist.
1260
ce8f5a9a
AS
12612010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1262
1263 * process.c (create_process): Avoid using invalid file descriptors.
1264
1265 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1266
bf935339
J
12672010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1268
1269 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1270 Improve documentation. Return font regardless of use_system_font.
1271 (syms_of_xsettings): Improve documentation for font-use-system-font.
1272
7c33a057
CY
12732010-07-10 Chong Yidong <cyd@stupidchicken.com>
1274
2ec1b5ee
CY
1275 * xfaces.c (realize_face): Garbage the frame if a face is removed
1276 (Bug#6593).
1277
12782010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1279
1280 * keyboard.c: Remove duplicate <setjmp.h>.
1281 (read_key_sequence): Remove volatile qualifiers.
1282
12832010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1284
1285 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1286 (struct glyph_row): New members left_fringe_offset and
1287 right_fringe_offset.
1288
1289 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1290 specially.
1291 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1292 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1293
1294 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1295 Take account of bitmap offset.
2ec1b5ee
CY
1296 (draw_window_fringes): Take account of window vscroll.
1297 (update_window_fringes): Likewise. Extend top-aligned top indicator
1298 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1299 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1300 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1301
13022010-07-04 Juanma Barranquero <lekktu@gmail.com>
1303
1304 * w32fns.c (Qtooltip): Declare.
1305 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1306
13072010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1308
1309 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1310 grab on just Press (Bug#6499).
1311
13122010-07-02 Chong Yidong <cyd@stupidchicken.com>
1313
1314 * frame.c (Qtooltip): New var.
1315 (delete_frame): Use it. Fix faulty if statement. Don't update
1316 mode line for tooltip frames. Suggested by Martin Rudalics.
1317
1318 * xfns.c (x_create_tip_frame):
1319 * w32fns.c (x_create_tip_frame): Use it.
1320
13212010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1322
1323 * xftfont.c (xftfont_open): Check font width one by one also when
1324 spacing is dual.
1325
1326 * ftfont.c (ftfont_open): Ditto.
1327
6259c2ec
GM
13282010-06-30 Glenn Morris <rgm@gnu.org>
1329
a46007e9
GM
1330 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1331
6259c2ec
GM
1332 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1333
1334 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1335 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1336 * s/darwin.h (SYSTEM_MALLOC):
1337 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1338
5d1d3d04
J
13392010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1340
1341 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1342 (ns_get_screen): Don't assign integer to f.
1343 (Fx_display_color_cells): Declarations before statements.
1344
e547b051
J
13452010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1346
5fc8e5bc
J
1347 * xfns.c (x_default_font_parameter): Remove got_from_system
1348 (Bug#6526).
1349
e547b051
J
1350 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1351 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1352 defines based on what configure finds.
1353
1354 * xterm.c (XTflash): Use gtk_widget_get_window.
1355 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1356 gtk_adjustment_get_page_size.
1357 (handle_one_xevent): Use gtk_widget_get_mapped.
1358 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1359 messages.
1360
1361 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1362
1363 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1364 HAVE_GTK_FILE_SELECTION_NEW.
1365
1366 * gtkutil.c (xg_display_open, xg_display_close): Remove
1367 HAVE_GTK_MULTIDISPLAY, it is always defined.
1368 (xg_display_open): Return type is void.
1369 (gtk_widget_set_has_window)
1370 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1371 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1372 (gtk_adjustment_set_page_increment)
1373 (gtk_adjustment_get_step_increment): #define these if not found
1374 by configure.
1375 (remove_submenu): New define based on Gtk+ version.
1376 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1377 gtk_widget_get_window.
1378 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1379 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1380 (create_dialog): Use gtk_dialog_get_action_area and
1381 gtk_dialog_get_content_area.
1382 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1383 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1384 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1385 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1386 g_object_ref and g_object_unref.
1387 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1388 gtk_widget_get_sensitive.
1389 (xg_update_submenu): Use remove_submenu.
1390 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1391 properties instead to get old x and y position.
1392 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1393 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1394 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1395 (xg_get_tool_bar_widgets): New function.
1396 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1397 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1398 (toolbar_set_orientation): New #define based on if configure
1399 finds gtk_orientable_set_orientation.
1400 (xg_create_tool_bar): Call toolbar_set_orientation.
1401 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1402 instead of gtk_box_pack_start_defaults.
1403
b9229673
CY
14042010-06-28 Chong Yidong <cyd@stupidchicken.com>
1405
1406 * cmds.c (Fdelete_backward_char): Move into Lisp.
1407
bbc803b0
DN
14082010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1409
1410 * s/freebsd.h (BSD4_2): Remove redundant definition.
1411 bsd-common.h defines it already.
1412
6431f2e6
CY
14132010-06-27 Chong Yidong <cyd@stupidchicken.com>
1414
1415 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1416 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1417 tool-bar-mode, which are now set using these X resources at
1418 startup, to determine the defaults (Bug#2249).
1419
1420 * w32fns.c (Fx_create_frame):
1421 * nsfns.m (Fx_create_frame): Likewise.
1422
1423 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1424
8c079ebb
JB
14252010-06-24 Juanma Barranquero <lekktu@gmail.com>
1426
1427 * gtkutil.c (xg_update_scrollbar_pos):
1428 Avoid C99 mid-block variable declaration.
1429
e9b7ab96
JD
14302010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1431
bc869eca
JD
1432 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1433
2b7e356a 1434 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1435
1436 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1437 if height is less than scroll bar min size.
1438 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1439
e9b7ab96
JD
1440 * xfns.c (x_default_font_parameter): Try to open font from system
1441 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1442
a628ad9d 14432010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1444
1445 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1446
70c4cfbb
EZ
14472010-06-20 Eli Zaretskii <eliz@gnu.org>
1448
1449 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1450 most-positive-fixnum, be extra accurate when scrolling window
1451 start, to avoid missing the cursor line.
1452
ad5a12b5
EZ
14532010-06-19 Eli Zaretskii <eliz@gnu.org>
1454
1455 * xdisp.c (try_scrolling): Compute the limit for searching point
1456 in forward scroll from scroll_max, instead of an arbitrary limit
1457 of 10 screen lines. See
1458 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1459 and
1460 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1461 for details.
1462
2a64315a 14632010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1464
1465 * editfns.c (Fbyte_to_string): Pacify compiler.
1466
288cf4e9
SM
14672010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1468
1469 * lread.c (read1): Phase out old-style backquotes a bit more.
1470
6e6e5760
EZ
14712010-06-12 Eli Zaretskii <eliz@gnu.org>
1472
cbc4fd20
EZ
1473 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1474 bidimirror.h.
1475
1476 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1477
317fbf33
EZ
1478 * bidi.c (bidi_initialize): Remove explicit initialization of
1479 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1480 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1481 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1482
1483 * biditype.h: New file.
1484
cbc4fd20
EZ
1485 * bidimirror.h: New file.
1486
6e6e5760
EZ
1487 * window.c (syms_of_window): Doc fix (bug#6409).
1488
4176cba2
RF
14892010-06-12 Romain Francoise <romain@orebokech.com>
1490
1491 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1492 ediff-hook.
1493
cb4bfcb5
GM
14942010-06-10 Glenn Morris <rgm@gnu.org>
1495
64c60c2f
GM
1496 * editfns.c (Fbyte_to_string): Pacify compiler.
1497
cb4bfcb5
GM
1498 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1499
2ec1b5ee
CY
15002010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1501
1502 * alloc.c (Fmake_byte_code): Don't access undefined argument
1503 (Bug#6517).
1504
15052010-06-25 Chong Yidong <cyd@stupidchicken.com>
1506
1507 * xdisp.c (next_element_from_image): Ensure that after-strings are
1508 read the next time we hit handle_stop (Bug#1336).
1509
15102010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1511
1512 * lread.c (read1): Signal error if #s is not followed by paren.
1513
15142010-06-19 Chong Yidong <cyd@stupidchicken.com>
1515
1516 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1517
1518 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1519
15202010-06-15 Glenn Morris <rgm@gnu.org>
1521
1522 * editfns.c (Fbyte_to_string): Pacify compiler.
1523
e454a4a3
SM
15242010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1525
1526 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1527 Check `object's type before accessing its guts.
1528
c1b1acc2
DN
15292010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1530
1531 * s/usg5-4.h: Fix previous change.
1532 Suggested by Lawrence Mitchell <wence@gmx.li>
1533
657d4c0b
AS
15342010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1535
1536 * minibuf.c (Fall_completions): Add more checks.
1537
9b27fd9f
JB
15382010-06-08 Juanma Barranquero <lekktu@gmail.com>
1539
1540 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1541
a99ebb40
DN
15422010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1543
d7c5d87d
DN
1544 * lread.c (X_OK): Remove, unused.
1545
0263a941
DN
1546 * dispnew.c: Remove obsolete comment.
1547
a99ebb40
DN
1548 Remove INCLUDED_FCNTL.
1549 * xterm.c (INCLUDED_FCNTL):
1550 * callproc.c (INCLUDED_FCNTL):
1551 * alloc.c (INCLUDED_FCNTL):
1552 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1553 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1554
13b5221f
MR
15552010-06-07 Martin Rudalics <rudalics@gmx.at>
1556
1557 * window.c (Fselect_window): Move `record_buffer' up to the
1558 beginning of this function, so the buffer gets recorded
1559 even if the selected window does not change.
1560 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1561
5220357f
JB
15622010-06-07 Juanma Barranquero <lekktu@gmail.com>
1563
1564 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1565 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1566
3085237c
DN
15672010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1568
1569 Remove BSTRING related code, all platforms define it.
1570 * s/usg5-4.h (BSTRING): Remove definition.
1571 * s/template.h (BSTRING):
1572 * s/msdos.h (BSTRING):
1573 * s/ms-w32.h (BSTRING):
1574 * s/hpux10-20.h (BSTRING):
1575 * s/gnu-linux.h (BSTRING):
1576 * s/darwin.h (BSTRING):
1577 * s/cygwin.h (BSTRING):
1578 * s/bsd-common.h (BSTRING):
1579 * s/aix4-2.h (BSTRING): Likewise.
1580 * sysdep.c: Remove code depending on BSTRING not being defined.
1581
409f2919
JB
15822010-06-05 Juanma Barranquero <lekktu@gmail.com>
1583
1584 Remove obsolete macro BASE_LEADING_CODE_P.
1585 * character.h (BASE_LEADING_CODE_P): Remove.
1586 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1587 * buffer.c (Fset_buffer_multibyte):
1588 * indent.c (scan_for_column, compute_motion):
1589 * insdel.c (count_combining_before, count_combining_after):
1590 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1591
087fc47a
JB
15922010-06-04 Juanma Barranquero <lekktu@gmail.com>
1593
1594 Turn `directory-sep-char' into a noop.
1595
1596 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1597 (DIRECTORY_SEP): Define unconditionally.
1598
1599 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1600
1601 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1602 call dostounix_filename directly.
1603
1604 * fileio.c (CORRECT_DIR_SEPS): Remove.
1605 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1606 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1607 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1608 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1609
1610 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1611 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1612
0eb7675e
AS
16132010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1614
a628ad9d
JB
1615 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1616 (Bug#6346)
0eb7675e 1617
78edd3b7
JB
16182010-06-03 Juanma Barranquero <lekktu@gmail.com>
1619
1620 * ccl.c (Fccl_program_p): Fix typo in docstring.
1621
eb697db5
DN
16222010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1623
1624 Move UNEXEC definition to autoconf.
1625 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1626 * s/sol2-10.h (UNEXEC):
1627 * s/irix6-5.h (UNEXEC):
1628 * s/hpux10-20.h (UNEXEC):
1629 * s/gnu-linux.h (UNEXEC):
1630 * s/darwin.h (UNEXEC):
1631 * s/cygwin.h (UNEXEC):
1632 * s/bsd-common.h (UNEXEC):
1633 * s/aix4-2.h (UNEXEC):
1634 * m/alpha.h (UNEXEC): Likewise.
1635 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1636
aa3830c4
JB
16372010-06-03 Juanma Barranquero <lekktu@gmail.com>
1638
1639 Remove obsolete pre-unicode2 macros.
1640 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1641 * composite.c (composition_reseat_it):
1642 * data.c (Faset):
1643 * fns.c (Ffillarray):
1644 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1645 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1646
d234d13e
JL
16472010-06-03 Juri Linkov <juri@jurta.org>
1648
1649 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1650 (Fswitch_to_buffer): Remove unused variable `err'.
1651
0d4bcf4d
GM
16522010-06-03 Glenn Morris <rgm@gnu.org>
1653
e23dc1e2
GM
1654 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1655
05b09564
GM
1656 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1657 now that AH_BOTTOM does it.
1658
824e2978
GM
1659 * m/hp800.h (HAVE_ALLOCA):
1660 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1661
0d4bcf4d
GM
1662 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1663 Remove NOT_C_CODE tests, it is always true now.
1664
c55d2abf
DN
16652010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1666
08a494a3
DN
1667 Fix config.h includes.
1668 * xsettings.c:
1669 * xgselect.c:
1670 * nsterm.m:
1671 * nsselect.m:
1672 * nsimage.m:
1673 * nsfont.m:
1674 * nsfns.m:
1675 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1676 other files do.
1677
75934b1d
DN
1678 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1679
9f32a766
DN
1680 * s/sol2-6.h: Remove obsolete comments.
1681
c55d2abf
DN
1682 Remove unnecessary alloca.h includes.
1683 * keymap.c: Do not include alloca.h, config.h does that.
1684 * sysdep.c: Likewise. Do not define fwrite, not used.
1685
06ac62b4
SM
16862010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1687
1688 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1689 the HAVE_TERMIO where it belongs (bug#6149).
1690
1ab8293c
SM
16912010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1692
1693 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1694 of bug#6305).
1695
6dcfd253
EZ
16962010-05-30 Eli Zaretskii <eliz@gnu.org>
1697
1698 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1699 state is always cached (bug#6306).
1700
6d26bbb2
EZ
17012010-05-29 Eli Zaretskii <eliz@gnu.org>
1702
06fa4a23
EZ
1703 Fix cursor motion in bidi-reordered continued lines.
1704 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1705 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1706 over continuation lines in bidi-reordered buffers. Return
1707 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1708 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1709
f5783df3
MA
17102010-05-28 Michael Albinus <michael.albinus@gmx.de>
1711
1712 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1713
7d56b2dd
KH
17142010-05-28 Kenichi Handa <handa@m17n.org>
1715
1716 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1717 Don't sheck SPEC if it is nil.
1718 (font_list_entities): Call font_delete_unmatched if
b925d231 1719 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1720
e58d4ff7
GM
17212010-05-28 Glenn Morris <rgm@gnu.org>
1722
1723 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1724
f1a5d776
CY
17252010-05-27 Chong Yidong <cyd@stupidchicken.com>
1726
1727 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1728 whether to trash.
1729 (internal_delete_file, Frename_file): Callers changed.
1730 (delete_by_moving_to_trash): Doc fix.
1731 (Fdelete_directory_internal): Don't move to trash.
1732
1733 * callproc.c (delete_temp_file):
1734 * buffer.c (Fkill_buffer): Callers changed.
1735
1736 * lisp.h: Update prototype.
1737
f44a59e6
CY
17382010-05-27 Chong Yidong <cyd@stupidchicken.com>
1739
1740 * xdisp.c (redisplay_window): After redisplay, check if point is
1741 still valid before setting it (Bug#6177).
1742
81ac4f35
GM
17432010-05-27 Glenn Morris <rgm@gnu.org>
1744
1745 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1746 Convert comments to Makefile format.
1747
1748 * Makefile.in (bootstrap-clean): No more Makefile.c.
1749
ccd89fb3
GM
17502010-05-26 Glenn Morris <rgm@gnu.org>
1751
90278cb6
GM
1752 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1753 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1754
ccd89fb3
GM
1755 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1756 Remove.
1757 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1758
b7050583
KH
17592010-05-26 Kenichi Handa <handa@m17n.org>
1760
1761 * composite.c (composition_compute_stop_pos): Fix condition for
1762 backward scanning.
1763
e5458003
GM
17642010-05-25 Glenn Morris <rgm@gnu.org>
1765
c345fe90
GM
1766 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1767 Move before TEMACS_LDFLAGS.
1768 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1769 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1770
2e0689ab
GM
1771 * Makefile.in (NOT_C_CODE): No longer define.
1772 (config.h): No longer include.
1773
8009a5e8
GM
1774 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1775 variables it may reference.
1776
e5458003
GM
1777 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1778 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1779
10f72a37
KH
17802010-05-25 Kenichi Handa <handa@m17n.org>
1781
1782 * dispextern.h (struct composition_it): New members rule_idx and
1783 charpos.
1784
1785 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1786 that the character positions of IT point the last character of the
1787 current grapheme cluster.
1788 (next_element_from_composition): Don't change character positions
1789 of IT.
1790 (append_composite_glyph): Set glyph->charpos to
1791 it->cmp_it.charpos.
1792
1793 * composite.c (autocmp_chars): Change the first argument to RULE,
1794 and try composition with RULE only.
1795 (composition_compute_stop_pos): Record the index number of the
1796 composition rule in CMP_IT->rule_idx.
1797 (composition_reseat_it): Call autocmp_chars repeatedly until the
1798 correct rule of the composition is found.
1799 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1800 is at the last character of the current grapheme cluster when
1801 CMP_IT->reversed_p is nonzero.
1802
171eda53 18032010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1804
171eda53
SM
1805 * editfns.c (Fbyte_to_string): New function.
1806
66a9f7f4
SM
18072010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1808
1809 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1810 Suggested by Masatake YAMATO <yamato@redhat.com>.
1811
d8c315d1
EZ
18122010-05-23 Eli Zaretskii <eliz@gnu.org>
1813
171eda53 1814 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1815
f5b416d2 18162010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1817
1818 * s/netbsd.h: If terminfo is found, use it in preference to
1819 termcap. (Bug#6190) [Backport from trunk]
1820
0416466c
EZ
18212010-05-19 Eli Zaretskii <eliz@gnu.org>
1822
11117830 1823 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1824
1825 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1826 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1827 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1828 and maxpos members instead of start.pos and end.pos, respectively.
1829
1830 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1831 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1832 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1833 (try_window_reusing_current_matrix, try_window_id):
1834 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1835 (init_from_display_pos, init_iterator): Use EMACS_INT for
1836 character and byte positions.
66a9f7f4 1837 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1838 arguments for minimum and maximum buffer positions seen by
1839 display_line for this row. Don't use iterator to find the
1840 position following the maximum one; instead, increment the
11117830
EZ
1841 position found by display_line directly. Fix logic; eol_pos
1842 should be tested before the rest. Handle the case of characters
1843 delivered from display vector (bug#6036). Fix tests related to
1844 it->method. Handle the truncated_on_right_p rows.
1845 (RECORD_MAX_MIN_POS): New macro.
1846 (display_line): Use it to record the minimum and maximum buffer
1847 positions for glyphs in the row being assembled. Record the
1848 position of the newline that terminates the line. If word wrap is
1849 in effect, restore minimum and maximum positions seen up to the
1850 wrap point, when iterator returns to it.
1851 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1852 row and cursor not already at point. Restore original pre-bidi
1853 code for unidirectional buffers.
d36fe237
EZ
1854
1855 * dispnew.c (increment_row_positions, check_matrix_invariants):
1856 Increment and check row->start.pos and row->end.pos, in addition
1857 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1858
11117830
EZ
1859 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1860 Display truncated_on_left_p and truncated_on_right_p flags.
1861 Formatting fixes.
1862 (pmtxrows): Display the ordinal number of each row. Don't display
1863 rows beyond the last one.
1864
1865 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1866 it is not copied by bidi_copy_it.
1867
6e83d800
EZ
18682010-05-22 Eli Zaretskii <eliz@gnu.org>
1869
1870 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1871 (Bug#6237)
1872
110683ad
CY
18732010-05-22 Chong Yidong <cyd@stupidchicken.com>
1874
1875 * image.c (Fimage_flush): Rename from image-refresh.
1876
98fe5161
CY
18772010-05-21 Chong Yidong <cyd@stupidchicken.com>
1878
1879 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1880 just one window.
1881
1882 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1883 (clear_image_cache): If the number of cached images is unusually
1884 large, decrease the cache eviction delay (Bug#6230).
1885
e8752c66
GM
18862010-05-21 Glenn Morris <rgm@gnu.org>
1887
66dbf213
GM
1888 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1889 Move these rules to ns.mk.
1890 * ns.mk: New file.
1891
04384b2d
GM
1892 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1893
e8752c66
GM
1894 * Makefile.in (CANNOT_DUMP): New, set by configure.
1895 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1896
2e2bbddb
JL
18972010-05-20 Juri Linkov <juri@jurta.org>
1898
1899 * fileio.c (Fdelete_file): Change interative spec to use
1900 `read-file-name' like in `find-file-read-args' where the default
1901 value is `default-directory' instead of `buffer-file-name'.
1902 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1903
31c4aaf6
KR
19042010-05-20 Kevin Ryde <user42@zip.com.au>
1905
1906 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1907 (Voverriding_terminal_local_map, Vsystem_key_alist)
1908 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1909
9d5cf9b6
GM
19102010-05-20 Glenn Morris <rgm@gnu.org>
1911
1912 * Makefile.in (DEPDIR): New constant.
1913 (DEPFLAGS): Set with configure, not cpp.
1914 (MKDEPDIR): New, set by configure.
1915 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1916 (clean): Use $DEPDIR.
1917 (deps_frag): Include from configure.
1918 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1919 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1920
ead6f8f5
EZ
1921 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1922 reallocation of the cache. (Bug#6210)
1923
7f34aec3
GM
19242010-05-19 Glenn Morris <rgm@gnu.org>
1925
d494e8f2
GM
1926 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1927
c1d0dcfd
GM
1928 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1929 (GNULIB_VAR): Remove.
1930 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1931
1932 * m/ibms390x.h (LINKER):
1933 * m/macppc.h (LINKER) [GNU_LINUX]:
1934 * s/aix4-2.h (ORDINARY_LINK):
1935 * s/cygwin.h (LINKER):
1936 * s/darwin.h (ORDINARY_LINK):
1937 * s/gnu.h (ORDINARY_LINK):
1938 * s/netbsd.h (LINKER):
1939 * s/usg5-4.h (ORDINARY_LINK):
1940 Move to configure.
1941
7f34aec3
GM
1942 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1943
754790b6
CY
19442010-05-18 Chong Yidong <cyd@stupidchicken.com>
1945
1946 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1947 prevent stack overflow if number of arguments is too large
1948 (Bug#6214).
1949
161e44d1
JB
19502010-05-18 Juanma Barranquero <lekktu@gmail.com>
1951
1952 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1953
be4ff9da
GM
19542010-05-18 Glenn Morris <rgm@gnu.org>
1955
9539dc5d
GM
1956 * s/gnu-linux.h: Combine two conditionals.
1957
1958 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1959 $(POST_ALLOC_OBJ).
1960
40dc6bf4
GM
1961 * Makefile.in (RALLOC_OBJ): New, set by configure.
1962 (rallocobj): Replace with the previous variable.
1963 (otherobj): Use $RALLOC_OBJ.
1964
1965 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1966 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1967
be4ff9da
GM
1968 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1969 (gmallocobj, vmlimitobj): Replace with previous two variables.
1970 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1971
16455a85
GM
19722010-05-17 Glenn Morris <rgm@gnu.org>
1973
1974 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1975 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1976
5fdb7468
GM
19772010-05-16 Glenn Morris <rgm@gnu.org>
1978
7ca1f3f9
GM
1979 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1980
7541dad5
GM
1981 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1982
da53fab9
GM
1983 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1984 trailing "/".
1985
b02a6645
GM
1986 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1987 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1988
8877ca0f
GM
1989 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1990 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1991 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1992 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1993 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1994
5fdb7468
GM
1995 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1996 Remove ${STARTFLAGS}, nothing ever sets it.
1997
95adb4b1
DN
19982010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1999
2000 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2001
676b6304
GM
20022010-05-16 Glenn Morris <rgm@gnu.org>
2003
9beab9ce
GM
2004 * Makefile.in (LIBX_BASE): Always define.
2005
8a95f0e7
GM
2006 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2007
676b6304
GM
2008 * Makefile.in (LIBXT): Always define.
2009
6e546d18
GM
20102010-05-15 Glenn Morris <rgm@gnu.org>
2011
4235ca47 2012 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2013
6e546d18
GM
2014 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2015 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2016
8c5ff6dd
KR
20172010-05-15 Ken Raeburn <raeburn@raeburn.org>
2018
560bb7ae 2019 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2020 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2021
8b4eb796
KR
2022 * emacs.c (main): Initialize initial-environment and
2023 process-environment before generating from env, not after.
2024
8c5ff6dd
KR
2025 Handle --version reasonably in CANNOT_DUMP configuration.
2026 * emacs.c (emacs_version, emacs_copyright): New string variables.
2027 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2028 (syms_of_emacs): Defvar them, and initialize them from the C
2029 string variables.
2030 (main): If initialization hasn't been done, print initial version
2031 info from the C strings, instead of starting an interactive session.
2032
dbd3f723
EZ
20332010-05-15 Eli Zaretskii <eliz@gnu.org>
2034
d20e1419
EZ
2035 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2036 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2037 (bidi_paragraph_init): Remove redundant assertion that we are at
2038 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2039
2040 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2041 (syms_of_xdisp): Defsubr it.
2042
d36fe237
EZ
2043 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2044
dbd3f723
EZ
2045 * Makefile.in: Fix MSDOS-related comments.
2046
02be533b
GM
20472010-05-15 Glenn Morris <rgm@gnu.org>
2048
1a82cca9
GM
2049 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2050 (really-lwlib, really-oldXMenu): Always define.
2051 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2052
3df7b338
GM
2053 * Makefile.in: Simplify cpp conditional.
2054
2b5f541b
GM
2055 * Makefile.in (${ns_appdir}): Simplify using umask.
2056
02be533b
GM
2057 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2058
4e2db1fe
SM
20592010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2060
2061 * eval.c (specbind): Remove left-over duplicate test.
2062 Disallow let-binding frame-local vars. Add comment.
2063
4b292a22
EZ
20642010-05-14 Eli Zaretskii <eliz@gnu.org>
2065
2fe72643 2066 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2067 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2068 (bidi_init_it): Call it.
2069 (bidi_cache_iterator_state): Enlarge the cache if needed.
2070
4e2db1fe 2071 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2072 bidi_get_next_char_visually. All callers changed.
2073
82ebc97b
KH
20742010-05-14 Kenichi Handa <handa@m17n.org>
2075
2076 * dispextern.h (struct composition_it): New member reversed_p.
2077
2078 * composite.c (composition_compute_stop_pos): Search backward if
2079 ENDPOS < CHARPOS.
2080 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2081 Set CMP_IT->reversed_p.
b4b6e17e 2082 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2083
4e2db1fe
SM
2084 * xdisp.c (set_iterator_to_next):
2085 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2086 scanning backward. Call composition_compute_stop_pos if scan
2087 direction is changed.
2088 (next_element_from_buffer): Call composition_compute_stop_pos with
2089 negative ENDPOS if we are scanning backward.
2090 (next_element_from_composition): Pay attention to
2091 IT->cmp_it.reversed_p.
2092
0e5d7800
KH
20932010-05-14 Kenichi Handa <handa@m17n.org>
2094
560bb7ae 2095 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2096
cb027b32
GM
20972010-05-14 Glenn Morris <rgm@gnu.org>
2098
177b0288
GM
2099 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2100
fbc00890
GM
2101 * Makefile.in (mktime, X11, register): Move undefs to configure.
2102
f14d1dfd
GM
2103 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2104 (MSDOS_X_OBJ): New variable.
2105 (MSDOS_SUPPORT_REAL): New constant.
2106 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2107 (obj): Use MSDOS_X_OBJ.
2108 (lisp): Use MSDOS_SUPPORT as a variable.
2109
11842bd8
GM
2110 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2111 (GPM_MOUSE_SUPPORT): Now it's a constant.
2112 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2113 not cpp.
2114
489d31a4 2115 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2116 (ns_appresdir): Remove, unused.
e20f1f07 2117
489d31a4
GM
2118 * Makefile.in (SHELL): Move outside cpp section.
2119
cb027b32
GM
2120 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2121
5a903aa9
GM
21222010-05-13 Glenn Morris <rgm@gnu.org>
2123
3369c79f
GM
2124 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2125 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2126
d5e982a6
GM
2127 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2128 HAVE_WINDOW_SYSTEM must be too.
2129
6192e163
GM
2130 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2131 (lisp): Remove WINNT_SUPPORT.
2132
472c5d6b
GM
2133 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2134 Let configure set these variables (to empty) in this case as well.
2135
0116466b
GM
2136 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2137 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2138
5a903aa9
GM
2139 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2140 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2141 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2142 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2143 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2144 the values output by configure.
5a903aa9
GM
2145 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2146
1a0d7c06
GM
21472010-05-12 Glenn Morris <rgm@gnu.org>
2148
b5457f14
GM
2149 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2150 (LINKER_WAS_SPECIFIED): Remove.
2151
1a0d7c06
GM
2152 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2153 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2154 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2155 * s/cygwin.h (LIB_GCC):
2156 * s/freebsd.h (LIB_GCC):
2157 * s/gnu-linux.h (LIB_GCC):
2158 * s/msdos.h (LIB_GCC):
2159 * s/netbsd.h (LIB_GCC):
2160 Move to configure.
2161
3ffd4615 21622010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2163
2164 * ftfont.c: Fix incorrect parentheses of #if condition for
2165 definining M17N_FLT_USE_NEW_FEATURE.
2166
acddf8ae
GM
21672010-05-11 Glenn Morris <rgm@gnu.org>
2168
2169 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2170 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2171
ae5e04fa
EZ
21722010-05-10 Eli Zaretskii <eliz@gnu.org>
2173
2174 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2175 unibyte buffers. See
2176 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2177
7490175b
GM
21782010-05-10 Glenn Morris <rgm@gnu.org>
2179
97efb629
GM
2180 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2181 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2182 (LIBES): Use LIBS_SYSTEM as a variable.
2183 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2184 * s/aix4-2.h (LIBS_SYSTEM):
2185 * s/freebsd.h (LIBS_SYSTEM):
2186 * s/hpux10-20.h (LIBS_SYSTEM):
2187 * s/sol2-6.h (LIBS_SYSTEM):
2188 * s/unixware.h (LIBS_SYSTEM):
2189 Move to configure.
2190
7490175b
GM
2191 * s/aix4-2.h (MAIL_USE_LOCKF):
2192 * s/bsd-common.h (MAIL_USE_FLOCK):
2193 * s/darwin.h (MAIL_USE_FLOCK):
2194 * s/gnu-linux.h (MAIL_USE_FLOCK):
2195 * s/irix6-5.h (MAIL_USE_FLOCK):
2196 * s/template.h (MAIL_USE_FLOCK):
2197 Move to configure.
2198
0235128c 21992010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2200
2201 * Version 23.2 released.
2202
0235128c 22032010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2204
2205 * composite.c (autocmp_chars): Save point as marker before calling
2206 auto-composition-function (Bug#5984).
2207
2208 * lisp.h (restore_point_unwind): Add prototype.
2209
2210 * fileio.c (restore_point_unwind): Remove static attribute.
2211
0235128c 22122010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2213
2214 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2215 new feature of libotf and m17n-flt.
0235128c
SM
2216 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2217 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2218 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2219 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2220 that OUT is NULL. Use OTF_drive_gsub_with_log and
2221 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2222 OTF_drive_gpos.
2223 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2224 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2225 Setup mflt_enable_new_feature and mflt_try_otf.
2226
4721152c
J
22272010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2228
2229 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2230
2231 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2232 box and toolbar (Bug #6139).
2233 (xg_create_tool_bar): Remove comment (Bug #6139).
2234 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2235 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2236
ee0a16cf
JB
22372010-05-08 Juanma Barranquero <lekktu@gmail.com>
2238
2239 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2240 Update dependencies.
2241
96d79611
EZ
22422010-05-08 Eli Zaretskii <eliz@gnu.org>
2243
2244 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2245 R2L lines.
2246
40c17879
GM
22472010-05-08 Glenn Morris <rgm@gnu.org>
2248
7b42b29f
GM
2249 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2250
40c17879
GM
2251 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2252 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2253 (termcapobj): Replace with TERMCAP_OBJ.
2254 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2255 (LIBES): Use LIBS_TERMCAP as a variable.
2256
2257 * s/freebsd.h (osreldate.h): No longer include, since this file
2258 does not use __FreeBSD_version any more.
2259
2260 * s/aix4-2.h (TERMINFO):
2261 * s/cygwin.h (TERMINFO):
2262 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2263 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2264 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2265 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2266 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2267 * s/irix6-5.h (TERMINFO):
2268 * s/netbsd.h (LIBS_TERMCAP):
2269 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2270 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2271 * s/usg5-4.h (TERMINFO):
2272 Move to configure.
2273
94b612ad
SM
22742010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2275
2276 * eval.c (unbind_to): Don't unbind a local binding into the global
2277 binding when the local binding disappeared. Inversely, don't unbind
2278 a global binding into a newly created local binding.
2279 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2280 can specify the frame to use, when applicable. Adjust callers.
2281
15e12598 22822010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2283 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2284
2285 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2286
f724825e
EZ
22872010-05-07 Eli Zaretskii <eliz@gnu.org>
2288
5cba3209
EZ
2289 * w32fns.c: Include w32.h.
2290 (Fw32_shell_execute): Decode the error message before passing it
2291 to `error'. (Bug#6126)
2292
d16bdfc3
EZ
2293 * msdos.c (dos_set_window_size):
2294 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2295 instead of `XSYMBOL (foo)->value'.
2296
59d93e87
EZ
22972010-05-07 Eli Zaretskii <eliz@gnu.org>
2298
9fdec8bc
EZ
2299 Fix the MS-DOS build, broken by autoconfiscation.
2300
2301 * Makefile.in: Don't use Make-style comments past the "start of
2302 cpp stuff" line.
2303 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2304
2305 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2306 edited directly by msdos/sed1v2.inp).
f724825e 2307
2f86b22b
GM
23082010-05-07 Glenn Morris <rgm@gnu.org>
2309
2310 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2311 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2312 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2313 move out of cpp section.
2314 * s/freebsd.h (LD_SWITCH_SYSTEM):
2315 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2316 * s/netbsd.h (LD_SWITCH_SYSTEM):
2317 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2318
49ebbd65
DN
23192010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2320
2321 Define LIB_STANDARD and START_FILES using autoconf.
2322 * s/usg5-4.h (LIB_STANDARD):
2323 * s/netbsd.h (START_FILES):
2324 * s/irix6-5.h (LIB_STANDARD):
2325 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2326 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2327 * s/freebsd.h (START_FILES):
2328 * s/darwin.h (START_FILES):
2329 * s/cygwin.h (START_FILES):
2330 * s/aix4-2.h (LIB_STANDARD):
2331 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2332 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2333 autoconf, not cpp.
2334
d43c06d6
DN
23352010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2336
28823648
DN
2337 Remove NEED_BSDTTY and NEED_UNISTD_H.
2338 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2339 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2340 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2341 <sys/ptyio.h> and <unistd.h>.
2342
aca00430
DN
2343 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2344
d43c06d6
DN
2345 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2346 * s/gnu.h (START_FILES): Remove empty definition.
2347
3e56b11d
JD
23482010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2349
2350 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2351
e3cf0cde
GM
23522010-05-06 Glenn Morris <rgm@gnu.org>
2353
2354 * Makefile.in (CPP, LN_S): Remove unused variables.
2355
774b9a60
SM
23562010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2357
2358 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2359
4ab92842
LM
23602010-05-05 Lawrence Mitchell <wence@gmx.li>
2361
2362 * m/sparc.h: Fix typo in earlier change.
2363
178f2507
SM
23642010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2365
2366 Misc tweaks.
2367 * eval.c (Fdefvaralias): Remove unintended nested if.
2368 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2369
80f00217 23702010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2371
2372 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2373
ef03a4e6
DN
23742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2375
58eb6cf0
DN
2376 Remove BSD_PGRPS.
2377 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2378 * s/gnu-linux.h (BSD_PGRPS): Remove.
2379 * term.c (dissociate_if_controlling_tty):
2380 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2381 (init_sys_modes, reset_sys_modes):
2382 * emacs.c (main):
2383 * callproc.c (Fcall_process, child_setup): Remove code depending
2384 on BSD_PGRPS.
2385
ef03a4e6
DN
2386 Remove POSIX_SIGNALS.
2387 * s/usg5-4.h (POSIX_SIGNALS):
2388 * s/netbsd.h (POSIX_SIGNALS):
2389 * s/msdos.h (POSIX_SIGNALS):
2390 * s/ms-w32.h (POSIX_SIGNALS):
2391 * s/hpux11.h (POSIX_SIGNALS):
2392 * s/gnu.h (POSIX_SIGNALS):
2393 * s/gnu-linux.h (POSIX_SIGNALS):
2394 * s/freebsd.h (POSIX_SIGNALS):
2395 * s/darwin.h (POSIX_SIGNALS):
2396 * s/cygwin.h (POSIX_SIGNALS):
2397 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2398 * s/unixware.h:
2399 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2400 * process.c (create_process):
2401 * syssignal.h:
2402 * sysdep.c (wait_for_termination, init_signals):
2403 * process.c (create_process):
2404 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2405 remove all code that assumes the contrary.
2406
49628785
GM
24072010-05-04 Glenn Morris <rgm@gnu.org>
2408
27a2cdfc
GM
2409 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2410 variable.
2411 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2412 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2413 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2414 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2415 LD_SWITCH_SYSTEM_tmp.
2416 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2417 New variables, set by configure.
2418
eb21eab5
GM
2419 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2420 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2421 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2422 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2423 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2424
49628785
GM
2425 * s/aix4-2.h (C_SWITCH_SYSTEM):
2426 * m/alpha.h (C_SWITCH_MACHINE):
2427 Move to configure.in.
2428 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2429 New variables, set by configure.
2430 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2431 $c_switch_machine and $c_switch_system.
2432
7dff330b
DN
24332010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2434
2435 * s/hpux10-20.h (LIB_STANDARD): New definition.
2436 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2437 on it, not used anymore.
2438
53967e09
CY
24392010-05-03 Chong Yidong <cyd@stupidchicken.com>
2440
2441 * eval.c (internal_condition_case_n): Rename from
2442 internal_condition_case_2.
2443 (internal_condition_case_2): New function.
2444
2445 * xdisp.c (safe_call): Use internal_condition_case_n.
2446
2447 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2448 (internal_delete_file, Frename_file): Callers changed.
2449
2450 * buffer.c (Fkill_buffer):
2451 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2452
2453 * lisp.h: Update prototypes.
2454
3dee6fdb
GM
24552010-05-03 Glenn Morris <rgm@gnu.org>
2456
2457 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2458 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2459 (LIBXT): Set with configure, not cpp.
2460 (LIBX): Remove.
2461 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2462
a101e0fb
DN
24632010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2464
2465 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2466 The FreeBSD is not needed, the default works, Solaris version is
2467 not needed, and the remaining case is not supported by configure.
2468
f63d0028
JD
24692010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2470
2471 * xsmfns.c (CHDIR_OPT): New define.
2472 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2473 restarting emacs.
2474
2475 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2476 shut_down_emacs.
2477
2478 * emacs.c (USAGE1): Mention --chdir.
2479 (main): Handle --chdir.
2480 (standard_args): Add --chdir.
2481 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2482 #5552).
2483
e4814a9f
DN
24842010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2485
cd03c74a
DN
2486 Remove LD_SWITCH_MACHINE.
2487 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2488 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2489
c3a398a1
DN
2490 Clean up IRIX code.
2491 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2492 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2493
87e7285c
DN
2494 Clean up AIX code.
2495 * m/ibmrs6000.inp: Remove file, unused.
2496 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2497 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2498 definition ...
2499 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2500
80f00217
JB
2501 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2502 unused.
e4814a9f 2503
59ca28de
EZ
25042010-05-01 Eli Zaretskii <eliz@gnu.org>
2505
197daef4
EZ
2506 Emulate POSIX_SIGNALS on MS-Windows.
2507
2508 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2509 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2510
2511 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2512 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2513 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2514
80f00217
JB
2515 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2516 New stubs.
197daef4 2517
af7c7572
EZ
2518 Miscellaneous fixes of bidi display.
2519
59ca28de
EZ
2520 * xdisp.c (find_row_end): New function, refactored from display_line.
2521 (display_line): Use it.
017ea819
EZ
2522 (extend_face_to_end_of_line): In almost-filled rows, extend only
2523 if the row is R2L and not continued.
166e930d 2524 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2525 Preserve overlay and string info in row->end.
166e930d
EZ
2526 (insert_left_trunc_glyphs): Support addition of left truncation
2527 glyphs to R2L rows.
b47e0dcf 2528 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2529 glyph between adjacent windows. Fix a crash when a display string
2530 is continued to the next line. Don't return zero if cursor was
2531 found by `cursor' property of a display string.
b47e0dcf
EZ
2532 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2533 test for that explicitly.
59ca28de 2534
7acac9f4
GM
25352010-05-01 Glenn Morris <rgm@gnu.org>
2536
2537 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2538 for clarity.
2539 (OTHER_OBJ): Remove.
2540 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2541 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2542
45841e65
KK
25432010-05-01 Karel Klíč <kklic@redhat.com>
2544
2545 * fileio.c (Ffile_selinux_context): Context functions may return null.
2546
afc61943
DN
25472010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2548
80f00217 2549 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2550
5a1bb006
GM
25512010-04-30 Glenn Morris <rgm@gnu.org>
2552
2553 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2554 (OTHER_OBJ): Define as a separate variable, for clarity.
2555
210af043
J
25562010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2557
2558 * xsettings.c: include limits.h and update file comment.
2559
0a7df391
GM
25602010-04-30 Glenn Morris <rgm@gnu.org>
2561
d5096f16
GM
2562 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2563 Set with configure, not cpp.
2564 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2565
7eb1ac33
GM
2566 * Makefile.in (mallocobj): Remove.
2567 (otherobj): Simplify using @OTHER_OBJ@.
2568
517d086b
GM
2569 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2570 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2571 Don't bother making nsgui.h dependency platform-specific.
2572
0a7df391
GM
2573 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2574
d6d23852
SM
25752010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2576
d2630aef
SM
2577 * process.c (read_process_output, exec_sentinel): Don't burp if the
2578 sentinel/filter kills the current buffer (bug#6060).
2579
f9dddf52 2580 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2581 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2582 Remove unused var `args'.
2583 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2584 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2585 * doc.c (store_function_docstring): Use XSETCAR.
2586
f1e3642a
GM
25872010-04-28 Glenn Morris <rgm@gnu.org>
2588
faf535f8
GM
2589 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2590 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2591
c40f9449
GM
2592 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2593
658f86ca
GM
2594 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2595 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2596
bc0b5f61
GM
2597 * Makefile.in (FONT_OBJ): New, set by configure.
2598 (FONT_DRIVERS): Use $FONT_OBJ.
2599
294c50a0
GM
2600 * Makefile.in (LIBXMU): Set with configure, not cpp.
2601 * s/aix4-2.h (LIBXMU):
2602 * s/hpux10-20.h (LIBXMU):
2603 Remove definition, now set in configure.
2604
e6ec4e99
GM
2605 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2606
f1e3642a
GM
2607 * m/amdx86-64.h [i386]: Move this test to configure.in.
2608
c6ea2936
GM
26092010-04-27 Glenn Morris <rgm@gnu.org>
2610
8fdac2c3
GM
2611 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2612 * s/unixware.h (NEED_LIBW): Remove definition.
2613
986fb647
GM
2614 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2615 (TOOLKIT_LIBW): New, set by configure.
2616 (@X_TOOLKIT_TYPE@): No longer define it.
2617
c6ea2936
GM
2618 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2619 (MOTIF_LIBW): Set with configure, not cpp.
2620 * s/aix4-2.h (LIB_MOTIF):
2621 * s/gnu-linux.h (LIB_MOTIF):
2622 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2623
aaa36002
DN
26242010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2625
2626 Reduce CPP usage.
2627 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2628 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2629 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2630 definitions and undefs. Inline definitions in the only user.
2631 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2632
b678dd8b
GM
26332010-04-27 Glenn Morris <rgm@gnu.org>
2634
76cda504
GM
2635 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2636 since the defaults (set by the system file) are fine in most cases.
2637 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2638 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2639 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2640 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2641 Remove definitions, since they are set correctly in s/gnu-linux.h.
2642 * s/freebsd.h (START_FILES, LIB_STANDARD):
2643 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2644 * s/hpux10-20.h (START_FILES):
2645 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2646 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2647
b678dd8b
GM
2648 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2649 (MOTIF_LIBW): Use $LIBXP.
2650 (otherobj): Use $WIDGET_OBJ.
2651
9452ded1
DN
26522010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2653
7e10844c
DN
2654 * Makefile.in (LIBS_MACHINE): Remove, unused.
2655
9452ded1
DN
2656 Use autoconf instead of cpp for LIB_MATH.
2657 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2658 * s/cygwin.h (LIB_MATH): Likewise.
2659 * Makefile.in (LIB_MATH): Do not define with cpp.
2660 (LIBES): Use autoconf for LIB_MATH.
2661
fcebfc6a
KH
26622010-04-26 Kenichi Handa <handa@m17n.org>
2663
2664 * composite.c (Ffind_composition_internal): Fix the return value
2665 for an automatic composition.
2666
39e2ad1b
DN
26672010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2668
2669 Remove all NO_ARG_ARRAY uses.
2670 * fns.c (concat2, concat3, nconc2):
2671 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2672 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2673 * m/xtensa.h (NO_ARG_ARRAY):
2674 * m/template.h (NO_ARG_ARRAY):
2675 * m/sparc.h (NO_ARG_ARRAY):
2676 * m/sh3.h (NO_ARG_ARRAY):
2677 * m/mips.h (NO_ARG_ARRAY):
2678 * m/macppc.h (NO_ARG_ARRAY):
2679 * m/iris4d.h (NO_ARG_ARRAY):
2680 * m/intel386.h (NO_ARG_ARRAY):
2681 * m/ibms390x.h (NO_ARG_ARRAY):
2682 * m/ibms390.h (NO_ARG_ARRAY):
2683 * m/ibmrs6000.h (NO_ARG_ARRAY):
2684 * m/ia64.h (NO_ARG_ARRAY):
2685 * m/hp800.h (NO_ARG_ARRAY):
2686 * m/arm.h (NO_ARG_ARRAY):
2687 * m/amdx86-64.h (NO_ARG_ARRAY):
2688 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2689
adf4f59c
EZ
26902010-04-25 Eli Zaretskii <eliz@gnu.org>
2691
6bdf5d65
EZ
2692 * xdisp.c (display_line): Don't assume 2nd call to
2693 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2694 (iterate_out_of_display_property): New function, body from pop_it.
2695 (pop_it): Use it.
adf4f59c 2696
dfbbda83
GM
26972010-04-24 Glenn Morris <rgm@gnu.org>
2698
2699 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2700 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2701 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2702 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2703
2d4018aa
EZ
27042010-04-24 Eli Zaretskii <eliz@gnu.org>
2705
a49884a6
EZ
2706 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2707 use `get_next_display_element' and `set_iterator_to_next' to
2708 advance to the next character, when looking for the character that
2709 begins the next row.
2710
76db6fcc 2711 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2712 definition of "struct Lisp_Symbol".
2713
70eab5c1
GM
27142010-04-24 Glenn Morris <rgm@gnu.org>
2715
2716 * Makefile.in (CRT_DIR): New variable, set by configure.
2717 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2718 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2719
1ad4cc3d
DN
27202010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2721
e769f484
DN
2722 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2723
4196ff33
DN
2724 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2725
879b0ee4
DN
2726 Remove redundant flags.
2727 * s/freebsd.h (C_SWITCH_SYSTEM):
2728 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2729 * s/netbsd.h (C_SWITCH_SYSTEM):
2730 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2731 of these.
2732
03cbbcb8
DN
2733 Simplify m/intel386.h.
2734 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2735 user: ecrt0.c.
2736 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2737 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2738 the only user: s/unixware.h.
2739 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2740 from m/intel386.h.
2741 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2742 moved here from m/intel386.h.
2743
1ad4cc3d
DN
2744 * m/mips.h: Remove #if 0 code.
2745
8785b888
EZ
27462010-04-23 Eli Zaretskii <eliz@gnu.org>
2747
728588cc
EZ
2748 Fix display of composed characters from L2R scripts in bidi buffers.
2749 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2750 After advancing IT past the composition, resync the bidi iterator
2751 with IT's position. (Bug#5977)
2752
a63f80b4
DN
27532010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2754
2755 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2756 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2757
ff5dec5c
SM
27582010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2759
2760 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2761
8785b888
EZ
27622010-04-23 Eli Zaretskii <eliz@gnu.org>
2763
58ccf243 2764 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2765 * xdisp.c (pop_it): When the stack is popped after displaying
2766 from a string, bidi-iterate to exit from the text portion covered
2767 by the `display' property or overlay. (Bug#5988, bug#5920)
2768
feeb1604
DN
27692010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2770
8e324eb6
DN
2771 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2772 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2773
809fcaba
DN
2774 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2775 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2776
ed710380
DN
2777 Simplify STARTFILES definition.
2778 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2779 relying on Makefile.in to define it.
2780 * s/cygwin.h (START_FILES): Likewise.
2781 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2782
feeb1604
DN
2783 Clean up Solaris code.
2784 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2785 (LIB_MOTIF): Remove, configure takes care of this.
2786 (NOT_USING_MOTIF): Remove, unused.
2787 * xrdb.c: Remove #if 0-ed #include.
2788 (SYSV): Remove conditional for old SysV.
2789 * sysdep.c (closedir): Remove conditional code for Solaris,
2790 Solaris has closedir.
2791
a0d0b563
JD
27922010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2793
2794 * xsettings.c (read_and_apply_settings): Check if current_font is
2795 NULL before strcmp (Bug#6001).
2796
56bae7c7
DN
27972010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2798
2799 Clean up HP-UX files.
2800 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2801 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2802 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2803 * s/hpux10-20.h: ... to the only user, here.
2804
372b7a95
EZ
28052010-04-21 Eli Zaretskii <eliz@gnu.org>
2806
2807 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2808 use buffer-local values of paragraph-start and paragraph-separate.
2809 <paragraph_start_re, paragraph_separate_re>: Rename from
2810 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2811 (Bug#5992)
2812
f904c0f9
JD
28132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2814
2815 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2816 current_tool_bar_style are new.
2817 (store_config_changed_event): Rename from store_font_changed_event.
2818 (XSETTINGS_TOOL_BAR_STYLE): New define.
2819 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2820 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2821 HAVE_XFT.
2822 (something_changedCB): store_font_changed_event is now
c4cc8b9a 2823 store_config_changed_event.
f904c0f9
JD
2824 (parse_settings): Rename from parse_xft_settings. Read
2825 non-xft xsettings outside #ifdef HAVE_XFT.
2826 (read_settings): Renamed from read_xft_settings.
2827 (apply_xft_settings): Take current settings as parameter. Do not
2828 call read_(xft)_settings.
2829 (read_and_apply_settings): New function.
2830 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2831 read_and_apply_settings if there are settings to be read.
2832 (init_xsettings): Renamed from init_xfd_settings.
2833 Call read_and_apply_settings unconditionally.
2834 (xsettings_initialize): Call init_xsettings.
2835 (Ftool_bar_get_system_style): New function.
2836 (syms_of_xsettings): Define Qmonospace_font_name and
2837 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2838 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2839 dynamic-setting.
31a01b90 2840 Move misplaced HAVE_GCONF
f904c0f9
JD
2841
2842 * xsettings.h (Ftool_bar_get_system_style): Declare.
2843
2844 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2845 Qtext, Qboth, Qboth_horiz are new.
2846 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2847 Vtool_bar_style, tool_bar_max_label_size.
2848
2849 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2850
2851 * keyboard.c: QClabel is new.
2852 (parse_tool_bar_item): Take out QClabel from tool bar items.
2853 Try to construct a label if ther is no QClabel.
2854 (syms_of_keyboard): Intern :label as QClabel.
2855
2856 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2857 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2858 New.
2859
2860 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2861 dynamic-setting.el.
2862
2863 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2864 (xg_make_tool_item, xg_show_toolbar_item): New function.
2865 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2866 Call xg_make_tool_item to make a tool bar item.
2867 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2868
2869 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2870 into account for toolbars.
2871
c632dfda
JD
28722010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2873
2874 * data.c (make_blv): Declarations before code (Bug#5993).
2875
10efe302
GM
28762010-04-21 Glenn Morris <rgm@gnu.org>
2877
2878 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2879 Define using autoconf, not cpp.
2880 (LIBXSM): New variable, set by autoconf.
2881 (LIBXT): Use $LIBXSM.
2882
4285ac5a
DN
28832010-04-21 Dan Nicolaescu <local_user@dannlt>
2884
3ec759e7
DN
2885 Remove NOMULTIPLEJOBS, unused.
2886 * s/template.h (NOMULTIPLEJOBS):
2887 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2888
4285ac5a
DN
2889 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2890 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2891 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2892 detects -znocombreloc and passes it to the linker
2893 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2894
2807228d
GM
28952010-04-21 Glenn Morris <rgm@gnu.org>
2896
2897 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2898
574c05e2
KK
28992010-04-21 Karel Klíč <kklic@redhat.com>
2900
2901 * Makefile.in (LIBSELINUX_LIBS): New.
2902 (LIBES): Add $LIBSELINUX_LIBS.
2903 * eval.c, lisp.h (call7): New function.
2904 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2905 (Ffile_selinux_context, Fset_file_selinux_context):
2906 New functions.
2907 (Fcopy_file): New parameter preserve-selinux-context.
2908 (Frename_file): Preserve selinux context when renaming by copy-file.
2909
91eac4bb 29102010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2911 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2912
50426a04
JB
2913 Don't depend on cm.c or termcap.c on Windows, use stubs.
2914 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2915 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2916 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2917 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2918 (sys_tputs, sys_tgetstr): New stubs.
2919 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2920 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2921
938efb77
JB
29222010-04-20 Juanma Barranquero <lekktu@gmail.com>
2923
2924 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2925
b4bf28b7
SM
29262010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2927
8b1e1112
SM
2928 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2929 Just signal a warning rather than an error when inside a let.
2930 (Fmake_variable_frame_local): Add the same test.
2931
933ac235
SM
2932 * font.c (syms_of_font): Make the style table vars read-only.
2933
b4bf28b7
SM
2934 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2935 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2936
2937 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2938
93d68d0c
EZ
29392010-04-20 Eli Zaretskii <eliz@gnu.org>
2940
2941 Fix R2L paragraph display on TTY.
2942
2943 * xdisp.c (unproduce_glyphs): New function.
2944 (display_line): Use it when produced glyphs are discarded from R2L
2945 glyph rows.
2946 (append_composite_glyph): In R2L rows, prepend the glyph rather
2947 than appending it.
2948
2949 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2950 rather than append it. Set up the resolved_level and bidi_type
2951 attributes of the appended glyph.
283ccc18
EZ
2952 (produce_special_glyphs): Mirror the backslash continuation
2953 character in R2L lines.
93d68d0c 2954
283ccc18 2955 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2956
283ccc18
EZ
2957 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2958 append_stretch_glyph.
2959 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2960 off-by-one error in computing x at end of text in the row.
2961 (append_stretch_glyph): In reversed row, prepend the glyph rather
2962 than append it. Set resolved_level and bidi_type of the glyph.
2963 (extend_face_to_end_of_line): If the row is reversed, prepend a
2964 stretch glyph whose width is such that the rightmost glyph will be
2965 drawn at the right margin of the window. Fix off-by-one error on
2966 TTY frames in testing whether a line needs face extension. Fix
2967 face extension at ZV. If this is the last glyph row, use
2968 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2969 region face.
2970 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2971 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2972 row->continuation_lines_width.
283ccc18
EZ
2973 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2974 are at ZV. Fixes a crash when reseated to ZV by
2975 try_window_reusing_current_matrix.
45903529
EZ
2976 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2977 which happens with R2L glyph rows. Fixes a crash when inserting a
2978 character at end of an R2L line.
283ccc18
EZ
2979 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2980 treat them as having zero-width characters. Improve comments.
2981 Don't reverse pos_before and pos_after for reversed glyph rows.
2982 Set cursor.x to negative value when the cursor might be on the
2983 left fringe.
2984 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2985 left fringe, not the right one.
f951a506
EZ
2986 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2987 (erase_phys_cursor): For reversed cursor_row, support cursor on
2988 the left fringe.
2989
283ccc18
EZ
2990 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2991 of continuation indicators on the fringes.
2992 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2993 left fringe.
2994
f951a506
EZ
2995 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2996 draw cursor on the left fringe.
2997
2998 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2999 cursor on the left fringe.
3000
f951a506
EZ
3001 * dispnew.c (update_text_area): Handle reversed desired rows when
3002 the cursor is on the left fringe.
3003 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3004 below, not by 0, for when the cursor is on the left fringe.
3005
3bb49aaf
JD
30062010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3007
3008 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3009 widget is a scrollbar.
3010
c0be27fd
KH
30112010-04-20 Kenichi Handa <handa@m17n.org>
3012
3013 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3014 only when the arg CHARSET_LIST is nil.
3015
ce5b453a
SM
30162010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3017
3018 Make variable forwarding explicit rather the using special values.
3019 Basically, this makes the structure of buffer-local values and object
3020 forwarding explicit in the type of Lisp_Symbols rather than use
3021 special Lisp_Objects for that. This tends to lead to slightly more
3022 verbose code, but is more C-like, simpler, and makes it easier to make
3023 sure we handled all cases, among other things by letting the compiler
3024 help us check it.
3025 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3026 Removing forwarding objects.
3027 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3028 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3029 explicit rather than hiding them inside Lisp_Object "values".
3030 (XFWDTYPE): New macro.
3031 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3032 (XBUFFER_LOCAL_VALUE): Remove.
3033 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3034 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3035 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3036 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3037 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3038 Remove the Lisp_Misc_* header.
3039 (struct Lisp_Buffer_Local_Value): Redefine.
3040 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3041 (struct Lisp_Misc_Any): Add filler to get the right size.
3042 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3043 Lisp_Intfwd.
3044 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3045 (DEFVAR_KBOARD): Allocate a forwarding object.
3046 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3047 (let_shadows_global_binding_p): New function.
3048 (union Lisp_Val_Fwd): New type.
3049 (make_blv): New function.
3050 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3051 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3052 (swap_in_symval_forwarding, find_symbol_value, Fset)
3053 (let_shadows_buffer_binding_p, set_internal, default_value)
3054 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3055 (Fkill_local_variable, Fmake_variable_frame_local)
3056 (Flocal_variable_p, Flocal_variable_if_set_p)
3057 (Fvariable_binding_locus):
3058 * xdisp.c (select_frame_for_redisplay):
3059 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3060 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3061 * frame.c (store_frame_param):
3062 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3063 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3064 value structure.
3065 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3066 (clone_per_buffer_values): Only adjust markers into the current buffer.
3067 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3068 (Fbuffer_local_value, set_buffer_internal_1)
3069 (swap_out_buffer_local_variables):
3070 Adapt to the new symbol value structure.
3071 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3072 (defvar_per_buffer): Take a new arg for the fwd object.
3073 (buffer_lisp_local_variables): Return a proper alist (different fix
3074 for bug#4138).
3075 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3076 (Fgarbage_collect): Don't handle buffer_defaults specially.
3077 (mark_object): Handle new symbol value structure rather than the old
3078 special Lisp_Misc_* objects.
3079 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3080 * term.c (set_tty_color_mode):
3081 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3082 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3083 a buffer_local_flags.
3084 * print.c (print_object): Get rid of impossible forwarding objects.
3085
fd3998ff
EZ
30862010-04-19 Eli Zaretskii <eliz@gnu.org>
3087
3088 * bidi.c (bidi_get_type, bidi_get_category)
3089 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3090 (bidi_type_of_next_char, bidi_level_of_next_char):
3091 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3092
e42cd1a7
JB
30932010-04-19 Juanma Barranquero <lekktu@gmail.com>
3094
3095 * dired.c (Ffile_attributes): Fix typo in docstring.
3096
6e104790 30972010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3098
3099 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3100 NSInteger (Bug#5811).
3101
6e104790 31022010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3103
3104 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3105 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3106
6e104790 31072010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3108
3109 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3110
6e104790
SM
31112010-04-19 Chong Yidong <cyd@stupidchicken.com>
3112
3113 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3114 terminal frames (Bug#5837).
3115
37dcfea0
EZ
31162010-04-19 Eli Zaretskii <eliz@gnu.org>
3117
d1da276f
EZ
3118 * .gdbinit (xsubchartable): New command.
3119
37dcfea0
EZ
31202010-04-19 Eli Zaretskii <eliz@gnu.org>
3121
3122 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3123 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3124 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3125 and
3126 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3127
e9515805
SM
31282010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3129
3130 * alloc.c (Fpurecopy): Hash-cons if requested.
3131 (syms_of_alloc): Update purify-flag docstring.
3132
22aa44a8
JD
31332010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3134
3135 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3136 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3137
ebb5722e
EZ
31382010-04-17 Eli Zaretskii <eliz@gnu.org>
3139
3140 Fix a crash when an NSM character is inserted at BEGV.
3141
3142 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3143 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3144 NEUTRAL_B or UNKNOWN_BT.
3145
0f4442ef
EZ
31462010-04-16 Eli Zaretskii <eliz@gnu.org>
3147
3148 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3149 other rows with cursor unless they are different from this row and
3150 this row is part of a continued line. (Bug#5943)
3151
7d4e45f8
DN
31522010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3153
3154 * s/freebsd.h: Restore osreldate.h include.
3155 Suggested by Naohiro Aota.
3156
5ba5ec85
J
31572010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3158
3159 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3160
20af301d
CY
31612010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3162
3163 * s/cygwin.h: Avoid linking against static libgcc.
3164
a4b000fb
JL
31652010-04-15 Juri Linkov <juri@jurta.org>
3166
3167 * window.c: Add Qscroll_command.
3168 Remove Vscroll_preserve_screen_position_commands.
3169 (window_scroll_pixel_based, window_scroll_line_based): Check the
3170 `scroll-command' property on the last command instead of searching
3171 the last command in Vscroll_preserve_screen_position_commands.
3172 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3173 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3174 (scroll-preserve-screen-position): Doc fix.
3175 (Vscroll_preserve_screen_position_commands): Remove variable.
3176
bc319ba4
DN
31772010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3178
6bb24457
DN
3179 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3180
19d4c244
DN
31812010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3182
3183 Reduce cpp use in Makefile.in.
3184 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3185 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3186 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3187 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3188 (CRT0_COMPILE): Remove, inline it in the only user.
3189
32129746
JL
31902010-04-14 Juri Linkov <juri@jurta.org>
3191
3192 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3193 `scroll-up-command' and `M-v' from `scroll-down' to
3194 `scroll-down-command'.
3195
9013a7f8
JL
31962010-04-14 Juri Linkov <juri@jurta.org>
3197
3198 * window.c (Vscroll_preserve_screen_position_commands): New variable
3199 with the default value as the list of Qscroll_down and Qscroll_up.
3200 (window_scroll_pixel_based, window_scroll_line_based): Search the
3201 last command in the list Vscroll_preserve_screen_position_commands
3202 instead of comparing with Qscroll_up and Qscroll_down.
3203
4bef8d26
JD
32042010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3205
92848133
JD
3206 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3207 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3208 does that.
3209
4bef8d26
JD
3210 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3211 to zero.
3212
58b963f7
SM
32132010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3214
84164a0d
SM
3215 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3216
2b0a91e7
SM
3217 Try to solve the problem of spurious EOF chars in long lines of text
3218 sent to interactive subprocesses.
3219 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3220 (system_process_attributes): Remove unused var `ttotal'.
3221 * process.c (send_process): Don't bother breaking long line with EOF
3222 chars when talking to ttys any more.
3223 (wait_reading_process_output): Output a warning when called in such
3224 a way that it could block without being interruptible.
3225
58b963f7
SM
3226 Try to detect file modification within the same second.
3227 * buffer.h (struct buffer): New field modtime_size.
3228 * buffer.c (reset_buffer): Initialize it.
3229 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3230 (Fverify_visited_file_modtime): Check it.
3231 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3232 (Fset_visited_file_modtime): Set (or clear) it.
3233
01f5787b
SM
32342010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3235
3236 * process.c (status_notify): Remove unused var `ro'.
3237
83725342
JD
32382010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3239
3240 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3241 more than one visual (Bug#5938).
3242
b9465836
DN
32432010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3244
50426a04
JB
3245 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3246 Undefine.
b9465836 3247
8d9c8ece
DN
32482010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3249
b1f52161
DN
3250 Remove C_SWITCH_SYSTEM_TEMACS.
3251 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3252 (malloc, realloc, free): Use emacs, not temacs for conditional
3253 definition.
3254
3255 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3256 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3257
8d9c8ece
DN
3258 Use autoconf, not cpp for some variables.
3259 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3260 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3261 (ALL_CFLAGS): Use them as make variables.
3262 (really-lwlib, really-oldXMenu): Do not pass them.
3263
1ecb2d3f
JD
32642010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3265
3266 * xmenu.c (apply_systemfont_to_dialog): New.
3267 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3268
3a4fa2f2
SM
32692010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3270
97e53006
SM
3271 * process.c (exec_sentinel): Preserve current-buffer.
3272
3a4fa2f2
SM
3273 * process.c (read_process_output): Move the save-current-buffer to
3274 apply to both the filter and the non-filter branches.
3275
88df7221
DN
32762010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3277
3278 * s/msdos.h (UNEXEC): New definition.
3279
5634ff85
YM
32802010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3281
6eff5c3d
YM
3282 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3283 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3284
3285 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3286 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3287 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3288 TRY_WINDOW_CHECK_MARGINS.
3289
3290 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3291 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3292 width only when it is for padding.
5634ff85 3293
b13aef54
J
32942010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3295
3296 * xfns.c (Fx_show_tip): Call try_window in a loop until
3297 fonts_changed_p is zero (Bug#2423).
3298
21d28484
EZ
32992010-04-08 Eli Zaretskii <eliz@gnu.org>
3300
3301 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3302 the end of TEXT_AREA. (Bug#5856)
3303
0269ef77
JD
33042010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3305
3306 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3307 HAVE_GCONF.
3308
5930fe97
EZ
33092010-04-08 Eli Zaretskii <eliz@gnu.org>
3310
3311 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3312 prev.orig_type, for resolving type of NSM. (Bug#5858)
3313
99852628
JD
33142010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3315
3316 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3317 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3318 in current_font.
3319 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3320 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3321 New functions.
3322 (syms_of_xsettings): Initialize current_font.
3323 defsubr Sfont_get_system_normal_font.
99852628
JD
3324
3325 * xsettings.h (Ffont_get_system_normal_font,
3326 xsettings_get_system_normal_font): Declare.
3327
3328 * xfns.c (extern xlwmenu_default_font): Remove.
3329 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3330 to xlwmenu.c.
3331
3332 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3333 menu items in UTF-8.
3334
3335 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3336 (apply_systemfont_to_menu): New function.
3337 (set_frame_menubar, create_and_show_popup_menu): Call
3338 apply_systemfont_to_menu.
3339
7fc874c4
J
33402010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3341
3342 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3343 FRAME_LINE_TO_PIXEL_Y.
3344
3345 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3346 pixelwidth/height.
3347
863bf481
DN
33482010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3349
5e5a3b92
DN
3350 Simplify code for HP machines.
3351 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3352 for GNU_LINUX, not needed.
3353 (UNEXEC, NEED_BSDTTY): Move definitions...
3354 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3355
863bf481
DN
3356 * m/iris4d.h (UNEXEC): Move definition ...
3357 * s/irix6-5.h (UNEXEC): ... here.
3358
3e6bec3b
JD
33592010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3360
3361 * xfns.c (set_machine_and_pid_properties): New function.
3362 (Fx_create_frame): Call set_machine_and_pid_properties.
3363
2912322b
SM
33642010-04-03 Eli Zaretskii <eliz@gnu.org>
3365
1502b819
EZ
3366 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3367 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3368 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3369
2912322b
SM
3370 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3371 in this function. (Bug#5703)
3372
33732010-04-03 Chong Yidong <cyd@stupidchicken.com>
3374
3375 * nsterm.h: Fix last change.
3376
c435b432
DN
33772010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3378
a568f507
DN
3379 * m/intel386.h (NO_REMAP): Move definition ...
3380 * s/msdos.h (NO_REMAP): ... here.
3381
4cd9f6c2
DN
3382 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3383
c435b432
DN
3384 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3385 used on those platforms.
3386
42a2c622
DN
33872010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3388
3389 Remove extern errno declarations.
3390 * xterm.c:
3391 * xrdb.c:
3392 * w32term.c:
3393 * unexec.c:
3394 * unexaix.c:
3395 * sysdep.c:
3396 * process.c:
3397 * lread.c:
3398 * keyboard.c:
3399 * floatfns.c:
3400 * filelock.c:
3401 * fileio.c:
3402 * emacs.c (main):
3403 * ecrt0.c:
3404 * dispnew.c:
3405 * callproc.c:
3406 * buffer.c: Remove errno extern declarations.
3407 * s/netbsd.h (NEED_ERRNO): Remove.
3408
8224f93d
DN
34092010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3410
3411 Remove all uses of LIBX11_SYSTEM.
3412 * Makefile.in (LIBX11_SYSTEM): Remove.
3413 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3414 instead.
3415
814062c7
EZ
34162010-04-01 Eli Zaretskii <eliz@gnu.org>
3417
ed68db4d
EZ
3418 Remove support for DJGPP v1.x (bug#5813).
3419
3420 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3421 * s/msdos.h:
3422 * unexec.c (make_hdr, copy_text_and_data):
3423 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3424 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3425 (IT_set_terminal_modes, __write, _rename, gethostname)
3426 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3427 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3428 the value of __DJGPP__.
ed68db4d
EZ
3429 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3430 compatibility code.
8224f93d
DN
3431 * lread.c:
3432 * gmalloc.c (memalign):
3433 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3434 * emacs.c (main):
3435 * dosfns.c (init_dosfns):
ed68db4d
EZ
3436 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3437
52f4d8d5
EZ
34382010-04-01 Eli Zaretskii <eliz@gnu.org>
3439
814062c7
EZ
3440 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3441 string with `cursor' property comes from an `after-string'
3442 overlay. (Bug#5816)
3443
0dc2e11d
GM
34442010-04-01 Glenn Morris <rgm@gnu.org>
3445
3446 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3447 Define as Makefile variables.
3448 (LIBX): Use above variables rather than directly using autoconf.
3449
1d29df59
DN
34502010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3451
3452 Clean up BSD_SYSTEM use.
3453 * xterm.c:
3454 * process.c:
3455 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3456 for including <sys/ioctl.h>.
3457 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3458 code is only used for MSDOS.
3459
1546c559
JL
34602010-03-31 Juri Linkov <juri@jurta.org>
3461
3462 * image.c: Add `Qextension_data'.
3463 (syms_of_image): Initialize and staticpro `Qextension_data'.
3464 (Fimage_metadata): Rename from `Fimage_extension_data'.
3465 (gif_load): Put GIF extension data to the property
3466 `Qextension_data'.
3467
6521c534
CY
34682010-03-31 Chong Yidong <cyd@stupidchicken.com>
3469
3470 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3471 * nsterm.h: Fix prototype.
3472
52c30783
EZ
34732010-03-31 Eli Zaretskii <eliz@gnu.org>
3474
3475 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3476 trailing whitespace in right-to-left rows.
3477
855a0da7
SM
34782010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3479
3480 Get rid of the direct_output optimizations.
3481 * keyboard.c (nonundocount): Remove extern declaration.
3482 (command_loop_1): Remove brittle optimisation for cheap and
3483 common operations.
3484 * xdisp.c (redisplay_internal): Don't bother checking
3485 redisplay_performed_directly_p any more.
3486 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3487 any more.
3488 * dispnew.c (redisplay_performed_directly_p)
3489 (direct_output_for_insert, direct_output_forward_char):
3490 * dispextern.h (redisplay_performed_directly_p)
3491 (direct_output_for_insert, direct_output_forward_char): Remove.
3492 * cmds.c (nonundocount): Make it static.
3493
85738751 34942010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3495
3496 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3497
85738751 34982010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3499
3500 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3501 invisible (Bug#5766).
3502
85738751 35032010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3504
855a0da7
SM
3505 * xdisp.c (x_consider_frame_title, update_window_cursor):
3506 Remove HAVE_NS conditionals.
194d44e7 3507 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3508
3509 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3510 filename for the title.
3511 (ns_set_doc_edited): Do nothing if the selected window is a
3512 minibuffer window.
3513
3514 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3515 ns_set_doc_edited.
3516
3517 * nsterm.m: Remove unneeded prototype.
3518
85738751 35192010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3520
3521 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3522 in the DOC file. (Bug#5336)
3523
85738751 35242010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3525
3526 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3527
75d1428c
SM
35282010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3529
3530 * window.c (keys_of_window): Remove redundant/overridden bindings.
3531
82043cfb
EZ
35322010-03-30 Eli Zaretskii <eliz@gnu.org>
3533
3534 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3535 Restore original behavior when the iterator is not bidi_p.
3536
b5dd0ae7
DN
35372010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3538
3539 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3540
bd924a5d
EZ
35412010-03-30 Eli Zaretskii <eliz@gnu.org>
3542
3543 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3544 are outside the range of cached character positions.
3545
3580374b
JB
35462010-03-30 Juanma Barranquero <lekktu@gmail.com>
3547
3548 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3549
a7b02820
EZ
35502010-03-30 Eli Zaretskii <eliz@gnu.org>
3551
3552 Initial support for bidirectional editing.
3553
3554 * Makefile.in (obj): Include bidi.o.
3555 (bidi.o): New target.
3556
3557 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3558 ($(BLD)/bidi.$(O)): New target.
3559
3560 * bidi.c: New file.
3561
3562 * buffer.h (struct buffer): New members bidi_display_reordering
3563 and bidi_paragraph_direction.
3564
3565 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3566 and bidi_paragraph_direction.
3567 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3568 and bidi-paragraph-direction.
3569 (Fbuffer_swap_text): Swap the values of
3570 bidi_display_reordering and bidi_paragraph_direction.
3571
3572 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3573 (bidi_type_t, bidi_dir_t): New types.
3574 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3575 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3576 prev_stop, base_level_stop, and eol_pos.
3577 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3578 (IT_STACK_SIZE): Enlarge to 5.
3579 (struct glyph_row): New member reversed_p.
3580 <string_buffer_position>: Update prototype.
3581 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3582 glyph_row if bidi_it.paragraph_dir == R2L.
3583 (struct glyph): New members resolved_level and bidi_type.
3584
3585 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3586 processing or buffer's direction is right-to-left.
3587 (prepare_desired_row): Preserve the reversed_p flag.
3588 (row_equal_p): Compare the reversed_p attributes as well.
3589
3590 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3591 bidi_init_it and set it->paragraph_embedding from the current
3592 buffer's value of bidi_paragraph_direction.
3593 (reseat_1): Initialize bidi_it.first_elt.
3594 (set_iterator_to_next, next_element_from_buffer): Use the value of
3595 paragraph_embedding to determine the paragraph direction.
3596 (set_iterator_to_next): Under bidi reordering, call
3597 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3598 new_paragraph flag is set in the bidi iterator.
3599 (next_element_from_buffer): If bidi_it.first_elt is set,
3600 initialize paragraph direction and find the first character to
3601 display in the visual order. If reseated to a middle of a line,
3602 prime the bidi iterator starting at the line's beginning. Handle
3603 the situation where we overstepped stop_charpos due to
3604 non-linearity of the bidi iteration. Likewise for when we back up
3605 beyond the previous stop_charpos. When moving across stop_charpos,
3606 record it in prev_stop.
3607 (display_line): Set row->end and it->start for the next row to the
3608 next character in logical order. Always extend reversed_p rows to
3609 the end of line, even if they end at ZV. Copy the reversed_p flag
3610 to the next glyph row. Keep calling set_cursor_from_row for
3611 bidi-reordered rows even if we already have a possible candidate
3612 for cursor position. Set row_end after all the row's glyphs have
3613 been produced, by looping over the glyphs. Record the position
3614 after EOL in it->eol_pos, and use it to set end_pos of the last
3615 row produced for a continued line.
3616 <Qright_to_left, Qleft_to_right>: New variables.
3617 (syms_of_xdisp): Initialize and staticpro them.
3618 (string_buffer_position_lim): New function.
3619 (string_buffer_position): Most of code moved to
3620 string_buffer_position_lim. Last argument and return value are
3621 now EMACS_INT; all callers changed.
3622 (set_cursor_from_row): Rewritten to support bidirectional text and
3623 reversed glyph rows.
3624 (text_outside_line_unchanged_p, try_window_id): Disable
3625 optimizations if we are reordering bidirectional text and the
3626 paragraph direction can be affected by the change.
3627 (append_glyph, append_composite_glyph)
3628 (produce_image_glyph, append_stretch_glyph): Set the
3629 resolved_level and bidi_type members of each glyph.
3630 (append_glyph): If the glyph row is reversed, prepend the glyph
3631 rather than appending it.
3632 (handle_stop_backwards): New function.
3633 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3634 (reseat): call handle_stop_backwards to recompute prev_stop and
3635 base_level_stop for the new position.
3636 (handle_invisible_prop): Under bidi iteration, skip invisible text
3637 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3638 paragraph direction. Update IT->prev_stop after skipping
3639 invisible text.
3640 (move_it_in_display_line_to): New variables prev_method
3641 and prev_pos. Compare for strict equality in
3642 BUFFER_POS_REACHED_P.
3643 (try_cursor_movement): Examine all the candidate rows that occlude
3644 point, to return the best match. If rows are bidi-reordered
3645 and point moved backwards, back up to the row that is not a
3646 continuation line, and start looking for a suitable row from
3647 there.
3648
3649 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3650 rather than appending, if the glyph_row's reversed_p flag is set.
3651 Set the resolved_level and bidi_type members of each glyph.
3652
3653 * .gdbinit (pbiditype): New command.
3654 (pgx): Use it to display bidi level and type of the glyph.
3655 (pitx): Display some bidi information about the iterator.
3656 (prowlims, pmtxrows): New commands.
3657
32a8894e
DN
36582010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3659
3660 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3661 * s/usg5-4.h (LIBS_DEBUG):
3662 * s/irix6-5.h (C_DEBUG_SWITCH):
3663 * s/gnu-linux.h (LIBS_DEBUG):
3664 * s/darwin.h (LIBS_DEBUG):
3665 * s/bsd-common.h (LIBS_DEBUG):
3666 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3667 * m/iris4d.h (LIBS_DEBUG):
3668 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3669
3670 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3671 (LIBS_DEBUG): Remove definition.
3672
649dbf36
CY
36732010-03-27 Chong Yidong <cyd@stupidchicken.com>
3674
3675 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3676 Windows.
3677
cad4261f
YM
36782010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3679
3680 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3681 `connect' (Bug#5723).
3682
cd591dbc
HE
36832010-03-25 Helmut Eller <eller.helmut@gmail.com>
3684
3685 * process.c (Fmake_network_process): Call `select' for interrupted
3686 `connect' rather than creating new socket (Bug#5173).
3687
e867cb5d 36882010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3689
3690 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3691
3692 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3693
3694 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3695
e867cb5d 36962010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3697
3698 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3699 XLoadQueryFont.
3700
e867cb5d 37012010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3702
3703 * coding.c (decode_coding_ccl): Fix previous change for the
3704 multibyte case.
fb608df3
KH
3705 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3706 case that the output buffer is fullfilled.
3707 (encode_coding): Setup ccl program here.
fbdc1721 3708
5845f0ed
DN
37092010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3710
814fb708
DN
3711 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3712
5845f0ed
DN
3713 Simplify LIBS_MACHINE definitions.
3714 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3715 * m/iris4d.h (LIBS_MACHINE): Likewise.
3716 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3717 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3718 * s/netbsd.h: Remove commented out code.
5845f0ed 3719
b7064064
DN
37202010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3721
df7734b2
DN
3722 Remove dead code dealing with POSIX_SIGNALS.
3723 * atimer.c (set_alarm): Remove dead code, all USG systems define
3724 POSIX_SIGNALS.
3725 * data.c (arith_error): Likewise.
3726 * keyboard.c (input_available_signal, handle_user_signal)
3727 (interrupt_signal): Likewise.
3728 * process.c (sigchld_handler): Likewise.
3729 (create_process): Remove if 0 code. Remove HPUX conditional when
3730 !defined (POSIX_SIGNALS), it cannot be true.
3731 * syssignal.h: Remove USG5_4 and USG conditionals when
3732 !POSIX_SIGNALS, they cannot be true.
3733
b7064064
DN
3734 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3735 NO_SOCK_SIGIO, not used anymore.
3736
55da5ee3
DN
37372010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3738
0be96e3a
DN
3739 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3740 support vax on BSDs.
3741
55da5ee3
DN
3742 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3743 * s/aix4-2.h (ORDINARY_LINK): ... here.
3744
c0282183
AS
37452010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3746
82c3d67a
AS
3747 * Makefile.in (abs_builddir): Define.
3748 (bootstrap_exe): Use it.
3749 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3750
3613edce
SM
37512010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3752
3753 * Makefile.in (bootstrap_exe): Use an absolute name.
3754
7f110ddc
DN
37552010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3756
22e87574
DN
3757 Remove support for old GNU/Linux using libc version 5.
3758 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3759 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3760
05a670e6
DN
3761 Consolidate redundant definitions in s/bsd-common.h.
3762 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3763 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3764 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3765 doing it in all files that include this one.
3766 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3767 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3768 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3769 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3770 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3771 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3772 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3773 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3774 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3775
2968f561
DN
3776 Consolidate redundant definitions.
3777 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3778 it's undefined in all files that include this one.
3779 (POSIX_SIGNALS): Define here instead of doing it in all files that
3780 include this one.
3781 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3782 (POSIX_SIGNALS): Do not define.
3783 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3784 (POSIX_SIGNALS): Do not define.
3785 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3786 (POSIX_SIGNALS): Do not define.
3787
15d25dc0
DN
3788 Remove support for old UNIX System V systems.
3789 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3790 * s/usg-5-4-2.h: Remove.
3791
07e339e4
DN
3792 Remove support for Solaris on PPC and for old versions.
3793 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3794 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3795 that cancel each other.
3796 * s/sol2-3.h:
3797 * s/sol2-4.h:
3798 * s/sol2-5.h: Remove.
3799 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3800 (NO_REMAP): Remove, unused.
3801 (UNEXEC): Move definition ...
3802 * s/aix4-2.h (UNEXEC): ... here.
3803
7f110ddc
DN
3804 * s/openbsd.h: Remove support for non-ELF and for systems that do
3805 not support shared libraries.
3806 * s/netbsd.h:
3807 * s/freebsd.h: Likewise.
3808
605f35cd
DN
38092010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3810
3811 Remove non-working support for lynxos 3.0.
3812 * s/lynxos.h: Remove file.
3813
3814 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3815 COFF_BSD_SYMBOLS, nothing defines it anymore.
3816
aed71cf4
DN
38172010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3818
3819 Remove obsolete uses of HAVE_SHM.
3820 * emacs.c (standard_args):
3821 (Fdump_emacs):
3822 (syms_of_emacs): Remove code depending on HAVE_SHM.
3823
3824 * alloc.c: Remove HAVE_SHM dependent definition.
3825
3826 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3827
aded53ff
GM
38282010-03-18 Glenn Morris <rgm@gnu.org>
3829
17284745
GM
3830 * emacs.c (USAGE4): Hard-code bug address.
3831 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3832 (bug_reporting_address): Remove.
3833 (main): Don't call bug_reporting_address.
3834
aded53ff
GM
3835 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3836 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3837
303500aa
CY
38382010-03-15 Chong Yidong <cyd@stupidchicken.com>
3839
3840 * xfns.c (Fx_create_frame):
3841 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3842 on left.
3843
cef3058f
CY
38442010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3845
3846 * editfns.c (Fformat): Account for string precision when computing
3847 field width (Bug#5710).
3848
a647d59d
CY
38492010-03-12 Chong Yidong <cyd@stupidchicken.com>
3850
4fa42018
CY
3851 * xfns.c (Fx_create_frame): Set default to Qright.
3852
a647d59d
CY
3853 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3854 all window systems.
3855
6da23aaa
EZ
38562010-03-12 Eli Zaretskii <eliz@gnu.org>
3857
a96f6398 3858 These changes remove termcap.c from the build on Posix platforms.
83d02def 3859 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3860 (MSDOS_OBJ): ...to here.
3861 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3862 now identical to when LIBS_TERMCAP is defined.
3863
3864 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3865
3866 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3867
a96f6398 3868 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3869
288f9fc0
CY
38702010-03-10 Chong Yidong <cyd@stupidchicken.com>
3871
3872 * Branch for 23.2.
3873
d48cd3f4
SM
38742010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3875
3876 Cleanup setup of gl_state in various parts of the code.
3877 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3878 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3879 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3880 (skip_chars):
3881 * regex.c (regex_compile): Use it.
3882 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3883 it's now set in regex_compile when/if we need it.
3884
618db430
SM
38852010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3886
c0335e02
SM
3887 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3888 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3889 (QUIT): Use it to consolidate code and remove redundancy.
3890 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3891
254c06a8
SM
3892 * regex.c (regex_compile): Setup gl_state as well.
3893
618db430
SM
3894 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3895 (in_classes): Use CONSP before XCAR/XCDR.
3896
233f0c9f
CY
38972010-03-03 Chong Yidong <cyd@stupidchicken.com>
3898
3899 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3900 definitions, so that keyboard macros are correctly handled
3901 (Bug#5481).
3902
75f80e63
EZ
39032010-03-02 Eli Zaretskii <eliz@gnu.org>
3904
3905 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3906 text that could be relocated inside the call to emacs_mule_char.
3907 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3908 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3909
dcfb9bc4
KH
39102010-03-02 Kenichi Handa <handa@m17n.org>
3911
fc9a17bc
KH
3912 * character.c (parse_str_as_multibyte): Fix handling of the
3913 multibyte form of raw-bytes.
3914 (str_as_multibyte): Likewise.
3915
dcfb9bc4
KH
3916 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3917 form of raw-bytes.
3918
412c01b6
CY
39192010-02-28 Chong Yidong <cyd@stupidchicken.com>
3920
3921 * charset.c (load_charset_map_from_file)
3922 (load_charset_map_from_vector): Zero out allocated
3923 charset_map_entries before using them.
3924
df7e1ea0
AS
39252010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3926
3927 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3928
fe69a722
CY
39292010-02-27 Chong Yidong <cyd@stupidchicken.com>
3930
4ed28cf4
CY
3931 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3932 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3933
7379cfce
KH
39342010-02-26 Kenichi Handa <handa@m17n.org>
3935
f88cc4d6
KH
3936 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3937
7379cfce
KH
3938 * xdisp.c (reseat_to_string): Fix previous change.
3939
cf2fdcfb
CY
39402010-02-26 David Reitter <david.reitter@gmail.com>
3941
3942 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3943 Lisp_Object (Bug#4736).
3944
cc6c7c75
KH
39452010-02-25 Kenichi Handa <handa@m17n.org>
3946
3947 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3948
32e737d7
JD
39492010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3950
3951 * xterm.c (XTflash): Move declarations before statements.
3952
3953 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3954 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3955 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3956 (xg_create_tool_bar): Remove unused variables.
3957 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3958 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3959
676cae9f
CY
39602010-02-21 Chong Yidong <cyd@stupidchicken.com>
3961
3962 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3963
886cc2b8
SM
39642010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3965
3966 * term.c (fatal): Add a final \n if needed (bug#5596).
3967
ddb2d8e2
CY
39682010-02-18 Chong Yidong <cyd@stupidchicken.com>
3969
3970 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3971
2a4f8d3d
GM
39722010-02-18 Glenn Morris <rgm@gnu.org>
3973
3974 * callint.c (Finteractive): Doc fix.
3975
ebaf11b6
KH
39762010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3977
886cc2b8
SM
3978 * coding.c (record_conversion_result):
3979 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3980 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3981 memory allocation error.
3982
d0396581
KH
39832010-02-17 Kenichi Handa <handa@m17n.org>
3984
886cc2b8
SM
3985 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3986 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3987 (decode_coding): Setup ccl program here. Keep looping when the
3988 decoder stopped because the output buffer is
3989 fullfilled (bug#5534).
3990
3991 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3992
98599f74
JD
39932010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3994
471e4f04 3995 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3996 bug #5571.
886cc2b8 3997 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3998 overdrawn.
98599f74 3999
182659ae
JD
40002010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4001
4002 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4003 doing_interact here.
4004 (ice_connection_closed): New function.
4005 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4006 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4007 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4008 returns I/O error.
4009 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4010 bug #5512.
4011
9be32c4e 40122010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4013
4014 * nsfont.m (nsfont_open): The system's value for the font descent
4015 is negative, so round it down to avoid clipping.
4016
a2f3eb19
CY
40172010-02-06 Chong Yidong <cyd@stupidchicken.com>
4018
4019 * charset.c (load_charset_map_from_file)
4020 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4021 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4022
3088147c
CY
40232010-02-05 Chong Yidong <cyd@stupidchicken.com>
4024
4025 * charset.c (load_charset_map_from_file): Allocate large
4026 charset_map_entries structure on the heap rather than the stack.
4027 (Bug#5526).
4028
b57d9029
KH
40292010-01-31 Kenichi Handa <handa@m17n.org>
4030
4031 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4032 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4033
c67d885b
CY
40342010-01-31 Chong Yidong <cyd@stupidchicken.com>
4035
4036 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4037 <deactivated@gmail.com> (Bug#3605).
4038
8fab2362
CY
40392010-01-31 David De La Harpe Golden <david@harpegolden.net>
4040
4041 * fileio.c (Frename_file): Correctly rename symlinks to
4042 directories (Bug#5496).
4043
cb2a62f2
CY
40442010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4045
4046 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4047
944c7a26
AS
40482010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4049
4050 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4051
c024ac08
CY
40522010-01-29 Chong Yidong <cyd@stupidchicken.com>
4053
4054 * frame.c (DEFAULT_ROWS): Change default to 35.
4055
4056 * xfns.c (x_default_font_parameter): Change default XFT font to
4057 monospace-10 (Bug#3643).
4058
af93af83
EZ
40592010-01-29 Eli Zaretskii <eliz@gnu.org>
4060
4061 * w32inevt.c (key_event): Remove unnecessary comparison of
4062 event->uChar.AsciiChar with 128.
4063
ca0eb708
CY
40642010-01-28 Chong Yidong <cyd@stupidchicken.com>
4065
b242dbfc
CY
4066 * fileio.c (Frename_file): Fix last change (Bug#5487).
4067
ca0eb708
CY
4068 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4069
4070 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4071
45d45af5
JD
40722010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4073
4074 * xfns.c (Fx_create_frame): Remove window size matching code from
4075 2010-01-15.
a73f9c9d 4076 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4077
7e233730
JR
40782010-01-27 Jason Rumney <jasonr@gnu.org>
4079
4080 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4081 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4082
86e893e3
KH
40832010-01-27 Kenichi Handa <handa@m17n.org>
4084
4085 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4086 pattern string (Bug#4209).
86e893e3 4087
8719abec
CY
40882010-01-27 David De La Harpe Golden <david@harpegolden.net>
4089
4090 * fileio.c (Frename_file): Call copy-directory and
4091 delete-directory for directories, in order to handle cross-device
4092 renaming (Bug#3353).
4093
844794c8
JD
40942010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4095
aa3e13b5 4096 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4097 sizes 24 and 10. Bug #3643.
844794c8 4098
bd4b5750
SM
40992010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4100
8dc1adf6 4101 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4102 * keymap.c (shadow_lookup): Add `remap' arg.
4103 (describe_map, describe_vector): Update calls to shadow_lookup.
4104 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4105 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4106 perform remapping during shadow_lookup check of remapped_sequences.
4107
285d07e2
CY
41082010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4109
4110 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4111 png_check_sig, which has been removed in libpng 1.4.
4112
c6d09b8d
CY
41132010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4114
4115 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4116 lacks this header file).
4117
3d782998
YM
41182010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4119
4120 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4121 as in Emacs 22.
4122
2aff7c53
YM
41232010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4124
4125 * lisp.h (make_pure_string): String pointer arg now points to const.
4126
4127 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4128 args now point to const.
4129
74327f7a
EZ
41302010-01-22 Eli Zaretskii <eliz@gnu.org>
4131
4132 * lread.c (Fload): Don't treat files without .elc extension as
4133 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4134 them. (bug#5303)
4135
4d1e6632
KH
41362010-01-20 Kenichi Handa <handa@m17n.org>
4137
4138 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4139 treat the source as actual byte sequence.
4140
1fdede8f
AM
41412010-01-19 Alan Mackenzie <acm@muc.de>
4142
4143 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4144 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4145 `signal_after_change_p' to `coherent_change_p', and make the
4146 invocation of `modify_region' conditional on it.
4147
67477f30
JD
41482010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4149
4150 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4151 for debug purpose.
4152 (syms_of_xsettings): Declare xft-settings.
4153
244b023e
CY
41542010-01-18 Chong Yidong <cyd@stupidchicken.com>
4155
4156 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4157
617364fe
CY
41582010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4159
4160 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4161
4fe22cdf
CY
41622010-01-16 Chong Yidong <cyd@stupidchicken.com>
4163
4164 * emacs.c (standard_args): Adjust arg priorities to reflect how
4165 they are processed in startup.el.
4166
e118d2be
AS
41672010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4168
4169 * Makefile.in (lisp, shortlisp): Update.
4170
523ae620
SM
41712010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4172
4173 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4174 code, link the new kboard into all_kboard before running Lisp code,
4175 and protect the new terminal with GCPRO (Bug#5365).
4176 (x_term_init): Remove unused var `atom'.
4177 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4178
f0d13888
JD
41792010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4180
4181 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4182 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4183 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4184 this. Bug #3643.
f0d13888 4185
cc320f07
KH
41862010-01-15 Kenichi Handa <handa@m17n.org>
4187
4188 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4189
7ffdf101
CY
41902010-01-15 Chong Yidong <cyd@stupidchicken.com>
4191
4192 * nsterm.m (Qnone): Define.
4193
4194 * nsfns.m (Qnone): Move definition to nsterm.m.
4195
d12bd917
KH
41962010-01-14 Kenichi Handa <handa@m17n.org>
4197
4198 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4199 systems.
4200
d9a7c140
KH
42012010-01-14 Kenichi Handa <handa@m17n.org>
4202
4203 Make auto-composition work on all buffers even if they are
4204 fundamental mode.
4205
4206 * composite.c (Vauto_composition_mode): New variable.
4207 (composition_compute_stop_pos): Check Vauto_composition_mode
4208 instead of Vauto_composition_function.
4209 (composition_adjust_point, Ffind_composition_internal): Likewise.
4210 (syms_of_composite): Declare Lisp variable
4211 "auto-composition-mode" here.
4212
63286bb2
CY
42132010-01-13 Chong Yidong <cyd@stupidchicken.com>
4214
4215 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4216 during call to vendor-specific-keysyms (Bug#5365).
4217
c2623ee7
YM
42182010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4219
4220 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4221 Call SIGNAL_THREAD_CHECK (Bug#5333).
4222
4223 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4224 Call SIGNAL_THREAD_CHECK.
4225
0b5397c2
SM
42262010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4227
4228 Try to fix bug#5314. This is probably not the final word, tho.
4229 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4230 recent-auto-save-p as a side-effect.
4231 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4232 * buffer.c (Fkill_buffer, reset_buffer):
4233 * editfns.c (Fsubst_char_in_region):
4234 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4235 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4236
dc954cb2
KH
42372010-01-13 Kenichi Handa <handa@m17n.org>
4238
4239 Display buffer name, etc. in mode line by composing correctly.
4240
4241 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4242 STRING is not nil.
0b5397c2 4243 (display_mode_element): Adjust for the change of
dc954cb2
KH
4244 decode_mode_spec and display_line.
4245 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4246 (display_string): Handle the case that STRING is non-null and
4247 LISP_STRING is not nil.
4248
0b5397c2
SM
4249 * xterm.c (x_draw_composite_glyph_string_foreground):
4250 Pay attention to s->face->overstrike.
dc954cb2
KH
4251
4252 * composite.c (composition_reseat_it): Don't check PT if STRING is
4253 non nil.
4254
4a00eaca
YM
42552010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4256
4257 * keyboard.c (read_char): Don't apply previous change when current
4258 buffer is unchanged by command execution.
4259
60abb287
JD
42602010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4261
4262 * keyboard.c (read_char): Return after executing from special map.
4263
893db5bc
GM
42642010-01-12 Glenn Morris <rgm@gnu.org>
4265
4266 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4267 bug-gnu-emacs rather than emacs-pretest-bug.
4268
4d03ece0
CY
42692010-01-11 Chong Yidong <cyd@stupidchicken.com>
4270
4271 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4272 initializing the Lisp variables that depend on them.
4273
1df47e38
YM
42742010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4275
4276 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4277 Clear areas that will not be updated after change of menu bar lines.
4278 Clear the menu bar window's current matrix when the window gets empty.
4279
2f1c6384
CY
42802010-01-09 Chong Yidong <cyd@stupidchicken.com>
4281
e398c61c
CY
4282 * intervals.h, textprop.c (extend_property_ranges): Return value
4283 and args changed. Discard properties that begin at or after the
4284 new end (Bug#5306).
4285
4286 * editfns.c (Fformat): Caller changed.
4287
e5a29a10
CY
4288 * nsterm.m (ns_set_default_prefs): Delete function.
4289 (syms_of_nsterm): Initialize ns_command_modifier,
4290 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4291 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4292
2f1c6384
CY
4293 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4294 position (Bug#4040).
4295
d427a9fa
EZ
42962010-01-09 Eli Zaretskii <eliz@gnu.org>
4297
4298 * editfns.c (Ffloat_time): Doc fix.
4299
21b9df2f
JD
43002010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4301
4302 * xfns.c (Fx_create_frame): Don't create frame larger than display
4303 by default bug#3643.
4304
4b00d3b1
YM
43052010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4306
4307 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4308 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4309 windows above internal border.
4310
4311 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4312 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4313 windows above internal border.
4314
4315 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4316 tool bar windows specially.
4317
4318 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4319
4320 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4321 specially.
4322 (XTflash): Take account of menu bar height.
4323
4324 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4325 specially.
4326
5075d853
JD
43272010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4328
ac146f82 4329 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4330 also be true before we can return early (bug #5339).
4331
474217c8
CY
43322010-01-06 David Reitter <david.reitter@gmail.com>
4333
4334 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4335 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4336 (Bug#3233).
4337
c0e6d47d
JD
43382010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4339
d0cf45b7
JD
4340 * font.c (font_open_entity): Enable chache and call cached_font_ok
4341 for the driver if defined.
4342 (QCuser_spec): New symbol.
4343 (font_spec_from_name): Save name as user-spec.
4344 (font_load_for_lface): Keep user-spec instead of name.
4345 (font_open_by_name): Save name as user-spec.
4346 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4347 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4348
4349 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4350 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4351 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4352
4353 * font.h (struct font_driver): Add cached_font_ok.
4354
c0e6d47d
JD
4355 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4356
7c583cd8
JD
43572010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4358
4359 * xterm.c (x_new_font): Move code for setting rows/cols before
4360 resizing ...
ac146f82 4361 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4362
4363 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4364 (xg_frame_resized, xg_frame_set_char_size):
4365 Call xg_clear_under_internal_border.
7c583cd8 4366 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4367
03f77f0a
CY
43682010-01-05 Chong Yidong <cyd@stupidchicken.com>
4369
4370 * keyboard.c (read_key_sequence): Catch keyboard switch after
4371 making a new tty frame (Bug#5095).
4372
2a1ef5be
KH
43732010-01-05 Kenichi Handa <handa@m17n.org>
4374
4375 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4376
e3eb1dae
SM
43772010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4378
4379 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4380 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4381 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4382
777013f2
MA
43832010-01-03 Michael Albinus <michael.albinus@gmx.de>
4384
4385 * dbusbind.c (xd_add_watch): Improve debug message.
4386 (xd_remove_watch): Improve debug message. If DATA is the session
4387 bus, unset D-Bus session environment.
4388 (Fdbus_init_bus): Pass the bus as argument to
4389 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4390
8932b1c2
CY
43912010-01-01 Chong Yidong <cyd@stupidchicken.com>
4392
87231e2c
CY
4393 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4394
4801c5fa
CY
4395 * lread.c (syms_of_lread): Make it clearer that these are the
4396 names of loaded files (Bug#5068).
4397
8932b1c2
CY
4398 * eval.c (run_hook_with_args): Handle the case where the global
4399 value has the obsolete single-function form (Bug#5026).
4400
11e3c684
CY
44012009-12-27 Chong Yidong <cyd@stupidchicken.com>
4402
4403 * minibuf.c (Fall_completions): Minor optimization.
4404
5b28ce35
EZ
44052009-12-26 Eli Zaretskii <eliz@gnu.org>
4406
5ce6e4f4
JB
4407 * .gdbinit (pgx): Fix display of composite glyphs.
4408 Display cmp.from and cmp.to as well.
4409 (pitx): Fix last change.
5b28ce35 4410
bcffff46
KH
44112009-12-25 Kenichi Handa <handa@m17n.org>
4412
4413 * composite.h (composition_adjust_point): Update prototype.
4414
4415 * composite.c (composition_reseat_it): Don't make a composition
4416 spanning over point.
4417 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4418 composable characters.
4419 (composition_adjust_point): New arg NEW_PT. Callers changed.
4420
4421 * keyboard.c (command_loop_1): Force redisplay if the last point
4422 was within a composition.
4423 (adjust_point_for_property): Don't adjust point for automatic
4424 composition when called after buffer modification.
4425
3f670e9a
EZ
44262009-12-19 Eli Zaretskii <eliz@gnu.org>
4427
5ce6e4f4
JB
4428 * .gdbinit (pitx): Don't use enum names, use their values.
4429 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4430 (pgx): Don't use enum names, use their values.
4431 (pitmethod): New helper command.
4432 (pitx): Use it to display iteration method.
4433 (pgrowit): New command.
4434
ad903955
EZ
4435 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4436
3f670e9a
EZ
4437 Update dependencies in Makefile.in.
4438
4439 * Makefile.in (alloc.o): Depend on termhooks.h.
4440 (atimer.o): Depend on blockinput.h.
4441 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4442 and frame.h.
4443 (callint.o): Depend on systime.h, coding.h, and composite.h.
4444 (callproc.o): Depend on buffer.h.
4445 (casefiddle.o): Don't depend on charset.h.
4446 (casetab.o): Depend on character.h.
4447 (ccl.o): Depend on composite.h.
4448 (chartab.o): Depend on ccl.h.
4449 (cm.o): Depend on dispextern.h.
4450 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4451 (coding.o): Don't depend on $(INTERVALS_H).
4452 (composite.o): Don't depend on dispextern.h explicitly (it's in
4453 $(INTERVALS_H)). Depend on ccl.h.
4454 (data.o): Depend on systime.h, coding.h, composite.h,
4455 dispextern.h, font.h, and ccl.h.
4456 (dired.o): Depend on composite.h.
4457 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4458 composite.h (it's in $(INTERVALS_H)).
4459 (doc.o): Depend on systime.h, coding.h, and composite.h.
4460 (editfns.o): Don't depend explicitly on dispextern.h.
4461 (emacs.o): Depend on frame.h and coding.h.
4462 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4463 (fileio.o): Depend on frame.h and commands.h. Don't depend
4464 explicitly on dispextern.h.
4465 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4466 composite.h.
4467 (fns.o): Don't depend on termhooks.h.
4468 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4469 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4470 coding.h, $(INTERVALS_H), window.h, xterm.h.
4471 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4472 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4473 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4474 fontset.h, ccl.h, and ftfont.h.
4475 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4476 (gtkutil.o): Depend on dispextern.h and composite.h.
4477 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4478 termhooks.h, and ccl.h.
4479 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4480 (intervals.o): Depend on systime.h and coding.h.
4481 (keyboard.o): Depend on composite.h and coding.h.
4482 (keymap.o): Depend on coding.h and frame.h.
4483 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4484 (macros.o): Depend on systime.h, coding.h, and composite.h.
4485 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4486 and atimer.h.
4487 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4488 dispextern.h explicitly.
0b5397c2
SM
4489 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4490 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4491 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4492 (regex.o): Don't depend on charset.h.
4493 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4494 (search.o): Don't depend explicitly on composite.h.
4495 (sound.o): Depend on atimer.h and systime.h.
4496 (syntax.o): Don't depend explicitly on composite.h.
4497 (sysdep.o): Depend on coding.h and composite.h.
4498 (term.o): Depend on xterm.h and buffer.h.
4499 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4500 (textprop.o): Don't depend on dispextern.h explicitly.
4501 (undo.o): Depend on dispextern.h.
4502 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4503 dispextern.h and composite.h explicitly.
4504 (xdisp.o): Depend on ccl.h.
4505 (xfaces.o): Depend on coding.h and ccl.h.
4506 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4507 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4508 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4509 ftfont.h.
4510 (xgselect.o): New dependency.
4511 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4512 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4513 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4514 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4515 (xsmfns.o): Depend on frame.h and dispextern.h.
4516 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4517 sysselect.h.
4518
7a6f7fea
AS
45192009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4520
4521 * font.c (Fclear_font_cache): Pass correct cache argument to
4522 font_clear_cache.
4523
f4c21026
AS
45242009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4525
4526 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4527 twice.
4528
f7ab0997
CY
45292009-12-15 Chong Yidong <cyd@stupidchicken.com>
4530
4531 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4532 calling file-remote-p. Reported by Jim Meyering.
4533
fa8e045a
MA
45342009-12-15 Michael Albinus <michael.albinus@gmx.de>
4535
4536 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4537 avoid compiler warnings. (Bug #5217)
fa8e045a 4538
a63dba42
KH
45392009-12-14 Kenichi Handa <handa@m17n.org>
4540
4541 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4542 in 8-bit encoding.
4543
5ce6e4f4 45442009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4545
4546 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4547 tooltip windows.
4548
223e5fc6
JD
45492009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4550
36acb2a7
JD
4551 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4552 Xatom_net_window_type.
4553
4554 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4555 Xatom_net_window_type.
4556
b8f00677
JD
4557 * xterm.c (my_log_handler): New function.
4558 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4559 so we can filter out buggy messages. (Bug #5120).
b8f00677 4560
e5f0bc9a
JD
4561 * xterm.c (xg_scroll_callback): Parameter list changed,
4562 use parameter GtkScrollType to determine scroll/line/page.
4563 Only allow dragging if a button < 4 is grabbed (bug #5177).
4564 (xg_end_scroll_callback): New function.
4565 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4566 xg_create_scroll_bar.
4567
4568 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4569 (scroll_end_callback): Remove.
4570 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4571 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4572 bug #5177.
e5f0bc9a
JD
4573 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4574 bug #5177.
4575
4576 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4577 (xg_create_scroll_bar): Add GCallback end_callback.
4578
223e5fc6
JD
4579 * xftfont.c (QClcdfilter): New variable.
4580 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4581 (syms_of_xftfont): Initialize QClcdfilter.
4582
3c055b77
JD
45832009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4584
4585 * xsettings.c (struct xsettings): Add member seen.
4586 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4587 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4588 (apply_xft_settings): Only update Xft settings with what member seen
4589 indicates as new.
4590
05fe33ff
EZ
45912009-12-12 Eli Zaretskii <eliz@gnu.org>
4592
c4cc8b9a 4593 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4594 (struct glyph): Use EMACS_INT for charpos.
4595 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4596 region_beg_charpos, region_end_charpos,
4597 redisplay_end_trigger_charpos, and also for
4598 iterator_stack_entry.end_charpos and
4599 iterator_stack_entry.stop_charpos.
4600
e8d7886a
JD
46012009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4602
5ce6e4f4 4603 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4604 (xg_create_scroll_bar): Call scroll_end_callback on button release
4605 event (bug #5177).
4606 (xg_event_is_for_scrollbar): != replaced with ==.
4607
d0db2ec8
KH
46082009-12-12 Kenichi Handa <handa@m17n.org>
4609
4610 * ftfont.c (struct ftfont_info): New member matrix.
4611 (ftfont_open): Setup xftfont_info->matrix.
4612 (MFLTFontFT): New member matrix.
4613 (FLOOR, CEIL, ROUND): New macros.
4614 (ftfont_get_metrics): Handle matrix transformation.
4615 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4616
4617 * xftfont.c (struct xftfont_info): New member matrix.
4618 (xftfont_open): Setup xftfont_info->matrix.
4619
46202009-12-10 Kenichi Handa <handa@m17n.org>
4621
4622 * xdisp.c (append_space_for_newline): Consider face-remapping.
4623
2cc7b62f
AS
46242009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4625
b87dd913
AS
4626 * xsettings.c: Include "keyboard.h".
4627
eba5eb94
AS
4628 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4629
2cc7b62f
AS
4630 Fix implicit function declarations.
4631 * cmds.c: Include "frame.h".
4632 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4633 * frame.h: Move declaration of delete_frame outside of
4634 HAVE_WINDOW_SYSTEM.
4635
a4ef73c8
CY
46362009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4637
4638 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4639
4640 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4641 GTK builds.
4642
944a300c
AS
46432009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4644
4645 * unexelf.c (unexec): Don't search for .data twice.
4646
022eef62
CY
46472009-12-05 Chong Yidong <cyd@stupidchicken.com>
4648
426ac949
CY
4649 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4650 if push failed.
4651 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4652 of push_display_prop (Bug#5000).
4653
022eef62
CY
4654 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4655 value of font_list_entities (Bug#5085).
4656
be95bee9
JB
46572009-12-04 Juanma Barranquero <lekktu@gmail.com>
4658
4659 Fix `string-to-number' to deal consistently with integers and floats.
4660 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4661 trailing characters, not just whitespace.
4662 (read1): Pass new arg 0 to keep old behavior.
4663 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4664 trailing chars, as it is already done for integers. Doc fixes.
4665 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4666
24c2d7ce
EZ
46672009-12-04 Eli Zaretskii <eliz@gnu.org>
4668
0b5397c2
SM
4669 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4670 Delete unused enumeration value.
24c2d7ce 4671
7e694795
EZ
46722009-12-03 Eli Zaretskii <eliz@gnu.org>
4673
4674 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4675
84b31826
SM
46762009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4677
4678 * process.c (Fmake_network_process): Fix up the tests for
4679 "connectionless socket", so they DTRT for seqpacket sockets as well.
4680
f00c449b
SM
46812009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4682
4683 * process.c (Qseqpacket): New symbol.
4684 (HAVE_SEQPACKET): New macro.
4685 (Fmake_network_process): Accept new :type `seqpacket'.
4686 (init_process): Add `seqpacket' feature when applicable.
4687 (syms_of_process): Initialize Qseqpacket.
4688
8096a0ff
YM
46892009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4690
4691 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4692 if entity is Qnil.
4693
3e0de07f
SM
46942009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4695
4696 * print.c (print_preprocess): Preprocess the key_and_value table of
4697 hashtables, even tho they're "hidden" (bug#5082).
4698
abeafb2a
JD
46992009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4700
4701 * frame.c (frame_make_pointer_invisible)
4702 (frame_make_pointer_visible): Declare f before statements.
4703
4bf47195
EZ
47042009-11-28 Eli Zaretskii <eliz@gnu.org>
4705
4706 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4707 omitted dependencies on lisp.h.
4708
c525b3f2
JD
47092009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4710
ece2d4ed
JD
4711 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4712 is NULL.
4713
4714 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4715
4716 * frame.c (frame_make_pointer_invisible)
3e0de07f 4717 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4718 frame.
4719
c525b3f2
JD
4720 * search.c (simple_search): Remove warning by making *p const.
4721
2f00e299
DN
47222009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4723
4724 * xdisp.c (power_letter): Remove duplicate const.
4725
084b049b
JD
47262009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4727
a1fadc6f
JD
4728 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4729
5ce6e4f4 4730 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4731 defaults (bug #5025).
4732
28259cac
SM
47332009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4734
4735 * insdel.c (adjust_markers_for_delete): Move it in the
4736 right direction! (bug#4803)
4737
e8e14166
YM
47382009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4739
4740 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4741
4742 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4743
86677b58
GM
47442009-11-24 Glenn Morris <rgm@gnu.org>
4745
4746 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4747
581e51e8
JD
47482009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4749
cfc86c7a
JD
4750 * Makefile.in: Must create deps for ecrt0.o in its rule.
4751
581e51e8
JD
4752 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4753 because that is what Gtk+ font dialog understands.
4754
4755 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4756 of Fcopy_sequence.
4757 (font_open_by_name): Put name given into QCname for font-object returned.
4758
4759 * frame.c (x_set_font): Save original font name as frame parameter
4760 font-parameter.
4761
4762 * xsettings.c (set_default_xft_settings): New function.
4763 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4764 is found.
4765
8b264ecb
AS
47662009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4767
4768 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4769 searching backwards through multibyte buffer.
4770
872870b2
JD
47712009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4772
4773 * xterm.c: #include xgselect.h.
4774 (x_initialize): Call xgselect_initialize.
4775
4776 * xsettings.c (something_changedCB): C++ comments => C comments.
4777 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4778 does that now.
4779
4780 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4781 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4782 (scroll_bar_button_cb): Remove.
5ce6e4f4 4783 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4784 event.
4785 (xg_create_scroll_bar): Don't bind button-press-event and
4786 button-release-event.
4787
4788 * process.c: Include xgselect.h if defined (USE_GTK) ||
4789 defined (HAVE_GCONF).
4790 (wait_reading_process_output): Call xg_select for the same condition.
4791
4792 * xgselect.c (xg_select): New function to better integrate with
4793 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4794
4795 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4796
4797 * Makefile.in (XOBJ): Add xgselect.o.
4798
62a6e103
AS
47992009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4800
0b5397c2
SM
4801 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4802 Remove ignored second argument. All callers changed.
62a6e103
AS
4803 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4804 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4805 * xdisp.c (string_char_and_length): Likewise.
4806
b0ca0f33
DN
48072009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4808
4809 * xterm.c (x_new_font):
4810 * print.c (print_object):
4811 * cmds.c (Fself_insert_command): Move declarations before statements.
4812
dd5a6279
CY
48132009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4814
4815 * s/cygwin.h: Remove unneeded linker flags.
4816
4a8e097d
JD
48172009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4818
0d1d0d26
JD
4819 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4820
4821 * xsettings.h: Declare xsettings_get_system_font.
4822
4823 * xsettings.c (xsettings_get_system_font): New function.
4824 (init_gconf): No use initiating gconf unless we have Xft also.
4825 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4826 HAVE_GCONF.
4827
4a8e097d
JD
4828 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4829 add a blank entry so it doesn't collapse into nothing.
4830
8ab1650e
SM
48312009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4832
4833 * lread.c (Funintern): Comment out last change.
4834
82c602f0
RS
48352009-11-19 Richard Stallman <rms@gnu.org>
4836
4837 * lread.c (Funintern): Error if symbol is t or nil.
4838
87e32266
SM
48392009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4840
4841 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4842 representation of Lisp integers.
4843 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4844
1b9ac145
AS
48452009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4846
4847 * lisp.h: Remove declaration of Ffont_get_system_font.
4848 * xfns.c: Move include of "xsettings.h".
4849 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4850
dfb3c4c6
JD
48512009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4852
87e32266
SM
4853 * xsettings.c (something_changedCB, Ffont_get_system_font):
4854 Check use_system_font.
dfb3c4c6
JD
4855 (syms_of_xsettings): DEFVAR font-use-system-font.
4856
9370c1d8
AS
48572009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4858
25fe851a
AS
4859 * xfns.c (x_default_font_parameter): Remove dead assignment.
4860
9370c1d8
AS
4861 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4862
637fa988
JD
48632009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4864
87e32266 4865 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4866 not have FC_LCD_*. #define them if not there.
a6eb20d8 4867
87e32266 4868 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4869
637fa988
JD
4870 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4871
4872 * xterm.c (handle_one_xevent): Call xft_settings_event for
4873 ClientMessage, PropertyNotify and DestroyNotify.
4874 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4875 Call xsettings_initialize.
4876
4877 * xftfont.c (xftfont_fix_match): New function.
4878 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4879 Call xftfont_fix_match after XftFontMatch.
4880
4881 * xfont.c (xfont_driver): Initialize all members.
4882
87e32266
SM
4883 * xfns.c (x_default_font_parameter):
4884 Try font from Ffont_get_system_font.
637fa988
JD
4885 Do not get font from x_default_parameter if we got one from
4886 Ffont_get_system_font.
87e32266 4887 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4888
4889 * w32font.c (w32font_driver): Initialize all members.
4890
4891 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4892
4893 * lisp.h: Declare syms_of_xsettings.
4894
87e32266
SM
4895 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4896 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4897
4898 * ftfont.c (ftfont_filter_properties): New function.
4899
4900 * frame.c (x_set_font): Remove unused variable lval.
4901
87e32266 4902 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4903
4904 * font.c (font_put_extra): Don't return if val is nil, it means
4905 boolean option is off.
4906 (font_parse_fcname): Collect all extra properties in extra_props
4907 and call filter_properties for all drivers with extra_props and
4908 font as parameter.
87e32266
SM
4909 (font_open_entity): Do not use cache, it does not pick up new
4910 fontconfig settings like hinting.
637fa988
JD
4911 (font_load_for_lface): If spec had a name in it, store it in entity.
4912
a73f9c9d 4913 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4914
4915 * config.in: HAVE_GCONF is new.
4916
4917 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4918 xsettings.o is new.
4919
5a942932
KH
49202009-11-17 Kenichi Handa <handa@m17n.org>
4921
4922 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4923 back to the default font in case that no suitable font is found.
4924
b7c7a4d1
SM
49252009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4926
4927 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4928 Suggested by Chad Brown <yandros@mit.edu>.
4929 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4930
072f1e39
JD
49312009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4932
4933 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4934
5d1e70a2
AS
49352009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4936
87e32266 4937 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4938
a53cfbe5
JD
49392009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4940
473a99b7
JD
4941 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4942 has a parent.
4943
a53cfbe5 4944 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4945 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4946
4947 * config.in: Generated (AUTO_DEPEND).
4948
f04bb9b2
MA
49492009-11-13 Michael Albinus <michael.albinus@gmx.de>
4950
b7c7a4d1 4951 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4952 Vdbus_registered_functions_table, because it contains also
4953 properties. Fix docstring.
b7c7a4d1 4954 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4955
8f11f7ec
SM
49562009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4957
4958 * alloc.c (mark_object): Don't reprocess marked strings.
4959 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4960 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4961
8a605fe8
KH
49622009-11-13 Kenichi Handa <handa@m17n.org>
4963
8f11f7ec 4964 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4965 semantics of Vword_combining_categories.
4966 (Vword_combining_categories): Describe the slight change of the
4967 semantics.
4968
241c4680
EZ
49692009-11-13 Eli Zaretskii <eliz@gnu.org>
4970
4971 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4972
4973 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4974
5d58e44c
SM
49752009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4976
4977 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4978
5e13f9d3
JB
49792009-11-12 Juanma Barranquero <lekktu@gmail.com>
4980
4981 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4982
cf54c754
DR
49832009-11-11 David Reitter <david.reitter@gmail.com>
4984
4985 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4986 variables to fix 2009-11-09 change.
4987
a4ada374
DN
49882009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4989
91433552
DN
4990 * process.c (ifflag_def): Make flag_sym constant.
4991 (Fnetwork_interface_info): Use a constant pointer.
4992 (ifflag_table):
4993 * xfns.c (cursor_bits):
4994 * xdisp.c (power_letter):
4995 * termcap.c (speeds, esctab):
4996 * sysdep.c (baud_convert):
4997 * keyboard.c (lispy_accent_codes, modifier_names):
4998 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4999 (jpeg_format, tiff_format, gif_format, svg_format)
5000 (interlace_start, interlace_increment, gs_format):
5001 * gtkutil.c (separator_names):
5002 * fringe.c (swap_nibble):
5003 * fns.c (base64_value_to_char, base64_char_to_value):
5004 * fileio.c (make_temp_name_tbl):
5005 * coding.c (suffixes): Make constant.
5006
f4265f6c
DN
5007 * frame.c (make_initial_frame):
5008 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5009 build_string.
5010 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5011
04420943
DN
5012 * s/freebsd.h:
5013 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5014
0a5d24ae
DN
5015 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5016 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5017
a4ada374
DN
5018 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5019 * xterm.c (syms_of_xterm):
5020 * xfaces.c (syms_of_xfaces):
5021 * xdisp.c (syms_of_xdisp):
5022 * lread.c (syms_of_lread):
5023 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5024 build_string.
91433552 5025
a4ada374
DN
5026 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5027
af98fc7f
SM
50282009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5029
8ab1650e 5030 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5031
e90292a9
JD
50322009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5033
5034 * keyboard.h: Declare timer_check.
5035
5036 * keyboard.c (timer_check_2): New function that does what the old
5037 timer_check did.
5038 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5039 returned, i.e. don't return -1 with timers pending.
5040
5041 * process.c: Remove extern declaration of timer_check.
5042
5043 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5044 even if timer_check returned -1.
5045
af98fc7f
SM
5046 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5047 xg_dialog_data.
e90292a9
JD
5048 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5049 the event loop.
5050 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5051 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5052 Destroy the dialog after xg_dialog_run.
5053
045b83c0
SM
50542009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5055
5056 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5057
1fb99a3a
JD
50582009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5059
5060 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5061
04e452cb
JB
50622009-11-09 Juanma Barranquero <lekktu@gmail.com>
5063
5064 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5065
ef7417fd
SM
50662009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5067
5068 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5069 w32menu.c, and nsmenu.m.
5070 Simplify the obsolete case where position is nil.
5071 (cleanup_popup_menu): New function, moved from nsmenu.m.
5072 (struct skp): Remove slot `notreal'.
5073 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5074 adjust callers.
5075 (single_menu_item): Adjust call to parse_menu_item.
5076 (syms_of_menu): Defsubr x-popup-menu.
5077 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5078 (keymap_panes): Don't export any more.
5079 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5080 (xmenu_show): Declare.
5081 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5082 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5083 * keyboard.h (parse_menu_item): Update declaration.
5084 * xmenu.c (Fx_popup_menu): Remove.
5085 (syms_of_xmenu): Don't defsubr x-popup-menu.
5086 * w32menu.c (Fx_popup_menu): Remove.
5087 (syms_of_w32menu): Don't defsubr x-popup-menu.
5088 * nsmenu.m (cleanup_popup_menu): Remove.
5089 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5090 moved to menu.c's Fx_popup_menu.
5091 (Fx_popup_menu): Remove.
5092 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5093 menu_items (it's done in menu.c already).
5094
424d6179
SM
50952009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5096
5097 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5098 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5099
c0df13a6 51002009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5101
5102 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5103 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5104 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5105 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5106
2de9f71c
SM
51072009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5108
5109 Let integers use up 2 tags to give them one extra bit and thus double
5110 their range.
5111 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5112 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5113 New macros.
5114 (enum Lisp_Type): Use them. Give explicit values.
5115 (Lisp_Type_Limit): Remove.
5116 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5117 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5118 Pay attention to USE_2_TAGS_FOR_INTS.
5119 (INTEGERP): Use LISP_INT_TAG_P.
5120 * fns.c (internal_equal): Simplify the default case.
5121 (sxhash): Use case_Lisp_Int.
5122 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5123 any more.
5124 (Ftype_of): Use case_Lisp_Int.
5125 (store_symval_forwarding): Take into account the fact that Ints can
5126 now have more than one tag.
5127 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5128 buffer_slot_type_mismatch):
5129 * xfaces.c (face_attr_equal_p):
5130 * print.c (print_object):
5131 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5132 Use case_Lisp_Int.
5133
323637a2
EZ
51342009-11-06 Eli Zaretskii <eliz@gnu.org>
5135
7ac65b38
EZ
5136 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5137
323637a2
EZ
5138 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5139 warning.
5140
e511451f
JD
51412009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5142
5143 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5144
5145 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5146
5147 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5148 ButtonPressRelease and MotionNotify (bug#4870).
5149
5e2327cf
DN
51502009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5151
5adc433e
DN
5152 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5153
d67b4f80
DN
5154 * xterm.c (syms_of_xterm):
5155 * xselect.c (syms_of_xselect):
5156 * xmenu.c (syms_of_xmenu):
5157 * xfns.c (syms_of_xfns):
5158 * xfaces.c (syms_of_xfaces):
5159 * xdisp.c (syms_of_xdisp):
5160 * window.c (syms_of_window):
5161 * w32fns.c (syms_of_w32fns):
5162 * undo.c (syms_of_undo):
5163 * textprop.c (syms_of_textprop):
5164 * terminal.c (syms_of_terminal):
5165 * syntax.c (syms_of_syntax):
5166 * sound.c (syms_of_sound):
5167 * search.c (syms_of_search):
5168 * print.c (syms_of_print):
5169 * minibuf.c (syms_of_minibuf):
5170 * macros.c (syms_of_macros):
5171 * keymap.c (syms_of_keymap, initial_define_key)
5172 (initial_define_lispy_key):
5173 * keyboard.c (syms_of_keyboard):
5174 * insdel.c (syms_of_insdel):
5175 * image.c (syms_of_image):
5176 * fringe.c (syms_of_fringe):
5177 * frame.c (syms_of_frame):
5178 * fontset.c (syms_of_fontset):
5179 * fns.c (syms_of_fns):
5180 * fns.c (syms_of_fns):
5181 * fileio.c (syms_of_fileio):
5182 * fileio.c (syms_of_fileio):
5183 * eval.c (syms_of_eval):
5184 * doc.c (syms_of_doc):
5185 * dispnew.c (syms_of_display):
5186 * dired.c (syms_of_dired):
5187 * dbusbind.c (syms_of_dbusbind):
5188 * data.c (syms_of_data):
5189 * composite.c (syms_of_composite):
5190 * coding.c (syms_of_coding):
5191 * cmds.c (syms_of_cmds):
5192 * charset.c (define_charset_internal, syms_of_character):
5193 * ccl.c (syms_of_ccl):
5194 * category.c (syms_of_category, init_category_once):
5195 * casetab.c (syms_of_casetab):
5196 * casefiddle.c (syms_of_casefiddle):
5197 * callint.c (syms_of_callint):
5198 * bytecode.c (syms_of_bytecode):
5199 * buffer.c (keys_of_buffer, syms_of_buffer):
5200 * alloc.c (syms_of_alloc):
5201 * process.c (syms_of_process, init_process):
5202 * lread.c (syms_of_lread, init_obarray):
5203 * font.c (build_style_table):
5204 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5205 intern_c_string, calls to make_pure_string with
5206 make_pure_c_string. Use pure_cons instead of Fcons.
5207
5e2327cf
DN
5208 * process.c (socket_options): Make it const.
5209 (set_socket_option, init_process): Use a const pointer.
5210
5211 * lread.c (intern_c_string): New function.
5212 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5213 (defvar_int): Uset it. Make the name const char*.
5214
5215 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5216 (defvar_int): Update prototypes.
5217 (DEFUN, EXFUN): Support for prototypes is now required.
5218 (intern_c_string): New prototype.
5219 (struct Lisp_Subr): Make symbol_name constant.
5220
5221 * font.c (struct table_entry): Remove unused member. Make NAMES
5222 constant.
5223 (weight_table, slant_table, width_table): Make constant.
5224
5225 * emacs.c (struct standard_args): Make name and longname constant.
5226
5227 * character.h (DEFSYM): Use intern_c_string.
5228
a56eaaef
DN
52292009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5230
5231 * alloc.c (make_pure_c_string): New function.
5232
5233 * eval.c (Fautoload): Purecopy all arguments.
5234
f6a07420
KH
52352009-11-05 Kenichi Handa <handa@m17n.org>
5236
5237 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5238 the buffer in case of replace.
5239
5d28d4b1
DN
52402009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5241
5242 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5243
b349d111
SM
52442009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5245
d528b1ce
SM
5246 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5247 when applicable (bug#4851).
5248
b349d111
SM
5249 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5250 (P_): Support for prototypes is now required.
5251
c38eb027
CY
52522009-10-31 Chong Yidong <cyd@stupidchicken.com>
5253
5254 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5255 (Bug#4827).
5256
0405f8d9
EZ
52572009-10-30 Eli Zaretskii <eliz@gnu.org>
5258
d528b1ce 5259 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5260
ca0a881a
DN
52612009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5262
5263 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5264
d528b1ce
SM
5265 * lread.c (Fload): Purecopy the file name when building
5266 Vpreloaded_file_list.
ca0a881a 5267
47e0e0e4
JR
52682009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5269
5270 * w32fns.c (syms_of_w32fns): Change default value of
5271 w32-scroll-lock-modifier to nil. (Bug#2827)
5272
057bce6f
JB
52732009-10-26 Juanma Barranquero <lekktu@gmail.com>
5274
782a943e 5275 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5276
242bc74c
AS
52772009-10-26 Andreas Schwab <schwab@redhat.com>
5278
5279 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5280
522d013a
JB
52812009-10-26 Juanma Barranquero <lekktu@gmail.com>
5282
5283 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5284 For delta < 0, skip check that only makes sense when the mini-window
5285 is going to be enlarged. (Bug#4534)
5286
18060980
CY
52872009-10-25 Chong Yidong <cyd@stupidchicken.com>
5288
5289 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5290 string in menu maps (Bug#4471).
5291
fec8f0fe
CY
52922009-10-24 Chong Yidong <cyd@stupidchicken.com>
5293
5294 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5295 FRAME_NS_VIEW on terminal frames (Bug#4765).
5296
10d66ec0
AS
52972009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5298
1cae01f7
AS
5299 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5300 DBUS_TYPE_UINTnn separately to get proper sign extension.
5301
58a12889
AS
5302 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5303 can properly handle unsigned types.
d528b1ce 5304 (make_uid, make_gid): Remove.
58a12889 5305
987c9327
AS
5306 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5307 types again.
5308
522d013a 5309 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5310 (system_process_attributes): Likewise.
5311
905a9ed3
DN
53122009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5313
5314 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5315
5316 * eval.c (Fautoload): Purecopy the filename. Simplify.
5317
5318 * category.c (Fdefine_category): Purecopy docstring.
5319
a599b3e8
AS
53202009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5321
7b792fc9
AS
5322 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5323
a599b3e8
AS
5324 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5325
b35ac83e
CY
53262009-10-23 Chong Yidong <cyd@stupidchicken.com>
5327
5328 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5329 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5330 (Bug#4775).
5331
e8903e00
SM
53322009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5333
5334 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5335 (init_fileio_once):
5336 * lisp.h (init_fileio_once): Remove.
5337 * emacs.c (main): Don't call init_fileio_once.
5338
8f43cbf3
DN
53392009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5340
5341 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5342
26898943
AS
53432009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5344
5345 * doprnt.c (doprnt): Fix overflow check.
5346
5c646d5a
JD
53472009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5348
3132a7ea
JD
5349 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5350
5c646d5a
JD
5351 * xterm.h (x_wait_for_event): Declare it.
5352
5353 * xterm.c (pending_event_wait): New variable.
5354 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5355 see pending_event_wait.eventtype.
5356 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5357 (x_new_font): Call change_frame_size with new rows/columns before we
5358 try to resize the frame.
5c646d5a 5359 (x_wait_for_event): New function.
d528b1ce
SM
5360 (x_set_window_size_1): Don't change gravity unless change_gravity
5361 is set.
5c646d5a
JD
5362 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5363 don't change frame size, instead wait for the ConfigureNotify.
5364 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5365 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5366 (x_initialize): Initialize pending_event_wait.
5367
5368 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5369 size.
5370
5371 * widget.c (EmacsFrameSetValues): Add comment.
5372 (EmacsFrameSetCharSize): Just call x_set_window_size.
5373
5374 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5375 x_wait_for_event.
d528b1ce 5376 (flush_and_sync): Remove again.
5c646d5a
JD
5377 (xg_get_font_name): Suggest monospace if no previous font is known.
5378
e9c1637d
SM
53792009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5380
5381 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5382 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5383
5a72cccb
YM
53842009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5385
5386 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5387 processing pending events when event is filtered for input method.
ab04798f 5388 (Bug#3681)
5a72cccb 5389
2629aa37
JB
53902009-10-20 Juanma Barranquero <lekktu@gmail.com>
5391
5392 * fns.c: Add #endif accidentally removed in previous change.
5393
c3417a74
DN
53942009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5395
5396 * fns.c: Remove code for unsupported system: MAC_OS.
5397 * image.c: Likewise. Include setjmp.h.
5398
9685cef2
JD
53992009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5400
5401 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5402 pixel -1 (bug #4742).
5403
d7306fe6
DN
54042009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5405
019d2c4c
DN
5406 * process.c (create_pty): Remove conditionals for no longer
5407 supported systems: UNIPLUS and RTU.
5408
ee6bacd4
DN
5409 * xterm.c:
5410 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5411
d7306fe6
DN
5412 * alloc.c: Do not define struct catchtag.
5413 * eval.c: Move struct catchtag definition ...
5414 * lisp.h: ... here.
5415
5416 * image.c: Move png.h #include earlier to avoid warnings.
5417
5418 * xterm.c:
5419 * xsmfns.c:
5420 * xselect.c:
5421 * xrdb.c:
5422 * xmenu.c:
5423 * xftfont.c:
5424 * xfont.c:
5425 * xfns.c:
5426 * xfaces.c:
5427 * xdisp.c:
5428 * window.c:
5429 * widget.c:
5430 * w32xfns.c:
5431 * w32uniscribe.c:
5432 * w32term.c:
5433 * w32select.c:
5434 * w32reg.c:
5435 * w32proc.c:
5436 * w32menu.c:
5437 * w32inevt.c:
5438 * w32heap.c:
5439 * w32font.c:
5440 * w32fns.c:
5441 * w32console.c:
5442 * w32.c:
5443 * w16select.c:
5444 * vm-limit.c:
5445 * unexsol.c:
5446 * unexec.c:
5447 * unexcw.c:
5448 * unexaix.c:
5449 * undo.c:
5450 * tparam.c:
5451 * textprop.c:
5452 * terminfo.c:
5453 * terminal.c:
5454 * termcap.c:
5455 * term.c:
5456 * syntax.c:
5457 * sound.c:
5458 * sheap.c:
5459 * search.c:
5460 * scroll.c:
5461 * region-cache.c:
5462 * regex.c:
5463 * ralloc.c:
5464 * process.c:
5465 * print.c:
b024548b
DN
5466 * nsterm.m:
5467 * nsselect.m:
5468 * nsmenu.m:
5469 * nsimage.m:
5470 * nsfont.m:
5471 * nsfns.m:
d7306fe6
DN
5472 * msdos.c:
5473 * minibuf.c:
5474 * menu.c:
5475 * marker.c:
5476 * macros.c:
5477 * keymap.c:
5478 * keyboard.c:
5479 * intervals.c:
5480 * insdel.c:
5481 * indent.c:
5482 * gtkutil.c:
5483 * ftxfont.c:
5484 * ftfont.c:
5485 * fringe.c:
5486 * frame.c:
5487 * fontset.c:
5488 * font.c:
5489 * fns.c:
5490 * floatfns.c:
5491 * filelock.c:
5492 * fileio.c:
5493 * emacs.c:
5494 * editfns.c:
5495 * dosfns.c:
5496 * doprnt.c:
5497 * doc.c:
5498 * dispnew.c:
5499 * dired.c:
5500 * dbusbind.c:
5501 * data.c:
5502 * composite.c:
5503 * coding.c:
5504 * cmds.c:
5505 * cm.c:
5506 * chartab.c:
5507 * charset.c:
5508 * character.c:
5509 * ccl.c:
5510 * category.c:
5511 * casetab.c:
5512 * casefiddle.c:
5513 * callproc.c:
5514 * callint.c:
5515 * bytecode.c:
5516 * buffer.c:
5517 * atimer.c: Include setjmp.h. (Bug#4643)
5518
fd5f21e6
SM
55192009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5520
4c0354d7
SM
5521 Remove leftover table unibyte_to_multibyte_table.
5522 * character.c (unibyte_to_multibyte_table): Remove.
5523 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5524 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5525 * character.h (UNIBYTE_TO_CHAR): New macro.
5526 (MAKE_CHAR_MULTIBYTE): Use it.
5527 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5528 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5529 (message_dolog, set_message_1):
5530 * search.c (Freplace_match):
5531 * editfns.c (Fcompare_buffer_substrings):
5532 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5533 (concat):
5534 * insdel.c (copy_text, count_size_as_multibyte):
5535 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5536 * term.c (produce_glyphs):
5537 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5538 * regex.c (RE_CHAR_TO_MULTIBYTE):
5539 * cmds.c (internal_self_insert):
5540 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5541
fd5f21e6
SM
5542 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5543
4418646e
DN
55442009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5545
5546 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5547
35f5c1d2
JB
55482009-10-16 Juanma Barranquero <lekktu@gmail.com>
5549
5550 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5551
a0cd8f6b
AR
55522009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5553
5554 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5555 still needed under Tiger.
5556
5557 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5558
5559 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5560 __Apple__.
5561
5562 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5563
01a8d3fa
KH
55642009-10-15 Kenichi Handa <handa@m17n.org>
5565
5566 * print.c (print_object): Escape a symbol like "2E10" too.
5567
bf6c75c9 55682009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5569
5570 Cleanups and changes for 64-bit compile under Snow Leopard.
5571 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5572
5573 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5574
c5959062 5575 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5576 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5577 cast argument.
5578 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5579 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5580
5581 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5582
5583 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5584 where appropriate.
5585
5586 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5587 where appropriate.
6e4780c5
JB
5588 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5589 Use stringWithUTF8String.
bf6c75c9
AR
5590 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5591
6e4780c5
JB
5592 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5593 Add formal protocol mention to inheritance.
bf6c75c9
AR
5594 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5595
6e4780c5
JB
5596 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5597 Fix printf format.
bf6c75c9
AR
5598 (ns_query_color): Use CGFloat where appropriate.
5599 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5600 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5601 argument.
5602
3d87f118
AR
5603 * config.in (NS_HAVE_NSINTEGER): Drop.
5604
a95c8102
AR
5605 * dbusbind.c (dbus-method-return-internal)
5606 (dbus-method-error-internal): Use long format in printf, and cast
5607 argument.
5608
5609 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5610 in printf, and cast argument.
5611
6873acca 5612 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5613 cast argument.
5614
9ec6f100
GM
56152009-10-11 Glenn Morris <rgm@gnu.org>
5616
5617 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5618
5be883cd
JD
56192009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5620
5621 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5622 menu bar with a small width so it doesn't enlarge the frame.
5623
d7a39b51
JB
56242009-10-08 Juanma Barranquero <lekktu@gmail.com>
5625
5626 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5627
0c2b6f8e
GM
56282009-10-06 Glenn Morris <rgm@gnu.org>
5629
5630 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5631 SOME_MACHINE_LISP (this enters indirectly via DOC).
5632
e02131a2
EZ
56332009-10-05 Eli Zaretskii <eliz@gnu.org>
5634
5635 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5636
b4744254
EZ
56372009-10-04 Eli Zaretskii <eliz@gnu.org>
5638
5639 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5640 Doc fix.
5641
dbf64827
JB
56422009-10-03 Martin Rudalics <rudalics@gmx.at>
5643
5644 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5645
e9a0aef8
MA
56462009-10-02 Michael Albinus <michael.albinus@gmx.de>
5647
d528b1ce 5648 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5649 used anymore outside fileio.c.
5650
5651 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5652
64eb2b56
JB
56532009-10-01 Juanma Barranquero <lekktu@gmail.com>
5654
5655 * lisp.h (Qdelete_directory_internal):
5656 Declare, instead of Qdelete_directory.
5657
5658 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5659
9d28c33e
SM
56602009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5661
5662 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5663
9d8f3bd9
MA
56642009-10-01 Michael Albinus <michael.albinus@gmx.de>
5665
9d28c33e 5666 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5667 Fdelete_directory. It is not a command anymore. It has no file
5668 name handler.
5669
9694740b
SM
56702009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5671
5672 * xdisp.c (get_next_display_element): Use an enum in last change.
5673
748e162f
KH
56742009-09-28 Kenichi Handa <handa@m17n.org>
5675
9694740b 5676 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5677 unibyte_display_via_language_environment in handling
5678 Vnobreak_char_display.
5679
17efd58d
AR
56802009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5681
5682 * nsterm.h (ns_app_name): New extern variable.
5683
5684 * nsterm.m (ns_app_name): New variable.
5685 (ns_term_init): Set and use it.
5686 (ns_term_shutdown): Use it.
5687
5688 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5689 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5690
5691 * nsfns.m (ns_set_name_iconic, ns_set_name)
5692 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5693 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5694
9694740b
SM
5695 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5696 Remove double-casting in client_data comparison.
31c2d412 5697
3208cb35
YM
56982009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5699
5700 * keyboard.c (make_lispy_event): Remember last wheel direction.
5701 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5702
b7d552d6
GM
57032009-09-26 Glenn Morris <rgm@gnu.org>
5704
5705 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5706 internal.elc. Add term/pc-win.elc.
5707 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5708 term/x-win.elc.
5709 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5710 term/w32-win.elc.
5711 (NS_SUPPORT): New.
5712 (lisp): Add NS_SUPPORT.
5713 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5714
4ff670a8
DR
57152009-09-25 David Reitter <david.reitter@gmail.com>
5716
5717 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5718 on Mac OS X 10.6+ (bug#4513).
5719
feabfb6c
JB
57202009-09-24 Juanma Barranquero <lekktu@gmail.com>
5721
5722 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5723 some parts of Emacs code (like font selection) don't grok them.
5724 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5725
de59072a
AS
57262009-09-24 Andreas Schwab <schwab@redhat.com>
5727
5728 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5729
a489517b
JB
57302009-09-24 Juanma Barranquero <lekktu@gmail.com>
5731
5732 * dired.c (Fdirectory_files): Fix typo in docstring.
5733
0592970c
AR
57342009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5735
5736 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5737 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5738 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5739 under GNUstep.
5740 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5741
5742 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5743 glyph advancement.
5744
48e8a88b
AR
57452009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5746
5747 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5748 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5749
5750 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5751 deleted (bug #4492).
5752
e14f0a78
AR
5753 * nsfont.m (Vns_reg_to_script): New lisp variable.
5754 (syms_of_nsfont): Declare it.
5755 (ns_registry_to_script): New function.
5756 (ns_get_req_script): Call it.
5757 (ns_findfonts): Don't give up on non-unicode registry.
5758
5759 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5760
5b650faa
SM
57612009-09-20 Tom Tromey <tromey@redhat.com>
5762
5763 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5764 batch mode (bug#4228).
5765
a489517b 57662009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5767
5768 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5769 carefully. (Bug #4339)
0bae4e09 5770
fcfe06f3
CY
57712009-09-18 Chong Yidong <cyd@stupidchicken.com>
5772
d798ba87 5773 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5774
31642728
AR
57752009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5776
5777 * emacs.c (inhibit_x_resources): Update doc string for NS.
5778 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5779 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5780
5781 * nsterm.h (ns_no_defaults): Remove.
5782
5783 * nsterm.m (ns_no_defaults): Remove.
5784 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5785 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5786 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5787 don't update the NSWindow itself.
5788 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5789 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5790
5791 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5792 ns_use_qd_smoothing.
5793
5794 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5795 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5796 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5797 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5798
8686ac71
JB
57992009-09-17 Juanma Barranquero <lekktu@gmail.com>
5800
5801 * emacs.c (inhibit_x_resources): New variable.
5802 (main) [HAVE_NS]: Don't process --quick command line option.
5803 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5804
5805 * lisp.h (inhibit_x_resources): Declare it extern.
5806
5807 * w32reg.c (x_get_string_resource):
5808 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5809
e227ba05
EZ
58102009-09-17 Eli Zaretskii <eliz@gnu.org>
5811
362654a6
JB
5812 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5813 Add lisp/term/internal.elc.
e227ba05 5814
742d40e8
SM
58152009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5816
5817 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5818 (bug#4461).
5819
005bd5a2
DN
58202009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5821
5822 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5823
5824 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5825 (OBJECTS_MACHINE): Remove, unused.
5826
f9af9719
SM
58272009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5828
5829 * frame.c (x_get_resource_string): Remove unused.
5830
0307c7d2
JD
58312009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5832
5833 * xterm.c (x_new_font): Call change_frame_size before calling
5834 x_set_window_size, in case frame size won't change.
5835
5836 * frame.c (x_set_font): Remove dead code.
5837
428b13d6
SM
58382009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5839
5840 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5841
5766c380
SM
58422009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5843
5844 * lread.c (Fload): Don't output a message after loading an obsolete
5845 package any more (done in Lisp now).
5846
2fd0161b
CY
58472009-09-12 Chong Yidong <cyd@stupidchicken.com>
5848
5849 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5850
bc5e75b6
SM
58512009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5852
5853 * keymap.c (Fwhere_is_internal): Use nconc2.
5854
c31c985e
AM
58552009-09-11 Alan Mackenzie <acm@muc.de>
5856
5857 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5858 batch mode.
5859
78012bd2
AS
58602009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5861
5862 * xdisp.c (display_mode_element): Detect cycles.
5863
9d889332
SM
58642009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5865
5866 * keymap.c (where_is_internal): Don't erroneously return nil right after
5867 filling the cache.
5868 (where_is_internal_1): Fix up typo.
5869
7ab5d780
GM
58702009-09-11 Glenn Morris <rgm@gnu.org>
5871
5872 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5873 share a common doc-string.
5874
5238a749
SM
58752009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5876
66d77eda
SM
5877 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5878 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5879
5238a749
SM
5880 * keymap.c (QCadvertised_binding): New constant.
5881 (syms_of_keymap): Initialize it.
5882 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5883 if applicable.
5884
19f48442
SM
58852009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5886
50d4ba39
SM
5887 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5888 (parse_menu_item): Streamline since bindings are recomputed all the
5889 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5890 more and don't support lmenu's menu-alias any more either.
5891
a88a5372
SM
5892 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5893 (where_is_internal): Strip it down to only traverse the keymaps.
5894 Move the cache handling from Fwhere_is_internal to here.
5895 (Fwhere_is_internal): Move the handling of remapping and the choice of
5896 the best binding from where_is_internal to here.
5897 Unify the cached/noncached paths, so remapping is also handled
5898 correctly when the cache is used, and so the cache can be used to
5899 speed up remap-handling when applicable.
5900 Give preference to non-remapped bindings.
5901 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5902 non-remapped bindings.
5903 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5904 command remapping.
5905
19f48442
SM
5906 * xdisp.c (display_mode_element): Move list length limit from 50 to
5907 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5908
599498c3 59092009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5910
5911 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5912
f9b7b5ac
SM
59132009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5914
a53af587
JB
5915 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5916 (Bug#4334)
5917
f9b7b5ac
SM
5918 * keymap.c (where_is_internal): Filter out shadowed remappings.
5919 Assume that where_is_internal returns unshadowed bindings to simplify
5920 the code and get rid of the gotos. Use ASIZE.
5921
04f4b72d
JD
59222009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5923
4da146f2
JD
5924 * xterm.c (x_focus_changed): If we get a focusout and pointer
5925 is invisible, make it visible.
5926
04f4b72d
JD
5927 * xterm.h: Remove condition for declaration of
5928 x_*_window_to_frame.
5929
7cef7ce3
SM
59302009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5931
5932 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5933 initial terminal as well.
5934
a54fa5b7
JD
59352009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5936
5937 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5938 x_menubar_window_to_frame.
a54fa5b7 5939
50426a04 5940 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5941 (XTmouse_position): Do not return valid positions
5942 for clicks in the menubar and the toolbar for Gtk+.
5943
5944 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5945 if the widget for the event has the same top level as a frame,
5946 return the frame.
5947 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5948 internal windows, bug #4122.
5949 (x_non_menubar_window_to_frame): Remove.
5950
5a021dd0
GM
59512009-09-02 Glenn Morris <rgm@gnu.org>
5952
5953 * buffer.c (default-major-mode): Move most of the doc from here...
5954 (major-mode): ... to here.
5955
548fe2f3
NR
59562009-08-30 Nick Roberts <nickrob@snap.net.nz>
5957
5958 * process.c (wait_reading_process_output): Keep the descriptor
5959 when pty is used by a non-child process, e.g., in I/O buffer of
5960 GDB this allows inferior to be restarted.
5961
e0840eef
EZ
59622009-08-29 Eli Zaretskii <eliz@gnu.org>
5963
5964 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5965 both branches into one.
5966
82e98df4
SM
59672009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5968
5969 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5970 (main): Use enable-multibyte-characters rather than
5971 default-enable-multibyte-characters. Output a warning message when
5972 running a unibyte session.
5973
890617cb
YM
59742009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5975
5976 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5977 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5978 (copy_data_segment): Also copy __program_vars section.
5979 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5980 (dump_it) [LC_DYLD_INFO]: Use it.
5981
5982 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5983
e7adeadc
EZ
59842009-08-28 Eli Zaretskii <eliz@gnu.org>
5985
5986 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5987 $(SRC)/buildobj.h.
5988 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5989 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5990 $(SRC)/buildobj.h.
5991 (clean): Add buildobj.h.
5992
3ed8bbdc
TZ
59932009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5994
5995 * print.c (print_object): Set escapeflag to 1 when printing
5996 hashtable keys and values.
5997
155a6764
SM
59982009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5999
6000 * lread.c (read_integer): Use doubles (and potentially return a float
6001 number) as we do in string-to-number.
6002 (read1): Use strtol to read integers, signal errors on strtol's
6003 overflow and use floats if strtol's output is too large for
6004 Elisp integers.
6005
877610de
EZ
60062009-08-27 Eli Zaretskii <eliz@gnu.org>
6007
6008 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6009 (make-buildobj-SH): Fix last change.
6010 (SRC): Move to before where it's first used.
6011
ef73e7be
KH
60122009-08-27 Kenichi Handa <handa@m17n.org>
6013
550c8289
KH
6014 * process.c (send_process): Use encode_coding_object instead of
6015 encode_coding_string to perform eol-conversion even if the string
6016 is unibyte.
6017
60afa08d
KH
6018 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6019 character.
6020
ef73e7be 6021 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6022 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6023
7b3a82d7
DN
60242009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6025
5654bf63
DN
6026 * callproc.c (Fcall_process): Remove always true #if.
6027
7b3a82d7
DN
6028 * lisp.h: Replace #if 0 code for checking with text pointing to
6029 the --enable-checking configure flag.
6030
6031 * emacs.c (main): Mention the --enable-profiling configure flag
6032 instead of using CFLAGS.
6033
878bde49
KR
60342009-08-26 Ken Raeburn <raeburn@raeburn.org>
6035
6036 * Makefile.in (buildobj.h): New target.
6037 (doc.o): Depend on it.
6038 (temacs${EXEEXT}): Don't generate buildobj.lst.
6039 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6040 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6041 ($(BLD)/doc.$(O)): Depend on it.
6042 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6043 provided by Eli Zaretskii.)
6044 ($(TEMACS)): Don't generate buildobj.lst.
6045 * doc.c: Include buildobj.h.
6046 (buildobj): New static variable.
6047 (Fsnarf_documentation): Use it, instead of opening and reading
6048 buildobj.lst.
6049
1574224c
MA
60502009-08-25 Michael Albinus <michael.albinus@gmx.de>
6051
6052 * dbusbind.c (Fdbus_call_method)
6053 (Fdbus_call_method_asynchronously): Use English numeric format for
6054 timeout values in doc string.
6055
d9da2f45
KH
60562009-08-25 Kenichi Handa <handa@m17n.org>
6057
ef73e7be
KH
6058 * alloc.c (mark_char_table): New function.
6059 (mark_object): Use mark_char_table for a char-table.
6060
d9da2f45
KH
6061 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6062 (CHAR_TABLE_REF): Use it.
6063
c8edcc01
KR
60642009-08-23 Ken Raeburn <raeburn@raeburn.org>
6065
6066 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6067 before invoking the newly build emacs to check for load-path
6068 shadowing.
6069
7763401b
GM
60702009-08-22 Glenn Morris <rgm@gnu.org>
6071
6072 * Makefile.in (bootstrap_exe): New variable.
6073 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6074 Use ${bootstrap_exe}.
6075
729eadda
EZ
60762009-08-22 Eli Zaretskii <eliz@gnu.org>
6077
6078 * coding.h (encode_coding_string): Don't encode unibyte strings.
6079 (Bug#4047)
6080
eb4c6ace
MA
60812009-08-22 Michael Albinus <michael.albinus@gmx.de>
6082
6083 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6084
6085 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6086 intended as hotfix only.
6087 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6088
36e34d1b
AR
60892009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6090
6091 * nsterm.m (ns_get_color): Update documentation properly for last
6092 change, and clean up loose ends in the code left by it. Fix
6093 longstanding bug with 16-bit hex parsing, and add support for
6094 yet another X11 format (rgb:r/g/b) for compatibility.
6095 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6096 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6097
f983eb8a
SM
60982009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6099
6100 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6101
3f56d3c6
MA
61022009-08-20 Michael Albinus <michael.albinus@gmx.de>
6103
6104 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6105 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6106 (xd_initialize, xd_pending_messages): Check, whether
6107 $DBUS_SESSION_BUS_ADDRESS is set.
6108
fb641d68
YM
61092009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6110
6111 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6112
6113 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6114
cf59a374
GM
61152009-08-20 Glenn Morris <rgm@gnu.org>
6116
6117 * emacs.c (system-type): Doc fix.
6118
1373f3be
SM
61192009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6120
6121 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6122 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6123
058ed861
MA
61242009-08-18 Michael Albinus <michael.albinus@gmx.de>
6125
1373f3be
SM
6126 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6127 New functions.
058ed861
MA
6128 (xd_initialize): Revert change from 2009-08-16.
6129
563a866e 61302009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6131
6132 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6133 font-group vector, return nil.
5fc05db0 6134
e42bdf01
CY
61352009-08-17 Chong Yidong <cyd@stupidchicken.com>
6136
6137 * process.c (status_notify): Don't perform redisplay.
6138 (Fdelete_process, list_processes_1, process_send_signal):
6139 Expliticly perform redisplay.
6140 (wait_reading_process_output): Always check process status, but
6141 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6142
4230ab74
KR
61432009-08-17 Ken Raeburn <raeburn@raeburn.org>
6144
1373f3be 6145 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6146 (XFLOAT_INIT): New macro for storing a float value.
6147 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6148 * fns.c (sxhash): Copy out the value of a float in order to
6149 examine its bytes.
6150 * dbusbind.c (xd_append_arg): Likewise.
6151
4230ab74
KR
6152 * emacs.c (main): Don't call syms_of_data twice.
6153
a0645cdd
MA
61542009-08-16 Michael Albinus <michael.albinus@gmx.de>
6155
6156 * dbusbind.c (xd_initialize): Add connection file descriptor to
6157 input_wait_mask, in order to let select() detect, whether a new
6158 message has been arrived.
ca4f31ea 6159 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6160
485db0ba
MA
61612009-08-15 Michael Albinus <michael.albinus@gmx.de>
6162
1373f3be
SM
6163 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6164 New functions.
485db0ba
MA
6165
6166 * lisp.h (xd_pending_messages): Declare.
6167
6168 * keyboard.c (readable_events): Call xd_pending_messages.
6169
b5b98ff4
CY
61702009-08-15 Chong Yidong <cyd@stupidchicken.com>
6171
1373f3be 6172 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6173
f8354c6e
CY
6174 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6175
b5b98ff4
CY
6176 * buffer.c (set_buffer_internal_1)
6177 (swap_out_buffer_local_variables): Check for unbound local
6178 variables (Bug#4138).
6179
8b9fc636
EZ
61802009-08-14 Eli Zaretskii <eliz@gnu.org>
6181
6182 * process.c (create_pty): Fix last change.
6183
ce959360
CY
61842009-08-13 Chong Yidong <cyd@stupidchicken.com>
6185
6186 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6187 (xbm_load_image): Caller changed.
64b807c9 6188 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6189
c7baf7e9
NR
61902009-08-13 Nick Roberts <nickrob@snap.net.nz>
6191
6192 * process.c (create_pty): New function.
6193 (Fstart_process): Use it to allow Emacs to just associate a pty
6194 with the buffer. See associated change in gdb-mi.el.
6195 (list_processes_1): Deal with no program name.
6196 (start_process_unwind): Use pid == -2 to mean no process.
6197
1ac9108a
SM
61982009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6199
6200 * cmds.c (nonundocount): New global variable.
6201 (keys_of_cmds): Initialize it.
6202 (Fself_insert_command): Use it to combine upto 20 sequential chars
6203 into a single undo entry, just like the Qself_insert_command code in
6204 keyboard.c does.
6205 Call frame_make_pointer_invisible, also like the Qself_insert_command
6206 code in keyboard.c does.
6207 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6208 than its own local replacement for it.
6209
e267324c
KR
62102009-08-10 Ken Raeburn <raeburn@raeburn.org>
6211
1ac9108a 6212 * fns.c (concat): Don't re-set string length to its current value.
77437343 6213
1ac9108a
SM
6214 * coding.h (decode_coding_string, encode_coding_string):
6215 Use SBYTES macro.
f0bed503 6216
1ac9108a 6217 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6218 (doprnt): Merge with doprnt1, discarding lispstrings code.
6219 * lisp.h (doprnt_lisp): Don't declare.
6220
416e006d
JL
62212009-08-07 Juri Linkov <juri@jurta.org>
6222
6223 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6224
6f7d5780
DN
62252009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6226
6227 * print.c (syms_of_print): Undo previous change.
6228
f19a0f5b
TZ
62292009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6230
6231 * lread.c (read1, syms_of_lread): Read hashtables back from the
6232 readable format.
6233
6234 * print.c (print_preprocess, print_object): Print hashtables fully
6235 and readably.
6236 (syms_of_print): Provide 'hashtable-print-readable.
6237
b9173dc2
AR
62382009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6239
6240 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6241 no family set.
6242 (nsfont_open): Handle case when entity has no family.
6243
1586503c
AR
62442009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6245
6246 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6247 element, not a list, for match case.
6248
087048cd
KH
62492009-07-28 Kenichi Handa <handa@m17n.org>
6250
6251 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6252 rigidly.
6253
6254 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6255 font_parse_xlfd. Check font properties more rigidly.
6256
780c2506
DN
62572009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6258
31fd7c5c
JB
6259 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6260 bsd-common.h.
780c2506 6261
a8c0cc18
KH
62622009-07-27 Kenichi Handa <handa@m17n.org>
6263
6264 * xfaces.c (face_with_height): Call font_clear_prop.
6265
4fbe2306
CY
62662009-07-26 Chong Yidong <cyd@stupidchicken.com>
6267
111d9af3
CY
6268 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6269
6270 * xterm.c (x_term_init): Use Qx.
6271
4fbe2306
CY
6272 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6273
1ac9108a 6274 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6275 (ns_get_color): Revert 2009-07-16 change.
6276
beb0b7f9
EZ
62772009-07-25 Eli Zaretskii <eliz@gnu.org>
6278
6279 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6280 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6281
2baf5e76
KR
62822009-07-25 Ken Raeburn <raeburn@raeburn.org>
6283
1ac9108a
SM
6284 * coding.h (decode_coding_string, encode_coding_string):
6285 Use SCHARS macro.
8890e5f5 6286
2baf5e76 6287 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6288 (load_depth): Delete.
2baf5e76
KR
6289 (Qload_in_progress): New variable.
6290 (load_unwind): Don't reference load_depth or load_in_progress.
6291 (Fload): Likewise; specbind Qload_in_progress instead.
6292 (init_lread): Don't initialize load_depth.
6293 (syms_of_lread): Initialize and protect Qload_in_progress.
6294
1395c6f5
AR
62952009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6296
6297 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6298
4e2f36cf
AR
62992009-07-23 Yavor Doganov <yavor@gnu.org>
6300
6301 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6302
5dd9a6f7
AR
63032009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6304
6305 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6306 Bugs 3792, 3720, 2402.
6307 (ns_lookup_indexed_color): Check for bad index.
6308 (ns_index_color): Init unused slot to 0.
6309 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6310 Bug 3714, possibly 3082.
5dd9a6f7 6311
c902b920
JR
63122009-07-22 Jason Rumney <jasonr@gnu.org>
6313
1ac9108a
SM
6314 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6315 Position IME window at cursor (Bug#2570).
c902b920
JR
6316 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6317 (globals_of_w32fns): Dynamically load functions required above.
6318
6319 * w32term.c (w32_draw_window_cursor): Send message to reposition
6320 any IME window.
6321
090101cf
CY
63222009-07-21 Chong Yidong <cyd@stupidchicken.com>
6323
6324 * fileio.c: Revert 2009-07-16 changes.
6325 (Vauto_save_include_big_deletions): New variable.
6326 (Fdo_auto_save): Disable auto-save only if
6327 auto-save-include-big-deletions is nil.
6328
e6583e3d
CY
63292009-07-21 Chong Yidong <cyd@stupidchicken.com>
6330
6331 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6332 the overflowed pixels into account (Bug#3879).
6333
ece435a5
KR
63342009-07-21 Ken Raeburn <raeburn@raeburn.org>
6335
6336 * lread.c (load_depth): New variable.
6337 (Fload, load_unwind, init_lread): Set it to the load recursion
6338 depth; set load_in_progress as a simple boolean based on the
6339 current load_depth. (Bug#3892)
6340
40b2d973
AR
63412009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6342
6343 * nsfont.m (ns_has_attribute): Remove.
6344 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6345
10be7e0d
JL
63462009-07-18 Juri Linkov <juri@jurta.org>
6347
6348 * process.c (Fset_process_query_on_exit_flag): Mention killing
6349 a buffer in docstring.
6350
fa055055
KH
63512009-07-17 Kenichi Handa <handa@m17n.org>
6352
6353 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6354
042f7b69
YM
63552009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6356
6357 * nsfns.m (Fns_set_alpha): Remove function.
6358 (syms_of_nsfns): Don't defsubr it.
6359
6360 * nsterm.m (ns_get_color): Remove incompatible color formats.
6361 (ns_color_to_lisp): Generate #rrggbb color format string.
6362
4be941e3
RS
63632009-07-16 Richard Stallman <rms@gnu.org>
6364
6365 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6366 (Fset_buffer_auto_saved): Handle save_length = -2.
6367
4e6b227d
CY
63682009-07-16 Chong Yidong <cyd@stupidchicken.com>
6369
6370 * xterm.c (Qx_gtk_map_stock): New var.
6371
6372 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6373 of calling intern each time.
6374
a1856973
YM
63752009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6376
6377 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6378 does tiling.
6379
6380 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6381
497e54d8
KH
63822009-07-14 Kenichi Handa <handa@m17n.org>
6383
72d36834
KH
6384 * font.c (font_vconcat_entity_vectors): New function.
6385 (struct font_sort_data): New member font_driver_preference.
6386 (font_compare): Check font_driver_preference.
6387 (font_sort_entities): The format of the first argument changed.
6388 (font_delete_unmatched): Likewise.
6389 (font_list_entities): The return type changed.
6390 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6391 (font_find_for_lface): Adjuste for the above changes.
6392 Don't suppress the checking of C even if the repertory supports it.
6393 (Flist_fonts): Adjust for the above changes.
72d36834 6394
1ac9108a
SM
6395 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6396 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6397 Reject a font who has adstyle property that is different from a
6398 langname derived from registry property.
1ac9108a 6399 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6400
b6046155
EZ
64012009-07-13 Eli Zaretskii <eliz@gnu.org>
6402
6403 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6404 local copy of dirfilename.
6405
fb6b6049
KH
64062009-07-13 Kenichi Handa <handa@m17n.org>
6407
e2402a5e
KH
6408 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6409 against max_char.
6410
fb6b6049
KH
6411 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6412 calling XSYMBOL (sym).
6413
65156807
EZ
64142009-07-11 Eli Zaretskii <eliz@gnu.org>
6415
1ac9108a
SM
6416 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6417 New function.
6418 (directory_files_internal) [WINDOWSNT]:
6419 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6420 the filesystem of the directory is fast or slow.
6421
6422 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6423 file name.
6424 (is_slow_fs): New function.
6425 (stat): Use it to determine whether to issue more system calls to
6426 get accurate file attributes, when w32-get-true-file-attributes is
6427 `local'.
6428
e0ab5fcf
JD
64292009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6430
6431 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6432 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6433 parameter font-parameter as default to the font dialog.
6434
784ceded
KH
64352009-07-10 Kenichi Handa <handa@m17n.org>
6436
6437 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6438
fb8edc0b
EZ
64392009-07-09 Eli Zaretskii <eliz@gnu.org>
6440
1ac9108a 6441 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6442
fb8edc0b
EZ
6443 * w32.c (stat): Treat UNC file names as residing on remote
6444 drives. (Bug#3542)
6445
635c75b1
KH
64462009-07-09 Kenichi Handa <handa@m17n.org>
6447
6448 * fontset.c (fontset_find_font): Fix previous change.
6449
c1d5ce94
MA
64502009-07-08 Michael Albinus <michael.albinus@gmx.de>
6451
6452 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6453 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6454 error flag.
6455
edb61b39
KH
64562009-07-08 Kenichi Handa <handa@m17n.org>
6457
374bf7e4
KH
6458 * fontset.c (fontset_find_font): Fix the logic of handling
6459 charset_matched.
6460 (font_for_char): Delete unused var.
6461 (generate_ascii_font_name): Delete it.
6462
edb61b39
KH
6463 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6464
6465 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6466 (encode_coding_sjis): Fix the code range check.
6467
0f3f018c
CY
64682009-07-07 Chong Yidong <cyd@stupidchicken.com>
6469
6470 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6471 (Fexpand_file_name): Copy string data properly (Bug#3772).
6472
fcaf6f3a
JD
64732009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6474
6475 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6476 first MapNotify.
6477
6809ca75
KH
64782009-07-07 Kenichi Handa <handa@m17n.org>
6479
6480 * character.h (unibyte_has_multibyte_table): Delete extern.
6481 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6482
6483 * charset.c (Fset_charset_priority): Update charset_unibyte.
6484 (syms_of_charset): Initialize charset_unibyte.
6485
6486 * character.c (unibyte_has_multibyte_table): Delete it.
6487 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6488 charset_unibyte.
6489 (multibyte_char_to_unibyte_safe): Likewise.
6490 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6491
1ac9108a 6492 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6493 (x_produce_glyphs): Likewise.
6494
6495 * .gdbinit (xcharset): Fix the treating $arg0.
6496
ad9e2d54
EZ
64972009-07-04 Eli Zaretskii <eliz@gnu.org>
6498
6499 Emulation of `getloadavg' on MS-Windows.
50426a04 6500 * w32.c: Include float.h.
ad9e2d54
EZ
6501 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6502 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6503 (get_native_system_info, get_system_times): New functions.
6504 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6505 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6506 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6507 g_b_init_get_system_times, and num_of_processors.
6508
0a3472c7
JR
65092009-07-03 Jason Rumney <jasonr@gnu.org>
6510
6511 * w32term.c (w32_initialize): Use standard types.
6512
80904120
EZ
65132009-07-03 Eli Zaretskii <eliz@gnu.org>
6514
6515 * dired.c (Ffile_attributes): Decode user and group names by the
6516 locale's encoding. (Bug#3443)
6517
6978862d
DN
65182009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6519
f8d23104
DN
6520 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6521 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6522
6523 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6524
6525 * term.c (init_tty): Remove spurious #ifdef.
6526
6978862d
DN
6527 * m/mips.h: Mention this file is also used for netbsd.
6528 * m/pmax.h: Remove file.
6529
e044e4fc
JD
65302009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6531
6532 * xterm.h (struct x_display_info): Add invisible_cursor.
6533 (struct x_output): Add current_cursor.
6534
6535 * xterm.c (XTtoggle_invisible_pointer): New function.
6536 (x_define_frame_cursor): Don't define cursor if invisible or the
6537 same as before. Set current_cursor.
6538 (x_create_terminal): Set toggle_invisible_pointer_hook.
6539
6540 * xfns.c (make_invisible_cursor): New function.
6541 (x_set_mouse_color): Call make_invisible_cursor.
6542 Set current_cursor.
6543 (x_window): Set current_cursor.
6544
6545 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6546
6547 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6548 inserting a character.
6549 (read_avail_input): Call frame_make_pointer_visible.
6550
6551 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6552 (frame_make_pointer_invisible, frame_make_pointer_visible):
6553 New functions.
e044e4fc
JD
6554 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6555
6556 * frame.h: Declare frame_make_pointer_invisible and
6557 frame_make_pointer_visible.
6558 (struct frame): Add pointer_invisible.
6559
574c8efa
JD
65602009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6561
7b507248
JD
6562 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6563 frame isn't visible.
6564 (xg_frame_resized): If width/height is -1, get size of window
6565 from X server.
6566
6567 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6568 for MapNotify.
6569
835bdaa7 6570 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6571 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6572 (flush_and_sync): Reintroduce.
574c8efa 6573
3f1c6666 65742009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6575
31fd7c5c 6576 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6577
6578 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6579 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6580
6581 * frame.h: Declare Qsticky.
6582
cad9ef74
JD
6583 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6584
6585 * nsfns.m (ns_frame_parm_handlers): Ditto.
6586
6587 * frame.c: Declare Qsticky.
6588 (frame_parms): Add sticky.
6589
6590 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6591
6592 * xterm.h: Declare x_set_sticky.
6593
6594 * xterm.c (x_set_sticky): New function.
6595
69b16610
JD
6596 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6597 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6598 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6599
6600 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6601
6602 * frame.c: Qmaximized is new.
6603 (x_set_frame_parameters): Do not handle fullscreen specially.
6604 Only set width and height if explicitly set.
6605 (x_set_fullscreen): Handle Qmaximized.
6606 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6607 (syms_of_frame): Initialize Qmaximized.
6608
1ac9108a
SM
6609 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6610 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6611
6612 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6613 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6614 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6615 set gravity to NorthWestGravity when USE_GTK.
6616 (set_wm_state): New function.
31fd7c5c 6617 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6618 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6619 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6620 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6621 to x_real_positions and x_fullscreen_adjust.
6622
6623 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6624 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6625 flush_and_sync.
6626 (xg_height_changed): New function.
6627 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6628 and gtk_window_set_policy. Set frame gravity after parsing the
6629 geometry string.
3f1c6666
JD
6630 (xg_update_frame_menubar, free_frame_menubar)
6631 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6632 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6633 Remove calls to xg_frame_set_char_size.
6634
fd503d99
KH
66352009-07-01 Kenichi Handa <handa@m17n.org>
6636
6637 * keyboard.c (decode_keyboard_code): New function.
6638 (tty_read_avail_input): Decode the input bytes if necessary.
6639
1ac9108a
SM
6640 * coding.c (setup_coding_system):
6641 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6642 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6643 use Qno_conversion.
6644
24ed93fb
YM
66452009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6646
6647 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6648
99061dfc
CY
66492009-06-30 Chong Yidong <cyd@stupidchicken.com>
6650
1ac9108a 6651 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6652
ff90fbde
JR
66532009-06-30 Jason Rumney <jasonr@gnu.org>
6654
6655 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6656 is already loaded.
6657 Set user model ID if supported (bug#1849).
6658
5f445726
JM
66592009-06-29 Jim Meyering <meyering@redhat.com>
6660
6661 Remove useless if-before-xfree test.
6662 * nsfont.m (nsfont_close): Remove useless test.
6663 * term.c (delete_tty): Likewise.
6664 * w32.c (system_process_attributes): Likewise.
6665 * w32font.c (w32font_close): Likewise.
6666 * xfaces.c (x_free_gc): Likewise.
6667 * xselect.c (buffer): Likewise.
6668
b9607587
AS
66692009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6670
6671 * process.c (send_process): Keep decoded string in a local
6672 variable and protect it from GC. (Bug#3521)
6673
89ba96f4
EZ
66742009-06-28 Eli Zaretskii <eliz@gnu.org>
6675
6676 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6677 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6678
098a1589
CY
66792009-06-28 Chong Yidong <cyd@stupidchicken.com>
6680
485422be
CY
6681 * xdisp.c (start_display, handle_face_prop)
6682 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6683 (redisplay_window, try_window_id, produce_image_glyph):
6684 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6685
098a1589
CY
6686 * xterm.c (x_update_window_begin, x_new_focus_frame)
6687 (x_scroll_bar_handle_click, handle_one_xevent)
6688 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6689 (x_make_frame_visible, x_make_frame_invisible)
6690 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6691 code chunks that are now obsolete.
6692
78c38319
MA
66932009-06-28 Michael Albinus <michael.albinus@gmx.de>
6694
6695 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6696 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6697 for hours, when optimzation is enabled.
6698 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6699 (xd_read_message): Make them static.
6700
4189ed40
CY
67012009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6702
6703 * term.c (turn_on_face): Allow simultaneously bold and dim
6704 terminal faces (Bug#3530).
6705
cd9b5e16
CY
67062009-06-27 Chong Yidong <cyd@stupidchicken.com>
6707
4e23bedb
CY
6708 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6709
cd9b5e16
CY
6710 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6711 truncation glyphs (Bug#3686).
6712
07cc3c35
GM
67132009-06-27 Glenn Morris <rgm@gnu.org>
6714
6715 * m/pmax.h: Restore file, with only netbsd portions.
6716
31fd7c5c 67172009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6718
cd9b5e16 6719 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6720
42d4a64f
KH
67212009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6722
6723 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6724 the arg FORCE_SYMBOL.
6725
930fe55b 67262009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6727
6728 * fontset.c (fontset_find_font): When a usable rfont_def is found
6729 in a fallback font-group, make it the first element of the group.
6730
57ebc3fd
CY
67312009-06-24 Chong Yidong <cyd@stupidchicken.com>
6732
6733 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6734
f084f942
KH
67352009-06-24 Kenichi Handa <handa@m17n.org>
6736
6737 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6738 set for C.
6739 (fontset_font): Record the availability of a font for C both in
6740 the realized fontsets of the current one and the default one.
6741
2f686c87
DN
67422009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6743
6744 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6745 conditional, it is always defined on AIX.
6746
666e158e
MB
67472009-06-23 Miles Bader <miles@gnu.org>
6748
6749 * window.c (Vrecenter_redisplay): New variable.
6750 (syms_of_window): Initialize it.
6751 (Qtty): New extern declaration.
6752 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6753
c6da7cd2
JM
67542009-06-23 Jim Meyering <meyering@redhat.com>
6755
1ac9108a
SM
6756 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6757 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6758 pointer dereferences are guaranteed to be valid.
c6da7cd2 6759
678dca3d
KH
67602009-06-23 Kenichi Handa <handa@m17n.org>
6761
74d75424
KH
6762 * emacs.c (main): Call init_font ().
6763
6764 * font.h (Vfont_log): Extern it.
6765 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6766
6767 * font.c (font_sort_entities, font_list_entities)
6768 (font_matching_entity, font_open_entity)
6769 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6770 (Vfont_log): Delete static.
6771 (font_log_env_checked): Delete this variable.
6772 (font_add_log): Don't check font_log_env_checked.
6773 (font_deferred_log): Check Vfont_log.
6774 (init_font): New function.
6775
678dca3d
KH
6776 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6777
6778 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6779
6780 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6781
6782 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6783
6784 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6785 (face_for_char): Don't call font_deferred_log here.
6786 (font_for_char): Likewise.
6787
8a668709
CY
67882009-06-22 Chong Yidong <cyd@stupidchicken.com>
6789
9a01ee33
CY
6790 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6791 rather than its background_width for drawing the overline and
6792 underline (Bug#489).
6793
6794 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6795 rather than its background_width for drawing the overline and
6796 underline (Bug#489).
ec7c9926
CY
6797 (xg_default_icon_file): New variable.
6798 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6799 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6800
8a668709
CY
6801 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6802 (load_overlay_strings): Remove externs.
6803 (fast_find_position): Function deleted.
6804 (mouse_face_from_buffer_pos): New function, based on
6805 fast_find_position. Correctly handle before-strings,
6806 display-strings, and after-strings (Bug#1220).
6807 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6808
4d4c02d8
CY
68092009-06-21 Chong Yidong <cyd@stupidchicken.com>
6810
1ac9108a 6811 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6812 (move_it_in_display_line_to, move_it_in_display_line_to)
6813 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6814
70243478
CY
68152009-06-21 Chong Yidong <cyd@stupidchicken.com>
6816
6817 * Branch for 23.1.
6818
13087e59
JR
68192009-06-21 Jason Rumney <jasonr@gnu.org>
6820
6821 * w32term.c (keyboard_codepage): New static variable.
6822 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6823 (w32_read_socket) [WM_CHAR]: Use it to decode character
6824 input (bug#3237).
6825 (w32_initialize): Initialize it.
6826 (codepage_for_locale): New function.
6827
4735b74e
KR
68282009-06-20 Ken Raeburn <raeburn@raeburn.org>
6829
6830 * process.c (status_message): Pass Faset index argument as a lisp
6831 object, so as to work with USE_LISP_UNION_TYPE.
6832
0e727afa
YM
68332009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6834
6835 * coding.c (Ffind_coding_systems_region_internal):
6836 Cache checked characters.
6837
cf299835
KH
68382009-06-18 Kenichi Handa <handa@m17n.org>
6839
1ac9108a 6840 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6841
90f20d94
AS
68422009-06-18 Andreas Schwab <aschwab@redhat.com>
6843
6844 * xdisp.c (redisplay_internal): Check that the frame is still
6845 live after redisplay of its windows.
6846 (redisplay_windows): Check that the window is still live.
6847
7f1faf1c
KH
68482009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6849
6850 * coding.c (detect_coding_utf_16): Fix previous change.
6851
cc13543e
KH
68522009-06-16 Kenichi Handa <handa@m17n.org>
6853
6854 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6855 UTF-16 by checking the dispersion of Eth and Oth bytes.
6856
977b85f4
AS
68572009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6858
6859 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6860
66bd43d1
KH
68612009-06-15 Kenichi Handa <handa@m17n.org>
6862
6863 * process.c (status_message): Fix previous change. Be sure to
6864 decode a localized string.
6865
cb5ca9c5
YM
68662009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6867
6868 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6869 add comment explaining why.
6870
ec7709ba 68712009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6872
ec7709ba 6873 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6874
4b7f335c
AR
68752009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6876
6877 * nsfont.m (ns_attribute_value): Remove.
6878 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6879 (ns_has_attribute): Shrink the normal range.
6880 (ns_findfonts): Don't worry about requested spec in determining
6881 need for synthItal.
e41820ee 6882 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6883
73b26103
SZ
68842009-06-14 Seiji Zenitani <zenitani@mac.com>
6885
6886 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6887
5753e4da
KH
68882009-06-11 Kenichi Handa <handa@m17n.org>
6889
6890 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6891 overhang for the static composition case.
6892
3561b671
KH
68932009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6894
5753e4da
KH
6895 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6896 overhang for the automatic composition case.
6897
3561b671
KH
6898 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6899 composition case.
6900
852bbd41
CY
69012009-06-10 Chong Yidong <cyd@stupidchicken.com>
6902
6903 * xdisp.c (get_next_display_element): When handling wrap-prefix
6904 and line-prefix, treat \n as a control character (bug#3502).
6905
9903d1e6
KH
69062009-06-10 Kenichi Handa <handa@m17n.org>
6907
6908 * font.c (font_parse_family_registry): Fix for one-char foundry.
6909 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6910
0bcbaaaa
CY
69112009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6912
6913 * process.c (status_message): Fix handling of multibyte signal
6914 string (Bug#3499).
6915
40aa3f13
JM
69162009-06-09 Jim Meyering <meyering@redhat.com>
6917
1f80c7e2
CY
6918 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6919 color name is missing.
40aa3f13 6920
72d51285
KH
69212009-06-09 Kenichi Handa <handa@m17n.org>
6922
6923 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6924 FROM-CODE and TO-CODE are codepoints of CHARSET.
6925
c1d04d84
AR
69262009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6927
6928 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6929
69302009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6931
6932 Changes to support :script/:lang/:otf in NS font driver.
6933 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6934 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6935 indicate not part of font driver interface, and change callers.
6936 (ns_get_family): Remove pointless null check.
6937 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6938 ns_spec_to_descriptor, ns_descriptor_to_entity.
6939 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6940 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6941 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6942 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6943 (ns_get_req_script, ns_accumulate_script_ranges)
6944 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6945 New functions.
6946 (nsfont_list, nsfont_match): Use ns_findfonts.
6947 (nsfont_open): Use font descriptor instead of traits.
6948 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6949 (dump_glyphstring): Rename to ns_dump_glyphstring.
6950
c7eb9816
AR
6951 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6952
c1d04d84
AR
6953 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6954
6955 * fontset.c (fontset_from_font): Remove NS-specific code.
6956
ec7709ba 69572009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6958
6959 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6960 nonactive windows.
6961
31fd7c5c 69622009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6963
1ac9108a 6964 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6965
68852c13 69662009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6967
6968 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6969
6756cd1d
CY
69702009-06-07 Chong Yidong <cyd@stupidchicken.com>
6971
6972 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6973 account for the overflowing of newlines into the last glyph on the
6974 display line (Bug#3482).
6975
28bf482a
DR
69762009-06-05 David Reitter <david.reitter@gmail.com>
6977
ec7709ba
JB
6978 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6979 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6980 Fns_selection_exists_p, Fns_selection_owner_p.
6981
fdb55376
JR
69822009-06-03 Jason Rumney <jasonr@gnu.org>
6983
6984 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6985 available. (Bug#3379)
6986
05129fbe
KH
69872009-05-29 Kenichi Handa <handa@m17n.org>
6988
1ac9108a
SM
6989 * coding.c (get_translation_table):
6990 Check Venable_character_translation.
05129fbe 6991
ec7709ba 69922009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6993
ec7709ba
JB
6994 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6995 (x_make_frame_visible): Move frame to front rather than calling
15891144 6996 ns_raise_frame().
ec7709ba 6997 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6998 isn't key window.
ec7709ba 6999 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7000 drawRect may be called by NSView even if the frame is hidden.
7001
ec7709ba
JB
7002 * nsfns.m (Fx_create_frame): Follow other ports in
7003 determining visibility; default to t. Ensure async_visible is set.
15891144 7004
21f73755
EZ
70052009-05-23 Eli Zaretskii <eliz@gnu.org>
7006
7007 * dired.c (Ffile_attributes): Doc fix.
7008
34001e41
CY
70092009-05-22 Chong Yidong <cyd@stupidchicken.com>
7010
7011 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7012
46306a17
SM
70132009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7014
7015 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7016 and xfont_scratch_props.
7017 (syms_of_xfont): Do it here instead.
7018 (xfont_find_ccl_program): Delete, unused.
7019 (xfont_open): Delete unused var `i'.
7020
ef6e0694
KH
70212009-05-21 Kenichi Handa <handa@m17n.org>
7022
7023 * fontset.c (Qlatin): Don't make it static.
7024
46306a17
SM
7025 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7026 New functions.
ef6e0694
KH
7027 (xfont_scripts_cache, xfont_scratch_props): New variables.
7028 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7029 (xfont_list_pattern): Argument changed. Callers changed.
7030 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7031 (xfont_list): Don't reject a font spec with :script property.
7032 (xfont_has_char): Fix setting of encoding.
7033 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7034 xfont_scratch_props.
7035
70362009-05-19 Kenichi Handa <handa@m17n.org>
7037
46306a17 7038 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7039 Callers changed.
7040
70412009-05-18 Kenichi Handa <handa@m17n.org>
7042
7043 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7044
ac71ced7
SM
70452009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7046
7047 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7048 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7049
1c6d1051
YM
70502009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7051
7052 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7053 (x_delete_terminal): Dissociate resource database from display and
7054 then call XrmDestroyDatabase before closing display.
7055
9b9b779c
AR
70562009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7057
7058 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7059 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7060 whether selected frame is viable before raising it (based on patch
7061 by David Reitter), and improve commentary.
7062 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7063
cccd42d5
KH
70642009-05-15 Kenichi Handa <handa@m17n.org>
7065
7066 * font.c (Ffont_spec): Check arguments.
7067
337fbd17
CY
70682009-05-14 Chong Yidong <cyd@stupidchicken.com>
7069
7070 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7071 weight when testing attributes (Bug#3282).
7072
47a6002f
JD
70732009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7074
7075 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7076 what we expect to get in the next ConfigureNotify event.
7077
9cb363db
YM
7078 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7079 before Xft one (Bug#1696).
7080
b9126609
CY
70812009-05-07 David Reitter <david.reitter@gmail.com>
7082
7083 * nsfns.m (Fx_display_planes): Compute bitplanes using
7084 NSBitsPerPixelFromDepth (Bug#3207).
7085
27a69fd9
CY
70862009-05-10 Chong Yidong <cyd@stupidchicken.com>
7087
7088 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7089
00f37552
TTN
70902009-05-10 Ulrich Mueller <ulm@gentoo.org>
7091
7092 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7093
2d82a920
DR
70942009-05-07 David Reitter <david.reitter@gmail.com>
7095
ec7709ba
JB
7096 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7097 Respect mouse face background.
2d82a920 7098
46b0d52d
DR
70992009-05-07 David Reitter <david.reitter@gmail.com>
7100
ec7709ba
JB
7101 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7102 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7103 in ns_update_begin and ns_update_end.
7104
ce1b23bb
SM
71052009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7106
5996e1b7
SM
7107 * nsfns.m (ns_get_screen): Rewrite.
7108 Don't presume selected-frame is of type `ns'.
7109
ba98e3a0
SM
7110 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7111 all drivers.
7112
ce1b23bb
SM
7113 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7114
bcda200f
YM
71152009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7116
7117 * keyboard.h (add_user_signal): Fix typo in extern.
7118
7119 * lisp.h (add_user_signal): Remove extern.
7120
7121 * unexelf.c (unexec): Consider a section to precede the .bss section
7122 if its addresses overlap that of .bss.
7123 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7124 instead of dumping process.
7125
864660a2
SM
71262009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7127
7128 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7129
50da4e56
SM
71302009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7131
7132 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7133
51520a1a
DN
71342009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7135
7136 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7137 any statements.
7138
409ea3a1
AS
71392009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7140
59c4c60f
AS
7141 * process.c (read_process_output): Make sure the current buffer is
7142 always restored.
7143
409ea3a1
AS
7144 * coding.c (record_conversion_result): Don't modify
7145 Vlast_code_conversion_error for successful result.
7146 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7147
56f00ed2
KH
71482009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7149
7150 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7151 (load_charset_map): Remove unnecessary code.
56f00ed2 7152
4491c9d2
DR
71532009-04-30 David Reitter <david.reitter@gmail.com>
7154
35f5b128 7155 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7156 through f24.
7157
6970f632
CY
71582009-04-30 Chong Yidong <cyd@stupidchicken.com>
7159
7160 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7161
7162 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7163 face_at_buffer_position.
7164 (face_before_or_after_it_pos, get_next_display_element)
7165 (note_mouse_highlight): Update face_at_buffer_position call.
7166
7167 * term.c (term_mouse_highlight):
7168 * msdos.c (IT_note_mouse_highlight):
7169 * fontset.c (Finternal_char_font):
35f5b128 7170 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7171
7172 * dispextern.h (face_at_buffer_position): Update prototype.
7173
0c616f63
KH
71742009-04-30 Kenichi Handa <handa@m17n.org>
7175
35f5b128 7176 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7177
ad3aaf33
AS
71782009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7179
7180 * callproc.c (Fcall_process): Fix GC protection. Make sure
7181 current buffer is always restored.
7182
c3c963a0
YM
71832009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7184
7185 * atimer.c (init_atimer): Also clear stopped_atimers.
7186
7187 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7188
7e3386cb
YM
7189 * process.c (create_process): Clean up merger residues of
7190 2008-07-17 change.
7191
91f68422
CY
71922009-04-29 Ulrich Mueller <ulm@gentoo.org>
7193
7194 * lread.c (Vread_circle): New variable.
7195 (read1): Disable recursive read if Vread_circle is nil.
7196
24b34550
KH
71972009-04-29 Kenichi Handa <handa@m17n.org>
7198
7199 * fontset.h (set_default_ascii_font): Delete extern.
7200
7201 * fontset.c (set_default_ascii_font): Delete this unused function.
7202
7203 * frame.c (x_set_font): When ARG is a font-object, check if the
7204 font-object matches with the ASCII font-spec of the frame's
9c358bda 7205 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7206
77bf07e1
AS
72072009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7208
7209 * fns.c (Flocale_info): Protect vector from GC during decoding.
7210
7211 * process.c (Fstart_process): Protect argv strings from GC during
7212 encoding.
7213
2c55aacf
AS
72142009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7215
7216 * sysdep.c: Include <ctype.h>.
7217
b892d3c9
DR
72182009-04-27 David Reitter <david.reitter@gmail.com>
7219
35f5b128 7220 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7221 Remove commented-out code.
7222
9d0644c4
JB
72232009-04-26 Johan Bockgård <bojohan@gnu.org>
7224
7225 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7226
b7053016
JR
72272009-04-25 Jason Rumney <jasonr@gnu.org>
7228
7229 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7230
4e8231f3
YM
72312009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7232
7233 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7234 Swap bytes in short integer if fringe bitmap width > 8.
7235
493dcf2c
KH
72362009-04-23 Kenichi Handa <handa@m17n.org>
7237
7238 * xfaces.c (Fx_list_fonts): If a font size is specified in
7239 PATTERN, set it in returned scalable fonts.
7240
401e9e57
CY
72412009-04-22 Chong Yidong <cyd@stupidchicken.com>
7242
708e05dc
CY
7243 * keyboard.c (Fset_input_meta_mode): Doc fix.
7244
7245 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7246
1ac9108a 7247 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7248
7249 * coding.c (Fterminal_coding_system): Doc fix.
7250
7251 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7252 (Fx_display_pixel_height, Fx_display_planes)
7253 (Fx_display_color_cells, Fx_server_max_request_size)
7254 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7255 (Fx_display_mm_height, Fx_display_mm_width)
7256 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7257 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7258 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7259 (check_x_display_info): Handle terminal objects instead of
7260 terminal ids.
7261
401e9e57
CY
7262 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7263 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7264 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7265 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7266
df80c7f0
KH
72672009-04-21 Kenichi Handa <handa@m17n.org>
7268
5a8f12af 7269 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7270 (font_score): Check AVGWIDTH too.
908567ef 7271
df80c7f0
KH
7272 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7273 worst case.
1ac9108a
SM
7274 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7275 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7276
705af33f
JR
72772009-04-19 Jason Rumney <jasonr@gnu.org>
7278
7279 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7280 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7281
7282 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7283 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7284 get_phys_cursor_geometry.
7285
b71ac3dd 7286 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7287 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7288 using get_phys_cursor_geometry.
7289
7290 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7291 correctly calculated.
7292
dc2933eb
JD
72932009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7294
1ac9108a
SM
7295 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7296 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7297 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7298 is deprecated.
7299
973e7849
AS
73002009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7301
7302 * font.c (font_put_frame_data): Use xfree instead of free.
7303
314d66f4
JB
73042009-04-17 Juanma Barranquero <lekktu@gmail.com>
7305
7306 * w32font.c (Qja, Qko): Remove declarations.
7307 (syms_of_w32font): Don't DEFSYM them.
7308
cf702558
CY
73092009-04-17 Chong Yidong <cyd@stupidchicken.com>
7310
7311 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7312
7313 * font.h (Qja, Qko): Extern them.
7314
7315 * ftfont.c (Qja, Qko): Remove declarations.
7316
7317 * xfont.c (Qja, Qko): Remove declarations.
7318
b50504f5
KH
73192009-04-17 Kenichi Handa <handa@m17n.org>
7320
bde25748
KH
7321 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7322 string from a vector to handle Latin-1 characters correctly.
7323
b50504f5
KH
7324 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7325 entity even if the cache hits.
7326
f4646fff
AS
73272009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7328
7329 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7330 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7331
e7deaab0
AS
7332 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7333 * lisp.h: Adjust prototypes.
7334
0a0e7d49
CY
73352009-04-16 Chong Yidong <cyd@stupidchicken.com>
7336
7337 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7338 change (Bug#3003).
7339
3c908a57
KH
73402009-04-16 Kenichi Handa <handa@m17n.org>
7341
1ac9108a 7342 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7343
7344 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7345 adstyle.
7346
7347 * ftfont.c (Qja, Qko): Don't make them static.
7348 (enum ftfont_cache_for): New enum.
7349 (fc_charset_table): Undo the previous change.
7350 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7351 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7352 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7353 non-scarable font, try to get AVERAGE_WIDTH.
7354 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7355 Change ft_face_cache from a list of a hash-table. Don't check
7356 `ja' and `ko' adstyle here.
7357 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7358 FTFONT_CACHE_FOR_CHARET.
7359 (ftfont_get_charset): Undo the previous change.
1ac9108a 7360 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7361 (ftfont_close): Likewise.
7362 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7363
7364 * font.c (font_sort_entites): Change the meaning of the arg
7365 BEST-ONLY. Don't optimize for VEC of lenght 1.
7366 (font_select_entity): Just return the value of font_sort_entites.
7367
7368 * xfaces.c (merge_face_vectors): Reflect font properties in
7369 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7370 font_clear_prop if a face attribute doesn't change.
7371
3c908a57
KH
7372 * charset.h (charset_ksc5601): Extern it.
7373
7374 * charset.c (charset_ksc5601): New variable.
7375 (Fdefine_charset_internal): Set charset_ksc5601.
7376 (init_charset_once): Initialize charset_ksc5601 to -1.
7377
d65859c3
DN
73782009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7379
7380 * fileio.c (history_delete_duplicates): Remove unused declaration.
7381
7382 * callint.c (history_delete_duplicates): New declaration.
7383 (Fcall_interactively): Remove command history duplicates when
7384 history_delete_duplicates is true.
7385
3ba010e5
EZ
73862009-04-14 Eli Zaretskii <eliz@gnu.org>
7387
7388 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7389
06f19b91
KH
73902009-04-14 Kenichi Handa <handa@m17n.org>
7391
7392 * font.c (Ffont_info): Fix docstring. Fix the second element of
7393 the returned value (bug#2949).
7394
2cce8bfc
CY
73952009-04-14 Chong Yidong <cyd@stupidchicken.com>
7396
7397 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7398
d156542d
KH
73992009-04-14 Kenichi Handa <handa@m17n.org>
7400
7401 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7402 encoding charset is ascii_compatible.
7403
7404 * charset.c (Fdefine_charset_internal): Make charset
7405 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7406 code_offset is 0, and covers all ASCII characters.
7407
86fa089e
SM
74082009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7409
7410 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7411 (ns_string_to_pasteboard_internal):
7412 * nsmenu.m (process_dialog):
7413 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7414 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7415 * lisp.h (Fx_load_color_file): Declare.
7416
a8a3728b
KH
74172009-04-13 Kenichi Handa <handa@m17n.org>
7418
1ac9108a 7419 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7420 (font_select_entity): Suppress the code to optimize for the same
7421 kind of fonts.
7422 (font_load_for_lface): Get a font that supports at least ASCII
7423 characters.
7424
7425 * ftfont.c (Qja, Qko): New variables.
7426 (fc_charset_table): Delete uniquifier data for iso8859-1.
7427 (ftfont_get_latin1_charset): New function.
7428 (get_adstyle_property): New function.
7429 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7430 bitmap fonts.
7431 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7432 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7433 `ko' or `ja'.
7434 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7435 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7436 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7437 property.
7438 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7439 (syms_of_ftfont): DEFSYM Qja and Qko.
7440
483670b5
KH
74412009-04-09 Kenichi Handa <handa@m17n.org>
7442
12b55765
KH
7443 * charset.c (map_charset_chars): For a charset of `superset'
7444 method, fix calculation of code range.
7445
483670b5
KH
7446 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7447 from the list of extra properties.
7448 (font_clear_prop): Be sure to delete `:name' font property.
7449
57d3b93b
KH
74502009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7451
b4b2c2ca
YM
7452 * dispnew.c (redraw_overlapping_rows): Fix detection of
7453 overlapping for topmost and bottommost rows.
7454
1ac9108a 7455 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7456
472c3609
JR
74572009-04-06 Jason Rumney <jasonr@gnu.org>
7458
7459 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7460
ab193662
KH
74612009-04-06 Kenichi Handa <handa@m17n.org>
7462
7463 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7464
7465 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7466
0c26f026
KH
74672009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7468
7469 * ftfont.c (ftfont_open): Fix checking of the return value of
7470 FT_Load_Char. Fix setting font->underline_thickness.
7471
e173bbce
CY
74722009-04-04 Chong Yidong <cyd@stupidchicken.com>
7473
7474 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7475 (Fterminal_parameters, Fterminal_parameter)
7476 (Fset_terminal_parameter): In doc string, refer to terminal
7477 objects rather than terminal ids.
7478
693a2698
EZ
74792009-04-04 Eli Zaretskii <eliz@gnu.org>
7480
7481 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7482 ret_lim_data. (Bug#2867)
7483
d5221487
CY
74842009-04-03 Chong Yidong <cyd@stupidchicken.com>
7485
7486 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7487 so they don't get wider than the window, matching 2006-01-23
7488 change to the partner function in xdisp.c (Bug#2800).
7489
223509a3
KH
74902009-04-03 Kenichi Handa <handa@m17n.org>
7491
7492 * print.c (print_object): Make each lowest sub_char_table start a
7493 new line (Bug#2866).
7494
74fcd0b1
KH
74952009-04-02 Kenichi Handa <handa@m17n.org>
7496
7497 * fontset.c (fontset_font): Record no-font when a fontset
7498 explicitly tells not to try another font-specs.
7499
c542407d
SM
75002009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7501
7502 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7503
e3869731
KH
75042009-03-30 Kenichi Handa <handa@m17n.org>
7505
d8d2f142
KH
7506 * fontset.c (fontset_from_font): Specify only registry in a
7507 font-spec for all characters supported by that registry.
7508
e3869731
KH
7509 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7510 even if HAVE_M17N_FLT is not defined.
7511
5da5f805
CY
75122009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7513
7514 * ftfont.c: Conditionalize prototyping and use of
7515 ftfont_variation_glyphs.
7516
ab226c50
SM
75172009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7518
9628fed7
SM
7519 * frame.c (delete_frame): Work around compiler bug.
7520
7521 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7522 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7523 Some more EMACS_INT.
7524 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7525
7526 * xdisp.c (dump_glyph): Fix typo.
7527
ae19ba7c
SM
7528 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7529 (adjust_markers_gap_motion, adjust_markers_for_delete)
7530 (adjust_markers_for_insert, adjust_point)
7531 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7532 (make_gap, copy_text, count_size_as_multibyte, insert)
7533 (insert_and_inherit, insert_before_markers)
7534 (insert_before_markers_and_inherit, insert_1)
7535 (count_combining_before, count_combining_after, insert_1_both)
7536 (insert_from_string, insert_from_string_before_markers)
7537 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7538 (insert_from_buffer_1, adjust_after_replace)
7539 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7540 (replace_range_2, del_range, del_range_1, del_range_byte)
7541 (del_range_both, del_range_2, modify_region)
7542 (prepare_to_modify_buffer, signal_before_change)
7543 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7544 for buffer positions and sizes.
7545 * lisp.h: Adjust prototypes accordingly.
7546
7547 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7548 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7549 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7550
ab226c50
SM
7551 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7552
46dfb8fb
JD
75532009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7554
7555 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7556 lines and columns so we keep the same pixel height and width.
7557
7558 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7559 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7560 (x_handle_net_wm_state): New function to update frame parameter
7561 fullscreen.
7562 (x_term_init): Initialize atoms for _NET_WM_STATE.
7563
7564 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7565
d347e494
SM
75662009-03-27 Kevin Ryde <user42@zip.com.au>
7567
7568 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7569 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7570 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7571 (Fgpm_mouse_stop): Pass that new parameter.
7572 * termhooks.h (close_gpm): Adjust prototype.
7573
84db11d6
SM
75742009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7575
c95a5008
SM
7576 * lisp.h (Fx_focus_frame): Declare.
7577
84db11d6
SM
7578 * callint.c (Fcall_interactively): For '^' just delegate the work to
7579 handle-shift-selection.
7580 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7581
0a1958d6
CY
75822009-03-24 Chong Yidong <cyd@stupidchicken.com>
7583
0bfdff23
CY
7584 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7585
0a1958d6
CY
7586 * data.c (Qinteractive_form): New variable.
7587 (Finteractive_form): Use it.
7588
7589 * eval.c (Fcommandp): Use Qinteractive_form.
7590
58aec0d6
JR
75912009-03-24 Jason Rumney <jasonr@gnu.org>
7592
7593 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7594 Calculate total size precisely. Decode environment variables
7595 before substituting. (Bug#38)
7596
553dd618
KH
75972009-03-24 Kenichi Handa <handa@m17n.org>
7598
7599 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7600 encoding (Bug#2722).
553dd618 7601
c39ea606
JD
76022009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7603
7604 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7605 that gdpy is set.
7606
bc9b2b5e
AM
76072009-03-22 Alan Mackenzie <acm@muc.de>
7608
7609 * callint.c (Finteractive): Clarify the doc string - even
7610 promptless elements need \n separators.
7611
9f995a76
JR
76122009-03-22 Jason Rumney <jasonr@gnu.org>
7613
7614 * w32term.c (syms_of_w32term): Doc fix for
7615 x-use-underline-position-properties.
7616
22749e9a
EZ
76172009-03-21 Eli Zaretskii <eliz@gnu.org>
7618
7619 * w32.c (getpwuid): Change argument type to unsigned.
7620 (struct w32_id): Change type of `rid' member to unsigned.
7621 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7622 argument ID to unsigned. All callers changed.
7623 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7624
e00553bf
EZ
76252009-03-20 Eli Zaretskii <eliz@gnu.org>
7626
7627 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7628 negative, produce a float value.
7629
7630 * dired.c (make_uid, make_gid): New functions.
7631 (Ffile_attributes): Use them to avoid negative UID and GID.
7632
f761d6b6
JB
76332009-03-20 Juanma Barranquero <lekktu@gmail.com>
7634
7635 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7636 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7637 Fix typos in docstrings.
7638
d507f8d7
KH
76392009-03-19 Kenichi Handa <handa@m17n.org>
7640
7641 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7642 changed, use font_load_for_lface to get a new font object.
7643 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7644
7645 * frame.c (x_set_font): Handle the case that ARG is a cons.
7646
c68845e0
GM
76472009-03-19 Glenn Morris <rgm@gnu.org>
7648
7649 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7650
bfa49dd1
CY
76512009-03-19 Chong Yidong <cyd@stupidchicken.com>
7652
7653 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7654
8458d4c1
KH
76552009-03-19 Kenichi Handa <handa@m17n.org>
7656
7657 * charset.c (load_charset_map_from_file): When a mapfile can't be
7658 loaded, signal an error.
7659
78e7d1fe
EZ
76602009-03-18 Eli Zaretskii <eliz@gnu.org>
7661
7662 * dired.c (Ffile_attributes): Make sure UID and GID are always
7663 positive, even if the value is too large for a positive EMACS_INT.
7664 Doc fix.
7665
7666 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7667
5da9fdfa
YM
76682009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7669
7670 * xmenu.c (xdialog_show): Move Fredisplay call ...
7671 (Fx_popup_dialog): ... here.
7672
7519c40d
SM
76732009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7674
7675 * dired.c (file_name_completion): Disable the first optimization just
7676 installed, since it is not implemented correctly.
7677
2cd298e2
SM
76782009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7679
7680 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7681 only if the entry can affect bestmatch.
2cd298e2
SM
7682 Stop the search early, as Ftry_completion already does.
7683
48d37adf
CY
76842009-03-17 Chong Yidong <cyd@stupidchicken.com>
7685
e10c9c93 7686 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7687
9286b16a
CY
76882009-03-15 Chong Yidong <cyd@stupidchicken.com>
7689
7690 * keyboard.c (parse_menu_item): Don't display remappings as menu
7691 equivalent bindings (Bug#788).
7692
f7b146dc
JR
76932009-03-15 Jason Rumney <jasonr@gnu.org>
7694
7695 * w32term.h (WM_EMACS_PAINT): New message.
7696 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7697 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7698 before passing to lisp thread. (Bug#950)
7699
f761d6b6 77002009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7701
d93f9575
CY
7702 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7703 variable as it was never reset.
7704 (ns_term_init): Remove initialization of Lisp-settable defaults
7705 and ns_expand_space.
7706 (-setPanelFromDefaultValues): Remove ns_expand_space.
7707 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7708 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7709 i.e. no additional spacing, similar to Carbon port.
7710
d93f9575
CY
7711 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7712 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7713
305018ec
JD
77142009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7715
7716 * sound.c (alsa_configure): Remove call to deprecated
7717 snd_pcm_sw_params_set_xfer_align.
7718
f761d6b6 77192009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7720
7721 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7722 after clicking in a detached tool bar.
7723 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7724
46e722a9
SM
77252009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7726
348db3dd
SM
7727 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7728 int/Lisp_Object mixup).
46e722a9 7729
a3d16f39
KH
77302009-03-13 Kenichi Handa <handa@m17n.org>
7731
7732 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7733 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7734 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7735 (set_fontset_font): Change ARG to a vector. Handle range_list in
7736 ARG correctly.
7737 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7738 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7739 the above change.
7740 (fontset_from_font): Fix previous change.
fe24f56a 7741 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7742 entry. If FONTSET is the default fontset, don't set the extra
7743 slot of the returning char-table.
7744
b066e6b6
JB
77452009-03-12 Juanma Barranquero <lekktu@gmail.com>
7746
7747 * nsfns.m (Fx_close_connection): Doc fix.
7748 (Fns_do_applescript): Reflow docstring.
7749 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7750 (Fx_display_pixel_width, Fx_display_pixel_height)
7751 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7752 Fix typos in docstrings.
7753 (Fns_set_alpha): Fix typos in error messages.
7754
d472514e 77552009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7756
d472514e 7757 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7758 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7759 were used for such events.
7760
d472514e
JB
7761 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7762 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7763
d472514e 7764 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7765 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7766
fb930676
KH
77672009-03-11 Kenichi Handa <handa@m17n.org>
7768
ff85581a
KH
7769 * font.h (font_open_by_spec): Extern it.
7770
c50b7e98
KH
7771 * font.c (font_open_by_spec): New function.
7772 (font_open_by_name): Use font_open_by_spec.
7773
fb930676
KH
7774 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7775 fontset of the frame.
7776
7777 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7778 modify the default font of frames that use this fontset.
7779 (num_auto_fontsets): New variable.
7780 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7781 name. Be sure to set FONTSET_ASCII to the correct font name.
7782 (update_auto_fontset_alist): New function.
7783
df4e8455
JB
77842009-03-11 Juanma Barranquero <lekktu@gmail.com>
7785
7786 * makefile.w32-in: Update dependencies.
7787
0a375797
AR
77882009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7789
7790 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7791
61313fa3
SM
77922009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7793
7794 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7795
b55103fb
CY
77962009-03-10 Chong Yidong <cyd@stupidchicken.com>
7797
7798 * lread.c (Feval_buffer): Doc fix.
7799
dde2559c
KH
78002009-03-09 Kenichi Handa <handa@m17n.org>
7801
7802 * charset.c (Qfile_name_handler_alist): Extern it.
7803 (load_charset_map_from_file): Temporarily bind
7804 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7805
df4e8455 78062009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7807
47f588bb
GM
7808 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7809 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7810
4ddf94bd
AR
78112009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7812
4c9bdfc2
AR
7813 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7814 (x_set_window_size): Change back to calculated method of setting
7815 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7816 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7817 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7818
fe41ae9e
AR
7819 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7820
4c9bdfc2
AR
7821 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7822 accelerator in parens under GNUstep.
7823
825d0875
KH
78242009-03-06 Kenichi Handa <handa@m17n.org>
7825
7826 These changes are to detect incorrect composition sequence without
f3b3be74 7827 looking ahead the source. (Bug#2370)
825d0875
KH
7828
7829 * coding.h: Include "composite.h".
7830 (enum compisition_state): New enum.
7831 (struct compisition_status): New struct.
7832 (struct iso_2022_spec): New member cmp_status.
7833 (struct emacs_mule_spec): New struct.
7834 (struct coding_system): New members ctext_extended_segment_len and
7835 embedded_utf_8. Change the union member
7836 spec.emacs_mule_full_support to spec.emacs_mule.
7837
7838 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7839 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7840 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7841 (ADD_COMPOSITION_DATA): New arg nbytes.
7842 (emacs_mule_char): New arg cmp_status.
7843 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7844 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7845 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7846 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7847 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7848 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7849 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7850 (EMACS_MULE_COMPOSITION_END): New macro.
7851 (emacs_mule_finish_composition): New function.
7852 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7853 (decode_coding_emacs_mule): Avoid long looking ahead while
7854 handling composition.
7855 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7856 (ENCODE_COMPOSITION_RULE): New macro.
7857 (finish_composition): New function.
7858 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7859 (DECODE_COMPOSITION_START): New implementation.
7860 (DECODE_COMPOSITION_END): Likewise.
7861 (STORE_COMPOSITION_RULE): New macro.
7862 (decode_coding_iso_2022): Avoid long looking ahead while handling
7863 composition, CTEXT extended segment, and embedded UTF-8.
7864 (setup_coding_system): For a coding of type iso-2022, reset
7865 CODING_ISO_EXTSEGMENT_LEN (coding) and
7866 CODING_ISO_EMBEDDED_UTF_8 (coding).
7867 (get_translation): Delete arguments last_block, from_nchars,
7868 to_nchars. Callers changed.
7869 (produce_chars): Don't modify charbuf. Adjusted for the change of
7870 get_translation.
98a326f7 7871 (produce_composition): Adjust for the new annotation sequence.
825d0875 7872 (handle_composition_annotation): Likewise.
98a326f7 7873 (consume_chars): Adjust for the change of get_translation.
825d0875 7874
ccbc4452
AR
78752009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7876
4ddf94bd 7877 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7878
988a7ddb
KH
78792009-03-05 Kenichi Handa <handa@m17n.org>
7880
7881 * font.c (font_select_entity): New function.
7882 (font_find_for_lface): Use font_select_entity to select a font.
7883
7884 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7885 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7886 font with C restriction.
7887
98a326f7 78882009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7889
be1bce46 7890 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7891
10ea2b82
JR
78922009-03-04 Jason Rumney <jasonr@gnu.org>
7893
2c93b248 7894 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7895 characters that have already been read. (Bug#2569)
2c93b248 7896
10ea2b82
JR
7897 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7898 Log an error message if check_image_size failed.
7899 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7900 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7901
71a0c011
EZ
79022009-03-02 Eli Zaretskii <eliz@gnu.org>
7903
7904 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7905 when decoding process output.
7906
2f63bba8
RS
79072009-03-01 Richard M Stallman <rms@gnu.org>
7908
7909 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7910
7911 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7912
0a9564cb
EZ
79132009-02-28 Eli Zaretskii <eliz@gnu.org>
7914
7915 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7916 (decode_coding_emacs_mule, decode_coding_iso_2022)
7917 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7918 (decode_coding_raw_text, decode_coding_charset)
7919 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7920 Honor inhibit-eol-conversion. (Bug #2186)
7921
449148b3
JR
79222009-02-28 Jason Rumney <jasonr@gnu.org>
7923
7924 * coding.c (detect_coding_charset): If not checking latin extra,
7925 fail on characters between 0x80 and 0xA0. (Bug#2354)
7926
a4aee864
EZ
79272009-02-28 Eli Zaretskii <eliz@gnu.org>
7928
7929 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7930 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7931
d88bee5a
GM
79322009-02-27 Glenn Morris <rgm@gnu.org>
7933
7934 * callint.c (Finteractive): Doc fix.
7935
a808f22d
KH
79362009-02-27 Kenichi Handa <handa@m17n.org>
7937
7938 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7939
caf8d60c
CY
79402009-02-27 Chong Yidong <cyd@stupidchicken.com>
7941
7942 * font.c (font_style_to_value): Set value for unknown symbols to
7943 100 instead of 255.
b61137ea
CY
7944 (weight_table, slant_table, width_table): Treat "unspecified" as
7945 the default value.
caf8d60c 7946
1a0de25c
JB
79472009-02-26 Juanma Barranquero <lekktu@gmail.com>
7948
7949 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7950
8fc45744
JB
79512009-02-25 Juanma Barranquero <lekktu@gmail.com>
7952
107bd7d1
JB
7953 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7954 error as soon as a recursive load is detected.
8fc45744 7955
f097e223
AR
79562009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7957
7958 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7959 before caching.
7960
8810a12f
KH
79612009-02-24 Kenichi Handa <handa@m17n.org>
7962
7963 * fontset.c (fontset_find_font): Fix the condition for checking
7964 unavailable font.
7965
2c7d1565
GM
79662009-02-24 Glenn Morris <rgm@gnu.org>
7967
7968 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7969 whitespace that confuses documentation.
7970
a20878b6
MB
79712009-02-23 Miles Bader <miles@gnu.org>
7972
7973 * process.c (Flist_system_processes, Fprocess_attributes)
7974 (syms_of_process): Rename `system-process-attributes' to
7975 `process-attributes'.
7976
b3b58c01
AS
79772009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7978
1b3b981b
AS
7979 * coding.h (struct coding_system): Make safe_charsets a pointer to
7980 unsigned char.
7981 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7982 being 255.
7983 (SAFE_CHARSET_P): Likewise.
7984 (setup_iso_safe_charsets): Properly setup safe_charsets.
7985 (Fdefine_coding_system_internal): Likewise.
7986 (setup_coding_system): Likewise. Remove unneeded casts.
7987 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7988 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7989 unneeded casts.
7990
b3b58c01
AS
7991 * insdel.c (del_range_2): Don't modify gap contents when called
7992 from decode_coding_object. (Bug#1809)
7993
0b6f228c
CY
79942009-02-21 Chong Yidong <cyd@stupidchicken.com>
7995
7996 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7997 Qfont_object.
7998 (Ftype_of): Recognize font objects.
7999
8000 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8001
8002 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8003 moved to data.c.
8004
52f8870b
AR
80052009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8006
8007 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8008 async_iconified. Based on a patch by Christian Lynbech
8009 <christian.lynbech@tieto.com>.
8010 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8011
7087d5e9
GM
80122009-02-20 Glenn Morris <rgm@gnu.org>
8013
8014 * syntax.c (Fskip_chars_forward): Fix doc typo.
8015
41d2ceef
CY
80162009-02-20 Chong Yidong <cyd@stupidchicken.com>
8017
8018 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8019
1a3b7ca6
CY
80202009-02-19 Chong Yidong <cyd@stupidchicken.com>
8021
8022 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8023
73cce38d
KH
80242009-02-19 Kenichi Handa <handa@m17n.org>
8025
8026 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8027 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8028
a51092ee
DN
80292009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8030
8031 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8032
c423ecca
KH
80332009-02-18 Kenichi Handa <handa@m17n.org>
8034
8035 * font.c (font_check_otf_features): Fix handling of `nil' element.
8036 (Ffont_spec): Describe :lang and :otf in the docstring.
8037
4c1958f4
AS
80382009-02-16 Andreas Schwab <schwab@suse.de>
8039
8040 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8041 string.
8042
5704f39a
KH
80432009-02-16 Kenichi Handa <handa@m17n.org>
8044
8045 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8046 (Bug#1723)
5704f39a 8047
8f0085aa
CY
80482009-02-14 Chong Yidong <cyd@stupidchicken.com>
8049
a057d86a 8050 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8051
8052 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8053 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8054
aff01dd9
EZ
80552009-02-14 Eli Zaretskii <eliz@gnu.org>
8056
8057 * msdos.c (MAX_SCREEN_BUF): New macro.
8058 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8059 Encode the entire run of glyphs sharing the same face, instead of
8060 doing that one glyph at a time (fixes a bug with displaying
8061 double-size characters).
8062
ba301db3
AR
80632009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8064
8065 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8066
8067 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8068 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8069 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8070
8071 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8072 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8073
51d861de
SM
80742009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8075
ac146f82 8076 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8077 invisible areas.
8078
7fed8996
JR
80792009-02-12 Jason Rumney <jasonr@gnu.org>
8080
631ea4fb
JR
8081 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8082 (add_font_entity_to_list): Call check_face_name even when family
8083 is unspecified.
8084
cb4a3e42
JR
8085 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8086 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8087 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8088
7fed8996 8089 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8090 raster fonts. (Bug#2219)
7fed8996 8091
895416e3
KH
80922009-02-12 Kenichi Handa <handa@m17n.org>
8093
8094 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8095 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8096 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8097 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8098 (find_automatic_composition): While looking forward and backward,
8099 check static composition. Fix where to stop looking forward.
8100 (composition_adjust_point): Fix checking of static composition.
8101 (Fcomposition_get_gstring): Pay attention to
1dacf998 8102 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8103
8104 * lisp.h (fast_looking_at): Extern it.
8105
8106 * search.c (fast_looking_at): New function.
8107
51d861de 8108 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8109 <struct glyph>.u.cmp.to.
8110 (append_composite_glyph): Likewise.
8111
51d861de 8112 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8113 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8114 composition.
51d861de 8115 (append_composite_glyph): Adjust for the change of
895416e3
KH
8116 <strcut glyph>.u.cmp.to.
8117
8510724d
JB
81182009-02-11 Juanma Barranquero <lekktu@gmail.com>
8119
8120 * casetab.c (init_casetab_once):
8121 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8122 * font.c (font_update_lface):
8123 * fontset.c (Fnew_fontset):
8124 * ftfont.c (ftfont_drive_otf):
8125 * xfont.c (xfont_open):
8126 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8127
294fa707
SM
81282009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8129
8130 * fileio.c (Fwrite_region): !NILP -> CONSP.
8131
b5bfebec
AS
81322009-02-10 Andreas Schwab <schwab@suse.de>
8133
8134 * process.c (send_process): Properly relocate pointer into data
adab88bd 8135 when using encoded data. (Bug#2272)
b5bfebec 8136
cb84a2be
KH
81372009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8138
8139 * coding.c (detect_coding_charset): Fix previous change.
8140
89e09428
JR
81412009-02-08 Jason Rumney <jasonr@gnu.org>
8142
8143 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8144 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8145
4470a277
AS
81462009-02-07 Andreas Schwab <schwab@suse.de>
8147
8148 * unexelf.c (unexec): Fix error message.
8149
3175b12a
AR
81502009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8151
8152 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8153 when modal window is active. (Bug #2152)
3175b12a
AR
8154 (applicationShouldTerminate:): Remove now-unneeded while loop
8155 around NSRunAlertPanel.
8156
8157 * nsmenu.m (popupSession): New file-global variable.
8158 (pop_down_menu): End the popupSession before closing dialog.
8159 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8160 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8161 don't query NSApp for events (just sleep instead).
8162
8434d0b8
EZ
81632009-02-07 Eli Zaretskii <eliz@gnu.org>
8164
51d861de
SM
8165 * coding.c (syms_of_coding) <translation-table-for-input>:
8166 Modify doc string to discourage use for character code unification.
8434d0b8 8167
aa82edfd
CY
81682009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8169
8170 * atimer.c (run_timers): Update pending_atimers.
8171
2d283c7c
CY
81722009-02-06 Chong Yidong <cyd@stupidchicken.com>
8173
eb306cab
CY
8174 * image.c (svg_load_image): Fix last change.
8175
2d283c7c
CY
8176 * xfns.c (Fx_create_frame): Signal an error if no font is
8177 found (Bug#2147).
8178
4d8e170e
JB
81792009-02-05 Juanma Barranquero <lekktu@gmail.com>
8180
8181 * character.c (syms_of_character) <script-representative-chars>:
8182 Fix typo in docstring.
8183
c96169a0
AR
81842009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8185
8186 * nsmenu.m (pop_down_menu): New function.
8187 (ns_popup_dialog): Call it on unwind.
8188 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8189 call timer_check() (Bug#2154).
8190 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8191 handling_signal is set.
8192 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8193
31fd7c5c 8194 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8195
8196 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8197
8198 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8199
51d861de
SM
8200 * keyboard.c (poll_for_input_1, handle_async_input):
8201 Set handling_signal under HAVE_NS.
c96169a0 8202
aacd8ba1
GM
82032009-02-04 Glenn Morris <rgm@gnu.org>
8204
8205 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8206
4cb75c4b
KH
82072009-02-04 Kenichi Handa <handa@m17n.org>
8208
8209 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8210
8211 * charset.c (Fchar_charset): New optional arg restriction.
8212
8213 * coding.h (coding_system_charset_list): Extern it.
8214
8215 * coding.c (coding_system_charset_list): New function.
8216
8217 * composite.c: Include coding.h and termhooks.h.
8218 (composition_gstring_p): Fix for the terminal case.
8219 (composition_gstring_width): Likewise.
8220 (fill_gstring_body): Likewise.
8221 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8222 the frame.
8223 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8224 is within a composition.
867d4bb3 8225 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8226
8227 * term.c (encode_terminal_code): Fix handling of composition.
8228 (produce_composite_glyph): For static composition, get pixel_width
8229 from struct composition.
8230
826ba17e
AS
82312009-02-02 Andreas Schwab <schwab@suse.de>
8232
8233 * unexelf.c (unexec): Handle unaligned bss offset.
8234
8ad093db
AR
82352009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8236
8237 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8238 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8239
8ad093db
AR
8240 * keyboard.c (handle_interrupt): Don't call
8241 quit_throw_to_read_char() under NS.
d0a76a6e 8242
8ad093db
AR
8243 * blockinput.h: Remove NS-specific code.
8244
4d18a7a2
DN
82452009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8246
db878925
DN
8247 * dispnew.c (window_change_signal): Don't try to get the size of a
8248 suspended tty frame.
8249 * term.c (Fresume_tty): Resize if the size has changed while the
8250 tty was suspended.
8251
4d18a7a2
DN
8252 * alloc.c (mark_stack): Properly conditionalize previous change.
8253
8984df7c
JB
82542009-01-30 Juanma Barranquero <lekktu@gmail.com>
8255
8256 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8257 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8258 Remove; this code is not used on Windows.
8259
75f4f1ac
EZ
82602009-01-30 Eli Zaretskii <eliz@gnu.org>
8261
8262 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8263 EOLs that also has stray ^M characters.
8264
07a1e794
JB
82652009-01-30 Juanma Barranquero <lekktu@gmail.com>
8266
8267 * atimer.c (run_timers, alarm_signal_handler):
8268 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8269 * w32inevt.c (w32_console_read_socket):
8270 * w32term.c (w32_read_socket):
8271 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8272
a8b11cc9
CY
82732009-01-30 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8276 Initialize it as a relative filename pattern.
8277 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8278 (Fcall_process_region): Simplify temp file creation using
8279 temporary-file-directory.
8280
c279587b
EZ
82812009-01-29 Eli Zaretskii <eliz@gnu.org>
8282
8283 * msdos.c: Rename pending_signals to msdos_pending_signals.
8284 (sig_suspender, sigprocmask): Adjust.
8285
a8fe3242
CY
82862009-01-29 Chong Yidong <cyd@stupidchicken.com>
8287
8288 * keyboard.c (pending_signals): New var.
8289 (poll_for_input, input_available_signal, init_keyboard): Set it.
8290 (process_pending_signals): New function.
8291
8292 * lisp.h (QUIT): Check pending_signals instead of
8293 interrupt_input_pending. Use process_pending_signals.
8294
51d861de 8295 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8296
51d861de 8297 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8298
8299 * sysdep.c (emacs_write): Use process_pending_signals.
8300
8301 * xterm.c (XTread_socket): Update pending_signals.
8302
8303 * w32term.c (w32_read_socket): Update pending_signals.
8304
8305 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8306
6570a1c4
KH
83072009-01-29 Kenichi Handa <handa@m17n.org>
8308
8309 * xftfont.c (xftfont_has_char): New function.
8310 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8311
d72a4afa
AR
83122009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8313
8314 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8315 under GNUstep.
8316 (ns_query_color): New declaration.
8317
8318 * nsterm.m (ns_confirm_quit): New variable.
8319 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8320 (EmacsApp-applicationShouldTerminate:): Use it.
8321 (EmacsPrefsController): Let user set it.
8322 (ns_query_color): New function.
8323 (ns_defined_color): Use it.
8324 (ns_initialize): Drop.
8325 (ns_term_init): Add two lines from ns_initialize(), and set
8326 input_interrupt_mode to nil.
8327
8328 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8329 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8330
9fe78804
KH
83312009-01-28 Kenichi Handa <handa@m17n.org>
8332
8333 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8334 (fontset_get_font_group): Remember that no font-group is specified
8335 for C.
9fe78804 8336
fa57de36
CY
83372009-01-27 Chong Yidong <cyd@stupidchicken.com>
8338
930600e9
CY
8339 * fns.c (concat): Check for string overflow (bug#1787).
8340
fa57de36
CY
8341 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8342 Quadruple undo limits (bug#1501).
8343
7179ce7b
KH
83442009-01-27 Kenichi Handa <handa@m17n.org>
8345
8346 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8347 directly use GT_Get_Char_index.
8348
8349 * xftfont.c (struct xftfont_info): New member `index'.
8350
8351 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8352 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8353
5be8fcc0
CY
83542009-01-26 Kenichi Handa <handa@m17n.org>
8355
8356 * fontset.c (fontset_find_font): Fix handling of non-cons return
8357 value of fontset_get_font_group.
8358 (fontset_font): Revert last change.
8359
19ae3e61
JR
83602009-01-26 Jason Rumney <jasonr@gnu.org>
8361
8362 * w32font.c (w32font_list_internal): Return quickly if registry is
8363 unknown. Simplify final return.
8364 (add_font_entity_to_list): Break complex logic down into more
8365 manageable chunks. Move unknown registry check to
8366 w32font_list_internal.
8367
8612b71a
AR
83682009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8369
8370 Changes to remove Feval calls from GUI under NS.
8371
d8038940
JB
8372 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8373 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8374 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8375
8376 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8377 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8378 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8379 instead of NON_ASCII_KEYSTROKE_EVENT.
8380 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8381 (EmacsApp-applicationShouldTerminate:): Query user.
8382 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8383 instead of Feval.
8384
8385 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8386
8387 * keyboard.c (kbd_buffer_get_event): Check for it.
8388 (keys_of_keyboard): Define lispy keys for
8389 ns-put/unput-working-text.
8390
8391 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8392 versions.
8393 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8394
6288ae55
CY
83952009-01-25 Chong Yidong <cyd@stupidchicken.com>
8396
8397 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8398 setting current_buffer directly. (Bug#2044)
6288ae55 8399
289e7f8f
CY
84002009-01-24 Chong Yidong <cyd@stupidchicken.com>
8401
5ce87308 8402 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8403 any work. (Bug#1952, bug#1990).
5ce87308 8404
64cc3cf6 8405 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8406
b3243e6f
AR
84072009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8408
8409 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8410 (ns_no_defaults): New declaration.
8411 (main): Use it.
e0d2e69a 8412
d900b2af 8413 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8414
d900b2af 8415 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8416
d900b2af
AR
8417 * nsterm.m (ns_no_defaults): New variable.
8418 (ns_initialize): Don't read defaults when ns_no_defaults.
8419 (EmacsView-readSelectionFromPasteboard:)
8420 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8421 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8422 (ns_dumpglyphs_stretch): New function.
8423 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8424 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8425
e0d2e69a
AR
8426 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8427
3ac71f5d
CY
84282009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8429
8430 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8431 call for Sparc64.
8432
3fe53a83
AR
84332009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8434
8435 * nsfns.m:
8436 * nsgui.h:
8437 * nsmenu.m:
8438 * nsselect.m:
8439 * nsterm.h:
8440 * nsterm.m: Remove '23' comments that indicated code added during
8441 update from emacs-20 -> emacs-23.
8442
10f87c6f 84432009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8444
8445 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8446 ns_alternate_modifier. (Bug#1217)
a3b53a85 8447
c7cef62d
AR
8448 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8449 Display all shortcuts, including those w/o super modifier.
8450
575fb8bd
AR
8451 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8452
918b848b
CY
84532009-01-22 Chong Yidong <cyd@stupidchicken.com>
8454
8455 * fileio.c (Vwrite_region_post_annotation_function)
8456 (Vwrite_region_annotation_buffers): New vars.
8457 (build_annotations_unwind): Just reset
8458 Vwrite_region_annotation_buffers.
8459 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8460 Call write-region-post-annotation-function.
8461 (build_annotations): Add to Vwrite_region_annotation_buffers if
8462 buffer changes.
8463
a39e2539
AR
84642009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8465
8466 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8467 Tiger.
51d861de
SM
8468 * nsfns.m (ns_do_applescript):
8469 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8470
35ed44db
AR
84712009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8472
8473 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8474
cbe0b5bf
AR
84752009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8476
8477 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8478
6049d3a0
AR
8479 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8480
8481 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8482 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8483 handle Ctrl-tab. (Bug#1841)
8484 (ns_get_color): Use unsigned long long for scanned hex string value.
8485 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8486 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8487 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8488 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8489 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8490 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8491 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8492
d3810c21 8493 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8494 DPI. (Bug#1316)
d3810c21
AR
8495 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8496 values in onTiger section.
4c7077c3 8497
e301e634
CY
84982009-01-19 Chong Yidong <cyd@stupidchicken.com>
8499
7f82490b
CY
8500 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8501 Check return value of font_spec_from_name.
64cc3cf6 8502 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8503
8504 * font.c (font_spec_from_name): Return Qnil if font name could not
8505 be parsed.
8506 (font_parse_name): Treat a `?' character as part of an XLFD.
8507
e301e634
CY
8508 * fns.c (Fsubstring): Doc fix.
8509
1c0db158
KH
85102009-01-19 Kenichi Handa <handa@m17n.org>
8511
51d861de 8512 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8513 (ftfont_list): Likewise.
8514
acf20901
JB
85152009-01-18 Juanma Barranquero <lekktu@gmail.com>
8516
fff4e459
JB
8517 * dbusbind.c (Fdbus_register_signal):
8518 * process.c (conv_sockaddr_to_lisp):
8519 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8520
acf20901
JB
8521 * callproc.c (Fgetenv_internal): Doc fix.
8522
e7abcdfb
CY
85232009-01-16 Chong Yidong <cyd@stupidchicken.com>
8524
8525 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8526 it is not even used.
8527
b60861e6
GM
85282009-01-16 Glenn Morris <rgm@gnu.org>
8529
8530 * font.c (Ffont_variation_glyphs): Silence compiler.
8531
8db52afe
JB
85322009-01-15 Juanma Barranquero <lekktu@gmail.com>
8533
8534 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8535 Reported by David Robinow <drobinow@gmail.com>.
8536
4cddb209
KH
85372009-01-15 Kenichi Handa <handa@m17n.org>
8538
51d861de 8539 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8540
f247f67b
JR
85412009-01-14 Jason Rumney <jasonr@gnu.org>
8542
8543 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8544 never a fontset. (Bug#1562)
f247f67b 8545
f56a4450
KH
85462009-01-14 Kenichi Handa <handa@m17n.org>
8547
8548 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8549 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8550
4e99855e
CY
85512009-01-13 Chong Yidong <cyd@stupidchicken.com>
8552
8553 * font.c (font_clear_prop): If clearing the family, clear the font
8554 width index too.
8555
fff4e459 8556 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8557
24f01470
JB
85582009-01-12 Juanma Barranquero <lekktu@gmail.com>
8559
8560 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8561 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8562 functions, use sizeof.
8563
a41240a3
MR
85642009-01-12 Martin Rudalics <rudalics@gmx.at>
8565
8566 * keyboard.c (read_char): Fix case where last_nonmenu_event
8567 returned a bad value with submenus. (Bug#447)
8568
944636b8
CY
85692009-01-12 Chong Yidong <cyd@stupidchicken.com>
8570
8571 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8572 family, clear the font width index too.
8573
0dad7c6f
JR
85742009-01-11 Jason Rumney <jasonr@gnu.org>
8575
8576 * keyboard.c (cmd_error_internal): Exit when errors occur before
8577 frame creation and not in daemon mode. (Bug#1836)
8578
7c2363af
CY
85792009-01-10 Chong Yidong <cyd@stupidchicken.com>
8580
8581 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8582 of a display vector, backtrack.
8583 (try_window_reusing_current_matrix): Check glyph type before
8584 referencing charpos member.
8585
97b1b294
EZ
85862009-01-10 Eli Zaretskii <eliz@gnu.org>
8587
8588 Fix Bug #876:
8589
8590 * coding.c (inhibit_null_byte_detection): New variable.
8591 (detect_coding, detect_coding_system): Don't pay attention to null
8592 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8593 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8594 <inhibit-iso-escape-detection>: Doc fix.
8595
4624b6e3
JR
85962009-01-09 Jason Rumney <jasonr@gnu.org>
8597
8598 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8599 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8600 Only report Unicode Plane 2 fonts as unicode-sip.
8601
323b840c
CY
86022009-01-09 Chong Yidong <cyd@stupidchicken.com>
8603
51d861de
SM
8604 * xfaces.c (Fx_font_family_list): Delete function.
8605 Move compatibility version to faces.el.
323b840c 8606
51d861de 8607 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8608
eba7400d
MR
86092009-01-09 Martin Rudalics <rudalics@gmx.at>
8610
8611 * frame.c (x_set_frame_parameters): Remember requested value for
8612 fullscreen before it's reset by the parameter handler.
8613
4b09796d
GM
86142009-01-09 Glenn Morris <rgm@gnu.org>
8615
8616 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8617 (last_command_event): ... and update all users.
4b09796d
GM
8618 (last_input_char): For clarity, rename to...
8619 (last_input_event): ... and update all users.
8620 (last-command-char, last-input-char): Move to subr.el as aliases.
8621 * cmds.c, commands.h: Update for last_command_char rename.
8622
14ccea62
CY
86232009-01-08 Chong Yidong <cyd@stupidchicken.com>
8624
51d861de 8625 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8626
5f004711
JR
86272009-01-08 Jason Rumney <jasonr@gnu.org>
8628
8629 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8630 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8631 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8632 Don't declare.
fff4e459 8633 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8634 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8635
b71f6f73
KH
86362009-01-07 Kenichi Handa <handa@m17n.org>
8637
50b06221 8638 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8639 remember the coding system used for decoding in
50b06221
KH
8640 coding_system (Bug#1039).
8641
b71f6f73 8642 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8643 breaking the loop. (Bug#870)
b71f6f73
KH
8644 (decode_coding_utf_16, decode_coding_emacs_mule)
8645 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8646 (decode_coding_charset): Likewise.
8647
56f668f7
MR
86482009-01-05 Martin Rudalics <rudalics@gmx.at>
8649
8650 * frame.c (x_set_frame_parameters): Make sure height (width) get
8651 applied when fullwidth (fullheight) is set. (Bug#1522)
8652
5da9424d
JB
86532009-01-04 Juanma Barranquero <lekktu@gmail.com>
8654
8655 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8656 (utc_base): Declare as ULONGLONG, not long double.
8657 (convert_time_raw): Delete.
8658 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8659 (initialize_utc_base): New function.
8660 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8661 (convert_from_time_t): Use initialize_utc_base; compute result with
8662 64-bit arithmetic.
8663 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8664
c4605e09
EZ
86652009-01-03 Eli Zaretskii <eliz@gnu.org>
8666
9acef61c 8667 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8668 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8669 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8670 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8671 [!subprocesses]: Define.
8672 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8673 (Flist_system_processes, Fsystem_process_attributes)
8674 [!subprocesses]: Call list_system_processes and
8675 system_process_attributes instead of returning Qnil.
8676
9acef61c
JB
8677 * dosfns.c (system_process_attributes, list_system_processes):
8678 New functions.
c4605e09
EZ
8679
8680 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8681
8682 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8683 Don't use the default (no-op) implementation.
8684
8b7d0a16
JR
86852009-01-03 Jason Rumney <jasonr@gnu.org>
8686
a6d46bc1
JR
8687 * keyboard.c (parse_modifiers_uncached): Wheel events are
8688 clicks (bug#687).
8689
8b7d0a16
JR
8690 * w32term.c (x_query_colors, x_query_color): New functions.
8691
8692 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8693 (svg_load_image): Cast returned pointers from dynamically loaded
8694 functions. Eliminate W32 specific code.
8695
bfe11752
DN
86962009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8697
89e2438a
DN
8698 * nsfns.m (x_set_foreground_color, x_set_background_color)
8699 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8700 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8701 x_ prefix instead of ns_. Update references.
8702 (syms_of_nsfns): Add a FIXME comment.
8703
8704 * nsterm.m (x_set_cursor_type): New prototype.
8705 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8706
bfe11752
DN
8707 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8708 for Solaris instead of incorrectly providing Qutime and Qcutime.
8709
031da700
EZ
87102009-01-02 Eli Zaretskii <eliz@gnu.org>
8711
8712 * w32.c (process_times): Compute sum of utime and stime.
8713 (system_process_attributes): Add Qtime to the alist.
8714
8715 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8716 and add them to the alist.
8717
8718 * process.c (top level) <Qtime, Qctime>: New variables.
8719 (syms_of_process): staticpro them.
8720 (Fsystem_process_attributes): Add their documentation to the doc
8721 string.
8722
8723 * process.h: Declare Qtime and Qctime.
8724
df23bf08
JR
87252009-01-02 Jason Rumney <jasonr@gnu.org>
8726
9acef61c 8727 * image.c (Qgobject): New symbol.
df23bf08
JR
8728 (syms_of_image): Initialize it.
8729 (init_svg_functions): Load some functions from gobject library.
8730
5bbdf7aa
DN
87312009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8732
8733 * frame.c (make_terminal_frame): Remove redundant code and useless
8734 block.
8735
63136da6
AS
87362009-01-01 Andreas Schwab <schwab@suse.de>
8737
8738 * process.c (conv_sockaddr_to_lisp): Add workaround for
8739 getsockname bug on BSD.
8740
9ef69046
CY
87412009-01-01 Chong Yidong <cyd@stupidchicken.com>
8742
d6fafbe0
CY
8743 * xfns.c (x_create_tip_frame): Set border width of the X window.
8744
51d861de 8745 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8746
f9c34147
JR
87472009-01-01 Jason Rumney <jasonr@gnu.org>
8748
9acef61c 8749 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8750 Don't block input, as per earlier xterm.c changes.
8751
f5497e45
AR
87522008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8753
8754 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8755 (ns_appkit_version_int): New function.
8756 (x-server-version): Use ns_appkit_version_int and follow 21+
8757 convention of returning 3 integers.
8758
c19cab20
KH
87592008-12-30 Kenichi Handa <handa@m17n.org>
8760
8761 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8762 (CHAR_SURROGATE_PAIR_P): New macro.
8763
8764 * font.h (struct font_driver): New member get_variation_glyphs.
8765
9acef61c 8766 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8767 (Ffont_variation_glyphs): New function.
8768 (syms_of_font): Defsubr it.
8769
8770 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8771 ftfont_variation_glyphs.
8772 (setup_otf_gstring): New function.
8773 (ftfont_drive_otf): Use it.
8774 (ftfont_shape_by_flt): Handle variation selector.
8775 (ftfont_variation_glyphs): New function.
8776
28cd591f
MR
87772008-12-30 Martin Rudalics <rudalics@gmx.at>
8778
8779 * frame.c (Vemacs_iconified): Remove.
8780
7f714baf
JR
87812008-12-30 Jason Rumney <jasonr@gnu.org>
8782
8783 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8784 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8785
9d2d22ab
CY
87862008-12-30 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * indent.c (Fvertical_motion): Don't advance iterator if we have
8789 reseated to the desired position.
8790
8791 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8792 checking for pos match.
8793
545312c2
KH
87942008-12-30 Kenichi Handa <handa@m17n.org>
8795
1ede3eb6
KH
8796 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8797 just get the low 8-bit of the code.
8798
545312c2
KH
8799 * font.c (font_intern_prop): Validate str as multibyte.
8800
bd7bbf29
DN
88012008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8802
31e0750e
DN
8803 * dispextern.h (struct face): Move lface and hash from the middle
8804 of bitfields.
8805
bd7bbf29
DN
8806 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8807
b5672e7c
DN
88082008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8809
8810 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8811 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8812 instead of intervals.h.
8813
d704470f
AS
88142008-12-26 Andreas Schwab <schwab@suse.de>
8815
8816 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8817 cons.
8818
54b33868
MR
88192008-12-26 Martin Rudalics <rudalics@gmx.at>
8820
8821 * textprop.c (Qminibuffer_prompt): New variable.
8822 (syms_of_textprop): Initialize it.
8823 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8824 in minibuffer-prompt face. (Bug#1662)
8825
40b615d6
JR
88262008-12-25 Jason Rumney <jasonr@gnu.org>
8827
8828 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8829
baae5c2d
JR
88302008-12-24 Jason Rumney <jasonr@gnu.org>
8831
8832 * ralloc.c (r_alloc_reset_variable): New function.
8833
8834 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8835 record of what points where. (Bug#716)
baae5c2d 8836
a9051c88
DN
88372008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8838
8839 * minibuf.c (read_minibuf): Follow the non-interactive case when
8840 running as a daemon, before detaching.
8841
8b146312
AS
88422008-12-22 Andreas Schwab <schwab@suse.de>
8843
8844 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8845 * gtkutil.c (free_widget_value): Use xfree instead of free.
8846
56f2de10
MR
88472008-12-22 Martin Rudalics <rudalics@gmx.at>
8848
8849 * frame.c (delete_frame): New function derived from
8850 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8851 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8852 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8853 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8854 * frame.h: Extern delete_frame.
8855 * window.c (window_loop):
8856 * terminal.c (delete_terminal):
8857 * xterm.c (x_connection_closed):
8858 * xfns.c (Fx_hide_tip):
9acef61c 8859 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8860
1fc200d6
JR
88612008-12-21 Jason Rumney <jasonr@gnu.org>
8862
8863 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8864 when character maps to .notdef character.
8865
5e252df2
SM
88662008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8867
8868 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8869
99b72cc4
JR
88702008-12-20 Jason Rumney <jasonr@gnu.org>
8871
8872 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8873 a graphical frame on Windows. (Bug#1325)
99b72cc4 8874
acc49a52
JD
88752008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8876
8877 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8878
6ea15123
CY
88792008-12-20 Chong Yidong <cyd@stupidchicken.com>
8880
8881 * minibuf.c (Fread_buffer): Doc fix.
8882
b2dab6c8
JR
88832008-12-20 Jason Rumney <jasonr@gnu.org>
8884
54ea0c87 8885 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8886 server name in UNC paths. (Bug#719)
54ea0c87 8887
b2dab6c8 8888 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8889 charbuf. (Bug#1035)
b2dab6c8 8890
6d1921be
DN
88912008-12-19 Daniel Engeler <engeler@gmail.com>
8892
8893 * sysdep.c (serial_configure): Fix typo.
8894
53934c98
DN
88952008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8896
8897 * sysdep.c: Include alloca.h.
f4f634e8
DN
8898 (system_process_attributes): Add implementation for Solaris.
8899
8900 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8901
06e111a6
DN
89022008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8903
8904 Reorganize implementation of Flist_system_processes and
8905 Fsystem_process_attributes. No functional changes.
8906 * process.c: Don't #include pwd.h, grp.h and limits.h.
8907 (Flist_system_processes): Just call list_system_processes.
8908 (Fsystem_process_attributes): Just call system_process_attributes.
8909 (procfs_list_system_processes, time_from_jiffies)
8910 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8911 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8912
8913 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8914 (list_system_processes): Rename from
8915 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8916 Provide a do nothing implementation.
8917 (system_process_attributes): Rename from
8918 procfs_list_system_processes.
8919 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8920 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8921
8922 * w32.c (list_system_processes): Rename from
8923 w32_list_system_processes.
8924 (system_process_attributes): Rename from
8925 w32_system_process_attributes.
8926
8927 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8928
8929 * process.h (w32_list_system_processes)
8930 (w32_system_process_attributes): Remove.
362654a6
JB
8931 (list_system_processes, system_process_attributes):
8932 New prototypes.
06e111a6 8933
6a705b23
KH
89342008-12-19 Kenichi Handa <handa@m17n.org>
8935
8936 * xfont.c (xfont_decode_coding_xlfd): New function.
8937 (xfont_encode_coding_xlfd): New function.
8938 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8939 (xfont_list): Decode and encode XLFD by iso-8859-1.
8940 (xfont_match): Likewise.
8941 (xfont_list_family): Likewise.
8942 (xfont_open): Likewise.
8943
d66c0241 8944 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8945 names are utf-8.
8946
d66c0241 8947 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8948 names are utf-8.
8949
5a130941
JD
89502008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8951
8952 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8953 changed.
bfd20325
JD
8954 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8955 clicked on a detached tool bar button.
5a130941 8956
fd95644b
DN
89572008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8958
8959 * emacs.c (main): Print and error and exit when no data is read
8960 from the pipe.
8961
e6eee6ae
JR
89622008-12-17 Jason Rumney <jasonr@gnu.org>
8963
8964 * w32font.c (w32font_has_char): Always return -1.
8965
a35dd56b
KH
89662008-12-16 Kenichi Handa <handa@m17n.org>
8967
8968 * font.c (font_open_entity): Fix previous change.
8969
0e3635c2
DN
89702008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8971
8972 * process.c: Include <limits.h>.
8973
d4835507 89742008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8975
8976 * font.c (font_update_drivers): Fix mistake in reconstructing the
8977 driver list.
8978
89792008-12-16 Chong Yidong <cyd@stupidchicken.com>
8980
8981 * font.c (font_clear_cache): Fix format of font cache data.
8982
e2cbc401
CY
89832008-12-15 Chong Yidong <cyd@stupidchicken.com>
8984
8985 * xftfont.c (xftfont_open): Free Xft font pattern if
8986 XftFontOpenPattern fails.
8987
8988 * xterm.c (x_free_frame_resources): Remove extraneous call to
8989 free_frame_faces.
8990
b131d535
CY
89912008-12-13 Chong Yidong <cyd@stupidchicken.com>
8992
8993 * xterm.c (x_delete_display): Move xim_close_dpy call to
8994 x_delete_terminal.
8995 (x_delete_terminal): Call xim_close_dpy.
8996
e6df5336
JR
89972008-12-13 Jason Rumney <jasonr@gnu.org>
8998
8999 * w32font.c (intern_font_name): New function.
9000 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9001 (w32font_open_internal, Fx_select_font): Decode font name.
9002 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9003
9004 * w32font.h (intern_font_name): Declare new function.
9005
9006 * w32uniscribe.c (add_opentype_font_name_to_list):
9007 Use intern_font_name.
9008
20d68145
CY
90092008-12-13 Chong Yidong <cyd@stupidchicken.com>
9010
9f2554de
CY
9011 * frame.c (Fdelete_frame): Call free_font_driver_list.
9012
3d9bec9a
CY
9013 * font.c (free_font_driver_list): Implement missing function.
9014
20d68145
CY
9015 * w32term.c (w32_term_init): Don't initialize the image cache
9016 here; it will be done in init_frame_faces.
9017
9018 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9019 (struct x_display_info): Remove unused member null_pixel. New
9020 member xim_callback_data.
9021
9022 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9023 (xim_initialize): Save pointer to callback function data.
9024 (xim_close_dpy): Free callback function data. Call XCloseIM,
9025 reverting 2008-11-04 change by David Smith.
9026 (x_term_init): Don't initialize the image cache here; it will be
9027 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9028 (x_delete_display): Free x_dnd_atoms member.
9029
96f9306b
KH
90302008-12-13 Kenichi Handa <handa@m17n.org>
9031
6dec9044
JB
9032 * font.c (font_rescale_ratio): Moved from xfaces.c.
9033 Argument type changed. Handle a font-spec too.
96f9306b 9034 (font_score): Check Vface_font_rescale_alist.
6dec9044 9035 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9036
9037 * xfaces.c (font_rescale_ratio): Moved to font.c.
9038
8d5b4964
CY
90392008-12-13 Chong Yidong <cyd@stupidchicken.com>
9040
9041 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9042
e6df5336
JR
90432008-12-12 Jason Rumney <jasonr@gnu.org>
9044
9045 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9046 Vwindow_system_version to the real w32 major version.
9047
97c6058a
DN
90482008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9049
9050 * term.c (init_tty): Move setting the terminal name before the
9051 potential user: maybe_fatal.
9052
ec4e88d7
CY
90532008-12-11 Chong Yidong <cyd@stupidchicken.com>
9054
d4835507
JB
9055 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9056 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9057
b4233ec9
JR
90582008-12-11 Jason Rumney <jasonr@gnu.org>
9059
8ec71e23 9060 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9061 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9062
b4233ec9 9063 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9064 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9065
011a0143
JB
90662008-12-11 Juanma Barranquero <lekktu@gmail.com>
9067
9068 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9069
3c309f34
JB
90702008-12-11 Juanma Barranquero <lekktu@gmail.com>
9071
9072 * process.c (Fsystem_process_attributes, syms_of_process):
9073 Fix typo in name of Ssystem_process_attributes.
9074 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9075
fedc6ab5
JB
90762008-12-11 Juanma Barranquero <lekktu@gmail.com>
9077
9078 * syntax.c (Fmodify_syntax_entry): Doc fix.
9079
ba3de0e8
JB
90802008-12-10 Juanma Barranquero <lekktu@gmail.com>
9081
9082 * font.c (Ffont_spec): Move usage to end of docstring.
9083
174f1c74
JR
90842008-12-10 Jason Rumney <jasonr@gnu.org>
9085
9086 * w32font.c (Qcham): New symbol.
9087 (font_supported_scripts): Add cham, and comments for other new
9088 scripts in bitfield from OpenType spec.
9d32f818
JR
9089 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9090 contain characters beyond the bmp.
174f1c74 9091
7b649478
KH
90922008-12-10 Kenichi Handa <handa@m17n.org>
9093
9094 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9095 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9096 Qunicode_sip.
9097
2133e2d1
JB
90982008-12-10 Juanma Barranquero <lekktu@gmail.com>
9099
9100 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9101 (Fcoding_system_put): Use QCdefault_char.
9102 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9103
9af886ee
CY
91042008-12-09 Chong Yidong <cyd@stupidchicken.com>
9105
74d819eb
CY
9106 * xftfont.c (syms_of_xftfont): Fix typo.
9107
4ccfa1c0 9108 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9109
7c19d3ae
DN
91102008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9111
9112 * emacs.c (main): Close daemon_pipe on exec.
9113
567826bb
CY
91142008-12-08 Chong Yidong <cyd@stupidchicken.com>
9115
9116 * termchar.h (struct tty): New members termcap_term_buffer and
9117 termcap_strings_buffer.
9118
9119 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9120 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9121 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9122 All callers changed.
9123 (init_tty): Store termcap data and string buffers in new struct
9124 tty members termcap_term_buffer and termcap_strings_buffer.
9125 (delete_tty): Free them.
4ccfa1c0 9126 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9127
aa96c42b
SZ
91282008-12-07 Seiji Zenitani <zenitani@mac.com>
9129
9130 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9131 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9132
b7e1d896
CY
91332008-12-06 Chong Yidong <cyd@stupidchicken.com>
9134
9135 * coding.c (make_conversion_work_buffer): Disable buffer
9136 modification hooks in the work buffer.
9137
b5ec91a5
EZ
91382008-12-05 Eli Zaretskii <eliz@gnu.org>
9139
9140 * process.c (procfs_system_process_attributes): If `nread' has a
9141 negative value, assign zero to it.
9142
a5d2a52b
CY
91432008-12-05 Chong Yidong <cyd@stupidchicken.com>
9144
68c5540b 9145 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9146
7bf1bb21
KH
91472008-12-05 Kenichi Handa <handa@m17n.org>
9148
9149 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9150 second character is a combining character.
9151
2fdc7d00
EZ
91522008-12-05 Eli Zaretskii <eliz@gnu.org>
9153
9154 * process.c (procfs_system_process_attributes): Don't use cmd,
9155 cmdsize, and q without initializing them first.
9156
bf6bfba8
JR
91572008-12-04 Jason Rumney <jasonr@gnu.org>
9158
9159 * w32font.c (w32font_draw): Initialize orig_clip before getting
9160 it, and delete it when finished.
9161
a3b1a468
DN
91622008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9163
9164 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9165 case when running as a daemon before detaching.
9166
8b8be8eb
JB
91672008-12-03 Juanma Barranquero <lekktu@gmail.com>
9168
805f2638 9169 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9170
b1bde622
KH
91712008-12-03 Kenichi Handa <handa@m17n.org>
9172
e500c47d
KH
9173 * font.c (font_at): Set `multibyte' at first.
9174
ca516334
KH
9175 * coding.c (decode_coding_charset): Check type of an element of
9176 vector VALIDS.
7bf1bb21 9177 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9178
4ccfa1c0 9179 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9180 (font_for_char): Likewise.
9181
1e5ecd37
CY
91822008-12-03 Chong Yidong <cyd@stupidchicken.com>
9183
d5b01609 9184 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9185 (font_update_lface): Handle fonts with corrupted size specs,
9186 i.e. non-int and non-float.
d5b01609 9187
11e3a6e4 9188 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9189 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9190 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9191
ab06788b
CY
9192 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9193
1e5ecd37 9194 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9195 underline_minimum_offset for underline position.
1e5ecd37 9196
63c125ab
DN
91972008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9198
9199 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9200
9201 * character.c (c_string_width): Specify the type for LEN.
9202
3a8406e1
KH
92032008-12-03 Kenichi Handa <handa@m17n.org>
9204
4ccfa1c0 9205 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9206 (decode_coding_utf_8): Likewise.
4ccfa1c0 9207 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9208 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9209
651df7d9
CY
92102008-12-02 Chong Yidong <cyd@stupidchicken.com>
9211
9212 * keyboard.c (make_lispy_position): Only use PT if the selected
9213 window is current.
9214
1f625c6c
AS
92152008-12-02 Andreas Schwab <schwab@suse.de>
9216
f7741ce9
AS
9217 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9218
1f625c6c
AS
9219 * doprnt.c (doprnt1): Fix size of charbuf.
9220
92bc2678
CY
92212008-12-02 Chong Yidong <cyd@stupidchicken.com>
9222
9223 * keyboard.c (timer_check): Revert last change.
9224
93b9e8cc
JB
92252008-12-02 Juanma Barranquero <lekktu@gmail.com>
9226
9227 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9228
fd7a37d5
JB
92292008-12-01 Juanma Barranquero <lekktu@gmail.com>
9230
9231 * makefile.w32-in: Update dependencies.
9232 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9233
c115043b
AS
92342008-12-01 Andreas Schwab <schwab@suse.de>
9235
9236 * font.c (register_font_driver): Use xmalloc.
9237 (font_put_frame_data): Likewise.
9238
f5668d2a
CY
92392008-12-01 Chong Yidong <cyd@stupidchicken.com>
9240
860d96be
CY
9241 * xfaces.c (realize_x_face): Make abort condition clearer.
9242
f5668d2a
CY
9243 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9244
379c17e7
CY
92452008-11-30 Chong Yidong <cyd@stupidchicken.com>
9246
9247 * keyboard.c (timer_check): After a timer runs, ensure that the
9248 selected window's buffer is current.
9249
35f36d65
JB
92502008-11-30 Juanma Barranquero <lekktu@gmail.com>
9251
f952c61c
JB
9252 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9253 It was accidentally restored by the Unicode merge.
9254
35f36d65
JB
9255 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9256
b23077df
JB
92572008-11-29 Juanma Barranquero <lekktu@gmail.com>
9258
9259 * w32proc.c: Include "coding.h".
9260 (Fw32_short_file_name): Encode filename passed to Windows API.
9261 (Fw32_long_file_name): Encode filename passed to Windows API and
9262 decode back the result. (Bug#1433)
9263
b8ebe9dd
KH
92642008-11-29 Kenichi Handa <handa@m17n.org>
9265
8cc53f96
KH
9266 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9267 not before accessing it.
9268
b8ebe9dd
KH
9269 * charset.c (Fdefine_charset_internal): After calculating
9270 min_char, max_char, and fastmap, copy the charset structure again.
9271 (encode_char): Fix the previous change.
9272
59bc82c0
SZ
92732008-11-28 Seiji Zenitani <zenitani@mac.com>
9274
9275 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9276
9277 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9278
9279 * nsterm.m (x_set_frame_alpha): New function.
9280
32247e3d
EZ
92812008-11-27 Eli Zaretskii <eliz@gnu.org>
9282
9283 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9284
b003e5ff
JB
92852008-11-27 Juanma Barranquero <lekktu@gmail.com>
9286
9287 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9288 pointer to check_face_name.
9289
708550f5
KH
92902008-11-27 Kenichi Handa <handa@m17n.org>
9291
9292 * category.h (SET_CATEGORY_SET): Call set_category_set.
9293 (set_category_set): Extern it.
9294
9295 * category.c (hash_get_category_set): New function.
9296 (Fmodify_category_entry): Adjusted for the change of
9297 char_table_ref_and_range. Call hash_get_category_set to get a
9298 category set to store in the table.
9299
9300 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9301 Funify_charset.
9302
2ae37cf0 9303 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9304 (DECODE_CHAR): Check if the decoder vector is ready.
9305 (ENCODE_CHAR): Check if the encoder char-table is ready.
9306 (maybe_unify_char): Extern it.
9307
9308 * charset.c (Vchar_unified_charset_table): Delete it.
9309 (inhibit_load_charset_map): New variable.
9310 (temp_charset_work): New variable.
9311 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9312 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9313 New macros.
9314 (load_charset_map): Meaning of control_flag changed. If
9315 inhibit_load_charset_map is nonzero, setup a table in
9316 temp_charset_work.
9317 (load_charset): New argument control_flag.
9318 (map_charset_for_dump): New function.
9319 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9320 map_charset_for_dump.
9321 (Fdefine_charset_internal): If the charset method is MAP, load
9322 mapping tables by calling load_charset.
9323 (Funify_charset): Don't load a mapping table but directly set
9324 Vchar_unify_table.
9325 (maybe_unify_char): New function.
9326 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9327 Handle the case of inhibit_load_charset_map being nonzero.
9328 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9329 Handle the case of inhibit_load_charset_map being nonzero.
9330 (Fclear_charset_maps): Just free temp_charset_work.
9331 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9332 variable.
9333
9334 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9335 change of char_table_ref_and_range.
9336 (char_table_ref_and_range): Change the meaning of argument FROM
9337 and TO. Now the caller must provide initial values for *FROM
9338 and *TO.
9339
9340 * fontset.c (fontset_add): Adjusted for the change of
9341 char_table_ref_and_range.
9342 (fontset_get_font_group): Likewise.
9343 (Ffontset_info): Likewise.
9344
9345 * keymap.c (describe_vector): Adjusted for the change of
9346 char_table_ref_and_range. For char-table, put boundary between
9347 non-ASCII and 8-bit characters.
9348
9349 * print.c (print_object): For bool-vector, delete unnecessary
9350 check of ASCII_BYTE_P.
9351
9196133b
JR
93522008-11-26 Jason Rumney <jasonr@gnu.org>
9353
9354 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9355 leading in font height. (Bug#879)
9196133b 9356
9f688acf
GM
93572008-11-26 Glenn Morris <rgm@gnu.org>
9358
9359 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9360 redefinition with ifdef. (Bug#1383)
9361
90d19aff
AR
93622008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9363
9364 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9365
4ccfa1c0 93662008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9367
9368 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9369 New EmacsView methods.
9370 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9371 Fixes bug #1048,1357,1414.
9372
93732008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9374
9375 Fix bug #1362.
9376 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9377 is not an indexed color.
9378 * nsterm.m (free_indexed_color): Add argument checking.
9379 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9380
e7d5ecb3
CY
93812008-11-24 Chong Yidong <cyd@stupidchicken.com>
9382
9383 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9384 Document confirm-after-completion value for
9385 minibuffer-completion-confirm.
9386
c285743c
JR
93872008-11-24 Jason Rumney <jasonr@gnu.org>
9388
9389 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9390 warning.
9391
b0857706
JR
93922008-11-23 Jason Rumney <jasonr@gnu.org>
9393
9394 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9395 restored before returning.
9396
9397 * w32font.c (check_face_name): New function.
9398 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9399 fonts. (Bug#642)
b0857706 9400
ee50ff07
MR
94012008-11-22 Martin Rudalics <rudalics@gmx.at>
9402
9403 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9404 confirm-nonexistent-file-or-buffer in doc-string.
9405
b8ff72fa
SM
94062008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9407
9408 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9409 Fix copy/paste typo. Add checks.
9410
cee53ed4
KH
94112008-11-21 Kenichi Handa <handa@m17n.org>
9412
9413 * coding.c (detect_coding_iso_2022): Reject invalid composition
9414 sequence.
9415 (DECODE_COMPOSITION_START): If the current source is the last
9416 block, and the current composition doesn't end, regard this
9417 sequence as invalid.
9418 (decode_coding_iso_2022): Handle invalid composition sequence.
9419
f6ef1e65
MR
94202008-11-20 Martin Rudalics <rudalics@gmx.at>
9421
9422 * window.c (coordinates_in_window): Don't return
9423 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9424 line when the window is not the rightmost one. (Bug#1372)
9425
e08b1705
MR
94262008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9427
9428 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9429
ad98e89f
EZ
94302008-11-15 Eli Zaretskii <eliz@gnu.org>
9431
9432 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9433 and bright_bg if noninteractive is non-zero.
9434
fb098a4b
CY
94352008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9436
9437 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9438 x_draw_glyph_string_background.
9439
9440 * w32term.c (x_draw_glyph_string): Likewise.
9441
ce952b6e
CY
94422008-11-15 Chong Yidong <cyd@stupidchicken.com>
9443
9444 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9445 the next glyph string once past the overhang width.
9446
9447 * nsterm.m (ns_draw_glyph_string): Likewise.
9448
9449 * w32term.c (x_draw_glyph_string): Likewise.
9450
26ea7079
CY
94512008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9452
9453 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9454 double file close.
9455
1c33c906
MR
94562008-11-14 Martin Rudalics <rudalics@gmx.at>
9457
9458 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9459 dedicated status of window before attempting to display another
9460 buffer in it.
9461
8fc29035
JB
94622008-11-14 Juanma Barranquero <lekktu@gmail.com>
9463
9464 * msdos.c (Fmsdos_long_file_names):
9465 (syms_of_msdos) <dos-unsupported-char-glyph>:
9466 * dosfns.c (Fint86): Fix typos in docstrings.
9467
55fb4286
EZ
94682008-11-14 Eli Zaretskii <eliz@gnu.org>
9469
9470 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9471
3fda0315
KY
94722008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9473
9474 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9475
7e849c17
CY
94762008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9477
9478 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9479
9480 * frame.h: Negative alpha means "don't touch".
9481
9482 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9483
9484 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9485
b9fd67bd
DN
94862008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9487
9488 * hftctl.c:
9489 * chpdef.h:
9490 * acldef.h: Remove files used only for systems no longer supported.
9491
9492 * Makefile.in: Fix .o alphabetical ordering.
9493 (hftctl.o): Remove dependency, file removed.
9494 (keymap.o, print.o): Depend on charset.h.
9495
d5998e03
KH
94962008-11-10 Kenichi Handa <handa@m17n.org>
9497
2ae37cf0 9498 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9499
be70e183
CY
95002008-11-08 Chong Yidong <cyd@stupidchicken.com>
9501
9502 * dired.c (file_name_completion): If completion_ignore_case is
9503 enabled, ignore case when checking completion-regexp-list.
9504
7cf94eac
EZ
95052008-11-08 Eli Zaretskii <eliz@gnu.org>
9506
9507 * vm-limit.c (get_lim_data): Fix last change.
9508
ee107a89
KH
95092008-11-08 Kenichi Handa <handa@m17n.org>
9510
9511 * character.c (Fget_byte): New function.
9512 (syms_of_character): Defsubr Fget_byte.
9513
5fd15622
CY
95142008-11-07 Chong Yidong <cyd@stupidchicken.com>
9515
9516 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9517 cursor position is valid after scrolling.
9518
13d62fad
JB
95192008-11-06 Juanma Barranquero <lekktu@gmail.com>
9520
9521 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9522
a1dd2936
GM
95232008-11-06 Glenn Morris <rgm@gnu.org>
9524
9525 * xterm.c (handle_one_xevent): Don't let popup menus cause
9526 mouse-autoselect-window related window switching. (Bug#1261)
9527
860cd236
CY
95282008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9529
9530 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9531
653a3150
AS
95322008-11-04 Andreas Schwab <schwab@suse.de>
9533
9534 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9535
870f5cac
CY
95362008-11-03 Chong Yidong <cyd@stupidchicken.com>
9537
9538 * xfns.c (Fx_wm_set_size_hint): New function.
9539
1e02f3cb
MR
95402008-11-03 Martin Rudalics <rudalics@gmx.at>
9541
9542 * textprop.c (Fprevious_single_char_property_change): Return 0
9543 when there's no change in a string. (Bug#1301)
9544
e630dfc6
MR
95452008-11-02 Martin Rudalics <rudalics@gmx.at>
9546
9547 * frame.c (do_switch_frame): New argument NORECORD passed to
9548 Fselect_window.
9549 (Fselect_frame): New argument NORECORD passed to
9550 do_switch_frame.
9551 (Fset_frame_selected_window): New argument NORECORD passed to
9552 Fselect_frame.
9553 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9554 in call of do_switch_frame.
9555 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9556 Handle NORECORD argument in call of Fselect_frame.
9557 * lisp.h (do_switch_frame, Fselect_frame)
9558 (Fset_frame_selected_window): Adjust declarations.
9559 * window.c (select_frame_norecord): New function.
9560 (run_window_configuration_change_hook): Use it and call
9561 Fselect_frame with NORECORD set.
9562 (Fselect_window): Pass NORECORD to Fselect_frame.
9563 (Fset_window_configuration): Handle NORECORD argument in call of
9564 do_switch_frame.
9565 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9566 Fset_frame_selected_window.
9567 * keyboard.c (command_loop_1): Handle NORECORD in call of
9568 Fselect_frame (currently ifdefd).
9569
9020b223
GM
95702008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9571
9572 * emacs.c (USAGE2): Untabify.
9573
793ffee8
SM
95742008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9575
9576 * composite.c (fill_gstring_header): Fix copy/paste typo.
9577
ab6d1131
MR
95782008-10-31 Martin Rudalics <rudalics@gmx.at>
9579
9580 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9581 (Fother_window): Rename argument and rewrite doc-string.
9582 (select_window_norecord): Fix return value. (Bug#1276)
9583
601a9cf1
JB
95842008-10-30 Juanma Barranquero <lekktu@gmail.com>
9585
9586 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9587 new frames overriding foreground for tooltips. Based on similar patch
9588 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9589
813b0652
CY
95902008-10-29 Chong Yidong <cyd@stupidchicken.com>
9591
9592 * emacs.c (Fdaemon_initialized): Initialize nfd.
9593
4414f58f
MR
95942008-10-29 Martin Rudalics <rudalics@gmx.at>
9595
9596 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9597 (Fwindow_text_height): Clarify doc-strings.
9598 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9599 doc-string of window-scroll-functions.
9600
ecdcaa09
RS
96012008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9602
9603 * category.c (syms_of_category): Fix typo in docstring.
9604
23fe745a
JB
96052008-10-28 Juanma Barranquero <lekktu@gmail.com>
9606
9607 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9608 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9609 Fix typos in docstrings.
9610
ff808935
DN
96112008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9612
9613 * emacs.c (daemon_pipe): Make non-static.
9614 (IS_DAEMON): Move definition ...
9615 * lisp.h (IS_DAEMON): ... here.
9616 (daemon_pipe): Declare.
9617 (is_daemon): Remove.
9618 * dispnew.c (init_display): Use IS_DAEMON.
9619
fc012771
SM
96202008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9621
9622 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9623 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9624
9625 * emacs.c (is_daemon): Remove.
9626 (main): Don't set is_daemon.
9627 (IS_DAEMON): New macro.
9628 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9629 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9630 parent exits.
9631 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9632
d8bdbe6f
CY
96332008-10-27 Chong Yidong <cyd@stupidchicken.com>
9634
d1a072bf
CY
9635 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9636 over-sized glyph, draw it with the default glyph width.
9637
e2e325aa
CY
9638 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9639 glyph, draw it with the default glyph width.
9640
9641 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9642 glyph, draw it with the default glyph width.
9643
d8bdbe6f
CY
9644 * xdisp.c (try_scrolling): When computing the distance from the
9645 scroll margin to PT, try moving some distance past the window
9646 bottom before giving up.
9647
7bfac547
MR
96482008-10-27 Martin Rudalics <rudalics@gmx.at>
9649
9650 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9651 (Fset_window_buffer): Explain in doc-string that a window can be
9652 "strongly" dedicated to its buffer.
9653
4ff029f6
DN
96542008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9655
9656 * emacs.c (daemon_name): New variable.
9657 (main): Deal with --daemon=SERVER_NAME.
9658 (Fdaemonp): Return a name if one was passed to --daemon.
9659
5790ef40
DN
96602008-10-26 Romain Francoise <romain@orebokech.com>
9661
f9bd0df9 9662 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9663 (main): Create a pipe before forking, make the parent exit only after
9664 the child has closed its end of the pipe. Move closing the
9665 descriptors ...
9666 (Fdaemon_initialized): ... here. New function.
9667
f5385255
SM
96682008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9669
4d632321
SM
9670 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9671 the previous unoptimized table.
9672
f5385255
SM
9673 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9674 the distinction between non-nil and non-t value of `dedicated'.
9675
6c56a0f3
CY
96762008-10-25 Chong Yidong <cyd@stupidchicken.com>
9677
9678 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9679 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9680
fec89261
MR
96812008-10-25 Martin Rudalics <rudalics@gmx.at>
9682
9683 * window.c (Fget_buffer_window, Fdelete_windows_on)
9684 (Freplace_buffer_in_windows): Make buffer argument optional and
9685 rename to buffer_or_name.
9686
34fcddd0
CY
96872008-10-24 Chong Yidong <cyd@stupidchicken.com>
9688
f5385255
SM
9689 * xdisp.c (handle_single_display_spec, handle_display_prop):
9690 Undo 2005-05-16 change.
34fcddd0
CY
9691 (handle_stop): Pop iterator if it's loaded with an empty string.
9692 (get_overlay_strings_1): Don't save iterator if it's loaded with
9693 an empty string (bug#1201).
9694
064766f2
KH
96952008-10-24 Kenichi Handa <handa@m17n.org>
9696
9697 * ftfont.c (ftfont_otf_features): Fix previous change.
9698 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9699 calling ftfont_otf_features.
9700
f9bd0df9 97012008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9702
9703 * font.c (font_match_p): Fix for the case that a vector of
9704 characters is in script-representative-chars.
9705
1dae9197
MA
97062008-10-24 Michael Albinus <michael.albinus@gmx.de>
9707
9708 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9709 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9710 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9711 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9712 macro. (Bug#1186)
1dae9197 9713
f9bd0df9 97142008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9715
9716 * s/sol2-10.h: New file.
9717
878a4584
JB
97182008-10-23 Juanma Barranquero <lekktu@gmail.com>
9719
9720 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9721 poor beast has survived 9+ years and the jump from xterm.c!).
9722
cd265ca6
MR
97232008-10-23 Martin Rudalics <rudalics@gmx.at>
9724
9725 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9726 Reword doc-string.
f5385255 9727 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9728
472a4dc9
JB
97292008-10-23 Juanma Barranquero <lekktu@gmail.com>
9730
9731 * character.c (syms_of_character) <script-representative-chars>:
9732 <unicode-category-table>: Doc fixes.
9733
159bd5a2
NF
97342008-10-23 Noah Friedman <friedman@splode.com>
9735
9736 * coding.c (make_conversion_work_buffer): Check that
9737 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9738 Fget_buffer_create.
9739
49f9c344
KH
97402008-10-23 Kenichi Handa <handa@m17n.org>
9741
9742 * font.c (font_add_log): Check the values of extra properties.
9743
12bb3111
MR
97442008-10-22 Martin Rudalics <rudalics@gmx.at>
9745
9746 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9747 Reword doc-string.
9748 (Fset_window_parameter): Use NILP.
9749 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9750 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9751
bbeb4e99
JB
97522008-10-22 Juanma Barranquero <lekktu@gmail.com>
9753
9754 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9755
97562008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9757
9758 * nsfns.m (ns_appkit_version): New function.
9759 (x-server-version): Use it.
9760 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9761 (x-server-vendor): Don't check_ns().
9762
9763 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9764
a9b555d3
JB
97652008-10-22 Juanma Barranquero <lekktu@gmail.com>
9766
9767 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9768 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9769
4626499f
KH
97702008-10-22 Kenichi Handa <handa@m17n.org>
9771
e3681952
KH
9772 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9773 scripts.
9774
4626499f
KH
9775 * category.c (word_boundary_p): Check scripts instead of charset.
9776 Handle nil value in word-separating-categories and
9777 word-combining-categories.
9778 (syms_of_category): Fix docstrings of word-separating-categories
9779 and word-combining-categories.
9780
1560f91a
EZ
97812008-10-21 Eli Zaretskii <eliz@gnu.org>
9782
9783 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9784 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9785
f4668441
MR
97862008-10-21 Martin Rudalics <rudalics@gmx.at>
9787
9788 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9789 Rename arg "buffer" to "buffer_or_name".
9790 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9791 it optional.
9792 (no_switch_window): Remove since the return value is not used.
a9b555d3 9793 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9794 Consider window as dedicated when Fwindow_dedicated_p returns a
9795 non-nil value.
9796 * lisp.h: Remove prototype for no_switch_window.
9797
fd75ddb2
JD
97982008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9799
9800 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9801 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9802
07295713
KH
98032008-10-21 Kenichi Handa <handa@m17n.org>
9804
9805 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9806 check Vlatin_extra_code_table.
9807
712adc82
EZ
98082008-10-20 Eli Zaretskii <eliz@gnu.org>
9809
9810 * fileio.c (Fset_file_modes): Doc fix.
9811
f549eb0b
MA
98122008-10-19 Michael Albinus <michael.albinus@gmx.de>
9813
9814 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9815 in arrays.
9816
aac0c6e3
MR
98172008-10-19 Martin Rudalics <rudalics@gmx.at>
9818
9819 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9820 Mention kill-buffer in doc-string.
9821 (Fset_window_buffer): Reinsert tem check removed in last commit.
9822 (Fenlarge_window, Fshrink_window): Have argument names and
9823 doc-string follow Elisp manual more closely.
9824
98252008-10-18 Eli Zaretskii <eliz@gnu.org>
9826
9827 * fileio.c (Fset_file_modes): Doc fix.
9828
98292008-10-18 Martin Rudalics <rudalics@gmx.at>
9830
9831 * window.c (Fwindow_width, Fset_window_start)
9832 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9833 (Fdelete_windows_on, Freplace_buffer_in_windows):
9834 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9835 (Fwindow_dedicated_p): Make window argument optional.
9836 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9837 (Fset_window_buffer): Respect any non-nil dedicated value for
9838 window. Rename "buffer" argument to "buffer_or_name".
9839
98402008-10-18 Ulrich Mueller <ulm@gentoo.org>
9841
9842 * m/sh3.h: New file, machine description for SuperH.
9843
98442008-10-17 Martin Rudalics <rudalics@gmx.at>
9845
9846 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9847
98482008-10-17 Kenichi Handa <handa@m17n.org>
9849
9850 * ftfont.c (ftfont_otf_features): Fix indexing
9851 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9852
98532008-10-16 Magnus Henoch <mange@freemail.hu>
9854
9855 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9856 (Fdbus_call_method_asynchronously): Ditto.
9857 This change makes C-h f display the argument list.
9858
98592008-10-16 Chong Yidong <cyd@stupidchicken.com>
9860
9861 * fileio.c (Fexpand_file_name): Doc fix.
9862
9863 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9864 of :foreground and :background equivalent to unspecified (20.x
9865 compatibility).
9866
98672008-10-15 Eli Zaretskii <eliz@gnu.org>
9868
9869 * buffer.c (syms_of_buffer): Doc fix.
9870
98712008-10-14 Kenichi Handa <handa@m17n.org>
9872
9873 * font.c (font_clear_prop): When clearing font width, clear the
9874 average width field too.
9875
98762008-10-12 Andreas Schwab <schwab@suse.de>
9877
9878 * ftfont.c (ftfont_shape_by_flt): Make static.
9879 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9880
9881 * font.c: Don't include <m17n-flt.h>.
9882
98832008-10-10 Eli Zaretskii <eliz@gnu.org>
9884
9885 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9886
98872008-10-09 Eli Zaretskii <eliz@gnu.org>
9888
9889 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9890 away code.
9891
98922008-10-09 Chong Yidong <cyd@stupidchicken.com>
9893
9894 * dispnew.c (update_text_area): Avoid looping due to large glyph
9895 overhangs (bug#1070).
9896
98972008-10-09 Kenichi Handa <handa@m17n.org>
9898
9899 * fontset.c (face_for_char): If face->fontset is negative, just
9900 return ascii_face.
9901
f5385255
SM
9902 * font.c (font_delete_unmatched): Fix previous change.
9903 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9904
99052008-10-09 Martin Rudalics <rudalics@gmx.at>
9906
9907 * frame.c (Fraise_frame): On text-only terminals select frame in
9908 order to make it visible. (Bug#1061)
9909
99102008-10-08 Chong Yidong <cyd@stupidchicken.com>
9911
9912 * fontset.c (fontset_find_font): Check frame validity.
9913
99142008-10-07 Chong Yidong <cyd@stupidchicken.com>
9915
a9b555d3 9916 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9917 (xg_display_close): Allow Emacs to close all displays (bug#985).
9918
99192008-10-06 Andreas Schwab <schwab@suse.de>
9920
f5385255 9921 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9922
99232008-10-06 Chong Yidong <cyd@stupidchicken.com>
9924
f5385255 9925 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9926
a9b555d3 9927 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9928
9929 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9930 during initialization.
9931
99322008-10-04 Eli Zaretskii <eliz@gnu.org>
9933
9934 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9935 whole thing on MSDOS frames as well as on a TTY.
9936
9937 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9938 well as for TTY.
9939 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9940 well as on a TTY.
9941
9942 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9943 as well as for TTY.
9944
9945 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9946
9947 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9948 MSDOS frames as well.
9949
99502008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9951
9952 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9953 correct arguments.
b71ac3dd 9954 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9955
99562008-10-03 Glenn Morris <rgm@gnu.org>
9957
9958 * emacs.c (USAGE1): Add --daemon.
9959
99602008-10-02 Eli Zaretskii <eliz@gnu.org>
9961
9962 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9963 100, so it's in percents as advertised.
9964
99652008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9966
9967 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9968 (ns_output.current_cursor, ns_output.desired_cursor)
9969 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9970 (FRAME_NEW_CURSOR_COLOR): Remove.
9971
9972 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9973 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9974 enumeration (HOLLOW_BOX_CURSOR, etc.).
9975
9976 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9977 (draw_window_cursor): Simplify code.
f5385255
SM
9978 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9979 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9980 updates manually.
a9b555d3
JB
9981 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9982 Use core Emacs cursor types.
aac0c6e3 9983
b8ff72fa 9984 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9985
99862008-10-02 Martin Rudalics <rudalics@gmx.at>
9987
9988 * process.c (Faccept_process_output): Fix doc-string.
9989
99902008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9991
9992 * gmalloc.c (__sbrk): Also define for uClibc.
9993
9994 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9995 for uClibc.
9996
99972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9998
9999 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10000 styles.
10001 (nsfont_open): Reenable the cache.
10002
100032008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10004
10005 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10006 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10007
100082008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10009
10010 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10011 a suspended terminal.
10012
100132008-09-30 Michael Albinus <michael.albinus@gmx.de>
10014
10015 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10016
100172008-09-30 Eli Zaretskii <eliz@gnu.org>
10018
10019 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10020
100212008-09-30 Chong Yidong <cyd@stupidchicken.com>
10022
10023 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10024 in a continued line coincides with a line beginning.
10025
100262008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10027
10028 * nsfont.m (nsfont_trait_distance): Fix bug.
10029 (nsfont_list): Return a list rather than a vector (syncs with Handa
10030 changes of 2008-05-14).
10031 (nsfont_open): Improve logging.
10032
100332008-09-29 Andreas Schwab <schwab@suse.de>
10034
10035 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10036
100372008-09-28 Martin Rudalics <rudalics@gmx.at>
10038
10039 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10040 name as char-resolve-modifiers.
10041 Reported by: Markus Triska <markus.triska@gmx.at>
10042
100432008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10044
10045 * dispnew.c (init_display): Return earlier when running as a daemon.
10046
100472008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10048
10049 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10050
100512008-09-27 Eli Zaretskii <eliz@gnu.org>
10052
10053 * composite.c (Fcomposition_get_gstring)
10054 (Fcompose_region_internal, Fcompose_string_internal)
10055 (Ffind_composition_internal): Doc fix.
10056 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10057 (syms_of_composite) <auto-composition-function>: Doc fix.
10058 (syms_of_composite) <composition-function-table>: Doc fix.
10059
100602008-09-25 Chong Yidong <cyd@stupidchicken.com>
10061
10062 * search.c (wordify): New argument for lax word-ends.
10063 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10064
100652008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10066
10067 * lisp.h (is_daemon): Declare.
10068 * dispnew.c (init_display): Do not try to initialize the terminal
10069 when running as a daemon.
10070
100712008-09-22 Chong Yidong <cyd@stupidchicken.com>
10072
10073 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10074 x_display_pixel_height.
10075
100762008-09-22 Martin Rudalics <rudalics@gmx.at>
10077
10078 * undo.c (record_point): Don't call Fundo_boundary for first
10079 change. (Bug#731)
10080
100812008-09-22 Juanma Barranquero <lekktu@gmail.com>
10082
10083 * emacs.c (Fdaemonp): Doc fix.
10084
100852008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10086
10087 * emacs.c (main): Place #ifdef in the proper place.
10088
100892008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10090
10091 * emacs.c (standard_args): Add --daemon.
10092 (main): Disconnect from the terminal when --daemon is passed.
10093 (is_daemon): New variable.
10094 (Fdaemonp): New function.
10095 (syms_of_emacs): Defsubr it.
10096
100972008-09-20 Chong Yidong <cyd@stupidchicken.com>
10098
10099 * xdisp.c (get_next_display_element): Handle string display
10100 correctly when checking for the end of a box run.
10101
101022008-09-20 Glenn Morris <rgm@gnu.org>
10103
10104 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10105 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10106 (Frename_file): Avoid copying to trash if a rename involves
10107 a delete. (Bug#964).
10108
101092008-09-20 Eli Zaretskii <eliz@gnu.org>
10110
10111 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10112 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10113 frames as well as termcap frames.
10114 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10115 get_named_tty.
10116
101172008-09-19 Eli Zaretskii <eliz@gnu.org>
10118
10119 * process.c (procfs_system_process_attributes): Fix cmdline in
10120 case /proc/PID/cmdline is empty.
10121
10122 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10123 x_display_pixel_height.
10124
101252008-09-19 Juanma Barranquero <lekktu@gmail.com>
10126
10127 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10128
10129 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10130 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10131
101322008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10133
10134 * dispextern.h (struct it): Move line_wrap away from the middle of
10135 bitfields. Move voffset in struct iterator_stack_entry after the
10136 bitfields. Move tab_width near after another short.
10137
101382008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10139
10140 * frame.h (struct frame): Move alpha from the middle of bitfields.
10141
10142 * window.h (struct window): Move frozen_window_start_p after the
10143 rest of the bitfields to reduce padding.
10144
101452008-09-18 Chong Yidong <cyd@stupidchicken.com>
10146
10147 * xterm.h (x_display_info): Remove `height' and `width' members.
10148
10149 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10150
10151 * w32term.h (w32_display_info): Remove `height', `width',
10152 `height_in', and `width_in' members.
10153
b8ff72fa
SM
10154 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10155 New functions.
aac0c6e3
MR
10156 (x_calc_absolute_position): Use them.
10157 (x_term_init): Omit removed `height' and `width' members.
10158
b8ff72fa
SM
10159 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10160 New functions.
aac0c6e3
MR
10161 (w32_read_socket, x_calc_absolute_position): Use them.
10162 (w32_initialize_display_info, w32_term_init): Omit removed members
10163 of w32_display_info.
10164
b8ff72fa
SM
10165 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10166 New functions.
10167 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10168
b8ff72fa
SM
10169 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10170 New functions.
aac0c6e3
MR
10171 (x_calc_absolute_position): Use them.
10172 (x_term_init): Omit removed `height' and `width' members.
10173
10174 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10175 (compute_tip_xy):
10176 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10177 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10178 x_display_pixel_width.
10179
101802008-09-18 Kenichi Handa <handa@m17n.org>
10181
10182 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10183 (composition_compute_stop_pos): Fix handling of static composition.
10184 (Fcomposition_get_gstring): Check FROM and TO at first.
10185
101862008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10187
46e722a9 10188 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10189 mixup (YAILOM).
10190
101912008-09-17 Chong Yidong <cyd@stupidchicken.com>
10192
10193 * indent.c (Fvertical_motion): Use position reported by iterator
10194 instead of PT for determining screen motion (bug#943).
10195
101962008-09-17 Romain Francoise <romain@orebokech.com>
10197
10198 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10199
102002008-09-17 Kenichi Handa <handa@m17n.org>
10201
10202 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10203
10204 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10205 if necessary.
10206
102072008-09-16 Kenichi Handa <handa@m17n.org>
10208
10209 * coding.c (make_conversion_work_buffer): Avoid calling
10210 Fget_buffer_create if it is not necessary.
10211
102122008-09-15 Martin Rudalics <rudalics@gmx.at>
10213
10214 * window.c (Fselect_window): Don't update window_select_count and
10215 use_time when norecord is not nil.
10216
102172008-09-14 Kenichi Handa <handa@m17n.org>
10218
10219 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10220 specpdl_ptr.
10221
102222008-09-12 Kenichi Handa <handa@m17n.org>
10223
10224 * indent.c (scan_for_column): Don't handle automatic composition
10225 if the current buffer is not associated with a window.
10226
10227 * composite.c (composition_reseat_it): If the current buffer is
10228 not associated with a window, ignore the automatic composition.
10229 (find_automatic_composition): Likewise.
10230
102312008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10232
10233 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10234 (Fgpm_mouse_stop): Use it.
10235 * termhooks.h (close_gpm): Declare.
10236 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10237 connection if Gpm_GetEvent fails.
10238
10239 * window.c (set_window_buffer): Always preserve current-buffer.
10240
102412008-09-12 Glenn Morris <rgm@gnu.org>
10242
10243 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10244
102452008-09-11 Glenn Morris <rgm@gnu.org>
10246
10247 * charset.c (charset-map-path): Doc fix.
10248
102492008-09-10 Kenichi Handa <handa@m17n.org>
10250
10251 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10252
10253 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10254 compose a grapheme cluster with the preceding base glyph.
10255
10256 * composite.c (composition_compute_stop_pos): Fix previous change.
10257 Reset cmp_it->id to -1 at first.
10258
102592008-09-10 Glenn Morris <rgm@gnu.org>
10260
10261 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10262
102632008-09-09 Chong Yidong <cyd@stupidchicken.com>
10264
10265 * keyboard.c (read_key_sequence): Reapply translation maps when
10266 switching keyboards.
10267
102682008-09-09 Kenichi Handa <handa@m17n.org>
10269
10270 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10271 characters.
10272
10273 * composite.c (FORWARD_CHAR): Fix calculation
10274 of (POSITION).pos_byte.
10275 (composition_compute_stop_pos): Limit the search of composition to
10276 at most 500 characters ahead. If we reach the limit or find a
10277 newline, set cmp_it->ch to -2 and return 0.
10278 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10279
102802008-09-08 Kenichi Handa <handa@m17n.org>
10281
10282 * indent.c (Fvertical_motion): Be sure to set
10283 it_overshoot_expected if it.cmp_it.id is non-negative.
10284
102852008-09-07 Andreas Schwab <schwab@suse.de>
10286
10287 * callproc.c (Fcall_process): Don't hold references to string data
10288 across garbage collection. Move initialisation of new_argv down
10289 to avoid compiler bug.
10290
102912008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10292
10293 * process.c (Fsystem_process_attributes): Doc fix.
10294
102952008-09-07 Chong Yidong <cyd@stupidchicken.com>
10296
10297 * callproc.c (Fcall_process): Canonicalize current directory name.
10298
10299 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10300 iterator advances to the next line if the current line ends in a
10301 continued tab.
10302
103032008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10304
10305 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10306 member to point to cmp_from.
10307
10308 * xdisp.c: Doc fix for references to gidx data member.
10309
103102008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10311
10312 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10313
103142008-09-07 Kenichi Handa <handa@m17n.org>
10315
10316 * composite.c (FORWARD_CHAR): Check STOP after
10317 incrementing (POSITION).pos.
10318
103192008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10320
10321 * process.c (Fsystem_process_attributes): Doc fix.
10322
103232008-09-06 Chong Yidong <cyd@stupidchicken.com>
10324
10325 * keyboard.c (Ftop_level): Doc fix.
10326
103272008-09-06 Eli Zaretskii <eliz@gnu.org>
10328
10329 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10330 minibuffer, don't let lower part of menu invade the echo area.
10331
10332 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10333 "char *q" to access menu text and advance through it. Revert the
10334 change that displayed ">" instead of ASCII character 0x10.
10335
103362008-09-05 Eli Zaretskii <eliz@gnu.org>
10337
10338 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10339 toggle boxes and radio buttons on MS-DOS as well.
10340
103412008-09-05 Kenichi Handa <handa@m17n.org>
10342
10343 * composite.c (autocmp_chars): Check lookback count.
10344 (composition_compute_stop_pos): Set cmp_it->lookback.
10345 (composition_reseat_it): Check lookback count.
10346 (struct position_record): New struct.
10347 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10348 (find_automatic_composition): New function.
10349 (composition_adjust_point): Use find_automatic_composition.
10350
10351 * dispextern.h (struct composition_it): New member lookback.
10352
103532008-09-02 Chong Yidong <cyd@stupidchicken.com>
10354
10355 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10356 if moving by a single line.
10357
103582008-09-02 Andreas Schwab <schwab@suse.de>
10359
10360 * xterm.c (x_delete_display): Fix merge error.
10361
10362 * fileio.c (Fexpand_file_name): Remove unused variables.
10363
103642008-09-02 Eli Zaretskii <eliz@gnu.org>
10365
10366 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10367 storage on all platforms, not just on DOS_NT.
10368
103692008-09-02 Jason Rumney <jasonr@gnu.org>
10370
b8ff72fa
SM
10371 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10372 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10373
103742008-09-01 Chong Yidong <cyd@stupidchicken.com>
10375
10376 * xfaces.c (Finternal_set_alternative_font_family_alist)
10377 (Finternal_set_alternative_font_registry_alist): Properly copy
10378 entire alist structure.
10379
103802008-09-01 Kenichi Handa <handa@m17n.org>
10381
d66c0241 10382 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10383 representative chars of the script is a vector.
d66c0241
JB
10384 (ftfont_list): Handle the case where the representative chars of
10385 the script is a vector.
aac0c6e3
MR
10386
10387 * character.c (syms_of_character): Docstring of
10388 script-representative-chars fixed.
10389
103902008-08-31 Eli Zaretskii <eliz@gnu.org>
10391
10392 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10393 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10394 the menu. Allocate larger buffer for `text', to account for
10395 possible ^C characters.
10396
103972008-08-31 Martin Rudalics <rudalics@gmx.at>
10398
10399 * xdisp.c (prepare_menu_bars): Don't call
10400 Vwindow_size_change_functions with arg Qt.
10401
104022008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10403
10404 * font.h (font_range):
10405 * fileio.c (report_file_error):
46e722a9
SM
10406 * composite.c (composition_update_it): Yet another int/Lisp_Object
10407 mixup (YAILOM).
aac0c6e3
MR
10408
104092008-08-30 Glenn Morris <rgm@gnu.org>
10410
10411 * data.c (Fmake_variable_frame_local): Doc fix.
10412
10413 * frame.c (Fmodify_frame_parameters): Doc fix.
10414
104152008-08-30 Eli Zaretskii <eliz@gnu.org>
10416
10417 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10418 needed by GetTokenInformation.
10419 (w32_system_process_attributes): Check return values of all system
10420 APIs.
10421
10422 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10423 only when the state changes.
10424 (IT_update_begin, IT_update_end): Add termscript trace.
10425
10426 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10427 clipboard is unavailable. Set dst to NULL if it doesn't point to
10428 malloc'ed data.
10429 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10430 passing random values to xfree.
10431
10432 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10433 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10434
104352008-08-29 Jason Rumney <jasonr@gnu.org>
10436
10437 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10438
104392008-08-29 Eli Zaretskii <eliz@gnu.org>
10440
10441 * composite.c (fill_gstring_body): Avoid compiler warnings.
10442
10443 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10444 LGLYPH_SET_CODE to avoid compiler warnings.
10445
2ae37cf0 10446 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10447
10448 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10449
10450 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10451 LGLYPH_SET_CODE.
10452
104532008-08-29 Kenichi Handa <handa@m17n.org>
10454
10455 * fileio.c (report_file_error): Don't downcase the first character
10456 of errstring if it is still unibyte.
10457
104582008-08-29 Kenichi Handa <handa@m17n.org>
10459
10460 These changes are to re-implement the automatic composition so
10461 that it doesn't use text properties.
10462
10463 * Makefile.in (ftfont.o): Depend on composite.h.
10464 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10465
10466 * character.h (Vunicode_category_table): Extern it.
10467
10468 * character.c (Vunicode_category_table): New variable.
10469 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10470
10471 * chartab.c (optimize_sub_char_table): Perform more greedy
10472 optimization.
10473
b8ff72fa
SM
10474 * composite.h (enum composition_method):
10475 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10476 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10477 (Vcomposition_function_table): Extern it.
10478 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10479 (composition_gstring_put_cache, composition_gstring_from_id)
10480 (composition_gstring_p, composition_gstring_width)
10481 (composition_compute_stop_pos, composition_reseat_it)
10482 (composition_update_it, composition_adjust_point): Extern them.
10483 (Fcomposition_get_gstring): EXFUN it.
10484
d66c0241 10485 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10486 (Vcomposition_function_table)
10487 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10488 (gstring_hash_table, gstring_work, gstring_work_headers):
10489 New variables.
aac0c6e3
MR
10490 (gstring_lookup_cache, composition_gstring_put_cache)
10491 (composition_gstring_from_id, composition_gstring_p)
10492 (composition_gstring_width, fill_gstring_header)
10493 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10494 (composition_reseat_it, composition_update_it)
b8ff72fa 10495 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10496 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10497 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10498 Defsubr composition_get_gstring.
aac0c6e3
MR
10499
10500 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10501 cmp_id.
10502 (struct glyph_string): Delete the member gidx. New members
10503 cmp_id, cmp_from, and cmp_to.
10504 (enum it_method): Delete GET_FROM_COMPOSITION.
10505 (struct composition_it): New struct.
10506 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10507 Delete c, len, cmp_id, cmp_len in u.comp.
10508
10509 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10510 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10511 (enum lglyph_indices): Likewise.
b8ff72fa 10512 (font_range): Adjust extern.
aac0c6e3
MR
10513 (font_fill_lglyph_metrics): Extern it.
10514
10515 * font.c (QCf): New variable.
10516 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10517 (font_prepare_composition): Delete this function.
10518 (font_range): Type and arguments changed.
10519 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10520 (font_fill_lglyph_metrics): New function.
b8ff72fa 10521 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10522 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10523 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10524 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10525
10526 * fontset.h (font_for_char): Extern it.
10527
10528 * fontset.c (font_for_char): New function.
10529
10530 * ftfont.c: Include composite.h.
10531 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10532 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10533
10534 * indent.c: Include composite.h and dispextern.h.
10535 (check_composition): Delete this function.
10536 (scan_for_column): Handle composition by
10537 composition_compute_stop_pos, composition_reseat_it, and
10538 composition_update_it.
10539 (compute_motion): Likewise.
10540 (Fvertical_motion): Fix checking of composition.
10541
10542 * keyboard.c (adjust_point_for_property): Check composition by
10543 composition_adjust_point.
10544
b8ff72fa 10545 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10546 struct glyph_string.
10547
b8ff72fa
SM
10548 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10549 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10550 struct glyph.
10551 (produce_composite_glyph): Likewise.
10552
b8ff72fa
SM
10553 * w32term.c (x_draw_composite_glyph_string_foreground):
10554 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10555 (x_draw_glyph_string): Likewise.
10556
10557 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10558 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10559
10560 * xdisp.c: Include font.h.
10561 (it_props): Delete the entry for Qauto_composed.
10562 (init_iterator): Initialize it->cmp_it.id to -1.
10563 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10564 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10565 (handle_auto_composed_prop): Delete it.
10566 (handle_composition_prop): Handle only static composition.
10567 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10568 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10569 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10570 (pop_it): Likewise.
10571 (get_next_element): Delete next_element_from_composition.
10572 (CHAR_COMPOSED_P): New macro.
10573 (get_next_display_element): For automatic composition, get a face
10574 from the font in the glyph-string.
10575 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10576 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10577 (next_element_from_string): Check if the character at the current
10578 position is composed by CHAR_COMPOSED_P.
10579 (next_element_from_buffer): Likewise.
d66c0241
JB
10580 (next_element_from_composition): Adjust for the change of struct it.
10581 Update it->cmp_it.
b8ff72fa
SM
10582 (dump_glyph): Adjust for the change of struct glyph.
10583 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10584 it and struct glyph. Don't handle automatic composition here.
10585 (fill_gstring_glyph_string): New function.
10586 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10587 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10588 (BUILD_GSTRING_GLYPH_STRING): New macro.
10589 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10590 automatic composition.
b8ff72fa 10591 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10592 struct glyph.
b8ff72fa 10593 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10594
b8ff72fa 10595 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10596 the change of struct glyph_string.
10597 (x_draw_glyph_string): Likewise.
10598
105992008-08-29 Glenn Morris <rgm@gnu.org>
10600
10601 * buffer.c (word-wrap): Doc fix.
10602 * xdisp.c (truncate-partial-width-windows): Doc fix.
10603 Increase default to 50.
10604
106052008-08-29 Chong Yidong <cyd@stupidchicken.com>
10606
10607 * xdisp.c (update_tool_bar_unwind): New function.
10608 (update_tool_bar): Temporarily set selected frame before building
10609 tool-bar items.
10610
106112008-08-28 Michael Albinus <michael.albinus@gmx.de>
10612
10613 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10614 snprintf, respectively.
10615 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10616
106172008-08-28 Chong Yidong <cyd@stupidchicken.com>
10618
10619 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10620 LDFLAGS to GNUstep CC invocation.
10621
106222008-08-27 Chong Yidong <cyd@stupidchicken.com>
10623
10624 * indent.c (Fvertical_motion): Revert last change. Handle the
10625 general case where we are moving forward, and PT spans multiple
10626 screen lines.
10627
10628 * eval.c (find_handler_clause): Temporarily increase
10629 max-lisp-eval-depth while printing the backtrace buffer, to
10630 guarantee that help-mode code can run.
10631
106322008-08-27 Eli Zaretskii <eliz@gnu.org>
10633
10634 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10635 colors under -rv.
10636 (IT_set_frame_parameters): Don't swap foreground and background
10637 colors if `(reverse . t)' is present in the frame properties.
10638 (internal_terminal_init): Call init_frame_faces only for the
10639 initial frame.
10640
106412008-08-27 Andreas Schwab <schwab@suse.de>
10642
10643 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10644
106452008-08-27 Andreas Schwab <schwab@suse.de>
10646
10647 * search.c (search_buffer): Set char_base to zero only at the end.
10648
106492008-08-27 Kenichi Handa <handa@m17n.org>
10650
b8ff72fa 10651 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10652
106532008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10654
10655 * xterm.c (x_term_init): Temporarily hide the partially
10656 initialized terminal while calling vendor-specific-keysyms.
10657
106582008-08-26 Eli Zaretskii <eliz@gnu.org>
10659
10660 * msdos.c (internal_terminal_init): Most initializations done only
10661 once, especially initial_screen_colors[] and termscript open.
10662
106632008-08-26 Chong Yidong <cyd@stupidchicken.com>
10664
10665 * eval.c (Fcondition_case): Doc fix.
10666
10667 * widgetprv.h (EmacsFramePart): Change font member to the new font
10668 struct.
10669
10670 * widget.c: Include character.h and font.h for XSETFONT.
10671 (setup_frame_gcs): Compute X font id from font struct, just once.
10672
106732008-08-26 Eli Zaretskii <eliz@gnu.org>
10674
10675 * term.c (get_named_tty): Fix last change.
10676
106772008-08-26 Chong Yidong <cyd@stupidchicken.com>
10678
10679 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10680 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10681
106822008-08-25 Eli Zaretskii <eliz@gnu.org>
10683
10684 * frame.c (do_switch_frame): Mark previously displayed frame as
10685 obscured for FRAME_MSDOS_P frames as well.
10686
106872008-08-24 Eli Zaretskii <eliz@gnu.org>
10688
10689 * frame.c (make_terminal_frame): Initialize f->terminal,
10690 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10691 Set the top frame to newly created frame.
10692 (Fmake_terminal_frame): Reuse the_only_display_info.
10693
10694 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10695 estimating available memory.
10696
b97439ce 106972008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10698
10699 * nsterm.m (ns_draw_window_cursor): Don't call
10700 NSDisableScreenUpdates and NSEnableScreenUpdates on
10701 non-NS_IMPL_COCOA systems.
10702
107032008-08-23 Andreas Schwab <schwab@suse.de>
10704
10705 * process.c (procfs_system_process_attributes): Fix use of
10706 uninitialized variables.
10707
107082008-08-23 Eli Zaretskii <eliz@gnu.org>
10709
10710 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10711
10712 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10713 calling tty-set-up-initial-frame-faces.
10714
b8ff72fa
SM
10715 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10716 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10717
10718 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10719 addition to output_termcap.
10720
10721 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10722
10723 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10724 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10725 highlight.
10726
10727 * process.c [!subprocesses]: Define QCname.
10728 (syms_of_process): Intern and staticpro it.
10729
10730 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10731 Adjust for changes in encoding/decoding routines.
10732 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10733 encode_coding and decode_coding.
10734
b8ff72fa 10735 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10736
10737 * dosfns.c: Include frame.h before termhooks.h.
10738 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10739 variable termscript.
10740
10741 * s/msdos.h (USER_FULL_NAME): Define.
10742 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10743
10744 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10745 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10746 pw->pw_gecos.
10747
10748 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10749 SELECTED_FRAME as additional (1st) argument.
10750 (tty_read_avail_input): Handle output_msdos_raw in
10751 addition to output_termcap.
10752
10753 * msdos.c: Include frame.h before termhooks.h.
10754 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10755 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10756 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10757 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10758 (IT_set_terminal_modes, IT_reset_terminal_modes)
10759 (IT_set_frame_parameters): Use tty->termscript instead of a global
10760 variable termscript.
10761 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10762 global variable terminal_coding. Don't refer to
10763 Vnonascii_translation_table.
10764 (internal_terminal_init): Set Vwindow_system in current_kboard.
10765 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10766 Announce date and time of session start, if termscript is open.
10767 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10768 term.c:init_tty). Open termscript only of not already open.
10769 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10770 here instead of dos_ttraw. Don't initialize display if this is an
10771 initial tty. Don't set FRAME_FONT.
10772 (Vwindow_system_version): Bump to 23.
10773 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10774 is available, set up mouse_position_hook.
10775 (dos_ttraw, IT_set_terminal_modes): If called with initial
10776 terminal, do nothing.
10777 (IT_set_frame_parameters): Handle the Qtty_type frame
10778 parameter by calling internal_terminal_init.
10779 (dos_set_window_size, show_mouse_face)
10780 (clear_mouse_face, IT_note_mode_line_highlight)
10781 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10782 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10783 (initialize_msdos_display): New function.
10784 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10785 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10786 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10787 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10788 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10789 (request_sigio, unrequest_sigio): Don't define, now defined on
10790 sysdep.c.
10791 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10792
10793 * term.c [MSDOS]: Include msdos.h.
10794 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10795 conditional to DOS_NT. Allow only one call to this function in a
10796 session. Don't allocate a new struct tty_display_info; instead,
10797 reuse the_only_display_info. Call get_tty_size to get screen
10798 dimensions. Call init_baud_rate to set bad_rate.
10799 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10800 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10801 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10802 (get_tty_terminal, get_named_tty, Ftty_type)
10803 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10804 output_termcap.
b8ff72fa
SM
10805 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10806 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10807 only when subprocesses are supported.
aac0c6e3
MR
10808
10809 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10810 f->output_data.x.
10811 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10812 terminal devices.
10813
5582fbc7 10814 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10815 x_output.
10816 (FRAME_FONT): Use output_data.tty.
10817 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10818 (struct x_display_info): Rename from display_info. Update all users in
10819 msdos.c.
aac0c6e3 10820 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10821 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10822 (dos_ttraw): Update prototype.
10823
10824 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10825 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10826
108272008-08-23 Jason Rumney <jasonr@gnu.org>
10828
10829 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10830 (fn_TIFFSetDirectory): New library function used.
10831 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10832 (tiff_load): Use :index to select among multiple images. Set count
10833 property when multiple images exist.
10834 (gif_format): Use :index, not :image.
10835
108362008-08-23 Chong Yidong <cyd@stupidchicken.com>
10837
10838 * xdisp.c (try_scrolling): Check INT_MAX instead of
10839 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10840 to obtain INT_MAX.
10841
108422008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10843
10844 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10845
108462008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10847
10848 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10849 GNUstep library location.
10850
108512008-08-21 Chong Yidong <cyd@stupidchicken.com>
10852
10853 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10854 before using it.
10855
10856 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10857
108582008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10859
10860 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10861 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10862 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10863 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10864 (EmacsApp-cursor_blink_handler): Remove declaration.
10865 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10866 match 01 Feb 2008 changes in xterm.c.
10867 (ns_read_socket): Add cast to avoid warning.
10868 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10869 GNUstep.
10870
108712008-08-20 Chong Yidong <cyd@stupidchicken.com>
10872
10873 * xselect.c (x_get_foreign_selection): Return nil if desired
10874 selection could not be obtained, instead of signalling an error.
10875
108762008-08-20 David Reitter <david.reitter@gmail.com>
10877
10878 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10879 * nsterm.m: Remove ns-specific code for cursor blinking.
10880 (ns_draw_window_cursor): Clear cursor properly rather than
10881 redrawing the area. Respect width of bar cursors.
10882 These changes enable the use of generic blink-cursor-mode and
10883 generic cursor types in NS and support smooth cursor movements (do
10884 not blink off after command).
10885 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10886 Nextstep, too.
10887
108882008-08-19 Kenichi Handa <handa@m17n.org>
10889
10890 * font.c (Vfont_log_deferred): New variable.
10891 (font_add_log): Check Vfont_log_deferred.
10892 (font_deferred_log): New function.
10893
10894 * font.h (font_deferred_log): Extern it.
10895
10896 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10897 for sorting.
10898 (face_for_char): Use deferred log.
10899
109002008-08-18 Kenichi Handa <handa@m17n.org>
10901
10902 * fontset.c (face_for_char): Add font log.
10903
10904 * font.c (font_add_log): Add the font properties :script, :lang,
10905 and :otf in the log.
10906
109072008-08-17 Chong Yidong <cyd@stupidchicken.com>
10908
10909 * xdisp.c: Remove dead code.
10910 (handle_invisible_prop, next_overlay_string): Defer call to
10911 setup_for_ellipsis.
10912 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10913
109142008-08-15 Chong Yidong <cyd@stupidchicken.com>
10915
10916 * xfaces.c (lookup_derived_face): Properly handle possible zero
10917 return value of get_lface_attributes.
10918 (merge_faces): Don't tell lookup_derived_face to signal an error
10919 if face is not found.
10920
10921 * dired.c (Fdirectory_files): Doc fix.
10922
10923 * process.c (make_process): Initialize kill_without_query struct
10924 member.
10925
109262008-08-15 Eli Zaretskii <eliz@gnu.org>
10927
10928 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10929 Alternative calculation of totphys for Visual Studio 6.
10930
10931 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10932
10933 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10934 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10935 All users changed.
10936 (stat): Only root directory passed to GetDriveType. Allow RAM
10937 disk as well as local fixed disk when w32-get-true-file-attributes
10938 is set to `local'.
10939 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10940 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10941 (w32_cached_id, w32_add_to_cache): New functions.
10942 (get_name_and_id): Look account names in the cache before calling
10943 lookup_account_sid.
10944 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10945 New initialization flags.
10946 (globals_of_w32): Initialize them to zero.
10947 (w32_system_process_attributes): Use w32_cached_id and
10948 w32_add_to_cache.
10949
109502008-08-14 Lawrence Mitchell <wence@gmx.li>
10951
10952 * lread.c (Fread_char, Fread_char_exclusive): If no character
10953 event is read before timeout is reached, return nil, rather than
10954 converting to a number.
10955
109562008-08-14 Chong Yidong <cyd@stupidchicken.com>
10957
10958 * fns.c (use_dialog_box): Doc fix.
10959
10960 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10961 on OS X.
10962
109632008-08-13 Chong Yidong <cyd@stupidchicken.com>
10964
10965 * frame.c (Qns_parse_geometry): New var.
10966 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10967
109682008-08-11 Chong Yidong <cyd@stupidchicken.com>
10969
10970 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10971 space character in calculating tabs.
10972
109732008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10974
10975 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10976
109772008-08-10 Glenn Morris <rgm@gnu.org>
10978
10979 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10980 silence gcc "limited range of data type" warnings in some
10981 make_fixnum_or_float calls.
10982
109832008-08-09 Eli Zaretskii <eliz@gnu.org>
10984
10985 * w32.c (w32_system_process_attributes): If the process does not
10986 exist, return nil.
10987
10988 * w32.c: Include thelp32.h, psapi.h and coding.h.
10989 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10990 declarations.
10991 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10992 (Process32Next_Proc): New typedefs.
10993 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10994 (g_b_init_process32_next, g_b_init_open_thread_token)
10995 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10996 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10997 (g_b_init_get_process_working_set_size)
10998 (g_b_init_global_memory_status_ex): New static variables.
10999 (globals_of_w32): Initialize them.
11000 (create_toolhelp32_snapshot, process32_first, process32_next)
11001 (open_thread_token, impersonate_self, revert_to_self)
11002 (get_process_memory_info, get_process_working_set_size)
11003 (global_memory_status, global_memory_status_ex): New wrapper
11004 functions.
11005 (w32_list_system_processes, w32_system_process_attributes)
11006 (enable_privilege, restore_privilege, ltime, process_times):
11007 New functions.
11008 (convert_time_raw): New function.
11009 (convert_time): Remove conversion of FILETIME into time in 100
11010 nsec units, call convert_time_raw instead.
11011
11012 * process.h (w32_list_system_processes, w32_system_process_attributes):
11013 Add prototypes.
11014 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11015 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11016 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11017 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11018
11019 * process.c (Fsystem_process_attributes): Doc fix.
11020
110212008-08-08 Chong Yidong <cyd@stupidchicken.com>
11022
11023 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11024 a continued multi-char glyph; if so, advance to the actual glyph.
11025
110262008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11027
11028 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11029
11030 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11031 (.m.o): Use it.
11032 * config.in: Regenerate.
11033
110342008-08-07 Chong Yidong <cyd@stupidchicken.com>
11035
11036 * xdisp.c (redisplay_window): Revert last change.
11037 (try_window): Check bottom scroll margin too.
11038
110392008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11040
11041 * config.in: Regenerate.
11042
11043 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11044 -list-load-path-shadows'.
11045 (nsgui.h): Reduce number of things depending on it.
11046
110472008-08-06 Chong Yidong <cyd@stupidchicken.com>
11048
11049 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11050 instead of window-end which does the wrong thing at eob.
11051 (try_cursor_movement): Minor optimization.
11052 (redisplay_window): If scroll margin is defined, don't assume
11053 window doesn't need scrolling.
11054
110552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11056
11057 * config.in: Regenerate.
11058
11059 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11060 (mostlyclean): Don't delete *.d under NS.
11061
11062 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11063
110642008-08-06 Kenichi Handa <handa@m17n.org>
11065
11066 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11067
110682008-08-06 Andreas Schwab <schwab@suse.de>
11069
11070 * config.in: Regenerate.
11071
110722008-08-05 Chong Yidong <cyd@stupidchicken.com>
11073
11074 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11075 forcing a window start.
11076
11077 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11078 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11079
110802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11081
11082 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11083 argument.
11084
110852008-08-05 Juanma Barranquero <lekktu@gmail.com>
11086
11087 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11088 <scroll-down-aggressively, before-change-functions>:
11089 <after-change-functions>: Reflow docstrings.
11090
110912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11092 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11093
11094 Dock menu customization, based on a patch by Ken Raeburn, plus some
11095 other fixes.
11096 * nsmenu.m (dockMenu): New variable.
11097 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11098
11099 * nsterm.h (dockMenu): Declare.
11100
11101 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11102 (ns_term_init): Initialize dockMenu.
11103 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11104 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11105 left.
11106
11107 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11108
111092008-08-04 Chong Yidong <cyd@stupidchicken.com>
11110
11111 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11112
11113 * config.in: Regenerate.
11114
111152008-08-04 Seiji Zenitani <zenitani@mac.com>
11116
11117 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11118
111192008-08-04 Chong Yidong <cyd@stupidchicken.com>
11120
11121 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11122
111232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11124
11125 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11126
11127 * keyboard.h: Comment an #endif.
11128
11129 * lisp.h (have_menus_p): Adjust comment.
11130
11131 * menu.c (find_and_return_menu_selection): Fix comparison with
11132 client_data.
11133
11134 * nsmenu.m (popup_activated_flag): New variable.
11135 (popup_activated): New function.
11136 (menu-or-popup-active-p): New exported lisp definition.
11137 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11138 when popup done.
11139 (ns_popup_dialog): Set popup_activated_flag.
11140
11141 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11142 version for GNUstep (handled by conditional typedef in nsterm.m).
11143 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11144 in rgb.txt).
11145
11146 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11147
11148 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11149
11150 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11151
11152 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11153 shortcircuit if popup_activated like GTK and X toolkit.
11154
11155 * m/inter386.h: Change DARWIN to DARWIN_OS.
11156
11157 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11158 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11159 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11160 comment on NO_SOCK_SIGIO.
11161
111622008-08-03 Chong Yidong <cyd@stupidchicken.com>
11163
11164 * nsterm.m (windowDidResize): Remove stopModal call.
11165
111662008-08-03 Andreas Schwab <schwab@suse.de>
11167
11168 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11169 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11170
111712008-08-02 Chong Yidong <cyd@stupidchicken.com>
11172
11173 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11174 Don't use uninitialized pointer variable when using getrlimit.
11175
111762008-08-02 Jason Rumney <jasonr@gnu.org>
11177
11178 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11179
111802008-08-02 Eli Zaretskii <eliz@gnu.org>
11181
11182 * alloc.c (NSTATICS): Bump to 0x640.
11183
11184 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11185
11186 * lisp.h: Add prototype for directory_files_internal.
11187
11188 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11189 New functions.
11190 (syms_of_process): Defsubr them. Add initializations for various
11191 Q* symbols used in procfs_system_process_attributes.
11192 (procfs_list_system_processes, procfs_system_process_attributes)
11193 [HAVE_PROCFS]: New functions.
11194 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11195 (procfs_get_total_memory): New functions.
11196
111972008-08-01 Juanma Barranquero <lekktu@gmail.com>
11198
11199 * xfaces.c (Fx_load_color_file): Fix previous change;
11200 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11201
112022008-08-01 Michael Albinus <michael.albinus@gmx.de>
11203
11204 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11205
112062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11207
11208 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11209
112102008-08-01 Chong Yidong <cyd@stupidchicken.com>
11211
11212 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11213
11214 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11215 define NSApplicationDelegateReplySuccess.
11216 (EmacsView -converstationIdentifier): Use long instead of
11217 NSInteger for GNUstep, since it doesn't have NSInteger.
11218
11219 * xmenu.c: Revert last change.
11220
11221 * keyboard.h: Fix last change.
11222
112232008-08-01 Juanma Barranquero <lekktu@gmail.com>
11224
11225 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11226 on Windows.
11227
112282008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11229
11230 Warning clearing and clean-up in NS port.
11231 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11232 Add prototypes.
11233 * nsgui.h (FACE_DEFAULT): Remove, unused.
11234 (XGCValues): Change colors to unsigned long.
11235 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11236 nsterm.m.
11237 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11238 (ns_list_fonts): Remove, unused.
11239 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11240 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11241 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11242 (nsfont_draw): Compare face colors to 0, not nil.
11243 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11244 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11245 (-addSubmenuWithTitle:): Use NSMenuItem class.
11246 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11247 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11248 (ns_clip_to_row): Make gc arg a BOOL.
11249 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11250 ns_clip_to_row() call.
11251 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11252 used). Cast FRAME_FONT assignments.
11253 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11254 (ns_string_to_lispmod): Change arg to const char.
11255 (ns_term_init): Use NSMenuItem class.
11256 (EmacsApp -openFile:): Move to different section of file.
11257 (EmacsApp -application:openFiles:): Don't return a value, call
11258 -replyToOpenOrPrint:.
11259 (EmacsView -keyDown:): Fix up cast.
11260 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11261 (EmacsView -menuDown:): Cast tag in call to
11262 find_and_call_menu_selection().
11263 (ns_list_fonts): Remove, unused.
11264 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11265 (ns_fontname_to_xlfd): Make static.
11266 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11267 Remove prototypes (now in keyboard.h).
11268 (next_menubar_widget_id): Remove, unused.
11269 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11270 Remove prototypes (now in keyboard.h).
11271 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11272
112732008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11274
11275 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11276 (floatfns.o): Depend on syssignal.h.
11277 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11278
11279 * systty.h: Fix previous change that removed BSD_TERMIOS.
11280 Add comments to #ifdefs.
11281
112822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11283
11284 * w32fns.c (w32-load-color-file): Remove.
11285 (x-open-connection): Use renamed Fx_load_color_file.
11286 * xfaces.c (x-load-color-file): Add.
11287 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11288 Emacs.clr.
11289 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11290
112912008-07-31 Michael Albinus <michael.albinus@gmx.de>
11292
11293 * dbusbind.c (Fdbus_call_method_asynchronously)
11294 (Fdbus_method_error_internal): New defuns.
11295 (xd_read_message): Handle also reply messages.
11296 (Vdbus_registered_functions_table): Extend docstring.
11297
112982008-07-31 Juanma Barranquero <lekktu@gmail.com>
11299
11300 * keyboard.c (gobble_input): Fix previous change.
11301
113022008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11303
11304 * bitmaps/README:
11305 * xfns.c:
11306 * termcap.c:
11307 * term.c:
11308 * syswait.h:
11309 * systty.h:
11310 * systime.h:
11311 * syssignal.h:
11312 * sysdep.c:
11313 * process.h:
11314 * process.c:
11315 * print.c:
11316 * ndir.h:
11317 * lread.c:
11318 * keyboard.c:
11319 * getpagesize.h:
11320 * floatfns.c:
11321 * fileio.c:
11322 * emacs.c:
11323 * doc.c:
11324 * dispnew.c:
11325 * dired.c:
11326 * data.c:
11327 * callproc.c:
11328 * buffer.c:
11329 * README:
11330 * Makefile.in:
11331 * s/template.h:
11332 * s/msdos.h:
11333 * m/vax.h: Remove VMS support.
11334 * s/vms.h:
11335 * vlimit.h:
11336 * uaf.h:
11337 * temacs.opt:
11338 * param.h:
11339 * ioctl.h: Remove file.
11340
113412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11342
11343 * s/ms-w32.h (MULTI_KBOARD): Remove.
11344 * xterm.c:
11345 * xselect.c:
11346 * xfns.c:
11347 * window.c:
11348 * w32term.c:
11349 * w32fns.c:
11350 * terminal.c:
11351 * termhooks.h:
11352 * term.c:
11353 * sysdep.c:
11354 * keyboard.h:
11355 * keyboard.c:
11356 * frame.h:
11357 * frame.c:
11358 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11359 * config.in: Regenerate.
11360
113612008-07-30 Jason Rumney <jasonr@gnu.org>
11362
11363 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11364
11365 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11366 (w32font_open_internal): Get unicode version of textmetrics.
11367 Don't enable or disable glyph indices here.
11368 (w32font_open): Disable use of glyph indices.
11369
11370 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11371
113722008-07-30 Chong Yidong <cyd@stupidchicken.com>
11373
11374 * minibuf.c (Vread_buffer_function): Doc fix.
11375
113762008-07-30 John Paul Wallington <jpw@pobox.com>
11377
11378 * minibuf.c (read_buffer_completion_ignore_case): New var.
11379 (Fread_buffer): Use it.
11380
113812008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11382
11383 * systty.h (sensemode): Remove empty #if. Remove reference to
11384 BSD_TERMIOS, unused.
11385
11386 * sysdep.c: Remove reference to DGUX.
11387 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11388
11389 * config.in: Regenerate.
11390
113912008-07-30 Jason Rumney <jasonr@gnu.org>
11392
11393 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11394
113952008-07-29 Jason Rumney <jasonr@gnu.org>
11396
11397 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11398 is populated.
11399 (uniscribe_encode_char): Always use uniscribe.
11400 Avoid using context if cache is populated.
11401
114022008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11403
11404 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11405 open menu.
11406
11407 * gtkutil.c (menu_nav_ended): Remove.
11408 (create_menus): Remove signal connect for menu_nav_ended.
11409
114102008-07-28 Chong Yidong <cyd@stupidchicken.com>
11411
11412 * xdisp.c (redisplay_window): Check return value of
11413 compute_window_start_on_continuation_line before forcing a window
11414 start.
11415
114162008-07-28 Jason Rumney <jasonr@gnu.org>
11417
11418 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11419
11420 * w32term.c (w32_enable_unicode_output, cleartype_active):
11421 Remove obsolete display options.
11422 (x_draw_glyph_string_background): Don't use old cleartype_active
11423 workaround.
11424 (w32_initialize): Remove cleartype_active initialization.
11425 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11426
114272008-07-28 Andreas Schwab <schwab@suse.de>
11428
11429 * lisp.h (init_weak_hash_tables, syms_of_font)
11430 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11431 (remove_hash_entry): Don't declare.
11432 * eval.c (maybe_call_debugger): Make static and move before use.
11433 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11434 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11435 * xterm.h (x_set_frame_alpha): Declare.
11436
114372008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11438
11439 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11440 (create_menus): Connect selection-done to menu_nav_ended.
11441
114422008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11443
11444 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11445 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11446 parameter with read of 'alpha' one.
11447 (Qns_frame_parameter): Remove.
5582fbc7 11448 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11449 (next-selection-coding-system, Vselection_coding_system)
11450 (Vnext_selection_coding_system): Drop.
11451
114522008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11453
11454 * nsfns.m (do-applescript, do_applescript): Rename to
11455 ns-do-applescript, ns_do_applescript, and move within file.
11456
114572008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11458
11459 Remove support for Mac Carbon.
11460 * mactoolbox.c:
11461 * macterm.h:
11462 * macterm.c:
11463 * macselect.c:
11464 * macmenu.c:
11465 * macgui.h:
11466 * macfns.c:
11467 * mac.c: Remove file.
11468 * s/darwin.h:
11469 * m/intel386.h:
11470 * xfaces.c:
11471 * xdisp.c:
11472 * window.c:
11473 * tparam.c:
11474 * termhooks.h:
11475 * termcap.c:
11476 * term.c:
11477 * syssignal.h:
11478 * sysselect.h:
11479 * sysdep.c:
11480 * process.c:
11481 * lread.c:
11482 * lisp.h:
11483 * keyboard.c:
11484 * image.c:
11485 * fringe.c:
11486 * frame.h:
11487 * frame.c:
11488 * fontset.c:
11489 * font.h:
11490 * font.c:
11491 * fns.c:
11492 * fileio.c:
11493 * emacs.c:
11494 * dispnew.c:
11495 * dispextern.h:
11496 * config.in:
11497 * atimer.c:
2ae37cf0 11498 * Makefile.in: Remove code for Carbon.
aac0c6e3 11499
f0131492 115002008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11501
11502 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11503
115042008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11505
11506 * macterm.h (kCGBitmapByteOrder32Host): New define for
11507 non-universal SDKs.
11508
11509 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11510 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11511
11512 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11513 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11514
115152008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11516
11517 * w32inevt.c: Include dispextern.h.
11518
115192008-07-26 Andreas Schwab <schwab@suse.de>
11520
11521 * print.c (print_object): Fix off-by-one in last change.
11522
115232008-07-25 Juanma Barranquero <lekktu@gmail.com>
11524
11525 * term.c (syms_of_term): Don't initialize default_orig_pair,
11526 default_set_foreground and default_set_background on Windows.
11527
115282008-07-25 Jason Rumney <jasonr@gnu.org>
11529
11530 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11531 ScriptItemize. Clean up return value checking. Remove unused
11532 variables.
11533 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11534 shaping engine.
11535
11536 * w32font.c (w32font_has_char): Handle the case where we can't
11537 determine the script for a character.
11538
115392008-07-25 Chong Yidong <cyd@stupidchicken.com>
11540
11541 * term.c (syms_of_term): Initialize default_orig_pair,
11542 default_set_foreground, and default_set_background.
11543
11544 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11545 clash (bug#86).
11546 (getloadavg): Callers changed.
11547
11548 * image.c (svg_load_image): Fix last change.
11549 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11550 image size is valid. Use g_object_unref instead of deprecated
11551 rsvg_handle_free to free rsvg handle.
11552 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11553
115542008-07-25 Jason Rumney <jasonr@gnu.org>
11555
11556 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11557 surrogates before looking up glyph index.
11558 (w32font_text_extents): Encode as surrogates if falling back to
11559 functions that need UTF-16 wide chars.
11560
11561 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11562 BMP as surrogates before looking up glyph index.
11563
115642008-07-25 Chong Yidong <cyd@stupidchicken.com>
11565
11566 * image.c (svg_load_image): Check for failure in return value of
11567 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11568
115692008-07-25 Jason Rumney <jasonr@gnu.org>
11570
11571 * w32font.c (Fx_select_font): Reverse sense of second arg.
11572
115732008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11574
11575 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11576 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11577
11578 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11579 (PURESIZE): Use it.
11580
115812008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11582
11583 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11584 * m/alpha.h (TEXT_END):
11585 * m/ibmrs6000.h (TEXT_END):
11586 * m/macppc.h (TEXT_END):
11587 * s/darwin.h (TEXT_END):
11588 * s/msdos.h (TEXT_END): Remove, unused.
11589 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11590 * s/cygwin.h: Remove comment.
11591
11592 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11593 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11594 * m/intel386.h (DOT_GLOBAL_START):
11595 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11596 (USG): Remove, file not used on USG platforms.
11597
11598 * Makefile.in (HAVE_X11): Remove empty #else.
11599
116002008-07-24 Andreas Schwab <schwab@suse.de>
11601
11602 * fileio.c (Finsert_file_contents): Properly adjust undo list
11603 after format conversion.
11604
116052008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11606
11607 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11608 (menu_nav_ended): Remove.
11609 (create_menus): Remove signal connect for menu_nav_ended.
11610 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11611 create_menus.
11612 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11613
116142008-07-23 Jason Rumney <jasonr@gnu.org>
11615
11616 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11617 with opened font.
11618 (w32font_open): Set font type to gdi.
11619
11620 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11621
116222008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11623
11624 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11625 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11626 defines it.
11627 * unexec.c (ADDR_CORRECT): Define unconditionally.
11628
11629 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11630
11631 * unexec.c: Remove code depending on !COFF and USG, the file is
11632 not used for such systems.
11633
11634 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11635 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11636 (LD_SWITCH_SYSTEM_1): Remove, update users.
11637
11638 * s/darwin.h (DATA_END):
11639 * m/intel386.h (DATA_END):
11640 * m/ibmrs6000.h (DATA_END):
11641 * m/alpha.h (DATA_END): Remove, unused.
11642
11643 * config.in: Regenerate.
11644 * s/ms-w32.h (subprocesses): Define unconditionally.
11645 * s/template.h (subprocesses): Update comment.
11646 * s/vms.h (subprocesses):
11647 * s/usg5-4.h (subprocesses):
11648 * s/hpux10-20.h (subprocesses):
11649 * s/gnu-linux.h (subprocesses):
11650 * s/cygwin.h (subprocesses):
11651 * s/bsd-common.h (subprocesses):
11652 * s/aix4-2.h (subprocesses):
11653 * s/darwin.h (subprocesses): Do not define, defined by default now.
11654
11655 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11656 Remove all references.
11657 (temacs): Add GNUstep specific ld flags.
11658
11659 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11660 similarly to what X does.
11661
116622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11663
11664 * nsfns.m (x-list-fonts): Remove.
11665 (syms_of_nsfns): Drop the x-list-fonts declaration.
11666 * nsterm.m: Get rid of remaining "//" comments.
11667
116682008-07-22 Chong Yidong <cyd@stupidchicken.com>
11669
11670 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11671
11672 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11673 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11674 (Fns_own_selection_internal, Fx_disown_selection_internal)
11675 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11676
11677 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11678 ... */' style of docstrings. Doc fixes.
11679
116802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11681
11682 * terminfo.c (UP, BC, PC): Undo previous change.
11683
11684 * nsfns.m: Rename ns prefixed functions/variables to the
11685 corresponding x versions. Update references.
11686
116872008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11688
11689 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11690
116912008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11692
11693 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11694 Remove forwarding functions.
11695 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11696 non-static.
11697 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11698 non-static.
11699 (ns_frame_parm_handlers): Use the new names.
11700 (syms_of_nsfns): Move to the end of file.
11701
11702 * nsterm.m (syms_of_nsterm): Move to the end of file.
11703
11704 * dispnew.c (init_display): Remove code for X10.
11705
117062008-07-22 Jason Rumney <jasonr@gnu.org>
11707
11708 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11709 bare drive.
11710
117112008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11712
11713 * nsterm.m (syms_of_nsterm): Remove debugging println.
11714
117152008-07-22 David Reitter <david.reitter@gmail.com>
11716
11717 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11718 Carbon implementation of the same functionality: execute arbitrary
11719 AppleScript code.
11720
117212008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11722
11723 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11724 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11725 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11726 (Fx_display_mm_height, Fx_display_mm_width)
11727 (Fx_display_backing_store, Fx_display_visual_class)
11728 (Fx_display_save_under, Fx_open_connection)
11729 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11730 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11731 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11732 (Fx_display_pixel_width, Fx_display_pixel_height)
11733 (Fx_display_usable_bounds, Fx_display_planes)
11734 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11735 ... */' style of docstrings.
11736
117372008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11738
11739 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11740 on this platform.
11741 (mips):
11742 * m/iris4d.h (mips): Do not define.
11743 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11744
11745 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11746
11747 * image.c:
11748 * nsfns.m:
11749 * nsselect.m:
11750 * nsterm.h:
11751 * nsterm.m: Rename ns prefixed functions/variables to the
11752 corresponding x versions. Update references.
11753
11754 * m/ibms390x.h (NO_REMAP): Do not undefine.
11755
11756 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11757
117582008-07-21 Chong Yidong <cyd@stupidchicken.com>
11759
11760 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11761 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11762 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11763 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11764 (Fns_display_mm_height, Fns_display_mm_width)
11765 (Fns_display_backing_store, Fns_display_visual_class)
11766 (Fns_display_save_under, Fns_open_connection)
11767 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11768 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11769 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11770 (Fns_display_pixel_width, Fns_display_pixel_height)
11771 (Fns_display_usable_bounds, Fx_display_planes)
11772 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11773
117742008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11775
11776 * print.c (print_object): Check print_depth before searching for
11777 circularities.
11778
117792008-07-21 Michael Albinus <michael.albinus@gmx.de>
11780
11781 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11782 only sprintf.
11783
117842008-07-21 Kenichi Handa <handa@m17n.org>
11785
11786 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11787
117882008-07-20 Andreas Schwab <schwab@suse.de>
11789
11790 * syntax.c (find_start_pos, find_start_value)
11791 (find_start_value_byte, find_start_begv, find_defun_start)
11792 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11793
117942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11795
11796 * s/sol2-3.h: Insert contents of s/sol2.h.
11797 (LD_SWITCH_SYSTEM): Remove redundant definition.
11798 * s/sol2.h: Remove, unused.
11799
118002008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11801
11802 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11803
118042008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11805
11806 * Makefile.in (ns_appdir): Fix typo in find command.
11807
118082008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11809
11810 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11811
11812 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11813 added not supported anymore.
11814
11815 * s/usg5-4-2.h (LIBS_SYSTEM):
11816 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11817
11818 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11819 * s/lynxos.h (GETPGRP_NO_ARG):
11820 * s/hpux10-20.h (NO_SIOCTL_H):
11821 * s/gnu.h (GETPGRP_NO_ARG):
11822 * s/gnu-linux.h (NO_SIOCTL_H):
11823 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11824 * s/cygwin.h (GETPGRP_NO_ARG):
11825 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11826 (C_DEBUG_SWITCH): Remove duplicate definition.
11827
11828 * m/ibms390.h: Remove boilerplate comments.
11829
11830 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11831
11832 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11833 (wait_reading_process_output): Remove code for SunOS, platform not
11834 supported anymore. Use SOLARIS2 instead of sun.
11835
118362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11837
11838 * font.c (font_open_by_name): Under NS, default lface height to zero.
11839 (font_open_for_lface): Under NS, set size based on frame fontsize.
11840 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11841 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11842
118432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11844
11845 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11846 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11847 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11848 YES/NO.
11849 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11850 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11851 * Makefile.in (clean): Clear out build destination dir.
11852
118532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11854
11855 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11856 xterm, xselect.
11857 * lisp.h: Remove declaration of hash_remove.
11858 * nsgui.h: Remove redefinitions of hash_remove.
11859 * fns.c (hash_remove): Rename to hash_remove_from_table.
11860
118612008-07-19 Seiji Zenitani <zenitani@mac.com>
11862
11863 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11864 strdup() the family UTF8String before modifying it.
11865
118662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11867
11868 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11869 NS_FACE_BACKGROUND with 0 instead of nil.
11870 * nsfont.m (nsfont_draw): Same.
11871
118722008-07-19 Chong Yidong <cyd@stupidchicken.com>
11873
11874 * nsfns.m (ns_set_background_color): Fix crash.
11875
118762008-07-18 Chong Yidong <cyd@stupidchicken.com>
11877
11878 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11879
118802008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11881
11882 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11883
118842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11885
11886 * gtkutil.c: Include <config.h> instead of "config.h".
11887
11888 * lisp.h (Foverlay_buffer): Add EXFUN.
11889
11890 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11891 child process to complete child_setup. Undo 2005-09-21 change.
11892
11893 * s/darwin.h: Mention setsid after vfork.
11894
118952008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11896
11897 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11898 Depend on macgui.h.
11899
11900 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11901 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11902
11903 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11904 and f19.
11905 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11906
11907 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11908 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11909 Remove enumerators.
11910
11911 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11912 Check if FACE_FROM_ID returns NULL.
11913
119142008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11915
11916 * w32inevt.c (change_frame_size): Remove extern declaration.
11917 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11918 change_frame_size.
11919
119202008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11921
11922 * getloadavg.c: Revert last change (2008-07-15).
11923
119242008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11925
11926 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11927 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11928 from configure.
11929
119302008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11931
11932 * s/sol2.h:
11933 * s/sol2-4.h: Reorganize conditionals.
11934
11935 * ecrt0.c: Remove code depending on m68000, not used anymore.
11936
11937 * fns.c (hash_remove): Make static.
11938 * lisp.h (hash_remove): Don't prototype.
11939
11940 * m/ibmrs6000.h:
11941 * m/ibms390x.h:
11942 * m/macppc.h: Remove boilerplate comments.
11943
11944 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11945 Solaris, which does not need them.
11946
11947 * m/vax.h: Remove comments about unsupported systems.
11948
11949 * s/darwin.h: Reorganize ifdefs.
11950
119512008-07-17 Andreas Schwab <schwab@suse.de>
11952
11953 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11954
119552008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11956
11957 Use SDATA. Follow coding convention of placing operators at
11958 beginning of next line rather than end of previous line, and placing
11959 spaces around infix operators.
11960
11961 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11962 in case it was defined already.
11963 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11964 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11965 ns_default.
11966 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11967 Lisp_Objects.
11968 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11969 (ns_defined_color, ns_color_to_lisp): Declare.
11970 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11971 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11972 it's accepted even with USE_LISP_UNION_TYPE.
11973 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11974 (update_frame_tool_bar): Remove apparently obsolete tests for
11975 non-integerness of f->tool_bar_lines.
11976 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11977 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11978 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11979 (nsfont_open): Don't confuse NULL for Qnil.
11980 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11981 * menu.h (find_and_call_menu_selection):
11982 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11983 (find_and_return_menu_selection): Always return something.
11984 * frame.h: Include dispextern.h for Display_Info.
11985 (display_x_get_resource): Declare.
11986
119872008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11988
11989 * syntax.c: Remove stdio.h include accidentally introduced in
11990 Emacs.app commit.
11991 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11992 NS_IMPL_COCOA.
11993 * keyboard.c (handle_async_input, input_available_signal): Remove
11994 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11995
119962008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11999 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12000 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12001 Use SDATA.
12002
12003 * keymap.c: Remove all NS-specific code.
12004 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12005 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12006 where_is_preferred_modifier, return a different value depending on how
12007 preferred is the binding.
12008 (where_is_internal): Adjust accordingly.
12009 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12010 Adjust to new preferred_sequence_p.
12011 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12012 * keyboard.c (parse_solitary_modifier): Not static any more.
12013 * keyboard.h (parse_solitary_modifier): Declare.
12014
120152008-07-16 Andreas Schwab <schwab@suse.de>
12016
12017 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12018 of easymenu.
12019
120202008-07-16 Chong Yidong <cyd@stupidchicken.com>
12021
12022 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12023 that we don't move off the line.
12024
120252008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12026
12027 * keyboard.c (Qsuper): Remove.
12028 (parse_menu_item): Don't call where_is_internal specially for NS.
12029
120302008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12031
12032 * s/gnu-linux.h: Remove boilerplate comments.
12033
12034 * m/alpha.h (__ELF__): Consolidate conditions.
12035
12036 * m/m68k.h (linux): Use GNU_LINUX instead.
12037 Remove boilerplate comments.
12038
12039 * m/intel386.h: Undo refactoring from previous change.
12040 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12041 too, remove dead code.
12042 (linux): Use GNU_LINUX instead.
12043
120442008-07-16 Jason Rumney <jasonr@gnu.org>
12045
12046 * w32gui.h: Repeat 26 June changes lost by last change.
12047
120482008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12049
12050 * systty.h: Remove code for Aix on 386, unsupported platform.
12051
12052 * s/ms-w32.h: Remove boilerplate comments.
12053 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12054
12055 * s/gnu-linux.h (TERM): Remove support.
12056 (HAVE_SYSVIPC): Remove, unused.
12057 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12058 for this system.
12059
12060 * process.c: Remove support for IRIS, unused.
12061 Remove support for TERM, not relevant anymore.
12062
12063 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12064 used with the definition.
12065
12066 * s/aix4-2.h (static): Do not undef.
12067
12068 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12069 only used on Aix.
12070 (HAVE_SYSVIPC): Remove, unused.
12071
12072 * m/hp800.h (CANNOT_DUMP): Do not undef.
12073
12074 * m/alpha.h: Fix comment.
12075
12076 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12077 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12078 used by this configuration.
12079 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12080 * unexec.c: Remove code depending on HPUX and
12081 USG_SHARED_LIBRARIES, not used with this file. Remove code
12082 depending on IRIS, unused. Remove if 0-ed code.
12083
12084 * s/template.h: Remove comments about static.
12085
12086 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12087 Remove if 0-ed code.
12088 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12089 were the same as the default.
12090 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12091 Remove boilerplate comments.
12092 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12093 (HAVE_SYSVIPC): Remove, unused.
12094 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12095
12096 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12097 Remove boilerplate comments.
12098 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12099 Remove boilerplate comments.
12100 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12101 Remove boilerplate comments.
12102 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12103
12104 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12105 USG systems which do not use DATA_SEG_BITS.
12106 Refactor code. Remove boilerplate comments.
12107
12108 * m/ibms390.h:
12109 * m/m68k.h:
12110 * s/bsd-common.h:
12111 * s/cygwin.h:
12112 * s/darwin.h:
12113 * s/freebsd.h:
12114 * s/gnu.h:
12115 * s/msdos.h: Remove boilerplate comments.
12116
12117 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12118 do not use this file.
aac0c6e3
MR
12119 (IRIS_4D): Remove, unused.
12120
12121 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12122 do not use this file.
aac0c6e3
MR
12123 (SIGN_EXTEND_CHAR):
12124 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12125 * unexmips.c: Remove file, unused.
12126
12127 * editfns.c (Fuser_full_name): Replace the only use of
12128 USER_FULL_NAME with its value.
12129 * config.in: Regenerate.
12130
121312008-07-16 David Reitter <david.reitter@gmail.com>
12132
12133 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12134 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12135
121362008-07-16 Glenn Morris <rgm@gnu.org>
12137
12138 * emacs.c (system-type): Doc fix.
12139
121402008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12141
12142 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12143 If the cache doesn't work, let's fix it, rather than work around it.
12144
121452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12146
12147 * Makefile.in: Correct additions for nsfont.o in last commit.
12148 * nsfont.m: New file (forgot last commit).
12149
121502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12151
12152 * callproc.c (set_initial_environment): Initialize
12153 Vprocess_environment under CANNOT_DUMP (fixes crash when
12154 batch-compiling for bootstrap).
12155
121562008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12157 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12158
c4cc8b9a
JB
12159 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12160 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12161
121622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12163
12164 Changes and additions for NeXTstep windowing system (Cocoa and
12165 GNUstep) support.
12166
12167 * Makefile.in:
12168 * config.in: Support defines and build commands for NS port.
12169 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12170 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12171 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12172 windowing.
12173 (struct face): Add synth_ital field.
12174 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12175 (init_display): Initialize Vinitial_window_system to "ns" when so
12176 compiled.
12177 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12178 (display_arg): Use under NS.
12179 (main): Under NS, allocate autorelease pool and handle command line
12180 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12181 (standard_args): Add NS-specific args.
12182 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12183 * font.c (DEFAULT_ENCODING): New variable.
12184 (font_find_for_lface): Use it.
12185 (syms_of_font): Load syms_of_nsfont under NS.
12186 * font.h: Declare nsfont_driver when compiled under NS.
12187 * fontset.c: When compiling under NS, include nsterm.h.
12188 (fontset_from_font): Autoconstruct fontset under NS.
12189 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12190 symbol, document and use it.
12191 (do_switch_frame): When for_deletion under Cocoa, add
12192 Fraise_frame(Qnil).
12193 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12194 (x_get_arg): Allow "yes" and "no" as boolean values.
12195 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12196 Qright under Cocoa.
12197 (focus-follows-mouse): Default to 0 under NS.
12198 * frame.h (enum output_method): Add output_ns.
12199 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12200 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12201 (FRAME_WINDOW_P): NS-specific definition.
12202 * fringe.c (max_used_fringe_bitmap): Make public.
12203 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12204 (getloadavg): Use NeXT code under descendant OS's.
12205 * image.c (includes and header section, x_create_bitmap_from_data)
12206 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12207 (image_background_transparent, x_clear_image_1)
12208 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12209 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12210 (x_to_xcolors, x_from_xcolors, x_disable_image)
12211 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12212 other GUIs, including XPM support using code originally written for
12213 Carbon GUI.
12214 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12215 using NS API.
12216 (image_ascent): Use font metrics macros instead of direct struct field
12217 access.
12218 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12219 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12220 Also, handle NS as GTK for menu bar purposes.
12221 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12222 toolkit where they differ.
12223 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12224 use cachelist, still needed under NS.
12225 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12226 (struct widget_value): Define it here for menu.c.
12227 * keymap.c (includes): Include modifier internals.
12228 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12229 NS.
12230 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12231 support for preferring sequences using certain modifiers, specified by
12232 the FIRSTONLY argument.
12233 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12234 under NS GNUstep implementation.
12235 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12236 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12237 * menu.c: Include nsterm.h under NS.
12238 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12239 (free_menubar_widget_tree_value, update_submenu_strings)
12240 (find_and_call_menu_selection): Treat NS as X and NT.
12241 (find_and_return_menu_selection): New function, used for popup menus.
12242 * nsgui.h:
12243 * nsterm.h:
12244 * nsfns.m:
12245 * nsimage.m:
12246 * nsmenu.m:
12247 * nsselect.m:
12248 * nsterm.m: New files.
12249 * process.c (wait_reading_process_output): Under NS, call ns_select()
12250 instead of plain select().
12251 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12252 beginning of buffer.
12253 * sysselect.h (init_process): Rename when compiling under Cocoa to
12254 avoid name conflict.
12255 * termhooks.h (display_info): Add ns_display_info to union.
12256 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12257 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12258 COCOA environment.
12259 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12260 unexec() signature. (Note, this will dump, but the resulting file
12261 crashes; unexosx is used instead; keeping around for reference and
12262 possible aid in getting dump working under GNUstep.)
12263 * w32gui.h (button_type, widget_value): Remove definitions (now in
12264 keyboard.h).
12265 * window.c: Include nsterm.h when compiling under NS.
12266 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12267 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12268 other GUI windowing systems.
12269 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12270 GTK.
12271 (x_consider_frame_title): Under NS, set icon type and frame
12272 modified-state indicator; use ns_set_name_as_filename() when using
12273 formatted title.
12274 (update_window_cursor): Make public when compiling under NS.
12275 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12276 (hourglass_atimer, Vhourglass_delay
12277 * xfaces.c (header section, init_frame_faces, clear_font_table)
12278 (defined_color, unload_color, x_face_list_fonts)
12279 (prepare_face_for_display): Add NS support parallel to other GUIs.
12280 Emulate GCs like other non-X GUIs.
12281 (split_font_name): Don't lowercase font name under NS.
12282 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12283 under NS.
12284 * s/darwin.h: Add support for compilation under NS.
12285
122862008-07-15 Jason Rumney <jasonr@gnu.org>
12287
12288 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12289 (w32_show_hourglass): Rename from show_hourglass.
12290 (w32_hide_hourglass): Rename from hide_hourglass.
12291 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12292 (Vhourglass_delay): Declare extern.
12293 (hourglass_started): Remove.
12294
12295 * xdisp.c (Vhourglass_delay): Remove static.
12296 (hourglass_started, start_hourglass, cancel_hourglass):
12297 Don't include these versions on WINDOWSNT.
12298
122992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12300
12301 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12302 variables (formerly in xfns.c).
12303 (show_hourglass, hide_hourglass): New prototypes (same).
12304 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12305 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12306 in xfns.c).
12307 (syms_of_xdisp): Declare/initialize display-hourglass,
12308 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12309 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12310 formerly in xfns.c.
12311 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12312 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12313 (start_hourglass, cancel_hourglass): Remove.
12314 (show_hourglass, hide_hourglass): Remove prototypes and static
12315 modifiers.
12316 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12317 hourglass_atimer, hourglass_shown_p declaration/initialization.
12318 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12319 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12320 (start_hourglass, cancel_hourglass): Remove.
12321 (show_hourglass, hide_hourglass): Remove prototypes and static
12322 modifiers.
12323 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12324 hourglass_atimer, hourglass_shown_p declaration/initialization.
12325 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12326 (DEFAULT_HOURGLASS_DELAY): Remove.
12327 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12328 hourglass_shown_p declaration/initialization.
12329
123302008-07-14 Jason Rumney <jasonr@gnu.org>
12331
12332 * w32fns.c (w32_get_arg): Remove wrapper function.
12333 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12334 directly.
12335 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12336
123372008-07-14 Kenichi Handa <handa@m17n.org>
12338
12339 * xfont.c (xfont_open): Add workaround for X's bug.
12340
123412008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12342
12343 * fontset.c: Include <stdio.h> unconditionally.
12344
123452008-07-13 Michael Albinus <michael.albinus@gmx.de>
12346
12347 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12348 for filtering.
12349
123502008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12351
12352 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12353
12354 * m/macppc.h:
12355 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12356
c4cc8b9a 12357 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12358 (SPECIAL_EMACS_INT):
12359 * m/ia64.h (SPECIAL_EMACS_INT):
12360 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12361 * s/gnu.h (NLIST_STRUCT):
12362 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12363 * s/gnu-linux.h (LINUX):
12364 * s/msdos.h (HAVE_FACES):
12365 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12366
12367 * systty.h:
12368 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12369 anymore.
12370
123712008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12372
12373 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12374 always defined as int.
12375
12376 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12377 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12378 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12379 * s/freebsd.h (HAVE_WAIT_HEADER):
12380 * s/bsd-common.h (HAVE_UNION_WAIT):
12381 * s/aix4-2.h (HAVE_WAIT_HEADER):
12382 * m/mips.h (HAVE_UNION_WAIT):
12383 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12384 (COFF, static): Do not define, they are undefined later in the file.
12385
12386 * process.c (update_status): Don't use a union.
12387 (status_convert):
12388 (sigchld_handler): Use int instead of WAITTYPE.
12389
123902008-07-12 Chong Yidong <cyd@stupidchicken.com>
12391
12392 * indent.c (Fvertical_motion): Restore hscroll before moving to
12393 goal column.
12394
123952008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12396
12397 * lisp.h: Remove left over code.
12398
123992008-07-11 Andreas Schwab <schwab@suse.de>
12400
12401 * lisp.h: Fix logic in last change.
12402
12403 * menu.h: New file.
12404 * menu.c: Include it.
12405 * xmenu.c: Likewise.
12406 * Makefile.in: Update dependencies.
12407
124082008-07-11 Kenichi Handa <handa@m17n.org>
12409
12410 * fontset.c (fontset_from_font): Cancel the previous change.
12411
124122008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12413
12414 * lisp.h:
12415 * w32heap.c:
12416 * emacs.c:
12417 * alloc.c: Replace all references of NO_UNION_TYPE with
12418 USE_LISP_UNION_TYPE.
12419
12420 * m/xtensa.h (NO_UNION_TYPE):
12421 * m/vax.h (NO_UNION_TYPE):
12422 * m/template.h (NO_UNION_TYPE):
12423 * m/sparc.h (NO_UNION_TYPE):
12424 * m/mips.h (NO_UNION_TYPE):
12425 * m/macppc.h (NO_UNION_TYPE):
12426 * m/m68k.h (NO_UNION_TYPE):
12427 * m/iris4d.h (NO_UNION_TYPE):
12428 * m/intel386.h (NO_UNION_TYPE):
12429 * m/ibms390x.h (NO_UNION_TYPE):
12430 * m/ibms390.h (NO_UNION_TYPE):
12431 * m/ibmrs6000.h (NO_UNION_TYPE):
12432 * m/ia64.h (NO_UNION_TYPE):
12433 * m/hp800.h (NO_UNION_TYPE):
12434 * m/arm.h (NO_UNION_TYPE):
12435 * m/amdx86-64.h (NO_UNION_TYPE):
12436 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12437 defining it the same.
12438
124392008-07-10 Chong Yidong <cyd@stupidchicken.com>
12440
12441 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12442
124432008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12444
12445 * fileio.c:
50426a04 12446 * sysdep.c:
aac0c6e3
MR
12447 * systty.h:
12448 * m/ibmrs6000.h:
12449 * m/iris4d.h:
12450 * s/aix4-2.h:
12451 * s/freebsd.h:
12452 * s/gnu-linux.h:
12453 * s/hpux10-20.h:
12454 * s/hpux11.h:
12455 * s/netbsd.h:
12456 * s/sol2-3.h:
12457 * s/sol2-4.h:
12458 * s/sol2.h:
12459 * s/usg5-4.h:
12460 * s/vms.h: Remove references to unused variables.
12461
124622008-07-10 Andreas Schwab <schwab@suse.de>
12463
12464 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12465 pattern before matching the generic family.
12466
124672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12468
12469 * unexec.c:
12470 * s/vms.h:
12471 * s/usg5-4-2.h:
12472 * s/sol2-5.h:
12473 * s/freebsd.h:
12474 * s/darwin.h: Remove dead code.
12475
12476 * m/template.h:
12477 * m/sparc.h:
12478 * m/mips.h:
12479 * m/m68k.h:
12480 * m/iris4d.h:
12481 * m/intel386.h:
12482 * m/ibms390x.h:
12483 * m/ibms390.h:
12484 * m/ia64.h:
12485 * m/hp800.h:
12486 * m/arm.h:
12487 * m/amdx86-64.h: Remove dead code and references to unused
12488 and compiler defined symbols.
12489
12490 * unexmips.c:
12491 * unexelf.c: Remove references to desupported systems.
12492
12493 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12494
12495 * m/powermac.h: Remove boilerplate comments.
12496 (NO_REMAP): Remove unused definition.
12497
12498 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12499 define them.
12500
125012008-07-10 Kenichi Handa <handa@m17n.org>
12502
12503 * xfont.c (xfont_open): Log the reason of failure.
12504
125052008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12506
12507 * fontset.c (fontset_get_font_group):
12508 * font.c (font_check_otf): Specify argument types.
12509
125102008-07-09 Kenichi Handa <handa@m17n.org>
12511
12512 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12513 non-ASCII char is found.
12514
12515 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12516 (reorder_font_vector): Change the arg preferred_family to font.
12517 Prefer the spec matching with font.
12518 (fontset_get_font_group): New function.
12519 (fontset_find_font): Change the format of an element of a realized
12520 fontset. Use fontset_get_font_group.
12521 (fontset_font): Try the current fontset, the default fontset, the
12522 fallbacks of the current fontset, and the fallbacks of the default
12523 fontset in this order.
12524 (face_for_char): Delete the shortcut to use the current font.
12525 (fontset_from_font): Don't set fonts for Latin in the fontset.
12526
12527 * font.h (font_make_object, font_match_p): Adjust prototypes.
12528
12529 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12530
12531 * font.c (font_make_object): New arg entity and pixelsize.
12532 (font_check_otf_features, font_check_otf): New functions.
12533 (font_match_p): Check :lang, :script, and :otf properties.
12534
12535 * xfont.c (xfont_open): Adjust it for the change of
12536 font_make_object.
12537 (xfont_text_extents): Fix initial setting of metrics.
12538
12539 * ftfont.c (struct ftfont_info): New member index, delete member
12540 fc_charset_idx. Make the member order compatible with struct
12541 xftfont_info.
12542 (fc_charset_table): Change charset names to registry names.
12543 (ftfont_pattern_entity): Delete the args registry and
12544 fc_charset_idx. Change the value of :font-entity property
12545 to (FONTNAME . INDEX). Always set :registry property to
12546 `iso10646-1'.
12547 (struct ftfont_cache_data): New struct.
12548 (ftfont_lookup_cache): New arg for_face.
12549 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12550 (ftfont_driver): Set the member otf_capability.
12551 (ftfont_get_charset): Adjust it for the change of
12552 fc_charset_table.
12553 (OTF_TAG_SYM): New macro.
12554 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12555 for the change of fc_charset_table.
12556 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12557 ftfont_pattern_entity. Add FC_INDEX to objset.
12558 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12559 and ftfont_pattern_entity.
12560 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12561 font_make_object, struct ftfont_info.
12562 (ftfont_has_char): Use ftfont_get_fc_charset.
12563 (ftfont_otf_features, ftfont_otf_capability): New functions.
12564 (ftfont_shape): Use ftfont_get_otf.
12565 (ftfont_text_extents): Fix initial setting of metrics.
12566
12567 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12568 member order compatible with struct ftfont_info.
12569 (xftfont_open): Add FC_CHARSET to the pattern. Set
12570 xftfont_info->ft_size. Don't unlock the face. Check BDF
12571 properties if appropriate.
12572 (xftfont_close): Unlock the face.
12573 (xftfont_anchor_point, xftfont_shape): Deleted.
12574 (syms_of_xftfont): Don't set members anchor_point and shape of
12575 xftfont_driver.
12576
12577 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12578 font_make_object.
12579
12580 * w32font.c (w32font_open): Adjust it for the change of
12581 font_make_object.
12582 (w32font_open_internal): Don't set properties of font_object here.
12583
125842008-07-08 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * macfns.c (x_create_tip_frame):
12587 * w32fns.c (x_create_tip_frame):
12588 * xfns.c (x_create_tip_frame): Pass parameter argument to
12589 face-set-after-frame-default.
12590
12591 * xfaces.c (Finternal_merge_in_global_face): Save merged
12592 attributes for the default face back into the face vector.
12593
125942008-07-08 Andreas Schwab <schwab@suse.de>
12595
12596 * fontset.h: Declare fontset_from_font. Don't declare
12597 new_fontset_from_font and fontset_from_font_name.
12598 * xterm.c: Include "fontset.h".
12599 * Makefile.in (xterm.o): Update dependencies.
12600
126012008-07-08 Glenn Morris <rgm@gnu.org>
12602
12603 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12604 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12605
126062008-07-07 Chong Yidong <cyd@stupidchicken.com>
12607
12608 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12609 (x_set_frame_parameters): Don't bind it.
12610
126112008-07-07 Juanma Barranquero <lekktu@gmail.com>
12612
12613 * w32fns.c (map_w32_filename): Declare extern.
12614
126152008-07-07 Jason Rumney <jasonr@gnu.org>
12616
12617 * w32term.c (WS_EX_LAYERED): Define if not already.
12618
126192008-07-06 Chong Yidong <cyd@stupidchicken.com>
12620
12621 * xfaces.c (set_font_frame_param): Don't try to set the font
12622 parameter if it is still unspecified in the lface.
12623
126242008-07-05 Chong Yidong <cyd@stupidchicken.com>
12625
12626 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12627 face if it didn't already exist.
12628
12629 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12630
126312008-07-05 Andreas Schwab <schwab@suse.de>
12632
12633 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12634
126352008-07-05 Chong Yidong <cyd@stupidchicken.com>
12636
12637 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12638 word-wrapping.
12639 (IT_DISPLAYING_WHITESPACE): New macro.
12640 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12641 when word-wrapping. Simplify word-wrapping logic. Use correct
12642 pixel positions when saving copies of the iterator.
12643 (display_line): Use proper wrap point if the last character on a
12644 line was preceded by whitespace.
12645
126462008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12647
12648 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12649
126502008-07-04 Kenichi Handa <handa@m17n.org>
12651
12652 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12653
12654 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12655
126562008-07-02 Jason Rumney <jasonr@gnu.org>
12657
12658 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12659 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12660
12661 * xdisp.c (next_element_from_display_vector): Move assignment out
12662 of if statement.
12663
126642008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12665
12666 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12667
12668 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12669 (syms_of_fileio): Initialize and export them.
12670 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12671
12672 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12673 (Fsystem_move_file_to_trash): New function.
12674 (syms_of_w32fns): Export it to lisp.
12675
126762008-07-01 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32font.c (w32font_text_extents): Don't count overhang as part
12679 of width.
12680
126812008-06-30 Miles Bader <miles@gnu.org>
12682
12683 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12684 Add `avoid_cursor_p' field.
12685
12686 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12687 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12688 (append_glyph, append_composite_glyph, produce_image_glyph)
12689 (append_stretch_glyph): Initialize avoid_cursor_p.
12690 (get_it_property): Rename from `get_line_height_property'.
12691 (x_produce_glyphs): Use get_it_property.
12692 (handle_line_prefix, push_display_prop): New functions.
12693 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12694 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12695 New variables.
12696 (syms_of_xdisp): Initialize them.
12697
126982008-06-30 Kenichi Handa <handa@m17n.org>
12699
12700 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12701 XftDefaultSubstitute (they are called in XftFontMatch).
12702 (xftfont_open): Fix args to ftfont_font_format.
12703
12704 * ftfont.c (fc_charset_table): New member lang.
12705 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12706 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12707 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12708 (ftfont_open): Fix args to ftfont_font_format.
12709 (ftfont_font_format): New arg filename.
12710
127112008-06-30 Chong Yidong <cyd@stupidchicken.com>
12712
12713 * xfaces.c (Finternal_merge_in_global_face): If default face was
12714 modified, realize it again. Update the font face attribute.
12715
127162008-06-29 Jason Rumney <jasonr@gnu.org>
12717
12718 * w32term.c (x_set_frame_alpha): Fix logic.
12719
127202008-06-29 Kenichi Handa <handa@m17n.org>
12721
12722 * fontset.c (Finternal_char_font): Return font-object instead of
12723 font-name.
12724
12725 * composite.c (get_composition_id): Fix the width calculation for TAB.
12726
127272008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * indent.c (Fvertical_motion): Properly handle float column arg.
12730
127312008-06-28 Jason Rumney <jasonr@gnu.org>
12732
12733 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12734 (pfnSetLayeredWindowAttributes): New function pointer.
12735 (w32_initialize): Initialize it when supported.
12736 (x_set_frame_alpha): New function.
12737
12738 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12739 (w32_frame_parm_handlers): Set alpha handler.
12740
12741 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12742
127432008-06-27 Jason Rumney <jasonr@gnu.org>
12744
12745 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12746 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12747 (w32_to_x_charset, x_to_w32_charset)
12748 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12749 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12750 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12751 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12752 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12753 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12754 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12755 (Qw32_charset_unicode): Remove.
12756 (syms_of_w32fns): Update for above changes.
12757
12758 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12759 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12760 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12761 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12762 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12763 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12764 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12765 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12766 (syms_of_w32font): Update for above changes.
12767
127682008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12769
12770 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12771 removed #if.
12772 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12773
127742008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12775 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12776
12777 * makefile.w32-in (LOCAL_FLAGS):
12778 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12779
12780 * sysdep.c (_spawnlp, _getpid):
12781 Declare with explicit _cdecl instead of _CRTAPI1.
12782
12783 * editfns.c (Fget_internal_run_time):
12784 Check for WINDOWSNT with #ifdef, not #if.
12785
127862008-06-26 Jason Rumney <jasonr@gnu.org>
12787
12788 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12789
12790 * w32term.c (x_draw_glyph_string_foreground)
12791 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12792 Use FONT_HANDLE macro.
12793 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12794
12795 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12796 (uniscribe_encode_char): Use FONT_HANDLE macro.
12797
12798 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12799 (w32font_text_extents): Use precast w32_font.
12800 (w32font_close): Free cached metrics.
12801 (w32font_open_internal): Allocate space for name on stack.
12802
128032008-06-26 Chong Yidong <cyd@stupidchicken.com>
12804
12805 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12806
128072008-06-26 Jason Rumney <jasonr@gnu.org>
12808
12809 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12810 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12811
128122008-06-26 Juanma Barranquero <lekktu@gmail.com>
12813
12814 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12815
128162008-06-26 Jason Rumney <jasonr@gnu.org>
12817
12818 * w32bdf.c, w32bdf.h: Remove obsolete files.
12819
12820 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12821
12822 * w32gui.h: Don't include w32bdf.h.
12823 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12824 Remove obsolete font support.
12825
12826 * w32font.h (struct w32font_info): Remove compat_w32_font.
12827 Add hfont member.
12828 (FONT_COMPAT): Remove obsolete macro.
12829
12830 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12831 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12832 (w32font_open_internal): Remove compat code. Set new hfont member.
12833 (Fx_select_font): Use new hfont member.
12834
12835 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12836 (uniscribe_encode_char): Use new hfont member.
12837
12838 * w32term.c (x_draw_glyph_string_foreground)
12839 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12840 (x_draw_glyph_string): Use metrics in w32font_info.
12841
128422008-06-26 Kenichi Handa <handa@m17n.org>
12843
12844 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12845
128462008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12847
12848 * unexnext.c:
12849 * m/ews4800.h:
12850 * m/hp9000s300.h:
12851 * m/ibm370aix.h:
12852 * m/mips-siemens.h:
12853 * m/ncr386.h:
12854 * m/next.h:
12855 * m/pmax.h:
12856 * m/powerpcle.h:
12857 * m/tandem-s2.h:
12858 * s/386bsd.h:
12859 * s/bsd386.h:
12860 * s/bsd4-1.h:
12861 * s/bsd4-2.h:
12862 * s/bsdos2-1.h:
12863 * s/bsdos2.h:
12864 * s/bsdos3.h:
12865 * s/bsdos4.h:
12866 * s/nextstep.h:
12867 * s/ultrix4-3.h:
12868 * s/usg5-0.h:
12869 * s/usg5-2-2.h:
12870 * s/usg5-2.h:
12871 * s/usg5-4-3.h:
12872 * s/ux4800.h:
12873 * s/uxpds.h:
12874 * s/uxpv.h: Remove support for obsolete systems.
12875 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12876 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12877 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12878 Remove, insert contents in s/aix4-2.h.
12879 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12880 * s/bsd4-3.h: Rename to ...
12881 * s/bsd-common.h: ... this.
12882 * data.c:
12883 * doc.c:
12884 * ecrt0.c:
12885 * emacs.c:
12886 * fileio.c:
12887 * floatfns.c:
12888 * keyboard.c:
12889 * mem-limits.h:
12890 * print.c:
12891 * process.c:
12892 * sysdep.c:
12893 * syssignal.h:
12894 * systty.h:
12895 * syswait.h:
12896 * term.c:
12897 * unexec.c:
12898 * unexelf.c:
12899 * unexhp9k800.c:
12900 * m/hp800.h:
12901 * m/ibmrs6000.h:
12902 * m/mips.h:
12903 * m/vax.h:
12904 * s/darwin.h:
12905 * s/freebsd.h:
12906 * s/gnu.h:
12907 * s/ms-w32.h:
12908 * s/msdos.h:
12909 * s/netbsd.h:
12910 * s/template.h: Remove references to obsolete variables.
12911
12912 * Makefile.in: Add dependencies for all unexec files.
12913 (admindir): Remove unused variable.
12914 (UNEXEC_SRC): Remove references.
12915
129162008-06-25 Chong Yidong <cyd@stupidchicken.com>
12917
12918 * xfns.c (x_default_font_parameter): If Xft is available, first
12919 try Monospace-12 for the default font.
12920
129212008-06-25 Jason Rumney <jasonr@gnu.org>
12922
12923 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12924
129252008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12926
12927 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12928
12929 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12930
129312008-06-25 Juanma Barranquero <lekktu@gmail.com>
12932
12933 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12934 <scroll-conservatively>: Fix typo in docstring.
12935
12936 * xselect.c (Fx_send_client_event): Doc fix.
12937
129382008-06-25 Kenichi Handa <handa@m17n.org>
12939
12940 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12941
12942 * font.c (font_parse_fcname): Remove unused variables.
12943 (font_sort_entites): Delete the arg SPEC. Caller changed.
12944 Fix for the case of ! best_only.
12945 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12946
12947 * lisp.h (Fstring_to_unibyte): EXFUN it.
12948
12949 * character.h (str_to_unibyte): Extern it.
12950
12951 * character.c (str_to_unibyte): New function.
12952
12953 * fns.c (Fstring_to_unibyte): New function.
12954 (syms_of_fns): Defsubr it.
12955
129562008-06-24 Kenichi Handa <handa@m17n.org>
12957
12958 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12959 DPI too.
12960 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12961
129622008-06-24 Andreas Schwab <schwab@suse.de>
12963
12964 * Makefile.in (${lispsource}loaddefs.el): Rename from
12965 ../lisp/loaddefs.el.
12966 (bootstrap-clean): Do what distclean does but don't remove
12967 Makefile.
12968 (distclean): Depend on bootstrap-clean and remove Makefile.
12969
129702008-06-24 Chong Yidong <cyd@stupidchicken.com>
12971
12972 * buffer.h (struct buffer): New member word_wrap.
12973
12974 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12975 word-wrap.
12976 (init_buffer_once): Initialize them.
12977
12978 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12979 line_wrap enum possessing three possible values.
12980
12981 * termopts.h: Replace truncate_partial_width_windows with
12982 Vtruncate_partial_width_windows.
12983
12984 * dispnew.c (direct_output_for_insert): Avoid direct output when
12985 inserting a space with word wrap on.
12986
12987 * indent.c (compute_motion): Obey integer values of
12988 truncate-partial-width-windows.
12989
12990 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12991 replacing truncate_partial_width_windows.
12992 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12993 truncate only if the window width is below that integer.
12994 (start_display, resize_mini_window, produce_stretch_glyph)
12995 (display_string, move_it_in_display_line_to): Use line_wrap.
12996 (back_to_previous_visible_line_start, reseat_1): Reset
12997 string_from_display_prop_p.
12998 (display_line): Extend default face to end of line when wrapping.
12999
130002008-06-24 Kim F. Storm <storm@cua.dk>
13001
13002 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13003 to wrap continued lines at word boundaries.
13004
130052008-06-24 Jason Rumney <jasonr@gnu.org>
13006
13007 * font.c (Ffont_face_attributes): Multiply pixel size before point
13008 conversion to avoid multiplying rounding error.
13009
130102008-06-23 Jason Rumney <jasonr@gnu.org>
13011
13012 * w32term.c (x_draw_glyph_string_background)
13013 (x_draw_glyph_string): Remove old bdf font code.
13014
13015 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13016
130172008-06-22 Kenichi Handa <handa@m17n.org>
13018
13019 * font.c (font_find_for_lface): Try the adstyle specified in
13020 the property of LFACE_FONT of LFACE (if any).
13021
130222008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13023 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13024
13025 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13026
130272008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13028
13029 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13030 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13031 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13032 (witness-emacs): Remove.
13033 (lisp, shortlisp): Move loaddefs.el earlier.
13034 (mostlyclean): Forget about witness-emacs.
13035
130362008-06-22 Glenn Morris <rgm@gnu.org>
13037
13038 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13039 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13040
130412008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13042
13043 * Makefile.in (PRECOMP): Remove.
13044 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13045 (witness-emacs): Run `compile-first'.
13046 (.el.elc): Use the new compile-onefile target.
13047
130482008-06-21 Kenichi Handa <handa@m17n.org>
13049
13050 * xftfont.c (xftfont_open): Handle QCembolden only when
13051 FC_EMBOLDEN is defined.
13052
130532008-06-21 Andreas Schwab <schwab@suse.de>
13054
13055 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13056 (.el.elc): Likewise.
13057
130582008-06-21 Miles Bader <miles@gnu.org>
13059
13060 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13061 build dir, not the lisp source dir.
13062
130632008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13064
13065 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13066 (bootstrapclean): Remove.
13067 (.el.elc): New rule.
13068 (PRECOMP): New var.
13069 (../lisp/subdirs.el): Remove.
13070 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13071 (witness-emacs): New target.
13072 (mostlyclean): Remove witness-emacs as well.
13073 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13074 Add witness-emacs dependency.
13075
130762008-06-20 Chong Yidong <cyd@stupidchicken.com>
13077
13078 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13079 defined by the font.
13080
130812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13082
13083 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13084 (bootstrap-clean): New target that keeps TAGS around.
13085 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13086 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13087
130882008-06-20 Jason Rumney <jasonr@gnu.org>
13089
13090 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13091 Remove obsolete font code.
13092
13093 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13094 to determine language support.
13095
130962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13097
13098 * sysdep.c (cfsetspeed): New fun extracted from the code.
13099 (cfmakeraw): Move before first use.
13100
131012008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13102
13103 * sysdep.c (cfmakeraw): Provide fallback implementation.
13104 (serial_configure): Provide fallback implementation of cfsetspeed.
13105
131062008-06-20 Kenichi Handa <handa@m17n.org>
13107
13108 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13109 the pattern.
13110
13111 * fontset.c (fontset_from_font): Copy font_spec before changing
13112 the elements.
13113
13114 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13115
131162008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13117
13118 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13119 for explicit `font' parameters.
13120
13121 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13122
131232008-06-19 Kenichi Handa <handa@m17n.org>
13124
13125 * frame.c: Include <ctype.h>.
13126 (x_set_font_backend): Allow spacing characters in the X resource
13127 for FontBackend.
13128
131292008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13130
13131 * w32fns.c, xfns.c (Qfont_param): New var.
13132 (syms_of_w32fns): Initialize it.
13133 (x_default_font_parameter): Record explicit `font' into
13134 `font-parameter'.
13135
131362008-06-18 Kenichi Handa <handa@m17n.org>
13137
13138 * font.c (font_parse_xlfd): Fix previous change.
13139 (font_parse_fcname): Don't use :fc-unknown-spec.
13140 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13141 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13142 (font_add_log): Prepend the driver name to the resulting fonts.
13143
13144 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13145 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13146 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13147
13148 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13149 (QCembolden): New variables.
13150 (syms_of_xftfont): DEFSYM them.
13151 (xftfont_open): Call XftFontMatch. Don't trust the result of
13152 XftTextExtents8 if the pixel_size is less than 5.
13153
131542008-06-18 Andreas Schwab <schwab@suse.de>
13155
13156 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13157 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13158
131592008-06-18 Jason Rumney <jasonr@gnu.org>
13160
13161 * w32font.c (w32font_list, w32font_match): Add logging.
13162
13163 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13164
131652008-06-17 Chong Yidong <cyd@stupidchicken.com>
13166
13167 * font.c (font_parse_fcname): Store divider characters for
13168 unknown-spec list. For known key symbols, intern using correct
13169 symbol name.
13170
131712008-06-17 Kenichi Handa <handa@m17n.org>
13172
13173 * xfaces.c (realize_default_face): If the frame is not on window
13174 system, set the fontset of face to nil.
13175
131762008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13177
13178 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13179
131802008-06-16 Juanma Barranquero <lekktu@gmail.com>
13181
13182 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13183 (build_font_name_from_vector): Delete externs.
13184
13185 * xfaces.c (struct font_name): Don't declare.
13186
131872008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13188
13189 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13190
131912008-06-16 Chong Yidong <cyd@stupidchicken.com>
13192
13193 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13194
131952008-06-16 Juanma Barranquero <lekktu@gmail.com>
13196
13197 * font.c (Ffont_spec): Fix usage in docstring.
13198 (Ffont_face_attributes): Doc fix.
13199
132002008-06-16 Andreas Schwab <schwab@suse.de>
13201
13202 * font.c (Ffont_face_attributes): Fix definition.
13203
132042008-06-16 Jason Rumney <jasonr@gnu.org>
13205
13206 * font.h (font_style_symbolic_from_value): Remove.
13207
13208 * font.c (font_style_symbolic_from_value): Remove.
13209 (font_style_symbolic): Revert to pre 2008-06-13 version.
13210
13211 * w32font.c (w32_to_fc_weight): New function.
13212 (w32font_full_name, logfont_to_fcname): Use it.
13213
132142008-06-16 Kenichi Handa <handa@m17n.org>
13215
13216 * font.c (font_check_object): Delete it.
13217 (font_clear_cache): Check if a font-object is alive.
13218 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13219 font-object to nil.
13220 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13221 (font_at): Don't call font_check_object.
13222 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13223
132242008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13225
13226 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13227
132282008-06-16 Chong Yidong <cyd@stupidchicken.com>
13229
13230 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13231
132322008-06-15 Chong Yidong <cyd@stupidchicken.com>
13233
13234 * font.c (font_parse_fcname): Only one decimal point.
13235 (font_unparse_fcname): Handle data in family and foundry indices
13236 as symbols, not strings.
13237 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13238
13239 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13240
13241 * font.h (font_unparse_gtkname): Add prototype.
13242
132432008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13244
13245 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13246
132472008-06-15 Andreas Schwab <schwab@suse.de>
13248
13249 * font.c (font_update_drivers): Fix crash when no drivers match.
13250
132512008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13252
13253 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13254 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13255
132562008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13257
13258 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13259
132602008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13261
13262 * process.c (Fserial_process_configure, Fprocess_send_eof):
13263 Use EQ to compare Lisp_Objects.
13264
132652008-06-13 Jason Rumney <jasonr@gnu.org>
13266
13267 * w32fns.c (Fw32_select_font): Remove old font API function.
13268
13269 * w32font.c (logfont_to_fcname): New function.
13270 (Fx_select_font): New font dialog function compatible with
13271 GTK/fontconfig version.
13272
13273 * font.c (font_style_symbolic_from_value): New function.
13274 (font_style_symbolic): Use it.
13275
13276 * font.h (font_style_symbolic_from_value): Declare new function.
13277
132782008-06-13 Juanma Barranquero <lekktu@gmail.com>
13279
13280 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13281 <font-width-table>: Fix typos in docstrings.
13282
132832008-06-13 Daniel Engeler <engeler@gmail.com>
13284
13285 These changes add serial port access.
13286 * process.c: Add HAVE_SERIAL.
13287 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13288 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13289 (list_processes_1, select_wrapper, Fstop_process)
13290 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13291 (status_notify): Modify to handle serial processes.
13292 [HAVE_SERIAL] (Fserial_process_configure)
13293 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13294 New functions.
13295 * process.h (struct Lisp_Process): Add `type'.
13296 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13297 New functions.
13298 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13299 serial ports.
b71ac3dd 13300 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13301 * w32.h: Add FILE_SERIAL.
13302 (struct _child_process): Add ovl_read, ovl_write.
13303
133042008-06-13 Kenichi Handa <handa@m17n.org>
13305
13306 * dispextern.h (enum lface_attribute_index): New member
13307 LFACE_FOUNDRY_INDEX.
13308
13309 * font.c (font_score): Delete arg alternate_families. Check only
13310 weight, slant, width, and size. Ignore the difference of alias
13311 style symbols.
13312 (font_sort_entites): Adjust for the above change. Reflect the
13313 order of font-driver to scores.
13314 (font_list_entities): Don't check alternate_familes here.
13315 (font_clear_prop): Handle foundry.
13316 (font_update_lface): Don't parse "foundry-family" form here.
13317 Handle FONT_FOUNDRY_INDEX.
13318 (font_find_for_lface): Likewise. Handle alternate families here.
13319 If registry is nil, try iso8859-1 and ascii-0.
13320 (font_open_for_lface): Pay attention to size in ENTITY.
13321 (font_open_by_name): Simplify by calling font_load_for_lface.
13322 (free_font_driver_list): Delete it.
13323 (font_update_drivers): Preserve the order of backends.
13324 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13325 of font_score and font_sort_entites.
13326 (font_update_sort_order): Likewise.
13327
13328 * xfaces.c (LFACE_FOUNDRY): New macro.
13329 (check_lface_attrs): Check foundry.
13330 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13331 (merge_face_vectors): Check foundry.
13332 (merge_face_ref): Likewise.
13333 (Finternal_set_lisp_face_attribute): Likewise.
13334 (x_update_menu_appearance): Likewise.
13335 (Finternal_get_lisp_face_attribute): Likewise.
13336 (lface_hash): Likewise.
13337 (lface_same_font_attributes_p): Likewise.
13338 (x_supports_face_attributes_p): Likewise.
13339 (tty_supports_face_attributes_p): Likewise.
13340 (Finternal_set_alternative_font_family_alist): Intern strings.
13341 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13342 (realize_default_face): Set LFACE_FOUNDRY (lface).
13343
13344 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13345 font-driver at first.
13346
13347 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13348
133492008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13350
13351 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13352
133532008-06-12 Jim Meyering <meyering@redhat.com>
13354
13355 Make unexec_free handle NULL the same way free does.
13356 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13357
133582008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13359
13360 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13361 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13362 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13363 (WEAK_ALIAS): Simplify.
13364 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13365 when searching a unibyte buffer.
13366
133672008-06-12 Chong Yidong <cyd@stupidchicken.com>
13368
13369 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13370
133712008-06-12 Juanma Barranquero <lekktu@gmail.com>
13372
13373 * w32font.c: Include ctype.h.
13374
133752008-06-11 Jason Rumney <jasonr@gnu.org>
13376
13377 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13378 misreported as space.
13379 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13380 as aliases for registry iso10646-1.
13381
133822008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13383
13384 * buffer.c (clone_per_buffer_values): Skip `name'.
13385
133862008-06-11 Chong Yidong <cyd@stupidchicken.com>
13387
13388 * font.c (font_parse_fcname): Fix last change; accept decimal
13389 points in font size.
13390
133912008-06-10 Jason Rumney <jasonr@gnu.org>
13392
13393 * w32uniscribe.c (add_opentype_font_name_to_list):
13394 Skip non unicode fonts.
13395
133962008-06-10 Chong Yidong <cyd@stupidchicken.com>
13397
13398 * xfns.c (Fx_font_dialog): New function.
13399
13400 * gtkutil.c (xg_dialog_response_cb): Rename from
13401 xg_file_response_callback.
13402 (pop_down_dialog): Rename from pop_down_file_dialog.
13403 (xg_get_file_name): Callers changed.
13404 (xg_get_font_name): New function.
13405
13406 * gtkutil.h (xg_get_font_name): Insert prototype.
13407
134082008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13409
13410 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13411 x_underline_minimum_display_offset.
13412 (syms_of_xdisp): Declare it here rather than in xterm.c.
13413 * dispextern.h (underline_minimum_offset): Declare it.
13414 * w32term.c (x_draw_glyph_string): Use it.
13415 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13416 (syms_of_xterm): Don't declare it any more.
13417 (x_draw_glyph_string): Adjust to the new name.
13418
8719abec 134192008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13420
13421 * xterm.c (x_underline_minimum_display_offset): New var.
13422 (x_draw_glyph_string): Use it.
13423 (syms_of_xterm): Declare it.
13424
134252008-06-10 Chong Yidong <cyd@stupidchicken.com>
13426
13427 * font.c (font_parse_fcname): Accept GTK-style font names too.
13428
134292008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13430
13431 * dired.c (file_name_completion): Don't return t if the match is exact
13432 but with different capitalization.
13433 * minibuf.c (Ftry_completion): Simplify.
13434
13435 * window.c (Vwindow_point_insertion_type): New var.
13436 (set_window_buffer): Use it.
13437 (syms_of_window): Init and export it to Lisp.
13438
134392008-06-10 Kenichi Handa <handa@m17n.org>
13440
13441 * font.h (font_intern_prop): Prototype adjusted.
13442
13443 * font.c (font_intern_prop): New arg force_symbol.
13444 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13445 Adjust for the change of font_intern_prop.
13446
13447 * ftfont.c (ftfont_pattern_entity):
13448 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13449 (w32_registry):
13450 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13451 the change of font_intern_prop.
13452
134532008-06-09 Juanma Barranquero <lekktu@gmail.com>
13454
13455 * w32menu.c (digest_single_submenu): Declare extern.
13456
134572008-06-09 Jason Rumney <jasonr@gnu.org>
13458
13459 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13460
13461 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13462 (parse_single_submenu): Remove.
13463 (digest_single_submenu): Remove.
13464 (syms_of_w32menu): Don't initialise variables that have moved
13465 to menu.c.
13466 (set_frame_menubar): Sync with version in xmenu.c.
13467 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13468
13469 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13470 Make static again.
13471
134722008-06-09 Jason Rumney <jasonr@gnu.org>
13473
13474 Changes to w32 files related to the move of common menu code
13475 to menu.c on 2008-06-08 by Chong Yidong.
13476
13477 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13478 defs to w32gui.h.
13479 (single_keymap_panes, push_menu_item, push_menu_pane):
13480 Make globally visible.
13481
13482 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13483 (local_free, malloc_widget_value, free_widget_value)
13484 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13485 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13486 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13487 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13488 (menu_items, menu_items_allocated, menu_items_used)
13489 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13490 (init_menu_items, finish_menu_items, discard_menu_items)
13491 (grow_menu_items, push_submenu_start, push_submenu_end)
13492 (push_left_right_boundary, push_menu_pane, push_menu_item)
13493 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13494 (free_menubar_widget_tree_value, parse_single_submenu)
13495 (update_submenu_strings): Remove functions.
13496 (xmalloc_widget_value): Remove and declare extern.
13497
13498 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13499 (OBJ1): Build it.
13500
13501 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13502 (local_heap, local_alloc, local_free, malloc_widget_value)
13503 (free_widget_value): Define here.
13504
135052008-06-09 Kenichi Handa <handa@m17n.org>
13506
13507 * font.h (Qascii_0): Extern it.
13508
13509 * font.c (Qascii_0): New variable.
13510 (syms_of_font): DEFSYM it.
13511 (font_open_by_name): If the registry "iso8859-1" fails, try also
13512 "ascii-0".
13513
13514 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13515
135162008-06-08 Kenichi Handa <handa@m17n.org>
13517
13518 * .gdbinit (xfont): New command.
13519
135202008-06-08 Andreas Schwab <schwab@suse.de>
13521
13522 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13523 * Makefile.in (menu.o): Update dependencies.
13524
13525 * Makefile.in (obj): Always add menu.o.
13526 * emacs.c (main): Always call syms_of_menu.
13527 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13528
135292008-06-08 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * Makefile.in: Compile menu.c.
13532
13533 * lisp.h: Declare syms_of_menu.
13534
13535 * emacs.c (main): Call syms_of_menu.
13536
13537 * keyboard.h: Relocate platform-independent menu definitions from
13538 xmenu.c.
13539
13540 * menu.c: New file. Relocate platform-independent menu
13541 definitions from xmenu.c. Suggested by Adrian Robert.
13542
13543 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13544 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13545 (menu_items_used, menu_items_n_panes)
13546 (menu_items_submenu_depth): Move to keyboard.h.
13547 (init_menu_items, finish_menu_items, unuse_menu_items)
13548 (discard_menu_items, restore_menu_items, save_menu_items)
13549 (grow_menu_items, push_submenu_start, push_submenu_end)
13550 (push_left_right_boundary, push_menu_pane, push_menu_item)
13551 (keymap_panes, single_keymap_panes, single_menu_item)
13552 (list_of_panes, list_of_items, find_and_call_menu_selection)
13553 (xmalloc_widget_value, free_menubar_widget_value_tree)
13554 (parse_single_submenu, digest_single_submenu)
13555 (update_submenu_strings): Move to menu.c.
13556
135572008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13558
13559 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13560
135612008-06-06 Miles Bader <miles@gnu.org>
13562
13563 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13564 face, not frame default.
13565
135662008-06-05 Martin Rudalics <rudalics@gmx.at>
13567
13568 * window.c (pop_up_windows, pop_up_frames)
13569 (display_buffer_reuse_frames, Vpop_up_frame_function)
13570 (Vdisplay_buffer_function, Veven_window_heights)
13571 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13572 (Vspecial_display_function, Vsame_window_buffer_names)
13573 (Vsame_window_regexps, split_height_threshold)
13574 (Vsplit_window_preferred_function): Move those vars to window.el.
13575 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13576 (Fdisplay_buffer): Move those functions to window.el.
13577 (syms_of_window): Remove corresponding declarations.
13578 (display_buffer): New function.
13579 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13580 * dispnew.c (Flast_nonminibuf_frame): New function.
13581 * buffer.c (Fpop_to_buffer): Move to window.el.
13582
135832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13584
13585 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13586
135872008-06-05 Kenichi Handa <handa@m17n.org>
13588
13589 * coding.c (detect_coding): Fix previous change.
13590 (detect_coding_system): Likewise.
13591
135922008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13593
13594 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13595
13596 * keymap.c (Vminibuffer_local_filename_must_match_map):
13597 Rename from Vminibuffer_local_must_match_filename_map.
13598 (syms_of_keymap):
13599 * minibuf.c (Fcompleting_read): Adjust accordingly.
13600 * commands.h: Rename declaration as well.
13601
136022008-06-05 Kenichi Handa <handa@m17n.org>
13603
13604 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13605 family name.
13606 (Ffont_put): Likewise.
13607
13608 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13609 current font-spec.
13610
13611 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13612 is unspecified.
13613
13614 * xfaces.c (realize_x_face): If the font-related face attributes
13615 are the same as those of default face, realize a new fontset from
13616 default->fontset.
13617 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13618
136192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13620
13621 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13622 (move_it_in_display_line): New wrapper.
13623
13624 * window.c (window_scroll_pixel_based_preserve_x)
13625 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13626 (window_scroll_pixel_based, window_scroll_line_based):
13627 Use them to preserve column positions.
13628 (syms_of_window): Initialize them.
13629
13630 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13631 (HPOS . VPOS) pair.
13632
13633 * dispextern.h (move_it_in_display_line): Declare.
13634
136352008-06-05 Juanma Barranquero <lekktu@gmail.com>
13636
13637 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13638 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13639 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13640
136412008-06-04 Juanma Barranquero <lekktu@gmail.com>
13642
13643 * window.c (Fset_window_parameter): Doc fix.
13644 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13645
136462008-06-04 Joakim Verona <joakim@verona.se>
13647
13648 * window.h (struct window): Add new member window_parameters.
13649
13650 * window.c (Fwindow_parameters, Fwindow_parameter)
13651 (Fset_window_parameter): New defuns.
13652 (syms_of_window): Defsubr the new defuns.
13653 (make_window): Initialize window_parameters to nil.
13654
136552008-06-04 John Paul Wallington <jpw@pobox.com>
13656
13657 * eval.c (Fdefmacro): Doc fix.
13658
136592008-06-04 Kenichi Handa <handa@m17n.org>
13660
13661 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13662 Be sure to call setup_coding_system when we find a proper coding system.
13663 (detect_coding_system): Fix handling of coding->head_ascii.
13664
136652008-06-03 Andreas Schwab <schwab@suse.de>
13666
13667 * font.c (font_prop_validate_spacing): Fix last change.
13668
136692008-06-03 Kenichi Handa <handa@m17n.org>
13670
13671 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13672 (font_parse_fcname): Fix handling of unknown key.
13673
13674 * xfont.c (xfont_list): Try an alias.
13675
13676 * charset.c (char_charset): Return NULL if the arg charset_list is
13677 specified and C doesn't belong to any of them.
13678
136792008-06-02 Chip Coldwell <coldwell@redhat.com>
13680
13681 * font.c (font_pixel_size): Don't take cdr of an integer.
13682
136832008-06-02 Jim Meyering <meyering@redhat.com>
13684
13685 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13686 * alloc.c (xfree): Return right away for a NULL arg.
13687 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13688 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13689 * mac.c (create_apple_event_from_event_ref): Likewise.
13690 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13691 Likewise.
13692 * doprnt.c (doprnt1): Likewise.
13693 * frame.c (frame): Likewise.
13694 * keyboard.c (wipe_kboard): Likewise.
13695 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13696 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13697 * term.c (tty_default_color_capabilities, maybe_fatal)
13698 (delete_tty): Likewise.
13699 * w16select.c (string): Likewise.
13700 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13701 * w32bdf.c (w32_free_bdf_font): Likewise.
13702 * w32fns.c (w32_unload_font): Likewise.
13703 * w32font.c (w32font_close): Likewise.
13704 * window.c (size_window): Likewise.
13705 * xselect.c (receive_incremental_selection): Likewise.
13706 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13707 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13708 * w32.c (stat): Likewise.
13709
13710 Remove useless if-before-free tests.
13711 * editfns.c (Fset_time_zone_rule): Likewise.
13712 * lread.c (nosuffix): Likewise.
13713 * ralloc.c (get_bloc): Likewise.
13714 * regex.c (reg_free): Likewise.
13715 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13716 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13717 * xsmfns.c (smc_save_yourself_CB): Likewise.
13718
137192008-06-02 Kenichi Handa <handa@m17n.org>
13720
13721 * font.c (font_find_for_lface): Handle float font size.
13722 (font_open_for_lface): Likewise.
13723
13724 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13725 comparing the properties.
13726
137272008-06-01 Jason Rumney <jasonr@gnu.org>
13728
13729 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13730 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13731 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13732 Don't add empty script list.
13733 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13734
137352008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13736
13737 * Makefile.in (dot, dotdot): Remove, update users.
13738 ".." has been used elsewhere in the file for a long time.
13739 (LIBXT_STATIC): Remove conditional based on unused variable.
13740
137412008-06-01 Miles Bader <miles@gnu.org>
13742
13743 * xfaces.c (Vface_remapping_alist): New variable.
13744 (syms_of_xfaces): Initialize it.
13745 (enum named_merge_point_kind): New type.
13746 (struct named_merge_point): Add `named_merge_point_kind' field.
13747 (push_named_merge_point): Make cycle detection respect different
13748 named-merge-point kinds.
13749 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13750 Remove face-name alias resolution.
13751 (lface_from_face_name): New definition using
13752 `lface_from_face_name_no_resolve'.
13753 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13754 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13755 (get_lface_attributes): New definition that layers face-remapping on
13756 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13757 (lookup_basic_face): New function.
13758 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13759 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13760 `get_lface_attributes'.
13761 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13762 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13763 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13764
13765 * xdisp.c (init_iterator): Pass base_face_id through
13766 `lookup_basic_face' when we actually use it as a face-id.
13767 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13768 DEFAULT_FACE_ID.
13769
13770 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13771 lookup the initial face-id.
13772
13773 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13774
137752008-06-01 Juanma Barranquero <lekktu@gmail.com>
13776
13777 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13778 (Fremove_text_properties): Fix typos in docstrings.
13779
137802008-05-31 Kenichi Handa <handa@m17n.org>
13781
13782 * font.c (font_list_entities): Fix the car part of data to be
13783 stored in the cache.
13784
13785 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13786
137872008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13788
13789 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13790 Add a `test' argument so another predicate than `equal' can be used.
13791 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13792 (map_char_table): Remove unused vars `c' and `i'.
13793 * lisp.h (Foptimize_char_table): Adjust declaration.
13794 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13795
137962008-05-30 Kenichi Handa <handa@m17n.org>
13797
13798 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13799 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13800 defined.
13801
138022008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13803
13804 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13805 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13806 frame-local settings for the same variable.
13807
138082008-05-30 Kenichi Handa <handa@m17n.org>
13809
13810 * fontset.c (Ffont_info): Move to font.c.
13811 (syms_of_fontset): Delete defsubr of Sfont_info.
13812
13813 * font.c (font_style_to_value, font_score): Delete casting of the
13814 args to xstcasecmp.
13815 (register_font_driver): Increment num_font_drivers only when
13816 registering the driver globally.
13817 (Ffont_info): Move from fontset.c. Handle a font object too.
13818 (syms_of_font): Defsubr Sfont_info.
13819
138202008-05-29 Kenichi Handa <handa@m17n.org>
13821
13822 * coding.h (enum define_coding_utf8_arg_index): New enum.
13823 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13824 coding_attr_utf_bom.
13825 (enum utf_bom_type): Rename from utf_16_bom_type.
13826 (struct utf_16_spec): Adjust for the above change.
13827 (struct coding_system): Add utf_8_bom in `spec' union.
13828
13829 * coding.c (CODING_UTF_8_BOM): New macro.
13830 (enum coding_category): Delete coding_category_utf_8, add
13831 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13832 coding_category_utf_8_sig.
13833 (CATEGORY_MASK_UTF_8): Delete it.
13834 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13835 (CATEGORY_MASK_UTF_8_SIG): New macros.
13836 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13837 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13838 CATEGORY_MASK_UTF_8_SIG.
13839 (CATEGORY_MASK_UTF_8): New macro.
13840 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13841 (detect_coding_utf_8): Check BOM.
13842 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13843 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13844 (encode_coding_utf_16): Likewise.
13845 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13846 (detect_coding, detect_coding_system): Handle utf-8-auto.
13847 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13848 (syms_of_coding): Fix setting up of Vcoding_category_table.
13849
138502008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13851
13852 * process.c (Faccept_process_output): If `millisec' is non-nil,
13853 `seconds' default to 0.
13854 (wait_reading_process_output): Also return non-nil if we read output
13855 from a non-running process.
13856
138572008-05-29 Jason Rumney <jasonr@gnu.org>
13858
13859 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13860 `raster' specified.
13861 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13862 in the uniscribe backend, but disallow any font that has no
13863 unicode subrange support.
13864
138652008-05-29 Juanma Barranquero <lekktu@gmail.com>
13866
13867 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13868 Fix typos in docstrings.
13869
138702008-05-29 Kenichi Handa <handa@m17n.org>
13871
13872 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13873 (Fx_family_fonts): Set frame correctly.
13874
138752008-05-28 Jason Rumney <jasonr@gnu.org>
13876
13877 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13878
138792008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13880
13881 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13882 calling build_annotations.
13883
138842008-05-28 Juanma Barranquero <lekktu@gmail.com>
13885
13886 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13887 (Fencode_coding_string):
13888 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13889 <latin-extra-code-table>: Fix typos in docstrings.
13890 (syms_of_coding) <coding-system-alist>: Doc fix.
13891 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13892
138932008-05-28 Kenichi Handa <handa@m17n.org>
13894
13895 * fontset.c (Ffont_info): Don't call font_close_object.
13896
13897 * font.c (font_parse_family_registry): Use Ffont_put to validate
13898 foundry and family.
13899 (font_delete_unmatched): Don't check spacing.
13900 (font_list_entities): Add spacing to the spec to list fonts.
13901
13902 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13903 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13904
13905 * coding.c (encode_coding_raw_text): Fix previous change.
13906 (encode_coding_object): When the dst_object is a buffer and is
13907 different from src_object, move gap to PT.
13908
139092008-05-27 Chong Yidong <cyd@stupidchicken.com>
13910
13911 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13912
139132008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13914
13915 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13916 all branches. Compute it differently.
13917
13918 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13919
139202008-05-27 Juanma Barranquero <lekktu@gmail.com>
13921
13922 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13923 into "else if () ... else ...".
13924
139252008-05-27 Jason Rumney <jasonr@gnu.org>
13926
13927 * w32font.c (w32font_open_internal): Determine if glyph indices
13928 are likely to work here.
13929
139302008-05-27 Chong Yidong <cyd@stupidchicken.com>
13931
13932 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13933 draw overlap glyphs with appropriate highlighting.
13934
139352008-05-27 Kenichi Handa <handa@m17n.org>
13936
13937 * xfont.c (xfont_open): Fix calculation of font->average_width.
13938
139392008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13940
13941 * casefiddle.c (casify_object): Try to guess better whether the
13942 argument is a byte or a char.
13943
139442008-05-26 Andreas Schwab <schwab@suse.de>
13945
13946 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13947 Always send multiples of format size.
13948
13949 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13950
139512008-05-26 Jason Rumney <jasonr@gnu.org>
13952
13953 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13954 (compute_metrics): Don't set failure if we just cleared the cache.
13955 (w32_weight_table): Remove unused variable.
13956 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13957 backwards compatibility.
13958
139592008-05-25 Kenichi Handa <handa@m17n.org>
13960
13961 * w32term.c (x_draw_glyph_string):
13962 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13963
13964 * xfaces.c: Delete unused function prototypes.
13965 (xstrlwr, font_frame): Delete them.
13966 (clear_face_cache): Delete unused variable.
13967
13968 * xftfont.c (xftfont_open): Delete unused variable.
13969 If underline_thickness is not 1, adjust underline_position.
13970
13971 * ftxfont.c (ftxfont_open): Delete unused variable.
13972
13973 * fontset.c (face_for_char): Optimize for the case of no charset
13974 property.
13975
13976 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13977 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13978 (otf_open, font_otf_capability, generate_otf_features)
13979 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13980 Comment out by surrounding "#if 0" and "#endif" for the moment.
13981 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13982 (syms_of_font): Codes for accessing above commented out.
13983
139842008-05-24 Eli Zaretskii <eliz@gnu.org>
13985
13986 * w32proc.c: Include dispextern.h.
13987
13988 * w32.c: Include dispextern.h.
13989
139902008-05-23 Juanma Barranquero <lekktu@gmail.com>
13991
13992 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13993 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13994 Fix typos in docstrings.
13995
139962008-05-23 Jason Rumney <jasonr@gnu.org>
13997
13998 * xsmfns.c: Remove includes that are already included by config.h.
13999
140002008-05-23 Kenichi Handa <handa@m17n.org>
14001
14002 * charset.c (Qemacs, charset_emacs): New variables.
14003 (char_charset): Fix for non-Unicode characters.
14004 (syms_of_charset): Define charset_emacs.
14005
14006 * w32term.c (x_draw_glyph_string): Be sure to update
14007 s->underline_thickness and s->underline_position. Be sure to draw
14008 underline within the current line area.
14009
14010 * xterm.c (x_draw_glyph_string): Be sure to update
14011 s->underline_thickness and s->underline_position. Be sure to draw
14012 underline within the current line area.
14013
14014 * fontset.c: Delete unused variables and add casting for char *
14015 throughout the file.
14016 (fontset_font): Try the fallback fonts of the current fontset
14017 before consulting the default fontset.
14018
14019 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14020
14021 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14022
140232008-05-22 Jason Rumney <jasonr@gnu.org>
14024
14025 * font.c: Don't include strings.h.
14026
14027 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14028
14029 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14030 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14031 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14032 to call xstrcasecmp.
14033
14034 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14035
14036 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14037
14038 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14039
14040 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14041
140422008-05-22 Kenichi Handa <handa@m17n.org>
14043
14044 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14045
14046 * font.c (font_prop_validate_style): Adjust for the format
14047 change of font_style_table.
14048
14049 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14050 two args.
14051
14052 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14053 two args.
14054
140552008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14056
14057 * minibuf.c (keys_of_minibuf): Delete.
14058 * lisp.h (keys_of_minibuf): Delete.
14059 * emacs.c (main): Don't call keys_of_minibuf.
14060
140612008-05-22 Kenichi Handa <handa@m17n.org>
14062
14063 * ftfont.c (ftfont_resolve_generic_family): Rename from
14064 ftfont_list_generic_family. Return a single family for each
14065 generic family.
14066 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14067 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14068 Call font_add_log.
14069 (ftfont_match): Call font_add_log.
14070
14071 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14072 (FONT_DEBUG): Define it.
14073 (font_add_log): Extern it.
14074 (font_assert): Rename from xassert.
14075
14076 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14077 (xfont_list_family): Call font_add_log.
14078 (xfont_match): Likewise.
14079 (memq_no_quit): Delete.
14080
14081 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14082 call of Ffont_xlfd_name.
14083
14084 * xfaces.c (struct table_entry, slant_table, weight_table)
14085 (swidth_table): Move to font.c.
14086
14087 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14088 xassert are changed to font_assert. Delete many unused variables.
14089 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14090 New variables.
14091 (struct table_entry): Move from xfaces.c and modified.
14092 (weight_table, slant_table, width_table): Move from xfaces.c and
14093 contents adjusted for the change of struct table_entry.
14094 (font_style_to_value, font_style_symbolic): Adjust for the
14095 format change of font_style_table.
14096 (font_parse_family_registry): Don't overwrite existing foundry and
14097 family of font_spec.
14098 (font_score): Fix calculation of diff for sizes.
14099 (font_sort_entites): Call font_add_log.
14100 (font_delete_unmatched): Return a newly created list.
14101 (font_list_entities): Fix previous change. Call font_add_log.
14102 (font_matching_entity, font_open_entity, font_close_entity):
14103 Call font_add_log.
14104 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14105 (Finternal_set_font_style_table): Delete.
14106 (BUILD_STYLE_TABLE): New macro.
14107 (build_style_table): New function.
14108 (Vfont_log, font_log_env_checked): New variables.
14109 (font_add_log): New function.
14110 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14111 Declare Lisp variables "font-weight-table", "font-slant-table",
14112 "font-width-table", and "font-log". Initialize font_style_table.
14113
141142008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14115
14116 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14117
141182008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14119 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14120
14121 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14122 (Vframe_alpha_lower_limit): New variable.
14123 (x_set_alpha): New function.
14124
14125 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14126
14127 * xfns.c (x-create-frame, Qalpha):
14128 Initialize the frame parameter `alpha'.
14129 * xterm.c (OPAQUE, OPACITY): New.
14130 (x_set_frame_alpha): New function.
14131 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14132
14133 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14134 * w32fns.c (w32_frame_parm_handlers): Likewise.
14135
141362008-05-20 Jason Rumney <jasonr@gnu.org>
14137
14138 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14139 truetype fonts to opentype list.
14140
141412008-05-20 Juanma Barranquero <lekktu@gmail.com>
14142
14143 * fontset.c (Ffontset_info): Doc fix.
14144 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14145 <ignore-relative-composition>: Fix typos in docstrings.
14146
14147 * font.c (syms-of-font) <font-encoding-alist>:
14148 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14149 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14150 (Ffont_otf_alternates): Doc fixes.
14151
141522008-05-20 Kenichi Handa <handa@m17n.org>
14153
14154 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14155 font.h through out the file.
14156 (FONT_DRIVERS): Rename from FONTOBJ.
14157 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14158 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14159
14160 * emacs.c (main): Call syms_of_font unconditionally.
14161
14162 * font.h (find_font_encoding): Extern it.
14163
14164 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14165 fontset.c.
194d44e7 14166 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14167 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14168 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14169 only when HAVE_WINDOW_SYSTEM is defined.
14170 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14171 when HAVE_WINDOW_SYSTEM is defined.
14172
14173 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14174 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14175
14176 * xfaces.c: Include font.h unconditionally.
14177 (merge_face_ref, merge_face_vectors)
14178 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14179
141802008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14181
14182 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14183 indirect_variable.
14184 * eval.c (lisp_indirect_variable): New fun.
14185 (Fuser_variable_p): Use it.
14186
141872008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14188
14189 * lisp.h (indirect_variable):
14190 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14191 Use Lisp_Symbol pointers rather than Lisp_Object.
14192 Adjust callers.
14193 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14194 To this end, change calling-convention.
14195
14196 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14197 if some non-hidden buffers are selected by string&pred.
14198
141992008-05-19 Chong Yidong <cyd@stupidchicken.com>
14200
14201 * process.c (wait_reading_process_output): Always check status
14202 when in batch mode.
14203
142042008-05-19 Kenichi Handa <handa@m17n.org>
14205
14206 * font.c (font_list_entities): Fix handling of cache.
14207 (font_matching_entity): Likewise.
14208
14209 * ftfont.c (cs_iso8859_1): Delete.
14210 (ft_face_cache): New variable.
14211 (struct ftfont_info): New member fc_charset_idx.
14212 (ftfont_build_basic_charsets): Delete.
14213 (fc_charset_table): New variable.
14214 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14215 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14216 Callers changed.
14217 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14218 (ftfont_spec_pattern): New argument fc_charset_idx.
14219 Check registry more rigidly. Change callers.
14220 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14221 change of :font-entity property of the font.
14222
14223 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14224 property of the font.
14225
142262008-05-18 Juanma Barranquero <lekktu@gmail.com>
14227
14228 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14229 (Funencodable_char_position, Fcheck_coding_systems_region)
14230 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14231 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14232 (Ffind_operation_coding_system, Fset_coding_system_priority)
14233 (Fcoding_system_eol_type): Doc fixes.
14234
142352008-05-17 Glenn Morris <rgm@gnu.org>
14236
14237 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14238
142392008-05-16 Eli Zaretskii <eliz@gnu.org>
14240
14241 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14242 and st_gid.
14243
14244 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14245 HAVE_WINDOW_SYSTEM is not defined.
14246
14247 * xfaces.c (merge_face_ref, merge_face_vectors)
14248 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14249 HAVE_WINDOW_SYSTEM is defined.
14250 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14251
142522008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14253
14254 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14255
142562008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14257
14258 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14259
142602008-05-15 Kenichi Handa <handa@m17n.org>
14261
14262 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14263 preference.
14264
142652008-05-15 Glenn Morris <rgm@gnu.org>
14266
14267 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14268
142692008-05-15 Chong Yidong <cyd@stupidchicken.com>
14270
14271 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14272 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14273
14274 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14275
142762008-05-15 Kenichi Handa <handa@m17n.org>
14277
14278 * ftfont.c (ftfont_list): Downcase family name to check generic
14279 families.
14280
14281 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14282 font-spec for QCfont value.
14283
14284 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14285 buffer. Check the return value of it.
14286
142872008-05-14 Jason Rumney <jasonr@gnu.org>
14288
14289 * w32term.c (w32_get_glyph_overhangs): Remove.
14290 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14291
142922008-05-14 Kenichi Handa <handa@m17n.org>
14293
14294 * font.c (font_prop_validate): Make nil a valid value.
14295 (font_clear_cache): Check if the cached vector of entities is nil
14296 or not.
14297
142982008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14299
14300 * emacs.c (main_thread): Conditionalize on
14301 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14302 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14303
14304 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14305 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14306 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14307
143082008-05-14 Kenichi Handa <handa@m17n.org>
14309
14310 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14311 has no corresponding coding system.
14312
143132008-05-14 Jason Rumney <jasonr@gnu.org>
14314
14315 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14316
14317 * w32font.h (w32font_open_internal): Update declaration.
14318
14319 * w32font.c (w32font_open_internal): Change last argument from
14320 w32font_info struct to font object. Fill in font object from
14321 font_entity. Get Outline metrics if possible. Use them to
14322 calculate underline position and thickness. Use xlfd name as name
14323 property. Don't set codepage.
14324 (w32font_open): Pass font_object to w32font_open_internal. Don't
14325 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14326 (w32font_draw): Use s->font.
14327 (clear_cached_metrics): Don't clear non-existent blocks.
14328
14329 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14330 font was not found.
14331 (x_draw_glyph_string): Use underline position and thickness from font.
14332
14333 * w32uniscribe.c (uniscribe_open): Pass font_object to
14334 w32font_open_internal.
14335
143362008-05-14 Kenichi Handa <handa@m17n.org>
14337
14338 These changes are to delete all legacy font-handling codes, and
14339 make Emacs use only font-backends.
14340
14341 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14342 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14343
14344 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14345
14346 * charset.h (Vcharset_non_preferred_head)
14347 (Vcurrent_iso639_language): Extern them.
14348
14349 * charset.c (Vcharset_non_preferred_head): New variable.
14350 (Vcurrent_iso639_language): New variable.
14351 (syms_of_charset): Declare it as a Lisp variable.
14352 (char_charset): Don't check non preferred charsets. As a last
14353 resort, return charset_unicode.
14354 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14355
14356 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14357 conditionals. Don't check enable_font_backend. Delete all codes
14358 used only when USE_FONT_BACKEND is not defined.
14359
14360 * dispextern.h (struct glyph_string): Change type of `font' to
14361 `struct font *'.
14362 (struct glyph_string): New member underline_position and
14363 underline_thickness.
14364 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14365 (struct face): Change type of `font' to `struct font *'. Remove
14366 members `font_name', `font_info_id'.
14367 (per_char_metric, encode_char): Delete externs.
14368 (calc_pixel_width_or_height): Adjust the prototype.
14369
14370 * emacs.c (enable_font_backend): Delete extern.
14371 (main): Don't set enable_font_backend. Don't check the command
14372 line argument "-disable-font-backend".
14373
14374 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14375 (enum font_property_index): New members FONT_DPI_INDEX,
14376 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14377 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14378 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14379 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14380 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14381 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14382 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14383 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14384 (struct font_spec, struct font_entity): New structs.
14385 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14386 (struct font): Many members from old "struct font_info" moved to
14387 here. Members font and entity deleted.
14388 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14389 the new font-related objects.
14390 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14391 (CHECK_FONT_GET_OBJECT): Likewise.
14392 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14393 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14394 (struct font_driver): New members case_sensitive anc check. Type
14395 of the member list and open changed.
14396 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14397 (font_symbolic_width, font_find_object, font_get_spec)
14398 (font_set_lface_from_name): Delete extern.
14399 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14400
14401 * font.c: Include <strings.h>.
14402 (enable_font_backend): Delete it.
14403 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14404 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14405 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14406 (null_string): Delete it.
14407 (null_vector): Make it static.
14408 (font_family_alist): Delete it.
14409 (Qnormal): Extern it.
14410 (QCextra, QClanguage): Delete it.
14411 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14412 (font_make_spec, font_make_entity, font_make_object)
14413 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14414 the string. Callers changed.
14415 (font_pixel_size): Adjusted for the format change of font-related
14416 objects.
14417 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14418 (font_style_to_value, font_style_symbolic): New function.
14419 (build_font_family_alist): Delete it.
14420 (font_registry_charsets): Use Fassoc_string instead of
14421 assq_no_quit.
14422 (font_prop_validate_symbol): Don't return null_string.
14423 (font_prop_validate_style): Adjusted for the change of
14424 style-related values in a font vector.
14425 (font_property_table): Delete entries for QClanguage and
14426 QCantialias, add entries for QCavgwidth.
14427 (get_font_prop_index): Delete the 2nd argument FROM.
14428 (font_prop_validate): Arguments changed.
14429 (font_put_extra): Adjusted for the change of font-related objects.
14430 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14431 (font_parse_fcname, font_unparse_fcname)
14432 (font_prepare_composition): Likewise.
14433 (font_parse_family_registry): Renamed from font_merge_old_spec.
14434 (otf_open): Delete the 1st arg entity.
14435 (font_otf_capability): Adjusted for the above change.
14436 (font_score): New arg alternate_families. Adjusted for the change
14437 of font-related objects.
14438 (font_sort_entites): New arg best_only.
14439 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14440 Delete them.
14441 (font_match_p): Check alternate families.
14442 (font_find_object): Delete it.
14443 (font_check_object): New function.
14444 (font_clear_cache): Adjusted for the change of font-related objects.
14445 (font_delete_unmatched): New arg.
14446 (font_list_entities): Call font_driver->list with a spec that
14447 doesn't specify style-related properties.
14448 (font_matching_entity): Arguments changed. Caller changed.
14449 (font_open_entity): Adjusted for the change of font-related objects.
14450 (font_close_object, font_has_char, font_encode_char)
14451 (font_get_name, font_get_spec): Likewise.
14452 (font_spec_from_name, font_clear_prop, font_update_lface):
14453 New functions.
14454 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14455 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14456 (font_at): Adjusted for the change of font-related objects.
14457 (font_range): New function.
14458 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14459 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14460 (Fcopy_font_spec, Fmerge_font_spec): New function.
14461 (Ffont_family_list): Renamed from list-families.
14462 (Finternal_set_font_style_table): Arguments changed.
14463 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14464 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14465 change of font-related objects.
14466 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14467
14468 * fontset.h (struct font_info): Delete it. Most members go to
14469 struct font.
14470 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14471 (enum FONT_SPEC_INDEX): Delete it.
14472 (font_info, list_fonts_func, load_font_func, query_font_func)
14473 (set_frame_fontset_func, find_ccl_program_func)
14474 (get_font_repertory_func, new_fontset_from_font_name): Delete
14475 externs.
14476 (fontset_from_font_name): Extern it.
14477 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14478 (FONT_INFO_FROM_FACE): Deleted.
14479 (face_for_font): Adjust prototype.
14480
14481 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14482 conditionals. Don't check enable_font_backend. Delete all codes
14483 used only when USE_FONT_BACKEND is not defined.
14484 (get_font_info_func, list_font_func, load_font_func)
14485 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14486 (get_font_repertory_func): Delete them.
14487 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14488 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14489 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14490 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14491 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14492 (fontset_compare_rfontdef): New function.
14493 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14494 rfont-defs by qsort. Adjusted for the change of font-group vector.
14495 (load_font_get_repertory): Deleted.
14496 (fontset_find_font): Use new macros to ref/set elements of
14497 font-def and rfont-def.
14498 (fontset_font): Fix the timing of remembering that no font for C.
14499 (free_face_fontset): Do nothing if the face has no fontset.
14500 (face_suitable_for_char_p): Use new macros to ref/set elements of
14501 rfont-def.
14502 (face_for_char): Likewise. Call face_for_char with font_object.
14503 (fs_load_font): Delete. Delete #pragma surrounding it.
14504 (fs_query_fontset): Use strcasecmp instead of strcmp.
14505 (generate_ascii_font_name): Adjusted for the format change of
14506 font-spec.
14507 (Fset_fontset_font): Likewise. Use new macros to set elements of
14508 font-def.
14509 (Fnew_fontset): Use font_unparse_xlfd to generate
14510 FONTSET_ASCII (fontset).
14511 (new_fontset_from_font_name): Deleted.
14512 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14513 a fontset is already created for the font. FIx updating of
14514 Vfontset_alias_alist.
14515 (fontset_ascii_font): Deleted.
14516 (Ffont_info): Adjusted for the format change of font-spec.
14517 (Finternal_char_font): Likewise.
14518 (Ffontset_info): Likewise.
14519 (syms_of_fontset): Don't check load_font_func.
14520
14521 * fns.c (internal_equal): Handle PREV_FONT.
14522
14523 * frame.h: Delete USE_FONT_BACKEND conditional.
14524
14525 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14526 conditionals. Don't check enable_font_backend. Delete all codes
14527 used only when USE_FONT_BACKEND is not defined.
14528 (x_set_font): Call x_new_font, not x_new_fontset2.
14529 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14530 already set for the frame.
14531
14532 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14533 a font-entity by font_make_entity. Use font_intern_prop instead
14534 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14535 font property. If a font is scalable, set avgwidth property to 0.
14536 Set font-entity property by font_put_extra.
14537 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14538 (ffont_driver): Adjusted for the change of struct font_driver.
14539 (ftfont_spec_pattern): New function.
14540 (ftfont_list): Return a list, not vector.
14541 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14542 (ftfont_list_family): Don't downcase names.
14543 (ftfont_free_entity): Deleted.
14544 (ftfont_open): Return a font-object. Adjusted for the change of
14545 struct font. Get underline_thickness and underline_position from
14546 font property. Don't update dpyinfo->smallest_font_height and
14547 dpyinfo->smallest_char_width.
14548 (ftfont_close): Don't free `struct font'.
14549 (ftfont_has_char): Adjusted for the format change of font-entity.
14550 (ftfont_encode_char, ftfont_text_extents): Likewise.
14551
14552 * ftxfont.c (ftxfont_list): Return a list, not vector.
14553 (ftxfont_open): Return a font-object. Adjusted for the change of
14554 struct font. Get underline_thickness and underline_position from
14555 font property. Don't update dpyinfo->smallest_font_height and
14556 dpyinfo->smallest_char_width.
14557 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14558 (ftxfont_draw): Adjusted for the change of struct font.
14559
14560 * image.c (image_ascent): Don't include "charset.h". Include
14561 "character.h" and "font.h".
14562
14563 * lisp.h (enum pvec_type): New member PREV_FONT.
14564 (Fassoc_string): EXFUN it.
14565
14566 * print.c: Include font.h.
14567 (print_object): Handle font-related objects.
14568
14569 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14570 conditionals. Don't check enable_font_backend. Delete all codes
14571 used only when USE_FONT_BACKEND is not defined.
14572 (handle_auto_composed_prop): Do nothing if it->f is not on a
14573 window system. Check how many following characters can be
14574 displayed by the same font.
14575 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14576 'struct font *'.
14577 (get_char_face_and_encoding): Assign the whole encoding task to
14578 the `encode-char' method of a font driver.
14579 (fill_composite_glyph_string): Adjusted for the change of `struct
14580 face' and `struct glyph_string'.
14581 (fill_glyph_string): Likewise.
14582 (get_per_char_metric): Arguments changed.
14583 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14584 and `struct glyph_string'.
14585 (produce_stretch_glyph, calc_line_height_property)
14586 (x_produce_glyphs): Likewise.
14587
14588 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14589 conditionals. Don't check enable_font_backend. Delete all codes
14590 used only when USE_FONT_BACKEND is not defined. Use
14591 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14592 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14593 (Qp): Extern them.
14594 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14595 Deleted.
14596 (struct font_name): Deleted.
14597 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14598 (compare_fonts_by_sort_order): New function.
14599 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14600 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14601 Deleted.
14602 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14603 compare_fonts_by_sort_order.
14604 (Fx_font_family_list): Call Ffont_family_list.
14605 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14606 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14607 (face_symbolic_slant, face_symbolic_swidth)
14608 (split_font_name_into_vector, build_font_name_from_vector)
14609 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14610 (font_rescale_ratio, split_font_name, build_font_name)
14611 (free_font_names, sort_fonts, x_face_list_fonts)
14612 (face_font_available_p, sorted_font_list, cmp_font_names)
14613 (font_list_1, concat_font_list, font_list, remove_duplicates):
14614 Deleted.
14615 (Fx_list_fonts): Use Ffont_list.
14616 (LFACE_AVGWIDTH): Deleted.
14617 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14618 by FONTP.
14619 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14620 (set_lface_from_font_name): Delete it.
14621 (set_lface_from_font): Renamed from
14622 set_lface_from_font_and_fontset. Caller changed. Don't set
14623 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14624 for face.
14625 (merge_face_vectors): Copy font-spec if necessary.
14626 Clear properties of the font-spec if necessary.
14627 (merge_face_ref): Clear properties of the font-spec if necessary.
14628 (Finternal_set_lisp_face_attribute): Likewise.
14629 (set_font_frame_param): Use font_load_for_lface to load a
14630 font-object, and call Fmodify_frame_parameters with it.
14631 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14632 font name by Ffont_xlfd_name.
14633 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14634 QCslant, and QCwidth.
14635 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14636 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14637 Compare fonts by EQ.
14638 (lookup_non_ascii_face): Deleted.
14639 (face_for_font): The 2nd argument changed.
14640 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14641 Check atomic font properties by case insensitive.
14642 (realize_non_ascii_face): Set face->overstrike correctly.
14643 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14644 (dump_realized_face): Get font name from
14645 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14646
14647 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14648 conditionals. Don't check enable_font_backend. Delete all codes
14649 used only when USE_FONT_BACKEND is not defined.
14650 (xic_create_xfontset): Original code deleted and renamed from
14651 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14652 (x_make_gc): Don't set GCFont in GCs.
14653 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14654 opened by "fixed".
14655 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14656 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14657 get_font_repertory_func.
14658
14659 * xfont.c: Include <stdlib.h> and "ccl.h".
14660 (struct xfont_info): New structure.
14661 (xfont_query_font): Deleted.
14662 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14663 moved from xterm.c.
14664 (xfont_driver): Adjusted for the change of struct font_driver.
14665 (compare_font_names): New function.
14666 (xfont_list_pattern): Sort font names case insensitively. Make
14667 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14668 (xfont_list): Return a list, not vector.
14669 (xfont_match): If the font doesn't have QCname property, generate
14670 a name from the other font properties.
14671 (xfont_open): Return a font-object. Adjusted for the change of
14672 struct font. Get underline_thickness and underline_position from
14673 font property. Don't update dpyinfo->smallest_font_height and
14674 dpyinfo->smallest_char_width.
14675 (xfont_close): Don't free struct font.
14676 (xfont_prepare_face): Adjusted for the change of struct font.
14677 (xfont_done_face): Deleted.
14678 (xfont_has_char): Adjusted for the change of struct font.
14679 (xfont_encode_char, xfont_draw): Likewise.
14680 (xfont_check): New function.
14681
14682 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14683 callback function.
14684 (xftfont_match): Adjusted for the format change of font-entity.
14685 (xftfont_open): Adjusted for the format change of font-entity and
14686 font-object. Adjusted for the change of struct font. Return a
14687 font-object. Don't update dpyinfo->smallest_font_height and
14688 dpyinfo->smallest_char_width.
14689 (xftfont_close): Block input while calling XftFontClose.
14690 (xftfont_prepare_face): Don't block input while calling
14691 xftfont_get_colors. Adjusted for the change of struct font.
14692 (xftfont_shape): Return value of error case fixed.
14693
14694 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14695
14696 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14697 conditionals.
14698 (FONT_WIDTH): Return (f)->max_width.
14699 (struct x_display_info): Delete member `font'.
14700 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14701 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14702 (struct x_output): Change type of `font' to `struct font *'.
14703
14704 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14705 conditionals. Don't check enable_font_backend. Delete all codes
14706 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14707 (x_per_char_metric, x_encode_char): Deleted.
14708 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14709 (x_compute_glyph_string_overhangs): Adjusted for the change of
14710 `struct face'.
14711 (x_draw_glyph_string_foreground)
14712 (x_draw_composite_glyph_string_foreground): Likewise.
14713 (x_draw_glyph_string): Likewise. Use font->underline_position and
14714 font->underline_thickness.
14715 (x_new_font): Renamed from x_new_fontset2.
14716 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14717 (x_check_font): Call `check' method of a font driver.
14718 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14719 (x_query_font, x_get_font_repertory): Deleted.
14720 (x_find_ccl_program): Renamed and moved to xfont.c.
14721 (x_redisplay_interface): Adjusted for the change of `struct
14722 redisplay_interface'.
14723
14724 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14725 conditionals. Don't check enable_font_backend. Delete all codes
14726 used only when USE_FONT_BACKEND is not defined. Surround non-used
14727 code by "#ifdef OLD_FONT" and "endif".
14728 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14729
14730 * w32font.h (struct w32font_info): New member.
14731 (FONT_COMPAT): New macro.
14732 (w32font_open_internal): Prototype adjusted.
14733
14734 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14735 OLD_FONT" and "endif".
14736
14737 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14738 conditionals. Don't check enable_font_backend. Delete all codes
14739 used only when USE_FONT_BACKEND is not defined.
14740 (w32font_open): Return a font-object. Make a font-object by
14741 font_make_object. Adjusted for the change of struct w32font_info.
14742 (w32font_close): Don't free struct font. Adjusted for the change
14743 of struct w32font_info.
14744 (w32font_encode_char, w32font_text_extents, w32font_draw):
14745 Adjusted for the change of struct w32font_info.
14746 (w32font_draw): Likewise.
14747 (w32font_list_internal): Return a list, not vector.
14748 (w32font_open_internal): Change the 4th arg to font-object.
14749 Adjusted for the change of struct w32font_info and font-object format.
14750 (add_font_name_to_list): Don't downcase names.
14751 (w32_enumfont_pattern_entity): Make a font-entity by
14752 font_make_entity. Adjusted for the format change of font-entity.
14753 Use FONT_SET_STYLE to set a style-related font property. If a
14754 font is scalable, set avgwidth property to 0. Set font-entity
14755 property by font_put_extra.
14756 (font_matches_spec): Adjusted for the format change of font-entity.
14757 (w32_weight_table, w32_decode_weight): New variables.
14758 (w32_encode_weight): New function.
14759 (fill_in_logfont): Adjusted for the format change of font-spec.
14760 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14761 weight value.
14762 (w32font_driver): Adjusted for the change of struct font_driver.
14763
14764 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14765 conditionals. Don't check enable_font_backend. Surround non-used
14766 code by "#ifdef OLD_FONT" and "endif".
14767 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14768 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14769
14770 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14771 conditionals. Don't check enable_font_backend. Delete all codes
14772 used only when USE_FONT_BACKEND is not defined. Surround non-used
14773 code by "#ifdef OLD_FONT" and "endif".
14774
14775 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14776 (uniscribe_open): Return value changed to font-object.
14777 Adjusted for the format change of font-object.
14778 (uniscribe_otf_capability): Adjusted for the change of struct font.
14779 (add_opentype_font_name_to_list): Don't downcase names.
14780 (uniscribe_font_driver): Adjusted for the change of struct
14781 font_driver.
14782
147832008-05-13 Chong Yidong <cyd@stupidchicken.com>
14784
14785 * dispnew.c (update_frame_1): Check if tty output is still valid
14786 before flushing it.
14787
147882008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14789
14790 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14791 to Gtk+ menus.
14792
147932008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14794
14795 * dired.c (file_name_completion): Tweak the code so as to always do it
14796 in a single pass. Tighten the scope of some variables.
14797
14798 * dired.c (Qdefault_directory): New var.
14799 (file_name_completion): Use it instead of Fexpand_file_name.
14800 (syms_of_dired): Initialize it.
14801
148022008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14803
14804 * fileio.c (double_dollars): Remove dead code.
14805
148062008-05-10 Eli Zaretskii <eliz@gnu.org>
14807
14808 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14809 Mention w32-get-true-file-attributes in doc string.
14810
14811 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14812
148132008-05-09 Glenn Morris <rgm@gnu.org>
14814
14815 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14816 2008-04-23.
14817
148182008-05-09 Eli Zaretskii <eliz@gnu.org>
14819
14820 Support for reporting owner and group of each file on MS-Windows:
14821 * dired.c (stat_uname, stat_gname): New functions, with special
14822 implementation for w32.
14823 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14824
14825 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14826 (dflt_group_name): New static variable.
14827 (dflt_group): Rename from the_group.
14828 (init_user_info): Init dflt_group fields. Get user's group name
14829 from LookupAccountSid.
14830 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14831 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14832 New initialization states.
14833 (globals_of_w32): Initialize them to zero. Initialize the default
14834 group name to "None".
14835 (GetFileSecurity_Name): New global var, the name of the function
14836 to call for GetFileSecurity.
14837 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14838 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14839 (get_file_security, get_security_descriptor_owner)
14840 (get_security_descriptor_group, is_valid_sid)
14841 (get_file_security_desc, get_rid, get_name_and_id)
14842 (get_file_owner_and_group): New functions.
14843 (stat): Use get_file_security_desc and get_file_owner_and_group to
14844 report the owner and primary group of each file. Don't ignore the
14845 high 32 bits of file's size, now that st_size is 64-bit wide.
14846 Fix test when to get true file attributes.
14847 (init_user_info): Use get_rid instead of equivalent inline code.
14848 (fstat): Don't ignore the high 32 bits of file's size.
14849
148502008-05-09 Chong Yidong <cyd@stupidchicken.com>
14851
14852 * image.c (png_load): Use correct bit-depth for setting background
14853 color.
14854
148552008-05-08 Eli Zaretskii <eliz@gnu.org>
14856
14857 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14858 epa-hook.elc.
14859
148602008-05-08 Juanma Barranquero <lekktu@gmail.com>
14861
14862 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14863
148642008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14865
14866 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14867 because the original parameters are in pure storage now.
14868 (mac_window): Remove unused params. Update callers.
14869
148702008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14871
14872 * lread.c (substitute_object_recurse): Use lower-level primitives.
14873 Don't signal errors when traversing sub-char-tables.
14874 Don't loop over all the possible characters when traversing char-tables.
14875
14876 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14877 just like we do in print.c.
14878
148792008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14880
14881 * minibuf.c (Ftry_completion): Remove code left over from when we used
14882 scmp instead of Fcompare_strings.
14883
148842008-05-04 Juanma Barranquero <lekktu@gmail.com>
14885
14886 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14887
148882008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14889
14890 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14891 Create bitmap context in native byte order.
14892
14893 * macterm.c (XDrawLine)
14894 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14895 context in native byte order.
14896
148972008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14898
14899 * config.in: Regenerate.
14900
14901 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14902 New definitions for Image I/O support.
14903 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14904 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14905 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14906 (mac_data_provider_release_data, image_load_image_io)
14907 [USE_MAC_IMAGE_IO]: New functions.
14908 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14909 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14910 (init_image_func_pointer) [MAC_OSX]: Remove function.
14911 (image_load_quartz2d) [MAC_OSX]: Check availability of
14912 CGImageCreateWithPNGDataProvider at compile time.
14913 Use lowercase `false' for boolean constant.
14914 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14915 Use image_load_image_io.
14916 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14917 Don't check MyCGImageCreateWithPNGDataProvider.
14918 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14919 Don't call init_image_func_pointer.
14920
14921 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14922
14923 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14924 Make variable non-static.
14925 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14926 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14927
14928 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14929 (RED_FROM_ULONG): Mask off higher bits.
14930 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14931
14932 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14933 Include AvailabilityMacros.h.
14934 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14935 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14936
149372008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14938
14939 * chartab.c (Fset_char_table_range): If range is t, really set all
14940 chars to that value.
14941
149422008-05-03 Eli Zaretskii <eliz@gnu.org>
14943
14944 * dired.c (Ffile_attributes): Don't allow the device number become
14945 negative.
14946
149472008-05-02 Daiki Ueno <ueno@unixuser.org>
14948
14949 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14950
149512008-05-02 Juri Linkov <juri@jurta.org>
14952
14953 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14954 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14955 DEFAULT argument as a list of default values in docstrings.
14956
149572008-05-01 Chong Yidong <cyd@stupidchicken.com>
14958
14959 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14960
149612008-05-01 Martin Rudalics <rudalics@gmx.at>
14962
14963 * dispnew.c (change_frame_size_1): Preserve small windows when
14964 shrinking frames by calling set_window_height|width with third
14965 arg 2.
14966
14967 * window.h (struct window): Replace field too_small_ok by field
14968 resize_proportionally.
14969
14970 * window.c (make_window): Initialize resize_proportionally.
14971 (enlarge_window): Temporarily set resize_proportionally to make
14972 sure that shrink_windows does scale the window proportionally.
14973 (shrink_windows): When window has resize_proportionally set try
14974 to shrink it proportionally by stealing from other windows.
14975 (struct saved_window, Fset_window_configuration)
14976 (compare_window_configurations): Handle resize_proportionally.
14977 (WINDOW_TOTAL_SIZE): New macro.
14978 (window_min_size, shrink_windows, size_window): Use it.
14979 (check_min_window_sizes): Remove. Invalid values of
14980 window-min-height|width are handled by window_min_size_2 now.
14981 (size_window, Fsplit_window, enlarge_window)
14982 (adjust_window_trailing_edge, grow_mini_window): Don't call
14983 check_min_window_sizes.
14984 (window_min_size_2, window_min_size_1, window_min_size):
14985 New argument safe_p for retrieving "safe" minimum sizes.
14986 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14987 (adjust_window_trailing_edge, grow_mini_window):
14988 Adjust arguments of window_min_size... functions.
14989 (shrink_windows): Argument min_size removed. New argument
14990 safe_p allows shrinking windows to their safe minimum sizes.
14991 Calculate minimum size and decide whether a window shall be
14992 deleted for each window individually.
14993 (size_window): When nodelete_p equals 2, tell shrink_windows to
14994 delete windows only if their new minimum size is no more safe.
14995 (shrink_window_lowest_first): Call window_min_size_1 to make
14996 sure to preserve modeline of bottom-most window when resizing
14997 the minibuffer.
14998 (Fset_window_configuration, Fcurrent_window_configuration)
14999 (compare_window_configurations): Do not handle
15000 window-min-height|width any more.
15001 (syms_of_window): Clarify window-min-height|width doc-strings.
15002
150032008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15004
15005 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15006 some more. Copy some of the code from Ftry_completions.
15007 Remove special case code that dates back to initial revision when the
15008 slash was only added when necessary and that can't trigger nowadays.
15009
150102008-04-27 Kenichi Handa <handa@m17n.org>
15011
15012 * font.c (font_prop_validate): Signal `error' instead of `font'.
15013
150142008-04-29 Jason Rumney <jasonr@gnu.org>
15015
15016 * w32fns.c (Fw32_battery_status): New defun.
15017 (syms_of_w32fns): Defsubr it.
15018
150192008-04-28 Andreas Schwab <schwab@suse.de>
15020
15021 * dired.c (file_name_completion): Fix another mixing of encoded
15022 and decoded names.
15023
150242008-04-28 Juanma Barranquero <lekktu@gmail.com>
15025
15026 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15027
150282008-04-27 Juanma Barranquero <lekktu@gmail.com>
15029
15030 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15031
150322008-04-27 Andreas Schwab <schwab@suse.de>
15033
15034 * dired.c (file_name_completion): Fix inappropriate mixing of
15035 encoded and decoded names.
15036
15037 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15038
15039 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15040
150412008-04-26 Eli Zaretskii <eliz@gnu.org>
15042
15043 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15044 2008-03-31, it's not needed anymore with `struct stat' definition
15045 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15046 for the same reasons.
15047
150482008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15049
15050 * m/sparc.h: Additional redefinitions for GNU/Linux.
15051
150522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15053
15054 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15055 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15056 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15057 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15058 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15059 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15060 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15061 Likewise.
15062
15063 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15064 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15065 (mac_ax_number_of_characters): Add externs.
15066 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15067 [USE_MAC_TSM]: Likewise.
15068 (mac_handle_text_input_event) [MAC_OSX]:
15069 Handle kEventTextInputOffsetToPos for no active input area case.
15070 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15071 (mac_handle_document_access_event)
15072 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15073 (install_application_handler) [MAC_OSX]: Register handlers for
15074 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15075 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15076 Register mac_handle_document_access_event.
15077
15078 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15079 Make functions non-static.
15080
150812008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15082
15083 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15084 (read_file_name_completion_ignore_case, insert_default_directory)
15085 (Qdefault_directory): Move to minibuffer.el.
15086 (Fread_file_name): Call the new `read-file-name' instead.
15087
150882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15089
15090 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15091 Make function non-static.
15092 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15093 Remove function.
15094 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15095 Move to mactoolbox.c.
15096 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15097
15098 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15099 (mac_rect_make): New macro.
15100
15101 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15102 instead of float.
15103 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15104 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15105 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15106 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15107 CGRectMake.
15108 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15109 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15110 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15111 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15112 instead of WindowRef in argument type.
15113 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15114 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15115 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15116 instead of DISPLAY. All uses changed.
15117 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15118 (x_calc_absolute_position): Simplify so as not to use
15119 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15120
15121 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15122 instead of WindowRef in argument type.
15123 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15124 [TARGET_API_MAC_CARBON]: Remove externs.
15125 (create_apple_event, mac_event_parameters_to_lisp)
15126 [TARGET_API_MAC_CARBON]: Add externs.
15127
15128 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15129 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15130 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15131 is clicked.
15132 (x_activate_menubar): Remove extern for saved_menu_event_location.
15133 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15134 Move from mac.c.
15135
151362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15137
15138 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15139 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15140
151412008-04-23 Jason Rumney <jasonr@gnu.org>
15142
15143 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15144 attributes only for local files.
15145
15146 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15147 default to Qlocal.
15148
151492008-04-22 Juri Linkov <juri@jurta.org>
15150
15151 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15152 read-buffer-to-switch instead of using the letter "B".
15153
151542008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15155
15156 * fileio.c (Qdefault_directory): New variable.
15157 (Fread_file_name): Use it to pass `dir' to the completion functions.
15158
151592008-04-20 Chong Yidong <cyd@stupidchicken.com>
15160
15161 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15162
151632008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15164
15165 * keyboard.c (Vpre_help_message): Remove.
15166 (show_help_echo): Remove default C code.
15167
15168 * dired.c (directory_files_internal, file_name_completion):
15169 Only call ENCODE_FILE if the string is indeed decoded.
15170
151712008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15172
15173 * Makefile.in (TOOLKIT_DEFINES): Remove.
15174 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15175
151762008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15177
15178 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15179 (mactoolbox.o): New target.
15180
15181 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15182 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15183
15184 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15185 Use mac_set_frame_window_background instead of XSetWindowBackground.
15186 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15187 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15188 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15189 instead of SetWindowTitleWithCFString.
15190 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15191 Move function to mactoolbox.c.
15192 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15193 Use mac_set_window_modified instead of SetWindowModified.
15194 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15195 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15196 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15197 FrontNonFloatingWindow. Use mac_activate_window instead of
15198 ActivateWindow. Use mac_active_non_floating_window instead of
15199 ActiveNonFloatingWindow.
15200 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15201 Use mac_show_hourglass and mac_hide_hourglass.
15202 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15203 instead of GetGlobalMouse.
15204 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15205 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15206 Use mac_bring_window_to_front instead of BringToFront.
15207 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15208 mactoolbox.c.
15209 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15210 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15211 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15212 mactoolbox.c.
15213
15214 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15215 (XtPointer): Move typedef from macmenu.c.
15216 (enum button_type): Move enum from macmenu.c.
15217 (widget_value): Move typedef from macmenu.c.
15218 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15219 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15220 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15221 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15222 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15223 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15224 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15225 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15226 (Selection): Move typedef from macselect.c.
15227 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15228 macterm.c.
15229 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15230 (mac_is_window_collapsed, mac_bring_window_to_front)
15231 (mac_send_window_behind, mac_hide_window, mac_show_window)
15232 (mac_collapse_window, mac_front_non_floating_window)
15233 (mac_active_non_floating_window, mac_activate_window)
15234 (mac_move_window_structure, mac_move_window, mac_size_window)
15235 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15236
15237 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15238 (enum mac_menu_kind): Move enum to mactoolbox.c.
15239 (min_menu_id): Move variable to mactoolbox.c.
15240 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15241 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15242 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15243 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15244 [TARGET_API_MAC_CARBON]: Likewise.
15245 (XtPointer): Move typedef to macgui.h.
15246 (enum button_type): Move enum to macgui.h.
15247 (widget_value): Move typedef to macgui.h.
15248 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15249 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15250 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15251 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15252 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15253 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15254 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15255 (popup_activated_flag): Make variable non-static.
15256 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15257 (add_menu_item, fill_menu, dispose_menus):
15258 Move functions to mactoolbox.c.
15259 (restore_show_help_function, menu_target_item_handler)
15260 (install_menu_target_item_handler, mac_handle_dialog_event)
15261 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15262 [TARGET_API_MAC_CARBON]: Likewise.
15263 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15264 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15265 (find_and_call_menu_selection, name_is_separator): Make function
15266 non-static.
15267 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15268 to mactoolbox.c.
15269 (set_frame_menubar): Don't call install_menu_quit_handler.
15270 (menu_item_selection): New variable.
15271 (mac_menu_show): Use create_and_show_popup_menu.
15272 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15273 selection but set variable menu_item_selection. All uses changed.
15274 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15275 Call install_menu_quit_handler. Move to mactoolbox.c.
15276
15277 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15278 (Selection): Move typedef to macgui.h.
15279 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15280 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15281 Make variables non-static.
15282 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15283 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15284 Make functions non-static.
15285 (Vmac_service_selection) [MAC_OSX]: Likewise.
15286 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15287 (mac_valid_selection_target_p, mac_clear_selection)
15288 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15289 (mac_put_selection_value, mac_selection_has_target_p)
15290 (mac_get_selection_value, mac_get_selection_target_list)
15291 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15292 Move functions to mactoolbox.c.
15293 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15294 Likewise.
15295 (copy_scrap_flavor_data, mac_handle_service_event)
15296 (install_service_handler) [MAC_OSX]: Likewise.
15297 (syms_of_macselect) <Vmac_dnd_known_types>:
15298 Use mac_dnd_default_known_types.
15299
15300 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15301 Move to mactoolbox.c.
15302 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15303 (Fx_selection_owner_p): Add EXFUN.
15304 (install_window_handler, remove_window_handler, XSetWindowBackground):
15305 Remove externs.
15306 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15307 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15308 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15309 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15310 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15311 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15312 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15313 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15314 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15315 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15316 (mac_valid_selection_target_p, mac_clear_selection)
15317 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15318 (mac_put_selection_value, mac_selection_has_target_p)
15319 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15320 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15321 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15322 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15323 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15324 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15325 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15326 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15327 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15328
15329 * mactoolbox.c: New file.
15330
153312008-04-18 Jason Rumney <jasonr@gnu.org>
15332
15333 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15334
153352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15336
15337 * character.c (Fmultibyte_char_to_unibyte):
15338 Return latin1 chars unchanged.
15339
15340 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15341 relocated if it points to `name'.
15342
153432008-04-17 Kenichi Handa <handa@m17n.org>
15344
15345 * data.c (Faset): Allow setting a multibyte character in an
15346 ASCII-only unibyte string.
15347
15348 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15349
153502008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15351
15352 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15353 done in config.h.
15354
153552008-04-16 Juanma Barranquero <lekktu@gmail.com>
15356
15357 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15358 (Fchar_direction): Add usage in the docstring.
15359
153602008-04-15 Chong Yidong <cyd@stupidchicken.com>
15361
15362 * keyboard.c (read_key_sequence): Remove always-true checks.
15363
153642008-04-14 Jason Rumney <jasonr@gnu.org>
15365
15366 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15367 compatibility struct, for better underline positioning.
15368
153692008-04-13 David Hansen <david.hansen@gmx.net>
15370
15371 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15372 string.
15373
153742008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15375
15376 * m/hp800.h (XUINT, XSET): Remove.
15377
153782008-04-12 Juanma Barranquero <lekktu@gmail.com>
15379
15380 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15381 previous change.
15382
153832008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15384
15385 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15386 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15387
153882008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15389
15390 * keymap.h (map_keymap_canonical): Declare.
15391 * xmenu.c (single_keymap_panes): Use it.
15392
153932008-04-11 Glenn Morris <rgm@gnu.org>
15394
15395 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15396 set the target's value to that of the alias.
15397
153982008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15399
15400 * term.c (set_tty_color_mode): Left over typo.
15401
154022008-04-10 Michael Albinus <michael.albinus@gmx.de>
15403
15404 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15405 only after check for file name handler functions. Signal, when
15406 native functionality is not supported.
15407 (syms_of_fileio): Declare it unconditionally.
15408
154092008-04-10 Jason Rumney <jasonr@gnu.org>
15410
15411 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15412 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15413
15414 * w32.c (logon_network_drive): Also logon to remote drives that
15415 are mapped to drive letters.
15416
154172008-04-10 Glenn Morris <rgm@gnu.org>
15418
15419 * xdisp.c (truncate-partial-width-windows): Doc fix.
15420
154212008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15422
15423 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15424 Move functions to minibuffer.el.
15425 (syms_of_fileio): Don't declare them.
15426
154272008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15428
15429 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15430 (syms_of_minibuf): Remove its initialization.
15431
15432 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15433
154342008-04-09 Juanma Barranquero <lekktu@gmail.com>
15435
15436 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15437
154382008-04-09 Jason Rumney <jasonr@gnu.org>
15439
15440 * makefile.w32-in (distclean): Delete makefile too.
15441 (maintainer-clean): New target.
15442
15443 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15444
15445 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15446 for new font backend and composite cases.
15447
154482008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15449
15450 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15451 Most of the code moved to run_timers.
15452 (do_pending_atimers): Call run_timers.
15453 (run_timers): New function.
15454
15455 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15456 run atimers.
15457
15458 * process.c (wait_reading_process_output): The same as above.
15459
154602008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15461
15462 * minibuf.c (last_exact_completion): Remove variable.
15463 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15464 (complete_and_exit_1, complete_and_exit_2)
15465 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15466 (Fdisplay_completion_list, display_completion_list_1)
15467 (Fminibuffer_completion_help, Fself_insert_and_exit)
15468 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15469 minibuffer.el.
15470 (syms_of_minibuf): Remove corresponding initializations.
15471
15472 * keyboard.c (Qdeactivate_mark): New var.
15473 (command_loop_1): Use it to call `deactivate-mark'.
15474 (syms_of_keyboard): Initialize it.
15475
15476 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15477 to another frame.
15478 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15479 Don't call set_tty_color_mode.
15480 (store_frame_param): Reset previous_frame rather than call
15481 set_tty_color_mode.
15482 * term.c (set_tty_color_mode): Rewrite.
15483 * dispextern.h (set_tty_color_mode): New type.
15484 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15485
154862008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15487
15488 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15489 for generic chars, which do not exist any more in emacs-unicode.
15490
154912008-04-08 Michael Albinus <michael.albinus@gmx.de>
15492
15493 * coding.c (detect_coding_emacs_mule)
15494 (Ffind_operation_coding_system): Fix typo.
15495
154962008-04-08 Jason Rumney <jasonr@gnu.org>
15497
15498 * w32uniscribe.c (SNAME): Extract only symbol name.
15499
15500 * w32font.h (struct w32_metric_cache): New struct.
15501 (w32font_info): Use it.
15502 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15503 (CACHE_BLOCKSIZE): New constants.
15504
15505 * w32font.c (Qja, Qko, Qzh): New symbols.
15506 (syms_of_w32font): Initialise them.
15507 (font_matches_spec): Use them to filter by language.
15508 (recompute_cached_metrics): Remove function.
15509 (compute_metrics, clear_cached_metrics): New functions.
15510 (w32font_encode_char): Use them to manage metric cache.
15511 (w32font_text_extents): Cache metrics for all glyphs on demand.
15512 Delay converting glyph indices to WORD until needed.
15513 (w32font_open_internal): Initialize metric cache to empty.
15514 (registry_to_w32_charset): Charset should always be a symbol.
15515 (fill_in_logfont, list_all_matching_fonts): Family should
15516 always be a symbol.
15517
155182008-04-06 Jason Rumney <jasonr@gnu.org>
15519
15520 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15521 Give up if glyph indices not supported. Use uniscribe obtained
15522 ABC widths for individual metrics. Map glyph clusters back to
15523 characters using fClusterStart flag. Return number of glyphs
15524 produced, not chars processed.
15525 (uniscribe_shape): Map char at FROM to current glyph.
15526
155272008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15528
15529 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15530 Use SetMenuItemHierarchicalMenu.
15531
155322008-04-05 Jason Rumney <jasonr@gnu.org>
15533
15534 * image.c (pbm_load): Allow color values up to 65535.
15535 Throw an error if max_color_idx is outside the supported range.
15536 Report an error when image size is invalid.
15537 Read two bytes at a time when raw images have max_color_idx above 255.
15538
aac0c6e3
MR
155392008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15540
15541 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15542 append "CCL: Quitted" when the CCL program is quitted.
15543 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15544
15545 * ccl.h (struct ccl_program): New member quit_silently.
15546
155472008-04-05 Chong Yidong <cyd@stupidchicken.com>
15548
15549 * search.c (compile_pattern_1): Treat non-nil and non-string of
15550 search-spaces-regexp as nil.
15551
15552 * minibuf.c (Fassoc_string): Tweak docstring.
15553
155542008-04-05 Eli Zaretskii <eliz@gnu.org>
15555
15556 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15557 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15558 2008-03-14 to force inode be positive.
15559
15560 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15561 _S_* ones, since we now use our own sys/stat.h.
15562 (stat, fstat): Don't mangle the inode number.
15563 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15564
155652008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15566
15567 * frame.h (struct frame): Give one more bit to `visible' since we use
15568 values larger than 1 to indicate obscured frames on ttys.
15569
15570 * keymap.c (Qkeymap_canonicalize): New var.
15571 (Fmap_keymap_internal): New fun.
15572 (describe_map): Use keymap-canonicalize.
15573
15574 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15575 (Fundo_boundary): Set them.
15576 (syms_of_undo): Initialize them.
15577 (record_point): Use them instead of last_point_position*.
15578 (last_undo_buffer): Change type.
15579
155802008-04-04 Jason Rumney <jasonr@gnu.org>
15581
15582 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15583 (recompute_cached_metrics): Don't set ascent and descent per char.
15584
15585 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15586 (uniscribe_check_otf): Add GC protection before consing.
15587 Rearrange loop for counting features.
15588
155892008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15590
15591 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15592 buffer with byte-size of source buffer.
15593
155942008-04-03 Chong Yidong <cyd@stupidchicken.com>
15595
15596 * callint.c (Fcall_interactively): Handle temporary region even
15597 when shift-select-mode is off.
15598
155992008-04-03 Jason Rumney <jasonr@gnu.org>
15600
15601 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15602
156032008-04-03 Kenichi Handa <handa@m17n.org>
15604
15605 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15606 (CATEGORY_MASK_UTF_16): Likewise.
15607 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15608 binary file.
15609 (detect_coding): Add null-byte detection for a binary file.
15610 (detect_coding_system): Likewise.
15611
156122008-04-03 Jason Rumney <jasonr@gnu.org>
15613
15614 * w32uniscribe.c: New file.
15615
15616 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15617
15618 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15619
15620 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15621 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15622 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15623 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15624 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15625 (Qphonetic): New symbols.
15626 (syms_of_w32font): Initialize them.
15627 (font_supported_scripts): Use them.
15628 (w32font_list_family): List all charsets.
15629 (w32font_text_extents, recompute_cached_metrics): Fix metric
15630 calculations.
15631 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15632 Give opentype fonts their own format.
15633 (font_matches_spec): New arguments backend and logfont.
15634 Handle :otf spec for uniscribe backend.
15635 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15636 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15637
15638 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15639 font backend.
15640 (globals_of_w32fns): Initialize uniscribe font backend.
15641
15642 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15643 dependencies.
15644 (w32uniscribe.$(O)): New file to build.
15645 (FONT_OBJ): Include w32uniscribe.$(O).
15646 (LIBS): Add uniscribe libraries.
15647
15648 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15649
156502008-04-02 Chong Yidong <cyd@stupidchicken.com>
15651
15652 * callint.c (Vshift_select_mode): New var.
15653 (Finteractive): Document new ^ spec.
15654 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15655 is present.
15656
15657 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15658 (command_loop_1): Avoid running the direct display versions of
15659 forward-char and backward-char if shift-selection may occur.
15660 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15661 shift-translation takes place.
15662
15663 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15664 avoid clobbering by define-minor-mode.
15665
15666 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15667 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15668
15669 * syntax.c (Fforward_word): Add ^ interactive spec.
15670
15671 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15672 (Fscroll_right): Add ^ interactive spec.
15673
156742008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15675
15676 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15677
15678 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15679
15680 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15681
156822008-03-31 Juri Linkov <juri@jurta.org>
15683
15684 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15685
156862008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15687
15688 * gtkutil.c (xg_set_geometry): Fix indentation.
15689 (xg_resize_outer_widget): Remove.
15690 (x_wm_size_hint_off): Fix indentation.
15691 (xg_frame_set_char_size): Call flush_and_sync after
15692 gtk_window_resize.
15693 (x_wm_set_size_hint): Pass NULL as geometry window to
15694 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15695 Add menu bar and tool bar height to base height.
15696 (xg_update_frame_menubar, free_frame_menubar)
15697 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15698 (update_frame_tool_bar, free_frame_tool_bar):
15699 Change xg_resize_outer_widget to xg_frame_set_char_size.
15700
157012008-03-30 Michael Albinus <michael.albinus@gmx.de>
15702
15703 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15704 (Fdbus_call_method): New parameter TIMEOUT.
15705 (dbus-send-signal): Optimize UNGCPRO call.
15706
157072008-03-29 Juri Linkov <juri@jurta.org>
15708
15709 * window.c (Fdisplay_buffer): Move call to
15710 Vsplit_window_preferred_function out of conditions that check
15711 if window is eligible for vertical splitting.
15712 When Vsplit_window_preferred_function is non-nil, call it and use
15713 its non-nil return value as window. Otherwise, continue doing
15714 vertical splitting using Fsplit_window with arg horflag=nil.
15715 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15716 default value from `split-window' to nil.
15717
157182008-03-29 Juri Linkov <juri@jurta.org>
15719
15720 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15721 for interactive code letters 'b' and 'B'.
15722
157232008-03-29 Eli Zaretskii <eliz@gnu.org>
15724
15725 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15726 multibyte string.
15727
157282008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15729
15730 * keyboard.c (pending_funcalls): New var.
15731 (timer_check): Run it.
15732 (syms_of_keyboard): Initialize it.
15733 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15734 (Vdelete_terminal_functions): New vars.
15735 (syms_of_terminal): Initialize them.
15736 (Fdelete_terminal): Run delete-terminal-functions.
15737 * xdisp.c (safe_eval): Rewrite.
15738 (safe_call2): New fun.
15739 * frame.c (Qdelete_frame_functions): New var.
15740 (syms_of_frame): Initialize it.
15741 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15742 * lisp.h (safe_call2, pending_funcalls): Declare.
15743
157442008-03-28 Andreas Schwab <schwab@suse.de>
15745
15746 * indent.c (Fmove_to_column): Move declaration before statements.
15747
157482008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15749
15750 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15751 (struct frame): Use bit fields for boolean vars.
15752
15753 * process.c (server_accept_connection): Simplify naming.
15754 (emacs_get_tty_pgrp): Use SDATA.
15755
15756 * coding.c (decode_coding_object): Fix last change.
15757
157582008-03-27 Jason Rumney <jasonr@gnu.org>
15759
15760 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15761
157622008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15763
15764 * charset.c (Fdefine_charset_internal): Change the way of
15765 registering charsets in Vcharset_order_list.
15766 (syms_of_charset): Make the charset `eight-bit' supplementary.
15767
157682008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15769
15770 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15771 operations, to avoid having the difference between pointers
15772 overflow.
15773
157742008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15775
15776 * indent.c (check_display_width): New fun.
15777 (scan_for_column): Use it.
15778
15779 * data.c (syms_of_data): Mark most-positive-fixnum and
15780 most-negative-fixnum as constants.
15781
15782 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15783
15784 * indent.c (scan_for_column): Extract from current_column_1.
15785 Merge with the same code from Fmove_to_column.
15786 (current_column_1, Fmove_to_column): Use it.
15787
157882008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15789
15790 * keymap.c (map_keymap_internal): New fun.
15791 (map_keymap): Use it.
15792 (Fmap_keymap_internal): New fun.
15793 (Fmap_keymap): Remove left-out test from before make_save_value.
15794
15795 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15796
15797 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15798 Use XCAR/XCDR.
15799
15800 * process.h (struct Lisp_Process): Remove filter_multibyte.
15801 * process.c (QCfilter_multibyte): Remove.
15802 (setup_process_coding_systems): Don't use filter_multibyte.
15803 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15804 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15805 (Fset_process_filter_multibyte): Change the coding-system to
15806 approximate the previous behavior.
15807 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15808 coding-system.
15809
15810 * coding.c (decode_coding_object): When not decoding into a buffer,
15811 obey the coding system's preference of (uni|multi)byte.
15812
158132008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15814
15815 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15816 every char is changed and has a different byte-length.
15817 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15818 Fix int -> EMACS_INT.
15819
158202008-03-23 David Hansen <david.hansen@gmx.net>
15821
15822 * dbusbind.c (xd_read_message): Remove extra copying of message
15823 strings. Check for NULL `interface' or `member'.
15824
158252008-03-22 Eli Zaretskii <eliz@gnu.org>
15826
15827 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15828 cFileName a file name that includes `?' characters, use the 8+3
15829 alias in cAlternateFileName instead.
15830
158312008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15832
15833 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15834
158352008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15836
15837 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15838 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15839 work on current_buffer only instead (that was already the case
15840 for some of the code anyway).
15841 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15842 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15843 (SET_PT, SET_PT_BOTH): Adjust.
15844 * intervals.h (set_point, temp_set_point, set_point_both)
15845 (temp_set_point_both): Remove redundant declarations.
15846
158472008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15848
15849 * fileio.c (Finsert_file_contents):
15850 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15851 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15852 when buffer != current_buffer anyway.
15853
158542008-03-20 Andreas Schwab <schwab@suse.de>
15855
15856 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15857 as default.
15858
158592008-03-19 Jason Rumney <jasonr@gnu.org>
15860
15861 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15862 (syms_of_w32fns): Initialize them.
15863 (HOURGLASS_ID): New constant.
15864 (x_window_to_frame): Don't check hourglass_window.
15865 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15866 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15867 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15868 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15869 Only change the cursor if hourglass is not active.
15870 (Fx_create_frame): Initialize frame's current_cursor.
15871 (hourglass_atimer): Remove.
15872 (hourglass_started): New function.
15873 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15874 (show_hourglass): Adapt to w32, changing argument to frame.
15875
15876 * w32term.h (struct w32_output): Remove hourglass_window.
15877 Add current_cursor.
15878
15879 * eval.c (call_debugger, Fsignal):
15880 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15881 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15882 (Fexecute_extended_command, cancel_hourglass_unwind):
15883 * minibuf.c (read_minibuf):
15884 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15885
158862008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15887
15888 * window.c (run_funs): New fun.
15889 (run_window_configuration_change_hook): Use it to run the buffer-local
15890 and the global part of the hook.
15891
15892 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15893 (unwind_format_mode_line): Restore selected window.
15894 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15895
158962008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15897
15898 * editfns.c (Fchar_equal): Check they are valid characters.
15899
15900 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15901
159022008-03-17 Andreas Schwab <schwab@suse.de>
15903
15904 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15905 against a charset.
15906
15907 * lisp.h (Fbuffer_list): Declare.
15908
159092008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15910
aac0c6e3
MR
15911 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15912 handlebox_widget is != 0.
15913
159142008-03-16 Juri Linkov <juri@jurta.org>
15915
15916 * callint.c (Fcall_interactively): For interactive code letters
15917 'b' and 'B' put the buffer list into the list of default "future"
15918 values of the minibuffer.
15919
159202008-03-16 Andreas Schwab <schwab@suse.de>
15921
15922 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15923 modifiers.
15924
15925 * regex.c (re_match_2_internal): Correct matching of a charset
15926 against latin-1 characters.
15927
159282008-03-16 Kenichi Handa <handa@m17n.org>
15929
15930 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15931 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15932 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15933 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15934 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15935 CHAR_STRING_ADVANCE.
15936 (produce_chars): Fix for the case that the source and the
15937 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15938 instead of CHAR_STRING_ADVANCE.
15939 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15940 STRING_CHAR_ADVANCE.
15941
159422008-03-15 Andreas Schwab <schwab@suse.de>
15943
15944 * regex.c (re_match_2_internal): Correct matching of eight bit
15945 characters in unibyte strings.
15946
159472008-03-15 Martin Rudalics <rudalics@gmx.at>
15948
15949 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15950 at end of range when it coincides with the end of the buffer.
15951
159522008-03-14 Eli Zaretskii <eliz@gnu.org>
15953
15954 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15955
15956 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15957
159582008-03-14 Jason Rumney <jasonr@gnu.org>
15959
15960 * editfns.c (initial_tz): New variable.
15961 (syms_of_editfns): Initialize it.
15962 (Fset_time_zone_rule): Set it when first called.
15963 Use it when TZSTRING is nil.
15964
15965 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15966 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15967 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15968 (globals_of_w32fns): Initialize them.
15969 (compute_tip_xy): Use them to position tooltips.
15970
159712008-03-14 Glenn Morris <rgm@gnu.org>
15972
15973 * emacs.c (main): Revert previous change.
15974 (standard_args): Revert -internal-script back to -scriptload,
15975 and remove the long-option form.
15976
159772008-03-13 Glenn Morris <rgm@gnu.org>
15978
15979 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15980 Remove option -enable-font-backend.
15981
159822008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15983
15984 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15985
159862008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15987
15988 * xterm.c (x_connection_closed): For GTK: If this is the last
15989 terminal just exit without closing the display.
15990
159912008-03-11 Jason Rumney <jasonr@gnu.org>
15992
15993 * w32font.c (w32font_full_name): Use floor to round.
15994
f0131492 159952008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15996
15997 * sound.c (alsa_configure): Declare vol at beginning of block.
15998
15999 * fontset.c (Ffontset_info): Remove extra semicolon.
16000
160012008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16002
16003 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16004 size of resulting string.
16005
160062008-03-10 Jason Rumney <jasonr@gnu.org>
16007
16008 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16009
160102008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16011
16012 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16013 Don't pretend as if characters with display property haven't been
16014 consumed for string-replacing-string case.
16015
160162008-03-08 Kim F. Storm <storm@cua.dk>
16017
16018 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16019 (get_next_display_element, next_element_from_string)
16020 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16021
160222008-03-08 Andreas Schwab <schwab@suse.de>
16023
16024 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16025
160262008-03-06 Jason Rumney <jasonr@gnu.org>
16027
16028 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16029 when charset not specified. Only translate ANSI to unicode when
16030 font_type is truetype.
16031 (w32font_coverage_ok): New function.
16032 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16033
160342008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16035
16036 * lread.c (Fread_char): Resolve modifiers.
16037 (Fread_char_exclusive): Likewise.
16038
16039 * character.c (char_resolve_modifier_mask): New function.
16040 (char_string): Use char_resolve_modifier_mask.
16041 (Fchar_resolve_modifiers): New function.
16042 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16043 function.
16044
160452008-03-04 Jason Rumney <jasonr@gnu.org>
16046
16047 * makefile.w32-in: Always include w32font.c in the build.
16048 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16049
160502008-03-04 Andreas Schwab <schwab@suse.de>
16051
16052 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16053 (versionclean): Likewise.
16054
160552008-03-04 Juanma Barranquero <lekktu@gmail.com>
16056
16057 * .cvsignore: Add oo.
16058
160592008-03-03 Andreas Schwab <schwab@suse.de>
16060
16061 * coding.c (decode_coding_object): Inhibit gap shrinking while
16062 decoding in place.
16063
160642008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16065
16066 * w32term.c: Remove unused include "gnu.h".
16067 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16068
16069 * gnu.h: Rename to ...
16070 * emacs-icon.h: ... this.
16071 * xterm.c: Use emacs-icon.h instead of gnu.h.
16072 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16073
160742008-03-03 Juanma Barranquero <lekktu@gmail.com>
16075
16076 * w32font.c: Include math.h.
16077
160782008-03-03 Jason Rumney <jasonr@gnu.org>
16079
16080 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16081 Compute options separately.
16082 (w32font_open_internal): Set glyph_idx before caching metrics.
16083
16084 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16085 Define if system headers don't.
16086 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16087 (w32font_encode_char): Don't declare here.
16088
16089 * w32font.c (Quniscribe, QCformat): New symbols.
16090 (syms_of_w32font): Define them.
16091 (w32font_has_char): Indicate uncertainty.
16092 (w32font_encode_char): Encode as glyph point. Make static.
16093 (recompute_cached_metrics): New function.
16094 (w32font_open_internal): Use it. Set font to use glyph points
16095 initially. Set format based on type of font.
16096 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16097 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16098 on it. Set format based on information available here.
16099 (add_font_entity_to_list): Identify backend based on opentype_only.
16100
161012008-03-02 Andreas Schwab <schwab@suse.de>
16102
16103 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16104
16105 * coding.c (decode_coding_big5, produce_chars):
16106 Fix typos in last change.
16107
161082008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16109
16110 * gnu.h: New icon.
16111
161122008-03-02 Kenichi Handa <handa@m17n.org>
16113
16114 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16115 `dos', don't decode '\r' if that is the last in the source.
16116 (decode_coding_utf_16, decode_coding_emacs_mule)
16117 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16118 (decode_coding_raw_text, decode_coding_charset): Likewise.
16119 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16120
161212008-03-01 Jason Rumney <jasonr@gnu.org>
16122
16123 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16124
161252008-03-01 Kim F. Storm <storm@cua.dk>
16126
16127 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16128
161292008-03-01 Jason Rumney <jasonr@gnu.org>
16130
16131 * w32font.c (w32font_full_name): New function.
16132 (w32font_open_internal): Use it.
16133
161342008-03-01 Kim F. Storm <storm@cua.dk>
16135
16136 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16137
161382008-03-01 Jason Rumney <jasonr@gnu.org>
16139
16140 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16141
161422008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16143
16144 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16145 xg_frame_resized when the event is for the edit widget.
16146
16147 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16148
16149 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16150 set_char_size.
16151 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16152 operations on widgets here. Just set frame size if needed.
16153 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16154 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16155 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16156 the whole frame.
16157 (xg_create_tool_bar): Move attachment of the tool bar to
16158 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16159 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16160
161612008-03-01 Jason Rumney <jasonr@gnu.org>
16162
16163 * w32fns.c (w32_msg_pump): Disable debug code.
16164
161652008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16166
16167 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16168
161692008-02-29 Chong Yidong <cyd@stupidchicken.com>
16170
16171 * xdisp.c (next_overlay_string): Don't set
16172 overlay_strings_at_end_processed_p if we're currently reading from
16173 a display string.
16174
161752008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16176
16177 * xdisp.c (get_overlay_strings_1): Fix typo.
16178
161792008-02-29 Chong Yidong <cyd@stupidchicken.com>
16180
16181 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16182
161832008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16184
16185 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16186
16187 * xdisp.c (display_mode_element): Cancel the previous change.
16188 (decode_mode_spec): Likewise.
16189 (handle_auto_composed_prop): Don't make composition if it->string
16190 is a string.
16191
161922008-02-27 Kim F. Storm <storm@cua.dk>
16193
16194 * lisp.h (GLYPH): Change type from int to struct with separate char
16195 and face_id members.
16196 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16197 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16198 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16199 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16200 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16201 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16202 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16203 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16204 handle new Lisp glyph code encoding, either an integer or a cons.
16205
16206 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16207 (GLYPH_ALIAS): Delete.
16208 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16209 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16210 (GLYPH_FROM_CHAR): Replace macro by ...
16211 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16212
16213 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16214 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16215 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16216 (GLYPH_INVALID_P): New macro.
16217 (spec_glyph_lookup_face): Update prototype.
16218
16219 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16220 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16221 new glyph code encoding.
16222 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16223 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16224
16225 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16226 Adapt to new glyph type and new glyph code encoding.
16227
16228 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16229
16230 * indent.c (current_column, current_column_1, Fmove_to_column)
16231 (compute_motion): Adapt to new glyph code encoding.
16232
16233 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16234
162352008-02-27 Chong Yidong <cyd@stupidchicken.com>
16236
16237 * process.c (wait_reading_process_output): Check for window
16238 changes caused by timers.
16239 Suggested by Johan Bockgård.
16240
162412008-02-27 Glenn Morris <rgm@gnu.org>
16242
16243 * emacs.c (USAGE1): Add `--disable-font-backend'.
16244
162452008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16246
16247 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16248 is made to the buffer.
16249
162502008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16251
16252 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16253 (face_at_string_position):
16254 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16255 (face_at_string_position):
16256 * xdisp.c (display_string, next_overlay_change):
16257 * buffer.h (overlays_at):
16258 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16259 Update callers.
16260
162612008-02-26 Chong Yidong <cyd@stupidchicken.com>
16262
16263 * editfns.c (Fformat): Doc fix.
16264
162652008-02-26 Juanma Barranquero <lekktu@gmail.com>
16266
16267 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16268 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16269 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16270
162712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16272
16273 * buffer.c (Fbuffer_swap_text): New function.
16274 (syms_of_buffer): Defsubr it.
16275
162762008-02-25 Chong Yidong <cyd@stupidchicken.com>
16277
16278 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16279
162802008-02-25 Jason Rumney <jasonr@gnu.org>
16281
16282 * w32font.c (w32font_draw): Draw one character at a time when padding.
16283
162842008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16285
16286 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16287 Handle a nil arg. Use run_window_configuration_change_hook.
16288 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16289 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16290 Use run_window_configuration_change_hook.
16291
162922008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16293
16294 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16295 1-pixel width.
16296
162972008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16298
16299 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16300 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16301 if the glyph in the font is zero pixel with.
16302
16303 * dispextern.h (struct glyph_string): New member padding_p.
16304
16305 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16306
16307 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16308
16309 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16310
16311 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16312
16313 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16314
163152008-02-25 Jason Rumney <jasonr@gnu.org>
16316
16317 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16318
163192008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16320
16321 Allow fine-grained image-cache flushing.
16322 * dispextern.h (struct image): Add `dependencies' field.
16323 (clear_image_caches): Change arg to Lisp_Object.
16324 * image.c (make_image): Initialize `dependencies' field.
16325 (clear_image_cache): Change arg to allow fine-grained flushing.
16326 Perform the flush even if image-cache-eviction-delay is nil.
16327 (clear_image_caches): Change arg to Lisp_Object.
16328 (Fclear_image_cache): Expand meaning of the argument.
16329 (mark_image): Mark `dependencies' field.
16330 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16331 (lface_hash): Use XHASH rather than XFASTINT.
16332 (face_at_buffer_position): Fix int -> EMACS_INT position.
16333 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16334 (select_frame_for_redisplay): Remove code duplication.
16335 (redisplay_internal): Adapt arg to call to clear_image_caches.
16336
163372008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16338
16339 * s/vms4-0.h:
16340 * s/vms4-2.h:
16341 * s/vms4-4.h:
16342 * s/vms5-5.h: Remove, unused.
16343
16344 * s/irix5-2.h:
16345 * s/irix6-0.h:
16346 * s/riscos5.h:
16347 * s/mach-bsd4-3.h:
16348 * m/mips4.h: Remove files for obsolete systems.
16349
16350 * Makefile.in:
16351 * filelock.c:
16352 * unexmips.c:
16353 * m/hp9000s300.h:
16354 * m/iris4d.h:
16355 * s/aix3-1.h:
16356 * s/hpux.h:
16357 * s/msdos.h:
16358 * s/usg5-0.h:
16359 * s/usg5-2-2.h:
16360 * s/usg5-2.h:
16361 * s/usg5-3.h: Remove references to obsolete variables.
16362
16363 * s/irix5-0.h: Remove, move all the contents ...
16364 * s/irix6-5.h: ... here. Simplify.
16365 * config.in: Regenerate.
16366
163672008-02-24 Jason Rumney <jasonr@gnu.org>
16368
16369 * w32term.c (x_draw_glyph_string_background): Clear the background
16370 manually when cleartype is in use.
16371 (x_draw_glyph_string_foreground): Draw text transparently when
16372 cleartype is in use.
16373
16374 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16375 a font into it unless we have to.
16376
163772008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16378
16379 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16380 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16381
aac0c6e3
MR
163822008-02-18 Jason Rumney <jasonr@gnu.org>
16383
16384 * w32fns.c (Fw32_shell_execute): Encode parameters.
16385
163862008-02-09 Eli Zaretskii <eliz@gnu.org>
16387
16388 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16389
163902008-02-05 Juanma Barranquero <lekktu@gmail.com>
16391
16392 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16393
163942008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16395
16396 * xterm.c (x_set_offset): Don't change the gravity if
16397 CHANGE_GRAVITY is -1.
16398
163992008-02-23 Chong Yidong <cyd@stupidchicken.com>
16400
16401 * fileio.c (auto_save_error_occurred): New var.
16402 (auto_save_error): Set it.
16403 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16404 error occurred.
16405
164062008-02-23 Eli Zaretskii <eliz@gnu.org>
16407
16408 * w32.c (globals_of_w32): Add initializations for
16409 g_b_init_get_sid_sub_authority and
16410 g_b_init_get_sid_sub_authority_count.
16411
164122008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16413
16414 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16415 (font_parse_xlfd): Use them for sanity check.
16416 (Finternal_set_font_style_table): Make sure the table is bijective.
16417
16418 Consolidate the image_cache to the terminal struct.
16419 * termhooks.h (P_): Remove redundant def.
16420 (struct terminal): New field `image_cache'.
16421 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16422 of FRAME_X_IMAGE_CACHE.
16423 * xterm.h (struct x_display_info): Remove image_cache field.
16424 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16425 * w32term.h (struct w32_display_info): Remove image_cache field.
16426 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16427 * macterm.h (struct mac_display_info): Remove image_cache field.
16428 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16429 * xterm.c (x_term_init):
16430 * w32term.c (w32_term_init):
16431 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16432 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16433 Remove declarations.
16434 (clear_image_caches, mark_image_cache): New declarations.
16435 * xfaces.c (clear_face_cache):
16436 * xdisp.c (redisplay_internal): Use clear_image_caches.
16437 * image.c (clear_image_cache): Don't check that a frame is on
16438 a window-system before checking if it shares the same cache.
16439 (clear_image_caches): New function.
16440 (Fclear_image_cache): Use it.
16441 (mark_image): Move from allo.c.
16442 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16443 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16444 (mark_object): Don't call mark_image_cache for frames.
16445 (mark_terminals): Call mark_image_cache.
16446
16447 * lisp.h (Fdelete_terminal): Declare.
16448
16449 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16450 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16451 wrong_type_argument.
16452
164532008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16454
16455 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16456 malayalam.el, and tamil.el. Add sinhala.el.
16457
164582008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16459
16460 * xterm.c (x_connection_closed): Consolidate identical tests.
16461 (x_delete_terminal): Don't crash if called via x_connection_closed.
16462
164632008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16464
16465 * xdisp.c (decode_mode_spec): New arg string.
16466 (display_mode_element): Adjust for the above change.
16467
164682008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16469
16470 * callint.c (Fcall_interactively): Use AREF.
16471
164722008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16473
16474 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16475
164762008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16477
16478 * xfns.c (Fx_show_tip): Set string to " " if empty.
16479
164802008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16481
16482 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16483 with Qt.
16484
164852008-02-17 Kenichi Handa <handa@m17n.org>
16486
16487 * ftfont.c (ftfont_shape): Return Lispy number.
16488
16489 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16490 for GCs.
16491 (Finternal_set_font_selection_order): Call font_update_sort_order
16492 only when enable_font_backend is set.
16493 (realize_x_face): Set face->font_info to that of default face only
16494 when enable_font_backend is set.
16495
16496 * xdisp.c (handle_composition_prop): Set it->c to the fist
16497 character of the composed region.
16498 (fill_composite_glyph_string): Set base_face->font_info to
16499 s->font_info. Get a face for ascii from base_face->ascii_face.
16500 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16501 with a face already decided.
16502 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16503 non-negative.
16504 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16505 call font_prepare_composition unconditionally.
16506
16507 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16508
16509 * xterm.h (struct x_display_info): New member font.
16510
16511 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16512 (x_set_mouse_face_gc, x_new_font): Likewise.
16513 (x_term_init): Setup display_info->font.
16514 (x_delete_terminal): Free display_info->font.
16515
16516 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16517
16518 * ftxfont.c (ftxfont_default_fid): Delete it.
16519 (ftxfont_open): Set xfont->fid to 0.
16520 (ftxfont_end_for_frame): Clear data specific to the frame and the
16521 font-driver.
16522
16523 * xftfont.c (xftfont_default_fid): Delete it.
16524 (xftfont_open): Set xfont->fid to 0.
16525
16526 * fontset.c (FONTSET_OBJLIST): New macro.
16527 (fontset_find_font): Update font-object list of the fontset.
16528 (free_realized_fontset): New function.
16529 (free_face_fontset): Call free_realized_fontset.
16530 (Ffont_info): Call font_close_object only when enable_font_backend
16531 is set.
16532
16533 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16534 [HAVE_NTGUI]: Include w32term.h.
16535 [MAC_OS]: Include macterm.ch.
16536 (font_otf_ValueRecord): Use make_number.
16537 (font_finish_cache): Fix handling of reference count.
16538 (font_clear_cache): Update num_fonts.
16539 (font_open_entity): Update smallest_char_width and
16540 smallest_font_height of the frame.
16541 (font_close_object): Update num_fonts.
16542 (Fclear_font_cache): Fix finding the target cache data.
16543
165442008-02-16 Glenn Morris <rgm@gnu.org>
16545
16546 * fontset.c (Finternal_char_font): Fix compilation warning.
16547
165482008-02-16 Eli Zaretskii <eliz@gnu.org>
16549
16550 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16551 instead of char arrays. Enlarge the size of array passed to
16552 get_token_information.
16553
16554 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16555 warnings.
16556
165572008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16558
16559 * .gdbinit: Don't set `args', it breaks gdb --args.
16560
165612008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16562
16563 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16564 within a narrowed buffer.
16565
165662008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16567
16568 * coding.c (decode_coding_object, encode_coding_object):
16569 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16570
165712008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16572
16573 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16574 hardcoding 1.
16575 (detect_coding_system):
16576 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16577 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16578 * insdel.c (insert_from_gap):
16579 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16580 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16581 (string_to_multibyte):
16582 * character.c (chars_in_text, multibyte_chars_in_text):
16583 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16584
16585 * character.h (FETCH_STRING_CHAR_ADVANCE)
16586 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16587 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16588 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16589
16590 * casefiddle.c (casify_region): Only call after-change and composition
16591 functions on the part of the region that was changed.
16592
16593 * keyboard.c (read_avail_input):
16594 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16595
165962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16597
16598 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16599 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16600
166012008-02-11 Juanma Barranquero <lekktu@gmail.com>
16602
16603 * w32menu.c (push_submenu_start, push_submenu_end)
16604 (push_left_right_boundary, push_menu_pane, push_menu_item):
16605 * keyboard.c (read_key_sequence): Don't pass args with side effects
16606 to AREF, it fails when compiling with -DENABLE_CHECKING.
16607
166082008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16609
16610 * Makefile.in (${lispsource}international/charprop.el):
16611 Delete this target.
16612
16613 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16614 emacs-unicode-2.
16615
166162008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16617
16618 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16619
166202008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16621
16622 * frame.c (Qnoelisp): New symbol.
16623 (syms_of_frame): Initialize it.
16624 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16625 harmless Elisp code, from a strong `force' from x_connection_closed.
16626 * frame.h (Qnoelisp): Declare.
16627 * xterm.c (x_connection_closed): Pass `noelisp'.
16628
16629 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16630 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16631 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16632 rather than `int' for the type of `type'.
16633
166342008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16635
16636 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16637
16638 * Makefile.in (GNUC): Remove support for gcc-1.x.
16639
166402008-02-10 Richard Stallman <rms@gnu.org>
16641
16642 * lisp.h (ASET): Use AREF, not ASLOT.
16643
166442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16645
16646 * lisp.h (ASET): Check bounds.
16647
166482008-02-10 Glenn Morris <rgm@gnu.org>
16649
16650 * buffer.c (mode-name): Doc fix.
16651
166522008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16653
16654 * Makefile.in:
16655 * emacs.c:
16656 * gmalloc.c:
16657 * keyboard.c:
16658 * lisp.h:
16659 * m/ibm370aix.h:
16660 * process.c:
16661 * regex.c:
16662 * s/hpux.h:
16663 * sysdep.c:
16664 * sysselect.h:
16665 * systty.h:
16666 * unexec.c:
16667 * w32term.c:
16668 * xsmfns.c:
16669 * xterm.c: Remove code that deals with obsolete variables.
16670
16671 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16672
16673 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16674 nothing else needs it anymore.
16675
166762008-02-09 Eli Zaretskii <eliz@gnu.org>
16677
16678 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16679 instead of unibyte_char_to_multibyte.
16680
166812008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16682
16683 * s/gnu-linux.h: Remove commented out code.
16684
16685 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16686
16687 * Makefile.in: Update what RMS says about using autoconf.
16688 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16689 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16690 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16691 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16692
166932008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16694
16695 * keymap.c (Fkey_description): Move side effect outside of macro call.
16696
16697 * xfaces.c (Finternal_make_lisp_face):
16698 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16699
16700 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16701 (syms_of_fontset): Use ASET.
16702
16703 * fns.c (concat): Move side effect outside of macro call.
16704 (hash_clear): Use ASET.
16705
167062008-02-08 Richard Stallman <rms@gnu.org>
16707
16708 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16709 If FORCE, and frame has a surrogate minibuffer for another frame,
16710 delete the other frame first.
16711
167122008-02-07 Timo Savola <timo.savola@iki.fi>
16713
16714 * xterm.c (x_detect_focus_change): Handle embed client message.
16715 (handle_one_xevent): Ditto.
16716 (handle_one_xevent): If embedded and we get a button press/release,
16717 request focus.
16718 (xembed_set_info, xembed_send_message): New functions.
16719 (x_make_frame_visible): Call xembed_set_info if embedded.
16720 (x_make_frame_invisible): Call xembed_set_info if embedded.
16721 (x_term_init): Initialize Xatom_XEMBED.
16722 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16723 (x_iconify_frame): Ditto.
16724
16725 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16726 (enum xembed_info, enum xembed_message, enum xembed_focus)
16727 (enum xembed_modifier, enum xembed_accelerator): New.
16728 (xembed_set_info, xembed_send_message): Declare.
16729 (FRAME_X_EMBEDDED_P): New.
16730
16731 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16732 gtk_plug_new.
16733
16734 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16735 window ID of a frame.
16736 (x_window): Reparent frame if embedded.
16737 (Fx_create_frame): Don't set border width if embedded.
16738
16739 * emacs.c (USAGE3): Add --parent-id.
16740 (standard_args): Ditto.
16741
167422008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16743
16744 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16745
167462008-02-07 Jim Meyering <meyering@redhat.com>
16747
16748 Use "do...while (0)", not "if (1)...else" in macro definitions.
16749 The latter provokes a warning from gcc about the empty else, when
16750 followed by ";". Also, without that trailing semicolon, it would
16751 silently swallow up any following statement.
16752 * syntax.h (SETUP_SYNTAX_TABLE)
16753 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16754 * buffer.h (DECODE_POSITION): Likewise.
16755 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16756 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16757 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16758 (FETCH_CHAR_ADVANCE): Likewise.
16759 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16760
167612008-02-07 Jim Meyering <meyering@redhat.com>
16762
16763 * lread.c [lint]: Don't include <sys/inode.h>.
16764
167652008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16766
16767 * xselect.c (x_handle_dnd_message):
16768 * xmenu.c (digest_single_submenu, xmenu_show):
16769 * xdisp.c (with_echo_area_buffer_unwind_data)
16770 (format_mode_line_unwind_data, unwind_format_mode_line)
16771 (display_menu_bar):
16772 * eval.c (Ffetch_bytecode):
16773 * doc.c (store_function_docstring):
16774 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16775 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16776 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16777
167782008-02-07 Kenichi Handa <handa@m17n.org>
16779
16780 * ftxfont.c (ftxfont_open): Don't set
16781 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16782
16783 * ftfont.c (ftfont_open): Fix previous change.
16784
167852008-02-06 Jason Rumney <jasonr@gnu.org>
16786
16787 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16788 Use cached metrics for ASCII characters.
16789 (w32font_open_internal): Don't set font's owning_frame.
16790 Cache metrics for ASCII characters.
16791
16792 * w32font.h (struct w32font_info): Add ascii_metrics.
16793 Remove owning_frame.
16794
167952008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16796
16797 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16798 to negative value.
16799
16800 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16801
16802 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16803
16804 * charset.c (syms_of_charset): Set QCtest and Qeq.
16805
168062008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16807
16808 * process.c (Fstart_process):
16809 * callproc.c (Fcall_process): Handle the case where
16810 Funhandled_file_name_directory returns nil.
16811
16812 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16813 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16814 * font.c (check_gstring): Use them and AREF to access the vector before
16815 we know it's really a gstring.
16816 (Ffont_shape_text): Fix typo.
46e722a9 16817 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16818
16819 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16820 Declare.
16821
16822 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16823
168242008-02-05 Jason Rumney <jasonr@gnu.org>
16825
16826 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16827 Set smallest_font_height and smallest_char_width in display info.
16828
168292008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16830
16831 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16832
168332008-02-05 Miles Bader <miles@gnu.org>
16834
16835 * xfaces.c (get_lface_attributes, merge_named_face)
16836 (lookup_named_face, lookup_derived_face, realize_named_face):
16837 Revert 2008-02-01 change by cyd@stupidchicken.com.
16838
168392008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16840
16841 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16842 fallback fonts.
16843 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16844
168452008-02-04 Jason Rumney <jasonr@gnu.org>
16846
16847 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16848 set full_name.
16849 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16850
168512008-02-03 Jason Rumney <jasonr@gnu.org>
16852
16853 * makefile.w32-in (OBJ1): Include font.o here.
16854 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16855
168562008-02-02 Jason Rumney <jasonr@gnu.org>
16857
16858 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16859
168602008-02-01 Jason Rumney <jasonr@gnu.org>
16861
16862 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16863
16864 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16865
168662008-02-01 Andreas Schwab <schwab@suse.de>
16867
16868 * Makefile.in (shortlisp, lisp): Update for rename of
16869 ../lisp/language/myanmar.el.
16870
168712008-02-01 Chong Yidong <cyd@stupidchicken.com>
16872
16873 * xfaces.c (get_lface_attributes): Delete function.
16874 (merge_named_face, lookup_named_face, lookup_derived_face)
16875 (realize_named_face): Call lface_from_face_name directly, and use
16876 the fact that merge_face_vectors does not alter its FROM argument.
16877
168782008-02-01 Jason Rumney <jasonr@gnu.org>
16879
16880 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16881 input in the default locale. Handle non-Unicode multibyte input.
16882
168832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16884
16885 * fontset.c (reorder_font_vector): Exclude nil elements from the
16886 font group. Don't try multiple fonts.
16887 (fontset_font): Adjust for the above change.
16888 (Finternal_char_font): Return nil if the found font doesn't
16889 contain the character ch.
16890
16891 * Makefile.in (lisp, shortlisp): Add cham.el.
16892
168932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16894
16895 * font.h (FONTP): Make it return 1 also for a font-object.
16896
16897 * .gdbinit (xfontset): New function.
16898
16899 * font.c (font_find_for_lface): Check if the character C is
16900 supported or not only for the first font.
16901
16902 * fontset.c (reorder_font_vector): Fix typo.
16903 (fontset_find_font): Don't add a font-spec specifying a script.
16904 Use 0 (not Qt) for the indication of empty font-group. Change the
16905 format of RFONT-DEF. Return Qt if no font in the font-group
16906 support the character.
16907 (fontset_font): Adjust for the above change. If no font was
16908 found the character, remember that.
16909 (face_for_char): Adjust for the change of RFONT-DEF.
16910 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16911 no font for the target.
16912 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16913
169142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16915
16916 * font.c (font_load_for_face): Handle the case that the font in
16917 face->lface is a string.
16918
169192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16920
16921 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16922
169232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16924
16925 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16926 Fix previous change. If the frame is not on a window system,
16927 signal an error.
16928
169292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16930
16931 * coding.c (decode_coding_object, encode_coding_object): Adjust
16932 marker positions after conversion.
16933
16934 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16935
169362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16937
16938 * font.c (font_find_for_lface): Fix the handling of the return
16939 value of font_has_char.
16940 (Ffont_shape_text): Fix previous change.
16941
16942 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16943 (fontset_ref_and_range): Delete it.
16944 (fontset_find_font): Call char_table_ref_and_range instead of
16945 FONTSET_REF_AND_RANGE.
16946 (make_fontset): Don't setup font groups of Latin here.
16947 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16948 (new_fontset_from_font): Make the specified font the default for
16949 all Latin characters.
16950
169512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16952
16953 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16954 is on a window system before accessing the fontset of the frame.
16955
169562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16957
16958 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16959
16960 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16961 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16962
16963 * font.c (Ffont_shape_text): If the font driver doesn't have a
16964 shaper function, make zero-width glyphs to have at least one-pixel
16965 width. Fix setting of `to' field of glyphs.
16966
169672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16968
16969 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16970 glyphs.
16971
16972 * font.h (struct font_driver): Improve docstring of member `shape'.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * composite.c (syms_of_composite): Fix docstring of
16977 auto-composition-function.
16978
16979 * font.h (LGLYPH_SIZE): New macro.
16980
16981 * font.c (Ffont_fill_gstring): Stop filling when a character not
16982 supported by the font is found.
16983 (Ffont_shape_text): When a shape callback function returns nil,
16984 try at most two more times with larger gstring.
16985 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16986
16987 * xdisp.c (handle_auto_composed_prop): Change the argument to
16988 auto-composition-function.
16989
16990 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16991 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16992 Lispy glyph and store it in the lgstring.
16993
16994 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16995
16996 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16997
169982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16999
17000 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17001
17002 * fontset.c (Vfont_encoding_charset_alist): New variable.
17003 (syms_of_fontset): DEFVAR it.
17004 (reorder_font_vector, fontset_find_font): Optimize for the case of
17005 no need of reordering.
17006 (face_for_char): Map the charset property by
17007 Vfont_encoding_charset_alist.
17008
170092008-02-01 Jason Rumney <jasonr@gnu.org>
17010
17011 * w32font.c (logfonts_match): Don't check adstyle here.
17012 (font_matches_spec): Check here against physical font instead.
17013 (add_font_entity_to_list): Avoid some substitutions.
17014
17015 * font.c (font_parse_fcname): Default weight and slant to normal.
17016 (font_score): Prefer normal fonts if weight or slant unspecified.
17017 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17018 match freetype scores.
17019
170202008-02-01 Jason Rumney <jasonr@gnu.org>
17021
17022 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17023 font, as it may have been deleted.
17024 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17025 most common hyphenless variation.
17026 (logfonts_match): Check generic family.
17027 (font_matches_spec): Don't check generic family here.
17028 (fill_in_logfont): Set generic family based on adstyle.
17029
17030 * w32font.h (w32font_get_cache): Update declaration.
17031
170322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17033
17034 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17035
17036 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17037 If none of the new drivers are available, call font_update_drivers
17038 with the old drivers.
17039
17040 * w32font.c (w32font_get_cache): Adjust the argument type.
17041
17042 * xfont.c (xfont_get_cache): Adjust the argument type.
17043
17044 * font.h (struct font_driver): Change argument type of get_cache.
17045
17046 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17047
17048 * font.c (Ffont_get): Fix arguments to Fassoc.
17049 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17050 (font_clear_cache): New function.
17051 (font_list_entities, font_matching_entity): Use font_get_cache.
17052 (font_update_drivers): Call font_clear_cache when finishing a driver.
17053
17054 * fontset.c (fontset_find_font): Fix previous change.
17055
170562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17057
17058 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17059 dpyinfo->font_table.
17060 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17061 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17062
17063 * font.c (font_at): Handle the case that the arg C is negative.
17064 Handle the unibyte case.
17065 (Ffont_at): Call font_at with the arg C -1.
17066
17067 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17068 the position here, and call font_at with the arg C -1.
17069 Don't check the range of the existing composition at the point.
17070
170712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17072
17073 * fontset.c (fontset_add): New args charset_id and family.
17074 Change caller.
17075 (load_font_get_repertory, fontset_find_font): Assume that
17076 font_spec is always a font-spec object.
17077 (Fset_fontset_font): Always store a font-spec object in a fontset.
17078
17079 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17080 instead of get_property_and_range.
17081
170822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17083
17084 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17085 (xftfont_open): Don't keep locking face.
17086 (xftfont_close): Don't unlock face.
17087 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17088
17089 * fontset.c (fontset_find_font): Don't prefer a font of
17090 supplementary charset.
17091
170922008-02-01 Kenichi Handa <handa@m17n.org>
17093
17094 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17095 script, langsys_tag to langsys, new member script.
17096 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17097 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17098 listing to the script specified in that property. Fix arg to
17099 OTF_check_features.
17100
171012008-02-01 Jason Rumney <jasonr@gnu.org>
17102
17103 * w32font.h: New file.
17104
17105 * w32font.c: Include it.
17106 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17107 (w32font_open): Set owning_frame.
17108 (w32font_text_extents): Use owning_frame.
17109 (struct font_callback_data): Add opentype_only field.
17110 (add_font_entity_to_list): Use it to filter fonts.
17111 Don't check against full name.
17112 (w32font_list_internal): New function.
17113 (w32font_list): Use it.
17114 (w32font_match_internal): New function.
17115 (w32font_match): Use it.
17116 (w32font_open_internal): New function.
17117 (w32font_open): Use it.
17118 (w32font_get_cache, w32font_close, w32font_has_char)
17119 (w32font_encode_char, w32font_text_extents, w32font_draw):
17120 Make non-static.
17121
17122 * makefile.w32-in (w32font.o): Depend on w32font.h.
17123
171242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17125
17126 * charset.c (Fdefine_charset_internal): Record a supplementary
17127 charset at the tail of Vcharset_order_list.
17128
17129 * font.c (Ffont_shape_text): Fix the return value.
17130
17131 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17132
17133 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17134
171352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17136
17137 * ftfont.c (struct OpenTypeSpec): New struct.
17138 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17139 (ftfont_get_open_type_spec): New function.
17140 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17141
17142 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17143
171442008-02-01 Jason Rumney <jasonr@gnu.org>
17145
17146 * w32font.c (add_font_entity_to_list): Compare only the beginning
17147 of full name.
17148
171492008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17152 Never return HANDLED_RECOMPUTE_PROPS.
17153
171542008-02-01 Kenichi Handa <handa@m17n.org>
17155
17156 * font.c (font_gstring_produce): Delete it.
17157
17158 * composite.h (COMPOSITION_METHOD):
17159 Handle COMPOSITION_WITH_GLYPH_STRING.
17160
171612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17162
17163 * xfont.c (Qx): Delete.
17164 (syms_of_xfont): Don't initialize Qx.
17165
17166 * composite.h (enum composition_method):
17167 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17168
171692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17170
17171 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17172 (choose_face_font): Accept new form of font-spec.
17173
17174 * frame.h (font_driver_list): Declare it unconditionally.
17175 (struct frame): Define members font_driver_list and font_data_list
17176 unconditionally.
17177
17178 * fontset.c: Include "font.h" unconditionally.
17179 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17180 (Fset_fontset_font): Accept a font-spec object.
17181
17182 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17183 PIXEL_SIZE part a wild card.
17184
17185 * dispextern.h (struct glyph_string): Define members clip and
17186 num_clips unconditionally.
17187 (struct face): Define members font_info and extra unconditionally.
17188
17189 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17190 ftfont_info only when HAVE_LIBOTF is defined.
17191
171922008-02-01 Andreas Schwab <schwab@suse.de>
17193
17194 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17195 and end.
17196
171972008-02-01 Jason Rumney <jasonr@gnu.org>
17198
17199 * w32font.c (w32font_driver): Add new fields.
17200
172012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17202
17203 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17204 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17205 (LIBES): Add @M17N_FLT_CFLAGS@.
17206
17207 * composite.c (compose_text): Don't treat the new style
17208 composition specially.
17209
17210 * emacs.c (main): Call syms_of_font unconditionally.
17211
17212 * font.h (FONT_ENTITY_NOT_LOADABLE)
17213 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17214 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17215 (struct font_driver): New member shape.
17216 (font_registry_charsets): Extern it.
17217 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17218 (font_otf_capability, font_drive_otf): Delete their externs.
17219
17220 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17221 (font_charset_alist, font_registry_charsets): Move from xfont.c
17222 and rename.
17223 (font_prop_validate_otf): New function.
17224 (font_property_table): Register it for QCotf.
17225 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17226 (font_drive_otf): Delete.
17227 (font_prepare_composition): New arg F. Adjust for the change of
17228 lispy gstring.
17229 (font_find_for_lface): New arg C.
17230 (font_load_for_face): Adjust for the change of font_find_for_lface.
17231 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17232 lispy gstring.
17233 (Ffont_shape_text): New function.
17234 (Fopen_font): If the font size is not given, use 12-pixel.
17235 (Ffont_at): New arg STRING.
17236 (syms_of_font): Initalize font_charset_alist.
17237 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17238 conditionally.
17239
17240 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17241 fonts of the same font-spec. Change the format of RFONT-DEF.
17242 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17243 Adjust for the change of RFONT-DEF.
17244 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17245
17246 * ftfont.h: New file.
17247
17248 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17249 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17250 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17251 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17252 font_otf_capability and font_drive_otf, set ftfont_shape.
17253 (ftfont_list): Adjust for the change of :otf property value.
17254 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17255 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17256 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17257 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17258 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17259 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17260
17261 * w32term.c (x_draw_composite_glyph_string_foreground):
17262 Adjust for the change of lispy gstring.
17263
17264 * xdisp.c (handle_composition_prop): Adjust for the change of
17265 lispy gstring. Call a function for auto-composition with the
17266 third arg it->window.
17267 (fill_composite_glyph_string): Adjust for the change of lispy string.
17268 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17269
17270 * xfaces.c (set_font_frame_param): Adjust for the change of
17271 font_find_for_lface.
17272
17273 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17274 (xfont_registry_charsets): Likewise. Change caller.
17275 (syms_of_xfont): Don't handle x_font_charset_alist.
17276
17277 * xftfont.c: Include "ftfont.h".
17278 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17279 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17280 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17281 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17282 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17283 Set xftfont_driver.shape to xftfont_shape.
17284
17285 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17286 the change of lispy gstring.
17287
172882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17289
17290 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17291
172922008-02-01 Jason Rumney <jasonr@gnu.org>
17293
17294 * w32font.c (w32font_draw): Fill background manually.
17295
172962008-02-01 Jason Rumney <jasonr@gnu.org>
17297
17298 * font.c (Qfontp): Remove unused symbol.
17299 (QCantialias): New symbol.
17300 (syms_of_font): Define it.
17301 (font_property_table): Set a validator for QCantialias.
17302
17303 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17304 Define if not already.
17305 (QCfamily): Share with xfaces.c.
17306 (Qstandard, Qsubpixel, Qnatural): New symbols.
17307 (syms_of_w32font): Define them. Don't define QCfamily here.
17308 (w32_antialias_type, lispy_antialias_type): New functions.
17309 (w32_enumfont_pattern_entity): New arg requested_font.
17310 Set antialias parameter if non-default was requested.
17311 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17312
173132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17314
17315 * lread.c (read1): Undo the previous change.
17316
173172008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17318
17319 * frame.c (Fdelete_frame): Call font_update_drivers only when
17320 USE_FONT_BACKEND is defined.
17321
173222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17323
17324 * font.h (struct font_bitmap): New member bits_per_pixel.
17325 (struct font_driver): New members start_for_frame and end_for_frame.
17326 (struct font_data_list): New struct.
17327 (font_put_frame_data, font_get_frame_data): Extern them.
17328
17329 * frame.h (struct frame): New member font_data_list.
17330
17331 * font.c (font_update_drivers): Call driver->start_for_frame and
17332 driver->end_for_frame at proper timings.
17333 (font_put_frame_data, font_get_frame_data): New functions.
17334 (Ffont_spec): Add usage in the docstring.
17335
17336 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17337 (Fdelete_frame): Call font_update_drivers.
17338
17339 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17340 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17341 (xftfont_get_xft_draw): New function.
17342 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17343 (xftfont_end_for_frame): New function.
17344 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17345
17346 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17347 Change argument. Cache GCs in the per-frame data.
17348 (struct ftxfont_frame_data): New struct.
17349 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17350 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17351 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17352 (ftxfont_end_for_frame): New function.
17353 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17354
17355 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17356
173572008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * xselect.c (Vselection_coding_system)
17360 (Vnext_selection_coding_system): Delete them.
17361 (syms_of_xselect): Don't declare selection-coding-system and
17362 next-selection-coding-system. They are declared in select.el.
17363
173642008-02-01 Jason Rumney <jasonr@gnu.org>
17365
17366 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17367
17368 * w32fns.c: Include imm.h.
17369 (get_composition_string_fn, get_ime_context_fn): New optional
17370 system functions.
17371 (globals_of_w32fns): Load them from imm32.dll.
17372 (ignore_ime_char): New flag.
17373 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17374 WM_IME_ENDCOMPOSITION messages.
17375
17376 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17377 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17378
173792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17380
17381 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17382 (READCHAR_REPORT_MULTIBYTE): New macro.
17383 (readchar): New 2nd arg MULTIBYTE.
17384 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17385 Make symbol's name multibyte according to the multibyteness of the
17386 source.
17387
173882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17389
17390 * xfaces.c (face_for_overlay_string): Call lookup_face with
17391 correct arguments (fix of synching with the trunk).
17392
173932008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17396 (font_prop_validate_non_neg, font_prop_validate_spacing):
17397 Delete argument prop_index.
17398 (font_property_table): Change arguments to validater. Change Callers.
17399 (font_lispy_object): Delete.
17400 (font_at): Use font_find_object instead fo font_lispy_object.
17401
174022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17403
17404 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17405 and file names.
17406
174072008-02-01 Jason Rumney <jasonr@gnu.org>
17408
17409 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17410 (font_matches_spec): Remove debug output.
17411 (add_font_entity_to_list): Avoid using substituted fonts.
17412
174132008-02-01 Jason Rumney <jasonr@gnu.org>
17414
17415 * doc.c (Fsnarf_documentation):
17416 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17417
174182008-02-01 Miles Bader <miles@gnu.org>
17419
17420 * dispextern.h (struct glyph_row): Only define "clip" field if
17421 HAVE_WINDOW_SYSTEM is defined.
17422
174232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17424
17425 Fix up multi-tty merge.
17426
17427 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17428 and indentation.
17429
17430 * xfaces.c (free_realized_face, clear_face_gcs):
17431 Include font_done_for_face in the input_blocked section, just in case.
17432
17433 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17434 (get_char_face_and_encoding): Undo last change and remove the *other*
17435 duplicate definition (i.e. keep the one that's better scoped and that
17436 includes code for the font-backend).
17437
17438 * terminal.c (create_terminal): Default keyboard_coding to
17439 `no-conversion' and terminal_coding to `undecided'.
17440
17441 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17442
17443 * fontset.c (free_realized_fontsets): Check that the table entry does
17444 contain a fontset before trying to compare it to `base'.
17445
17446 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17447 syms_of_charset, and syms_of_coding earlier because init_window_once
17448 now needs Vcoding_system_hash_table to be setup.
17449
17450 * coding.h (default_buffer_file_coding): Remove.
17451
17452 * coding.c (default_buffer_file_coding): Remove.
17453 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17454 than ->symbol, and use the terminal-local coding system.
17455 (syms_of_coding): Don't setup the coding-systems that are not
17456 terminal-local.
17457 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17458
17459 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17460 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17461
17462 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17463 in chartab.c and were re-added here by mistake.
17464 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17465
17466 * doc.c (Fsnarf_documentation):
17467 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17468 src to etc.
17469
17470 * ChangeLog.10: Add mistakenly removed entry.
17471
174722008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17473
17474 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17475
174762008-02-01 Miles Bader <miles@gnu.org>
17477
17478 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17479 Add extra args to FACE_FOR_CHAR.
17480
174812008-02-01 Kenichi Handa <handa@m17n.org>
17482
17483 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17484 in sequence.
17485
17486 * chartab.c (map_sub_char_table, map_char_table): If the range
17487 contains just one character, call the function with that character
17488 even if the depth is not 3.
17489
174902008-02-01 Jason Rumney <jasonr@gnu.org>
17491
17492 * w32font.c (w32font_text_extents): Calculate metrics for the
17493 whole string.
17494
174952008-02-01 Jason Rumney <jasonr@gnu.org>
17496
17497 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17498
174992008-02-01 Jason Rumney <jasonr@gnu.org>
17500
17501 * w32term.c (x_set_glyph_string_clipping): Use
17502 get_glyph_string_clip_rects.
17503 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17504 Adjust for the change of struct glyph_string.
17505
17506 * w32font.c (w32font_draw): Do clipping here.
17507
175082008-02-01 Kenichi Handa <handa@m17n.org>
17509
17510 * xftfont.c (xftfont_draw): Adjust for the change of struct
17511 glyph_string.
17512
17513 * xterm.c (x_set_glyph_string_clipping): Use
17514 get_glyph_string_clip_rects.
17515 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17516 Adjust for the change of struct glyph_string.
17517
17518 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17519 the resulting clip(s}.
17520 (expose_overlaps): Add arg r. Change callers. Set it to
17521 row->clip temporarily.
17522 (expose_window): Redraw rows overlapping the exposed area.
17523
17524 * dispextern.h (struct glyph_row): New member clip.
17525 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17526 clip_height, new member clip, and num_clips.
17527
175282008-02-01 Kenichi Handa <handa@m17n.org>
17529
17530 * data.c (Fchar_or_string_p): Fix docstring.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17535 create a temporary XftDraw object.
17536
175372008-02-01 Kenichi Handa <handa@m17n.org>
17538
17539 * font.c (Ffontp): Fix docstring.
17540
17541 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17542 strong evidence of ISO-2022.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17547 SYNTAX_ENTRY_FOLLOW_PARENT.
17548
175492008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17550
17551 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17552 its type.
17553 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17554 Update to the new type of weak_hash_tables and next_weak.
17555
17556 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17557 a plain C pointer to Lisp_Hash_Table.
17558
17559 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17560 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17561 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17562 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17563 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17564 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17565 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17566 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17567 (GC_EQ): Remove since they've been identical to their non-GC_
17568 alter-egos ever since the markbit was eradicated.
17569
17570 * alloc.c:
17571 * buffer.c:
17572 * buffer.h:
17573 * data.c:
17574 * fileio.c:
17575 * filelock.c:
17576 * fns.c:
17577 * frame.h:
17578 * lisp.h:
17579 * macterm.c:
17580 * print.c:
17581 * process.c:
17582 * w32fns.c:
17583 * w32menu.c:
17584 * w32term.c:
17585 * xfns.c:
17586 * xmenu.c:
17587 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17588
175892008-02-01 Kenichi Handa <handa@m17n.org>
17590
17591 * chartab.c (map_sub_char_table): Make it work for the top-level
17592 char-table. Fix handling of parent char-table.
17593 (map_char_table): Adjust for the above change.
17594
175952008-02-01 Jason Rumney <jasonr@gnu.org>
17596
17597 * w32font.c (Qgdi): Rename from Qw32.
17598
175992008-02-01 Jason Rumney <jasonr@gnu.org>
17600
17601 * w32bdf.c (get_quoted_string): Make function static.
17602
176032008-02-01 Kenichi Handa <handa@m17n.org>
17604
17605 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17606 bigger ascent and descent than those of the font, use them as
17607 font's ascent and descent.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * Makefile.in (${lispsource}international/charprop.el): Move this
17612 target within "#ifdef HAVE_UNIDATA" and "#endif".
17613
176142008-02-01 Kenichi Handa <handa@m17n.org>
17615
17616 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17617 (shortlisp): Add ../lisp/language/tai-viet.el.
17618
176192008-02-01 Ulrich Mueller <ulm@gentoo.org>
17620
17621 * Makefile.in (${lispsource}international/charprop.el): Depend on
17622 temacs${EXEEXT}.
17623
176242008-02-01 Jason Rumney <jasonr@gnu.org>
17625
17626 * w32font.c (w32font_close): Delete the GDI font object.
17627
17628 * w32menu.c: Include character.h.
17629
17630 * w32proc.c: Likewise.
17631
17632 * w32select.c: Likewise.
17633
17634 * makefile.w32-in (w32proc.o): Depend on character.h.
17635
176362008-02-01 Jason Rumney <jasonr@gnu.org>
17637
17638 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17639
17640 * w32menu.c (syms_of_w32menu): Likewise.
17641
17642 * w32proc.c (syms_of_ntproc): Likewise.
17643
17644 * w32select.c (syms_of_w32select): Likewise.
17645
17646 * w32term.c (syms_of_w32term): Likewise.
17647
176482008-02-01 Jason Rumney <jasonr@gnu.org>
17649
17650 * w32font.c (w32font_draw): Delete brush after using it.
17651
176522008-02-01 Jason Rumney <jasonr@gnu.org>
17653
17654 * w32font.c (w32font_open): Don't set font_idx.
17655 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17656 to font settings.
17657 (w32font_draw): Fill background explicitly.
17658
176592008-02-01 Jason Rumney <jasonr@gnu.org>
17660
17661 * w32term.c (w32_initialize): Don't call w32font_initialize.
17662
17663 * w32font.c (w32font_info): Remove subranges.
17664 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17665 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17666 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17667 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17668 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17669 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17670 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17671 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17672 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17673 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17674 New symbols.
17675 (font_callback_data): New struct.
17676 (w32font_list, w32font_match): Use it.
17677 (w32font_open): Don't populate subranges.
17678 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17679 (w32font_encode_char): Always return unicode code-point as-is.
17680 (w32font_text_extents): Supply a transformation matrix to
17681 GetGlyphOutline. Never look up by glyph index. Avoid looping
17682 twice. Use unicode version of GetTexExtentPoint32 instead of
17683 glyph index version.
17684 (set_fonts_frame): Remove.
17685 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17686 set frame parameter. Use backward compatible fake foundries.
17687 Save generic family in extra slot under QCfamily. Make width slot
17688 constant. Save QCspacing value. Save list of scripts instead of
17689 binary subranges.
17690 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17691 (add_font_entity_to_list): Use font_callback_data struct. Filter
17692 unwanted fonts.
17693 (add_one_font_entity_to_list): Use font_callback_data struct.
17694 (w32_registry): Default to iso10646_1.
17695 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17696 string font registries. Don't fill in font name if it is a generic
17697 family name, fill family instead. Use spacing, family and script
17698 extra info to fill pitch, family and charset fields.
17699 (list_all_matching_fonts): Use font_callback_data struct.
17700 (unicode_range_for_char): Remove.
17701 (font_supported_scripts): New function.
17702 (w32font_initialize): Remove.
17703 (syms_of_w32font): Update which symbols are defined.
17704
177052008-02-01 Jason Rumney <jasonr@gnu.org>
17706
17707 * font.c (font_pixel_size): Reverse assq_no_quit args.
17708
17709 * w32term.h (FONT_WIDTH): Report max width, not average.
17710 (FONT_MAX_WIDTH): Remove.
17711 (FONT_AVG_WIDTH): New macro.
17712
17713 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17714 redefinition of FONT_WIDTH.
17715
17716 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17717 (w32_cache_char_metrics): Use FONT_WIDTH.
17718
17719 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17720
177212008-02-01 Jason Rumney <jasonr@gnu.org>
17722
17723 * w32font.c (w32font_open): Make lfHeight negative.
17724
17725 * w32fns.c (x_default_font_parameter): Use new style font name.
17726 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17727
177282008-02-01 Jason Rumney <jasonr@gnu.org>
17729
17730 * w32font.c (QCsubranges): New symbol.
17731 (w32font_open, w32font_has_char): Get subranges from subproperty
17732 of extra.
17733 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17734 (syms_of_w32font): Define :subranges symbol.
17735
17736 * font.c (font_put_extra): Expose externally.
17737
17738 * font.h (font_put_extra): Move declaration from font.c.
17739
17740 * font.c (Ffont_get): Use font driver to determine otf capability.
17741 (adjust_anchor): Check if driver defines anchor_point before using.
17742
17743 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17744 (w32font_draw): Use options.
17745 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17746 Fix detection of truetype fonts.
17747 (registry_to_w32_charset): Handle charsets other than iso8859-1
17748 expressed as lisp symbols.
17749 (w32_registry): Express charset as lisp symbol.
17750 (fill_in_logfont): Reverse pixel and point height logic.
17751 Don't set width here. Set quality to default.
17752
17753 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17754 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17755
17756 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17757 Remove redundant loop and allocation.
17758
17759 * makefile.w32-in (font.o, w32font.o): New objects.
17760 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17761 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17762
17763 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17764 STORE_XCHARB a valid l-value.
17765
17766 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17767 calculations for non-Truetype fonts.
17768 (x_draw_glyph_string): Sync with xterm.c.
17769 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17770 Remove redundant code.
17771 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17772
17773 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17774 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17775
17776 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17777 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17778
17779 * w32font.c: New file for w32 font backend.
17780
177812008-02-01 Kenichi Handa <handa@m17n.org>
17782
17783 * term.c: Don't include "buffer.h" twice.
17784
177852008-02-01 Kenichi Handa <handa@m17n.org>
17786
17787 * character.c (Funibyte_string): New function.
17788 (syms_of_character): Defsubr it.
17789
177902008-02-01 Jason Rumney <jasonr@gnu.org>
17791
17792 * w32term.c [USE_FONT_BACKEND]:
17793 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17794 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17795 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17796 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17797 (x_free_frame_resources): Sync with xterm.c.
17798
177992008-02-01 Andreas Schwab <schwab@suse.de>
17800
17801 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17802 char-table size.
17803
178042008-02-01 Kenichi Handa <handa@m17n.org>
17805
17806 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17807
178082008-02-01 Kenichi Handa <handa@m17n.org>
17809
17810 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17811 font_otf_gpos, add font_drive_otf.
17812
17813 * fontset.c (fontset_find_font): Pay attention to font size
17814 specified for a font.
17815 (reorder_font_vector): Check contents of font_def.
17816
17817 * font.c (struct otf_list): Delete it.
17818 (otf_list): Make it a lisp variable.
17819 (otf_open): Use lispy otf_list.
17820 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17821 (check_otf_features): New function.
17822 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17823 New functions.
17824 (font_drive_otf): New function merging font_otf_gsub and
17825 font_otf_gpos.
17826 (font_open_for_lface): New arg spec. Change argument order.
17827 (font_load_for_face): Adjust for the change of font_open_for_lface.
17828 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17829 Ffont_otf_gpos.
17830 (syms_of_font): Staticpro otf_list. Delete defsubr of
17831 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17832
17833 * xfaces.c (set_font_frame_param): Adjust for the change of
17834 font_open_for_lface.
17835
17836 * font.h (font_open_for_lface): Adjust prototype.
17837 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17838 member otf_drive.
17839 (font_otf_gsub, font_otf_gpos): Delete externs.
17840 (font_drive_otf): Extern it.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * font.c (font_at): If the window W is not on a window system,
17845 return Qnil.
17846
17847 * coding.c (produce_chars, encode_coding): Don't call
17848 insert_from_gap if no characters to produce.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17853 Fclear_face_cache.
17854
17855 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17856
178572008-02-01 Miles Bader <miles@gnu.org>
17858
17859 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17860 Parse "--disable-font-backend" option.
17861 (standard_args): Add "--disable-font-backend" option.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * fontset.c (fontset_find_font): New function.
17866 (fontset_font): Use fontset_find_font.
17867 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17868 Register the specified font for all Latin characters.
17869 (new_fontset_from_font): Register the specified font for all Latin
17870 characters.
17871 (dump_fontset): For a realized fontset, include the base fontset
17872 name in the returned vector.
17873
178742008-02-01 Kenichi Handa <handa@m17n.org>
17875
17876 * character.h (CHAR_STRING): Cast C to unsigned on calling
17877 char_string.
17878
17879 * character.c (char_string): Type of arg C changed to unsigned.
17880 Signal an error if C is an invalid character code.
17881
17882 * editfns.c (general_insert_function, Fchar_to_string):
17883 Use CHARACTERP, not INTEGERP.
17884
178852008-02-01 Kenichi Handa <handa@m17n.org>
17886
17887 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17888 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17889
17890 * regex.c (analyse_first): Fix for multibyte characters in "case
17891 charset:" and "case categoryspec:".
17892
178932008-02-01 Andreas Schwab <schwab@suse.de>
17894
17895 * Makefile.in (LIBES): Move standard libraries to the end.
17896
178972008-02-01 Kenichi Handa <handa@m17n.org>
17898
17899 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17900 nonzero, don't shrink the buffer nextb.
17901
17902 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17903
17904 * coding.c (coding_alloc_by_making_gap): New arg offset.
17905 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17906 offset.
17907 (decode_coding_iso_2022): Update coding->safe_charsets.
17908 (decode_coding_gap): Temporarily set
17909 current_buffer->text->inhibit_shrinking to 1.
17910
179112008-02-01 Kenichi Handa <handa@m17n.org>
17912
17913 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17914 indexing into elements of s->cmp and s->char2b.
17915
179162008-02-01 Juanma Barranquero <lekktu@gmail.com>
17917
17918 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17923 target_multibyte instead of multibyte.
17924 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17925 (bcmp_translate): Change the argument name from multibyte to
17926 target_multibyte.
17927
179282008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 These changes are to compile a regexp into a pattern that can be
17931 used both for multibyte and unibyte targets.
17932
17933 * Makefile.in (search.o): Depend on charset.h.
17934
17935 * character.c (multibyte_char_to_unibyte_safe): New function.
17936
17937 * search.c: Include "charset.h".
17938 (compile_pattern_1): Delete argument multibyte. Don't set
17939 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17940 (compile_pattern): Don't compare cp->buf.target_multibyte.
17941 Compare cp->buf.charset_unibyte.
17942 (compile_pattern): Set cp->buf.target_multibyte.
17943
17944 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17945
17946 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17947
17948 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17949 multibyte. Change callers.
17950 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17951 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17952 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17953 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17954 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17955 (regex_compile): Make the compiled pattern usable both for
17956 multibyte and unibyte targets.
17957 (analyse_first): Make the fastmap usable both for multibyte and
17958 unibyte targets.
17959 (TRANSLATE_VIA_MULTIBYTE): Delete.
17960 (re_match_2_internal): Pay attention to the case that the
17961 multibyteness of bufp and target may be different.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17966 empty box occupy at least one column width.
17967
179682008-02-01 Miles Bader <miles@gnu.org>
17969
17970 * Makefile.in: Remove redundant HAVE_XFT clause.
17971
179722008-02-01 Kenichi Handa <handa@m17n.org>
17973
17974 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17979 being nil.
17980
179812008-02-01 Kenichi Handa <handa@m17n.org>
17982
17983 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17984
179852008-02-01 Kenichi Handa <handa@m17n.org>
17986
17987 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * search.c (simple_search): Fix previous change.
17992
179932008-02-01 Kenichi Handa <handa@m17n.org>
17994
17995 * xftfont.c (ftfont_font_format): Extern declaration.
17996
17997 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17998
17999 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18000 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18001
18002 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18003 (ftfont_font_format): Fix previous change.
18004
18005 * font.h (Ffont_xlfd_name): EXFUN it.
18006
18007 * font.c (font_parse_xlfd): Fix the array size of `f'.
18008 (register_font_driver): Use EQ to compare driver->type.
18009
18010 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18011 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18012 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18013
180142008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18017 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18018
180192008-02-01 Kenichi Handa <handa@m17n.org>
18020
18021 * xfont.c (xfont_open): Set font->format.
18022
18023 * xftfont.c (xftfont_open): Set font->format.
18024
18025 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18026 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18027 (ftfont_open): Set font->format.
18028 (ftfont_font_format): New function.
18029
18030 * font.h (struct font): New member format.
18031
18032 * font.c (Qopentype): New variable.
18033 (syms_of_font): Defsym it.
18034 (Fquery_font): Change the format of the last element of the return
18035 value.
18036
180372008-02-01 Kenichi Handa <handa@m17n.org>
18038
18039 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18040 last resort.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * coding.c (detect_coding_charset): Fix detection of multi-byte
18045 charset.
18046
180472008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18048
18049 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18050
180512008-02-01 Kenichi Handa <handa@m17n.org>
18052
18053 * xdisp.c (get_next_display_element): Set it->face_id for the
18054 first component of a composition.
18055 (x_produce_glyphs): Check if the font is changed or not for composition.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * fontset.c (Qlatin): New variable.
18060 (syms_of_fontset): Define it as a lisp symbol.
18061 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18062
180632008-02-01 Kenichi Handa <handa@m17n.org>
18064
18065 * font.c (font_unparse_fcname): Pay attention to the case that
18066 some of font property is a null string.
18067
180682008-02-01 Kenichi Handa <handa@m17n.org>
18069
18070 * term.c: Include "composite.h".
18071 (encode_terminal_code): Output all components of composition.
18072 Check the size of encode_terminal_src.
18073 (produce_glyphs): For composition, call produce_composite_glyph.
18074 (append_composite_glyph, produce_composite_glyph): New functions.
18075
18076 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18077 is not found, get font_info from the current ascii face.
18078
180792008-02-01 Kenichi Handa <handa@m17n.org>
18080
18081 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18082 buffer-file-name to Qnil before calling insert_from_buffer.
18083
18084 * font.c (font_unparse_fcname): Pay attention to the case that
18085 foundry is a null string.
18086
180872008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18090
18091 * font.c (Qunicode_sip): New variable.
18092 (syms_of_font): Declare it as a Lisp symbol.
18093
18094 * font.h (Qunicode_sip): Extern it.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * composite.c (get_composition_id): Pay attention to TAB component.
18099
18100 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18101 TAB. Adjust for the change of s->char2b which always points to
18102 the first element of allocated memory.
18103
18104 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18105
18106 * xdisp.c (handle_composition_prop): Set it->c to the first
18107 non-TAB component.
18108 (fill_composite_glyph_string): Change argument.
18109 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18110 (x_produce_glyphs): Fix handling of left/right padding.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * coding.c (detect_coding_system): Fix for handling off
18115 inhibit_iso_escape_detection. Fix for the case that no coding
18116 system is defined for a specific coding category.
18117
181182008-02-01 Kenichi Handa <handa@m17n.org>
18119
18120 * font.c (font_matching_entity): Delete unused local var.
18121
18122 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18123 opening a font.
18124
18125 * fileio.c (Finsert_file_contents): On recovering a file, assume
18126 Unix-like eol.
18127 (choose_write_coding_system): On auto-saving a file, force
18128 Unix-like eol.
18129
18130 * coding.c (setup_coding_system): Fix setting of
18131 coding->common_flags based on eol_type.
18132 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18133 inherit from it.
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * alloc.c (NSTATICS): Increas to 0x600.
18138
181392008-02-01 Kenichi Handa <handa@m17n.org>
18140
18141 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18142 (ftfont_list): Don't check :name property.
18143 (ftfont_match): New function.
18144 (ftfont_pattern_entity): If the pattern doesn't contain
18145 FC_SPACING, don't assume FC_MONO.
18146
18147 * font.h (struct font_driver): New member `match'.
18148 (font_update_drivers): Adjust prototype.
18149
18150 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18151 property of FONT.
18152 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18153 them unconditionally.
18154 (font_matching_entity): New function.
18155 (font_open_by_name): Try font_matching_entity if exact match is
18156 not found.
18157 (font_update_drivers): Delete the arg FONT. Return a list of
18158 actually used backends. Don't free faces, font caches here.
18159 Don't store data in frame parameters. Don't call x_set_font.
18160 (Ffont_spec): Store :name property as is.
18161 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18162 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18163 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18164 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18165 Call font->driver->otf_gsub instead of font_otf_gsub.
18166
18167 * frame.c (x_set_font_backend): Do more works that were done in
18168 font_update_drivers before.
18169
18170 * xfont.c (xfont_match): New function.
18171 (xfont_driver): Set xfont_driver.match to xfont_match.
18172 (xfont_draw): Set font in GC if necessary.
18173
18174 * ftxfont.c (ftxfont_match): New function.
18175 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18176
18177 * xftfont.c (xftfont_match): New function.
18178 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18179
181802008-02-01 Kenichi Handa <handa@m17n.org>
18181
18182 * font.h (struct font): New member scalable.
18183 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18184 (font_otf_gsub): Adjust prototype.
18185
18186 * font.c (font_otf_capability): Fix handling of the default langsys.
18187 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18188 Check the contents of SPEC.
18189 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18190 (check_gstring): New function.
18191 (REPLACEMENT_CHARACTER): New macro.
18192 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18193 glyph codes of GSTRING.
18194 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18195 (font_prepare_composition): Set cmp->glyph_len.
18196 (font_open_entity): Set font->scalable.
18197 (Ffont_get): Handle :otf property.
18198 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18199 functions.
18200 (Fquery_font): Use font->font.full_name.
18201 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18202 Sfont_otf_alternates.
18203
18204 * ftfont.c (ftfont_open): Set font->font.full_name and
18205 font->font.name properly. Fix calculation of font->font.height
18206 and font->min_width.
18207
18208 * ftxfont.c (ftxfont_create_gcs): New function.
18209 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18210 (ftxfont_draw_backgrond): Fix filling region.
18211 (ftxfont_default_fid): New function.
18212 (ftxfont_open): Set xfont->fid to the return value of
18213 ftxfont_default_fid.
18214 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18215 (ftxfont_done_face): Free only GCs that are created by
18216 ftxfont_create_gcs.
18217 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18218
18219 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18220 Clip to src->width, etc (not src->clip_XXX).
18221
18222 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18223 FontBackend frame parameter.
18224
182252008-02-01 Kenichi Handa <handa@m17n.org>
18226
18227 * font.h (struct font_driver_list): New member `on'.
18228 (Fclear_font_cache): EXFUN it.
18229 (font_update_drivers): Extern it.
18230
18231 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18232 (font_list_entities): Check driver_list->on.
18233 (register_font_driver): Initalize `on' member to 0.
18234 (font_update_drivers): New function.
18235 (Fclear_font_cache): Check driver_list->on.
18236
18237 * frame.h (Qfont_backend): Extern it.
18238 (x_set_font_backend): Extern it.
18239
18240 * frame.c (Qfont_backend): New variable.
18241 (frame_parms): New element for font-backend.
18242 (x_set_font_backend): New function.
18243
18244 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18245 FontBackend frame parameter.
18246 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18247 x_set_font_backend.
18248
18249 * xfont.c (xfont_list): Don't try listing by :name property if the
18250 name is not for XLFD.
18251
182522008-02-01 Kenichi Handa <handa@m17n.org>
18253
18254 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18255 (LGLYPH_SET_TO): New macros.
18256 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18257 element of G is vector or not.
18258 (font_at): Extern it.
18259
18260 * font.c: Include window.h.
18261 (font_lispy_object): New function.
18262 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18263 end of valid glyph.
18264 (font_close_object): Fix getting (struct font *).
18265 (font_at): New function.
18266 (Ffont_get): If FONT is a font-object, get entity from it.
18267 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18268 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18269 range check.
18270 (Ffont_at): New function.
18271 (syms_of_font): Defsubr Sfont_at.
18272
18273 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18274 before the entry for Qcomposition.
18275 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18276 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18277 the font in gstring.
18278 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18279 LGLYPH_FORM (g) to detect the end of valid glyph.
18280 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18281 we are composing with gstring.
18282
18283 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18284 Check if adjustment is vector or not.
18285
18286 * Makefile.in (font.o): Make it depends on window.h.
18287
182882008-02-01 Kenichi Handa <handa@m17n.org>
18289
18290 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18291 adjustment is vector or not.
18292
182932008-02-01 Miles Bader <miles@gnu.org>
18294
18295 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18296
182972008-02-01 Kenichi Handa <handa@m17n.org>
18298
18299 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18300 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18301 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18302
18303 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18304 (DEVICE_DELTA): Fix typo.
18305 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18306 LGLYPH format.
18307
18308 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18309 the change of LGLYPH format.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 * ftfont.c (ftfont_list): Fix typo.
18314 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18315
183162008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18317
18318 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18319
18320 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18321 xftface_info is non-NULL.
18322
183232008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18324
18325 * ftfont.c (ftfont_list): Move misplaced #endif.
18326
183272008-02-01 Kenichi Handa <handa@m17n.org>
18328
18329 * ftfont.c (ftfont_list): Pay attention to the case that
18330 FC_CAPABILITY is not defined.
18331
183322008-02-01 Kenichi Handa <handa@m17n.org>
18333
18334 * xftfont.c (xftfont_open): Set charset related members to -1.
18335
18336 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18337 QCname.
18338 (ftfont_open): Set charset related members to -1.
18339
18340 * fontset.c (Votf_script_alist): New variable.
18341 (syms_of_fontset): Initialize it.
18342 (fontset_font): Delete unused variable.
18343
18344 * fontset.h (Votf_script_alist): Extern it.
18345
18346 * font.c (font_find_for_lface): Optimize code.
18347
18348 * font.h (font_close_object, font_merge_old_spec): Extern them.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18353 (syms_of_font): Initialize them.
18354 (font_pixel_size): Allow float value in dpi.
18355 (font_prop_validate_type): Delete.
18356 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18357 Change caller.
18358 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18359 (font_prop_validate_extra): Delete.
18360 (font_prop_validate_spacing): New function.
18361 (font_property_table): Add elements for all known properties.
18362 (get_font_prop_index): Rename from check_font_prop_name. New
18363 argument FROM. Change caller.
18364 (font_prop_validate): Validate all known properties.
18365 (font_put_extra): Delete argument force. Change caller.
18366 (font_expand_wildcards): Make it static. Fix the way of shrinking
18367 the possible range.
18368 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18369 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18370 Change caller.
18371 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18372 (font_parse_fcname): Delete argument merge. Fix parsing of point
18373 size. Don't validate properties values here. Change caller.
18374 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18375 (font_open_by_name): Delete unused variable.
18376 (Ffont_spec): Likewise. Validate property values.
18377 (Ffont_match_p): New function.
18378
18379 * font.h (QCscalable): Extern it.
18380 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18381
18382 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18383
18384 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18385 (xfont_list_pattern): New function.
18386 (xfont_list): Use xfont_list_pattern.
18387
183882008-02-01 Kenichi Handa <handa@m17n.org>
18389
18390 * font.h (Flist_fonts): EXFUN it.
18391
183922008-02-01 Jason Rumney <jasonr@gnu.org>
18393
18394 * w32term.c (w32_initialize): Add back smoothing_type and
18395 smoothing_enabled definitions.
18396
183972008-02-01 Kenichi Handa <handa@m17n.org>
18398
18399 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18400 s->face->font on determining underline position.
18401
184022008-02-01 Kenichi Handa <handa@m17n.org>
18403
18404 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18405 (font_has_char): Accept font-object too.
18406 (font_find_for_lface): Try at first with a size specified in face.
18407
184082008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18411 font_open_by_name.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * font.h (QCspacing, QCdpi): Extern them.
18416 (enum font_spacing): New enum.
18417 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18418
18419 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18420 (QCspacing, QCdpi): New variables.
18421 (syms_of_font): Initialize them.
18422 (font_pixel_size): New function.
18423 (font_put_extra): New function.
18424 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18425 in FONT_EXTRA.
18426 (font_parse_fcname): Handle enumerated values (e.g. bold).
18427 Fix handling font size. Add QCname property that contains only
18428 unknown properties.
18429 (font_score): Change argument. Change caller. Pay attention to
18430 FONT_PIXEL_SIZE_QUANTUM.
18431 (font_sort_entites, font_list_entities, font_find_for_lface)
18432 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18433 (Ffont_spec): Add QCname property that contains only unknown properties.
18434
18435 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18436 include weight in listing pattern, instead check weight of each
18437 listed font. Don't include scalable in pattern. Pay attention to
18438 FONT_PIXEL_SIZE_QUANTUM.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * font.c (font_parse_fcname): Fix parsing of point-size.
18443 (font_unparse_fcname): Produce symbolic names for style properties.
18444 (font_list_entities): Handle float size correctly.
18445 (font_open_by_name): Prefer `normal' property values if the name
18446 doesn't specify them.
18447
18448 * fontset.c (Finternal_char_font): Use font_get_name, not
18449 Ffont_xlfd_name.
18450
18451 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18452 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18453 pattern. Don't force scalable.
18454
18455 * xftfont.c (xftfont_open): For generating a name, start from
18456 96-byte buffer.
18457
184582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18459
18460 * frame.h (x_new_fontset2): Fix prototype.
18461
184622008-02-01 Kenichi Handa <handa@m17n.org>
18463
18464 * font.h (struct font_driver): Delete member parse_name.
18465 (font_match_p, font_get_spec, font_parse_fcname)
18466 (font_unparse_fcname): Extern them.
18467 (font_get_name): Adjust prototype.
18468
18469 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18470 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18471 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18472 unnecessary checks for weight, slant, and swidth.
18473 (font_parse_fcname): New function.
18474 (font_unparse_fcname): New function.
18475 (font_parse_name): New function.
18476 (font_match_p): New function.
18477 (font_get_name): Change return value to Lisp string.
18478 (font_get_spec): New function.
18479 (Qunspecified, Qignore_defface): Don't extern them.
18480 (font_find_for_lface): Assume that LFACE is fully specified.
18481 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18482 object, use it for FACE.
18483 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18484 driver->parse_name.
18485 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18486
18487 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18488 prototype.
18489
18490 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18491 argument F. Don't call Fnew_fontset. Instead, directly call
18492 make_fontset.
18493
18494 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18495
18496 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18497 of x_new_fontset2.
18498
18499 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18500 (Qsans__serif): New variables.
18501 (ftfont_generic_family_list): New variable.
18502 (syms_of_ftfont): Initialize the above variables.
18503 (ftfont_pattern_entity): Delete argument NAME.
18504 (ftfont_list_generic_family): New function.
18505 (ftfont_parse_name): Delete this function.
18506 (ftfont_list): Try generic family only when FcFontList found no font.
18507 (ftfont_list_family): Fix args to FcObjectSetBuild.
18508
18509 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18510 object in attrs[LFACE_FONT_INDEX].
18511 (set_lface_from_font_name): Cancel all changes for font-backend.
18512 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18513 function.
18514 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18515 font object in QCfont attribute.
18516 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18517 (realize_default_face) [USE_FONT_BACKEND]: Call
18518 set_lface_from_font_and_fontset.
18519
18520 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18521 "fixed", and signal error here if no suitable font was found.
18522
18523 * xfont.c (xfont_parse_name): Delete this function.
18524
18525 * xftfont.c (xftfont_open): Change coding style of error
18526 handling. Generate fontconfig's fontname pattern.
18527
18528 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18529 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18530
18531 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18532 Both args FONTSET and FONT_OBJECT must be existing ones.
18533
185342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18535
18536 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18537
185382008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18541
18542 * font.h (struct font): Fix typo.
18543
18544 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18545 XLFD_XXX_INDEX.
18546 (enum xlfd_field_mask): New enum.
18547 (intern_font_field): Changed argument. Change caller. If digits
18548 are followed by non-digits, return a symbol.
18549 (font_expand_wildcards): New function.
18550 (font_parse_xlfd): Fix wildcard handling.
18551 (Ffont_spec): If :name is specified, reflect the info in the other
18552 properties.
18553
18554 * ftfont.c (ftfont_pattern_entity): Fix typo.
18555 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18556 locale.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18561
18562 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18563 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18564 registry doesn't specify encoding part.
18565 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18566 (font_open_by_name): At first try parsing the name.
18567 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18568 as Lisp symbols.
18569
18570 * fontset.c (reorder_font_vector): Pay attention to the case that
18571 the 3rd element of font_def is nil.
18572 (fontset_font): For the default fontset, append one more fontset
18573 elements for a script-based font specification. Don't add script
18574 attribute on finding a font.
18575 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18576 font name.
18577 (fontset_ascii_font): If a font can't be opened, return nil.
18578
18579 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18580 (ftfont_pattern_entity): New function.
18581 (ftfont_get_cache): Assume that freetype_font_cache is already
18582 initialized.
18583 (ftfont_list): Handle the case that a file is specified in font
18584 name. Use ftfont_pattern_entity to generate entities.
18585 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18586 (syms_of_ftfont): Initialize freetype_font_cache.
18587
18588 * xftfont.c (xftfont_open): Make the font name fontconfig's
18589 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18590 (xftfont_close): Free font->font.name if not NULL.
18591
18592 * xfont.c (xfont_list): If script is specified for a font, return
18593 null_vector.
18594 (xfont_list_family): Declare argument type.
18595
18596 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18597 name, set LFACE_FONT (lface) to nil.
18598
18599 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18600 return Qnil.
18601
186022008-02-01 Kenichi Handa <handa@m17n.org>
18603
18604 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18605 (standard_args): Add "-enable-font-backend".
18606
186072008-02-01 Kenichi Handa <handa@m17n.org>
18608
18609 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18610 (struct xftdraw_list, xftdraw_list): Delete them.
18611 (register_xftdraw, check_xftdraw): Delete them.
18612 (xftfont_prepare_face): Don't call register_xftdraw.
18613 (xftfont_done_face): Don't call check_xftdraw.
18614 (xftfont_draw): Get background color only when with_background is
18615 nonzero.
18616
18617 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18618
186192008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 These changes are for the new font handling codes.
18622
18623 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18624 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18625 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18626 (FONTSRC, FONTOBJ): New variables.
18627 (obj): Add $(FONTOBJ).
18628 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18629 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18630 @LIBOTF_LIBS@.
18631 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18632 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18633
18634 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18635
18636 * character.h (Vscript_representative_chars): Extern it.
18637
18638 * character.c (Vscript_representative_chars): New variable.
18639 (syms_of_character): Declare it as a Lisp variable.
18640
18641 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18642 enable_font_backend is nonzero, accept the composition method
18643 COMPOSITION_WITH_GLYPH_STRING.
18644
18645 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18646 enumeration COMPOSITION_WITH_GLYPH_STRING.
18647
18648 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18649 members clip_x, clip_y, clip_width, and clip_height.
18650 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18651
18652 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18653 --enable-font-backend. Call syms_of_font.
18654
18655 * fns.c (assoc_no_quit): New function.
18656
18657 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18658 (face_for_font, new_fontset_from_font)
18659 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18660
18661 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18662 (fontset_font, fontset_ascii, face_for_char)
18663 (make_fontset_for_ascii_face, Ffont_info)
18664 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18665 is nonzero, use font-backend mechanism.
18666 (find_font_encoding): Make it non-static.
18667 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18668 New functions.
18669
18670 * frame.h (struct frame): New members resx and resy.
18671 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18672 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18673
18674 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18675 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18676
18677 * lisp.h (assoc_no_quit): Extern it.
18678
18679 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18680 Through out the file, use FONT_INFO_FROM_FACE instead of
18681 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18682 rif->per_char_metric.
18683 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18684 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18685 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18686 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18687 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18688 nonzero, use font-backend mechanism.
18689 (get_per_char_metric): New function.
18690
18691 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18692 (set_lface_from_font_name)
18693 (set_font_frame_param, free_realized_face)
18694 (prepare_face_for_display, clear_face_gcs)
18695 (Finternal_set_font_selection_order, realize_x_face)
18696 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18697 font-backend mechanism.
18698 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18699 (load_face_font) [USE_FONT_BACKEND]: Abort.
18700 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18701 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18702
18703 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18704 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18705 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18706 nonzero, register all available font drivers. Call
18707 x_default_font_parameter for deciding a font.
18708 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18709
18710 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18711 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18712 (x_set_glyph_string_clipping_exactly)
18713 (x_compute_glyph_string_overhangs)
18714 (x_draw_glyph_string_foreground)
18715 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18716 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18717 enable_font_backend is nonzero, use font-backend mechanism.
18718 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18719
187202008-02-01 Kenichi Handa <handa@m17n.org>
18721
18722 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18723 system_eol_type.
18724 (syms_of_coding): Initialize system_eol_type.
18725
18726 * process.c (Fset_process_coding_system): Inherit system's eol
18727 format if necessary.
18728
187292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18730
18731 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18732
187332008-02-01 Kenichi Handa <handa@m17n.org>
18734
18735 * coding.c (decode_eol): Pay attention to buffer relocation in
18736 del_range_2.
18737 (decode_coding): Call decode_eol before restoring undo_list.
18738
187392008-02-01 Kenichi Handa <handa@m17n.org>
18740
18741 * charset.c (Fdefine_charset_internal): Fix setting of
18742 emacs_mule_bytes.
18743
187442008-02-01 Kenichi Handa <handa@m17n.org>
18745
18746 * keyboard.c (read_char): Check if C is a character or not before
18747 looking up Vkeyboard_translate_table.
18748
187492008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18752 condition to terminate the loop.
18753
187542008-02-01 Kenichi Handa <handa@m17n.org>
18755
18756 * coding.c (produce_composition): Compare charbuf[i] instead of
18757 args[i] against 0.
18758 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18759
187602008-02-01 Kenichi Handa <handa@m17n.org>
18761
18762 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18763 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18764 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18765 detect_coding.
18766 (emacs_mule_char): Handle old style (Emacs 20) component character
18767 of a composition.
18768 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18769 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18770 composition rule.
18771 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18772
187732008-02-01 Kenichi Handa <handa@m17n.org>
18774
18775 * coding.c (encode_coding_ccl): Allocate destination dynamically
18776 when necessary.
18777
187782008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18781 the loop. When quitted, show a proper error message.
18782
187832008-02-01 Kenichi Handa <handa@m17n.org>
18784
18785 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18786 src->clip_head and src->clip_tail temporarily instead of src->hl.
18787
18788 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18789 character sequence.
18790 (Fccl_execute_on_string): Use ASET, not XSET.
18791
187922008-02-01 Kenichi Handa <handa@m17n.org>
18793
18794 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * coding.c (decode_coding): Fix the condition of terminating the
18799 decoding loop.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * data.c (Faset): On setting a character bigger than 255 in a
18804 unibyte string, signal an error instead of make the string multibyte.
18805
188062008-02-01 Kenichi Handa <handa@m17n.org>
18807
18808 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18809 made by a mapping table.
18810
188112008-02-01 Kenichi Handa <handa@m17n.org>
18812
18813 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18814 not.
18815 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18816 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18817
18818 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18819 s->face is NULL or not.
18820
188212008-02-01 Kenichi Handa <handa@m17n.org>
18822
18823 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18824 (x_draw_glyph_string): Fix drawing of right_overhang and
18825 left_overhang around/on cursor.
18826
18827 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18828
188292008-02-01 Kenichi Handa <handa@m17n.org>
18830
18831 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18832
188332008-02-01 Kenichi Handa <handa@m17n.org>
18834
18835 * coding.c (Fdefine_coding_system_internal)
18836 (Fdefine_coding_system_alias): Avoid a duplicated element in
18837 Vcoding_system_alist.
18838
188392008-02-01 Kenichi Handa <handa@m17n.org>
18840
18841 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18842
18843 * coding.c (Qcoding_system_define_form): New variable.
18844 (syms_of_coding): Intern and staticpro it.
18845 (Fcoding_system_p): Check Qcoding_system_define_form.
18846 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18847
18848 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18849 Fcoding_system_p.
18850 (CHECK_CODING_SYSTEM): If ID is not available, call
18851 Fcheck_coding_system.
18852 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18853 Try also Fcheck_coding_system.
18854
188552008-02-01 Kenichi Handa <handa@m17n.org>
18856
18857 * coding.c (code_conversion_restore): GCPRO arg.
18858
188592008-02-01 Kenichi Handa <handa@m17n.org>
18860
18861 * character.c (lisp_string_width): Check multibyteness of STRING.
18862
188632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18864
18865 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18866 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18867 (decode_mac_font_name): Use decode_coding_c_string instead of
18868 decode_coding.
18869 (x_load_font): Initialize fontp->fontset to -1. Set
18870 fontp->encoding_type.
18871
188722008-02-01 Kenichi Handa <handa@m17n.org>
18873
18874 * search.c (search_buffer): Give up BM search on case-fold-search
18875 if one of a target character has a case-equivalence of different
18876 byte length even if that target charcter is an ASCII.
18877 (simple_search): Fix calculation of byte length of matched text.
18878 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18879
188802008-02-01 Kenichi Handa <handa@m17n.org>
18881
18882 * coding.c (decode_coding): Fix handling of invalid bytes.
18883
188842008-02-01 Kenichi Handa <handa@m17n.org>
18885
18886 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18887 Unicode characters.
18888
188892008-02-01 Kenichi Handa <handa@m17n.org>
18890
18891 * coding.c (encode_coding_object): If a pre-write-conversion
18892 function makes a new buffer, kill it.
18893
188942008-02-01 Kenichi Handa <handa@m17n.org>
18895
18896 * coding.c (QCascii_compatible_p): New variable.
18897 (syms_of_coding): Initialize it.
18898 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18899 calling string_char.
18900 (record_conversion_result): Add `default:' case.
18901 (coding_charset_list): Delete unused variable `coding_type'.
18902 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18903 property in the plist of the coding system.
18904 (Fcoding_system_put): Check QCascii_compatible_p.
18905
189062008-02-01 Miles Bader <miles@gnu.org>
18907
18908 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18909 removed calculation of frame `f', as it's now used.
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18914 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18915 (UNIDATA): New variable.
18916 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18917 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18918 $(RUN_TEMACS) unconditionally.
18919
189202008-02-01 Kenichi Handa <handa@m17n.org>
18921
18922 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18923 (admindir): New variable.
18924 ($(lispsource)international/charprop.el): New target.
18925
189262008-02-01 Miles Bader <miles@gnu.org>
18927
18928 * character.c (chars-in-region): Remove obsolete function.
18929 (syms_of_character): Remove its initialization.
18930
189312008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18932
18933 * w32select.c (validate_coding_system)
18934 (setup_windows_coding_system): New functions.
18935 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18936 setup_windows_coding_system.
18937 (setup_config, Fw32_get_clipboard_data): Use
18938 validate_coding_system.
18939 (Fx_selection_exists): Move call to setup_config to a place
18940 where signals are allowed.
18941
18942 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18943 (Fcheck_coding_system): Add declarations.
18944
189452008-02-01 Kenichi Handa <handa@m17n.org>
18946
18947 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18948
189492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18950
18951 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18952 string as the second argument for x_new_fontset.
18953
189542008-02-01 Kenichi Handa <handa@m17n.org>
18955
18956 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18957 (encode_coding_object): Use safe_call instead of call2.
18958
189592008-02-01 Kenichi Handa <handa@m17n.org>
18960
18961 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18962
18963 * Makefile.in (lisp): Include charprop.el.
18964
189652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18966
18967 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18968 Not sure if it's unnecessary.
18969
189702008-02-01 Steven Tamm <steventamm@mac.com>
18971
18972 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18973 some possibly unnecessary fontset checking code that crashed
18974 when creating a new frame.
18975
189762008-02-01 Kenichi Handa <handa@m17n.org>
18977
18978 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18979 lookup_face.
18980
18981 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18982
18983 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18984
189852008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18988 (coding_charset_list): New function.
18989
18990 * coding.h (coding_charset_list): Extern it.
18991
189922008-02-01 Kenichi Handa <handa@m17n.org>
18993
18994 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18995 concatenation of family and registry.
18996
189972008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * character.h (BYTE8_STRING): Fix typo.
19000
19001 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19002 string to multibyte (sync to HEAD).
19003
19004 * casefiddle.c (casify_region): Handle changes in byte-length
19005 using replace_range_2 (sync to HEAD).
19006
190072008-02-01 Andreas Schwab <schwab@suse.de>
19008
19009 * chartab.c (map_char_table): GCPRO table and arg.
19010
190112008-02-01 Kenichi Handa <handa@m17n.org>
19012
19013 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19014 already at limit.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19019 instead of fast_c_string_match_ignore_case.
19020 (find_font_encoding): Change argument to Lisp_Object. Use
19021 fast_string_match_ignore_case instead of
19022 fast_c_string_match_ignore_case. Change caller.
19023
190242008-02-01 Kenichi Handa <handa@m17n.org>
19025
19026 * xdisp.c (get_next_display_element): In unibyte case, decide to
19027 display in octal form by checking a character by
19028 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19029
19030 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19031
19032 * character.c (unibyte_has_multibyte_table): New variable.
19033
19034 * character.h (unibyte_has_multibyte_table): Extern it.
19035 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19036
190372008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * coding.c (encode_coding_iso_2022): Fix handling of charset
19040 annotation.
19041
190422008-02-01 Kenichi Handa <handa@m17n.org>
19043
19044 * coding.c (setup_coding_system): If coding_system is nil, use
19045 Qundecided.
19046 (Fterminal_coding_system): Return nil if terminal coding system is
19047 `undecided'.
19048 (syms_of_coding): Define coding-system `undecided' here. Setup
19049 terminal_coding as `undecided'.
19050
190512008-02-01 Kenichi Handa <handa@m17n.org>
19052
19053 * xdisp.c (message_dolog, set_message_1): Call
19054 unibyte_char_to_multibyte with arg type int.
19055
19056 * lread.c (read1): Fix reading of a char-table.
19057
19058 * print.c (print_object): Include sub char-table in circularities
19059 detection.
19060
190612008-02-01 Kenichi Handa <handa@m17n.org>
19062
19063 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19064 Append the found sequences in car of ARGS instead of prepending.
19065
190662008-02-01 Kenichi Handa <handa@m17n.org>
19067
19068 * fileio.c (report_file_error): Make a unibyte string from
19069 strerror (errorno).
19070 (Fsubstitute_in_file_name): Fix the arg to
19071 unibyte_char_to_multibyte. It is evaluated twice.
19072
190732008-02-01 Kenichi Handa <handa@m17n.org>
19074
19075 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19076
190772008-02-01 Kenichi Handa <handa@m17n.org>
19078
19079 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19080 BOM is not found.
19081 (detect_coding, detect_coding_system): Optimization for ISO-2022
19082 when no 8-bit data is found.
19083
190842008-02-01 Jason Rumney <jasonr@gnu.org>
19085
19086 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19087
190882008-02-01 Kenichi Handa <handa@m17n.org>
19089
19090 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19091 CHARS.
19092
190932008-02-01 Steven Tamm <steventamm@mac.com>
19094
19095 * macterm.c (mac_encode_char): Add charset argument and update
19096 to use encoding_type.
19097 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19098 switch to pure fontset.
19099 (decode_mac_font_name): Temporarily remove decoding.
19100 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19101 (x_load_font): Temporarily remove encoding.
19102
191032008-02-01 Kenichi Handa <handa@m17n.org>
19104
19105 * xfaces.c (Fface_font): If frame is not on a window system,
19106 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19107 refer to face->font.
19108 (split_font_name_into_vector, build_font_name_from_vector)
19109 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19110 when HAVE_WINDOW_SYSTEM is defined.
19111
191122008-02-01 Kenichi Handa <handa@m17n.org>
19113
19114 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19115 (x_produce_glyphs): Fix setting of members of cmp in case
19116 cmp->glyph_len is zero.
19117
19118 * fontset.c (Fset_fontset_font): Fix docstring.
19119 (Ffontset_info): Make it backward compatible. New arg ALL.
19120
191212008-02-01 Kim F. Storm <storm@cua.dk>
19122
19123 * process.c (read_process_output): Grow decoding_buf when needed;
19124 this could cause a crash in allocate_string and compact_small_strings.
19125
191262008-02-01 Kenichi Handa <handa@m17n.org>
19127
19128 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19129
191302008-02-01 Kenichi Handa <handa@m17n.org>
19131
19132 * coding.c (setup_coding_system): Set coding->common_flags
19133 correctly for raw-text.
19134 (consume_chars): On encoding unibyte text by raw-text, don't check
19135 multibyte form.
19136 (encode_coding): On encoding by raw-text, never use translation tables.
19137
19138 * fileio.c (e_write): Short cut for the case of no encoding.
19139
191402008-02-01 Kenichi Handa <handa@m17n.org>
19141
19142 * coding.c (detect_coding, detect_coding_system): Delete unused
19143 variables.
19144
191452008-02-01 Kenichi Handa <handa@m17n.org>
19146
19147 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19148 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19149
191502008-02-01 Kenichi Handa <handa@m17n.org>
19151
19152 * coding.c (Ffind_coding_systems_region_internal): Include
19153 raw-text and no-conversion in the result.
19154
191552008-02-01 Kenichi Handa <handa@m17n.org>
19156
19157 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19158 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19159 FONT_DEF.
19160 (font_def_arg, add_arg, from_arg, to_arg): New args.
19161 (set_fontset_font): Change argument.
19162 (Fset_fontset_font): Fix for the case that TARGET is a script
19163 name and charset name.
19164 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19165
191662008-02-01 Kenichi Handa <handa@m17n.org>
19167
19168 * fontset.c (fontset_font): Rename from fontset_face. Change return
19169 value.
19170 (face_suitable_for_char_p, face_for_char): Adjust for the change
19171 of fontset_font.
19172 (make_fontset_for_ascii_face): Fix setting of the fontset element
19173 for ASCII.
19174 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19175 to get a font name.
19176 (Ffontset_info): Adjust for the change of fontset_font.
19177
19178 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19179
19180 * character.h (LEADING_CODE_LATIN_1_MIN)
19181 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 * editfns.c (check_translation): New function.
19186 (Ftranslate_region_internal): Handle M:N mapping.
19187
191882008-02-01 Kenichi Handa <handa@m17n.org>
19189
19190 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19191
191922008-02-01 Kenichi Handa <handa@m17n.org>
19193
19194 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19195 goto invalid_code.
19196 (decode_coding_iso_2022): Fix handling of invalid designation.
19197
19198 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19199 after calling code_conversion_save.
19200
192012008-02-01 Kenichi Handa <handa@m17n.org>
19202
19203 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19204
19205 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19206
19207 * fontset.c: Include "intervals.h".
19208 (fontset_face): Fix comparing of Lisp_Objects.
19209 (free_face_fontset, new_fontset_from_font_name): Fix
19210 Lisp_Object/int mixup.
19211
19212 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19213
19214 * coding.c: Add many prototypes for static functions.
19215 (get_translation_table): Allow max_lookup to be NULL.
19216 (decode_coding, Ffind_coding_systems_region_internal)
19217 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19218 get_translation_table with max_lookup NULL.
19219
192202008-02-01 Kenichi Handa <handa@m17n.org>
19221
19222 * coding.c (get_translation_table): Declare it as Lisp_Object.
19223 (LOOKUP_TRANSLATION_TABLE): New macro.
19224 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19225 instead of CHAR_TABLE_REF.
19226
192272008-02-01 Kenichi Handa <handa@m17n.org>
19228
19229 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19230 annotation data format.
19231 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19232 Change arguments FROM and TO to single argument NCHARS. Change caller.
19233 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19234 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19235 (decode_coding_ccl, decode_coding_charset): Pay attention to
19236 coding->charbuf_used.
19237 (get_translation): New function.
19238 (produce_chars): New arguments translation_table and last_block.
19239 Translate characters here. Return number of carryover chars.
19240 Change caller.
19241 (produce_composition): New argument pos. Change caller.
19242 Adjust for the change of annotation data format.
19243 (produce_charset, produce_annotation): Likewise.
19244 (decode_coding, encode_coding): Don't call translate_chars.
19245 (consume_chars): New arg translation_table. Change caller.
19246 (translate_chars): Delete.
19247 (syms_of_coding): Make translation-table's number of extra slots 2.
19248
192492008-02-01 Kenichi Handa <handa@m17n.org>
19250
19251 * search.c (simple_search): Fix setting this_pos_byte in backward
19252 search.
19253
19254 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19255 byte sequence.
19256 (detect_coding_ccl): Fix setting of the variable valids.
19257
192582008-02-01 Kenichi Handa <handa@m17n.org>
19259
19260 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19261
19262 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19263
19264 * editfns.c (Ftranslate_region_internal): Rename from
19265 Ftranslate_region. Accept a char-table in TABLE.
19266 (syms_of_editfns): Defsubr Stranslate_region_internal.
19267
19268 * xfaces.c (set_lface_from_font_name): If a font is specified for
19269 a frame, generate a fontset from the font.
19270 (build_scalable_font_name): If the scalable font is requested for
19271 a specific size, don't change that size.
19272 (try_font_list): Try a scalable font also in the case that a
19273 pattern string is specified.
19274
192752008-02-01 Kenichi Handa <handa@m17n.org>
19276
19277 * xfaces.c (Fface_font): New optional arg CHARACTER.
19278
192792008-02-01 Kenichi Handa <handa@m17n.org>
19280
19281 * charset.h (CHARSET_OFFSET): New macro.
19282
192832008-02-01 Kenichi Handa <handa@m17n.org>
19284
19285 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19286
19287 * fontset.c (fontset_face): Handle the case that repertory is a
19288 char-table.
19289 (find_font_encoding): Return nil for unknown encoding.
19290 (Fset_fontset_font): Ignore a font of unknown encoding.
19291
192922008-02-01 Kenichi Handa <handa@m17n.org>
19293
19294 * keymap.c (describe_vector): Handle default value of a char table.
19295
19296 * fontset.c (fontset_face): Handle fallback fonts correctly.
19297 (Ffontset_info): Return infomation about fallback fonts.
19298
192992008-02-01 Kenichi Handa <handa@m17n.org>
19300
19301 * fontset.c (FONTSET_DEFAULT): New macro.
19302 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19303 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19304 the case that it is nil.
19305 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19306 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19307
19308 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19309 subset or superset.
19310
193112008-02-01 Kenichi Handa <handa@m17n.org>
19312
19313 * emacs.c (main): Call init_charset after syms_of_XXX.
19314
19315 * charset.c (Vcharset_map_directory): Delete.
19316 (Vcharset_map_path): New variable.
19317 (load_charset_map_from_file): Use Vcharset_map_path instead.
19318 (init_charset): Initialize Vcharset_map_path.
19319 (syms_of_charset): Delete declaration of "charset-map-directory",
19320 add declaration of "charset-map-path".
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19325 ASCII only string.
19326
19327 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19328
19329 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19330 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19331
193322008-02-01 Kenichi Handa <handa@m17n.org>
19333
19334 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19335
19336 * coding.c (QCmnemonic, QCdefalut_char)
19337 (QCdecode_translation_table, QCencode_translation_table)
19338 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19339 (get_translation_table): Return a list of translation tables if
19340 necessary.
19341 (decode_coding): Call get_translation_table with ENCODEP 0.
19342 (char_encodable_p): If translation_table is non-nil, always call
19343 translate_char.
19344 (Fdefine_coding_system_internal): Accept list of translation
19345 tables as :encode-translation-table and :decode-translation-table.
19346 (Fcoding_system_put): New function.
19347 (syms_of_coding): Declare new symbols. Defsubr
19348 Scoding_system_put.
19349 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19350 typically JISX0212.
19351
19352 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19353 when the charset is superset type.
19354
19355 * character.c (translate_char): Accept list of translation tables.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19360 (CODING_ATTR_TRANS_TBL): New macro.
19361
19362 * coding.c (get_translation_table): New function.
19363 (translate_chars): Fix the bug of skipping annotation data.
19364 (decode_coding, encode_coding): Utilize get_translation_table.
19365 (char_encodable_p, Funencodable_char_position): Translate char if
19366 necessary.
19367 (Ffind_coding_systems_region_internal)
19368 (Fcheck_coding_systems_region): Setup translation table for encode
19369 in a coding system attribute vector in advance.
19370 (Fdefine_coding_system_internal): Allow a symbol as translation
19371 table. For shift-jis type coding system, allow 4th charset.
19372
193732008-02-01 Kenichi Handa <handa@m17n.org>
19374
19375 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19376
19377 * xdisp.c (get_next_display_element): Pass -1 as POS to
19378 FACE_FOR_CHAR if displaying a C-string.
19379
193802008-02-01 Kenichi Handa <handa@m17n.org>
19381
19382 * composite.c (get_composition_id): Handle xoff and yoff in a
19383 composition rule.
19384
19385 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19386 (struct composition): New member lbearing and rbearing.
19387
19388 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19389 (x_get_glyph_overhangs): Handle a composition glyph.
19390 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19391
19392 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19393 composition glyph.
19394
193952008-02-01 Kenichi Handa <handa@m17n.org>
19396
19397 * print.c: Include charset.h.
19398 (Vprint_charset_text_property): New variable.
19399 (Qdefault): Extern it.
19400 (PRINT_STRING_NON_CHARSET_FOUND)
19401 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19402 (print_check_string_result): New variable.
19403 (print_check_string_charset_prop): New function.
19404 (print_prune_charset_plist): New variable.
19405 (print_prune_string_charset): New function.
19406 (print_object): Call print_prune_string_charset if
19407 Vprint_charset_text_property is not t.
19408 (print_interval): Print nothing if interval->plist is nil.
19409 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19410 variable. Init and staticpro print_prune_charset_plist.
19411
194122008-02-01 Kenichi Handa <handa@m17n.org>
19413
19414 * fontset.c (new_fontset_from_font_name): Use the specified font
19415 for all characters in the new fontset.
19416
19417 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19418 OBJECT args.
19419
19420 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19421 OBJECT args for composition too.
19422
19423 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19424 OBJECT args.
19425
194262008-02-01 Kenichi Handa <handa@m17n.org>
19427
19428 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19429
19430 * fontset.c (reorder_font_vector): Adjust for the change of
19431 FONT_DEF format.
19432 (fontset_face): New arg id. Change caller.
19433 (face_for_char): New args pos and object.
19434 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19435 (fs_query_fontset): Check NAME by Fassoc too.
19436 (Fset_fontset_font): Allow non-XLFD font name.
19437 (Ffontset_info): Adjust for the change of FONT_DEF format.
19438
19439 * fontset.h (face_for_char): Adjust prototype.
19440
19441 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19442 (append_space, extend_face_to_end_of_line)
19443 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19444 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19445
19446 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19447 POS and OBJECT args.
19448
19449 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19450 POS and OBJECT args.
19451
194522008-02-01 Jason Rumney <jasonr@gnu.org>
19453
19454 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19455 of GlobalAlloc'ed memory.
19456
194572008-02-01 Kenichi Handa <handa@m17n.org>
19458
19459 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19460
19461 * charset.h (charset_table_used): Delete extern.
19462
19463 * charset.c (charset_table_used): Make it static.
19464 (map_charset_chars): Fix args to c_function with.
19465
19466 * chartab.c (map_sub_char_table_for_charset): Fix args to
19467 c_function with.
19468
19469 * coding.h (enum coding_result_code): Delete
19470 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19471
19472 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19473 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19474 (Vlast_code_conversion_error): New variables.
19475 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19476 (ONE_MORE_BYTE): Record error if any instead of signaling an
19477 error. If non-ASCII multibyte char is found, return the negative
19478 value of the code. All callers changed to check it.
19479 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19480 (record_conversion_result): New function. Change all codes setting
19481 coding->result to call this function.
19482 (detect_coding_utf_8, decode_coding_utf_8)
19483 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19484 Don't use the local variable incomplete.
19485 (emacs_mule_char): Change the second arg to `const'.
19486 (decode_coding): Fix of flushing out unprocessed data.
19487 (make_conversion_work_buffer): Fix making of a work buffer.
19488 (decode_coding_object): Return coding->dst_object.
19489
19490 * fontset.c (set_fontset_font): Fix args.
19491
19492 * lisp.h (CHARACTERBITS): Define as 22.
19493
19494 * process.c (send_process): Be sure to set coding->src_multibyte.
19495
19496 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19497
194982008-02-01 Kenichi Handa <handa@m17n.org>
19499
19500 * xdisp.c (handle_auto_composed_prop): Give limit to
19501 Fnext_single_char_property_change.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * composite.c (syms_of_composite): Don't make the composition hash
19506 table weak.
19507
19508 * fontset.c (Fset_fontset_font): Fix docstring.
19509
19510 * lisp.h (detect_coding_system): Adjust prototype.
19511
19512 * fileio.c (kill_workbuf_unwind): Delete this function.
19513 (Finsert_file_contents): Adjust the call of detect_coding_system.
19514 Get conversion_buffer by code_conversion_save. Use the macro
19515 CODING_MAY_REQUIRE_DECODING. After decoding, update
19516 coding_system.
19517
19518 * coding.h (make_conversion_work_buffer): Delete extern.
19519 (code_conversion_save): Extern it.
19520
19521 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19522 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19523 (decode_coding_utf_8): Don't do eol converion.
19524 (detect_coding_utf_16): Check coding->src_chars, not
19525 coding->src_bytes. Add heuristics for those that have no signature.
19526 (decode_coding_emacs_mule, decode_coding_iso_2022)
19527 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19528 Don't do eol converion.
19529 (adjust_coding_eol_type): Return a new coding system.
19530 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19531 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19532 each change.
19533 (decode_coding): Pay attention to undo_list. Do eol conversion for
19534 all types of coding-systems (if necessary).
19535 (Vcode_conversion_work_buf_list): Delete it.
19536 (Vcode_conversion_reused_workbuf): Rename from
19537 Vcode_conversion_reused_work_buf.
19538 (Vcode_conversion_workbuf_name): New variable.
19539 (reused_workbuf_in_use): New variable.
19540 (make_conversion_work_buffer): Delete the arg DEPTH.
19541 (code_conversion_restore): Change argument to cons.
19542 (code_conversion_save): Delete the argument BUFFER. Change callers.
19543 (detect_coding_system): New argument src_chars. Change callers.
19544 Fix for utf-16 detection.
19545 (init_coding_once): Don't use ISO_carriage_return.
19546 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19547 reused_workbuf_in_use.
19548
195492008-02-01 Kenichi Handa <handa@m17n.org>
19550
19551 * keymap.c (store_in_keymap): Pay attention to the case that idx
19552 is a cons specifying a character range.
19553
195542008-02-01 Kenichi Handa <handa@m17n.org>
19555
19556 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19557 HANDLED_RECOMPUTE_PROPS.
19558
19559 * coding.c (Fdefine_coding_system_internal): Fix checking of
19560 ascii compatibility.
19561
195622008-02-01 Kenichi Handa <handa@m17n.org>
19563
19564 * charset.c (find_charsets_in_text): Delete unused locale variable.
19565 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19566
19567 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19568 Resync charset_list to Vemacs_mule_charset_list.
19569
19570 * keymap.c (store_in_keymap): Pay attention to the case that idx
19571 is a cons specifying a character range.
19572
195732008-02-01 Kenichi Handa <handa@m17n.org>
19574
19575 * composite.c (update_compositions): Bind inhibit-read-only, etc
19576 to t before calling remove-list-of-text-properties.
19577
19578 * print.c (print_object): Always print ASCII chars as is.
19579
195802008-02-01 Kenichi Handa <handa@m17n.org>
19581
19582 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19583
19584 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19585 is a char table.
19586
195872008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19590
195912008-02-01 Kenichi Handa <handa@m17n.org>
19592
19593 * xfaces.c (set_lface_from_font_name): Fix for the case that
19594 FONTNAME is not fontset name.
19595
195962008-02-01 Kenichi Handa <handa@m17n.org>
19597
19598 * fns.c (base64_encode_1): Fix previous change.
19599
196002008-02-01 Kenichi Handa <handa@m17n.org>
19601
19602 * fontset.c (set_fontset_font): New function.
19603 (Fset_fontset_font): If a font is specified for a charset, use
19604 map_charset_chars to store the font spec in a fontset.
19605
196062008-02-01 Kenichi Handa <handa@m17n.org>
19607
19608 * fontset.c (fontset_face): Create a fallback fontset on demand.
19609 (make_fontset): Don't create a fallback fontset here.
19610 (free_face_fontset): Free a fallback fontset (if any) too.
19611 (n_auto_fontsets): Delete this variable.
19612 (auto_fontset_alist): New variable.
19613 (new_fontset_from_font_name): Check auto_fontset_alist.
19614 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19615 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19616 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19617 Defsubr Sfontset_list_all.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * editfns.c (Fgoto_char): Fix docstring.
19630
196312008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * insdel.c (insert_from_gap): Adjust intervals correctly.
19634
196352008-02-01 Jason Rumney <jasonr@gnu.org>
19636
19637 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19638 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19639 (w32_initialize): Try to load it.
19640 (x_get_font_repertory): Use it if available.
19641 (w32_encode_char): Add shortcut for unicode output.
19642
19643 * w32fns.c (w32_load_system_font): Default charset to -1.
19644 (x_to_w32_charset): Match all fonts for unicode.
19645 (w32_to_x_charset): New parameter matching. Don't return partial
19646 or wildcard charsets.
19647 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19648 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19649 (w32_to_x_font): Match charset to real charset.
19650 (enum_font_cb2): Always list unicode versions.
19651
19652 * makefile.w32-in (temacs): Increase EMHEAP.
19653
196542008-02-01 Jason Rumney <jasonr@gnu.org>
19655
19656 * w32term.c (w32_encode_char): New charset parameter.
19657 font_info.encoding becomes encoding_type.
19658 (x_get_font_repertory): New function. Warning: stub only!
19659 (x_new_font): Return quickly if font already set.
19660 (x_new_fontset): fontsetname parameter is Lisp_Object.
19661 Use new fs_query_fontset. Try new_fontset_from_font_name.
19662 Use fontset_name for return value.
19663
19664 * w32term.h: Declare x_get_font_repertory.
19665
19666 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19667 place of find_charset_in_text. Use encode_coding_object in place
19668 of encode_coding.
19669 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19670 decode_coding.
19671
19672 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19673 of x_new_fontset.
19674 (w32_load_system_font): Initialize charset as unicode.
19675 font_info.encoding becomes encoding_type.
19676 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19677 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19678 (syms_of_w32fns): Set get_font_repertory_func.
19679
19680 * w32console.c: Include character.h. Use terminal_encode_buffer
19681 from term.c.
19682 (write_glyphs): Use new version of encode_terminal_code. Use
19683 encode_coding_object in place of encode_coding.
19684
19685 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19686 encoding becomes encoding_type.
19687
19688 * term.c (terminal_encode_buffer): Make externally visible.
19689
19690 * makefile.w32-in: Add character.h dependancies.
19691 (character.o, chartab.o): New targets.
19692
196932008-02-01 Kenichi Handa <handa@m17n.org>
19694
19695 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19696 CODING_ID_EOL_TYPE.
19697
196982008-02-01 Andreas Schwab <schwab@suse.de>
19699
19700 * coding.c (produce_chars): Revert last change.
19701
197022008-02-01 Kenichi Handa <handa@m17n.org>
19703
19704 * charset.h (charset_unicode): Extern it.
19705
19706 * charset.c (string_xstring_p): Check by (C >= 0x100).
19707 (find_charsets_in_text): Change format of the arc CHARSETS. New
19708 arg MULTIBYTE.
19709 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19710 change of find_charsets_in_text.
19711 (Fsplit_char): Fix doc. Never return unknown.
19712
19713 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19714
19715 * coding.c (Fdefine_coding_system_alias): Update
19716 Vcoding_system_list.
19717
19718 * fontset.c (load_font_get_repertory): Pay attention to the case
19719 that ENCODING of a font is specified by a char-table.
19720
19721 * xterm.c (x_get_font_repertory): Handle the case that the
19722 encoding of font is other than Unicode.
19723
197242008-02-01 Kenichi Handa <handa@m17n.org>
19725
19726 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19727 if a character is encodable by the terminal coding system. If
19728 not, produces proper number of `?'s. Update
19729 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19730 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19731
197322008-02-01 Kenichi Handa <handa@m17n.org>
19733
19734 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19735 variables.
19736 (encode_terminal_code): Change argument. Encode multiple
19737 characters at once. Store the result of encoding in
19738 terminal_encode_buffer.
19739 (write_glyphs, insert_glyphs): Adjust for the change of
19740 encode_terminal_code.
19741 (term_init): Initialize terminal_encode_buffer and
19742 terminal_encode_buf_size.
19743
19744 * coding.c (consume_chars): If coding->src_object is nil, don't
19745 check annotation.
19746
197472008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * character.c (char_string): Use ASCII_CHAR_P instead of
19750 SINGLE_BYTE_CHAR_P.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * xdisp.c (handle_auto_composed_prop): Check if the last
19755 characters of auto-composed region is newly composed with the
19756 following characters.
19757 (handle_composition_prop): Fix checking of point being inside
19758 composition.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * fns.c (concat): Don't change multibyteness of the result by
19763 concatenating an 8-bit character.
19764
19765 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19766 multibyteness of the result when newelt is an 8-bit character.
19767
197682008-02-01 Dave Love <fx@gnu.org>
19769
19770 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19771 EMACS_INT.
19772
19773 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19774
19775 * xfaces.c (face_numeric_value): Declare dim size_t.
19776 (Finternal_lisp_face_equal_p): Remove unused f.
19777
19778 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19779 (MATRIX_ROW): Remove unused vars.
19780 (draw_glyphs, x_insert_glyphs, fast_find_position)
19781 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19782 byte/char counts.
19783
19784 * regex.c (regex_compile): Remove unused var.
19785
19786 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19787
19788 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19789 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19790
19791 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19792
19793 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19794
19795 * fileio.c (Fwrite_region): Remove unused var.
19796
19797 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19798 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19799
19800 * composite.c (Fremove_list_of_text_properties): Declare.
19801
19802 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19803 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19804 (coding_inherit_eol_type): Remove unused attrs.
19805 (detect_coding): Cast arg of detect_eol.
19806
19807 * charset.c (syms_of_charset): Remove unused var p.
19808 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19809 byte/char counts.
19810
19811 * casetab.c (set_case_table): Remove unused var.
19812
19813 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19814 unused vars.
19815
198162008-02-01 Dave Love <fx@gnu.org>
19817
19818 * xterm.c (x_bitmap_mask): Declare.
19819
198202008-02-01 Dave Love <fx@gnu.org>
19821
19822 * xterm.c (x_term_init): Fix type error.
19823
19824 * lisp.h: Add Funibyte_char_to_multibyte.
19825
19826 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19827 (Fset_coding_system_priority): Doc fix.
19828
19829 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19830
19831 * indent.c (check_composition): Make start and end EMACS_INT.
19832
19833 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19834
19835 * xdisp.c (handle_composition_prop, check_point_in_composition):
19836 Make buffer positions EMACS_INT.
19837
19838 * composite.c (find_composition, run_composition_function)
19839 (update_compositions, Ffind_composition_internal): Make buffer
19840 positions EMACS_INT.
19841
19842 * composite.h (find_composition, update_compositions): Make
19843 position args EMACS_INT.
19844
19845 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19846
19847 * intervals.c (get_property_and_range):
19848 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19849
19850 * unexalpha.c: Don't include varargs.h.
19851
198522008-02-01 Dave Love <fx@gnu.org>
19853
19854 * coding.h (ENCODE_UTF_8): New.
19855
19856 * Makefile.in (gtkutil.o): Depend on coding.h.
19857
19858 * coding.c (Fset_coding_system_priority): Doc fix.
19859
198602008-02-01 Kenichi Handa <handa@m17n.org>
19861
19862 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19863 the case of auto saving.
19864
198652008-02-01 Andreas Schwab <schwab@suse.de>
19866
19867 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19868 `range' from GC.
19869
198702008-02-01 Kenichi Handa <handa@m17n.org>
19871
19872 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19873
198742008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * fileio.c (choose_write_coding_system): Return a decided coding system.
19877 (Fwrite_region): Set Vlast_coding_system_used to the return value
19878 of choose_write_coding_system.
19879
198802008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * charset.c (Fset_charset_priority): Pay attention to duplicated
19883 arguments.
19884
19885 * coding.c (QCcategory): New variable.
19886 (syms_of_coding): Defsym it. Set all elements of
19887 Vcoding_category_table and their symbol values.
19888 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19889 coding-category-XXX, and coding-category-list.
19890 (Fdefine_coding_system_internal): Add category in the plist.
19891
198922008-02-01 Kenichi Handa <handa@m17n.org>
19893
19894 * callproc.c (Fcall_process): Handle carryover correctly.
19895
19896 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19897 (raw_text_coding_system): Check NILP (coding_system).
19898 (coding_inherit_eol_type): Check NILP (coding_system) and
19899 NILP (parent).
19900 (consume_chars): Fix for the case of raw-text.
19901
19902 * process.c (read_process_output): Handle carryover correctly.
19903
199042008-02-01 Dave Love <fx@gnu.org>
19905
19906 * regex.c (re_search_2): Fix last change.
19907
199082008-02-01 Kenichi Handa <handa@m17n.org>
19909
19910 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19911 target_multibyte. Even in a unibyte case, return a converted
19912 multibyte char.
19913 (GET_CHAR_AFTER): New macro.
19914 (PATFETCH): Translate via multibyte char.
19915 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19916 (SETUP_MULTIBYTE_RANGE): New macro.
19917 (regex_compile): Setup compiled code so that its multibyteness
19918 matches that of a target. Fix the handling of "[X-YZ]" using
19919 SETUP_MULTIBYTE_RANGE.
19920 (analyse_first) <charset>: For filling fastmap for all multibyte
19921 characters, don't check by BASE_LEADING_CODE_P.
19922 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19923 the same as RE_MULTIBYTE_P (bufp) now.
19924 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19925 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19926 (TRANSLATE_VIA_MULTIBYTE): New macro.
19927 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19928 It is the same as RE_MULTIBYTE_P (bufp) now.
19929 <exactn>: Translate via multibyte.
19930 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19931 translate it.
19932 <charset, charset_not>: Fetch a character by
19933 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19934 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19935 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19936 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19937 by GET_CHAR_AFTER.
19938 (bcmp_translate): Likewise.
19939
19940 * search.c (compile_pattern): Check the member target_multibyte,
19941 not the member multibyte of buf.
19942
19943 * lread.c (read1): While reading a string, set force_singlebyte
19944 and force_multibyte correctly.
19945
19946 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19947 up of unibyte_to_multibyte_table.
19948
199492008-02-01 Kenichi Handa <handa@m17n.org>
19950
19951 * coding.c (setup_coding_system): If coding has
19952 post-read-conversion or pre-write-conversion, set
19953 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19954 respectively.
19955 (decode_coding_gap): Run post-read-conversion if any.
19956
19957 * fileio.c (Finsert_file_contents): Even if we read into a
19958 unibyte buffer, check if we must decode the result or not.
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 * coding.c (make_conversion_work_buffer): Change the work buffer
19963 name to the same one as that of Emacs 21.
19964
199652008-02-01 Kenichi Handa <handa@m17n.org>
19966
19967 * coding.h (make_conversion_work_buffer): Adjust prototype.
19968 (code_conversion_restore): Don't extern it.
19969
19970 * coding.c (detected_mask): Delete unused variable.
19971 (decode_coding_iso_2022): Pay attention to the byte sequence of
19972 CTEXT extended segment, and retain those bytes as is.
19973 (decode_coding_ccl): Delete unused variable `valids'.
19974 (setup_coding_system): Delete unused variable `category'.
19975 (consume_chars): Delete unused variable `category'. Make it work
19976 for non-multibyte case.
19977 (make_conversion_work_buffer): Change argument.
19978 (saved_coding): Delete unused variable.
19979 (code_conversion_restore): Don't check saved_coding->destination.
19980 (code_conversion_save): New function.
19981 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19982 instead of record_unwind_protect.
19983 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19984 (detect_coding_system): Delete unused variable `mask'.
19985 (Fdefine_coding_system_internal): Delete unused variable id.
19986
19987 * fileio.c (kill_workbuf_unwind): New function.
19988 (Finsert_file_contents): On replacing, call
19989 make_conversion_work_buffer with correct args, and call
19990 record_unwind_protect with the first arg kill_workbuf_unwind.
19991
19992 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19993
199942008-02-01 Kenichi Handa <handa@m17n.org>
19995
19996 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19997 (fontset_add): Fix for the case that TO is less than TO1.
19998 (Ffontset_info): Don't use fallback fontset on checking the
19999 default fontset.
20000 (dump_fontset): New function for debugging.
20001
20002 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20003 coding_type is Qcharset.
20004
200052008-02-01 Kenichi Handa <handa@m17n.org>
20006
20007 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20008 (map_char_table): Don't inherit the value from the parent on
20009 initializing VAL. Adjust for the above change.
20010
200112008-02-01 Kenichi Handa <handa@m17n.org>
20012
20013 * coding.c (Qsignature, Qendian): Delete these variables.
20014 (syms_of_coding): Don't initialize them.
20015 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20016 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20017 detect_info->found.
20018 (decode_coding_utf_16): Don't detect BOM here.
20019 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20020 is NOT utf_16_without_bom.
20021 (setup_coding_system): For a coding system of type utf-16, check
20022 if the attribute :endian is Qbig or not (not nil or not), and set
20023 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20024 (detect_coding): If coding type is utf-16 and BOM detection is
20025 required, detect it.
20026 (Fdefine_coding_system_internal): For a coding system of type
20027 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20028
200292008-02-01 Kenichi Handa <handa@m17n.org>
20030
20031 * coding.c (coding_set_source): Fix for the case that the current
20032 buffer is different from coding->src_object.
20033 (decode_coding_object): Don't use the conversion work buffer if
20034 DST_OBJECT is a buffer.
20035
200362008-02-01 Dave Love <fx@gnu.org>
20037
20038 * lread.c (read_emacs_mule_char) [len==2]: Index
20039 emacs_mule_charset correctly.
20040
200412008-02-01 Dave Love <fx@gnu.org>
20042
20043 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20044 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20045 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20046 treated specially.)
20047 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20048 (detected_mask): Remove Big5 bits.
20049
200502008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 The following changes are to make the font rescaling facility
20053 compatible with Emacs 21.
20054
20055 * xfaces.c (Vface_font_rescale_alist): Rename from
20056 Vface_resizing_fonts.
20057 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20058 (font_rescale_ratio): Rename from font_resizing_ratio.
20059 (split_font_name): Set font->rescale_ratio.
20060 (better_font_p): Pay attention to font->rescale_ratio.
20061 (build_scalable_font_name): Likewise. Change RESX, and RESY
20062 fields.
20063 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20064
200652008-02-01 Kenichi Handa <handa@m17n.org>
20066
20067 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20068 (Qutf_16_le): Remove these variables.
20069 (syms_of_coding): Don't DEFSYM them.
20070 (decode_coding_utf_16): Fix handling of BOM.
20071 (encode_coding_utf_16): Fix handling of BOM.
20072
200732008-02-01 Kenichi Handa <handa@m17n.org>
20074
20075 * fileio.c (Finsert_file_contents): On replacing, before decoding
20076 the file into the work buffer, set point of the work buffer to the end.
20077
200782008-02-01 Dave Love <fx@gnu.org>
20079
20080 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20081
200822008-02-01 Dave Love <fx@gnu.org>
20083
20084 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20085 and fix C types.
20086
200872008-02-01 Kenichi Handa <handa@m17n.org>
20088
20089 * xdisp.c (SKIP_GLYPHS): New macro.
20090 (set_cursor_from_row): Pay attention to string display properties.
20091
20092 * category.c (copy_category_entry): Fix for the case that RANGE
20093 is an integer.
20094
20095 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20096
20097 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20098
200992008-02-01 Kenichi Handa <handa@m17n.org>
20100
20101 * charset.c (Fcharset_id_internal): New function.
20102 (syms_of_charset): Defsubr it.
20103
20104 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20105 with the last arg charset_list acquired from coding.
20106 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20107 the attribute coding_attr_ccl_valids.
20108
20109 * coding.h (enum define_coding_ccl_arg_index): Set the first
20110 member coding_arg_ccl_decoder to coding_arg_max.
20111
20112 * ccl.h (ccl_driver): Adjust prototype.
20113
20114 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20115 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20116 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20117 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20118 last arg Qnil.
20119
201202008-02-01 Kenichi Handa <handa@m17n.org>
20121
20122 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20123 call encode_char.
20124
20125 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20126
201272008-02-01 Dave Love <fx@gnu.org>
20128
20129 * composite.c (syms_of_composite): Make composition_hash_table weak.
20130
201312008-02-01 Kenichi Handa <handa@m17n.org>
20132
20133 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20134 (font_name_registry): Don't extern them.
20135 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20136
20137 * fontset.h (Qfontset): Don't extern it.
20138 (new_fontset_from_font_name): Extern it.
20139
20140 * fontset.c: Give 8 extra slots to fontset objects.
20141 (Qfontset_info): New variable.
20142 (syms_of_fontset): Defsym it.
20143 (FONTSET_FALLBACK): New macro.
20144 (fontset_face): Try also the default fontset.
20145 (make_fontset): Realize a fallback fontset from the default fontset.
20146 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20147 using split_font_name_into_vector and build_font_name_from_vector.
20148 (Fset_fontset_font): Access the elements of font_spec by enum
20149 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20150 name by using split_font_name_into_vector.
20151 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20152 generate a proper font name from the fontset name. Update
20153 Vfontset_alias_alist.
20154 (n_auto_fontsets): New variable.
20155 (new_fontset_from_font_name): New function.
20156 (Ffont_info): Store the information about fonts generated from the
20157 default fontset in the first extra slot of the returned char-table.
20158
20159 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20160 (font_name_registry): Delete function.
20161 (split_font_name_into_vector): New function.
20162 (build_font_name_from_vector): New function.
20163 (font_list): The argument REGISTRY is now a list of registry names.
20164 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20165 specifies an explicit font name, return the name as is. Make a
20166 list of registy names.
20167
20168 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20169 of x_new_fontset.
20170 (Fx_create_frame): Don't call x_new_fontset here. Just use
20171 x_list_fonts to check the existence of fonts.
20172
20173 * xterm.h (x_new_fontset): Adjust prototype.
20174
20175 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20176 string. Use new_fontset_from_font_name to create a fontset from a
20177 font name.
20178
201792008-02-01 Kenichi Handa <handa@m17n.org>
20180
20181 * syntax.c (Vfind_word_boundary_function_table): New name for
20182 Vnext_word_boundary_function_table.
20183 (find-word-boundary-function-table): New name for
20184 next-word-boundary-function-table.
20185
201862008-02-01 Dave Love <fx@gnu.org>
20187
20188 * Makefile.in: Fix some dependencies.
20189
20190 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20191 set it to nil before returning.
20192
20193 * composite.c (update_compositions): Fix type error.
20194
20195 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20196
201972008-02-01 Kenichi Handa <handa@m17n.org>
20198
20199 * xterm.c (x_new_font): Optimize for the case that the font is
20200 already set for the frame.
20201
202022008-02-01 Kenichi Handa <handa@m17n.org>
20203
20204 * chartab.c (char_table_ascii): Check if the char table contents
20205 is sub-char-table or not.
20206 (char_table_set, char_table_set_range): Fix argument to
20207 char_table_ascii.
20208
20209 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20210 (detect_coding_utf_8, detect_coding_utf_16)
20211 (detect_coding_emacs_mule, detect_coding_iso_2022)
20212 (detect_coding_sjis, detect_coding_big5)
20213 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20214 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20215 sequence is valid in this coding system. Change callers.
20216 (MAX_ANNOTATION_LENGTH): New macro.
20217 (ADD_ANNOTATION_DATA): New macro.
20218 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20219 ADD_ANNOTATION_DATA. Change the format of annotation data.
20220 (ADD_CHARSET_DATA): New macro.
20221 (emacs_mule_char): New argument ID. Change callers.
20222 (decode_coding_emacs_mule, decode_coding_iso_2022)
20223 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20224 Produce charset annotation data in coding->charbuf.
20225 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20226 to charset annotation data in coding->charbuf.
20227 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20228 coding->common_flags if the coding system is iso-2022 based and
20229 uses designation.
20230 (produce_composition): Adjust for the new annotation data format.
20231 (produce_charset): New function.
20232 (produce_annotation): Handle charset annotation.
20233 (handle_composition_annotation, handle_charset_annotation): New
20234 functions.
20235 (consume_chars): Handle charset annotation. Utilize the above two
20236 functions.
20237 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20238 buffer, get the deleted text as a string and set
20239 coding->src_object to that string.
20240 (detect_coding, detect_coding_system): Use the new struct
20241 coding_detection_info.
20242
20243 * coding.h (struct coding_detection_info): New structure.
20244 (struct coding_system): Adjust prototype of the member `detector'.
20245 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20246
202472008-02-01 Kenichi Handa <handa@m17n.org>
20248
20249 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20250
202512008-02-01 Dave Love <fx@gnu.org>
20252
20253 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20254 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20255 to new local and nullify apropos_accumulate before returning.
20256 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20257
202582008-02-01 Kenichi Handa <handa@m17n.org>
20259
20260 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20261 correctly.
e3eea1fc 20262
aac0c6e3
MR
202632008-02-01 Dave Love <fx@gnu.org>
20264
20265 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 The following changes are to make character composition happen
20270 automatically on displaying.
20271
20272 * Makefile.in (lisp, shortlisp): Add composite.elc.
20273
20274 * composite.h (Qauto_composed, Vauto_composition_function)
20275 (Qauto_composition_function): Extern them.
20276
20277 * composite.c (Vcomposition_function_table)
20278 (Qcomposition_function_table): Delete variables.
20279 (Qauto_composed, Vauto_composition_function)
20280 (Qauto_composition_function): New variables.
20281 (run_composition_function): Don't call
20282 compose-chars-after-function.
20283 (update_compositions): Clear `auto-composed' text property.
20284 (compose_chars_in_text): Delete this function.
20285 (syms_of_composite): Staticpro Qauto_composed and
20286 Qauto_composition_function. Declare Vauto_composition_function as
20287 a Lisp variable.
20288
20289 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20290
20291 * xdisp.c (it_props): Add an entry for Qauto_composed.
20292 (handle_auto_composed_prop): New function.
20293
20294 * xselect.c (selection_data_to_lisp_data): Don't call
20295 compose_chars_in_text.
20296
202972008-02-01 Dave Love <fx@gnu.org>
20298
20299 * keyboard.c (read_char): Modify checking around use of
20300 Vkeyboard_translate_table.
20301
20302 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20303 and fix C types.
20304
203052008-02-01 Kenichi Handa <handa@m17n.org>
20306
20307 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20308 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20309 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20310 the case that the last byte is '\r' correctly.
20311 (decode_coding): Flush out the unprocessed data correctly.
20312 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20313
203142008-02-01 Dave Love <fx@gnu.org>
20315
20316 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20317 Add XK_ISO... case.
20318 (xaw_scroll_callback): Revert last change.
20319
203202008-02-01 Kenichi Handa <handa@m17n.org>
20321
20322 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20323
203242008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * xfaces.c (Vface_resizing_fonts): New variable.
20327 (struct font_name): New member `resizing_ratio'.
20328 (font_resizing_ratio): New function.
20329 (split_font_name): Set font->resizing_ratio.
20330 (better_font_p): Pay attention to font->resizing_ratio.
20331 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20332 RESX, and RESY fields.
20333 (try_alternative_families): Try scalable fonts if
20334 Vscalable_fonts_allowed is not Qt.
20335 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20336
203372008-02-01 Dave Love <fx@gnu.org>
20338
20339 * xterm.c (xaw_scroll_callback): Cast correctly.
20340
203412008-02-01 Dave Love <fx@gnu.org>
20342
20343 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20344 (lispy_kana_keys): Comment out.
20345 (make_lispy_event) [XK_kana_A]: Comment out.
20346
20347 * xterm.c (xaw_scroll_callback): Cast call_data.
20348 (XTread_socket): Deal with ASCII keysyms.
20349 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20350
203512008-02-01 Dave Love <fx@gnu.org>
20352
20353 * xterm.c (Vx_keysym_table): New.
20354 (syms_of_xterm): Initialize it.
20355 (XTread_socket): Use it.
20356 From head: Eliminate incorrect optimization that tried to avoid
20357 decoding the output of X*LookupString.
20358 (x_get_font_repertory): Delete charset declaration.
20359
203602008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20363 return 0.
20364 (Fdefine_coding_system_internal): Setup
20365 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20366
203672008-02-01 Dave Love <fx@gnu.org>
20368
20369 * coding.c (Fcheck_coding_system): Doc fix.
20370
20371 * editfns.c (Finsert_byte): Return a proper value.
20372
203732008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * coding.c (decode_coding): Fix args to translate_chars. Pay
20376 attention to Vstandard_translation_table_for_decode.
20377 (encode_coding): Fix args to translate_chars. Pay attention to
20378 Vstandard_translation_table_for_encode.
20379
20380 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20381 SINGLE_BYTE_CHAR_P.
20382
20383 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20384 not by SINGLE_BYTE_CHAR_P.
20385
20386 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20387 SINGLE_BYTE_CHAR_P.
20388
20389 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20390 SINGLE_BYTE_CHAR_P.
20391
20392 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20393 by SINGLE_BYTE_CHAR_P.
20394
20395 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20396 SINGLE_BYTE_CHAR_P.
20397
203982008-02-01 Dave Love <fx@gnu.org>
20399
20400 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20401
204022008-02-01 Dave Love <fx@gnu.org>
20403
20404 * fns.c (Flanginfo): Fix typo.
20405
20406 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20407
204082008-02-01 Kenichi Handa <handa@m17n.org>
20409
20410 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20411 (detect_coding_emacs_mule, detect_coding_iso_2022)
20412 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20413 incomplete byte sequence. Don't update *mask when correctly detected.
20414 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20415 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20416 (detect_coding, detect_coding_system): Adjust for the changes above.
20417
204182008-02-01 Kenichi Handa <handa@m17n.org>
20419
20420 * character.c (char_string): Rename from
20421 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20422 (string_char): Rename from string_char.
20423
20424 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20425 if C is greater than MAX_3_BYTE_CHAR.
20426 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20427 string_char instead of string_char_with_unification.
20428
204292008-02-01 Dave Love <fx@gnu.org>
20430
20431 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20432
204332008-02-01 Kenichi Handa <handa@m17n.org>
20434
20435 * keymap.c (push_key_description): Pay attention to force_multibyte.
20436
20437 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20438
204392008-02-01 Dave Love <fx@gnu.org>
20440
20441 * charset.c (define_charset_internal): Rename `supprementary'.
20442
20443 * Makefile.in (lisp, shortlisp): Remove latin-N.
20444
204452008-02-01 Dave Love <fx@gnu.org>
20446
20447 * xfns.c (x_window, x_window): Use use_xim.
20448
20449 * xterm.c (use_xim): Initialize.
20450 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20451 (x_term_init): Maybe set use_xim.
20452
20453 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20454
204552008-02-01 Kenichi Handa <handa@m17n.org>
20456
20457 * search.c (search_buffer): Fix case-fold-search of multibyte
20458 characters.
20459 (boyer_moore): Rename the last argument to char_high_bits.
20460
204612008-02-01 Kenichi Handa <handa@m17n.org>
20462
20463 * xdisp.c (display_string): Fix for the case of zero width glyph.
20464
20465 * xfns.c (x_set_font): Change the error message of the case that
20466 x_new_fontset returns Qt.
20467
20468 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20469 (Finternal_set_lisp_face_attribute): Use signal_error for the
20470 error of invalid fontset.
20471
20472 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20473 fontset, return Qt.
20474
204752008-02-01 Dave Love <fx@gnu.org>
20476
20477 * unexelf.c (unexec): Make .got handling not SGI-specific.
20478
20479 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20480
20481 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20482
20483 * keyboard.c (read_key_sequence): Fix type error.
20484
20485 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20486 type error.
20487
20488 * fontset.c (fontset_add): Return Lisp_Object.
20489
204902008-02-01 Dave Love <fx@gnu.org>
20491
20492 * charset.h (charset_ordered_list_tick): Declare extern.
20493
204942008-02-01 Kenichi Handa <handa@m17n.org>
20495
20496 The following changes (and some of 2008-02-01 changes of mine) are
20497 for handling syntax, category, and case conversion for unibyte
20498 characters by converting them to multibyte on the fly. With these
20499 changes, we don't have to setup syntax and case tables for unibyte
20500 characters in each language environment.
20501
20502 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20503 multibyte if necessary.
20504
20505 * bytecode.c (Fbyte_code): Likewise.
20506
20507 * character.h (LEADING_CODE_LATIN_1_MIN)
20508 (LEADING_CODE_LATIN_1_MAX): New macros.
20509 (unibyte_to_multibyte_table): Extern it.
20510 (unibyte_char_to_multibyte): New macro.
20511 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20512 (CHAR_LEADING_CODE): New macro.
20513 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20514
20515 * character.c (unibyte_to_multibyte_table): New variable.
20516 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20517 (multibyte_char_to_unibyte): If C is an eight-bit character,
20518 convert it to the corresponding byte value.
20519
20520 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20521 not 1, signals an error. Update the elements of
20522 unibyte_to_multibyte_table.
20523 (init_charset_once): Initialize unibyte_to_multibyte_table.
20524 (syms_of_charset): Define the charset `iso-8859-1'.
20525
20526 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20527 as is without converting it to unibyte. In a unibyte buffer,
20528 convert C to multibyte before checking the syntax.
20529
20530 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20531
20532 * minibuf.c (Fminibuffer_complete_word): Use the macro
20533 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20534
20535 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20536
20537 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20538 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20539 that is zero, convert an eight-bit char to multibyte.
20540 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20541 non-emacs case.
20542 (PATFETCH): Convert an eight-bit char to multibyte.
20543 (HANDLE_UNIBYTE_RANGE): New macro.
20544 (regex_compile): Setup the compiled pattern for multibyte chars
20545 even if the given regex string is unibyte. Use PATFETCH_RAW
20546 instead of PATFETCH in many places. To handle `charset'
20547 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20548 only for ASCII chars.
20549 (analyse_first) <exactn>: Simplify because the compiled pattern
20550 is multibyte.
20551 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20552 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20553 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20554 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20555 multibyte always 1.
20556 (re_search_2): In emacs, set the locale variable multibyte to 1,
20557 otherwise to 0. New local variable target_multibyte. Check it
20558 to decide the multibyteness of STR1 and STR2. If
20559 target_multibyte is zero, convert unibyte chars to multibyte
20560 before translating and checking fastmap.
20561 (TARGET_CHAR_AND_LENGTH): New macro.
20562 (re_match_2_internal): In emacs, set the locale variable multibyte
20563 to 1, otherwise to 0. New local variable target_multibyte. Check
20564 it to decide the multibyteness of STR1 and STR2. Use
20565 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20566 <charset, charset_not>: If multibyte is nonzero, check fastmap
20567 only for ASCII chars. Call bcmp_translate with
20568 target_multibyte, not with multibyte.
20569 <begline>: Declare the local variable C as `unsigned'.
20570 (bcmp_translate): Change the last arg name to target_multibyte.
20571
20572 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20573 the regexp pattern and the matching target. Set cp->buf.multibyte
20574 to the multibyteness of the regexp pattern. Set
20575 cp->but.target_multibyte to the multibyteness of the matching target.
20576 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20577 FETCH_STRING_CHAR_ADVANCE.
20578 (Freplace_match): Convert unibyte chars to multibyte.
20579
20580 * syntax.c (char_quoted, back_comment, scan_words)
20581 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20582 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20583 unibyte chars to multibyte.
20584 (skip_chars): Delete the arg syntaxp, and move the code for
20585 handling syntaxes to skip_syntaxes. Change callers.
20586 Fix the case that the multibyteness of STRING and the current
20587 buffer doesn't match.
20588 (skip_syntaxes): New function.
20589 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20590 SINGLE_BYTE_CHAR_P.
20591
205922008-02-01 Kenichi Handa <handa@m17n.org>
20593
20594 * xfaces.c (QCfontset): New variable.
20595 (LFACE_FONTSET): New macro.
20596 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20597 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20598 (Finternal_set_lisp_face_attribute)
20599 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20600 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20601 check also LFACE_FONTSET_INDEX.
20602 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20603 attrs[LFACE_FONT_INDEX].
20604 (syms_of_xfaces): Intern and staticpro QCfontset.
20605
20606 * dispextern.h (enum lface_attribute_index): New member
20607 LFACE_FONTSET_INDEX.
20608
20609 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20610
206112008-02-01 Kenichi Handa <handa@m17n.org>
20612
20613 * coding.c (coding_set_destination): Fix coding->destination for
20614 the case converting a region.
20615 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20616 (encode_coding_object): Fix coding->dst_pos and
20617 coding->dst_pos_byte for the case converting a region.
20618
20619 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20620
20621 * character.h (BYTE8_STRING): New macro.
20622
20623 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20624
206252008-02-01 Kenichi Handa <handa@m17n.org>
20626
20627 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20628 characters by octal form.
20629
20630 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20631
20632 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20633 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20634 _fetch_multibyte_char_len.
20635 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20636
20637 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20638
20639 * casefiddle.c (casify_object): Simplify. Handle the case that
20640 the case conversion change the byte length.
20641 (casify_region): Likewise.
20642
20643 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20644
20645 * character.c (_fetch_multibyte_char_len): Delete this variable.
20646 (syms_of_character): Setup Vprintable_chars.
20647
20648 * editfns.c (Fchar_equal): Fix for the unibyte case.
20649 (Finsert_byte): New function.
20650 (syms_of_editfns): Defsubr it.
20651
20652 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20653 of direct code 0x3ffff.
20654
20655 * search.c (Freplace_match): Fix for the unibyte case.
20656
206572008-02-01 Kenichi Handa <handa@m17n.org>
20658
20659 * lread.c (safe_to_load_p): Fix the logic.
20660
20661 * syntax.c (scan_words): Don't treat characters belonging to
20662 different scripts as constituting a word.
20663
20664 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20665
20666 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20667
20668 * emacs.c (main): In the case of --unibyte, instead of aborting on
20669 finding non-empty buffer, make it unibyte.
20670
206712008-02-01 Kenichi Handa <handa@m17n.org>
20672
20673 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20674 to create a fontset.
20675
206762008-02-01 Dave Love <fx@gnu.org>
20677
20678 * character.c (Funibyte_char_to_multibyte): Doc fix.
20679
20680 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20681
206822008-02-01 Kenichi Handa <handa@m17n.org>
20683
20684 * fontset.c (fontset_add): Make the type `int'.
20685 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20686
20687 * character.c (unibyte_char_to_multibyte)
20688 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20689 charset_unibyte, not charset_primary.
20690
20691 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20692
20693 * charset.c (charset_unibyte): Rename from charset_primary.
20694 (Funibyte_charset): Rename from Fprimary_charset.
20695 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20696 (syms_of_charset): Adjust for the above changes.
20697
20698 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20699 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20700 it->multibyte_p is zero.
20701
20702 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20703 Delete extern.
20704
207052008-02-01 Kenichi Handa <handa@m17n.org>
20706
20707 * coding.c (Fdefine_coding_system_internal): Fix category setting
20708 for a coding system of type iso-2022.
20709
207102008-02-01 Kenichi Handa <handa@m17n.org>
20711
20712 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20713
207142008-02-01 Kenichi Handa <handa@m17n.org>
20715
20716 * syntax.c (Vnext_word_boundary_function_table): New variable.
20717 (next-word-boundary-function-table): Declare it as a Lisp variable
20718 in syms_of_syntax.
20719 (scan_words): Call functions in Vnext_word_boundary_function_table
20720 if any.
20721
20722 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20723
20724 * fontset.c (fs_load_font): If fontp->charset is not negative,
20725 return fontp without setting its members.
20726
207272008-02-01 Dave Love <fx@gnu.org>
20728
20729 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20730
20731 * m/sparc.h (HAVE_ALLOCA): Delete.
20732
20733 * s/irix6-5.h: Don't include strings.h.
20734 (bcopy, bzero, bcmp): Don't undef.
20735
20736 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20737
20738 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20739 (TIOCSIGSEND): Don't test IRIX6.
20740 (bcopy, bzero, bcmp): Define conditionally.
20741
207422008-02-01 Kenichi Handa <handa@m17n.org>
20743
20744 * buffer.c (Qas, Qmake, Qto): New variables.
20745 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20746 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20747
20748 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20749 we are inserting a process output into a multibyte buffer.
20750
20751 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20752 multibyte_char_to_unibyte.
20753
20754 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20755 by the primary charset, make it eight-bit char.
20756 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20757
20758 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20759 (charset_8_bit__control, charset_8_bit_graphic)
20760 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20761 (define_charset_internal): New function.
20762 (syms_of_charset): Call define_charset_internal for pre-defined
20763 charsets.
20764
20765 * charset.h (charset_8_bit): Extern it.
20766
20767 * coding.c (make_conversion_work_buffer): Adjust for the change
20768 of Fset_buffer_multibyte.
20769 (encode_coding_raw_text): Increment p0 in the loop.
20770
20771 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20772
20773 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20774 for the change of Fset_buffer_multibyte.
20775
20776 * fns.c (Fstring_to_multibyte): New function.
20777 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20778
207792008-02-01 Dave Love <fx@gnu.org>
20780
20781 * xfns.c (x_put_x_image): Declare args.
20782
20783 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20784 (try_font_list): Declare an arg.
20785
20786 * xdisp.c (message2_nolog, set_message): Declare an arg.
20787
20788 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20789
20790 * syntax.c (scan_sexps_forward): Declare an arg.
20791
20792 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20793 Declare an arg.
20794
20795 * lisp.h (Fnew_fontset): Declare.
20796
20797 * keymap.c (push_key_description): Call CHARACTERP correctly.
20798
20799 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20800 (face_for_char): Delete unused vars.
20801 (Fset_fontset_font): Doc fix. Delete unused vars.
20802
20803 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20804
20805 * composite.c (update_compositions): Declare arg.
20806
20807 * cm.c (calccost, cmgoto): Declare args.
20808
20809 * charset.c: Remove `emacs' conditional. Doc fixes.
20810 (map_char_table_for_charset): Declare.
20811
20812 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20813
20814 * ccl.c: Remove `emacs' conditional.
20815
208162008-02-01 Kenichi Handa <handa@m17n.org>
20817
20818 The following changes are to allow specifying multiple font
20819 patterns for a character range (specified by script or charset).
20820
20821 * Makefile.in (abbrev.o): Depend on syntax.h.
20822 (xfaces.o): Depend on charset.h.
20823
20824 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20825 SINGLE_BYTE_CHAR_P.
20826
20827 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20828
20829 * character.h (Vchar_script_table): Extern it.
20830
20831 * character.c (Vscript_alist): Delete.
20832 (Vchar_script_table, Qchar_script_table): New variable.
20833 (syms_of_character): Declare Vchar_script_table as a lisp variable
20834 and initialize it.
20835
20836 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20837 have property char-table-extra-slots, make no extra slot.
20838
20839 * dispextern.h (struct face): Delete member `charset'.
20840 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20841 SINGLE_BYTE_CHAR_P.
20842 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20843 Add prototypes.
20844 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20845 (generate_ascii_font_name): Rename from generate_ascii_font.
20846
20847 * fontset.h (get_font_repertory_func): New prototype.
20848 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20849 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20850
20851 * fontset.c (Qprepend, Qappend): New variables.
20852 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20853 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20854 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20855 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20856 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20857 (load_font_get_repertory): New functions.
20858 (fontset_set): Delete.
20859 (fontset_face): New arg FACE. Return face ID, not face.
20860 Complete re-write to handle new fontset structure. Change caller.
20861 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20862 (face_for_char): Don't call lookup_face.
20863 (make_fontset_for_ascii_face): New arg FACE.
20864 (fs_load_font): New arg CHARSET_ID. Don't check
20865 Vfont_encoding_alist here.
20866 (find_font_encoding): New function.
20867 (list_fontsets): Use STRINGP, not ! NILP.
20868 (accumulate_script_ranges): New function.
20869 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20870 re-written to handle new fontset structure.
20871 (Ffontset_font): Return a copy of element.
20872 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20873 docstring of font-encoding-alist.
20874
20875 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20876 (Fset_fotset_font): Fix arguments to 5.
20877
20878 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20879
20880 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20881 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20882 (highlight_trailing_whitespace): Adjust for the change of
20883 lookup_named_face.
20884
20885 * xfaces.c: Include charset.h.
20886 (load_face_font): Delete argument C. Change caller.
20887 (generate_ascii_font_name): Rename from generate_ascii_font.
20888 (font_name_registry): New function.
20889 (cache_face): Store ascii faces before non-ascii faces in buckets.
20890 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20891 Lookup only ascii faces.
20892 (lookup_non_ascii_face): New function.
20893 (lookup_named_face): Delete argument C. Change caller.
20894 (lookup_derived_face): Delete argument C. Change caller.
20895 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20896 a string, just call font_list with it.
20897 (choose_face_font): Delete arguments FACE and C. New arg
20898 FONT_SPEC. Change caller.
20899 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20900 Change caller.
20901 (realize_non_ascii_face): New function.
20902 (realize_x_face): Call load_face_font here.
20903 (realize_tty_face): Delete argument C. Change caller.
20904 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20905 get a face ID.
20906 (dump_realized_face): Don't print charset of FACE.
20907
20908 * xfns.c (x_set_font): Always call x_new_fontset and
20909 store_frame_parameter.
20910 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20911 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20912
20913 * xterm.h (x_get_font_repertory): Extern it.
20914
20915 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20916 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20917 it->multibyte_p is zero.
20918 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20919 (x_new_fontset): If FONTSETNAME doesn't match any existing
20920 fontsets, create a new one.
20921 (x_get_font_repertory): New function.
20922
209232008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * coding.c (Ffind_coding_systems_region_internal): Detect an
20926 ASCII only string correctly.
20927
20928 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20929 version is 0.
20930
209312008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 * lread.c: Include "coding.h".
20934 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20935 (load_each_byte, unread_char): New variables.
20936 (readchar_backlog): Delete.
20937 (readchar): Return a character unless load_each_byte is nonzero.
20938 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20939 cons. If unread_char is not -1, simply return it.
20940 (unreadchar): Handle the case that readcharfun is
20941 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20942 (read_multibyte): Delete.
20943 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20944 (read_emacs_mule_char): New functions.
20945 (Fload): Even if the file doesn't have the extension ".elc", if
20946 safe_to_load_p returns a positive version number, assume that the
20947 file contains bytecompiled code. If the version is less than 22,
20948 load the file while decoding multibyte sequences by emacs-mule.
20949 (readevalloop): Don't use readchar_backlog.
20950 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20951 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20952 (read_escape): Delete the arg BYTEREP.
20953 (read1): Set load_each_byte to 1 temporarily while handling
20954 #@NUMBER. Don't call read_multibyte.
20955 (read_vector): Call Fread with a cons. If readcharfun is
20956 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20957 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20958 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20959 and Qload_force_doc_strings.
20960
209612008-02-01 Kenichi Handa <handa@m17n.org>
20962
20963 * xdisp.c (face_before_or_after_it_pos): Call
20964 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20965
209662008-02-01 Kenichi Handa <handa@m17n.org>
20967
20968 * character.h (TRAILING_CODE_P): New macro.
20969 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20970 (string_char_with_unification): Fix prototype.
20971 (Vscript_alist): Extern it.
20972
20973 * character.c (Vscript_alist): New variable.
20974 (string_char_with_unification, str_as_unibyte)
20975 (string_escape_byte8): Add `const' to local variables.
20976 (syms_of_character): Declare script-alist as a Lisp variable.
20977
20978 * charset.h (Vcharset_ordered_list): Extern it.
20979 (charset_ordered_list_tick): Extern it.
20980 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20981 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20982 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20983 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20984 (Funify_charset): Adjust for the change of Funify_charset.
20985
20986 * charset.c (charset_ordered_list_tick): New variable.
20987 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20988 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20989 deunify intead of unify a charset.
20990 (string_xstring_p): Add `const' to local variables.
20991 (find_charsets_in_text): Add `const' to arguments and local variables.
20992 (encode_char): Adjust for the change of Funify_charset. Fix
20993 detecting of invalid code.
20994 (Fset_charset_priority): Increment charset_ordered_list_tick.
20995 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20996 and TO_CODE.
20997
20998 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20999 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21000 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21001 (decode_coding_ccl, consume_chars)
21002 (Ffind_coding_systems_region_internal)
21003 (Fcheck_coding_systems_region): Add `const' to local variables.
21004
21005 * print.c (print_object): Use octal form for printing the
21006 contents of a bool vector.
21007
210082008-02-01 Dave Love <fx@gnu.org>
21009
21010 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21011 <version == 20>: Refuse to load.
21012
210132008-02-01 Dave Love <fx@gnu.org>
21014
21015 * fns.c: Move coding.h.
21016 (Qcodeset, Qdays, Qmonths): New.
21017 (concat): Use CHARACTERP instead of INTEGERP.
21018 (Flocale_codeset): Delete.
21019 (Flanginfo): New function.
21020 (syms_of_fns): Change accordingly.
21021
21022 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21023
210242008-02-01 Dave Love <fx@gnu.org>
21025
21026 * casetab.c (init_casetab_once, init_casetab_once): Fix
21027 CHAR_TABLE_SET call.
21028
21029 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21030
21031 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21032
21033 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21034 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21035 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21036
21037 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21038
21039 * coding.c (ENCODE_DESIGNATION, decode_eol)
21040 (make_conversion_work_buffer, code_conversion_restore)
21041 (Fdefine_coding_system_internal): Convert Lisp types.
21042 (code_conversion_restore): Use EQ, not ==.
21043 (Fencode_coding_string): Fix code_convert_string call.
21044
21045 * coding.h (code_convert_region): Fix prototype.
21046
21047 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21048
21049 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21050 (Ffontset_info): Convert Lisp types.
21051
21052 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21053
21054 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21055
21056 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21057
21058 * chartab.c: Include "...h", not <...h> in some cases.
21059
21060 * callproc.c (Fcall_process): Remove unused variables.
21061
210622008-02-01 Dave Love <fx@gnu.org>
21063
21064 * coding.c (Fset_coding_system_priority): Allow null arg list.
21065
210662008-02-01 Dave Love <fx@gnu.org>
21067
21068 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21069 (Fself_insert_and_exit): Use CHARACTERP.
21070
21071 * callproc.c (Fcall_process): Remove unused vars.
21072
21073 * xterm.c (XTread_socket): Add extra dead keysyms.
21074
21075 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21076
21077 * dispextern.h: Remove prototypes for redraw_frame,
21078 redraw_garbaged_frames.
21079
21080 * cmds.c (Fself_insert_command): Use CHARACTERP.
21081
21082 * chartab.c (make_sub_char_table): Remove unused var.
21083 (Fset_char_table_default, Fmap_char_table): Doc fix.
21084
21085 * keymap.c (access_keymap): Remove generic char code.
21086 (push_key_description): Use CHARACTERP.
21087
210882008-02-01 Dave Love <fx@gnu.org>
21089
21090 * charset.c: Doc fixes.
21091 (Funify_charset): Extra checking.
21092
210932008-02-01 Dave Love <fx@gnu.org>
21094
21095 * lread.c: Remove some unused variables.
21096 (safe_to_load_p): If safe, return the magic number version byte.
21097 (Fload): Maybe use load-with-code-conversion.
21098
210992008-02-01 Kenichi Handa <handa@m17n.org>
21100
21101 * category.c (Fmodify_category_entry): Don't modify the contents
21102 of category_set for characters out of the range. Avoid
21103 unnecessary modification.
21104
21105 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21106 Vchar_unify_table. The default value of the table is now nil.
21107
21108 * character.c (syms_of_character): Setup Vchar_width_table for
21109 eight-bit-control and raw-byte chars.
21110
21111 * charset.h (enum define_charset_arg_index): Delete
21112 charset_arg_parents and add charset_arg_subset and
21113 charset_arg_superset.
21114 (enum charset_attr_index): Delete charset_parents and add
21115 charset_subset and charset_superset.
21116 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21117 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21118 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21119 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21120 (CHARSET_SUPERSET): New macros.
21121 (charset_work): Extern it.
21122 (ENCODE_CHAR): Use charset_work.
21123 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21124 (map_charset_chars): Extern it.
21125
21126 * charset.c (load_charset_map): Set the default value of encoder
21127 and deunifier char-tables to nil.
21128 (map_charset_chars): Change argument. Change callers. Use
21129 map_char_table_for_charset instead of map_char_table.
21130 (Fmap_charset_chars): New optional args from_code and to_code.
21131 (Fdefine_charset_internal): Adjust for the change of
21132 `define-charset' (:parents -> :subset or :superset).
21133 (charset_work): New variable.
21134 (encode_char, syms_of_charset): Adjust for the change of
21135 Fdefine_charset_internal.
21136 (Ffind_charset_string): Setup the vector `charsets' correctly.
21137
21138 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21139 the previous change.
21140 (char_table_ref_and_range): Adjust for the above change.
21141 (map_sub_char_table_for_charset): New function.
21142 (map_char_table_for_charset): New function.
21143
21144 * keymap.c (describe_vector): Handle a char-table directly here.
21145 (describe_char_table): Delete.
21146
21147 * lisp.h (map_charset_chars): Delete.
21148
211492008-02-01 Dave Love <fx@gnu.org>
21150
21151 * fns.c (count_combining): Comment out (unused).
21152 (Flocale_codeset): New.
21153 (syms_of_fns): Defsubr it.
21154
21155 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21156 (size_t): Remove.
21157
211582008-02-01 Dave Love <fx@gnu.org>
21159
21160 * Makefile.in (chartab.o): Depend on charset.h.
21161
211622008-02-01 Kenichi Handa <handa@m17n.org>
21163
21164 * character.c (syms_of_character): Set the default value of
21165 Vprintable_chars to Qnil.
21166
211672008-02-01 Dave Love <fx@gnu.org>
21168
21169 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21170
211712008-02-01 Kenichi Handa <handa@m17n.org>
21172
21173 * charset.c (load_charset_map): Handle the case that from < to
21174 correctly.
21175
21176 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21177 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21178 Pay attention to raw-8-bit chars.
21179
211802008-02-01 Kenichi Handa <handa@m17n.org>
21181
21182 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21183 It is not bytecompiled now.
21184
21185 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21186 (charset_jisx0208): New variables.
21187 (Fdefine_charset_internal): Setup them if appropriate.
21188 (init_charset_once): Initialize them to -1.
21189
21190 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21191 (charset_jisx0208): Extern them.
21192
21193 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21194 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21195 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21196 (setup_iso_safe_charsets): Fix arguments to Fassq.
21197 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21198 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21199 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21200 (encode_coding_iso_2022): Change the 1st arg to
21201 ENCODE_ISO_CHARACTER to a variable.
21202
212032008-02-01 Kenichi Handa <handa@m17n.org>
21204
21205 * charset.h (enum define_charset_arg_index): New enums
21206 charset_arg_min_code and charset_arg_max_code.
21207 (struct charset): New member char_index_offset.
21208
21209 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21210 Take charset->char_index_offset into account.
21211 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21212 args[charset_arg_max_code]. Setup charset.char_index_offset.
21213 (syms_of_charset): Fix args to Fdefine_charset_internal.
21214
212152008-02-01 Dave Love <fx@gnu.org>
21216
21217 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21218
212192008-02-01 Dave Love <fx@gnu.org>
21220
21221 * coding.c: Doc fixes.
21222 (Fcoding_system_aliases): Fix return value.
21223 (Qmac): Remove (duplicated) definition.
21224
212252008-02-01 Dave Love <fx@gnu.org>
21226
362654a6
JB
21227 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21228 New functions.
aac0c6e3
MR
21229
21230 * character.c (Fstring): Doc fix.
21231
21232 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21233
362654a6 21234 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21235 (font-encoding-alist): Doc fix.
21236
212372008-02-01 Dave Love <fx@gnu.org>
21238
21239 * term.c (costs_set): Declare static, non-initialized for pcc.
21240 (encode_terminal_code): Remove unused var.
21241
21242 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21243 for K&R.
21244
21245 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21246
21247 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21248 (suffixes): Move out of make_subsidiaries for K&R.
21249
21250 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21251
21252 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21253
212542008-02-01 Dave Love <fx@gnu.org>
21255
21256 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21257
21258 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21259
212602008-02-01 Yong Lu <lyongu@asia-infonet.com>
21261
21262 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21263
21264 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21265
212662008-02-01 Kenichi Handa <handa@m17n.org>
21267
21268 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21269 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21270
212712008-02-01 Kenichi Handa <handa@m17n.org>
21272
21273 * coding.c (decode_coding_charset): Adjust for the change of
21274 Fdefine_coding_system_internal.
21275 (Fdefine_coding_system_internal): For a coding system of
21276 `charset' type, store a list of charset IDs in
21277 `charset_attr_charset_valids' element of coding attributes.
21278
212792008-02-01 Kenichi Handa <handa@m17n.org>
21280
21281 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21282 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21283 caller. Handle 2-byte and 3-byte charsets correctly.
21284 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21285 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21286 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21287 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21288 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21289 sequence.
21290 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21291 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21292 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21293 and alt&rule composition.
21294 (decode_coding_iso_2022): Handle composition correctly.
21295 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21296
21297 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21298 re-defining a charset. If the charset has :emacs-mule-id, setup
21299 emacs_mule_bytes.
21300 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21301
213022008-02-01 Kenichi Handa <handa@m17n.org>
21303
21304 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21305 (encode_coding_big5, encode_coding_charset): If coding requires safe
21306 encoding, produce a character specified by
21307 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21308
213092008-02-01 Dave Love <fx@gnu.org>
21310
21311 * xterm.c (XSetIMValues): Declare.
21312
21313 * process.c: Conditionally include sys/wait.h, pty.h.
21314
21315 * print.c (print_object): Fix print format for 64-bit systems.
21316
21317 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21318
21319 * buffer.c (emacs_strerror): Declare.
21320
21321 * fontset.c (Fclear_face_cache): Declare.
21322 (accumulate_font_info): Comment-out (unused).
21323 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21324 variables.
21325
21326 * character.h (string_escape_byte8): Declare.
21327
21328 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21329 unused vars.
21330 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21331 (Fmap_charset_chars): Doc fix.
21332
21333 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21334 (Fset_coding_system_priority, Fset_coding_system_priority)
21335 (Fdefine_coding_system_internal): Doc fix.
21336
213372008-02-01 Dave Love <fx@gnu.org>
21338
21339 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21340
213412008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * character.c (string_escape_byte8): Make multibyte string with
21344 correct size.
21345
21346 * charset.c (Fmake_char): Delete unnecessary code.
21347
213482008-02-01 Kenichi Handa <handa@m17n.org>
21349
21350 * xfns.c (x_encode_text): Allocate coding.destination here, and
21351 call encode_coding_object with dst_object Qnil.
21352
21353 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21354 multibyte form correctly.
21355
21356 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21357 against Vfont_encoding_alist.
21358
21359 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21360 handling of charset list.
21361 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21362 (decode_coding_object): Move point to coding->dst_pos before
21363 calling post-read-conversion function.
21364 (encode_coding_object): Give correct arguments to
21365 pre-write-conversion. Ignore the return value of
21366 pre-write-conversion function. Pay attention to the case that
21367 pre-write-conversion changes the current buffer. If dst_object is
21368 Qt, even if coding->src_bytes is zero, allocate at least one byte
21369 to coding->destination.
21370
21371 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21372
21373 * charset.c (Fmake_char): Make it more backward compatible.
21374 (Fmap_charset_chars): Fix docstring.
21375
213762008-02-01 Dave Love <fx@gnu.org>
21377
21378 * coding.c: Doc fixes.
21379 (Fdefine_coding_system_alias): Use names, not symbols, in
21380 coding-system-alist.
21381
213822008-02-01 Kenichi Handa <handa@m17n.org>
21383
21384 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21385 of calling free_realized_face.
21386
213872008-02-01 Yong Lu <lyongu@asia-infonet.com>
21388
21389 * charset.c (read_hex): Don't treat SPC as a comment starter.
21390 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21391 (Fdecode_char): Fix typo.
21392
213932008-02-01 Kenichi Handa <handa@m17n.org>
21394
21395 * charset.h (struct charset): New member `code_space_mask'.
21396
21397 * coding.c (coding_set_source): Delete the local variable beg_byte.
21398 (encode_coding_charset, Fdefine_coding_system_internal):
21399 Delete the local variable charset.
21400 (Fdefine_coding_system_internal): Setup
21401 attrs[coding_attr_charset_valids] correctly.
21402
21403 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21404 member to check if CODE is valid or not.
21405 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21406 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21407 is within the range of charset->min_code and carset->max_code.
21408
214092008-02-01 Dave Love <fx@gnu.org>
21410
21411 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21412
21413 * dispextern.h (generate_ascii_font): Fix return type.
21414
21415 * xfaces.c (generate_ascii_font): Fix arg declaration.
21416
21417 * coding.c (coding_inherit_eol_type)
21418 (Fset_terminal_coding_system_internal)
21419 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21420
214212008-02-01 Kenichi Handa <handa@m17n.org>
21422
21423 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21424 multiple charsets correctly.
21425
214262008-02-01 Kenichi Handa <handa@m17n.org>
21427
21428 * search.c (boyer_moore): Fix handling of multibyte character
21429 translation.
21430
21431 * xdisp.c (display_mode_element): When the variable `elt' is
21432 changed, update `this' and `lisp_string'.
21433
214342008-02-01 Kenichi Handa <handa@m17n.org>
21435
21436 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21437
21438 * callproc.c (Fcall_process): Be sure to give the current buffer
21439 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21440
21441 * charset.c (struct charset_map_entries): New struct.
21442 (load_charset_map): Rename from parse_charset_map. New args
21443 entries and n_entries. Change caller.
21444 (load_charset_map_from_file): Rename from load_charset_map.
21445 Change caller. New arg control_flag. Call load_charset_map at
21446 the tail.
21447 (load_charset_map_from_vector): New function.
21448 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21449 (encode_char): If the charset is compact, change a character index
21450 to a code point.
21451
21452 * coding.c (coding_alloc_by_making_gap): Check the case that the
21453 source and destination are the same correctly.
21454 (decode_coding_raw_text): Set coding->consumed_char and
21455 coding->consumed to 0.
21456 (produce_chars): If coding->chars_at_source is nonzero, update
21457 coding->consumed_char and coding->consumed before calling
21458 alloc_destination.
21459 (Fdefine_coding_system_alias): Register ALIAS in
21460 Vcoding_system_alist.
21461 (syms_of_coding): Define `no-conversion' coding system at the tail.
21462
21463 * fileio.c (Finsert_file_contents): Set coding_system instead of
21464 val. If the current buffer is multibyte, always call
21465 decode_coding_gap.
21466
21467 * xfaces.c (try_font_list): Give higher priority to fontset's
21468 family than face's family.
21469
214702008-02-01 Kenichi Handa <handa@m17n.org>
21471
21472 * callproc.c (Fcall_process): Be sure to give the current buffer
21473 to decode_coding_c_string.
21474
21475 * xfaces.c (try_font_list): Give a family specified in a fontset
21476 higher priority than a family specified in a face.
21477
214782008-02-01 Kenichi Handa <handa@m17n.org>
21479
21480 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21481 Fix arguments to insert_from_buffer.
21482
21483 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21484
214852008-02-01 Kenichi Handa <handa@m17n.org>
21486
21487 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21488 (decode_coding_gap): Set coding->dst_multibyte correctly.
21489
214902008-02-01 Kenichi Handa <handa@m17n.org>
21491
21492 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21493 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21494 (encode_coding_utf_16): Substitute coding->default_char for
21495 non-Unicode characters.
21496 (decode_coding): Don't call record_insert here.
21497 (setup_coding_system): Initialize `surrogate' of
21498 coding->spec.utf_16 to 0.
21499 (EMIT_ONE_BYTE): Fix for multibyte case.
21500
21501 * insdel.c (insert_from_gap): Call record_insert.
21502
215032008-02-01 Kenichi Handa <handa@m17n.org>
21504
21505 * casefiddle.c (casify_region): Fix multibyte case.
21506
21507 * character.c (c_string_width): Add return type `int'.
21508 (char_string_with_unification): Delete arg ADVANCED.
21509
21510 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21511 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21512 (CHAR_STRING_ADVANCE): Make it do-while statement.
21513
21514 * chartab.c (sub_char_table_set_range): Optimize for the case
21515 DEPTH == 3. Add workaround code for a GCC optimization bug.
21516
21517 * charset.c (parse_charset_map): Remove an unused variable.
21518
21519 * coding.c: Delete unused variables.
21520
21521 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21522 earlier. If inserted is zero and the coding system doesn't
21523 require flushing, don't call decode_coding_gap.
21524
21525 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21526
215272008-02-01 Kenichi Handa <handa@m17n.org>
21528
21529 The following changes are for using Unicode as an internal
21530 character model, and use UTF-8 format for buffer/string
21531 representation.
21532
21533 * .gdbinit (xchartable): Adjust for the change of char table structure.
21534 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21535
21536 * Makefile.in (obj): Add character.o and chartab.o.
21537 (lisp, shortlisp): Remove utf-8.elc.
21538 (*.o): For many files, change dependency on charset.h to
21539 character.h, and add dependency on character.h.
21540 (character.o, chartab.o): New targets.
21541
21542 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21543 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21544 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21545 of "charset.h".
21546
21547 * dired.c, filelock.c: Include "character.h".
21548
21549 * alloc.c: Include "character.h" instead of "charset.h".
21550 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21551 (syms_of_alloc): Remove defsubr for Smake_char_table.
21552
21553 * buffer.c: Include "character.h" instead of "charset.h", don't
21554 include "coding.h".
21555 (Fset_buffer_multibyte): Adjust for UTF-8.
21556
21557 * buffer.h: EXFUN Fbuffer_live_p.
21558
21559 * callproc.c: Include "character.h" instead of "charset.h".
21560 (Fcall_process): Big change for the new code-conversion APIs.
21561
21562 * casetab.c: Include "character.h" instead of "charset.h".
21563 (set_canon, set_identity, shuffle): Adjust for the new
21564 map_char_table spec.
21565 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21566 accessing the char table structure.
21567
21568 * chartab.c: New file that implements char table.
21569
21570 * category.c: Include "character.h".
21571 (copy_category_entry): New function.
21572 (copy_category_table): Call map_char_table and copy_category_entry.
21573 (Fmake_category_table): Initialize all top-level slots.
21574 (char_category_set): New function.
21575 (modify_lower_category_set): Delete.
21576 (Fmodify_category_entry): Call char_table_ref_and_range.
21577
21578 * category.h (CATEGORY_SET): Just call char_category_set.
21579
21580 * ccl.c: Include "character.h".
21581 (Qccl, Qcclp): New variables.
21582 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21583 it's less than 256.
21584 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21585 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21586 and DST type.
21587 (ccl_driver): Change types of argument, adjust code accordingly.
21588 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21589 ccl_driver.
21590 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21591
21592 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21593 New members src_multibyte, dst_multibyte, consumed, and produced.
21594 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21595 (CODING_SPEC_CCL_PROGRAM): New macro.
21596 (ccl_driver): Update prototype.
21597 (Qccl, Qcclp, Fccl_program_p): Extern them.
21598 (CHECK_CCL_PROGRAM): New macro.
21599
21600 * character.c, character.h, chartab.c: New files.
21601
21602 * charset.c: Mostly re-written. Move character and multibyte sequence
21603 handling codes to character.c.
21604
21605 * charset.h: Mostly re-written. Move character and multibyte sequence
21606 handling codes to character.h.
21607
21608 * coding.c, coding.h: Mostly re-written.
21609
21610 * composite.c: Include "character.h" instead of "charset.h".
21611 (CHAR_WIDTH): Move to character.h.
21612 (HASH_KEY, HASH_VALUE): Delete.
21613
21614 * composite.h (enum composition_method): Change order of enumeration
21615 symbols.
21616
21617 * data.c: Include "character.h" instead of "charset.h".
21618 (Faref): Call CHAR_TABLE_REF for a char table.
21619 (Faset): Call CHAR_TABLE_SET for a char table.
21620
21621 * dispextern.h (free_realized_face, check_face_attribytes)
21622 (generate_ascii_font): Extern them.
21623 (free_realized_multibyte_face): Delete extern.
21624
21625 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21626 table structure.
21627
21628 * editfns.c: Include "character.h" instead of "charset.h".
21629 (Fchar_to_string): Always call CHAR_STRING.
21630
21631 * emacs.c (main): Call init_charset_once, init_charset,
21632 syms_of_chartab, and syms_of_character.
21633
21634 * fileio.c: Include "character.h" instead of "charset.h".
21635 (Finsert_file_contents): Big change for the new code-conversion API.
21636 (choose_write_coding_system, Fwrite_region): Likewise.
21637 (build_annotations_2): Delete.
21638 (e_write): Big change for the new code-conversion API.
21639
21640 * fns.c: Include "character.h" instead of "charset.h".
21641 (copy_sub_char_table): Move to chartab.c.
21642 (Fcopy_sequence): Call copy_char_table for a char table.
21643 (concat): Delete codes calling count_multibyte.
21644 (string_char_to_byte, string_byte_to_char): Adjust for the new
21645 multibyte form.
21646 (internal_equal): Adjust for the change of char table structure.
21647 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21648 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21649 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21650 (char_table_translate, optimize_sub_char_table)
21651 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21652 chartab.c.
21653 (char_table_ref_and_index): Delete.
21654 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21655 (Fmd5): Call preferred_coding_system instead of accessing
21656 Vcoding_category_list. Adjust for the new code-conversion API.
21657 (syms_of_fns): Move defsubr for char table related functions to
21658 chartab.c.
21659
21660 * fontset.c: Mostly re-written.
21661
21662 * fontset.h (struct font_info): Change type of the member encoding_type.
21663 (enum FONT_SPEC_INDEX): New enum.
21664 (fontset_font_pattern, fs_load_font): Update prototype.
21665 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21666
21667 * indent.c: Include "character.h" instead of "charset.h".
21668 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21669
21670 * insdel.c: Include "character.h" instead of "charset.h".
21671 (copy_text): Don't refer to Vnonascii_translation_table.
21672 (insert_from_gap): New function.
21673
21674 * keyboard.c: Include "character.h" instead of "charset.h".
21675 (command_loop_1): Never call direct_output_forward_char before
21676 a non-ASCII character.
21677 (read_char): If Vkeyboard_translate_table is a char table, always
21678 translate a character.
21679
21680 * keymap.c: Include "character.h".
21681 (store_in_keymap): Handle the case that IDX is a cons.
21682 (Fdefine_key): Handle the case that KEY is a cons and the car part
21683 is also a cons (range).
21684 (push_key_description): Adjust for the new character code.
21685 (describe_vector): Call describe_char_table for a char table.
21686 (describe_char_table): New function.
21687
21688 * keymap.h (describe_char_table): Extern it.
21689
21690 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21691 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21692 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21693 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21694 Delete.
21695 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21696 structure.
21697 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21698 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21699 (CHARTAB_SIZE_BITS_3): New macros.
21700 (chartab_size): Extern it.
21701 (struct Lisp_Char_Table): Re-design.
21702 (struct Lisp_Sub_Char_Table): New structure.
21703 (HASH_KEY, HASH_VALUE): Move from fns.c.
21704 (CHARACTERBITS): Define as 22.
21705 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21706 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21707 (GC_SUB_CHAR_TABLE_P): New macro.
21708 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21709 (code_convert_string_norecord): Deleted extern.
21710 (init_character_once, syms_of_character, init_charset)
21711 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21712
21713 * lread.c: Include "character.h".
21714 (read_multibyte): New arg NBYTES.
21715 (read_escape): Change the meaning of returned *BYTEREP.
21716 (to_multibyte): Delete.
21717 (read1): Adjust the handling of char table and string.
21718
21719 * print.c: Include "character.h" instead of "charset.h".
21720 (print_string): Convert 8-bit raw bytes to octal form by
21721 string_escape_byte8.
21722 (print_object): Adjust for the new multibyte form. Print 8-bit
21723 raw bytes always in octal form. Handle sub char table correctly.
21724
21725 * process.c: Include "character.h" instead of "charset.h".
21726 (read_process_output, send_process): Adjust for the new
21727 code-conversion API.
21728
21729 * puresize.h (BASE_PURESIZE): Increase.
21730
21731 * regex.c: Include "character.h" instead of "charset.h".
21732 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21733 (regex_compile): Accept a range whose starting and ending
21734 character have different leading bytes.
21735 (analyse_first): Adjust for the above change.
21736
21737 * search.c: Include "character.h" instead of "charset.h".
21738 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21739 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21740
21741 * syntax.c: Include "character.h" instead of "charset.h".
21742 (syntax_parent_lookup): Delete.
21743 (Fmodify_syntax_entry): Accept a cons as CHAR.
21744 (skip_chars): Adjust for the new multibyte form.
21745 (init_syntax_once): Call char_table_set_range instead of directly
21746 accessing the structure of a char table.
21747
21748 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21749 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21750 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21751 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21752
21753 * term.c: Include "buffer.h" and "character.h".
21754 (encode_terminal_code, write_glyphs): Adjust for the new
21755 code-conversion API.
21756 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21757
21758 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21759
21760 * xdisp.c: Include "character.h".
21761 (get_next_display_element): Adjust for the new multibyte form.
21762 (disp_char_vector): Adjust for the new char table structure.
21763 (decode_mode_spec_coding): Adjust for the new structure of
21764 coding system.
21765 (decode_mode_spec): Adjust for the new code-conversion API.
21766
21767 * xfaces.c: Include "character.h" instead of "charset.h".
21768 (load_face_font): Adjust for the change of choose_face_font and
21769 FS_LOAD_FONT.
21770 (generate_ascii_font): New function.
21771 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21772 (set_font_frame_param): Adjust for the change of choose_face_font.
21773 (free_realized_face): Make it public.
21774 (free_realized_faces_for_fontset): Rename from
21775 free_realized_multibyte_face. Free also faces realized for ASCII.
21776 (choose_face_font): Change arguments. Adjust for the change of
21777 fontset_font_pattern and FS_LOAD_FONT.
21778
21779 * xfns.c: Include "character.h".
21780 (x_encode_text): Adjust for the new code-conversion API.
21781
21782 * xselect.c: Don't include "charset.h".
21783 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21784
21785 * xterm.c: Include "character.h".
21786 (x_encode_char): New argument CHARSET. Change caller.
21787 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21788 Call ENCODE_CHAR instead of SPLIT_CHAR.
21789 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21790 CHAR_WIDTH instead of CHARSET_WIDTH.
21791 (XTread_socket): Adjust for the new code-conversion API.
21792 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21793 (x_load_font): Adjust for the change of struct font.
21794
217952008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21796
21797 * xfaces.c (face_at_buffer_position): Remove unused vars.
21798
217992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21800
21801 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21802 Fix overflow checking.
21803
218042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21805
21806 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21807 Cancel previous change.
21808
218092008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21810
21811 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21812 ccl->eight_bit_control. Fix check for buffer overflow.
21813 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21814 (ccl_driver): Initialize extra_bytes to 0.
21815
218162008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21817
21818 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21819 return it ORed with ctrl_modifier.
21820
218212008-01-29 Miles Bader <miles@gnu.org>
21822
21823 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21824
218252008-01-28 Jason Rumney <jasonr@gnu.org>
21826
21827 * w32.c (stat): Don't double check for networked drive.
21828
218292008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21830
21831 * window.c (run_window_configuration_change_hook): New function.
21832 Code extracted from set_window_buffer. Set the selected frame.
21833 (set_window_buffer): Use it.
21834 * window.h (run_window_configuration_change_hook): Declare.
21835 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21836
21837 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21838
218392008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21840
21841 * Makefile.in: Remove references to unused macros.
21842
218432008-01-26 Eli Zaretskii <eliz@gnu.org>
21844
21845 * w32.c (g_b_init_get_sid_sub_authority)
21846 (g_b_init_get_sid_sub_authority_count): New static variables.
21847 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21848 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21849 (init_user_info): Use them to retrieve uid and gid.
21850 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21851 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21852 st_uid and st_gid of the file.
21853
218542008-01-26 Jason Rumney <jasonr@gnu.org>
21855
21856 * w32.c (logon_network_drive): New function.
21857 (stat): Use it.
21858
218592008-01-26 Chong Yidong <cyd@stupidchicken.com>
21860
21861 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21862 invisible text covered with an ellipsis.
21863
218642008-01-25 Richard Stallman <rms@gnu.org>
21865
21866 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21867 jump back to beginning. Move some other initializations after that.
21868 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21869 New variables.
21870 (syms_of_xdisp): Init them.
21871
21872 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21873
21874 * buffer.c (reset_buffer_local_variables):
21875 Implement `permanent-local-hook'.
21876 (Qpermanent_local_hook): New variable.
21877 (syms_of_buffer): Init and staticpro it.
21878
218792008-01-25 Michael Albinus <michael.albinus@gmx.de>
21880
21881 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21882
218832008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21884
21885 * fns.c (Fclrhash): Return TABLE.
21886
218872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21888
21889 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21890 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21891 is set even without positional changes.
21892 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21893
21894 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21895
218962008-01-23 Jason Rumney <jasonr@gnu.org>
21897
21898 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21899
21900 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21901 the unicode range available in MULE by locale-coding-system.
21902 Improve dbcs lead byte detection. Set event timestamp and modifiers
21903 earlier.
21904
219052008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21906
21907 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21908 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21909 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21910 when used on child processes.
21911
219122008-01-21 Michael Albinus <michael.albinus@gmx.de>
21913
21914 * dbusbind.c (Fdbus_method_return_internal): Rename from
21915 Fdbus_method_return.
21916 (Fdbus_unregister_object): Move to dbus.el.
21917 (Fdbus_call_method, Fdbus_method_return_internal)
21918 (Fdbus_send_signal): Improve debug messages.
21919
219202008-01-20 Martin Rudalics <rudalics@gmx.at>
21921
21922 * undo.c (undo_inhibit_record_point): New variable.
21923 (syms_of_undo): Initialize it.
21924 (record_point): Don't record point when undo_inhibit_record_point
21925 is set.
21926
219272008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21928
21929 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21930
21931 * xdisp.c (Qauto_hscroll_mode): New var.
21932 (syms_of_xdisp): Initialize it.
21933 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21934 window's buffer.
21935 (hscroll_windows): Don't check automatic_hscrolling_p here.
21936
21937 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21938 vscroll if we're setting window-buffer to the value it already has.
21939
219402008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21941
21942 * m/intel386.h: Remove references to XENIX.
21943
219442008-01-17 Andreas Schwab <schwab@suse.de>
21945
21946 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21947 instead of HAVE_X86_64_LIB64_DIR.
21948 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21949
219502008-01-17 Glenn Morris <rgm@gnu.org>
21951
21952 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21953 to HAVE_X86_64_LIB64_DIR.
21954
219552008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21956
21957 * s/irix3-3.h:
21958 * s/irix4-0.h:
21959 * s/386-ix.h:
21960 * s/domain.h:
21961 * s/hpux9-x11r4.h:
21962 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21963
21964 * sysdep.c: Remove code containing references to symbols defined
21965 by unsupported systems.
21966
219672008-01-16 Glenn Morris <rgm@gnu.org>
21968
21969 * coding.c (select-safe-coding-system-function): Doc fix.
21970
219712008-01-15 Glenn Morris <rgm@gnu.org>
21972
21973 * config.in: Revert 2008-01-13 change: this is a generated file.
21974
219752008-01-13 Tom Tromey <tromey@redhat.com>
21976
21977 * lisp.h: Fix typo.
21978
219792008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21980
21981 * m/sequent-ptx.h:
21982 * m/sequent.h:
21983 * s/ptx.h:
21984 * s/ptx4-2.h:
21985 * s/ptx4.h: Remove files for systems no longer supported.
21986
21987 * callproc.c (Fcall_process): Fix previous change.
21988
219892008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21990
21991 * unexsunos4.c: Remove file, system not supported anymore.
21992
21993 * m/mips.h:
21994 * m/intel386.h:
21995 * callproc.c:
21996 * config.in:
21997 * ecrt0.c:
21998 * emacs.c:
21999 * fileio.c:
22000 * frame.c:
22001 * getpagesize.h:
22002 * keyboard.c:
22003 * lread.c:
22004 * process.c:
22005 * puresize.h:
22006 * sysdep.c:
22007 * systty.h:
22008 * syswait.h:
22009 * unexec.c:
22010 * xdisp.c:
22011 * alloc.c: Remove code containing references to symbols defined by
22012 unsupported systems.
22013
220142008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22015
22016 * coding.c (detect_coding_mask): Fix previous change.
22017
220182008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22019
22020 * coding.c (detect_coding_iso2022): New arg
22021 latin_extra_code_state. Allow Latin extra codes only
22022 when *latin_extra_code_state is nonzero.
22023 (detect_coding_mask): If there is a NULL byte, detect the encoding
22024 as UTF-16 or binary. If Latin extra codes exist, detect the
22025 encoding as ISO-2022 only when there's no other proper encoding is
22026 found.
22027
220282008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22029
22030 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22031 #ifdef MAC_OS.
22032
220332008-01-08 Richard Stallman <rms@gnu.org>
22034
22035 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22036
220372008-01-06 Nick Roberts <nickrob@snap.net.nz>
22038
22039 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22040 menu bar in parentheses.
22041
220422008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22043
22044 * m/7300.h:
22045 * m/acorn.h:
22046 * m/alliant-2800.h:
22047 * m/alliant.h:
22048 * m/alliant1.h:
22049 * m/alliant4.h:
22050 * m/altos.h:
22051 * m/amdahl.h:
22052 * m/apollo.h:
22053 * m/att3b.h:
22054 * m/aviion-intel.h:
22055 * m/aviion.h:
22056 * m/celerity.h:
22057 * m/clipper.h:
22058 * m/cnvrgnt.h:
22059 * m/convex.h:
22060 * m/cydra5.h:
22061 * m/delta88k.h:
22062 * m/dpx2.h:
22063 * m/dual.h:
22064 * m/elxsi.h:
22065 * m/f301.h:
22066 * m/gould-np1.h:
22067 * m/gould.h:
22068 * m/i860.h:
22069 * m/ibmps2-aix.h:
22070 * m/ibmrt-aix.h:
22071 * m/ibmrt.h:
22072 * m/irist.h:
22073 * m/is386.h:
22074 * m/isi-ov.h:
22075 * m/mega68.h:
22076 * m/mg1.h:
22077 * m/news-r6.h:
22078 * m/news-risc.h:
22079 * m/news.h:
22080 * m/nh3000.h:
22081 * m/nh4000.h:
22082 * m/ns16000.h:
22083 * m/ns32000.h:
22084 * m/nu.h:
22085 * m/orion.h:
22086 * m/orion105.h:
22087 * m/paragon.h:
22088 * m/pfa50.h:
22089 * m/plexus.h:
22090 * m/pyramid.h:
22091 * m/pyrmips.h:
22092 * m/sh3el.h:
22093 * m/sps7.h:
22094 * m/sr2k.h:
22095 * m/stride.h:
22096 * m/sun1.h:
22097 * m/sun2.h:
22098 * m/sun3-68881.h:
22099 * m/sun3-fpa.h:
22100 * m/sun3-soft.h:
22101 * m/sun3.h:
22102 * m/sun386.h:
22103 * m/symmetry.h:
22104 * m/tad68k.h:
22105 * m/tahoe.h:
22106 * m/targon31.h:
22107 * m/tek4300.h:
22108 * m/tekxd88.h:
22109 * m/tower32.h:
22110 * m/tower32v3.h:
22111 * m/ustation.h:
22112 * m/wicat.h:
22113 * m/xps100.h:
22114 * s/cxux.h:
22115 * s/cxux7.h:
22116 * s/dgux.h:
22117 * s/dgux4.h:
22118 * s/dgux5-4-3.h:
22119 * s/dgux5-4r2.h:
22120 * s/esix.h:
22121 * s/esix5r4.h:
22122 * s/hiuxmpp.h:
22123 * s/hiuxwe2.h:
22124 * s/iris3-5.h:
22125 * s/iris3-6.h:
22126 * s/isc2-2.h:
22127 * s/isc3-0.h:
22128 * s/isc4-0.h:
22129 * s/isc4-1.h:
22130 * s/newsos5.h:
22131 * s/newsos6.h:
22132 * s/osf1.h:
22133 * s/osf5-0.h:
22134 * s/riscix1-1.h:
22135 * s/riscix12.h:
22136 * s/sco4.h:
22137 * s/sco5.h:
22138 * s/sunos4-0.h:
22139 * s/sunos4-1.h:
22140 * s/sunos413.h:
22141 * s/sunos4shr.h:
22142 * s/umax.h:
22143 * s/unipl5-2.h:
22144 * s/xenix.h:
22145 * cxux-crt0.s:
22146 * unexapollo.c:
22147 * unexconvex.c:
22148 * unexenix.c:
22149 * unexsni.c: Remove files for systems no longer supported.
22150
22151 * m/intel386.h: Remove references to unsupported systems.
22152
22153 * w32.c (get_emacs_configuration): Remove reference to i860.
22154
22155 * sysdep.c: Remove dead code.
22156
221572008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22158
22159 * s/rtu.h:
22160 * m/masscomp.h: Remove files. Platform is obsolete.
22161
221622008-01-04 Michael Albinus <michael.albinus@gmx.de>
22163
22164 * dbusbind.c (Fdbus_method_return): New function.
22165 (xd_read_message): Add the serial number to the event.
22166 (Fdbus_register_method): Activate the function.
22167
221682008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22169
22170 * keyboard.c (read_key_sequence): Fix typo.
22171
221722008-01-03 Michael Albinus <michael.albinus@gmx.de>
22173
22174 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22175 (xd_signature, xd_append_arg): Handle element type detection for
22176 empty arrays.
22177 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22178 SDATA () calls; this must be solved more general.
22179 (Fdbus_register_signal): Use SBYTES instead of strlen.
22180
221812008-01-03 Magnus Henoch <magnus@zemdatav>
22182
22183 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22184 unsigned int for byte values (necessary for big-endian platform).
22185 (Fdbus_call_method): Handle the case of no returned arguments.
22186
221872007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22188
22189 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22190
221912007-12-31 Magnus Henoch <mange@freemail.hu>
22192
22193 * dbusbind.c (xd_signature): Signature of variant is just "v".
22194
221952007-12-30 Michael Albinus <michael.albinus@gmx.de>
22196
22197 * dbusbind.c: Fix several errors and compiler warnings.
22198 Reported by Tom Tromey <tromey@redhat.com>.
22199 (XD_ERROR, XD_DEBUG_MESSAGE)
22200 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22201 (xd_append_arg): Part for basic D-Bus types rewritten.
22202 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22203 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22204 appropriate.
22205 (xd_read_message): Return Qnil. Don't signal an error; it is not
22206 useful during event reading.
22207 (Fdbus_register_signal): Signal an error if the check for
22208 FUNCTIONP fails.
22209 (Fdbus_register_method): New function. The implementation is not
22210 complete, the call of the function signals an error therefore.
22211 (Fdbus_unregister_object): New function, renamed from
22212 Fdbus_unregister_signal. The initial check signals an error, if
22213 the object is not well formed.
22214
222152007-12-30 Richard Stallman <rms@gnu.org>
22216
22217 * textprop.c (get_char_property_and_overlay):
22218 Signal error if POSITION is out of range in a buffer.
22219
222202007-12-29 Martin Rudalics <rudalics@gmx.at>
22221
22222 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22223 because the original parameters are in pure storage now.
22224
222252007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22226
22227 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22228
222292007-12-22 Eli Zaretskii <eliz@gnu.org>
22230
22231 * callint.c (syms_of_callint) <command-history>: Add reference to
22232 history-length in the doc string.
22233
222342007-12-17 Jason Rumney <jasonr@gnu.org>
22235
22236 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22237 before passing as wParam.
22238
222392007-12-22 Michael Albinus <michael.albinus@gmx.de>
22240
22241 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22242 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22243 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22244 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22245 as number.
22246 (Fdbus_call_method): Fix docstring.
22247
222482007-12-21 Michael Albinus <michael.albinus@gmx.de>
22249
22250 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22251 New macros.
22252 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22253 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22254 Simplify.
22255 (xd_signature): New function.
22256 (xd_append_arg): Compute also signatures. Major rewrite.
22257 (xd_retrieve_arg): Make debug messages friendly.
22258 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22259 Check for signatures of arguments.
22260
222612007-12-19 Michael Albinus <michael.albinus@gmx.de>
22262
22263 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22264 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22265 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22266 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22267 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22268 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22269 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22270 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22271 (xd_retrieve_value): Remove. Functionality included in ...
22272 (xd_append_arg): New function.
22273 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22274
222752007-12-16 Michael Albinus <michael.albinus@gmx.de>
22276
22277 * dbusbind.c (top): Include <stdio.h>.
22278 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22279 dbus_message_new_method_call and dbus_message_new_signal.
22280 (Fdbus_register_signal): Rename unique_name to uname.
22281 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22282 non-existing unique name. Fix typos in matching rule. Return an
22283 object which is useful in Fdbus_unregister_signal.
22284 (Fdbus_unregister_signal): Reimplementation, in order to remove
22285 only the corresponding entry.
22286 (Vdbus_registered_functions_table): Change the order of entries.
22287 Apply these changes in xd_read_message and Fdbus_register_signal.
22288
222892007-12-16 Andreas Schwab <schwab@suse.de>
22290
22291 * fileio.c (Finsert_file_contents): Fix overflow check to not
22292 depend on undefined integer overflow.
22293
222942007-12-14 Jason Rumney <jasonr@gnu.org>
22295
22296 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22297 for characters above 127.
22298
222992007-12-13 Jason Rumney <jasonr@gnu.org>
22300
22301 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22302 before dereferencing array.
22303 (lookup_vk_code): Remove zero comparison.
22304
223052007-12-14 Michael Albinus <michael.albinus@gmx.de>
22306
22307 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22308 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22309 Use `unsigned int' instead of `uint'.
22310 (xd_read_message, Fdbus_register_signal): Split expressions into
22311 multiple lines before operators "&&" and "||", according to the
22312 GNU Coding Standards.
22313
223142007-12-14 Eli Zaretskii <eliz@gnu.org>
22315
22316 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22317
223182007-12-12 Juri Linkov <juri@jurta.org>
22319
22320 * buffer.c (Frename_buffer): In interactive spec replace
22321 `read-buffer' with `read-string' that uses `buffer-name-history'
22322 as history, and the current buffer's name as default.
22323
223242007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22325
22326 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22327 manipulating the backtrace manually.
22328 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22329 (struct backtrace, backtrace_list): Remove.
22330 (command_loop_1): Remove dead var `no_direct'.
22331
22332 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22333 preserve non-built-in buffer-local variables.
22334 (Fkill_all_local_variables): Don't re-create&re-set permanent
22335 buffer-local variables.
22336
223372007-12-09 Juri Linkov <juri@jurta.org>
22338
22339 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22340 Lisp code that uses `read-buffer' with current buffer as default.
22341
223422007-12-08 Michael Albinus <michael.albinus@gmx.de>
22343
22344 * dbusbind.c (xd_read_message): Generate an event for every
22345 registered handler. There might be several handlers registered
22346 for the same signal.
22347 (Fdbus_register_signal): Don't overwrite a registration for the
22348 same signal. Add a new registration if handlers are different.
22349 (Vdbus_registered_functions_table): Rework doc string.
22350
223512007-12-07 Michael Albinus <michael.albinus@gmx.de>
22352
22353 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22354 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22355 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22356 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22357 Unify argument lists.
22358 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22359 arguments and hash table keys. Use unique name for service.
22360 (Fdbus_unregister_signal): Remove checks.
22361 (Vdbus_registered_functions_table): Fix doc string.
22362
223632007-12-05 Magnus Henoch <mange@freemail.hu>
22364
22365 * process.c (make_process): Initialize pty_flag to 0.
22366
223672007-12-05 Jason Rumney <jasonr@gnu.org>
22368
22369 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22370 specified XBMs.
22371
223722007-12-05 Richard Stallman <rms@gnu.org>
22373
22374 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22375
223762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22377
22378 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22379 New variable.
22380 (mac_try_close_socket) [MAC_OSX]: New function.
22381 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22382 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22383
22384 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22385 Use mac_try_close_socket.
22386
223872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22388
22389 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22390 reloc_base.
22391 (copy_dysymtab): Compute relocation base here.
22392 (rebase_reloc_address) [__ppc64__]: New function.
22393 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22394 changed.
22395
223962007-12-05 Jason Rumney <jasonr@gnu.org>
22397
22398 * w32proc.c (sys_spawnve): Quote args with wildcards.
22399
224002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22401
22402 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22403 __objc_* sections.
22404 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22405
224062007-12-05 Michael Albinus <michael.albinus@gmx.de>
22407
22408 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22409 Move check for Vdbus_registered_functions_table to
22410 xd_read_queued_messages.
22411 (xd_read_queued_messages): Protect xd_read_message calls by
22412 internal_condition_case_1.
22413
224142007-12-04 Michael Albinus <michael.albinus@gmx.de>
22415
22416 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22417 Qdbus_system_bus and Qdbus_session_bus, respectively.
22418 (Vdbus_intern_symbols): Remove.
22419 (Vdbus_registered_functions_table): New hash table.
22420 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22421 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22422 Rewrite in order to manage registered functions by hash table
22423 Vdbus_registered_functions_table.
22424
224252007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22426
22427 * xterm.c: Update URL to Window Manager Specification in comment.
22428
224292007-12-02 Michael Albinus <michael.albinus@gmx.de>
22430
22431 * config.in (HAVE_DBUS): Add.
22432
22433 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22434 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22435 (obj): Add $(DBUS_OBJ).
22436 (LIBES): Add $(DBUS_LIBS).
22437 (dbusbind.o): New target.
22438
22439 * dbusbind.c: New file.
22440
22441 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22442
22443 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22444 (Qdbus_event): New Lisp symbol.
22445 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22446 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22447 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22448
22449 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22450
224512007-12-01 Richard Stallman <rms@gnu.org>
22452
22453 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22454
224552007-11-30 Jason Rumney <jasonr@gnu.org>
22456
22457 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22458 (w32con_reset_terminal_modes): Clear screen buffer.
22459 (w32_face_attributes): Don't use color indexes that are out of range.
22460 Only reverse the default colors.
22461
22462 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22463 WINDOWSNT.
22464
22465 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22466
224672007-11-29 Jason Rumney <jasonr@gnu.org>
22468
22469 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22470 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22471 if the terminal colors are initialized.
22472 (unspecified_fg, unspecified_bg): Remove unused declarations.
22473
224742007-11-29 Andreas Schwab <schwab@suse.de>
22475
22476 * keyboard.c (apply_modifiers): Fix typo.
22477
224782007-11-29 Richard Stallman <rms@gnu.org>
22479
22480 * keymap.c (Fcurrent_local_map): Doc fix.
22481
224822007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22483
22484 * s/gnu-kfreebsd.h: New file.
22485
224862007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22487
22488 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22489 Don't cast redundantly.
22490
22491 * keyboard.c (KEY_TO_CHAR): New macro.
22492 (parse_modifiers, apply_modifiers): Accept integer arguments.
22493 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22494 for chars and symbol keys.
22495 After doing such remapping, apply function-key-map again.
22496
224972007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22498
22499 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22500 compiled anymore.
22501
225022007-11-26 Andreas Schwab <schwab@suse.de>
22503
22504 * process.c (list_processes_1): Fix indentation level of the
22505 command column.
22506
225072007-11-23 Andreas Schwab <schwab@suse.de>
22508
22509 * editfns.c (Fformat): Handle %c specially since it requires the
22510 argument to be of type int.
22511
225122007-11-23 Markus Triska <markus.triska@gmx.at>
22513
22514 * emacs.c (main): Call init_editfns before init_process, since
22515 init_process sets Vprocess_connection_type depending on OS release.
22516
225172007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22518
22519 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22520 (find_symbol_value): Use do_symval_forwarding.
22521
22522 * data.c (set_internal): Set the value in the `cons-cell' (for
22523 Buffer_Local_values) not only for frame-local variables.
22524
225252007-11-22 Andreas Schwab <schwab@suse.de>
22526
22527 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22528 values to sprintf.
22529 * keymap.c (Fsingle_key_description): Likewise.
22530 * print.c (print_object): Likewise.
22531
225322007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22533
22534 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22535 file for image is nil.
22536
225372007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22538
22539 * term.c: Include stdarg.h.
22540 (fatal): Implement using varargs.
22541 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22542
225432007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22544
22545 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22546 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22547 Update call to buffer_slot_type_mismatch.
22548 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22549 (buffer_slot_type_mismatch): Update.
22550 * buffer.c (buffer_local_types): Remove.
22551 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22552 (defvar_per_buffer): Set the type in the buffer_objfwd.
22553
225542007-11-21 Jason Rumney <jasonr@gnu.org>
22555
22556 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22557 CreateFileMapping returns NULL on failure.
22558
225592007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22560
22561 * search.c (Fset_match_data): Remove the `evaporate' feature.
22562 (unwind_set_match_data): Don't use the `evaporate' feature.
22563
225642007-11-21 Jason Rumney <jasonr@gnu.org>
22565
22566 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22567
22568 * w32console.c (w32con_write_glyphs): Remove unused variables.
22569
225702007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22571
22572 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22573
22574 * s/darwin.h (MULTI_KBOARD): Remove.
22575
22576 * macfns.c (x_create_tip_frame, Fx_create_frame)
22577 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22578
225792007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22580
22581 * buffer.c (Fbuffer_local_value): Remove redundant test.
22582 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22583 than in `current-buffer' to match the comment.
22584 Do the swap using swap_in_global_binding.
22585
22586 * data.c (store_symval_forwarding, set_internal):
22587 * eval.c (specbind): Remove dead code.
22588
22589 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22590 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22591 Since we do not want to see internal Lisp_*fwd objects here.
22592
225932007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22594
22595 * sysdep.c (init_system_name): Use getaddrinfo if available.
22596
22597 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22598 (x_scroll_bar_note_movement): start, end, with, height in struct
22599 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22600
226012007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22602
22603 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22604
226052007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22606
22607 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22608 This undoes Richard's change of 14-Oct-2002.
22609
22610 * alloc.c (allocate_other_vector):
22611 * lisp.h (allocate_other_vector): Remove.
22612
22613 * window.c (struct save_window_data): Move non-lisp data to the end
22614 and make it `int' rather than Lisp_Object.
22615 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22616 Done wrap/unwrap integer values.
22617 (Fset_window_configuration, compare_window_configurations):
22618 Update use of fields to their new types.
22619
22620 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22621 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22622 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22623 (SET_SCROLL_BAR_X_WINDOW): Remove.
22624 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22625 Access the new x_window field directly.
22626 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22627 Don't wrap/unwrap integers into Lisp_Objects.
22628 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22629 (x_scroll_bar_report_motion):
22630 Don't wrap/unwrap integers into Lisp_Objects.
22631 (x_term_init): Use SDATA.
22632 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22633 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22634 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22635 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22636 * xfns.c (x_set_background_color):
22637 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22638 Access the new x_window field directly.
22639
22640 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22641 (allocate_pseudovector): Make non-static.
22642
22643 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22644 (allocate_pseudovector): Declare.
22645 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22646
226472007-11-15 Andreas Schwab <schwab@suse.de>
22648
22649 * editfns.c (Fformat): Correctly format EMACS_INT values.
22650 Also take precision into account when formatting an integer.
22651
22652 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22653
226542007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22655
22656 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22657 (syms_of_keyboard): Defsubr it.
22658
22659 * data.c (swap_in_global_binding): Fix longstanding bug where
22660 store_symval_forwarding was not called with the right second argument,
22661 thus causing objfwd-ing from being dropped.
22662
226632007-11-14 Juanma Barranquero <lekktu@gmail.com>
22664
22665 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22666 (Fx_display_pixel_height, Fx_display_planes)
22667 (Fx_display_color_cells, Fx_server_max_request_size)
22668 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22669 (Fx_display_visual_class, Fx_display_save_under):
22670 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22671 (Fx_display_pixel_height, Fx_display_planes)
22672 (Fx_display_color_cells, Fx_server_max_request_size)
22673 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22674 (Fx_display_mm_height, Fx_display_mm_width)
22675 (Fx_display_backing_store, Fx_display_visual_class)
22676 (Fw32_select_font, Fx_display_save_under):
22677 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22678 (Fx_display_pixel_height, Fx_display_planes)
22679 (Fx_display_color_cells, Fx_server_max_request_size)
22680 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22681 (Fx_display_save_under): Fix typos in docstrings.
22682
226832007-11-14 Juanma Barranquero <lekktu@gmail.com>
22684
22685 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22686 corresponding to deleted entries; they are an implementation detail.
22687 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22688 Remove variables.
22689 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22690 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22691 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22692 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22693 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22694 (Fw32_define_rgb_color, Fw32_load_color_file)
22695 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22696 Fix typos in docstrings.
22697 (Fx_server_version): Reflow docstring.
22698 (Fw32_shell_execute): Doc fixes.
22699
227002007-11-13 Juanma Barranquero <lekktu@gmail.com>
22701
22702 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22703 if w32_parse_hot_key returned nil.
22704
227052007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22706
22707 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22708
227092007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22710
aac0c6e3
MR
22711 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22712
22713 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22714
22715 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22716 Remove W32_SCROLL_BAR_CLICK_EVENT.
22717
22718 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22719 Add MULTIMEDIA_KEY_EVENT.
22720
22721 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22722 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22723 (make_lispy_event) [WINDOWSNT]: Use it to translate
22724 MULTIMEDIA_KEY_EVENT.
22725
22726 * w32term.h (WM_APPCOMMAND): Define if not already.
22727 (GET_APPCOMMAND_LPARAM): Likewise.
22728
22729 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22730 WM_APPCOMMAND.
22731
22732 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22733 (syms_of_w32fns): Export and initialize it.
22734 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22735
227362007-11-09 Chong Yidong <cyd@stupidchicken.com>
22737
22738 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22739 twice.
22740
22741 * xdisp.c (handle_face_prop): Fix last change.
22742
227432007-11-09 Richard Stallman <rms@gnu.org>
22744
22745 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22746 not just for after-strings and before-strings.
22747 Call face_for_overlay_string and pass the overlay to it.
22748 (handle_display_prop): Determine whether property came from an overlay.
22749 Pass OVERLAY arg to handle_single_display_spec.
22750 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22751 (load_overlay_strings): Fill in it->string_overlays.
22752 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22753
22754 * xfaces.c (face_for_overlay_string): Function renamed from
22755 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22756
22757 * dispextern.h (struct it): New elt string_overlays.
22758 New elt from_overlay, also in stack.
22759 Rearrange a few elements.
22760 (face_for_overlay_string): Decl renamed from
22761 face_at_buffer_position_no_overlays, and add argument.
22762
227632007-11-09 Richard Stallman <rms@gnu.org>
22764
22765 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22766 to get the base face for an overlay string.
22767
22768 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22769
22770 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22771
22772 * xdisp.c (handle_stop): Move some code out of loop.
22773
227742007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22775
22776 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22777 Fix conversion from Lisp object to ATSUFontID.
22778
227792007-11-09 Jason Rumney <jasonr@gnu.org>
22780
22781 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22782
227832007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22784
22785 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22786 Don't assume regions are aligned to page boundary.
22787 (print_load_command_name): Add LC_UUID if defined.
22788
227892007-11-09 Richard Stallman <rms@gnu.org>
22790
22791 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22792
227932007-11-07 Jason Rumney <jasonr@gnu.org>
22794
22795 * s/windows95.h: Remove.
22796
227972007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22798
22799 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22800 abort with a message on unhandled store_type values.
22801
228022007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22803
22804 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22805 Remove HAVE_X11R5 and HAVE_X11R4.
22806
228072007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22808
22809 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22810
228112007-11-01 Johan Bockgård <bojohan@gnu.org>
22812
22813 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22814 Don't set s->stippled_p here, since it has already been set by
22815 x_set_glyph_string_gc from x_draw_glyph_string.
22816
228172007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22818
22819 * sunfns.c: Remove file.
22820
22821 * m/sun386.h:
22822 * m/sun2.h:
22823 * m/sparc.h: Remove Sun windows code.
22824
228252007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22826
22827 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22828 (init_keyboard): Set current_kboard's window-system to nil.
22829 (tty_read_avail_input): Typo.
22830 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22831
228322007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22833
22834 * s/usg5-4.h:
22835 * s/usg5-3.h:
22836 * s/ptx.h:
22837 * m/is386.h:
22838 * m/ibmps2-aix.h:
22839 * Makefile.in: Remove all mentions of X10.
22840
22841 * dispnew.c (syms_of_display): Don't mention version 10.
22842
228432007-10-28 Juanma Barranquero <lekktu@gmail.com>
22844
22845 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22846 ($(BLD)/abbrev.$(O)): Remove.
22847
228482007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22849
22850 Rewrite abbrev.c in Elisp.
22851 * image.c (Qcount): Don't declare as extern.
22852 (syms_of_image): Initialize and staticpro `Qcount'.
22853 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22854 * emacs.c (main): Don't call syms_of_abbrev.
22855 * Makefile.in (obj): Remove abbrev.o.
22856 (abbrev.o): Remove.
22857 * abbrev.c: Remove.
22858
228592007-10-26 Martin Rudalics <rudalics@gmx.at>
22860
22861 * window.c (window_min_size_2): Don't count header-line.
22862
228632007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22864
22865 * frame.h (struct frame): Move all bit fields after the first bit
22866 field to take advantage of the available space. Group all the
22867 chars together to reduce wasted space due to padding.
22868
228692007-10-26 Juanma Barranquero <lekktu@gmail.com>
22870
22871 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22872
22873 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22874 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22875 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22876 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22877 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22878 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22879 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22880 (last_marked, mark_object_loop_halt): Make static.
22881
22882 * frame.c (syms_of_frame) <delete-frame-functions>:
22883 Fix typo in docstring.
22884
228852007-10-25 Juanma Barranquero <lekktu@gmail.com>
22886
22887 * w32.c (init_environment): Fix tiny memory leak.
22888 (w32_get_resource): Remove unused variable `ok'.
22889
228902007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22891
22892 Make `window-system' into a keyboard-local variable (rather than
22893 frame-local as done originally by multi-tty).
22894
22895 * keyboard.h (struct kboard): Add Vwindow_system.
22896 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22897 (mark_kboards): Mark Vwindow_system.
22898
22899 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22900 (init_display): Don't set the obsolete `window-system' frame-param.
22901
22902 * xterm.c (x_term_init):
22903 * w32term.c (w32_create_terminal):
22904 * term.c (init_tty): Set Vwindow_system.
22905 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22906 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22907
22908 * xfns.c (Fx_create_frame, x_create_tip_frame):
22909 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22910 * macfns.c (Fx_create_frame):
22911 Don't set the obsolete `window-system' frame-param.
22912
22913 * frame.h (Qwindow_system): Remove.
22914 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22915 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22916
229172007-10-24 Richard Stallman <rms@gnu.org>
22918
22919 * frame.c (x_figure_window_size): For fullscreen case,
22920 set USPosition | PPosition without clobbering rest of window_prompting.
22921
22922 * keyboard.c (Fcurrent_idle_time): Doc fix.
22923
22924 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22925
229262007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22927
22928 * process.c (unwind_request_sigio): Only define if __ultrix__.
22929
22930 * callproc.c (child_setup): Remove spurious *.
22931
22932 * lisp.h (Fget_text_property): Declare.
22933 (have_menus_p): Declare it here rather than in sys-dep header files.
22934 * macterm.h (have_menus_p):
22935 * msdos.h (have_menus_p):
22936 * xterm.h (have_menus_p): Remove.
22937
22938 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22939 (Fmake_variable_frame_local): Just check the variable's const-ness
22940 rather than checking nil or t.
22941
229422007-10-22 Jason Rumney <jasonr@gnu.org>
22943
22944 * w32fns.c: Include math.h.
22945 (w32_abort): Declaration moved to nt/config.nt.
22946
22947 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22948 (abort): Redefinition moved to nt/config.nt.
22949
22950 * m/windowsnt.h: Remove.
22951
229522007-10-22 Juanma Barranquero <lekktu@gmail.com>
22953
22954 * emacs.c (Fdump_emacs): Fix typo in message.
22955 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22956 <installation-directory>: Reflow docstring.
22957
229582007-10-22 Juri Linkov <juri@jurta.org>
22959
22960 * minibuf.c: Allow minibuffer default to be a list of default values.
22961 With empty input use the first element of this list as returned default.
22962 (string_to_object)
22963 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22964 (read_minibuf): If defalt is cons, set histstring to its car.
22965 (Fread_string): If default_value is cons, set val to its car.
22966 (Fread_buffer): If def is cons, use its car.
22967 (Fcompleting_read): If defalt is cons, set val to its car.
22968
229692007-10-21 Michael Albinus <michael.albinus@gmx.de>
22970
22971 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22972
229732007-10-20 Juanma Barranquero <lekktu@gmail.com>
22974
22975 * doc.c (Fdocumentation): Check for advice in all cases.
22976
229772007-10-19 Chong Yidong <cyd@stupidchicken.com>
22978
22979 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22980
229812007-10-19 Richard Stallman <rms@gnu.org>
22982
22983 * doc.c (Fdocumentation): Check for and handle an advised function.
22984
229852007-10-19 Juanma Barranquero <lekktu@gmail.com>
22986
22987 * process.c (Fset_process_filter): Doc fix.
22988
229892007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22990
22991 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22992 which caused key-translation-map to applied repeatedly (thus breaking
22993 double-mode).
22994
229952007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22996
22997 * xselect.c (x_own_selection, x_handle_selection_clear)
22998 (x_clear_frame_selections):
22999 * w32menu.c (list_of_panes, list_of_items):
23000 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23001 * textprop.c (validate_plist, interval_has_all_properties)
23002 (interval_has_some_properties, interval_has_some_properties_list)
23003 (add_properties, text_property_list):
23004 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23005 * minibuf.c (Fassoc_string):
23006 * macselect.c (x_own_selection, x_clear_frame_selections)
23007 (Fx_disown_selection_internal):
23008 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23009 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23010
230112007-10-17 Chong Yidong <cyd@stupidchicken.com>
23012
23013 * process.c: Link to libs for calling res_init() if available.
23014 (Fmake_network_process): Call res_init() before getaddrinfo or
23015 gethostbyname, if possible.
23016
230172007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23018
23019 * lread.c (read1): Set pvectype for char_tables.
23020
23021 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23022 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23023 Add type checks.
23024 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23025
23026 * alloc.c (free_misc): Use XMISCTYPE.
23027 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23028
230292007-10-17 Glenn Morris <rgm@gnu.org>
23030
23031 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23032 (syms_of_minibuf): Add Qcompletion_ignore_case.
23033 * dired.c (Qcompletion_ignore_case): Change to external.
23034 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23035 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23036 (Fread_file_name): Use it rather than intern'ing.
23037
23038 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23039 (Fread_coding_system): Ignore case of user input.
23040
230412007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23042
23043 * xdisp.c (handle_display_prop): Ignore display specs after
23044 replacing one when string text is being replaced.
23045 (handle_single_display_spec): Pretend as if characters with display
23046 property haven't been consumed only when buffer text is being replaced.
23047
230482007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23049
23050 * xfns.c (Fx_create_frame, Fx_display_list):
23051 * window.c (window_fixed_size_p, enlarge_window)
23052 (shrink_window_lowest_first):
23053 * macterm.c (init_font_name_table):
23054 * macfns.c (Fx_create_frame, Fx_display_list):
23055 * lread.c (close_load_descs):
23056 * keyboard.c (read_char_x_menu_prompt):
23057 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23058 * coding.c (code_convert_region_unwind): Test the type of an object
23059 rather than just !NILP before extracting data from it.
23060
23061 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23062
23063 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23064 (XMISCANY): New macro.
23065 (XMISCTYPE): Use it.
23066 (struct Lisp_Misc_Any): New type.
23067 (union Lisp_Misc): Use it.
23068 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23069 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23070 (find_symbol_value, set_internal, default_value, Fset_default)
23071 (Fmake_variable_buffer_local, Fmake_local_variable)
23072 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23073 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23074 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23075 * alloc.c (allocate_buffer): Set the size and tag.
23076 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23077 Use XMISCANY.
23078 (die): Follow the GNU convention for error messages.
23079 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23080 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23081 tag any more.
23082 (set_buffer_internal_1):
23083 * frame.c (store_frame_param):
23084 * eval.c (specbind):
23085 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23086
23087 * doc.c (Fsnarf_documentation): Simplify.
23088
230892007-10-14 Juanma Barranquero <lekktu@gmail.com>
23090
23091 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23092 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23093
230942007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23095
23096 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23097
230982007-10-14 Juanma Barranquero <lekktu@gmail.com>
23099
23100 * eval.c (do_autoload): Don't save autoloads.
23101
23102 * data.c (Ffset): Save autoload of the function being set.
23103
231042007-10-07 John Paul Wallington <jpw@pobox.com>
23105
23106 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23107 parameter before setting up faces.
23108
231092007-10-13 Eli Zaretskii <eliz@gnu.org>
23110
23111 * ccl.c (Fregister_code_conversion_map):
23112 * keyboard.c (append_tool_bar_item): Reformat last change.
23113
23114 * lisp.h (eabs): Rename from `abs'. All callers changed.
23115
231162007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23117
23118 * buffer.c (add_overlay_mod_hooklist):
23119 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23120 * fontset.c (make_fontset):
23121 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23122 (append_tool_bar_item):
23123 * macmenu.c (grow_menu_items):
23124 * w32menu.c (grow_menu_items):
23125 * xmenu.c (grow_menu_items): Use larger_vector.
23126
231272007-10-13 Eli Zaretskii <eliz@gnu.org>
23128
23129 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23130 selected frame'' on MSDOS).
23131
231322007-10-12 Martin Rudalics <rudalics@gmx.at>
23133
23134 * frame.c (Qexplicit_name): New variable.
23135 (x_report_frame_params): Report it in parameter alist.
23136 (syms_of_frame): Intern and staticpro it.
23137
231382007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23139
23140 * macfns.c (x_create_tip_frame): Set terminal for frame.
23141
231422007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23143
23144 * frame.c (Qenvironment): Remove.
23145 (syms_of_frame) <Qenvironment>: Don't initialize.
23146 (Fdelete_frame): Don't treat the `environment' param specially.
23147 * frame.h (Qenvironment): Don't declare.
23148 * callproc.c (set_initial_environment): Don't set unused frame param.
23149
23150 * frame.c (Fframe_with_environment): Remove.
23151 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23152
23153 * lisp.h (Fframe_with_environment): Don't declare.
23154
231552007-10-10 Juanma Barranquero <lekktu@gmail.com>
23156
23157 * indent.c (indent_tabs_mode, last_known_column)
23158 (last_known_column_modified): Make static.
23159 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23160
231612007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23162
23163 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23164
231652007-10-09 Jason Rumney <jasonr@gnu.org>
23166
23167 * w32term.c (x_set_window_size): Disable code that attempts to tell
23168 Lisp code about a size change before it actually happens.
23169
231702007-10-09 Richard Stallman <rms@gnu.org>
23171
23172 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23173 return HANDLED_RETURN.
23174
231752007-10-08 Martin Rudalics <rudalics@gmx.at>
23176
23177 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23178 when there's an unread command event.
23179
23180 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23181 window autoselection act appropriately when leaving selected frame.
23182 (syms_of_frame): Initialize focus_follows_mouse.
23183 * frame.h (focus_follows_mouse): Extern it.
23184 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23185 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23186 * msdos.c (dos_rawgetc): Likewise.
23187 * w32term.c (w32_read_socket): Likewise.
23188 * xterm.c (handle_one_xevent): Likewise.
23189 * xdisp.c (syms_of_xdisp): In doc-string of
23190 mouse-autoselect-window mention focus-follows-mouse.
23191
231922007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23193
23194 * macterm.c (mac_load_query_font): Fix missing return value.
23195 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23196 Add BLOCK_INPUT.
23197
231982007-10-08 Richard Stallman <rms@gnu.org>
23199
23200 * xdisp.c (get_window_cursor_type): Implement documented behavior
23201 for cursor-in-non-selected-windows = t.
23202
232032007-10-08 Jason Rumney <jasonr@gnu.org>
23204
23205 * w32.c (w32_get_resource): Always close registry keys.
23206
232072007-10-08 Jason Rumney <jasonr@gnu.org>
23208
23209 * makefile.w32-in (LIBS): Add COMCTL32.
23210
23211 * w32fns.c (globals_of_w32fns): Init common controls.
23212
232132007-10-08 Richard Stallman <rms@gnu.org>
23214
23215 * image.c (our_memory_buffer): Rename from omfib_buffer.
23216
232172007-10-08 Richard Stallman <rms@gnu.org>
23218
23219 * buffer.c (Foverlays_at): Doc fix.
23220
232212007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23222
23223 * fns.c (Fplist_put): Preserve uneven tail data.
23224
232252007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23226
23227 * termhooks.h (enum event_kind): Remove trailing comma.
23228
23229 * frame.h (enum): Remove trailing comma.
23230
232312007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23232
23233 * w32proc.c (delete_child): Don't terminate threads of zombies.
23234
232352007-10-08 Martin Rudalics <rudalics@gmx.at>
23236
23237 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23238
23239 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23240 last-repeatable-command.
23241 (init_kboard): Initialize Vlast_repeatable_command.
23242 (command_loop_1): Set it to real_this_command unless that was
23243 bound to an input event.
23244 (mark_kboards): Mark it.
23245
232462007-10-08 Richard Stallman <rms@gnu.org>
23247
23248 * eval.c (condition-case): Doc fix.
23249
232502007-10-08 Masatake YAMATO <jet@gyve.org>
23251
23252 * xfaces.c (tty_supports_face_attributes_p): Fix code
23253 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23254 was copied and not edited.
23255
232562007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23257
23258 Add new `input-decode-map' keymap and use it for terminal
23259 escape sequences.
23260 * keyboard.h (struct kboard): Add Vinput_decode_map.
23261 Remove Vlocal_key_translation_map.
23262 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23263 (init_kboard): Init input-decode-map.
23264 Replace local-key-translation-map back with key-translation-map.
23265 (syms_of_keyboard): Declare input-decode-map.
23266 Remove local-key-translation-map. Update docstrings.
23267 (mark_kboards): Mark Vinput_decode_map.
23268 Don't mark Vlocal_key_translation_map.
23269 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23270 Replace local-key-translation-map back with key-translation-map.
23271 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23272 Bind in input-decode-map rather than function-key-map.
23273
23274 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23275 This was made redundant by the previous introduction of XSETPVECTYPE.
23276
232772007-10-09 Richard Stallman <rms@gnu.org>
23278
23279 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23280
232812007-09-29 Richard Stallman <rms@gnu.org>
23282
23283 * eval.c (internal_condition_case_2, internal_condition_case_1)
23284 (internal_condition_case): Reenable abort if x_catching_errors ()
23285 to see if that really happens and why.
23286
232872007-10-06 Andreas Schwab <schwab@suse.de>
23288
23289 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23290
232912007-10-04 Juanma Barranquero <lekktu@gmail.com>
23292
23293 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23294
232952007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23296
23297 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23298
232992007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23300
23301 * window.h (struct window):
23302 * window.c (struct save_window_data, struct saved_window):
23303 * termhooks.h (struct terminal):
23304 * process.h (struct Lisp_Process):
23305 * frame.h (struct frame):
23306 * buffer.h (struct buffer):
23307 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23308 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23309 The size field of (pseudo)vectors is now unsigned.
23310 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23311
23312 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23313 Turn `count' into an integer.
23314
23315 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23316 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23317 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23318 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23319 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23320
23321 * alloc.c (allocate_pseudovector): New fun.
23322 (ALLOCATE_PSEUDOVECTOR): New macro.
23323 (allocate_window, allocate_terminal, allocate_frame)
23324 (allocate_process): Use it.
23325 (mark_vectorlike): New function.
23326 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23327 (mark_terminals): Use it.
23328 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23329 (Fmake_byte_code): Use XSETPVECTYPE.
23330
23331 * frame.c (Fframe_parameters): Minor simplification.
23332
23333 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23334
23335 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23336
23337 * buffer.c (Fget_buffer_create, init_buffer_once):
23338 * lread.c (defsubr):
23339 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23340
23341 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23342 defined differently in the m/*.h files.
23343 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23344 (XSETPVECTYPE): New macro.
23345 (XSETPSEUDOVECTOR): Use it.
23346
23347 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23348 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23349
23350 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23351 * lread.c (defvar_per_buffer):
23352 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23353
23354 * window.c (candidate_window_p): Only consider as visible frames that
23355 are on the same terminal.
23356
23357 * m/ibms390x.h (MARKBIT): Remove unused macro.
23358
233592007-10-01 Juanma Barranquero <lekktu@gmail.com>
23360
23361 * lread.c (Fload): Fix typo in docstring.
23362
233632007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23364
23365 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23366 of a non-zero value can't yield zero.
23367
233682007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23369
23370 * term.c (term_clear_mouse_face, term_mouse_highlight)
23371 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23372
23373 * print.c (safe_debug_print): Use XHASH.
23374
23375 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23376 Lisp elements such as tags.
23377 (XHASH): New macro.
23378 (EQ): Use it.
23379 (SREF, SSET, STRING_COPYIN): Use SDATA.
23380 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23381
23382 * alloc.c (mark_terminal): Remove left-over declaration.
23383 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23384 (allocate_vectorlike): Remove type argument. Adjust callers.
23385 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23386 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23387
23388 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23389 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23390 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23391 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23392 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23393 Use them.
23394
23395 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23396 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23397 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23398
233992007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23400
23401 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23402 loaded by default.
23403
234042007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23405
23406 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23407 on this tty.
23408 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23409
23410 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23411 Update all users.
23412 (handle_one_term_event): Use Gpm_DrawPointer.
23413 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23414 Signal errors instead of returning nil. Always return nil.
23415 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23416 Make it a noop if gpm-mouse was not activated.
23417 (syms_of_term): Update names.
23418
234192007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23420
23421 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23422 (init_sys_modes): Check that gpm_tty is the current tty.
23423
23424 * alloc.c (allocate_terminal): Set the vector size to only count the
23425 lisp fields. Initialize those to nil.
23426 (mark_object): Don't treat terminals specially.
23427 (mark_terminal): Remove.
23428 (mark_terminals): Use mark_object instead.
23429
23430 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23431 the GC to the beginning.
23432
23433 * indent.h:
23434 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23435
23436 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23437
234382007-09-25 Jason Rumney <jasonr@gnu.org>
23439
23440 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23441
23442 * w32console.c (create_w32cons_output): Remove.
23443
23444 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23445
23446 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23447 (reset_sys_modes): Use reset_terminal_modes_hook.
23448
234492007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23450
23451 * eval.c (do_autoload): Don't output any message.
23452
234532007-09-24 Juri Linkov <juri@jurta.org>
23454
23455 * emacs.c (standard_args): Change priority of "--no-splash"
23456 from 40 to 3. Add "--no-desktop" with the same priority.
23457
234582007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23459
23460 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23461 and optimize the case where they are all 1.
23462
234632007-09-23 Johannes Weiner <hannes@saeurebad.de>
23464
23465 * lisp.h (abs): Define if not defined.
23466 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23467 Don't define `abs', since it's defined in lisp.h.
23468
234692007-09-22 Eli Zaretskii <eliz@gnu.org>
23470
23471 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23472 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23473 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23474 (init_tty): Use DEV_TTY instead of "/dev/tty".
23475 [WINDOWSNT]: No need to protect from NAME arg being null.
23476
234772007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23478
23479 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23480 up the tty state.
23481
234822007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23483
23484 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23485 (gpm_tty): Change its type.
23486 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23487 (gpm_tty): Change its type and initialize it.
23488 (Fterm_open_connection): Check the frame is indeed a tty.
23489 Use the new gpm_tty.
23490 (Fterm_close_connection): Use the new gpm_tty.
23491 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23492 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23493
234942007-09-21 Juanma Barranquero <lekktu@gmail.com>
23495
23496 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23497 underline_color, to draw strike-through.
23498
234992007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23500
23501 * lisp.h (allocate_terminal): Declare.
23502
23503 * window.c (candidate_window_p): Consider frames that are being placed
23504 by the user as somewhere between visible and iconified.
23505 (window_loop): Prefer windows on the current frame.
23506 (Fselect_window): Move the use of select-frame to the beginning so we
23507 can just delegate all the work (it'll call us back anyway).
23508
23509 * frame.c (Qdisplay_environment_variable):
23510 * frame.h (Qdisplay_environment_variable): Delete.
23511
23512 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23513 of the first arg, since that value may be a union.
23514
23515 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23516 parameter rather than Qdisplay_environment_variable. If all else
23517 fails, look for DISPLAY in initial-environment.
23518
235192007-09-21 Glenn Morris <rgm@gnu.org>
23520
23521 * Makefile.in (emacstool): Remove target.
23522 (lisp, shortlisp): Remove termdev.elc.
23523
235242007-09-21 Markus Triska <markus.triska@gmx.at>
23525
23526 * xterm.c (x_delete_display): Compile session management conditionally.
23527
235282007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23529
23530 * callproc.c (getenv_internal_1): New function.
23531 (getenv_internal): Use it.
23532 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23533
23534 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23535 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23536 (Fset_terminal_parameter): Work with dead terminals as well.
23537 (Fmodify_terminal_parameters): Remove.
23538
23539 * terminal.c (get_terminal): Handle terminals.
23540 Make sure the terminal returned is live.
23541 (create_terminal): Use allocate_terminal.
23542 (mark_terminals): Move to alloc.c.
23543 (delete_terminal): Use terminal->name as liveness status.
23544 NULL out fields after freeing their contents.
23545 Don't deallocate the object.
23546 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23547 rather than an int.
23548 (Fterminal_live_p): Accept non-integer arguments.
23549 (Fterminal_list): Return terminal objects rather than an ints.
23550
23551 * alloc.c (enum mem_type): New member for `terminal' objects.
23552 (allocate_terminal): New function.
23553 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23554 Handle terminals.
23555 (mark_terminal): New fun.
23556 (mark_terminals): Move from terminal.c.
23557
23558 * term.c (get_tty_terminal): Don't treat output_initial specially.
23559 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23560 (delete_tty): Use terminal->name as liveness status.
23561
23562 * termhooks.h (struct terminal): Make it into a pseudovector.
23563 Remove `deleted' replaced by checking `name's nullness.
23564
23565 * print.c (print_object): Handle terminals.
23566
23567 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23568 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23569
23570 * frame.c (make_terminal_frame):
23571 * keyboard.c (tty_read_avail_input):
23572 * w32term.c (x_delete_terminal):
23573 * xfns.c (Fx_create_frame, x_create_tip_frame):
23574 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23575
235762007-09-20 Glenn Morris <rgm@gnu.org>
23577
23578 * process.c (Fmake_network_process): Doc fix.
23579
235802007-09-19 Jason Rumney <jasonr@gnu.org>
23581
23582 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23583
235842007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23585
23586 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23587 Fix a C warning regarding variable constness.
23588
23589 * xterm.c (handle_one_xevent): Fix a C warning.
23590
235912007-09-18 Jason Rumney <jasonr@gnu.org>
23592
23593 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23594
235952007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23596
23597 * gtkutil.c (gdpy_def): New variable.
23598 (xg_initialize): Initialize gdpy_def.
23599 (xg_display_close): If no other display exists, set gdpy_def to a
23600 new connection.
23601
236022007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23603
23604 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23605 when we have no file name for the icon.
23606 (xg_tool_bar_expose_callback): Remove.
23607 (xg_create_tool_bar): Don't connect expose signal to
23608 xg_tool_bar_expose_callback.
23609 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23610
236112007-09-16 Andreas Schwab <schwab@suse.de>
23612
23613 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23614 values instead of zapping them.
23615
236162007-09-14 Glenn Morris <rgm@gnu.org>
23617
23618 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23619 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23620 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23621 scope and rename to omfib_buffer for clarity.
23622 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23623
236242007-09-14 Kenichi Handa <handa@m17n.org>
23625
23626 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23627
236282007-09-13 Jason Rumney <jasonr@gnu.org>
23629
23630 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23631
23632 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23633
23634 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23635 (mac_term_init): Call here instead, passing rif.
23636
236372007-09-13 Glenn Morris <rgm@gnu.org>
23638
23639 * s/hpux.h: No longer define `static' as nothing.
23640
236412007-09-13 Johan Bockgård <bojohan@gnu.org>
23642
23643 * callint.c (Fcall_interactively): Remove unused var `fun'.
23644
236452007-09-12 Romain Francoise <romain@orebokech.com>
23646
23647 * window.c (prefer_window_split_horizontally, display_buffer):
23648 Revert 2007-09-08 change.
23649
236502007-09-12 Glenn Morris <rgm@gnu.org>
23651
23652 * alloca.c: Remove file.
23653 * Makefile.in (alloca): Do not undef.
23654 (allocaobj, alloca.o): Remove.
23655 (otherobj): Remove allocaobj.
23656 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23657 * regex.c (C_ALLOCA): Remove all references and code that was only
23658 used when this was defined.
23659 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23660 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23661 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23662
23663 * Makefile.in (SOURCES, unlock, relock): Delete.
23664
23665 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23666 (menu_grab_callback): All uses changed.
23667
23668 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23669 (x_reply_selection_request): All uses changed.
23670
236712007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23672
23673 * lread.c (load_warn_old_style_backquotes): Change message to look
23674 better when it appears in the middle of byte-compiler messages.
23675
236762007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23677
23678 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23679
23680 * xterm.c (x_create_terminal): Add comment.
23681
23682 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23683
236842007-09-10 Richard Stallman <rms@gnu.org>
23685
23686 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23687
236882007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23689
23690 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23691 (DEFUN): Document `intspec', use it instead of `prompt'.
23692
23693 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23694
23695 * data.c (Finteractive_form): If the interactive specification starts
23696 with a `(', use it as a Lisp form.
23697
23698 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23699 name and file modes.
23700
23701 * callint.c (Fcall_interactively): Comment fixes.
23702
237032007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23704
23705 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23706 and compiled functions.
23707
237082007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23709
23710 * window.c (prefer_window_split_horizontally): New variable.
23711 (display_buffer): Consider splitting window horizontally depending
23712 on prefer_window_split_horizontally.
23713
237142007-09-08 Eli Zaretskii <eliz@gnu.org>
23715
23716 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23717
237182007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23719
23720 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23721
23722 * frame.c (x_set_frame_parameters): Check number is positive before
23723 using XFASTINT.
23724
23725 * window.c (freeze_window_start): Don't presume selected_window holds
23726 a window object.
23727 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23728
237292007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23730
23731 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23732
237332007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23734
23735 * window.c (Vsplit_window_preferred_function): New var.
23736 (Fdisplay_buffer): Use it.
23737 (syms_of_window): Export, and initialize it.
23738
237392007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23740
23741 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23742
237432007-09-06 Glenn Morris <rgm@gnu.org>
23744
23745 * gtkutil.c (menu_grab_callback) <cnt>:
23746 * xselect.c (x_reply_selection_request) <cnt>: Move static
23747 variable to file scope.
23748
237492007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23750
23751 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23752 consistent values of selected_frame and selected_window.
23753
237542007-09-04 Jason Rumney <jasonr@gnu.org>
23755
23756 * w32console.c (initialize_w32_display): Zero unused hooks.
23757
237582007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23759
23760 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23761 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23762
237632007-09-04 Jason Rumney <jasonr@gnu.org>
23764
23765 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23766 in w32console.c. Set up input. Remove XXX comments that have been
23767 confirmed as correct.
23768
23769 * s/ms-w32.h (MULTI_KBOARD): Define.
23770
23771 * w32console.c (one_and_only_w32cons): Remove.
23772 (initialize_w32_display): Take terminal argument.
23773
23774 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23775 initialize_w32_display.
23776 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23777
23778 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23779
23780 * keyboard.c (discard_mouse_events): Discard it.
23781 (make_lispy_event): Translate it to a lisp event.
23782 (lispy_wheel_names): Add wheel-left and right events.
23783 (syms_of_keyboard): Enlarge wheel_syms.
23784
23785 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23786 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23787
23788 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23789
23790 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23791 from WM_MOUSEHWHEEL.
23792 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23793
23794 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23795 terminal.
23796
23797 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23798 keyboard for the terminal.
23799
238002007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23801
23802 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23803 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23804 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23805 and resume-tty-function to resume-tty-hook.
23806 (Fsuspend_tty, Fresume_tty): Use new names.
23807
238082007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23809
23810 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23811 if it starts with "n:".
23812
238132007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23814
23815 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23816
238172007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23818
23819 * frame.h:
23820 * frame.c (Qterm_environment_variable): Remove.
23821 (syms_of_frame): Don't init and staticpro it.
23822
23823 * callproc.c (getenv_internal): Remove special case for $TERM.
23824
23825 * callproc.c (Vinitial_environment): New variable.
23826 (set_initial_environment): Initialize it.
23827 (syms_of_callproc): Declare it.
23828 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23829 TERM under which a process runs is never related to the TERM in which
23830 Emacs is running.
23831
238322007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23833
23834 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23835 * s/darwin.h: ... do it here.
23836
238372007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23838
23839 * lisp.h (set_initial_environment): Rename from set_global_environment.
23840
23841 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23842 removed by mistake on the multi-tty branch.
23843
23844 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23845 (Fmodify_frame_parameters): Return a value.
23846
23847 * image.c (png_load): Comment-out var only used in commented-out code.
23848
23849 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23850 before passing it to mark_object.
23851
23852 * xfaces.c (internal_resolve_face_name): Return a value.
23853 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23854
23855 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23856 (x_icon): Comment-out var only used in commented-out code.
23857
238582007-08-29 Romain Francoise <romain@orebokech.com>
23859
23860 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23861 QUIT hasn't been provided.
23862
238632007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23864
23865 * callproc.c (child_setup, getenv_internal): Use the
23866 display-environment-variable and term-environment-variable frame params.
23867 (set_initial_environment): Initialise Vprocess_environment.
23868
23869 * config.in: Disable multi-keyboard support on a mac.
23870
23871 * frame.c (Qterm_environment_variable)
23872 (Qdisplay_environment_variable): New variables.
23873 (syms_of_frame): Intern and staticpro them.
23874 (Fmake_terminal_frame): Disable output method test.
23875
23876 * frame.h: Declare them here.
23877
23878 * macfns.c (x_set_mouse_color): Get rif from the frame.
23879 (x_set_tool_bar_lines): Don't use updating_frame.
23880 (mac_window): Add 2 new parameters for consistency with other systems.
23881 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23882 frame parameters following what is done in X11 and w32. Don't use
23883 FRAME_MAC_DISPLAY_INFO.
23884 (Fx_open_connection, start_hourglass): Remove window-system check.
23885 (x_create_tip_frame): Get the keyboard from the terminal.
23886
23887 * macmenu.c: Reorder includes.
23888 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23889
23890 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23891 terminal parameter.
23892 (x_clear_frame): Add a frame parameter.
23893 (note_mouse_movement): Get rif from the frame.
23894 (mac_term_init): Initialize the terminal.
23895 (mac_initialize): Make static and move terminal initialization ...
23896 (mac_create_terminal): ... to this new function.
23897
23898 * macterm.h (struct mac_display_info): Add terminal.
23899 (mac_initialize): Delete declaration.
23900
23901 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23902
23903 * sysdep.c: Comment out text after #endif.
23904
23905 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23906 is defined. Better initialize ttys in windows. Use terminal
23907 specific mouse_position_hook.
23908
23909 * termhooks.h (union display_info): Add mac_display_info.
23910
23911 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23912 Set the default minibuffer frame, window_system and the rest of the
23913 frame parameters following what is done in X11.
23914
23915 * w32term.c (w32_initialize): Make static.
23916
23917 * xselect.c (x_handle_selection_clear): Only access
23918 terminal->kboard when MULTI_KBOARD is defined.
23919
23920 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23921 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23922
239232007-08-29 Jason Rumney <jasonr@gnu.org>
23924
23925 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23926 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23927
23928 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23929 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23930
23931 * keyboard.c (restore_kboard_configuration): Only define when
23932 MULTI_KBOARD defined.
23933
23934 * makefile.w32-in: Update dependancies from Makefile.in.
23935 (OBJ1): Add terminal.$(O)
23936
23937 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23938 Don't define function body.
23939 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23940
23941 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23942
23943 * w32.c (request_sigio, unrequest_sigio): Remove.
23944
23945 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23946 (w32con_clear_frame, w32con_clear_end_of_line)
23947 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23948 (w32con_delete_glyphs, w32con_set_terminal_window)
23949 (scroll_line, w32_sys_ring_bell): Add frame arg.
23950 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23951 Add terminal arg.
23952 (PICK_FRAME): Remove.
23953 (w32con_write_glyphs): Use frame specific terminal coding.
23954 (one_and_only_w32cons): New global variable.
23955 (initialize_w32_display): Use it for storing hooks.
23956 (create_w32cons_output): New function.
23957
23958 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23959 arg a frame.
23960
23961 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23962 Set window_system.
23963 (x_set_tool_bar_lines): Don't use updating_frame.
23964 (Fx_create_frame): Set terminal and ref count.
23965 (Fx_open_connection): Remove window-system check.
23966
23967 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23968
23969 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23970 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23971 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23972 Add frame arg.
23973 (x_delete_terminal, w32_create_terminal): New functions.
23974 (w32_term_init): Create a terminal.
23975 (w32_initialize): Move terminal specific initialization to
23976 w32_create_terminal.
23977
23978 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23979 (w32_clear_rect, w32_clear_area): Use background from frame.
23980 (w32_display_info): Add terminal.
23981 (w32_sys_ring_bell, x_delete_display): Declare here.
23982
23983 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23984
23985 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23986
239872007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23988
23989 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23990 Fix get_named_tty calls for the controlling tty.
23991
239922007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23993
194d44e7 23994 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23995
239962007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23997
23998 * term.c (tty_insert_glyphs): Add missing first parameter.
23999
240002007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24001
24002 * buffer.c (Fbuffer_list, Fbury_buffer):
24003 Take frame->buried_buffer_list into account.
24004
24005 * cm.c (current_tty): New variable, for cmputc().
24006 (cmputc): Use it.
24007 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24008 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24009 (cmgoto): Add tty parameter. Pass it on to calccost().
24010 Use emacs_tputs() instead of tputs().
24011
24012 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24013 tputs().
24014 (current_tty): New variable, for cmputc().
24015 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24016
24017 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24018 (internal_condition_case, internal_condition_case_1)
24019 (internal_condition_case_2): Don't abort when x_catching_errors.
24020
24021 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24022 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24023 prevent crashes caused by bogus longjmps in read_char.
24024
24025 * keymap.h (Fset_keymap_parent): Add EXFUN.
24026
24027 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24028 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24029 Remove redundant definition.
24030
24031 * macfns.c (x_set_mouse_color, x_make_gc):
24032 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24033
24034 * w32term.c (x_free_frame_resources):
24035 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24036 (w32_initialize): Use the accessor macros for terminal characteristics.
24037
24038 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24039 Use the accessor macros for terminal characteristics.
24040 * msdos.c (internal_terminal_init): Use the accessor macros for
24041 terminal characteristics.
24042 (ScreenVisualBell, internal_terminal_init):
24043 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24044
24045 * termopts.h (no_redraw_on_reenter): Declare.
24046
24047 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24048 (mark_terminals, mark_ttys): Declare.
24049 (Fgarbage_collect): Call them.
24050 (mark_object): Mark buried_buffer_list.
24051
24052 * prefix-args.c: Include stdlib.h for exit.
24053
24054 * syssignal.h: Add comment.
24055
24056 * indent.c: Include stdio.h.
24057
24058 * window.h (Vinitial_window_system): Declare.
24059 (Vwindow_system): Delete declaration.
24060
24061 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24062
24063 * image.c (lookup_image): Don't initialize `c' until the xasserts
24064 have been run.
24065
24066 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24067 FRAME_FOREGROUND_PIXEL.
24068
24069 * print.c (print_preprocess): Don't lose print_depth levels while
24070 iterating.
24071
24072 * widget.c (update_from_various_frame_slots):
24073 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24074
24075 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24076 frames.
24077 (window_internal_height): Remove bogus make_number call.
24078 (init_window_once): Call make_terminal_frame with two zero parameters.
24079
24080 * fileio.c (Fread_file_name): Update comment.
24081
24082 * callint.c (Fcall_interactively):
24083 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24084 Make sure it is correctly unwound.
24085
24086 * xsmfns.c (x_session_close): New function.
24087
24088 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24089 Delete declarations.
24090
24091 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24092 (x_output): Remove background_pixel and foreground_pixel fields.
24093 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24094 (x_delete_device, x_session_close): Declare.
24095
24096 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24097 (read_filtered_event): Call `read_char' with a local
24098 `wrong_kboard_jmpbuf'.
24099
24100 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24101 Don't call single_kboard_state. Use FRAME_RIF.
24102
24103 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24104 systems.
24105
24106 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24107 (Fframe_with_environment, Fset_input_meta_mode)
24108 (Fset_quit_char): EXFUN.
24109 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24110 (init_sys_modes, reset_sys_modes): Update prototypes.
24111 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24112
24113 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24114 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24115 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24116 Delete declarations.
24117 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24118 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24119 New declarations.
24120
24121 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24122 already does that during init_display(). Call syms_of_keymap
24123 before syms_of_keyboard. Call `syms_of_terminal'.
24124 Call set_initial_environment, not set_process_environment.
24125 (shut_down_emacs): Call reset_all_sys_modes() instead of
24126 reset_sys_modes().
24127
24128 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24129 (internal_resolve_face_name, resolve_face_name_error): New functions.
24130 (resolve_face_name): Protect against loops and errors thrown by Fget.
24131 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24132 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24133
24134 * scroll.c: Replace CURTTY() with local variables throughout the
24135 file (where applicable).
24136 (calculate_scrolling, calculate_direct_scrolling)
24137 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24138 characteristics.
24139
24140 * keymap.c (Vfunction_key_map): Remove.
24141 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24142 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24143 (Vkey_translation_map): Remove.
24144 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24145 (Fdescribe_buffer_bindings)
24146 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24147 Update for terminal-local key-translation-map.
24148
24149 * Makefile.in (callproc.o): Update dependencies.
24150 (lisp, shortlisp): Add termdev.elc.
24151 (obj): Add terminal.o.
24152 (terminal.o): Add dependencies.
24153 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24154 (data.o, fns.o): Add termhooks.h dependency.
24155 (SOME_MACHINE_LISP): Add dnd.elc.
24156 (minibuf.o): Fix typo.
24157 Update dependencies.
24158
24159 * data.c (do_symval_forwarding, store_symval_forwarding)
24160 (find_symbol_value): Use the selected frame's keyboard, not
24161 current_kboard.
24162
24163 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24164 Vwindow_system.
24165
24166 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24167 Fmenu_bar_open.
24168 (syms_of_xmenu): Update defsubr.
24169 (mouse_position_for_popup, Fx_popup_menu)
24170 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24171 (set_frame_menubar, free_frame_menubar)
b97439ce 24172 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24173 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24174 an X frame.
24175
24176 * xselect.c (x_own_selection): Abort if not an X frame.
24177 (some_frame_on_display): Check if it is an X frame.
24178 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24179
24180 * coding.c: Include frame.h and termhooks.h.
24181 (terminal_coding, keyboard_coding): Delete.
24182 (Fset_terminal_coding_system_internal)
24183 (Fset_keyboard_coding_system_internal)
24184 (Fkeyboard_coding_system)
24185 (Fterminal_coding_system): Add a terminal parameter.
24186 Get terminal_coding from the terminal.
24187 (init_coding_once): Don't call setup_coding_system here.
24188
24189 * dispextern.h (set_scroll_region, turn_off_insert)
24190 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24191 (tty_clear_end_of_line, tty_setup_colors)
24192 (delete_tty, updating_frame)
24193 (produce_special_glyphs, produce_glyphs, write_glyphs)
24194 (insert_glyphs): Remove.
24195 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24196 (tty_turn_off_highlight, get_tty_size): Add declaration.
24197 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24198
24199 * frame.h (enum output_method): Add output_initial.
24200 (struct x_output): Delete.
24201 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24202 Access foreground_pixel and background_pixel directly from the frame.
24203 (tty_display): Delete.
24204 (struct frame): Add buried_buffer_list, foreground_pixel,
24205 background_pixel and terminal. Delete kboard.
24206 (union output_data): Add tty.
24207 (FRAME_KBOARD): Get the kboard from the terminal.
24208 (FRAME_INITIAL_P): New macro.
24209 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24210 (Qterm_environment_variable, Qdisplay_environment_variable)
24211 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24212 New declarations.
24213
24214 * termchar.h (tty_output, tty_display_info): New structures.
24215 (tty_list): Declare.
24216 (FRAME_TTY, CURTTY): New macros.
24217 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24218 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24219 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24220 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24221
24222 * callproc.c: Include frame.h and termhooks.h, for terminal
24223 parameters.
24224 (add_env): New function.
24225 (child_setup): Use it.
24226 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24227 (getenv_internal): Fix get_terminal_param call.
24228 (Fgetenv_internal, egetenv): Update doc.
24229 (syms_of_callproc): Initialize Vprocess_environment to nil.
24230 Register and initialize them. Remove obsolete defvars. Update doc
24231 strings.
24232 (child_setup): Handle Vlocal_environment_variables.
24233 (getenv_internal): Add terminal parameter.
24234 Handle Vlocal_environment_variables.
24235 (Fgetenv_internal): Add terminal parameter.
24236 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24237 environment in a frame (not terminal) parameter. Update doc strings.
24238 (set_initial_environment): Rename from set_global_environment.
24239 Store Emacs environment in initial frame parameter.
24240
24241 * xdisp.c (redisplay_internal): Update references to
24242 `previous_terminal_frame'.
24243 (display_mode_line, Fformat_mode_line): Replace calls to
24244 `push_frame_kboard' with `push_kboard'.
24245 (get_glyph_string_clip_rects): Add extra parentheses and
24246 braces to prevent compiler warnings.
24247 (calc_pixel_width_or_height): Add xassert to check that the
24248 frame is alive. Don't call `lookup_image' on a termcap frame.
24249 (message2_nolog, message3_nolog, redisplay_internal)
24250 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24251 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24252 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24253 (Fx_display_pixel_width, Fx_display_pixel_height)
24254 (Fx_display_planes, Fx_display_color_cells)
24255 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24256 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24257 (Fx_display_backing_store, Fx_display_visual_class)
24258 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24259 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24260
24261 * xfns.c (x_set_foreground_color x_set_background_color)
24262 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24263 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24264 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24265 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24266 terminal that is being deleted.
24267 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24268 frame parameter, and make sure it overrides any user-supplied setting.
24269 (Fx_close_connection, Fx_synchronize): Unify argument names with
24270 the rest of the DEFUNs.
24271
24272 * dispnew.c (Fsend_string_to_terminal): Update call to
24273 `get_tty_terminal'.
24274 (Fredraw_frame, Fsend_string_to_terminal)
24275 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24276 FRAME_TERMCAP_P and FRAME_TTY.
24277 (window_change_signal): Don't believe width/height values that are
24278 impossibly small.
24279 (Vinitial_window_system): Rename from Vwindow_system.
24280 (termscript, Wcm, rif): Delete.
24281
24282 * termhooks.h (struct terminal): New struct containing the
24283 previously global text display hooks and new members NAME,
24284 DELETED and PARAM_ALIST.
24285 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24286 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24287 (FRAME_RIF): New macros.
24288 (get_terminal_param, get_device): New declarations.
24289 (termscript): Delete declaration.
24290
24291 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24292 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24293 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24294 FRAME_FOREGROUND_PIXEL.
24295 (x_fully_uncatch_errors): Disable definition.
24296 (x_scroll_bar_expose): Fix reference to foreground pixel.
24297 (XTread_socket): Disable loop on all X displays.
24298 (x_delete_terminal): Don't set terminal->deleted and let
24299 delete_terminal delete the frames on the terminal.
24300 (x_delete_display): Doc update to reflect changes in
24301 delete_terminal.
24302 (x_display_info) <terminal>: Move member earlier in the struct.
24303 (deleting_tty): Remove old variable.
24304 (Fsuspend_tty): Call clear_tty_hooks.
24305 (Fresume_tty, init_tty): Call set_tty_hooks.
24306 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24307 errors on X frames.
24308 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24309 (handle_one_xevent): Initialize `f' to NULL.
24310 (x_delete_terminal, x_create_terminal): New functions.
24311 (XTset_terminal_modes, XTreset_terminal_modes)
24312 (XTread_socket, x_connection_closed, x_term_init)
24313 (x_term_init, x_delete_display): Add terminal parameter.
24314 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24315 X connections.
24316
24317 * frame.c: Include termchar.h.
24318 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24319 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24320 (Qdisplay_environment_variable): New vars.
24321 (Fframep): Deal with output_initial.
24322 (Fframe-live-p): Doc fix.
24323 (Fwindow-system): New function.
24324 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24325 (make_terminal_frame): Don't create frames on a terminal that is
24326 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24327 (store_frame_param): Check for found_for_frame before calling XFRAME.
24328 (Fmake_terminal_frame): Handle NULL tty names correctly.
24329 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24330 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24331 frames to refer to a deleted frame in their 'environment parameter.
24332 (Fframe_with_environment): New function.
24333 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24334 (get_future_frame_param): New function.
24335 (Fmake_terminal_frame): Use it.
24336 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24337
24338 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24339 * sysdep.c (reset_sys_modes): Update for renames.
24340
24341 * keyboard.c (tty_read_avail_input): New function.
24342 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24343 (syms_of_keyboard): Defsubr them.
24344 (Fset_input_meta_mode, Fset_quit_char): New functions.
24345 (Fset_input_mode): Split to above functions.
24346 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24347 parameter. Use it in call to `read_char'.
24348 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24349 Set wrong_kboard_jmpbuf correctly in recursive calls.
24350 Use current_kboard to access Vkeyboard_translate_table.
24351 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24352 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24353 Update longjmp invocations. Remember the original current_kboard,
24354 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24355 changes it. Comment out unnecessary calls to
24356 `record_single_kboard_state' and `any_kboard_state'.
24357 Update recursive calls.
24358 (wrong_kboard_jmpbuf): Remove global variable.
24359 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24360 Handle deleted interrupted_kboards correctly; that is a legal
24361 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24362 and read_char calls. Abort if interrupted_kboard died in read_char.
24363 (any_kboard_state, single_kboard_state)
24364 (push_frame_kboard): Remove function.
24365 (pop_kboard): Switch out of single_kboard mode if the kboard has
24366 been deleted. Remove unused variable. Help debugging by not
24367 changing current_kboard unnecessarily. Set current_kboard to the
24368 kboard of the selected frame when the stored kboard object has
24369 been deleted before pop_kboard.
24370 (temporarily_switch_to_single_kboard): Change first parameter to a
24371 frame pointer. Throw an error when caller wants to change kboards
24372 while in single_kboard mode. Don't push_kboard if we weren't in
24373 single kboard state. Don't pop_kboard if we popped into any
24374 kboard state.
24375 (restore_kboard_configuration): Abort if pop_kboard changed the
24376 kboard in single_kboard mode. Call pop_kboard only after setting
24377 up single_kboard mode.
24378 (Frecursive_edit): Switch to single_kboard mode only in nested
24379 command loops.
24380 (cmd_error, command_loop, command_loop_1, timer_check):
24381 Comment out unnecessary call to `any_kboard_state' and
24382 `record_single_kboard_state'.
24383 (delete_kboard): Exit single_kboard mode if we have just deleted
24384 that kboard. Use FRAME_KBOARD.
24385 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24386 `fatal_error_signal'.
24387 (record_single_kboard_state): Don't push_kboard if we weren't in
24388 single kboard state. Don't pop_kboard if we popped into any
24389 kboard state.
24390 (push_frame_kboard): Rename to push_kboard.
24391 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24392 (read_avail_input): Read input from all terminals.
24393 (mark_kboards): Also mark Vkeyboard_translate_table.
24394 (kbd_buffer_store_event_hold): Simplify condition.
24395 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24396 (Vkeyboard_translate_table): Move to struct kboard.
24397 (init_kboard): Initialize Vkeyboard_translate_table.
24398 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24399 Vkeyboard_translate_table. Update doc strings. Update docs of
24400 local-function-key-map and function-key-map.
24401
24402 * terminal.c: New file.
24403
24404 * term.c: Include errno.h.
24405 (Vring_bell_function, device_list, initial_device)
24406 (next_device_id, ring_bell, update_begin, update_end)
24407 (set_terminal_window, cursor_to, raw_cursor_to)
24408 (clear_to_end, clear_frame, clear_end_of_line)
24409 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24410 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24411 (syms_of_term): Move their initialization to terminal.c.
24412 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24413 (Ftty_display_color_cells)
24414 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24415 (clear_tty_hooks, set_tty_hooks)
24416 (init_tty, maybe_fatal): New functions.
24417 (Ftty_type): Return nil if terminal is not on a tty instead of
24418 throwing an error. Doc update.
24419 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24420 Doc update. Initialize new subrs and variables.
24421 (delete_tty): Use terminal->deleted.
24422 (tty_set_terminal_modes): Rename from set_terminal_modes.
24423 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24424 (set_scroll_region): Rename to `tty_set_scroll_region'.
24425 (turn_on_insert): Rename to `tty_turn_on_insert'.
24426 (turn_off_insert): Rename to `tty_turn_off_insert'.
24427 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24428 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24429 (toggle_highligh): Rename to `tty_toggle_highlight'.
24430 (background_highlight): Rename to `tty_background_highlight'.
24431 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24432 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24433 (tty_set_scroll_region, tty_background_highlight)
24434 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24435 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24436 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24437 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24438 Add static modifier.
24439 (tty_reset_terminal_modes, tty_set_terminal_window)
24440 (tty_set_scroll_region, tty_background_highlight)
24441 (tty_highlight_if_desired, tty_cursor_to)
24442 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24443 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24444 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24445 renames.
24446
244472007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24448
24449 * keyboard.c: Qrtl is new.
24450 (parse_tool_bar_item): Handle :rtl keyword.
24451 (syms_of_keyboard): Intern :rtl keyword.
24452
24453 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24454
24455 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24456 so no Lisp code is executed.
24457 (file_for_image, find_rtl_image): New functions.
24458 (xg_get_image_for_pixmap): Use file_for_image.
24459 (update_frame_tool_bar): If direction is RTL, use RTL image if
24460 defined. Use Gtk stock images if defined.
24461
244622007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24463
24464 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24465 for nonexistent or zero-width glyph in composition glyph.
24466
244672007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24468
24469 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24470
24471 * xdisp.c (Finvisible_p): New function.
24472 (syms_of_xdisp): defsubr it.
24473
244742007-08-24 Juanma Barranquero <lekktu@gmail.com>
24475
24476 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24477 Doc fixes.
24478
244792007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24480
24481 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24482
244832007-08-24 Martin Rudalics <rudalics@gmx.at>
24484
24485 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24486 whether decoding has modified buffer contents.
24487
244882007-08-24 Jason Rumney <jasonr@gnu.org>
24489
24490 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24491 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24492 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24493 (init_svg_functions) [HAVE_NTGUI]: New function.
24494 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24495 (svg_load_image): Use them.
24496 (svg_load_image) [HAVE_NTGUI]: Implement background.
24497
244982007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24499
24500 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24501 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24502 (LIBX): Remove @RSVG_LIBS@.
24503 (LIBES): Add $(RSVG_LIBS).
24504
24505 * image.c (svg_load_image): Blend with specified background if exists.
24506 Use IMAGE_BACKGROUND. Add Mac OS Support.
24507
24508 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24509 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24510 Remove macros.
24511 [MAC_OSX] (socket_callback): Do nothing.
24512 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24513 ReceiveNextEvent.
24514 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24515 socket_callback.
24516 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24517
245182007-08-22 Glenn Morris <rgm@gnu.org>
24519
24520 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24521
245222007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24523
24524 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24525
24526 * image.c: Add support for SVG images. Some additional comments
24527 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24528 (svg_image_p): New function to test for SVG image.
24529 (svg_load): New function to load SVG image.
24530 (svg_load_image): New function, helper for svg_load.
24531 (Qsvg): New Lisp_object.
24532 (svg_keyword_index): New enum.
24533 (svg_format): New static `image_keyword' struct.
24534 (svg_type): New static `image_type' struct.
24535 (librsvg/rsvg.h): Include it.
24536
245372007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24538
24539 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24540
245412007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24542
24543 * lread.c (Qold_style_backquotes): New var.
24544 (syms_of_lread): Init and staticpro it.
24545 (load_warn_old_style_backquotes): New fun.
24546 (Fload): Use them to warn about old style backquotes.
24547 (end_of_file_error, Fload): Remove unused vars.
24548
24549 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24550
24551 * lread.c (Vold_style_backquotes): New var.
24552 (syms_of_lread): Init and export it to Elisp.
24553 (read1): Set it when we find an old-style (back)quote.
24554
245552007-08-22 Jason Rumney <jasonr@gnu.org>
24556
24557 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24558
245592007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24560
24561 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24562
245632007-08-19 Richard Stallman <rms@gnu.org>
24564
24565 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24566
245672007-08-19 Andreas Schwab <schwab@suse.de>
24568
24569 * alloc.c (pure): Round PURESIZE up.
24570
245712007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24572
24573 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24574 active frame.
24575
245762007-08-16 Richard Stallman <rms@gnu.org>
24577
24578 * eval.c (Fcommandp): Add parens to clarify.
24579
24580 * minibuf.c (Fall_completions): Use enum for type of table.
24581
24582 * emacs.c (USAGE2): Improve text.
24583
245842007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24585
24586 * term.c (tty_default_color_capabilities): Declare static
24587 variables in file scope, to avoid HPUX compiler problem.
24588
245892007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24590
24591 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24592 to gtk_toolbar_insert.
24593
245942007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24595
24596 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24597
24598 * insdel.c (reset_var_on_error): New fun.
24599 (signal_before_change, signal_after_change):
24600 Use it to reset (after|before)-change-functions to nil in case of error.
24601 Bind inhibit-modification-hooks to t.
24602 Don't bind (after|before)-change-functions to nil while they run.
24603
246042007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24605
24606 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24607 filling pixmap with stippled background.
24608
246092007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24610
24611 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24612 Don't use invisible frame as parent window for repositioning.
24613
246142007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24615
24616 * print.c (new_backquote_output): Rename from old_backquote_output.
24617 (print): Inverse its logic (according to its name) so as to match the
24618 behavior of new_backquote_flag in lread.c.
24619
246202007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24621
24622 * gmalloc.c (posix_memalign): New function.
24623
24624 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24625 ActivateControl/DeactivateControl here.
24626 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24627 frame-notice-user-settings is non-nil.
24628 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24629 for kEventParamFMFontStyle.
24630 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24631 mac_pass_command_to_system and mac_pass_control_to_system here.
24632 (XTread_socket): Call ActivateControl/DeactivateControl here.
24633 (XTread_socket) [TARGET_API_MAC_CARBON]:
24634 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24635 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24636 for window repositioning.
24637
246382007-08-08 Glenn Morris <rgm@gnu.org>
24639
24640 * Replace `iff' in doc-strings and comments.
24641
246422007-08-07 Chong Yidong <cyd@stupidchicken.com>
24643
24644 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24645
246462007-08-07 Martin Rudalics <rudalics@gmx.at>
24647
24648 * fileio.c (Finsert_file_contents): Run format-decode and
24649 after_insert_file_functions on entire buffer when REPLACE is
24650 non-nil and inhibit modification_hooks and point_motion_hooks.
24651 For consistency, run after_insert_file_functions iff something
24652 got inserted. Move signal_after_change and update_compositions
24653 after code running after_insert_file_functions. Make sure that
24654 undo_list doesn't record intermediate steps of the decoding process.
24655
246562007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24657
24658 * emacs.c (main)
24659 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24660 Call malloc_enable_thread on interactive startup.
24661
24662 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24663 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24664 [USE_PTHREAD]: Conditionalize with it.
24665 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24666 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24667 New functions.
24668
246692007-08-06 Chong Yidong <cyd@stupidchicken.com>
24670
24671 * xdisp.c (redisplay_window): When restoring original buffer
24672 position, make sure it is still valid.
24673
24674 * image.c (png_load): Ignore png-supplied background color.
24675
246762007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24677
24678 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24679 Use kCFAbsoluteTimeIntervalSince1970.
24680
24681 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24682 New variable.
24683 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24684 event loop should be quit.
24685 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24686 Quit dialog event loop if quit_dialog_event_loop is set.
24687
24688 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24689 (Selection): New typedef. Use instead of ScrapRef.
24690 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24691 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24692 (mac_clear_selection): Rename from clear_scrap.
24693 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24694 scrap_has_target_type. All uses changed.
24695 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24696 (mac_selection_has_target_p): New functions.
24697 (mac_put_selection_value): Rename from put_scrap_string.
24698 (mac_get_selection_value): Rename from get_scrap_string.
24699 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24700 (put_scrap_private_timestamp, scrap_has_target_type)
24701 (get_scrap_private_timestamp): Remove functions.
24702 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24703 (x_own_selection, x_get_local_selection):
24704 Use mac_valid_selection_value_p.
24705 (x_own_selection): Don't use put_scrap_private_timestamp.
24706 Record OWNERSHIP-INFO into Vselection_alist instead.
24707 (x_get_local_selection): Don't check type if request is local.
24708 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24709 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24710
247112007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24712
24713 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24714 add comment explaining why.
24715
247162007-08-03 Richard Stallman <rms@gnu.org>
24717
24718 * fileio.c (Fvisited_file_modtime): Use make_time.
24719
247202007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24721
24722 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24723 build.
24724
247252007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24726
24727 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24728
247292007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24730
24731 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24732
247332007-07-30 Richard Stallman <rms@gnu.org>
24734
24735 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24736
247372007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24738
24739 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24740
247412007-07-28 Nick Roberts <nickrob@snap.net.nz>
24742
24743 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24744 remote default-directory.
24745
24746 * buffer.c (mode-line-format): Update doc string.
24747
247482007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24749
24750 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24751 scroll bar gap.
24752 (x_scroll_bar_create): Set bar->fringe_extended_p.
24753 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24754 on frame edge. Check fringe background extension. Don't clear
24755 extended fringe background area.
24756
24757 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24758 (w32_fill_area): Enclose multiple statements with do ... while (0).
24759
24760 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24761 Extend fringe background to scroll bar gap.
24762 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24763 Set bar->fringe_extended_p.
24764 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24765 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24766 background extension. Don't clear extended fringe background area.
24767
24768 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24769 New member fringe_extended_p.
24770
247712007-07-25 Glenn Morris <rgm@gnu.org>
24772
24773 * Relicense all FSF files to GPLv3 or later.
24774
24775 * COPYING: Switch to GPLv3.
24776
247772007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24778
24779 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24780
24781 * data.c (Finteractive_form): Check for the presence of an
24782 `interactive-form' symbol property more thoroughly.
24783
24784 * data.c (Finteractive_form): Use an `interactive-form' property if
24785 present, analogous to the function-documentation property.
24786
247872007-07-24 Jason Rumney <jasonr@gnu.org>
24788
24789 * w32fns.c (x_real_positions): Get real position from OS instead of
24790 calculating it.
24791
247922007-07-23 Jason Rumney <jasonr@gnu.org>
24793
24794 * filelock.c (current_lock_owner): Allow for @ sign in username.
24795
247962007-07-22 Nick Roberts <nickrob@snap.net.nz>
24797
24798 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24799 remote default-directory.
24800
24801 * buffer.c (mode-line-format): Describe above case in doc string.
24802
248032007-07-20 Eli Zaretskii <eliz@gnu.org>
24804
24805 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24806 Define if not defined.
24807
248082007-07-18 Jason Rumney <jasonr@gnu.org>
24809
24810 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24811
248122007-07-18 Richard Stallman <rms@gnu.org>
24813
24814 * data.c (Fsetq_default): Doc fix.
24815
24816 * eval.c (Fsetq): Doc fix.
24817
248182007-07-18 Juanma Barranquero <lekktu@gmail.com>
24819
24820 * coding.c (Ffind_operation_coding_system):
24821 * eval.c (For, Fand): Doc fixes.
24822 Reported by Johan Bockgård.
24823
248242007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24825
24826 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24827
24828 * xterm.h: Declare x_ewmh_activate_frame.
24829
24830 * xterm.c (x_ewmh_activate_frame): New function.
24831 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24832
248332007-07-17 Martin Rudalics <rudalics@gmx.at>
24834
24835 * window.c (Fdisplay_buffer): If largest or LRU window is the
24836 only window, split it even if it is not eligible for splitting.
24837 This restores the original behavior broken by the 2007-07-15
24838 change.
24839
248402007-07-17 Glenn Morris <rgm@gnu.org>
24841
24842 * abbrev.c (abbrev_check_chars): New function.
24843 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24844 Call abbrev_check_chars to check abbrev characters are word
24845 constituents. Doc fix.
24846
248472007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24848
24849 * process.c (Fstart_process, Fmake_network_process)
24850 (read_process_output): Fix up last changes.
24851
248522007-07-16 Eli Zaretskii <eliz@gnu.org>
24853
24854 * makefile.w32-in (clean): Don't delete *~.
24855
248562007-07-16 Andreas Schwab <schwab@suse.de>
24857
24858 * window.c (Fdisplay_buffer): Use NILP.
24859 (Fset_window_scroll_bars): Likewise.
24860
248612007-07-15 Martin Rudalics <rudalics@gmx.at>
24862
24863 * window.c (window_min_size_2): New function.
24864 (window_min_size_1, size_window, Fdisplay_buffer)
24865 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24866 windows without mode- or header-lines when window-min-height is
24867 too small.
24868 (size_window): Reset nodelete_p after testing it, following an
24869 earlier note by Kim F. Storm.
24870 (display_buffer): Do not set split_height_threshold to twice the
24871 value of window_min_height to avoid changing the value of a
24872 customizable variable. Rather explicitly check whether the
24873 height of the window that shall be splitted is at least as large
24874 as split_height_threshold.
24875 (Fwindow_full_width_p): New defun.
24876 (syms_of_window): Defsubr it.
24877
24878 * window.h: Add EXFUN for Fwindow_full_width_p.
24879
248802007-07-14 Jason Rumney <jasonr@gnu.org>
24881
24882 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24883
248842007-07-14 Richard Stallman <rms@gnu.org>
24885
24886 * eval.c (maybe_call_debugger): New function.
24887 (find_handler_clause): Use maybe_call_debugger.
24888 Call it when the handler says `debug'.
24889 Eliminate DEBUGGER_VALUE_PTR.
24890 (Fsignal): Eliminate debugger_value.
24891 (Qdebug): New variable.
24892 (syms_of_eval): Initialize it.
24893
248942007-07-14 Juanma Barranquero <lekktu@gmail.com>
24895
24896 * eval.c (Fprogn):
24897 * keyboard.c (Ftrack_mouse):
24898 * print.c (Fwith_output_to_temp_buffer):
24899 * window.c (Fsave_window_excursion): Doc fix.
24900
249012007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24902
24903 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24904
249052007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24906
24907 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24908 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24909 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24910 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24911 Remove unused encoding_carryover.
24912 * process.c: Adjust all functions accordingly.
24913
249142007-07-12 Richard Stallman <rms@gnu.org>
24915
24916 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24917
249182007-07-11 Jason Rumney <jasonr@gnu.org>
24919
24920 * makefile.w32-in (LIBS): Include OLE32.
24921
24922 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24923 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24924
249252007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24926
24927 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24928 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24929 from a Lisp_Object into a bare pointer.
24930 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24931 Adjust the code correspondingly.
24932
24933 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24934
24935 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24936 (term_show_mouse_face): Remove unused var `j'.
24937 (handle_one_term_event): Remove unused vars `i' and `j'.
24938 Don't cast return value of ttyname since it's not necessary.
24939
249402007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24941
24942 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24943 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24944
24945 * fns.c (map_char_table): Use an array of int for `indices' rather than
24946 an array of Lisp_Objects (which are only ever integers anyway).
24947 (Fmap_char_table): Update caller.
24948 * lisp.h: Update prototype.
24949 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24950 * fontset.c (Ffontset_info):
24951 * casetab.c (set_case_table): Update callers.
24952
24953 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24954
24955 * keymap.c (struct accessible_keymaps_data)
24956 (struct where_is_internal_data): New structures.
24957 (accessible_keymaps_1, where_is_internal_1): Use them to change
24958 interface to adhere to the one used by map_keymap.
24959 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24960 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24961
24962 * keymap.h (map_keymap_function_t): More informative prototype.
24963
249642007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24965
24966 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24967 (looking_at_1): Don't change search_regs and last_thing_searched
24968 if `inhibit-changing-match-data' is non-nil.
24969 (string_match_1, search_buffer, set_search_regs): Likewise.
24970 (syms_of_search): Add Lisp level definition for
24971 `inhibit-changing-match-data' and set it to nil.
24972 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24973 start and end of the match, instead of using values in search_regs.
24974
249752007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24976
24977 * minibuf.c (Fcompleting_read): New value `confirm-only'
24978 for `require-match'.
24979
249802007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24981
24982 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24983 part of the 2007-06-27 change to syms_of_fileio.
24984
249852007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24986
24987 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24988 Check WINDOWP before using XWINDOW. Consolidate return statements.
24989
249902007-06-27 Richard Stallman <rms@gnu.org>
24991
24992 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24993
249942007-06-27 Juanma Barranquero <lekktu@gmail.com>
24995
24996 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24997
249982007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24999
25000 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25001 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25002 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25003 (_free_internal, memalign): Use them.
25004 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25005 Initialize to PTHREAD_MUTEX_INITIALIZER.
25006 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25007 (morecore_nolock): Rename from morecore. All uses changed.
25008 Use only nolock versions of internal allocation functions.
25009 (_malloc_internal_nolock, _realloc_internal_nolock)
25010 (_free_internal_nolock): New functions created from
25011 _malloc_internal, _realloc_internal, and _free_internal.
25012 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25013 Copy hook value to automatic variable before its use.
25014 (memalign): Copy hook value to automatic variable before its use.
25015
250162007-06-26 Kenichi Handa <handa@m17n.org>
25017
25018 * coding.c (Ffind_operation_coding_system): Docstring improved.
25019 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25020
250212007-06-25 David Kastrup <dak@gnu.org>
25022
25023 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25024 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25025 cater for additional parameter.
25026
25027 * keymap.h: Adjust number of parameters to `current-active-maps'.
25028
25029 * doc.c (Fsubstitute_command_keys): Adjust call of
25030 `current-active-maps'.
25031
250322007-06-25 David Kastrup <dak@gnu.org>
25033
25034 * callint.c (Fcall_interactively): Make the parsing of interactive
25035 specs somewhat more readable.
25036
250372007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25038
25039 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25040 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25041 if extended background has already been filled.
25042
250432007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25044
25045 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25046 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25047
25048 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25049 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25050 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25051 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25052 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25053 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25054 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25055 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25056 Run timers during dialog popup.
25057 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25058
250592007-06-21 Jason Rumney <jasonr@gnu.org>
25060
25061 * image.c (convert_mono_to_color_image): Swap fore and background.
25062
250632007-06-20 Jason Rumney <jasonr@gnu.org>
25064
25065 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25066 (w32_free_bdf_font): Unmap memory not handle.
25067
250682007-06-20 Sam Steingold <sds@gnu.org>
25069
25070 * gmalloc.c (__morecore): Fix the declaration to comply with the
25071 definition.
25072
250732007-06-20 Juanma Barranquero <lekktu@gmail.com>
25074
25075 * w32term.c (w32_delete_display): Remove leftover declaration.
25076 (w32_define_cursor, w32_initialize): Make static.
25077
25078 * w32.c (_wsa_errlist): Fix typo in error message.
25079 (init_environment): Ignore any environment variable from the
25080 registry having a null value.
25081
250822007-06-20 Glenn Morris <rgm@gnu.org>
25083
25084 * Makefile.in (LIBGIF): Default to -lgif.
25085
250862007-06-17 Jason Rumney <jasonr@gnu.org>
25087
25088 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25089 unicode strings.
25090
250912007-06-16 Juanma Barranquero <lekktu@gmail.com>
25092
25093 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25094 Fix typo in docstring.
25095
250962007-06-16 Eli Zaretskii <eliz@gnu.org>
25097
25098 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25099 and their keybindings.
25100
251012007-06-15 Chong Yidong <cyd@stupidchicken.com>
25102
25103 * composite.c (update_compositions): Fix last fix.
25104
251052007-06-14 Jason Rumney <jasonr@gnu.org>
25106
25107 * w32.c (get_process_times_fn): New function pointer.
25108 (globals_of_w32): Intialize it if present in kernel32.dll.
25109 (w32_get_internal_run_time): New function.
25110
25111 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25112
251132007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25114
25115 * composite.c (update_compositions): Check the validness of
25116 compositions.
25117
251182007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25119
25120 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25121 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25122
25123 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25124 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25125
25126 * macgui.h (USE_MAC_TOOLBAR): New define.
25127
25128 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25129 Return immediately unless popup is activated.
25130
25131 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25132 background to scroll bar gap.
25133 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25134 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25135 scroll bars on frame edge. Check fringe background extension.
25136 Don't clear extended fringe background area.
25137 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25138 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25139 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25140 [USE_MAC_TOOLBAR]: New macros.
25141 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25142 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25143 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25144 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25145 [USE_MAC_TOOLBAR]: New functions.
25146 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25147 manually if previous repositioning has failed.
25148 (mac_handle_keyboard_event): Use precomputed event kind.
25149 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25150 as tool bar item click. Handle mouse movement over tool bar items.
25151
25152 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25153 toolbar_win_gravity.
25154 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25155 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25156 Add externs.
25157
25158 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25159 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25160
251612007-06-14 Chong Yidong <cyd@stupidchicken.com>
25162
25163 * image.c (search_image_cache): Remove unused variable.
25164
251652007-06-13 Chong Yidong <cyd@stupidchicken.com>
25166
25167 * xfns.c, xmenu.c: Link to xaw3d if available.
25168
251692007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25170
25171 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25172 frame_foreground and frame_background.
25173
25174 * image.c (lookup_image): Save frame foreground and background colors.
25175 (search_image_cache): Check if saved and current frame colors match.
25176
251772007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25178
25179 * regex.c (regex_compile): Remove the `regnum' counter.
25180 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25181
251822007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25183
25184 * term.c: Include intervals.h to declare Fget_text_property.
25185
251862007-06-10 Jason Rumney <jasonr@gnu.org>
25187
25188 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25189
251902007-06-08 Juanma Barranquero <lekktu@gmail.com>
25191
25192 * callint.c (Fcall_interactively):
25193 * editfns.c (Fdelete_and_extract_region):
25194 * fileio.c (Fread_file_name):
25195 * fns.c (Fmapconcat):
25196 * keyboard.c (cmd_error_internal):
25197 * keymap.c (Fkey_description):
25198 * lread.c (openp):
25199 * minibuf.c (read_minibuf):
25200 * search.c (wordify):
25201 * sunfns.c (sel_read):
25202 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25203 * xfns.c (x_default_scroll_bar_color_parameter):
25204 * xmenu.c (menu_help_callback):
25205 * xselect.c (Fx_get_atom_name):
25206 * xterm.c (x_term_init): Use empty_unibyte_string.
25207
252082007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25209
25210 * alloc.c (init_strings): Initialize canonical empty strings.
25211 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25212 canonical empty string when the requested size is 0.
25213
25214 * emacs.c (empty_unibyte_string): Rename from empty_string.
25215 (empty_multibyte_string): New canonical empty string.
25216 (syms_of_emacs): Don't initialize empty_string.
25217
25218 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25219 string, if appropriate.
25220 (empty_unibyte_string, empty_multibyte_string): New externs.
25221 (empty_string): Remove extern.
25222
25223 * lread.c (syms_of_lread): Use empty_unibyte_string.
25224
252252007-06-07 Jason Rumney <jasonr@gnu.org>
25226
25227 * s/ms-w32.h: Don't define HAVE_TZNAME.
25228
25229 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25230
252312007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25232
25233 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25234
25235 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25236 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25237
25238 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25239 Don't call next handler.
25240 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25241 Remove argument. Install handler to application.
25242 (set_frame_menubar): Don't change deep_p.
25243 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25244 FRAME_OUTER_TO_INNER_DIFF_Y.
25245 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25246 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25247 [HAVE_DIALOGS]: New macros.
25248 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25249 Use them.
25250 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25251
25252 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25253 init_service_handler. All callers changed. Return OSStatus value.
25254
25255 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25256 All callers changed so as not to call SetPortWindowPort.
25257 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25258 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25259 mac_draw_string_common.
25260 (mac_draw_image_string_qd): Likewise.
25261 (mac_draw_string_common): Use them. Add INLINE.
25262 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25263 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25264 GetGlobalMouse.
25265 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25266 and FRAME_OUTER_TO_INNER_DIFF_Y.
25267 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25268 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25269 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25270 repositioning window to mac_handle_window_event.
25271 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25272 saving window location to mac_handle_window_event
25273 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25274 (install_menu_target_item_handler): Remove argument in extern.
25275 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25276 Also accept command events.
25277 (do_keystroke): New function created from XTread_socket.
25278 (init_command_handler): Remove functions.
25279 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25280 and save window location by kEventWindowShowing and kEventWindowHiding
25281 handlers here. Don't call next handler for window state change and
25282 focus events.
25283 (mac_handle_application_event, mac_handle_keyboard_event)
25284 [TARGET_API_MAC_CARBON]: New functions.
25285 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25286 kEventWindowShowing and kEventWindowHiding events. Move installation
25287 of mouse, font, text input and menu target item handlers to
25288 install_application_handler.
25289 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25290 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25291 New function.
25292 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25293 Register it.
25294 (XTread_socket) [TARGET_API_MAC_CARBON]:
25295 Consolidate SendEventToEventTarget calls.
25296 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25297 Move application activation handler to mac_handle_application_event.
25298 Move keyboard handler to mac_handle_keyboard_event.
25299 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25300 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25301 init_command_handler. Call install_application_handler.
25302
25303 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25304 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25305
253062007-06-07 Glenn Morris <rgm@gnu.org>
25307
25308 * emacs.c (main): Use `emacs-copyright' in --version output.
25309
253102007-06-06 Chong Yidong <cyd@stupidchicken.com>
25311
25312 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25313
253142007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25315
25316 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25317
25318 * macgui.h: Replace WindowPtr with WindowRef.
25319
25320 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25321 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25322 Replace ControlHandle with ControlRef.
25323 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25324
25325 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25326 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25327 Replace ControlHandle with ControlRef.
25328 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25329 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25330
25331 * macterm.h (struct scroll_bar): Rename member control_handle_low
25332 and control_handle_high to control_ref_low and control_ref_high.
25333 All uses changed.
25334 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25335 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25336 respectively. All uses changed.
25337 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25338 (install_window_handler, remove_window_handler): Replace WindowPtr
25339 with WindowRef in externs.
25340
253412007-06-05 Juanma Barranquero <lekktu@gmail.com>
25342
25343 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25344
253452007-06-03 Nick Roberts <nickrob@snap.net.nz>
25346
25347 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25348
25349 * frame.c (Fmouse_position, Fmouse_pixel_position):
25350 Condition on HAVE_GPM too.
25351
25352 * term.c (term_mouse_highlight): Remove unused variables.
25353 (Fterm_open_connection): Set gpm_zerobased to 1.
25354 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25355 Use zero based co-ordinates.
25356 (handle_one_term_event): Report a drag as mouse movement too.
25357
25358 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25359
253602007-06-03 Chong Yidong <cyd@stupidchicken.com>
25361
25362 * image.c (search_image_cache): New function. Require background
25363 color match if background color is unspecified in the image spec.
25364 (uncache_image, lookup_image): Use it.
25365
253662007-06-01 Juanma Barranquero <lekktu@gmail.com>
25367
25368 * window.c (Fshrink_window): Reflow docstring.
25369
253702007-06-02 Chong Yidong <cyd@stupidchicken.com>
25371
25372 * Version 22.1 released.
25373
253742007-06-01 Richard Stallman <rms@gnu.org>
25375
25376 * xfns.c (x_encode_text): Add GCPRO.
25377
253782007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25379
25380 * xfns.c (x_set_name_internal): Save encoded name before
25381 x_encode_text in case string data is relocated.
25382
253832007-05-31 Richard Stallman <rms@gnu.org>
25384
25385 * buffer.c (syms_of_buffer): Doc fix.
25386
253872007-05-30 Nick Roberts <nickrob@snap.net.nz>
25388
25389 * sysdep.c (init_sys_modes): Add rather than replace with
25390 O_NONBLOCK.
25391
25392 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25393 term_mouse_moveto.
25394
25395 * termhooks.h (term_mouse_moveto): New extern.
25396
25397 * term.c (mouse_face_window): Rename...
25398 (Qmouse_face_window): ...to this.
25399 (term_show_mouse_face, term_clear_mouse_face)
25400 (term_mouse_highlight): Use Qmouse_face_window.
25401 (term_mouse_moveto): New function.
25402 (term_mouse_position): Make it work.
25403 (syms_of_term): Uncomment assignment to mouse_position_hook.
25404 Staticpro Qmouse_face_window.
25405
254062007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25407
25408 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25409 around current_column call.
25410
254112007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25412
25413 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25414 * xdisp.c (next_element_from_buffer):
25415 * window.c (delete_window):
25416 * term.c (term_mouse_highlight):
25417 * msdos.c (getdefdir):
25418 * macterm.c (mac_create_bitmap_from_bitmap_data)
25419 (init_font_name_table):
25420 * fns.c (Fsxhash):
25421 * data.c (Fmake_local_variable):
25422 * ccl.c (ccl_driver): Likewise.
25423
254242007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25425
25426 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25427 Call mac_wakeup_from_rne on window size change.
25428
254292007-05-25 Chong Yidong <cyd@stupidchicken.com>
25430
25431 * image.c (uncache_image): Fix typo.
25432
254332007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25434
25435 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25436
254372007-05-22 Richard Stallman <rms@gnu.org>
25438
25439 * xterm.c (x_connection_closed): Remove NO_RETURN.
25440
254412007-05-22 Martin Rudalics <rudalics@gmx.at>
25442
25443 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25444
254452007-05-21 Chong Yidong <cyd@stupidchicken.com>
25446
25447 * image.c (uncache_image): New function.
25448 (Fimage_refresh): New function.
25449
254502007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25451
25452 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25453
254542007-05-20 Nick Roberts <nickrob@snap.net.nz>
25455
25456 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25457 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25458
254592007-05-20 Nick Roberts <nickrob@snap.net.nz>
25460
25461 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25462 conditional on [HAVE_GPM_H].
25463
254642007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25465
25466 * syntax.c (skip_chars): Update syntax-table only after we checked that
25467 the new location is valid.
25468
254692007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25470
25471 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25472 mac_get_window_bounds.
25473
254742007-05-20 Nick Roberts <nickrob@snap.net.nz>
25475
25476 * Makefile.in (LIBGPM): Allow it to be set from configure.
25477 If set then link Emacs with it.
25478
25479 * config.in: Regenerate.
25480
25481 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25482 New externs.
25483
25484 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25485 Include gpm.h.
25486 (handle_one_term_event, term_gpm): New externs.
25487
25488 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25489 and allow it to be interrupted by SIGIO.
25490
25491 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25492 (wait_reading_process_output): Wait on gpm_fd too.
25493 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25494 (add_gpm_wait_descriptor_called_flag): New variable.
25495 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25496
25497 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25498 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25499 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25500 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25501 (make_lispy_event): Add case GPM_CLICK_EVENT.
25502 (read_avail_input): Handle mouse input.
25503
25504 * term.c (write_glyphs_with_face): New function.
25505 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25506 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25507 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25508 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25509 (last_mouse_x, last_mouse_y): New variables.
25510 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25511 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25512 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25513 (Fterm_close_connection): New functions.
25514 (term_init): Initialise mouse_face_window.
25515
255162007-05-19 Chong Yidong <cyd@stupidchicken.com>
25517
25518 * xdisp.c (redisplay_window): If first window line is a
25519 continuation line, recompute the new window start instead of
25520 recentering.
25521
255222007-05-18 Glenn Morris <rgm@gnu.org>
25523
25524 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25525 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25526
255272007-05-17 Glenn Morris <rgm@gnu.org>
25528
25529 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25530
255312007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25532
25533 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25534 dead key repeat and up events.
25535
255362007-05-14 Chong Yidong <cyd@stupidchicken.com>
25537
25538 * image.c (pbm_load): Check image size for monochrome pbm.
25539
255402007-05-13 Chong Yidong <cyd@stupidchicken.com>
25541
25542 * xterm.c (XTread_socket): Revert last change.
25543
255442007-05-12 Chong Yidong <cyd@stupidchicken.com>
25545
25546 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25547
25548 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25549
255502007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25551
25552 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25553 mixup (YAILOM).
25554
255552007-05-07 Andreas Schwab <schwab@suse.de>
25556
25557 * keymap.c (Flookup_key): Fix typo in last change.
25558
255592007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25560
25561 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25562 mapping for unibyte strings.
25563
255642007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25565
25566 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25567 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25568
255692007-04-29 Richard Stallman <rms@gnu.org>
25570
25571 * insdel.c (replace_range): For undo, record insertion first.
25572
255732007-04-29 Andreas Schwab <schwab@suse.de>
25574
25575 * lisp.h (VECSIZE): Use OFFSETOF.
25576
255772007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25578
25579 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25580 disabled lines.
25581
255822007-04-28 Richard Stallman <rms@gnu.org>
25583
25584 * lread.c (read_escape): In a string, \s is always space.
25585
255862007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25587
25588 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25589
25590 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25591 submenu for menu bar items.
25592
25593See ChangeLog.10 for earlier changes.
25594
25595;; Local Variables:
25596;; coding: utf-8
25597;; add-log-time-zone-rule: t
aac0c6e3
MR
25598;; End:
25599
e3eb1dae 25600 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25601
25602 This file is part of GNU Emacs.
25603
25604 GNU Emacs is free software: you can redistribute it and/or modify
25605 it under the terms of the GNU General Public License as published by
25606 the Free Software Foundation, either version 3 of the License, or
25607 (at your option) any later version.
25608
25609 GNU Emacs is distributed in the hope that it will be useful,
25610 but WITHOUT ANY WARRANTY; without even the implied warranty of
25611 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25612 GNU General Public License for more details.
25613
25614 You should have received a copy of the GNU General Public License
25615 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25616
25617;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40