summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/checkdoc.el
Commit message (Collapse)AuthorAgeFilesLines
* 2005-09-24 Emilio C. Lopes <eclig@gmx.net>Romain Francoise2005-09-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * woman.el (woman-file-name): * wid-edit.el (widget-file-prompt-value) (widget-coding-system-prompt-value): * w32-fns.el (set-w32-system-coding-system): * vc.el (vc-version-diff, vc-annotate): * textmodes/reftex-auc.el (reftex-arg-cite) (reftex-arg-index-tag): * textmodes/refer.el (refer-get-bib-files): * textmodes/artist.el (artist-figlet-choose-font): * terminal.el (terminal-emulator): * replace.el (occur-read-primary-args): * rect.el (string-rectangle, string-insert-rectangle): * ps-print.el (ps-print-preprint): * progmodes/pascal.el (pascal-goto-defun): * progmodes/etags.el (visit-tags-table, visit-tags-table-buffer): * progmodes/compile.el (compilation-find-file): * printing.el (pr-interactive-n-up): * play/animate.el (animate-birthday-present): * net/rcompile.el (remote-compile): * man.el (man, Man-goto-section, Man-follow-manual-reference): * mail/rmailsum.el (rmail-summary-search-backward) (rmail-summary-search): * mail/rmailout.el (rmail-output-read-rmail-file-name) (rmail-output-read-file-name): * mail/rmail.el (rmail-search, rmail-search-backwards): * mail/mailabbrev.el (merge-mail-abbrevs, rebuild-mail-abbrevs): * locate.el (locate): * international/quail.el (quail-show-keyboard-layout): * international/mule.el (set-buffer-file-coding-system) (revert-buffer-with-coding-system, set-file-name-coding-system) (set-terminal-coding-system, set-keyboard-coding-system) (set-next-selection-coding-system): * international/mule-diag.el (describe-coding-system) (describe-font, describe-fontset): * international/mule-cmds.el (universal-coding-system-argument) (search-unencodable-char, describe-input-method) (set-language-environment, describe-language-environment): * international/codepage.el (codepage-setup): * international/code-pages.el (codepage-setup): * info.el (Info-search, Info-follow-reference) (Info-search-backward): * emacs-lisp/advice.el (ad-read-advised-function) (ad-read-advice-class, ad-clear-cache, ad-activate) (ad-deactivate, ad-update, ad-unadvise, ad-read-advice-name) (ad-enable-advice, ad-disable-advice, ad-remove-advice) (ad-read-regexp): * ediff-util.el (ediff-toggle-regexp-match): * ediff-ptch.el (ediff-prompt-for-patch-file): * dired-aux.el (dired-diff): * diff.el (diff): * cus-edit.el (custom-variable-prompt): * calendar/timeclock.el (timeclock-ask-for-project): * calc/calcalg3.el (calc-get-fit-variables): * calc/calc-store.el (calc-edit-variable) (calc-permanent-variable): * vc-mcvs.el (vc-mcvs-register): * shadowfile.el (shadow-define-literal-group): * woman.el (woman-file-name): * vc.el (vc-version-diff, vc-merge): * textmodes/reftex-index.el (reftex-index-complete-tag): * format.el (format-decode-buffer, format-decode-region): * emulation/viper-cmd.el (viper-read-string-with-history): * emacs-lisp/debug.el (cancel-debug-on-entry): * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): * ediff.el (ediff-merge-revisions) (ediff-merge-revisions-with-ancestor, ediff-revision): * completion.el (interactive-completion-string-reader): * calc/calc-prog.el (calc-user-define-formula): Follow convention for reading with the minibuffer.
* (compilation-error-regexp-alist, compilation-mode-font-lock-keywords):Juanma Barranquero2005-08-291-1/+4
| | | | | Add defvars. (checkdoc-interactive-loop): "?\ " -> "?\s".
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-1/+2
|
* (checkdoc-make-overlay, checkdoc-overlay-put, checkdoc-delete-overlay)Richard M. Stallman2005-07-161-28/+16
| | | | | | | | | (checkdoc-overlay-start, checkdoc-overlay-end) (checkdoc-mode-line-update, checkdoc-char=): Define such that compiler knows they are defined. (checkdoc-call-eval-buffer): Deleted. Use eval-buffer directly. (checkdoc-read-event): Deleted. Use read-event directly.
* (checkdoc-proper-noun-list):Richard M. Stallman2005-07-081-4/+4
| | | | | Check for "emacs", etc., as entire symbol, not just as word. (checkdoc-file-comments-engine): Use regexp-quote on FN.
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (checkdoc-continue, checkdoc-comments, checkdoc-message-text, checkdoc-defun):Stefan Monnier2004-12-111-6/+6
| | | | Fix format messages for calls to `error'.
* (checkdoc-this-string-valid-engine):Stefan Monnier2004-09-121-2/+3
| | | | Don't tell to use \\{...} when it's already done.
* (checkdoc-minor-mode): Doc fix.Andreas Schwab2004-05-081-1/+1
|
* (checkdoc-output-error-regex-alist): New var.Stefan Monnier2004-04-231-39/+10
| | | | | | | (checkdoc-output-font-lock-keywords): Remove error regexp. (checkdoc-output-mode-map): Remove. (checkdoc-output-mode): Derive from compilation-mode. (checkdoc-find-error-mouse, checkdoc-find-error): Remove.
* (checkdoc-output-mode): Make it a normal major mode.Stefan Monnier2004-04-211-27/+22
| | | | | | (checkdoc-buffer-label): Make sure the file name is meaningful. (checkdoc-output-to-error-buffer): Remove. (checkdoc-error, checkdoc-start-section): Rewrite.
* (checkdoc-output-mode-map, checkdoc-find-error-mouse, checkdoc-find-error):Stefan Monnier2004-04-141-15/+8
| | | | Use posn-set-point to merge the mouse and non-mouse case.
* (checkdoc-error): Dont' assume point-min == 1.Stefan Monnier2004-03-221-2/+4
| | | | (debug-ignored-errors): Add an entry.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (checkdoc-file-comments-engine): UseLute Kamstra2003-05-231-16/+10
| | | | `lm-commentary-end' to find the end of the commentary section.
* (checkdoc-display-status-buffer): Fix docstring.Juanma Barranquero2003-03-281-20/+71
| | | | | | | | | | | (checkdoc-interactive, checkdoc-message-interactive): Make them perform spell checking when appropriate. (checkdoc-interactive-loop): Fix docstring and a few typos. (checkdoc-interactive-ispell-loop) (checkdoc-message-interactive-ispell-loop): New functions. (checkdoc-next-error): Fix docstring. (checkdoc-this-string-valid-engine): Fix typo. (checkdoc-ispell-docstring-engine): Do test for checkdoc-autofix-flag = nil.
* (checkdoc-minor-keymap): Add obsolescence declaration and remove redundant infoJuanma Barranquero2003-02-051-2/+3
| | | | from docstring.
* Trailing whitepace deleted.Juanma Barranquero2003-02-041-3/+3
|
* Don't define a name for the minor mode menu.Richard M. Stallman2002-12-231-3/+3
|
* (checkdoc-minor-mode): Add group.Markus Rost2002-11-181-1/+2
|
* (checkdoc-find-error): Use get-file-buffer instead of get-buffer.Markus Rost2002-11-071-2/+2
|
* (checkdoc, checkdoc-interactive)Richard M. Stallman2002-08-091-17/+22
| | | | | | | | | (checkdoc-message-interactive, checkdoc-interactive-loop) (checkdoc-current-buffer, checkdoc-continue, checkdoc-comments) (checkdoc-defun): Update checkdoc-spellcheck-documentation-flag correctly. (checkdoc-ispell-docstring-engine): Don't test for checkdoc-autofix-flag = nil.
* Fix doc typos.Richard M. Stallman2002-07-141-6/+6
|
* (checkdoc-this-string-valid-engine): Fix typo.Juanma Barranquero2002-06-181-1/+1
|
* (checkdoc-minor-mode): Define it with define-minor-mode.Markus Rost2002-05-121-1/+1
|
* (checkdoc-this-string-valid-engine):Richard M. Stallman2002-02-061-12/+16
| | | | Replace foo-p as var name with foo-flag, not foo-p-flag.
* Fix typo.Pavel Janík2002-01-131-1/+1
|
* Converted backquote to the new style.Sam Steingold2001-11-271-12/+12
|
* (princ-list, checkdoc-read-event, add-to-list): Delete compatibility code.Richard M. Stallman2001-11-171-22/+3
| | | | (checkdoc-next-message-error): Doc fix.
* (checkdoc-file-comments-engine):Richard M. Stallman2001-11-111-2/+2
| | | | Turn off error in some re-search-forward calls.
* (checkdoc-eval-defun): Call eval-defunStefan Monnier2001-10-251-29/+30
| | | | | | | interactively so that C-u M-C-x still does edebug. (checkdoc-sentencespace-region-engine): Don't force a double-space after `.' if it doesn't look like an end-of-sentence. (debug-ignored-errors): Add `disambiguate ...'.
* (checkdoc-this-string-valid-engine):Gerd Moellmann2001-09-171-0/+11
| | | | Check for '(' in column 0 of doc string.
* Some fixes to follow coding conventions.Pavel Janík2001-07-161-1/+1
|
* Fix autoload cookies.Gerd Moellmann2001-04-231-1/+1
|
* (checkdoc-common-verbs-wrong-voice): AddGerd Moellmann2001-04-031-1/+2
| | | | an antry for ``converts''.
* (checkdoc-minor-mode) <defvar>: Remove.Stefan Monnier2000-11-141-53/+42
| | | | | | | | | | | (checkdoc-minor-mode-map): New map, replaces checkdoc-minor-keymap. (checkdoc-minor-keymap): Backward compatibility. (checkdoc-minor-menu): Don't bother checking checkdoc-minor-keymap. (checkdoc-minor-mode) <defun>: Use easy-mmode-define-minor-mode. (checkdoc-this-string-valid-engine): Be a bit more strict to avoid matching substrings of `...' quoted vars/funs. (checkdoc-defun-info): Only look for `interactive' if alone. (debug-ignored-errors): Add "arg doesn't appear in docstring".
* (checkdoc-interactive-loop): Don't lose on a function with an emptyDave Love2000-01-261-11/+11
| | | | body.
* (checkdoc-this-string-valid-engine):Richard M. Stallman1999-11-261-65/+17
| | | | | | | | | | | | | | Improve messages for capitalization of arg names, for flag variables, for t and nil, for imperatives. Call them imperatives rather than infinitives sans "to". (checkdoc-common-verbs-wrong-voice): Add "moves". (checkdoc-message-text-engine): Improve messages for y-or-n-p. (checkdoc-file-comments-engine): Don't convert comments from 3-semicolon to 2-semicolon. That is a matter of style. (checkdoc-triple-semi-comment-check-flag): Variable deleted. (checkdoc-comments): Don't bind that variable.
* (checkdoc-display-status-buffer): AvoidDave Love1999-09-131-8/+10
| | | | | Help mode for temp buffer. (checkdoc-this-string-valid): Don't assume default comment-start.
* (checkdoc-sentencespace-region-engine): Protect a `forward-sexp' callEric M. Ludlam1998-10-041-4/+7
| | | | which could fail, and improved regex for ie, and eg abbreviations.
* (checkdoc-buffer-label): New function.Eric M. Ludlam1998-09-051-66/+79
| | | | | | | | | | (checkdoc-start-section, checkdoc-error): Use `checkdoc-buffer-label'. (checkdoc-this-string-valid-engine): Permit ? as terminating punctuation for first line sentence breaking. (checkdoc-this-string-valid): When converting a comment into a doc string, make sure " chars are \". (checkdoc-sentencespace-region-engine): Only do double space check if based on the variable `sentence-end-double-space'
* (checkdoc): Updated commentary.Eric M. Ludlam1998-07-031-552/+1358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (checkdoc-autofix-flag): Updated doc. (checkdoc-force-docstrings-flag): Updated doc. (checkdoc-force-history-flag): New flag. (checkdoc-triple-semi-comment-check-flag): Fixed name. (checkdoc-spellcheck-documentation-flag): Fixed doc. (checkdoc-ispell-lisp-words): Update default value. (checkdoc-generate-compile-warnings-flag, checkdoc-proper-noun-list, checkdoc-proper-noun-regexp, checkdoc-symbol-words): New variables. (princ-list): Function created if it isn't bound. (checkdoc-interactive): parts removed to `checkdoc-interactive-loop'. (checkdoc,checkdoc-message-interactive): New function. (checkdoc-interactive-loop): was in `checkdoc-interactive', then added better keybindings, and better autofixing behavior, Cursor now sits next to the error, forcing scrolling if needed, and using a better centering algorithm, and much better error navigation after choosing "f"ix. (checkdoc-next-error): Added parameter ENABLE-FIX. (checkdoc-next-message-error,checkdoc-recursive-edit): New functions. (checkdoc-start): was `checkdoc', uses new note taking system. (checkdoc-current-buffer, checkdoc-continue, checkdoc-comments): Updated to use new note taking system. (checkdoc-rogue-spaces, checkdoc-rogue-space-check-engine): Added INTERACT parameter, uses new warnings functions. (checkdoc-message-text, checkdoc-defun): Updated to use new note taking system. (checkdoc-ispell-current-buffer, checkdoc-ispell-interactive): fix doc. (checkdoc-ispell-message-text, checkdoc-ispell-start): New function. (checkdoc-create-error, checkdoc-error-text, checkdoc-error-start, checkdoc-error-end, checkdoc-error-unfixable): New functions. (checkdoc-minor-keymap): Updated keybinds to new interactive functions, completely re-arranged the minor-mode menu. (checkdoc-this-string-valid): Moved no doc-string warning here, and added autofix if a comment already exists there. (checkdoc-this-string-valid-engine): fix doc, robusted doc finder. All previously returned errors now call `checkdoc-create-error'. Moved no doc string warning out. Update allowed punctuation at end of first line. Fixed up sentence joining. Verb checking flag now only checks the first line of a function. Added more safe conditions to ambiguous symbols. Moved symbol quoting to end. Added autofix for variables that should end in `-flag'. Replaced use of `y-or-n-p' with `checkdoc-y-or-n-p'. Reading checkdoc-param comment no longer depends on list syntax. Fixed various error string spelling & format. (checkdoc-in-sample-code-p): List starting with all caps word is now condsidered sample code. (checkdoc-in-example-string-p, checkdoc-proper-noun-region-engine, checkdoc-sentencespace-region-engine): New functions. (checkdoc-ispell-docstring-engine): Disable spell checking during if user never wants interaction. We don't have a non-interactive spell checking method yet. (checkdoc-file-comments-engine): Now set up to check all possible conditions even after encountering an error. Added auto-fixes for history and commentary. All previously returned errors now call `checkdoc-create-error'. Message spelling and format. (checkdoc-message-text-search): Moved parts to `checkdoc-message-text-next-string'. (checkdoc-message-text-next-string): New function (checkdoc-message-text-engine): All previously returned errors now call `checkdoc-create-error'. Can find/skip 'format' call after the call we are checking. Added sentence/propernoun scans. `y-or-n-p' checks and fixes are now more robust. (checkdoc-y-or-n-p): New function. (checkdoc-autofix-ask-replace): Update doc. Protect match-data. Correctly handle `checkdoc-autofix-flag' of 'never. New behavior with `checkdoc-autofix-flag' of 'automatic-then-never. Better overlay handling. (checkdoc-output-font-lock-keywords): Updated to new output format. (checkdoc-pending-errors): New variable. (checkdoc-find-error): Updated to new output format. (checkdoc-start-section, checkdoc-error): Improved the output. (checkdoc-show-diagnostics): Smarter show algorithm.
* (checkdoc-autofix-flag): Use `other'Andreas Schwab1998-06-241-2/+2
| | | | widget type.
* (checkdoc-eval-defun): Doc fix.Karl Heuer1998-06-191-9/+8
| | | | | (checkdoc-continue, checkdoc-tripple-semi-comment-check-flag): Ditto. (checkdoc-common-verbs-wrong-voice): Use dotted pairs.
* Many doc fixes.Richard M. Stallman1998-05-231-171/+87
| | | | | | Put two spaces between sentences. (checkdoc-this-string-valid-engine): Fix message. (checkdoc-ispell-lisp-words): Add "emacs".
* Updated with latest version. Changes include:Eric M. Ludlam1998-05-171-34/+226
| | | | | | | | | | | Added checks for basics in messages using `error'. Added check for symbols that are both functions and symbols. These references are ambiguous and should be prefixed with "function", or "variable". Added auto-fix for this also. Added auto fix for args that do not occur in the doc string. Fixed question about putting a symbol in `quotes'. Added spaces to the end of all y/n questions. Added checks for y/n question endings to require "? "
* *** empty log message ***Dan Nicolaescu1998-04-181-1/+2
|
* Updated to 0.4.3:Eric M. Ludlam1998-03-141-20/+21
| | | | | Removed string check in basic doc search code. Made the check for embeded key codes more robust from erronious checks.
* Changed font-lock-reference-face to font-lock-constant-face.Simon Marshall1998-02-201-1/+1
|
* Added some more comments in the commentary.Eric M. Ludlam1998-01-081-11/+29
| | | | | You can now `quote' symbols that look like keystrokes When spell checking, meta variables can end in `th' or `s'.