aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-08-09 11:05:10 +0000
committerKaroly Lorentey2004-08-09 11:05:10 +0000
commitcd83ec7be76b05014a49f8bb155a84ddd7c323ee (patch)
treed8847695cedbde0c1bad8737131e219bfac6ce8a /src
parent18ad87544445be2584163436bd3c5d6366afa122 (diff)
parent30e75a873acbcc4f4d59d0341fb49211d8c6d010 (diff)
downloademacs-cd83ec7be76b05014a49f8bb155a84ddd7c323ee.tar.gz
emacs-cd83ec7be76b05014a49f8bb155a84ddd7c323ee.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-482 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-483 Build-in-place tweak * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-484 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-228
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog24
-rw-r--r--src/fileio.c8
-rw-r--r--src/keyboard.c13
-rw-r--r--src/keymap.c6
-rw-r--r--src/window.c2
5 files changed, 40 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2b0c47862d4..248d5daa92e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,27 @@
12004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2
3 * keyboard.c: Declare Qdisabled_command_function instead of
4 Qdisabled_command_hook.
5 (Fcommand_execute): Use Qdisabled_command_function instead of
6 Qdisabled_command_hook.
7 (syms_of_keyboard): Ditto.
8
92004-08-07 Luc Teirlinck <teirllm@auburn.edu>
10
11 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
12 (syms_of_keymap) <key-translation-map>: Doc fixes.
13
142004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * window.c (window_list_1): YAILOM.
17
18 * fileio.c (make_temp_name): Handle multibyte prefixes.
19
202004-08-06 Luc Teirlinck <teirllm@auburn.edu>
21
22 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
23 Doc fix.
24
12004-08-03 Kenichi Handa <handa@m17n.org> 252004-08-03 Kenichi Handa <handa@m17n.org>
2 26
3 * coding.c (decode_coding_string): Adjust coding->consumed, and 27 * coding.c (decode_coding_string): Adjust coding->consumed, and
diff --git a/src/fileio.c b/src/fileio.c
index a05d7689c12..180f6f94130 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -888,7 +888,7 @@ make_temp_name (prefix, base64_p)
888 int base64_p; 888 int base64_p;
889{ 889{
890 Lisp_Object val; 890 Lisp_Object val;
891 int len; 891 int len, clen;
892 int pid; 892 int pid;
893 unsigned char *p, *data; 893 unsigned char *p, *data;
894 char pidbuf[20]; 894 char pidbuf[20];
@@ -923,8 +923,10 @@ make_temp_name (prefix, base64_p)
923#endif 923#endif
924 } 924 }
925 925
926 len = SCHARS (prefix); 926 len = SBYTES (prefix); clen = SCHARS (prefix);
927 val = make_uninit_string (len + 3 + pidlen); 927 val = make_uninit_multibyte_string (clen + 3 + pidlen, len + 3 + pidlen);
928 if (!STRING_MULTIBYTE (prefix))
929 STRING_SET_UNIBYTE (val);
928 data = SDATA (val); 930 data = SDATA (val);
929 bcopy(SDATA (prefix), data, len); 931 bcopy(SDATA (prefix), data, len);
930 p = data + len; 932 p = data + len;
diff --git a/src/keyboard.c b/src/keyboard.c
index c84e5d7bedc..d0b081e5cdd 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -127,8 +127,8 @@ KBOARD the_only_kboard;
127#endif 127#endif
128 128
129/* Non-nil disable property on a command means 129/* Non-nil disable property on a command means
130 do not execute it; call disabled-command-hook's value instead. */ 130 do not execute it; call disabled-command-function's value instead. */
131Lisp_Object Qdisabled, Qdisabled_command_hook; 131Lisp_Object Qdisabled, Qdisabled_command_function;
132 132
133#define NUM_RECENT_KEYS (100) 133#define NUM_RECENT_KEYS (100)
134int recent_keys_index; /* Index for storing next element into recent_keys */ 134int recent_keys_index; /* Index for storing next element into recent_keys */
@@ -9736,9 +9736,9 @@ a special event, so ignore the prefix argument and don't clear it. */)
9736 tem = Fget (cmd, Qdisabled); 9736 tem = Fget (cmd, Qdisabled);
9737 if (!NILP (tem) && !NILP (Vrun_hooks)) 9737 if (!NILP (tem) && !NILP (Vrun_hooks))
9738 { 9738 {
9739 tem = Fsymbol_value (Qdisabled_command_hook); 9739 tem = Fsymbol_value (Qdisabled_command_function);
9740 if (!NILP (tem)) 9740 if (!NILP (tem))
9741 return call1 (Vrun_hooks, Qdisabled_command_hook); 9741 return call1 (Vrun_hooks, Qdisabled_command_function);
9742 } 9742 }
9743 } 9743 }
9744 9744
@@ -10916,8 +10916,8 @@ syms_of_keyboard ()
10916 Qtimer_event_handler = intern ("timer-event-handler"); 10916 Qtimer_event_handler = intern ("timer-event-handler");
10917 staticpro (&Qtimer_event_handler); 10917 staticpro (&Qtimer_event_handler);
10918 10918
10919 Qdisabled_command_hook = intern ("disabled-command-hook"); 10919 Qdisabled_command_function = intern ("disabled-command-function");
10920 staticpro (&Qdisabled_command_hook); 10920 staticpro (&Qdisabled_command_function);
10921 10921
10922 Qself_insert_command = intern ("self-insert-command"); 10922 Qself_insert_command = intern ("self-insert-command");
10923 staticpro (&Qself_insert_command); 10923 staticpro (&Qself_insert_command);
@@ -11414,6 +11414,7 @@ The elements of the list are event types that may have menu bar bindings. */);
11414 doc: /* Per-terminal keymap that overrides all other local keymaps. 11414 doc: /* Per-terminal keymap that overrides all other local keymaps.
11415If this variable is non-nil, it is used as a keymap instead of the 11415If this variable is non-nil, it is used as a keymap instead of the
11416buffer's local map, and the minor mode keymaps and text property keymaps. 11416buffer's local map, and the minor mode keymaps and text property keymaps.
11417It also overrides `overriding-local-map'.
11417This variable is intended to let commands such as `universal-argument' 11418This variable is intended to let commands such as `universal-argument'
11418set up a different keymap for reading the next command. */); 11419set up a different keymap for reading the next command. */);
11419 11420
diff --git a/src/keymap.c b/src/keymap.c
index ee4f41de6b8..e93a3f89fe4 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1603,7 +1603,7 @@ is non-nil, `key-binding' returns the unmapped command. */)
1603 1603
1604DEFUN ("local-key-binding", Flocal_key_binding, Slocal_key_binding, 1, 2, 0, 1604DEFUN ("local-key-binding", Flocal_key_binding, Slocal_key_binding, 1, 2, 0,
1605 doc: /* Return the binding for command KEYS in current local keymap only. 1605 doc: /* Return the binding for command KEYS in current local keymap only.
1606KEYS is a string, a sequence of keystrokes. 1606KEYS is a string or vector, a sequence of keystrokes.
1607The binding is probably a symbol with a function definition. 1607The binding is probably a symbol with a function definition.
1608 1608
1609If optional argument ACCEPT-DEFAULT is non-nil, recognize default 1609If optional argument ACCEPT-DEFAULT is non-nil, recognize default
@@ -1622,7 +1622,7 @@ bindings; see the description of `lookup-key' for more details about this. */)
1622 1622
1623DEFUN ("global-key-binding", Fglobal_key_binding, Sglobal_key_binding, 1, 2, 0, 1623DEFUN ("global-key-binding", Fglobal_key_binding, Sglobal_key_binding, 1, 2, 0,
1624 doc: /* Return the binding for command KEYS in current global keymap only. 1624 doc: /* Return the binding for command KEYS in current global keymap only.
1625KEYS is a string, a sequence of keystrokes. 1625KEYS is a string or vector, a sequence of keystrokes.
1626The binding is probably a symbol with a function definition. 1626The binding is probably a symbol with a function definition.
1627This function's return values are the same as those of `lookup-key' 1627This function's return values are the same as those of `lookup-key'
1628\(which see). 1628\(which see).
@@ -3752,7 +3752,7 @@ key, typing `ESC O P x' would return [f1 x]. */);
3752 DEFVAR_LISP ("key-translation-map", &Vkey_translation_map, 3752 DEFVAR_LISP ("key-translation-map", &Vkey_translation_map,
3753 doc: /* Keymap of key translations that can override keymaps. 3753 doc: /* Keymap of key translations that can override keymaps.
3754This keymap works like `function-key-map', but comes after that, 3754This keymap works like `function-key-map', but comes after that,
3755and applies even for keys that have ordinary bindings. */); 3755and its non-prefix bindings override ordinary bindings. */);
3756 Vkey_translation_map = Qnil; 3756 Vkey_translation_map = Qnil;
3757 3757
3758 staticpro (&Vmouse_events); 3758 staticpro (&Vmouse_events);
diff --git a/src/window.c b/src/window.c
index 4baf9d371bc..8a704bdc298 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1830,7 +1830,7 @@ window_list_1 (window, minibuf, all_frames)
1830 rest = Fmemq (window, list); 1830 rest = Fmemq (window, list);
1831 if (!NILP (rest) && !EQ (rest, list)) 1831 if (!NILP (rest) && !EQ (rest, list))
1832 { 1832 {
1833 for (tail = list; XCDR (tail) != rest; tail = XCDR (tail)) 1833 for (tail = list; !EQ (XCDR (tail), rest); tail = XCDR (tail))
1834 ; 1834 ;
1835 XSETCDR (tail, Qnil); 1835 XSETCDR (tail, Qnil);
1836 list = nconc2 (rest, list); 1836 list = nconc2 (rest, list);