aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-07-20 10:59:36 +0000
committerJuanma Barranquero2005-07-20 10:59:36 +0000
commite66b273f4d5fdd2e09a1e217271a2f6eb003a007 (patch)
tree2f8dc055f6d5f03efa54aa8a841f6689a5761ab3
parent7ce3c4661fa923ab3936e8b68b3e3d11389de6bc (diff)
downloademacs-e66b273f4d5fdd2e09a1e217271a2f6eb003a007.tar.gz
emacs-e66b273f4d5fdd2e09a1e217271a2f6eb003a007.zip
(expand-region-abbrevs): Doc fix.
(inverse-add-mode-abbrev, inverse-add-global-abbrev): Improve argument/docstring consistency.
-rw-r--r--lisp/abbrev.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index b63814e922a..cb8f9b69aca 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -281,7 +281,7 @@ Don't use this function in a Lisp program; use `define-abbrev' instead."
281 name (abbrev-expansion name table)))) 281 name (abbrev-expansion name table))))
282 (define-abbrev table (downcase name) exp)))) 282 (define-abbrev table (downcase name) exp))))
283 283
284(defun inverse-add-mode-abbrev (arg) 284(defun inverse-add-mode-abbrev (n)
285 "Define last word before point as a mode-specific abbrev. 285 "Define last word before point as a mode-specific abbrev.
286With prefix argument N, defines the Nth word before point. 286With prefix argument N, defines the Nth word before point.
287This command uses the minibuffer to read the expansion. 287This command uses the minibuffer to read the expansion.
@@ -292,15 +292,15 @@ Expands the abbreviation after defining it."
292 global-abbrev-table 292 global-abbrev-table
293 (or local-abbrev-table 293 (or local-abbrev-table
294 (error "No per-mode abbrev table"))) 294 (error "No per-mode abbrev table")))
295 "Mode" arg)) 295 "Mode" n))
296 296
297(defun inverse-add-global-abbrev (arg) 297(defun inverse-add-global-abbrev (n)
298 "Define last word before point as a global (mode-independent) abbrev. 298 "Define last word before point as a global (mode-independent) abbrev.
299With prefix argument N, defines the Nth word before point. 299With prefix argument N, defines the Nth word before point.
300This command uses the minibuffer to read the expansion. 300This command uses the minibuffer to read the expansion.
301Expands the abbreviation after defining it." 301Expands the abbreviation after defining it."
302 (interactive "p") 302 (interactive "p")
303 (inverse-add-abbrev global-abbrev-table "Global" arg)) 303 (inverse-add-abbrev global-abbrev-table "Global" n))
304 304
305(defun inverse-add-abbrev (table type arg) 305(defun inverse-add-abbrev (table type arg)
306 (let (name exp start end) 306 (let (name exp start end)
@@ -338,9 +338,8 @@ ARG is non-nil. Interactively, ARG is the prefix argument."
338 338
339(defun expand-region-abbrevs (start end &optional noquery) 339(defun expand-region-abbrevs (start end &optional noquery)
340 "For abbrev occurrence in the region, offer to expand it. 340 "For abbrev occurrence in the region, offer to expand it.
341The user is asked to type y or n for each occurrence. 341The user is asked to type `y' or `n' for each occurrence.
342A prefix argument means don't query; expand all abbrevs. 342A prefix argument means don't query; expand all abbrevs."
343If called from a Lisp program, arguments are START END &optional NOQUERY."
344 (interactive "r\nP") 343 (interactive "r\nP")
345 (save-excursion 344 (save-excursion
346 (goto-char start) 345 (goto-char start)