1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-28 19:42:02 +00:00
Commit Graph

730 Commits

Author SHA1 Message Date
Richard M. Stallman
031bf182c0 (byte-boolean-vars): Add print-escape-multibyte. 1998-07-04 02:49:48 +00:00
Eric M. Ludlam
bca0d6075a (checkdoc): Updated commentary.
(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.
1998-07-03 15:15:27 +00:00
Richard M. Stallman
2cd6a032aa Require `loadhist'. Variable
(find-function-function) variable removed.
(find-function-regexp): New variable, taken from former constant
in `find-function-noselect'.  Can now find function definitions
with parameters on a new line.
(find-variable-regexp): New variable.
(find-function-recenter-line): New variable.
(find-function-after-hook): New variable.
(find-function-search-for-symbol): subroutine, from
of `find-function-noselect'
(find-function-search-for-symbol): `regexp-quote' the symbol name:
needed to find-function `mapcar*' for example.
(find-function-noselect): Improved docstring.  Don't include
`library' in let.
Use `symbol-file' instead of `describe-symbol-find-file'
(find-function-read): Renamed from `find-function-read-function'.
With optional arg now read a variable.
(find-function-read): Separate `completing-read' calls for
variables and functions.
(find-function-do-it): If buffer found was already current push
mark. Added parameter to indicate if a variable is being searched for.
(find-function-do-it): Mention new `find-function-recenter-line'
and `find-function-after-hook' in docstring.  Use them.
(find-function): Remove optional arg.  Use `find-function-do-it'
and `find-function-read'.
(find-function-other-window): ditto.
(find-function-other-frame): ditto.
(find-function): Mention `find-function-recenter-line' and
`find-function-after-hook' in docstring.
(find-function-other-window): Remove most of docstring and add
reference to `find-function' instead.
(find-function-other-frame): Ditto.
(find-variable-noselect): New function for finding the point of
definition of variables, modeled on `find-function-noselect'.
(find-variable-noselect): Use `symbol-file' instead of
`describe-symbol-find-file'.
(find-variable): New function.
(find-variable-other-window): Ditto.
(find-variable-other-frame): Ditto.
(find-variable): Mention `find-function-recenter-line' and
`find-function-after-hook' in docstring.
(find-variable-other-window): Remove most of docstring and add
reference to `find-variable' instead.
(find-variable-other-frame): Ditto.
(find-function-on-key): Simplified.  Removed stuff now taken care
of by interactive "k".
(find-function-at-point): New function.
(find-variable-at-point): Ditto.
1998-06-29 17:23:25 +00:00
Andreas Schwab
e4f0bdfa23 (copyright-query): Use `other' widget
type.
1998-06-24 09:06:56 +00:00
Andreas Schwab
59c9da9d0a (checkdoc-autofix-flag): Use `other'
widget type.
1998-06-24 09:05:39 +00:00
Andreas Schwab
778c757617 (byte-compile-generate-call-tree):
Use `other' widget type.
1998-06-24 09:02:58 +00:00
Andreas Schwab
db352ce60e (ad-redefinition-action,
ad-default-compilation-action): Use `other' widget type.
1998-06-24 08:58:39 +00:00
Richard M. Stallman
8146c81d06 (buffer-modified-p): Make defsetf handle buffer argument. 1998-06-23 15:47:38 +00:00
Richard M. Stallman
b274c3ad1f Change copyright notice. 1998-06-23 01:55:31 +00:00
Dan Nicolaescu
e65f17fee9 Initial revision 1998-06-22 02:03:41 +00:00
Karl Heuer
6deb154314 (checkdoc-eval-defun): Doc fix.
(checkdoc-continue, checkdoc-tripple-semi-comment-check-flag): Ditto.
(checkdoc-common-verbs-wrong-voice): Use dotted pairs.
1998-06-19 19:21:23 +00:00
Richard M. Stallman
8b0697787a (find-function-on-key): Don't discard up event after down event. 1998-06-14 19:04:40 +00:00
Richard M. Stallman
a440f81d29 (elisp-eval-region): Accept new arg read-function; also handle
load-read-function.
1998-06-13 04:34:18 +00:00
Richard M. Stallman
63987c84b1 (eval-defun): Pass read function to
eval-region as arg, instead of binding load-read-function.
1998-06-13 04:33:31 +00:00
Dan Nicolaescu
707ee44899 *** empty log message *** 1998-06-06 20:22:47 +00:00
Karl Heuer
fcd61c5693 Comment fix. 1998-06-05 16:25:25 +00:00
Karl Heuer
b9edcafb51 (byte-compile-lambda): Fix previous change. 1998-06-04 06:11:30 +00:00
Karl Heuer
961c963df3 (find-function-noselect): Don't call
format twice with the error message.  Quote the function name
before splicing into regexp.
1998-06-03 14:39:19 +00:00
Karl Heuer
3d1ef62e40 (easy-mmode-define-minor-mode): Add missing format arg. 1998-06-01 02:59:23 +00:00
Richard M. Stallman
18baef8fa9 (make-autoload): Doc fix. 1998-05-26 05:17:02 +00:00
Richard M. Stallman
fc89daeeaf (make-autoload): Add support for define-derived-mode. Update the
doc-string accordingly.
1998-05-26 05:14:52 +00:00
Richard M. Stallman
2d75b39535 (eval-defun): Pass proper beg to eval-region. 1998-05-25 22:40:45 +00:00
Richard M. Stallman
3eb6864cde (generate-file-autoloads): Set
print-escape-nonascii when printing autoload form.
1998-05-25 20:32:19 +00:00
Richard M. Stallman
f10f694856 (byte-boolean-vars): Add print-escape-nonascii. 1998-05-25 20:31:58 +00:00
Richard M. Stallman
bf92b5a4d6 (lisp-indent-error-function): New variable.
(common-lisp-indent-function): Bind lisp-indent-error-function.
(lisp-indent-report-bad-format): Use lisp-indent-error-function.
1998-05-24 16:58:32 +00:00
Richard M. Stallman
545128a805 (easy-menu-do-add-item): Small simplifications.
(easy-menu-precalculate-equivalent-keybindings): New customization variable.
(easy-menu-add): Precalculate key bindings if
`easy-menu-precalculate-equivalent-keybindings' is on.
1998-05-23 04:26:39 +00:00
Richard M. Stallman
5fecb21aeb Many doc fixes.
Put two spaces between sentences.
(checkdoc-this-string-valid-engine): Fix message.
(checkdoc-ispell-lisp-words): Add "emacs".
1998-05-23 00:51:44 +00:00
Richard M. Stallman
f0d527fcb7 Indent `with-standard-io-syntax' correctly. 1998-05-22 04:42:48 +00:00
Richard M. Stallman
3a6a40e55b Whitespace change. 1998-05-21 01:55:57 +00:00
Richard M. Stallman
fb639443f9 (byte-compile-insert-header): Do not look for multibyte characters here.
Generate the right file header for use if there are none.
Insert a line of semicolons for subsequent deletion if needed.
(byte-compile-fix-header): New function.
This updates the file header if the file uses multibyte characters.
(byte-compile-from-buffer): Call byte-compile-insert-header
before compiling, and byte-compile-fix-header at the end.
1998-05-19 02:59:42 +00:00
Richard M. Stallman
c519f68fa9 (debugger-frame-clear): Doc fix. 1998-05-17 22:02:49 +00:00
Eric M. Ludlam
a4370a7744 Updated with latest version. Changes include:
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 "? "
1998-05-17 13:20:26 +00:00
Richard M. Stallman
6ebe9f826f (byte-decompile-bytecode-1):
Cope with an out-of-range constvec index.
1998-05-15 05:49:05 +00:00
Richard M. Stallman
2036d16f51 (ad-handle-definition, defadvice): Fix error messages. 1998-05-14 05:39:59 +00:00
Richard M. Stallman
a56d55b703 (disassemble-1): Reference bytecode string as unibyte. 1998-05-14 00:57:14 +00:00
Richard M. Stallman
d57d06cb6e (byte-compile-insert-header): Fix prev chg. 1998-05-13 04:48:48 +00:00
Richard M. Stallman
1596952ed4 (byte-compile-from-buffer):
Insert the output file header after compiling all the input.
(byte-compile-output-file-form): Major cleanup.
If output file contains multibyte chars,
insist on Emacs 20 when loading.
1998-05-13 00:03:19 +00:00
Richard M. Stallman
168b2d0d5a (easy-menu-change): Add autoload cookie. 1998-05-11 23:34:25 +00:00
Richard M. Stallman
1cdb6e7c67 (byte-compile-output-docform): Use position-bytes. 1998-05-10 03:50:03 +00:00
Richard M. Stallman
1f43a8c647 (find-function-noselect): Autoload it. 1998-05-09 19:53:47 +00:00
Richard M. Stallman
6b797f0613 (generate-file-autoloads): Handle progn forms generated by
make-autoload: print just the first subform with print-escape-newlines.
1998-05-09 07:02:50 +00:00
Richard M. Stallman
36f8d564cd (edebug-all-forms): Add autoload cookie.
(edebug-all-defs): Likewise.
1998-05-07 23:31:26 +00:00
Richard M. Stallman
248a9f6d2f (list-load-path-shadows): Don't say
anything if we are not interactive and nothing is wrong.
1998-05-04 01:22:17 +00:00
Richard M. Stallman
3d5b223404 (popup-menu-popup): Fix typo: set menu-keymap. 1998-05-01 03:51:57 +00:00
Richard M. Stallman
d886825394 (easy-menu-define-key): Fixed bug with BEFORE
argument.  Now it works also if you repeat an identical call to
easy-menu-define-key.
1998-04-28 20:03:07 +00:00
Richard M. Stallman
aabf58d159 (copyright-regexp): Put \251 before the multibyte copyright symbol. 1998-04-24 20:58:03 +00:00
Richard M. Stallman
8acc018fe0 Indent defpackage correctly. 1998-04-24 19:43:52 +00:00
Richard M. Stallman
c78fb6a6fb Use new menu item format. Don't simulate button prefix.
(easy-menu-create-menu): Understand also keywords :active,
:label and :visible.  Don't worry about button prefix.
(easy-menu-button-prefix): Modified value.
(easy-menu-do-add-item): Extensive changes to use new menu item format.
(easy-menu-define-key, easy-menu-always-true): New functions.
(easy-menu-make-symbol): Don't use indirection for symbols.
Property `menu-alias' not set.
(easy-menu-filter, easy-menu-update-button): Deleted.
(easy-menu-add-item): Don't worry about button prefix.
(easy-menu-remove-item): Don't worry about button prefix.
Use `easy-menu-define-key'.
(easy-menu-is-button, easy-menu-have-button): Deleted.
(easy-menu-real-binding, easy-menu-change-prefix): Deleted.
1998-04-24 01:54:09 +00:00
Richard M. Stallman
746dd29821 (byte-compile-file): Always read the file in multibyte mode
unless the file itself specifies unibyte mode.
1998-04-23 21:24:29 +00:00
Richard M. Stallman
d016f81992 (easy-menu-do-add-item):
Do the right thing when nil is specified as criterion for activeness.
Fix string used to report an invalid item.
1998-04-21 04:54:46 +00:00