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: Wed, 30 Apr 2003 17:04:13 -0400

Index: emacs/src/keyboard.c
diff -c emacs/src/keyboard.c:1.735 emacs/src/keyboard.c:1.736
*** emacs/src/keyboard.c:1.735  Wed Apr 30 08:08:07 2003
--- emacs/src/keyboard.c        Wed Apr 30 17:04:13 2003
***************
*** 5844,5849 ****
--- 5844,5869 ----
          break;
  
  #undef SINGLE_LETTER_MOD
+ 
+ #define MULTI_LETTER_MOD(BIT, NAME, LEN)                      \
+         if (i + LEN + 1 <= SBYTES (name)                      \
+             && ! strncmp (SDATA (name) + i, NAME, LEN))       \
+           {                                                   \
+             this_mod_end = i + LEN;                           \
+             this_mod = BIT;                                   \
+           }
+ 
+       case 'd':
+         MULTI_LETTER_MOD (drag_modifier, "drag", 4);
+         MULTI_LETTER_MOD (down_modifier, "down", 4);
+         MULTI_LETTER_MOD (double_modifier, "double", 6);
+         break;
+ 
+       case 't':
+         MULTI_LETTER_MOD (triple_modifier, "triple", 6);
+         break;
+ #undef MULTI_LETTER_MOD
+ 
        }
  
        /* If we found no modifier, stop looking for them.  */




reply via email to

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