Commit graph

21508 commits

Author SHA1 Message Date
Eli Zaretskii
1a7e01173e (Fsystem_name): Mention "host" in the doc string.
(syms_of_editfns) <system-name>: Likewise.
2006-09-09 10:50:03 +00:00
Romain Francoise
c989bc8777 Delete extra tab. 2006-09-08 16:54:33 +00:00
Chong Yidong
92b2332318 * xdisp.c (mouse_autoselect_window): Removed.
(Vmouse_autoselect_window): New variable.  DEFVAR_LISP it.

	* dispextern.h (mouse_autoselect_window): Remove extern.
	(Vmouse_autoselect_window): Add extern.

	* macterm.c (XTread_socket): Test Vmouse_autoselect_window
	instead of mouse_autoselect_window.

	* msdos.c (dos_rawgetc): Likewise.

	* w32term.c (w32_read_socket): Likewise.

	* xterm.c (handle_one_xevent): Likewise.
2006-09-08 14:14:28 +00:00
Richard M. Stallman
af09dd7814 *** empty log message *** 2006-09-08 12:22:01 +00:00
Richard M. Stallman
8aa769f1b6 (Vmenu_updating_frame): Define here.
(syms_of_xdisp): DEFVAR it here.
(update_menu_bar): Always return hooks_run.
Set Vmenu_updating_frame.

(redisplay_internal): Test Vinhibit_redisplay
before calculating SELECTED_FRAME.
2006-09-08 12:17:32 +00:00
Richard M. Stallman
9e69bfa484 (x_error_quitter): For BadName error, just return. 2006-09-08 12:13:14 +00:00
Richard M. Stallman
d799329b41 (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P. 2006-09-08 12:12:39 +00:00
Richard M. Stallman
66aa138de7 (init_casetab_once): Call set_case_table. 2006-09-08 12:11:17 +00:00
Richard M. Stallman
92d835a403 (shut_down_emacs): Set inhibit_sentinels. 2006-09-08 12:10:17 +00:00
Richard M. Stallman
84af9896c3 (inhibit_sentinels): New variable.
(exec_sentinel): Test inhibit_sentinels.
(init_process): Initialize it.
2006-09-08 12:08:54 +00:00
Richard M. Stallman
5596b3bcf5 (inhibit_sentinels): Add decl. 2006-09-08 12:07:46 +00:00
Richard M. Stallman
910c747a2f (looking_at_1, string_match_1, search_command):
Make syntax table's canon table point to eqv table.
2006-09-08 12:07:07 +00:00
Andreas Schwab
647b07d1d7 Refill some entries to avoid lines > 80 columns. 2006-09-08 11:46:42 +00:00
Andreas Schwab
bcdbfd3668 (strout): Fix whitespace. 2006-09-08 11:39:24 +00:00
Kim F. Storm
1118718c05 (x_draw_glyph_string): Fix 2006-08-24 change. 2006-09-08 11:35:01 +00:00
Kim F. Storm
70c6267a37 *** empty log message *** 2006-09-08 11:34:50 +00:00
YAMAMOTO Mitsuharu
9deaefb7a6 *** empty log message *** 2006-09-08 08:18:39 +00:00
YAMAMOTO Mitsuharu
bed0bf953c (mac_handle_origin_change, mac_handle_size_change)
(mac_get_ideal_size): New functions.
(x_set_offset, x_set_window_size, x_make_frame_visible)
(do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
(install_window_handler, mac_handle_window_event)
[USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
kEventWindowBoundsChanged.
(XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
DragWindow.
2006-09-08 08:18:18 +00:00
YAMAMOTO Mitsuharu
fa4ba14c91 (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
Specify kWindowAsyncDragAttribute.
2006-09-08 08:18:08 +00:00
YAMAMOTO Mitsuharu
3e51e9ac8e [!MAC_OSX] Don't include keyboard.h.
[!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
in the same BLOCK_INPUT block, in case that some input has already
been read asynchronously.  Pretend to be interrupted by a signal
if some input is available.
[MAC_OSX] (select_and_poll_event, sys_select): Likewise.
(SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
Now used for ReceiveNextEvent timeout instead of select timeout.
(EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
[SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
support.  Quit event loop.
[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
connect support.  Reuse previously allocated CFRunLoopSource.
(Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
(syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2006-09-08 08:17:58 +00:00
Andreas Schwab
d7695a6342 (START_FILES, LIB_STANDARD): Override to
use lib64 instead of lib.
2006-09-07 10:48:21 +00:00
Stefan Monnier
be9b5a6076 Avoid double quotes when possible. 2006-09-06 17:53:59 +00:00
Kenichi Handa
04e28558df (Fformat_time_string): Use make_unibyte_string to make
a Lisp string from the result of emacs_memftimeu call.
2006-09-06 06:41:40 +00:00
Kim F. Storm
902f06edb1 *** empty log message *** 2006-09-05 22:52:17 +00:00
Kim F. Storm
7ca2645091 (pos_visible_p): Remove exact_mode_line_heights_p arg;
so always calculate heights even when pos-visible-in-window-p is
called with partially = t.  Don't overshoot last_visible_y in move_it_to.
Return row height and row number in new rowh and vpos args.
(cursor_row_fully_visible_p): First line is always "fully visible".
(try_window): Don't clear matrix if vscrolled.
2006-09-05 22:49:51 +00:00
Kim F. Storm
5a857365b5 (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
Return row height and row number for partially visible rows.
Modify return value to a 2 element list for fully visible rows
and 6 for partially visible row.
(window_scroll_pixel_based): Use pos_visible_p directly instead of
Fpos_visible_in_window_p.  Fix auto vscrolling for partially visible lines.
Only vscroll backwards if already vscrolled forwards.  Unconditionally
vscroll forwards if PT is first (and only) line.  Set new window start
instead of scrolling at start/end of tall line.
2006-09-05 22:49:43 +00:00
Kim F. Storm
3ad5e58f3e (pos_visible_p): Update prototype. 2006-09-05 22:49:36 +00:00
YAMAMOTO Mitsuharu
750a6cf4b2 (install_window_handler, mac_handle_window_event)
[USE_CARBON_EVENTS]: Handle kEventWindowClose.
[USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
ASCII keystroke event.
2006-09-05 01:03:33 +00:00
Jan Djärv
ae6c1c1950 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
the file chooser message.  Only call gtk_file_chooser_set_current_name
 when action is SAVE.
2006-09-04 14:47:52 +00:00
Andreas Schwab
5aa17bb2e5 Double all single and back quotes in C-style
comments to help fontifier.
2006-09-04 13:36:59 +00:00
Jason Rumney
a8c3a596c2 (shutdown_handler): New function to exit cleanly on shutdown.
(globals_of_w32): Register it as a signal handler.
2006-09-03 22:51:22 +00:00
Jason Rumney
934db4347f *** empty log message *** 2006-09-03 22:50:53 +00:00
Juri Linkov
6a8c7cfe20 *** empty log message *** 2006-09-02 23:44:59 +00:00
Juri Linkov
243d70e531 (Fmarker_position): Doc fix. 2006-09-02 23:44:21 +00:00
Eli Zaretskii
5c4aaa7905 *** empty log message *** 2006-09-02 21:25:52 +00:00
Eli Zaretskii
bdbae5b870 (syms_of_window) <split-height-threshold>:
<window-min-height, window-min-width>: Doc fix.
2006-09-02 21:19:21 +00:00
Jan Djärv
4f3097d8bc * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
for writing files.  Call gtk_file_chooser_set_current_name to keep
 default filename.
2006-09-02 18:10:15 +00:00
Jan Djärv
655ea21ca3 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls 2006-09-02 17:37:26 +00:00
Eli Zaretskii
79f6ba1f7a *** empty log message *** 2006-09-02 13:49:52 +00:00
Eli Zaretskii
eaa1e5ed0f (apply1, call2) [__GNUC__]: Declare with `__attribute__((noinline))'. 2006-09-02 13:40:16 +00:00
Eli Zaretskii
af91f644f4 (concat) [__GNUC__]: Declare with `__attribute__((noinline))'. 2006-09-02 13:39:48 +00:00
Eli Zaretskii
ebc80ddf5f *** empty log message *** 2006-09-02 11:35:46 +00:00
Eli Zaretskii
ff137f16c3 (Finternal_complete_buffer): New function.
(syms_of_minibuf): Defsubr it.
(Fread_buffer): Use it, instead of Vbuffer_alist.
2006-09-02 11:21:55 +00:00
Romain Francoise
5deb7a514b Whitespace fixes. 2006-09-01 20:49:06 +00:00
Chong Yidong
12bd42bee5 Minor doc fix. 2006-09-01 13:35:11 +00:00
Chong Yidong
eddc765847 Fix typo. 2006-09-01 13:30:05 +00:00
Chong Yidong
3e1451520b * buffer.h (struct buffer_text): New field chars_modiff.
(CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
        * buffer.c (Fbuffer_chars_modified_tick): New function returning
        value of BUF_CHARS_MODIFF.
        (syms_of_buffer): Defsubr it.
        (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
        * insdel.c (modify_region): New argument preserve_chars_modiff.
        Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
        (insert_1_both, insert_from_string_1, insert_from_buffer_1)
        (adjust_after_replace, adjust_after_replace_noundo)
        (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
        * lisp.h (modify_region): Add fourth argument in extern.
        * casefiddle.c (casify_region): Call modify_region with fourth
        argument zero to assert that CHARS_MODIFF is updated.
        * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
        (Ftranspose_regions): Likewise.
        * textprop.c (Fadd_text_properties, Fset_text_properties)
        (Fremove_text_properties, Fremove_list_of_text_properties):
        Call modify_region with fourth argument 1 to avoid that
        CHARS_MODIFF is updated.
2006-09-01 13:28:13 +00:00
Richard M. Stallman
80e0572b0e *** empty log message *** 2006-08-31 23:08:08 +00:00
Richard M. Stallman
de92d4d43e (Fformat): Don't sign-extend for %o or %x. 2006-08-31 23:07:39 +00:00
Chong Yidong
41d24b39c7 * indent.c (Fvertical_motion): Don't move back if we were
displaying a Lisp string, either.
2006-08-29 22:17:05 +00:00