1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00
Commit graph

21545 commits

Author SHA1 Message Date
David Kastrup
b74e16a384 * NEWS: explain new behavior and arguments of `key-binding' and
`command-remapping'.

* keymaps.texi (Active Keymaps): Adapt description to use
`get-char-property' instead `get-text-property'.  Explain how
mouse events change this.  Explain the new optional argument of
`key-binding' and its mouse-dependent lookup.
(Searching Keymaps): Adapt description similarly.  Explain the new
optional argument of `command-remapping'.

* Makefile.in (keymap.o): Add "keymap.h" and "window.h"
dependencies.

* keymap.c: include "window.h".
(Fcommand_remapping): New optional POSITION argument.
(Fkey_binding): New optional POSITION argument.  Completely rework
handling of mouse clicks to get the same order of keymaps as
`read-key-sequence' and heed POSITION.  Also temporarily switch
buffers to location of mouse click and back.

* keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
for additional argument.
(parse_menu_item): Adjust call of `Fkey_binding' for additional
argument.
(read_key_sequence): If there are both `local-map' and `keymap'
text properties at some buffer position, heed both.

* keymap.h: Declare additional optional arguments of
`Fcommand_remapping' and `Fkey_binding'.
2006-09-15 07:19:15 +00:00
Juanma Barranquero
6cb66a3193 *** empty log message *** 2006-09-15 02:03:37 +00:00
Juanma Barranquero
7bf120f11d (Fcurrent_column, Findent_to): Fix typos in docstring. 2006-09-15 01:53:18 +00:00
Andreas Schwab
cd3587c125 Whitespace fixup. 2006-09-14 13:12:15 +00:00
Kim F. Storm
50f814f59d (produce_image_glyph): Automatically crop wide images at
right window edge so we can draw the cursor on the same row to
avoid confusing redisplay by placing the cursor outside the visible
window area.
2006-09-14 09:37:44 +00:00
Kim F. Storm
84be646fde *** empty log message *** 2006-09-14 09:37:29 +00:00
Chong Yidong
2371cbe922 Typo. 2006-09-13 22:40:12 +00:00
Chong Yidong
98a20c65df * xterm.c (x_initialize): Don't install Xt event timer here.
(x_timeout_atimer_activated_flag): New var.
	(x_activate_timeout_atimer): New function to install Xt timer.
	(x_send_scroll_bar_event, x_process_timeouts): Use it.

	* xmenu.c (x_menu_set_in_use, popup_activate_callback)
	(create_and_show_popup_menu, create_and_show_dialog): Use it.

	* xterm.h (x_activate_timeout_atimer): prototype.
2006-09-13 22:39:23 +00:00
Richard M. Stallman
efb15f96f5 (print_string): When printcharfun is t,
copy string contents and call strout on the copy.
2006-09-13 15:16:12 +00:00
Richard M. Stallman
4c0240d20a (read_char): If end_time specified, don't put the
event into this_command_keys.
(read_key_sequence): If Voverriding_terminal_local_map is specified,
don't check Voverriding_local_map at all.
2006-09-13 15:12:59 +00:00
Chong Yidong
1baa749cfe Typo. 2006-09-12 16:47:50 +00:00
Chong Yidong
52c0f270f2 * textprop.c (Fnext_property_change, Fnext_single_property_change)
(Fprevious_property_change, Fprevious_single_property_change):
	Avoid changing limit, so we can correctly catch the case where the
	property is constant up to limit.
2006-09-12 16:47:26 +00:00
Paul Eggert
4b1aaa8b07 * etc/NEWS: In terminal-oriented subshells, the EMACS environment
variable now defaults to Emacs's absolute file name, instead of
to "t".
* etc/PROBLEMS: Adjust tcsh advice for this.
* make-dist (EMACS): Exit and fail if the EMACS environment
variable is set to something other than an absolute file name.
* lisp/comint.el (comint-exec-1): Set EMACS to the full name of Emacs,
not to "t".
* lisp/progmodes/compile.el (compilation-start): Likewise.
* lisp/progmodes/idlwave.el (idlwave-rescan-asynchronously):
Don't use expand-file-name on invocation-directory, since this
might mishandle special characters in invocation-directory.
* man/faq.texi (Escape sequences in shell output): EMACS is now set
to Emacs's absolute file name, not to "t".
(^M in the shell buffer): Likewise.
* man/misc.texi (Interactive Shell): Likewise.
2006-09-12 16:43:25 +00:00
YAMAMOTO Mitsuharu
eee81f5d74 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
Undo 2006-09-08 change.
2006-09-12 09:48:33 +00:00
YAMAMOTO Mitsuharu
95afacef74 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
Undo 2006-09-08 change.
2006-09-12 09:48:08 +00:00
Chong Yidong
91197db4cb * keymap.c (Fkey_binding): Use string position for string objects. 2006-09-11 13:03:40 +00:00
Kim F. Storm
4d32309c14 (Fkey_binding): Fix last change. 2006-09-11 08:52:42 +00:00
Kim F. Storm
9a71d7deb4 *** empty log message *** 2006-09-11 08:52:33 +00:00
Kim F. Storm
7bd5bcfba3 (Fmessage): Recommend using (message "%s" ...). 2006-09-11 08:26:47 +00:00
Kim F. Storm
83279b3e9c *** empty log message *** 2006-09-11 08:26:37 +00:00
Chong Yidong
b067ddb637 * keymap.c (Fkey_binding): Check for local keymap for mouse click
events.
2006-09-11 02:34:05 +00:00
Kim F. Storm
606fd46931 *** empty log message *** 2006-09-10 21:40:32 +00:00
Kim F. Storm
182f67def5 (Finput_pending_p): Check Vunread_input_method_events
and Vunread_post_input_method_events.
2006-09-10 21:10:50 +00:00
Kim F. Storm
032409712e (Fredisplay): Document return value. 2006-09-10 20:50:54 +00:00
Kim F. Storm
322dd25485 *** empty log message *** 2006-09-10 20:50:20 +00:00
Jan Djärv
437b2a15d8 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
* gtkutil.c (xg_display_close): Always change default display if needed,
 check for < Gtk+ version 2.10 before calling gdk_display_close.
2006-09-10 12:17:49 +00:00
Jan Djärv
9d7dda8a86 * gtkutil.c (xg_display_close): Always change default display if needed,
check for < Gtk+ version 2.10 before calling gdk_display_close.
2006-09-10 12:17:19 +00:00
Jan Djärv
16e4bfaf96 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK. 2006-09-10 12:16:58 +00:00
YAMAMOTO Mitsuharu
d7b1ea44e5 *** empty log message *** 2006-09-10 06:25:40 +00:00
YAMAMOTO Mitsuharu
6eeee4d618 (Fx_file_dialog): Call check_x. 2006-09-10 05:52:54 +00:00
YAMAMOTO Mitsuharu
0e9ffc04d9 * src/macmenu.c (Vmenu_updating_frame, syms_of_xmenu):
* src/w32menu.c (Vmenu_updating_frame, syms_of_xmenu): Apply
2006-09-08 change for xmenu.c.
2006-09-10 05:52:01 +00:00
YAMAMOTO Mitsuharu
267fb7e271 (Fx_file_dialog): Remove unused variable `f'. Call check_mac. 2006-09-10 05:51:45 +00:00
YAMAMOTO Mitsuharu
601b0df72f [MAC_OSX] (sys_select): Check argument `nfds' more
rigidly.  Make variable `ofds' static.  Remove variable `maxfd'.
2006-09-10 05:51:29 +00:00
Kim F. Storm
f90660aa86 *** empty log message *** 2006-09-10 00:26:17 +00:00
Kim F. Storm
d75a48427c (get_window_cursor_type): Use hollow cursor on
non-transparent images.
2006-09-10 00:10:46 +00:00
Richard M. Stallman
4248ca0c2f (Vmenu_updating_frame): Don't define here.
(syms_of_xmenu): Don't DEFVAR it here.
2006-09-09 17:51:17 +00:00
Eli Zaretskii
c048d60609 *** empty log message *** 2006-09-09 11:07:11 +00:00
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