aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2004-08-10 07:46:40 +0000
committerMiles Bader2004-08-10 07:46:40 +0000
commit1322bdcbf48485396604a6196ad953e4ac96ab19 (patch)
tree507b63c76d153ce09636fadb88057de967cffe12 /src
parentcc02ceeea1c29881f88c715e6bfa6e80d7bfb2be (diff)
parent72f2b52554110518f03f81556c2192413700ad97 (diff)
downloademacs-1322bdcbf48485396604a6196ad953e4ac96ab19.tar.gz
emacs-1322bdcbf48485396604a6196ad953e4ac96ab19.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-29
Merge from lorentey@elte.hu--2004/emacs--multi-tty--0, emacs--cvs-trunk--0 Patches applied: * lorentey@elte.hu--2004/emacs--multi-tty--0--patch-224 Added sorted-doc to backup regex in lib-src. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-479 - 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 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-485 Update from CVS
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog33
-rw-r--r--src/fileio.c8
-rw-r--r--src/indent.c6
-rw-r--r--src/keyboard.c13
-rw-r--r--src/keymap.c26
-rw-r--r--src/window.c2
6 files changed, 64 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0194c4b8c6f..3f9b6d85e51 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,36 @@
12004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2
3 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
4
52004-08-08 Luc Teirlinck <teirllm@auburn.edu>
6
7 * keyboard.c: Declare Qdisabled_command_function instead of
8 Qdisabled_command_hook.
9 (Fcommand_execute): Use Qdisabled_command_function instead of
10 Qdisabled_command_hook.
11 (syms_of_keyboard): Ditto.
12
132004-08-07 Luc Teirlinck <teirllm@auburn.edu>
14
15 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
16 (syms_of_keymap) <key-translation-map>: Doc fixes.
17
182004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
19
20 * window.c (window_list_1): YAILOM.
21
22 * fileio.c (make_temp_name): Handle multibyte prefixes.
23
242004-08-06 Luc Teirlinck <teirllm@auburn.edu>
25
26 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
27 Doc fix.
28
292004-08-03 Kenichi Handa <handa@m17n.org>
30
31 * coding.c (decode_coding_string): Adjust coding->consumed, and
32 etc. with shrinked_bytes.
33
12004-08-03 Kim F. Storm <storm@cua.dk> 342004-08-03 Kim F. Storm <storm@cua.dk>
2 35
3 * indent.c (compute_motion): Fix check for full width window 36 * indent.c (compute_motion): Fix check for full width window
diff --git a/src/fileio.c b/src/fileio.c
index a22216040f3..5f5a3c84d73 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -887,7 +887,7 @@ make_temp_name (prefix, base64_p)
887 int base64_p; 887 int base64_p;
888{ 888{
889 Lisp_Object val; 889 Lisp_Object val;
890 int len; 890 int len, clen;
891 int pid; 891 int pid;
892 unsigned char *p, *data; 892 unsigned char *p, *data;
893 char pidbuf[20]; 893 char pidbuf[20];
@@ -922,8 +922,10 @@ make_temp_name (prefix, base64_p)
922#endif 922#endif
923 } 923 }
924 924
925 len = SCHARS (prefix); 925 len = SBYTES (prefix); clen = SCHARS (prefix);
926 val = make_uninit_string (len + 3 + pidlen); 926 val = make_uninit_multibyte_string (clen + 3 + pidlen, len + 3 + pidlen);
927 if (!STRING_MULTIBYTE (prefix))
928 STRING_SET_UNIBYTE (val);
927 data = SDATA (val); 929 data = SDATA (val);
928 bcopy(SDATA (prefix), data, len); 930 bcopy(SDATA (prefix), data, len);
929 p = data + len; 931 p = data + len;
diff --git a/src/indent.c b/src/indent.c
index d8bd5f5c663..9ac4027af36 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1260,10 +1260,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
1260 width -= 1; 1260 width -= 1;
1261 } 1261 }
1262 1262
1263 continuation_glyph_width = 0; 1263 continuation_glyph_width = 1;
1264#ifdef HAVE_WINDOW_SYSTEM 1264#ifdef HAVE_WINDOW_SYSTEM
1265 if (!FRAME_WINDOW_P (XFRAME (win->frame))) 1265 if (FRAME_WINDOW_P (XFRAME (win->frame)))
1266 continuation_glyph_width = 1; 1266 continuation_glyph_width = 0; /* In the fringe. */
1267#endif 1267#endif
1268 1268
1269 immediate_quit = 1; 1269 immediate_quit = 1;
diff --git a/src/keyboard.c b/src/keyboard.c
index 23e29e3f878..f26d104d67b 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -131,8 +131,8 @@ KBOARD the_only_kboard;
131#endif 131#endif
132 132
133/* Non-nil disable property on a command means 133/* Non-nil disable property on a command means
134 do not execute it; call disabled-command-hook's value instead. */ 134 do not execute it; call disabled-command-function's value instead. */
135Lisp_Object Qdisabled, Qdisabled_command_hook; 135Lisp_Object Qdisabled, Qdisabled_command_function;
136 136
137#define NUM_RECENT_KEYS (100) 137#define NUM_RECENT_KEYS (100)
138int recent_keys_index; /* Index for storing next element into recent_keys */ 138int recent_keys_index; /* Index for storing next element into recent_keys */
@@ -9663,9 +9663,9 @@ a special event, so ignore the prefix argument and don't clear it. */)
9663 tem = Fget (cmd, Qdisabled); 9663 tem = Fget (cmd, Qdisabled);
9664 if (!NILP (tem) && !NILP (Vrun_hooks)) 9664 if (!NILP (tem) && !NILP (Vrun_hooks))
9665 { 9665 {
9666 tem = Fsymbol_value (Qdisabled_command_hook); 9666 tem = Fsymbol_value (Qdisabled_command_function);
9667 if (!NILP (tem)) 9667 if (!NILP (tem))
9668 return call1 (Vrun_hooks, Qdisabled_command_hook); 9668 return call1 (Vrun_hooks, Qdisabled_command_function);
9669 } 9669 }
9670 } 9670 }
9671 9671
@@ -10780,8 +10780,8 @@ syms_of_keyboard ()
10780 Qtimer_event_handler = intern ("timer-event-handler"); 10780 Qtimer_event_handler = intern ("timer-event-handler");
10781 staticpro (&Qtimer_event_handler); 10781 staticpro (&Qtimer_event_handler);
10782 10782
10783 Qdisabled_command_hook = intern ("disabled-command-hook"); 10783 Qdisabled_command_function = intern ("disabled-command-function");
10784 staticpro (&Qdisabled_command_hook); 10784 staticpro (&Qdisabled_command_function);
10785 10785
10786 Qself_insert_command = intern ("self-insert-command"); 10786 Qself_insert_command = intern ("self-insert-command");
10787 staticpro (&Qself_insert_command); 10787 staticpro (&Qself_insert_command);
@@ -11278,6 +11278,7 @@ The elements of the list are event types that may have menu bar bindings. */);
11278 doc: /* Per-terminal keymap that overrides all other local keymaps. 11278 doc: /* Per-terminal keymap that overrides all other local keymaps.
11279If this variable is non-nil, it is used as a keymap instead of the 11279If this variable is non-nil, it is used as a keymap instead of the
11280buffer's local map, and the minor mode keymaps and text property keymaps. 11280buffer's local map, and the minor mode keymaps and text property keymaps.
11281It also overrides `overriding-local-map'.
11281This variable is intended to let commands such as `universal-argument' 11282This variable is intended to let commands such as `universal-argument'
11282set up a different keymap for reading the next command. */); 11283set up a different keymap for reading the next command. */);
11283 11284
diff --git a/src/keymap.c b/src/keymap.c
index 98e04f65717..36e33f9610f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -131,10 +131,11 @@ static void silly_event_symbol_error P_ ((Lisp_Object));
131 131
132DEFUN ("make-keymap", Fmake_keymap, Smake_keymap, 0, 1, 0, 132DEFUN ("make-keymap", Fmake_keymap, Smake_keymap, 0, 1, 0,
133 doc: /* Construct and return a new keymap, of the form (keymap CHARTABLE . ALIST). 133 doc: /* Construct and return a new keymap, of the form (keymap CHARTABLE . ALIST).
134CHARTABLE is a char-table that holds the bindings for the ASCII 134CHARTABLE is a char-table that holds the bindings for all characters
135characters. ALIST is an assoc-list which holds bindings for function keys, 135without modifiers. All entries in it are initially nil, meaning
136mouse events, and any other things that appear in the input stream. 136"command undefined". ALIST is an assoc-list which holds bindings for
137All entries in it are initially nil, meaning "command undefined". 137function keys, mouse events, and any other things that appear in the
138input stream. Initially, ALIST is nil.
138 139
139The optional arg STRING supplies a menu name for the keymap 140The optional arg STRING supplies a menu name for the keymap
140in case you use it as a menu with `x-popup-menu'. */) 141in case you use it as a menu with `x-popup-menu'. */)
@@ -703,7 +704,10 @@ map_keymap_call (key, val, fun, dummy)
703 704
704DEFUN ("map-keymap", Fmap_keymap, Smap_keymap, 2, 2, 0, 705DEFUN ("map-keymap", Fmap_keymap, Smap_keymap, 2, 2, 0,
705 doc: /* Call FUNCTION for every binding in KEYMAP. 706 doc: /* Call FUNCTION for every binding in KEYMAP.
706FUNCTION is called with two arguments: the event and its binding. */) 707FUNCTION is called with two arguments: the event and its binding.
708If KEYMAP has a parent, the parent's bindings are included as well.
709This works recursively: if the parent has itself a parent, then the
710grandparent's bindings are also included and so on. */)
707 (function, keymap) 711 (function, keymap)
708 Lisp_Object function, keymap; 712 Lisp_Object function, keymap;
709{ 713{
@@ -1635,7 +1639,7 @@ is non-nil, `key-binding' returns the unmapped command. */)
1635 1639
1636DEFUN ("local-key-binding", Flocal_key_binding, Slocal_key_binding, 1, 2, 0, 1640DEFUN ("local-key-binding", Flocal_key_binding, Slocal_key_binding, 1, 2, 0,
1637 doc: /* Return the binding for command KEYS in current local keymap only. 1641 doc: /* Return the binding for command KEYS in current local keymap only.
1638KEYS is a string, a sequence of keystrokes. 1642KEYS is a string or vector, a sequence of keystrokes.
1639The binding is probably a symbol with a function definition. 1643The binding is probably a symbol with a function definition.
1640 1644
1641If optional argument ACCEPT-DEFAULT is non-nil, recognize default 1645If optional argument ACCEPT-DEFAULT is non-nil, recognize default
@@ -1654,7 +1658,7 @@ bindings; see the description of `lookup-key' for more details about this. */)
1654 1658
1655DEFUN ("global-key-binding", Fglobal_key_binding, Sglobal_key_binding, 1, 2, 0, 1659DEFUN ("global-key-binding", Fglobal_key_binding, Sglobal_key_binding, 1, 2, 0,
1656 doc: /* Return the binding for command KEYS in current global keymap only. 1660 doc: /* Return the binding for command KEYS in current global keymap only.
1657KEYS is a string, a sequence of keystrokes. 1661KEYS is a string or vector, a sequence of keystrokes.
1658The binding is probably a symbol with a function definition. 1662The binding is probably a symbol with a function definition.
1659This function's return values are the same as those of `lookup-key' 1663This function's return values are the same as those of `lookup-key'
1660\(which see). 1664\(which see).
@@ -2561,7 +2565,7 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap)
2561 2565
2562DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0, 2566DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0,
2563 doc: /* Return list of keys that invoke DEFINITION. 2567 doc: /* Return list of keys that invoke DEFINITION.
2564If KEYMAP is non-nil, search only KEYMAP and the global keymap. 2568If KEYMAP is a keymap, search only KEYMAP and the global keymap.
2565If KEYMAP is nil, search all the currently active keymaps. 2569If KEYMAP is nil, search all the currently active keymaps.
2566If KEYMAP is a list of keymaps, search only those keymaps. 2570If KEYMAP is a list of keymaps, search only those keymaps.
2567 2571
@@ -2569,8 +2573,8 @@ If optional 3rd arg FIRSTONLY is non-nil, return the first key sequence found,
2569rather than a list of all possible key sequences. 2573rather than a list of all possible key sequences.
2570If FIRSTONLY is the symbol `non-ascii', return the first binding found, 2574If FIRSTONLY is the symbol `non-ascii', return the first binding found,
2571no matter what it is. 2575no matter what it is.
2572If FIRSTONLY has another non-nil value, prefer sequences of ASCII characters, 2576If FIRSTONLY has another non-nil value, prefer sequences of ASCII characters
2573and entirely reject menu bindings. 2577\(or their meta variants) and entirely reject menu bindings.
2574 2578
2575If optional 4th arg NOINDIRECT is non-nil, don't follow indirections 2579If optional 4th arg NOINDIRECT is non-nil, don't follow indirections
2576to other keymaps or slots. This makes it possible to search for an 2580to other keymaps or slots. This makes it possible to search for an
@@ -3593,7 +3597,7 @@ key, typing `ESC O P x' would return [f1 x]. */);
3593 DEFVAR_LISP ("key-translation-map", &Vkey_translation_map, 3597 DEFVAR_LISP ("key-translation-map", &Vkey_translation_map,
3594 doc: /* Keymap of key translations that can override keymaps. 3598 doc: /* Keymap of key translations that can override keymaps.
3595This keymap works like `function-key-map', but comes after that, 3599This keymap works like `function-key-map', but comes after that,
3596and applies even for keys that have ordinary bindings. */); 3600and its non-prefix bindings override ordinary bindings. */);
3597 Vkey_translation_map = Qnil; 3601 Vkey_translation_map = Qnil;
3598 3602
3599 staticpro (&Vmouse_events); 3603 staticpro (&Vmouse_events);
diff --git a/src/window.c b/src/window.c
index e2c3fe51744..c64902501db 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1828,7 +1828,7 @@ window_list_1 (window, minibuf, all_frames)
1828 rest = Fmemq (window, list); 1828 rest = Fmemq (window, list);
1829 if (!NILP (rest) && !EQ (rest, list)) 1829 if (!NILP (rest) && !EQ (rest, list))
1830 { 1830 {
1831 for (tail = list; XCDR (tail) != rest; tail = XCDR (tail)) 1831 for (tail = list; !EQ (XCDR (tail), rest); tail = XCDR (tail))
1832 ; 1832 ;
1833 XSETCDR (tail, Qnil); 1833 XSETCDR (tail, Qnil);
1834 list = nconc2 (rest, list); 1834 list = nconc2 (rest, list);