Commit 4cabf12b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(edit-abbrevs-redefine): Temporarily widen.

(read-abbrev-file): Provide default when reading filename.
parent 8a1aafd0
......@@ -160,8 +160,10 @@ or may be omitted (it is usually omitted)."
(defun edit-abbrevs-redefine ()
"Redefine abbrevs according to current buffer contents."
(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)
(read-file-name (format "Read abbrev file (default %s): "
nil abbrev-file-name t)))
(load file nil quietly)
(setq abbrevs-changed nil))
(defun quietly-read-abbrev-file (&optional file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment