emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/keyboard.c


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/keyboard.c
Date: Wed, 14 Jul 2004 20:09:05 -0400

Index: emacs/src/keyboard.c
diff -c emacs/src/keyboard.c:1.782 emacs/src/keyboard.c:1.783
*** emacs/src/keyboard.c:1.782  Tue Jul  6 23:32:37 2004
--- emacs/src/keyboard.c        Wed Jul 14 22:42:44 2004
***************
*** 802,807 ****
--- 802,822 ----
        == SCHARS (current_kboard->echo_string))
      return;
  
+   /* Do nothing if we have already put a dash at the end.  */
+   if (SCHARS (current_kboard->echo_string) > 1)
+     {
+         Lisp_Object last_char, prev_char, idx;
+ 
+         idx = make_number (SCHARS (current_kboard->echo_string) - 2);
+         prev_char = Faref (current_kboard->echo_string, idx);
+ 
+         idx = make_number (SCHARS (current_kboard->echo_string) - 1);
+         last_char = Faref (current_kboard->echo_string, idx);
+ 
+         if (XINT (last_char) == '-' && XINT (prev_char) != ' ')
+           return;
+     }
+ 
    /* Put a dash at the end of the buffer temporarily,
       but make it go away when the next character is added.  */
    current_kboard->echo_string = concat2 (current_kboard->echo_string,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]