aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-01-19 17:39:55 +0000
committerRichard M. Stallman2006-01-19 17:39:55 +0000
commitc3be81c7f8cf445b27dbbe2e26eaeaa4687591f1 (patch)
tree501e970921365239cd0e49a430510bd966a61906
parentdd95745a7ab4958b8c5afaa2f84ac474e8df2a4e (diff)
downloademacs-c3be81c7f8cf445b27dbbe2e26eaeaa4687591f1.tar.gz
emacs-c3be81c7f8cf445b27dbbe2e26eaeaa4687591f1.zip
(echo_char): Don't omit the space between first two echoed chars.
-rw-r--r--src/keyboard.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index aaeeeade541..897f691a5e9 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -790,6 +790,8 @@ echo_char (c)
790 else 790 else
791 echo_string = concat2 (echo_string, build_string (" ")); 791 echo_string = concat2 (echo_string, build_string (" "));
792 } 792 }
793 else if (STRINGP (echo_string))
794 echo_string = concat2 (echo_string, build_string (" "));
793 795
794 current_kboard->echo_string 796 current_kboard->echo_string
795 = concat2 (echo_string, make_string (buffer, ptr - buffer)); 797 = concat2 (echo_string, make_string (buffer, ptr - buffer));
@@ -820,16 +822,16 @@ echo_dash ()
820 /* Do nothing if we have already put a dash at the end. */ 822 /* Do nothing if we have already put a dash at the end. */
821 if (SCHARS (current_kboard->echo_string) > 1) 823 if (SCHARS (current_kboard->echo_string) > 1)
822 { 824 {
823 Lisp_Object last_char, prev_char, idx; 825 Lisp_Object last_char, prev_char, idx;
824 826
825 idx = make_number (SCHARS (current_kboard->echo_string) - 2); 827 idx = make_number (SCHARS (current_kboard->echo_string) - 2);
826 prev_char = Faref (current_kboard->echo_string, idx); 828 prev_char = Faref (current_kboard->echo_string, idx);
827 829
828 idx = make_number (SCHARS (current_kboard->echo_string) - 1); 830 idx = make_number (SCHARS (current_kboard->echo_string) - 1);
829 last_char = Faref (current_kboard->echo_string, idx); 831 last_char = Faref (current_kboard->echo_string, idx);
830 832
831 if (XINT (last_char) == '-' && XINT (prev_char) != ' ') 833 if (XINT (last_char) == '-' && XINT (prev_char) != ' ')
832 return; 834 return;
833 } 835 }
834 836
835 /* Put a dash at the end of the buffer temporarily, 837 /* Put a dash at the end of the buffer temporarily,