diff options
| author | Richard M. Stallman | 1995-08-06 20:17:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-06 20:17:19 +0000 |
| commit | eeba65edc1e9588e0f9764e484440cb9bae98898 (patch) | |
| tree | 86c6b6d461fdc763e7526f7dd3b23bce85bde3b4 | |
| parent | 6b2144114876ba8eab1e3cff397f4250917c51b3 (diff) | |
| download | emacs-eeba65edc1e9588e0f9764e484440cb9bae98898.tar.gz emacs-eeba65edc1e9588e0f9764e484440cb9bae98898.zip | |
Standardize layout of doc strings.
| -rw-r--r-- | lisp/arc-mode.el | 82 |
1 files changed, 40 insertions, 42 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index b31a59fbab1..da4b2317014 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -99,8 +99,7 @@ | |||
| 99 | ;; Section: Configuration. | 99 | ;; Section: Configuration. |
| 100 | 100 | ||
| 101 | (defvar archive-dos-members t | 101 | (defvar archive-dos-members t |
| 102 | "*If non-nil then recognize member files using ^M^J as line terminator | 102 | "*If non-nil then recognize member files using ^M^J as line terminator.") |
| 103 | and do The Right Thing.") | ||
| 104 | 103 | ||
| 105 | (defvar archive-tmpdir | 104 | (defvar archive-tmpdir |
| 106 | (expand-file-name | 105 | (expand-file-name |
| @@ -109,9 +108,9 @@ and do The Right Thing.") | |||
| 109 | "*Directory for temporary files made by arc-mode.el") | 108 | "*Directory for temporary files made by arc-mode.el") |
| 110 | 109 | ||
| 111 | (defvar archive-remote-regexp "^/[^/:]*[^/:.]:" | 110 | (defvar archive-remote-regexp "^/[^/:]*[^/:.]:" |
| 112 | "*Regexp recognizing archive files names that are not local (i.e., are | 111 | "*Regexp recognizing archive files names that are not local. |
| 113 | not proper file names outside Emacs). A local copy a the archive will | 112 | A non-local file is one whose file name is not proper outside Emacs. |
| 114 | be used when updating.") | 113 | A local copy a the archive will be used when updating.") |
| 115 | 114 | ||
| 116 | (defvar archive-extract-hooks nil | 115 | (defvar archive-extract-hooks nil |
| 117 | "*Hooks to run when an archive member has been extracted.") | 116 | "*Hooks to run when an archive member has been extracted.") |
| @@ -122,8 +121,9 @@ be used when updating.") | |||
| 122 | ;; to extract to stdout without junk getting added. | 121 | ;; to extract to stdout without junk getting added. |
| 123 | (defvar archive-arc-extract | 122 | (defvar archive-arc-extract |
| 124 | '("arc" "x") | 123 | '("arc" "x") |
| 125 | "*Program and its options to run in order to extract an arc file member | 124 | "*Program and its options to run in order to extract an arc file member. |
| 126 | to the current directory. Archive and member name will be added.") | 125 | Extraction should happen to the current directory. Archive and member |
| 126 | name will be added.") | ||
| 127 | 127 | ||
| 128 | (defvar archive-arc-expunge | 128 | (defvar archive-arc-expunge |
| 129 | '("arc" "d") | 129 | '("arc" "d") |
| @@ -139,8 +139,9 @@ Archive and member name will be added.") | |||
| 139 | 139 | ||
| 140 | (defvar archive-lzh-extract | 140 | (defvar archive-lzh-extract |
| 141 | '("lha" "pq") | 141 | '("lha" "pq") |
| 142 | "*Program and its options to run in order to extract an lzh file member | 142 | "*Program and its options to run in order to extract an lzh file member. |
| 143 | to standard output. Archive and member name will be added.") | 143 | Extraction should happen to standard output. Archive and member name will |
| 144 | be added.") | ||
| 144 | 145 | ||
| 145 | (defvar archive-lzh-expunge | 146 | (defvar archive-lzh-expunge |
| 146 | '("lha" "d") | 147 | '("lha" "d") |
| @@ -155,15 +156,15 @@ Archive and member name will be added.") | |||
| 155 | ;; Zip archive configuration | 156 | ;; Zip archive configuration |
| 156 | 157 | ||
| 157 | (defvar archive-zip-use-pkzip (memq system-type '(ms-dos windows-nt)) | 158 | (defvar archive-zip-use-pkzip (memq system-type '(ms-dos windows-nt)) |
| 158 | "*If non-nil then all zip options default to values suitable when using | 159 | "*If non-nil then pkzip option are used instead of zip options. |
| 159 | pkzip and pkunzip. Only set to true for msdog systems!") | 160 | Only set to true for msdog systems!") |
| 160 | 161 | ||
| 161 | (defvar archive-zip-extract | 162 | (defvar archive-zip-extract |
| 162 | (if archive-zip-use-pkzip '("pkunzip" "-e") '("unzip" "-qq" "-c")) | 163 | (if archive-zip-use-pkzip '("pkunzip" "-e") '("unzip" "-qq" "-c")) |
| 163 | "*Program and its options to run in order to extract a zip file member | 164 | "*Program and its options to run in order to extract a zip file member. |
| 164 | to standard output. Archive and member name will be added.\n | 165 | Extraction should happen to standard output. Archive and member name will |
| 165 | If `archive-zip-use-pkzip' is non-nil then this program is expected to | 166 | be added. If `archive-zip-use-pkzip' is non-nil then this program is |
| 166 | extract to a file junking the directory part of the name.") | 167 | expected to extract to a file junking the directory part of the name.") |
| 167 | 168 | ||
| 168 | ;; For several reasons the latter behaviour is not desireable in general. | 169 | ;; For several reasons the latter behaviour is not desireable in general. |
| 169 | ;; (1) It uses more disk space. (2) Error checking is worse or non- | 170 | ;; (1) It uses more disk space. (2) Error checking is worse or non- |
| @@ -183,20 +184,22 @@ file. Archive and member name will be added.") | |||
| 183 | 184 | ||
| 184 | (defvar archive-zip-update-case | 185 | (defvar archive-zip-update-case |
| 185 | (if archive-zip-use-pkzip archive-zip-update '("zip" "-q" "-k")) | 186 | (if archive-zip-use-pkzip archive-zip-update '("zip" "-q" "-k")) |
| 186 | "*Program and its options to run in order to update a case fiddled | 187 | "*Program and its options to run in order to update a case fiddled zip member. |
| 187 | zip file member. Options should ensure that specified directory will | 188 | Options should ensure that specified directory will be put into the zip file. |
| 188 | be put into the zip file. Archive and member name will be added.") | 189 | Archive and member name will be added.") |
| 189 | 190 | ||
| 190 | (defvar archive-zip-case-fiddle t | 191 | (defvar archive-zip-case-fiddle t |
| 191 | "*If non-nil then zip file members are mapped to lower case if created | 192 | "*If non-nil then zip file members are case fiddled. |
| 192 | by a system that under single case file names.") | 193 | Case fiddling will only happen for members created by a system that |
| 194 | uses caseless file names.") | ||
| 193 | ;; ------------------------------ | 195 | ;; ------------------------------ |
| 194 | ;; Zoo archive configuration | 196 | ;; Zoo archive configuration |
| 195 | 197 | ||
| 196 | (defvar archive-zoo-extract | 198 | (defvar archive-zoo-extract |
| 197 | '("zoo" "xpq") | 199 | '("zoo" "xpq") |
| 198 | "*Program and its options to run in order to extract a zoo file member | 200 | "*Program and its options to run in order to extract a zoo file member. |
| 199 | to standard output. Archive and member name will be added.") | 201 | Extraction should happen to standard output. Archive and member name will |
| 202 | be added.") | ||
| 200 | 203 | ||
| 201 | (defvar archive-zoo-expunge | 204 | (defvar archive-zoo-expunge |
| 202 | '("zoo" "DqPP") | 205 | '("zoo" "DqPP") |
| @@ -259,9 +262,9 @@ a vector of [ext-file-name int-file-name case-fiddled mode ...]") | |||
| 259 | (intern (concat "archive-" (symbol-name archive-subtype) "-" suffix))) | 262 | (intern (concat "archive-" (symbol-name archive-subtype) "-" suffix))) |
| 260 | 263 | ||
| 261 | (defun archive-l-e (str &optional len) | 264 | (defun archive-l-e (str &optional len) |
| 262 | "Convert little endian string/vector to integer. Alternatively, first | 265 | "Convert little endian string/vector to integer. |
| 263 | argument may be a buffer position in the current buffer in which case a | 266 | Alternatively, first argument may be a buffer position in the current buffer |
| 264 | second arguemnt, length, should be supplied." | 267 | in which case a second argument, length, should be supplied." |
| 265 | (if (stringp str) | 268 | (if (stringp str) |
| 266 | (setq len (length str)) | 269 | (setq len (length str)) |
| 267 | (setq str (buffer-substring str (+ str len)))) | 270 | (setq str (buffer-substring str (+ str len)))) |
| @@ -293,8 +296,7 @@ second arguemnt, length, should be supplied." | |||
| 293 | str)) | 296 | str)) |
| 294 | 297 | ||
| 295 | (defun archive-calc-mode (oldmode newmode &optional error) | 298 | (defun archive-calc-mode (oldmode newmode &optional error) |
| 296 | "From the integer OLDMODE and the string NEWMODE calculate a new file | 299 | "From the integer OLDMODE and the string NEWMODE calculate a new file mode. |
| 297 | mode.\n | ||
| 298 | NEWMODE may be an octal number including a leading zero in which case it | 300 | NEWMODE may be an octal number including a leading zero in which case it |
| 299 | will become the new mode.\n | 301 | will become the new mode.\n |
| 300 | NEWMODE may also be a relative specification like \"og-rwx\" in which case | 302 | NEWMODE may also be a relative specification like \"og-rwx\" in which case |
| @@ -380,8 +382,8 @@ the mode is invalid. If ERROR is nil then nil will be returned." | |||
| 380 | 0)) | 382 | 0)) |
| 381 | 383 | ||
| 382 | (defun archive-get-descr (&optional noerror) | 384 | (defun archive-get-descr (&optional noerror) |
| 383 | "Return the descriptor vector for file at point. Do not signal an error | 385 | "Return the descriptor vector for file at point. |
| 384 | if optional second argument NOERROR is non-nil." | 386 | Does not signal an error if optional second argument NOERROR is non-nil." |
| 385 | (let ((no (archive-get-lineno))) | 387 | (let ((no (archive-get-lineno))) |
| 386 | (if (and (>= (point) archive-file-list-start) | 388 | (if (and (>= (point) archive-file-list-start) |
| 387 | (< no (length archive-files))) | 389 | (< no (length archive-files))) |
| @@ -397,8 +399,8 @@ if optional second argument NOERROR is non-nil." | |||
| 397 | 399 | ||
| 398 | ;;;###autoload | 400 | ;;;###autoload |
| 399 | (defun archive-mode (&optional force) | 401 | (defun archive-mode (&optional force) |
| 400 | "Major mode for viewing an archive file as a dired-like listing of its | 402 | "Major mode for viewing an archive file in a dired-like way. |
| 401 | contents. You can move around using the usual cursor motion commands. | 403 | You can move around using the usual cursor motion commands. |
| 402 | Letters no longer insert themselves. | 404 | Letters no longer insert themselves. |
| 403 | Type `e' to pull a file out of the archive and into its own buffer; | 405 | Type `e' to pull a file out of the archive and into its own buffer; |
| 404 | or click mouse-2 on the file's line in the archive mode buffer. | 406 | or click mouse-2 on the file's line in the archive mode buffer. |
| @@ -638,9 +640,9 @@ is visible (and the real data of the buffer is hidden)." | |||
| 638 | (setq archive-file-list-end (point-marker))) | 640 | (setq archive-file-list-end (point-marker))) |
| 639 | 641 | ||
| 640 | (defun archive-alternate-display () | 642 | (defun archive-alternate-display () |
| 641 | "Toggle alternative display. To avoid very long lines some archive mode | 643 | "Toggle alternative display. |
| 642 | don't show all information. This function changes the set of information | 644 | To avoid very long lines some archive mode don't show all information. |
| 643 | shown for each files." | 645 | This function changes the set of information shown for each files." |
| 644 | (interactive) | 646 | (interactive) |
| 645 | (setq archive-alternate-display (not archive-alternate-display)) | 647 | (setq archive-alternate-display (not archive-alternate-display)) |
| 646 | (archive-resummarize)) | 648 | (archive-resummarize)) |
| @@ -676,8 +678,7 @@ shown for each files." | |||
| 676 | (set-buffer-modified-p (or modified (not unchanged)))))) | 678 | (set-buffer-modified-p (or modified (not unchanged)))))) |
| 677 | 679 | ||
| 678 | (defun archive-delete-local (name) | 680 | (defun archive-delete-local (name) |
| 679 | "Delete (robust) the file NAME and its parents up to and including the | 681 | "Delete file NAME and its parents up to and including `archive-tmpdir'." |
| 680 | value of `archive-tmpdir'." | ||
| 681 | (let ((again t) | 682 | (let ((again t) |
| 682 | (top (directory-file-name (file-name-as-directory archive-tmpdir)))) | 683 | (top (directory-file-name (file-name-as-directory archive-tmpdir)))) |
| 683 | (condition-case nil | 684 | (condition-case nil |
| @@ -802,8 +803,7 @@ value of `archive-tmpdir'." | |||
| 802 | (archive-extract 'view)) | 803 | (archive-extract 'view)) |
| 803 | 804 | ||
| 804 | (defun archive-add-new-member (arcbuf name) | 805 | (defun archive-add-new-member (arcbuf name) |
| 805 | "Add the file in the current buffer to the archive in ARCBUF naming it | 806 | "Add current buffer to the archive in ARCBUF naming it NAME." |
| 806 | NAME." | ||
| 807 | (interactive | 807 | (interactive |
| 808 | (list (get-buffer | 808 | (list (get-buffer |
| 809 | (read-buffer "Buffer containing archive: " | 809 | (read-buffer "Buffer containing archive: " |
| @@ -844,8 +844,7 @@ NAME." | |||
| 844 | ;; Section: IO stuff | 844 | ;; Section: IO stuff |
| 845 | 845 | ||
| 846 | (defun archive-check-dos (&optional force) | 846 | (defun archive-check-dos (&optional force) |
| 847 | "*If this looks like a buffer with ^M^J as line terminator then remove | 847 | "*Possibly handle a buffer with ^M^J terminated lines." |
| 848 | those ^Ms and set archive-subfile-dos." | ||
| 849 | (save-restriction | 848 | (save-restriction |
| 850 | (widen) | 849 | (widen) |
| 851 | (save-excursion | 850 | (save-excursion |
| @@ -1009,8 +1008,7 @@ Use \\[archive-unmark-all-files] to remove all marks." | |||
| 1009 | (archive-next-line (- p))) | 1008 | (archive-next-line (- p))) |
| 1010 | 1009 | ||
| 1011 | (defun archive-chmod-entry (new-mode) | 1010 | (defun archive-chmod-entry (new-mode) |
| 1012 | "Change the protection bits associated with all marked or this member | 1011 | "Change the protection bits associated with all marked or this member. |
| 1013 | in the archive.\n\ | ||
| 1014 | The new protection bits can either be specified as an octal number or | 1012 | The new protection bits can either be specified as an octal number or |
| 1015 | as a relative change like \"g+rw\" as for chmod(2)" | 1013 | as a relative change like \"g+rw\" as for chmod(2)" |
| 1016 | (interactive "sNew mode (octal or relative): ") | 1014 | (interactive "sNew mode (octal or relative): ") |