summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2006-09-15 07:19:15 +0000
committerDavid Kastrup <dak@gnu.org>2006-09-15 07:19:15 +0000
commit2e44802a055dede18ad1ff4fc5f4ad807e764b56 (patch)
treedb8b9f074f125f28623134f229b48cd264341bcc /etc
parent9aa795cc7f5abd1a6c4518e2b98763a2ac6ff5d6 (diff)
downloademacs-2e44802a055dede18ad1ff4fc5f4ad807e764b56.tar.gz
* 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'.
Diffstat (limited to 'etc')
-rw-r--r--etc/ChangeLog7
-rw-r--r--etc/NEWS6
2 files changed, 12 insertions, 1 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 767219dad4f..93b999b49a5 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-15 David Kastrup <dak@gnu.org>
+
+ * NEWS: explain new behavior and arguments of `key-binding' and
+ `command-remapping'.
+
2006-09-11 Paul Eggert <eggert@cs.ucla.edu>
* NEWS: In terminal-oriented subshells, the EMACS environment
@@ -102,7 +107,7 @@
* PROBLEMS: Emacs now requires ws2_32.dll on Windows.
-2006-07-14 K,Aa(Broly L,Bu(Brentey <lorentey@elte.hu>
+2006-07-14 K,Aa(Broly L$,1 q(Brentey <lorentey@elte.hu>
* HELLO: Update Hungarian sample.
diff --git a/etc/NEWS b/etc/NEWS
index 0e19f64720f..59048b8ff8a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -4681,6 +4681,12 @@ over minor mode keymaps.
text properties, according to their stickiness. This also means that it
works with empty overlays. The same hold for the `local-map' property.
+*** `key-binding' will now look up mouse-specific bindings. The
+keymaps consulted by `key-binding' will get adapted if the key
+sequence is started with a mouse event. Instead of letting the click
+position be determined from the key sequence itself, it is also
+possible to specify it with an optional argument explicitly.
+
*** Dense keymaps now handle inheritance correctly.
Previously a dense keymap would hide all of the simple-char key