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
Open sidebar
emacs
emacs
Commits
4cabf12b
Commit
4cabf12b
authored
Apr 18, 2006
by
Richard M. Stallman
Browse files
(edit-abbrevs-redefine): Temporarily widen.
(read-abbrev-file): Provide default when reading filename.
parent
8a1aafd0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
lisp/abbrev.el
lisp/abbrev.el
+10
-5
No files found.
lisp/abbrev.el
View file @
4cabf12b
...
...
@@ -160,8 +160,10 @@ or may be omitted (it is usually omitted)."
(
defun
edit-abbrevs-redefine
()
"Redefine abbrevs according to current buffer contents."
(
interactive
)
(
save-restriction
(
widen
)
(
define-abbrevs
t
)
(
set-buffer-modified-p
nil
))
(
set-buffer-modified-p
nil
))
)
(
defun
define-abbrevs
(
&optional
arg
)
"Define abbrevs according to current visible buffer contents.
...
...
@@ -195,9 +197,12 @@ the ones defined from the buffer now."
Optional argument FILE is the name of the file to read;
it defaults to the value of `abbrev-file-name'.
Optional second argument QUIETLY non-nil means don't display a message."
(
interactive
"fRead abbrev file: "
)
(
load
(
if
(
and
file
(
>
(
length
file
)
0
))
file
abbrev-file-name
)
nil
quietly
)
(
interactive
(
list
(
read-file-name
(
format
"Read abbrev file (default %s): "
abbrev-file-name
)
nil
abbrev-file-name
t
)))
(
load
file
nil
quietly
)
(
setq
abbrevs-changed
nil
))
(
defun
quietly-read-abbrev-file
(
&optional
file
)
...
...
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