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: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/src/keyboard.c
Date: Sat, 24 May 2003 10:52:11 -0400

Index: emacs/src/keyboard.c
diff -c emacs/src/keyboard.c:1.744 emacs/src/keyboard.c:1.745
*** emacs/src/keyboard.c:1.744  Thu May 15 17:20:52 2003
--- emacs/src/keyboard.c        Sat May 24 10:52:10 2003
***************
*** 9138,9143 ****
--- 9138,9164 ----
                             xterm-mouse-mode.  -stef
  
                             Isn't this just the most wonderful code ever?  */
+ 
+                         /* If mock_input > t + 1, the above simplification
+                            will actually end up dropping keys on the floor.
+                            This is probably OK for now, but even
+                            if mock_input <= t + 1, we need to adjust fkey
+                            and keytran.
+                            Typical case [header-line down-mouse-N]:
+                            mock_input = 2, t = 1, fkey.end = 1,
+                            last_real_key_start = 0.  */
+                         if (fkey.end > last_real_key_start)
+                           {
+                             fkey.end = fkey.start
+                               = min (last_real_key_start, fkey.start);
+                             fkey.map = fkey.parent;
+                             if (keytran.end > last_real_key_start)
+                               {
+                                 keytran.end = keytran.start
+                                   = min (last_real_key_start, keytran.start);
+                                 keytran.map = keytran.parent;
+                               }
+                           }
                          if (t == last_real_key_start)
                            {
                              mock_input = 0;




reply via email to

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