Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
27fffb27
Commit
27fffb27
authored
Jan 25, 2019
by
Phillip Lord
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
; Document input-event-functions
parent
f52de871
Pipeline
#619
failed with stage
in 60 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
doc/lispref/commands.texi
doc/lispref/commands.texi
+13
-1
etc/NEWS
etc/NEWS
+1
-0
No files found.
doc/lispref/commands.texi
View file @
27fffb27
...
...
@@ -256,7 +256,7 @@ It may be a Lisp expression that is not a string; then it should be a
form that is evaluated to get a list of arguments to pass to the
command. Usually this form will call various functions to read input
from the user, most often through the minibuffer (@pxref{Minibuffers})
or directly from the keyboard (@pxref{Reading Input})
.
or directly from the keyboard (@pxref{Reading Input})
Providing point or the mark as an argument value is also common, but
if you do this @emph{and} read input (whether using the minibuffer or
...
...
@@ -2920,6 +2920,18 @@ this expression) remains the value of @code{last-command-event}.
@end example
@end defvar
@defvar input-event-functions
This variable holds a list of functions to call after Emacs reads an
event, but before any commands are run. Each function recieves a
single argument: the event that has been read.
There are normally easier hooks to use than this; in particular
@var{pre-command-hook} is run immediately before any command resulting
from an event. However, not all events result in a command, including
many mouse events and some keyboard events when an input-method is
active (@pxref{Reading Input}).
@end defvar
@defmac while-no-input body@dots{}
This construct runs the @var{body} forms and returns the value of the
last one---but only if no input arrives. If any input arrives during
...
...
etc/NEWS
View file @
27fffb27
...
...
@@ -1204,6 +1204,7 @@ removed.
** 'lookup-key' can take a list of keymaps as argument.
+++
** New hook 'input-event-functions' run whenever a user-input is read.
+++
...
...
EMBA bot
@bot
mentioned in commit
325b5dbd
·
Mar 02, 2019
mentioned in commit
325b5dbd
mentioned in commit 325b5dbd87ecfc4457ad0aecf1407be8c5cd167a
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment