Mercurial > emacs
comparison lisp/emacs-lisp/lisp-mnt.el @ 24219:0bb9e5990c22
(lm-verify): Fix arg list.
(lm-commentary): Doc fix.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 29 Jan 1999 14:31:49 +0000 |
parents | 198226daae3b |
children | 1006a8324029 |
comparison
equal
deleted
inserted
replaced
24218:f3a482ad0fd6 | 24219:0bb9e5990c22 |
---|---|
393 (kill-buffer (current-buffer))) | 393 (kill-buffer (current-buffer))) |
394 ))) | 394 ))) |
395 | 395 |
396 (defun lm-commentary (&optional file) | 396 (defun lm-commentary (&optional file) |
397 "Return the commentary in file FILE, or current buffer if FILE is nil. | 397 "Return the commentary in file FILE, or current buffer if FILE is nil. |
398 The value is returned as a string. In the text, the commentary starts | 398 The value is returned as a string. In the file, the commentary starts |
399 with tag `Commentary' and ends with tag `Change Log' or `History'." | 399 with the tag `Commentary' or `Documentation' and ends with one of the |
400 tags `Code', `Change Log' or `History'." | |
400 (save-excursion | 401 (save-excursion |
401 (if file | 402 (if file |
402 (find-file file)) | 403 (find-file file)) |
403 (prog1 | 404 (prog1 |
404 (let ((commentary (lm-commentary-mark)) | 405 (let ((commentary (lm-commentary-mark)) |
422 "Insert, at column COL, list of STRINGS." | 423 "Insert, at column COL, list of STRINGS." |
423 (if (> (current-column) col) (insert "\n")) | 424 (if (> (current-column) col) (insert "\n")) |
424 (move-to-column col t) | 425 (move-to-column col t) |
425 (apply 'insert strings)) | 426 (apply 'insert strings)) |
426 | 427 |
427 (defun lm-verify (&optional file showok &optional verb) | 428 (defun lm-verify (&optional file showok verb) |
428 "Check that the current buffer (or FILE if given) is in proper format. | 429 "Check that the current buffer (or FILE if given) is in proper format. |
429 If FILE is a directory, recurse on its files and generate a report in | 430 If FILE is a directory, recurse on its files and generate a report in |
430 a temporary buffer." | 431 a temporary buffer." |
431 (interactive) | 432 (interactive) |
432 (let* ((verb (or verb (interactive-p))) | 433 (let* ((verb (or verb (interactive-p))) |