Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fa462250
Commit
fa462250
authored
Jun 11, 1993
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(electric-history-map): Don't use fillarray;
make default bindings instead. Bind up, down, home, next, prior.
parent
7ecc7c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
lisp/echistory.el
lisp/echistory.el
+9
-4
No files found.
lisp/echistory.el
View file @
fa462250
...
...
@@ -42,10 +42,10 @@ With prefix arg NOCONFIRM, execute current line as-is without editing."
(
defvar
electric-history-map
())
(
if
electric-history-map
()
(
setq
electric-history-map
(
make-keymap
))
(
fillarra
y
electric-history-map
'Electric-history-undefined
)
(
define-key
electric-history-map
"\e"
(
make-keymap
))
(
fillarray
(
lookup
-key
electric-history-map
"\e"
)
'Electric-history-undefined
)
(
setq
electric-history-map
(
make-
sparse-
keymap
))
(
define-ke
y
electric-history-map
[t]
'Electric-history-undefined
)
(
define-key
electric-history-map
"\e"
(
make-
sparse-
keymap
))
(
define
-key
electric-history-map
[?\e
t]
'Electric-history-undefined
)
(
define-key
electric-history-map
"\C-u"
'universal-argument
)
(
define-key
electric-history-map
" "
'Electric-command-history-redo-expression
)
(
define-key
electric-history-map
"!"
'Electric-command-history-redo-expression
)
...
...
@@ -74,6 +74,11 @@ With prefix arg NOCONFIRM, execute current line as-is without editing."
(
define-key
electric-history-map
"\C-p"
'previous-line
)
(
define-key
electric-history-map
"\ev"
'scroll-down
)
(
define-key
electric-history-map
"\C-v"
'scroll-up
)
(
define-key
electric-history-map
[home]
'beginning-of-buffer
)
(
define-key
electric-history-map
[down]
'next-line
)
(
define-key
electric-history-map
[up]
'previous-line
)
(
define-key
electric-history-map
[prior]
'scroll-down
)
(
define-key
electric-history-map
[next]
'scroll-up
)
(
define-key
electric-history-map
"\C-l"
'recenter
)
(
define-key
electric-history-map
"\e\C-v"
'scroll-other-window
))
...
...
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