]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Add hook for all events"
authorPhillip Lord <phillip.lord@russet.org.uk>
Sat, 2 Mar 2019 16:52:53 +0000 (16:52 +0000)
committerPhillip Lord <phillip.lord@russet.org.uk>
Sat, 2 Mar 2019 16:52:53 +0000 (16:52 +0000)
This reverts commit 7b31de4d107302ed91ce7519cd778b340a9880ee.

etc/NEWS
lisp/subr.el
src/keyboard.c

index 5b4d9488ed4f3b227bbccd204601bb7e4980db84..b2651855678f274b262ad3fc50957a989e2780b5 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1293,13 +1293,11 @@ removed.
 \f
 * Lisp Changes in Emacs 27.1
 
-
++++
 ** 'self-insert-command' takes the char to insert as (optional) argument.
 
 ** 'lookup-key' can take a list of keymaps as argument.
 
-** New hook `input-event-functions` run whenever a user-input is read.
-
 +++
 ** 'condition-case' now accepts 't' to match any error symbol.
 
index 5c8b84b8e9c99b06c8e3a1bbc7d9d5aadf92de5d..5b0330745fa4730cfd2f569fc3c62f6937cea26e 100644 (file)
@@ -1289,12 +1289,6 @@ See `event-start' for a description of the value returned."
 The return value is a positive integer."
   (if (and (consp event) (integerp (nth 2 event))) (nth 2 event) 1))
 
-(defvar input-event-functions nil
-  ;; BEWARE: If it looks like this is not run anywhere, it's normal:
-  ;; this is run in keyboard.c.
-  "Special hook run each time a user-input event is read.
-Each function is called with one argument: the event.")
-
 (defsubst event-line-count (event)
   "Return the line count of EVENT, a mousewheel event.
 The return value is a positive integer."
index c2d8b860e4e14388fc02596dec1c35dc8aaa8baf..6e805ec7e69af83d9cedc6f8e8dd30b0309f0e7f 100644 (file)
@@ -2928,8 +2928,6 @@ read_char (int commandflag, Lisp_Object map,
   if (! NILP (also_record))
     record_char (also_record);
 
-  CALLN (Frun_hook_with_args, Qinput_event_functions, c);
-
   /* Wipe the echo area.
      But first, if we are about to use an input method,
      save the echo area contents for it to refer to.  */
@@ -11034,8 +11032,6 @@ syms_of_keyboard (void)
 
   DEFSYM (Qundefined, "undefined");
 
-  DEFSYM (Qinput_event_functions, "input-event-functions");
-
   /* Hooks to run before and after each command.  */
   DEFSYM (Qpre_command_hook, "pre-command-hook");
   DEFSYM (Qpost_command_hook, "post-command-hook");