Commit graph

555 commits

Author SHA1 Message Date
Richard M. Stallman
b741439511 (edebug-eval-mode): Add a mode-class property. 1997-05-05 01:03:53 +00:00
Richard M. Stallman
fcb242c978 (generated-autoload-file): Change defconst to defvar. 1997-04-29 00:23:40 +00:00
Richard M. Stallman
d83cce6dda (elp-report-limit): Change prompt string.
(elp-version): Incremented.
1997-04-21 23:48:34 +00:00
Richard M. Stallman
88b52bf54e (edebug-read-and-maybe-wrap-form): Protect
against pathological recursive calls.
1997-04-14 20:57:39 +00:00
Richard M. Stallman
a326c090b5 Add defgroup; use defcustom for user vars. 1997-04-14 07:33:28 +00:00
Richard M. Stallman
3627d6b20a Update copyright years. 1997-04-12 19:31:18 +00:00
Richard M. Stallman
9e5b444e89 Add defgroup; use defcustom for user vars. 1997-04-12 19:31:00 +00:00
Richard M. Stallman
b5ca6f92e7 (elp-functionp): Definitions deleted; use functionp. 1997-04-12 19:15:11 +00:00
Richard M. Stallman
9b267ebada (elp-functionp): New function.
(elp-instrument-package): Don't attempt to instrument autoload functions.

(elp-elapsed-time): New function to calculate the different between
two `current-time' lists.  This no longer throws away the top 16 bits
of information.

(elp-wrapper): Use elp-elapsed-time instead of elp-get-time.  Also,
call `current-time' as close to the function entrance and exit as
possible so more of the overhead is eliminated from the times.

(elp-get-time): Obsolete, deleted.

(elp-restore-function):
When restoring, do not check assq elp-wrapper
if the symbol-function is a compiled lisp function (i.e. byte coded).
If it is byte-coded, it could not have been instrumented.
Don't do the symbol-function restoration if
the symbol has no function definition.

(elp-instrument-function): Always `restore' the funsym before instrumenting.
Fail if function is an autoload symbol.

(elp-instrument-list): Remove unnecessary condition-case.

(elp-results):
Noninteractive as a function is non-portable, use the
variable instead.  buffer-substring with 3 arguments is non-portable.

(elp-instrument-function, elp-instrument-list):
Handle function symbols that have already been instrumented.  Do
not instrument them twice.

(elp-recycle-buffers-p): New variable.

(elp-report-limit, elp-sort-by-function): New default values.

(elp-use-standard-output): New variable.

(elp-results): Optionally dump results to standard-output.
1997-04-12 19:14:18 +00:00
Richard M. Stallman
c5292bc831 Add defgroup's; use defcustom for user vars. 1997-04-12 08:35:41 +00:00
Richard M. Stallman
fcad51995c Add defgroup's; use defcustom for user vars. 1997-04-12 04:15:03 +00:00
Richard M. Stallman
2c66f5d196 (eval-defun): For defcustom, always set the value. 1997-04-10 05:58:24 +00:00
Richard M. Stallman
531cbff1cc (indent-sexp): If calculate-lisp-indent returns nil,
don't change the line's indentation.
(lisp-indent-line): Likewise.
(lisp-comment-indent): Likewise.
(calculate-lisp-indent): Return nil if line starts inside a string.
1997-04-05 21:51:44 +00:00
Richard M. Stallman
614710af5b (debug): Use save-excursion inside the binding of buffer-read-only. 1997-03-30 07:05:14 +00:00
Noah Friedman
387ccacecf (eldoc-idle-delay): Make defvar, not defconst.
(eldoc-minor-mode-string): Make defvar, not defconst.
(eldoc-argument-case): Make defvar, not defconst.
1997-03-27 10:44:56 +00:00
Richard M. Stallman
941e78a72a (tq-process-buffer): Catch errors running tq-queue-head-fn. 1997-03-22 03:55:49 +00:00
Richard M. Stallman
14b6a8e104 Many doc fixes.
(ring-ref): Fix error message.
1997-03-22 03:52:36 +00:00
Richard M. Stallman
8662fc42d8 (copyright-regexp): Allow "Copyright" and the copyright symbol together. 1997-03-22 03:35:20 +00:00
Karl Heuer
033d0963b3 (when, unless): Symbol props moved to subr.el. 1997-03-14 17:57:41 +00:00
Karl Heuer
42875c6da8 (lisp-imenu-generic-expression): Accept *', |',
and `:' in symbol names.
1997-03-11 22:32:22 +00:00
Kenichi Handa
95aeae460a (byte-compile-file): Bind coding-system-for-write
instead of coding-system-for-read to 'no-conversion to disbale
code convertion by write-region.
1997-02-26 11:59:40 +00:00
Karl Heuer
361721f240 (eval-last-sexp): Allow let-bindings to terminate
before doing the eval.
Handle (interactive ...) form specially.
1997-02-23 07:52:35 +00:00
Karl Heuer
9a06295dcf (debugger-mode): Disable multibyte character handling
in Debugger mode.
1997-02-20 05:41:01 +00:00
Karl Heuer
b8575ac32e (byte-compile-file): Write a compiled file without
any code conversion.
1997-02-20 05:40:01 +00:00
Karl Heuer
a8f15301e6 (update-file-autoloads): Read loaddefs.el without
any code conversion.
1997-02-20 05:39:18 +00:00
Noah Friedman
9d497c0123 (eldoc-message-commands): Doc fixes.
(eldoc-message): Make function, not macro.

(eldoc-last-message): New internal variable.
(eldoc-mode): Initialize it to nil.
(eldoc-message): Use it.
(eldoc-print-current-symbol-info): Use it.

(eldoc-pre-command-refresh-echo-area): New function.
(eldoc-mode): Put it on pre-command-hook if in XEmacs or using idle timers
in Emacs.

(eldoc-message-commands-table-size): New constant.
(eldoc-add-command): Use it to initialize eldoc-message-commands.

(eldoc-display-message-no-interference-p): New function.
(eldoc-display-message-p): Use it.

(eldoc-print-fnsym-args, eldoc-print-var-docstring): Arg sym no longer
optional.
Do not initialize arg if nil.

(eldoc-forward-sexp-safe): Function deleted.
(eldoc-beginning-of-sexp): New function.
(eldoc-fnsym-in-current-sexp): Use eldoc-beginning-of-sexp.
Use eldoc-current-symbol to get symbol at point.

(eldoc-function-argstring-from-docstring-method-table): Forge docstrings
for `and', `or', `list', `+', and `-'.

(eldoc-add-command-completions): New function.
(eldoc-add-command): Take list of args.
No longer interactive.

(eldoc-remove-command-completions): New function.
(eldoc-remove-command): Take list of args.
No longer interactive.

top level: Initialize eldoc-message-commands using
eldoc-add-command-completions.
1997-02-19 10:24:26 +00:00
Roland McGrath
2884cbf0e8 (update-autoloads-from-directory): Get absolute file names from
directory-files, and expand generated-autoload-file.  Subdirs happy now.
1997-02-17 21:44:59 +00:00
Noah Friedman
4fa073648d (eldoc-display-message-p): New function.
Return nil if cursor-in-echo-area, or using idle timers and a command
is still active.

(eldoc-print-current-symbol-info): Use eldoc-display-message-p.
1997-02-04 18:21:29 +00:00
Noah Friedman
332ae8db49 Update copyright notice to reflect assignment to FSF and incorporation
into Emacs.

Attempt to load `timer'.

(eldoc-idle-delay): Make defconst.
(eldoc-minor-mode-string): Make defconst.
(eldoc-argument-case): Make defconst.

(eldoc-message-commands): Renamed from eldoc-mode-message-commands.
All callers changed.
Add `mouse-set-point' as a default candidate.

(eldoc-use-idle-timer-p): New constant.
(eldoc-timer): New variable.
(eldoc-current-idle-delay): New variable.
(eldoc-schedule-timer): New function.
(eldoc-mode): Use idle timers if supported.

(eldoc-add-command): Provide completion on interactive commands only, not
all bound functions.

(eldoc-print-current-symbol-info): Renamed from
eldoc-mode-print-current-symbol-info.  All callers changed.
Check whether using idle timers or being run from post-command hooks.
Use `executing-kbd-macro' instead of `executing-macro'.

(eldoc-print-fnsym-args): Don't make interactive.
Cache current symbol name in eldoc-last-data; it was forgetting to do this
previously.
If subr args cannot be determined, show single-line docstring for it instead.

(eldoc-docstring-message): New function.
(eldoc-print-docstring): New function.
(eldoc-print-var-docstring): Use them.

(eldoc-function-argstring-from-docstring-method-table): New constant.
(eldoc-function-argstring-from-docstring): Use it.
1997-02-03 06:13:34 +00:00
Richard M. Stallman
7aec540f0c (byte-compile-inline-expand): Recalculate fn
after loading a file to define the function.
1997-01-27 02:40:13 +00:00
Richard M. Stallman
6ae5bdf58c (when, unless): Definitions moved to subr.el. 1997-01-08 06:09:48 +00:00
Richard M. Stallman
e6a6d69799 (easy-menu-create-keymaps): Menu item STYLE toggle (checkbox)
and radio (radio button) are prefixed by "[X] " or
"(*) " respectively, when selected and "[ ] " or "( ) ", when not
selected. In a menu that contain these prefixes, "    " is used
as prefix for items that have no other prefix.

(easy-menu-update-button): New function used as `menu-enable'
property for checkboxes and radio buttons to update the prefixes.

(easy-menu-define): Change documentation string to describe the
new prefixes.
1997-01-02 20:20:22 +00:00
Richard M. Stallman
cd891e6848 (byte-compile-file): Set default-directory in compiler input buffer. 1996-12-30 18:52:14 +00:00
Richard M. Stallman
f4897e407d (edebug-read-symbol, edebug-read-string): Don't back up after reading.
(edebug-read-sexp): Likewise.
1996-12-26 20:46:51 +00:00
Richard M. Stallman
d7fa5aa239 Change defconsts to defvars. 1996-12-16 01:33:02 +00:00
Karl Heuer
7bb250dacc (byte-compile-insert-header): Fix previous change. 1996-12-11 01:29:00 +00:00
Richard M. Stallman
666ef0083b (byte-compile-insert-header): If emacs-version
ends with a letter, don't check the version number.
1996-12-07 20:34:15 +00:00
Erik Naggum
488a0b059b (combine-after-change-calls): The first form is not special. 1996-11-11 20:42:08 +00:00
Richard M. Stallman
92475d89c3 (combine-after-change-calls): Add lisp-indent-function property. 1996-11-09 21:48:25 +00:00
Richard M. Stallman
5398a9e7bf (combine-after-change-calls): New def-edebug-spec. 1996-11-09 21:48:07 +00:00
Richard M. Stallman
030dccec3e (lisp-complete-symbol): Sort the list. 1996-11-01 08:19:07 +00:00
Karl Heuer
70a036cfe6 (lexical-let): Fixed a bug involving nested
lexical contexts and macros.
1996-10-24 22:45:24 +00:00
Richard M. Stallman
1814e5a971 (define-function): Mark it as obsolete. 1996-10-12 23:54:12 +00:00
Erik Naggum
e3ac26cbb8 (narrow-to-defun): Narrow to the same defun that `mark-defun' would make
the region.
(insert-parentheses): Let a negative argument enclose preceding sexps.
1996-10-08 23:13:39 +00:00
Erik Naggum
54c014f0a9 (with-current-buffer): Correct indentation property. 1996-10-08 18:22:57 +00:00
Noah Friedman
477c388f4b (eldoc-function-argstring-from-docstring): Add search that finds arglist
for `start-process'; possibly others.
1996-10-04 04:43:42 +00:00
Richard M. Stallman
b6b4c8bdd2 (eval-after-load): Add lisp-indent-function for it. 1996-10-03 21:51:39 +00:00
Erik Naggum
e0119683e4 (with-temp-buffer): Add indentation property. 1996-10-03 02:16:38 +00:00
Richard M. Stallman
52fb15fae2 Delete several \n\'s.
(profile-fix-fun): Delete an if whose test is never true.
Handle doc strings that are also the function value.
1996-10-02 21:42:42 +00:00
Richard M. Stallman
8fd2940861 (save-selected-window, save-current-buffer)
(save-match-data, with-output-to-string, with-current-buffer)
(with-temp-file, with-temp-buffer): Add def-edebug-spec calls.
1996-10-02 21:41:56 +00:00