Commit graph

756 commits

Author SHA1 Message Date
Karl Heuer
2298f9f7d8 (eval-defun): Return the evaluation result. 1998-10-06 23:33:04 +00:00
Eric M. Ludlam
1a553b8be1 (checkdoc-sentencespace-region-engine): Protect a `forward-sexp' call
which could fail, and improved regex for ie, and eg abbreviations.
1998-10-04 12:37:28 +00:00
Richard M. Stallman
458f70dc00 (byte-compile-dynamic): Doc fix. 1998-09-28 13:32:44 +00:00
Karl Heuer
917eabae09 (find-function-search-for-symbol): Fix error messages. 1998-09-21 16:35:21 +00:00
Noah Friedman
44faf98195 (eldoc-message): Check for 1-arg case, and store string in
eldoc-last-message without consing a new string.
Rearrange logic from nested if's into cond's.

(eldoc-print-fnsym-args): Renamed to eldoc-get-fnsym-args-string.
Do not print message; just return string.

(eldoc-get-var-docstring): Renamed from eldoc-print-var-docstring.
Do not print message; just return string.
Cache that string in eldoc-last-data.

(eldoc-last-data): Make into a vector.
(eldoc-get-fnsym-args-string): Use new data form of structure.
(eldoc-get-var-docstring): Here also.

(eldoc-last-data-store): New function.
(eldoc-get-fnsym-args-string): Use it.
(eldoc-get-var-docstring): Here also.

(eldoc-docstring-first-line): Minimize interim string consing.
Call substitute-command-keys on the result.

(eldoc-print-var-docstrings, eldoc-print-docstring,
eldoc-docstring-message): Functions removed.
(eldoc-docstring-format-sym-doc): New function, functionality ripped out of
eldoc-docstring-message.
(eldoc-get-fnsym-args-string, eldoc-get-var-docstring): Use it.
1998-09-19 02:15:26 +00:00
Karl Heuer
e189df5073 Doc fixes. 1998-09-13 03:37:24 +00:00
Eric M. Ludlam
84f473b019 (checkdoc-buffer-label): New function.
(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'
1998-09-05 13:46:23 +00:00
Karl Heuer
00a90f4253 (lisp-imenu-generic-expression):
Recognize define-skeleton as a function definer.
1998-09-04 20:49:12 +00:00
Karl Heuer
223a2a6298 (byte-compile-inline-expand):
If the function definition is not a lambda, return original FORM
with no error.
1998-09-04 19:57:32 +00:00
Kenichi Handa
2d5975faa8 (byte-compile-output-as-comment):
Calculate the total bytes using position-bytes instead of
char-bytes.
1998-08-28 12:22:39 +00:00
Dave Love
5134d850aa (find-function-search-for-symbol): Look
for compressed library files too.
1998-08-27 09:21:01 +00:00
Andreas Schwab
a62234679c Fix :version tags to have a string value, not a float. 1998-08-26 09:41:07 +00:00
Andreas Schwab
f3effb674a Fix doc-string-elt property on define-derived-mode. 1998-08-24 10:19:52 +00:00
Richard M. Stallman
01c925e95e Whitespace change. 1998-08-18 07:02:59 +00:00
Richard M. Stallman
d18a808f42 (disassemble-1): Move the call to
string-as-unibyte outside of the if statement.
1998-08-11 11:05:51 +00:00
Richard M. Stallman
952cad8980 (sregex-replace-match): Don't call sregex--value-groups.
(sregex-match-end, sregex-match-beginning): Likewise.
(sregex-match-string-no-properties, sregex-match-string): Likewise.
1998-08-10 02:12:04 +00:00
Kenichi Handa
0359db8251 (debugger-outer-unread-post-input-method-events): New variable.
(debug): Bind debugger-outer-unread-post-input-method-events.
Bind unread-post-input-method-events to nil.
(debugger-env-macro): Likewise.
1998-08-06 05:38:11 +00:00
Richard M. Stallman
ef96556f84 (top-level let): add defsubst. 1998-08-05 20:41:55 +00:00
Richard M. Stallman
08b59cd333 (byte-compile-from-buffer): Make the output buffer multibyte. 1998-08-05 17:59:36 +00:00
Richard M. Stallman
aa8c396e4a (find-function-search-for-symbol): Ignore directories
when looking for a library file.
1998-08-01 19:15:12 +00:00
Richard M. Stallman
bbf1ae49ae (lisp-indent-defun-method): New variable.
(common-lisp-indent-function): Use it.
(lisp-indent-259): Uncomment the `&lambda' code.
(top-level let): Remove duplicate `catch' and `block'.  Use
`&lambda' when appropriate.  Now the lambda lists are indented appropriately.
1998-07-31 03:21:07 +00:00
Richard M. Stallman
8a8a9abe0c (find-function-noselect): Autoload cookie. 1998-07-29 23:04:24 +00:00
Richard M. Stallman
86f281250c (find-function-regexp): Added :version 20.3.
(find-variable-regexp, find-function-after-hook): Likewise.
(find-function-recenter-line): Likewise.
(find-function-recenter-line): Remove autoload cookie.
(find-function-do-it): Made more solid.  `save-excursion' around
call to `find-function-noselect'.  `find-function-other-window'
and `find-function-other-frame' point behaviour should be correct
now when function in a current buffer.
(find-function-setup-keys): New function to set up keybindings.
1998-07-14 23:42:21 +00:00
Richard M. Stallman
09a4d958b2 Indent restart-case', handler-bind' and `restart-bind' correctly. 1998-07-14 08:20:17 +00:00
Richard M. Stallman
f8f34fa23d Indent `handler-case' correctly. 1998-07-10 03:20:14 +00:00
Richard M. Stallman
dc14ae363e (byte-compile-file): Bind set-auto-coding-for-load to t. 1998-07-05 20:30:39 +00:00
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