aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-01-04 23:38:16 +0000
committerKarl Heuer1996-01-04 23:38:16 +0000
commit968db5f75cffbe921b3819ead34e2541f05da4de (patch)
tree7051e6a8bfabd66782c1376e29dbeab70fb3a01b
parentfa1f61e5fe9c92c71e4d148d6113476240b62890 (diff)
downloademacs-968db5f75cffbe921b3819ead34e2541f05da4de.tar.gz
emacs-968db5f75cffbe921b3819ead34e2541f05da4de.zip
(forms-toggle-read-only, forms-enumerate): Doc fix.
-rw-r--r--lisp/forms.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/forms.el b/lisp/forms.el
index 5ff802d5b0f..9466077f6de 100644
--- a/lisp/forms.el
+++ b/lisp/forms.el
@@ -40,7 +40,7 @@
40;;; Forms mode means visiting a data file which is supposed to consist 40;;; Forms mode means visiting a data file which is supposed to consist
41;;; of records each containing a number of fields. The records are 41;;; of records each containing a number of fields. The records are
42;;; separated by a newline, the fields are separated by a user-defined 42;;; separated by a newline, the fields are separated by a user-defined
43;;; field separater (default: TAB). 43;;; field separator (default: TAB).
44;;; When shown, a record is transferred to an Emacs buffer and 44;;; When shown, a record is transferred to an Emacs buffer and
45;;; presented using a user-defined form. One record is shown at a 45;;; presented using a user-defined form. One record is shown at a
46;;; time. 46;;; time.
@@ -54,7 +54,7 @@
54;;; will be buried, for it is never accessed directly. 54;;; will be buried, for it is never accessed directly.
55;;; 55;;;
56;;; Forms mode is invoked using M-x forms-find-file control-file . 56;;; Forms mode is invoked using M-x forms-find-file control-file .
57;;; Alternativily `forms-find-file-other-window' can be used. 57;;; Alternatively `forms-find-file-other-window' can be used.
58;;; 58;;;
59;;; You may also visit the control file, and switch to forms mode by hand 59;;; You may also visit the control file, and switch to forms mode by hand
60;;; with M-x forms-mode . 60;;; with M-x forms-mode .
@@ -114,7 +114,7 @@
114;;; the form. 114;;; the form.
115;;; This variable denotes the separator character 115;;; This variable denotes the separator character
116;;; to be used for this purpose. Upon display, all 116;;; to be used for this purpose. Upon display, all
117;;; occurrencies of this character are translated 117;;; occurrences of this character are translated
118;;; to newlines. Upon storage they are translated 118;;; to newlines. Upon storage they are translated
119;;; back to the separator character. 119;;; back to the separator character.
120;;; 120;;;
@@ -197,7 +197,7 @@
197;;; is left. The contents of the form are parsed using information 197;;; is left. The contents of the form are parsed using information
198;;; obtained from `forms-format-list', and the fields which are 198;;; obtained from `forms-format-list', and the fields which are
199;;; deduced from the form are modified. Fields not shown on the forms 199;;; deduced from the form are modified. Fields not shown on the forms
200;;; retain their origional values. The newly formed record then 200;;; retain their original values. The newly formed record then
201;;; replaces the contents of the old record in `forms--file-buffer'. 201;;; replaces the contents of the old record in `forms--file-buffer'.
202;;; A parse routine `forms--parser' is built upon startup to parse 202;;; A parse routine `forms--parser' is built upon startup to parse
203;;; the records. 203;;; the records.
@@ -288,10 +288,10 @@
288(provide 'forms) ;;; official 288(provide 'forms) ;;; official
289(provide 'forms-mode) ;;; for compatibility 289(provide 'forms-mode) ;;; for compatibility
290 290
291(defconst forms-version (substring "$Revision: 2.22 $" 11 -2) 291(defconst forms-version (substring "$Revision: 2.23 $" 11 -2)
292 "The version number of forms-mode (as string). The complete RCS id is: 292 "The version number of forms-mode (as string). The complete RCS id is:
293 293
294 $Id: forms.el,v 2.22 1995/10/30 17:07:02 rms Exp jvromans $") 294 $Id: forms.el,v 2.23 1995/11/16 20:04:57 jvromans Exp kwzh $")
295 295
296(defvar forms-mode-hooks nil 296(defvar forms-mode-hooks nil
297 "Hook functions to be run upon entering Forms mode.") 297 "Hook functions to be run upon entering Forms mode.")
@@ -701,7 +701,7 @@ Commands: Equivalent keys in read-only mode:
701 ;; of the fields on the display. This array is used by 701 ;; of the fields on the display. This array is used by
702 ;; `forms--parser-using-text-properties' to extract the fields data 702 ;; `forms--parser-using-text-properties' to extract the fields data
703 ;; from the form on the screen. 703 ;; from the form on the screen.
704 ;; Upon completion, `forms-format-list' is garanteed correct, so 704 ;; Upon completion, `forms-format-list' is guaranteed correct, so
705 ;; `forms--make-format' and `forms--make-parser' do not need to perform 705 ;; `forms--make-format' and `forms--make-parser' do not need to perform
706 ;; any checks. 706 ;; any checks.
707 707
@@ -1706,7 +1706,7 @@ As a side effect: re-calculates the number of records in the data file."
1706(defun forms-toggle-read-only (arg) 1706(defun forms-toggle-read-only (arg)
1707 "Toggles read-only mode of a forms mode buffer. 1707 "Toggles read-only mode of a forms mode buffer.
1708With an argument, enables read-only mode if the argument is positive. 1708With an argument, enables read-only mode if the argument is positive.
1709Otherwise enables edit mode if the visited file is writeable." 1709Otherwise enables edit mode if the visited file is writable."
1710 1710
1711 (interactive "P") 1711 (interactive "P")
1712 1712
@@ -1984,7 +1984,7 @@ Calls `forms-write-file-filter' before writing out the data."
1984(defun forms-enumerate (the-fields) 1984(defun forms-enumerate (the-fields)
1985 "Take a quoted list of symbols, and set their values to sequential numbers. 1985 "Take a quoted list of symbols, and set their values to sequential numbers.
1986The first symbol gets number 1, the second 2 and so on. 1986The first symbol gets number 1, the second 2 and so on.
1987It returns the higest number. 1987It returns the highest number.
1988 1988
1989Usage: (setq forms-number-of-fields 1989Usage: (setq forms-number-of-fields
1990 (forms-enumerate 1990 (forms-enumerate