Commit graph

633 commits

Author SHA1 Message Date
Richard M. Stallman
f643a89157 (byte-compile-from-buffer, byte-compile-top-level):
Removed advice. Byte-compilation problem is now taken care of
directly by the compiler.
(ad-advised-byte-compilers): Removed.
(ad-enable-definition-hooks, ad-disable-definition-hooks): Removed
activation of the advised byte-compiler entry points.
(ad-lemacs-p): Removed variable.
(ad-lemacs-p): New macro for compile-time conditionalization.
1994-02-25 00:57:37 +00:00
Richard M. Stallman
d9e42bcf36 (byte-compile-protect-from-advice): New macro that
temporarily deactivates advice of `defun/defmacro' while BODY is run.
(byte-compile-from-buffer, byte-compile-top-level): Use
`byte-compile-protect-from-advice' to protect compilation.
1994-02-25 00:54:15 +00:00
Richard M. Stallman
5847f86195 (lisp-mode-variables): Set outline-regexp. 1994-02-24 22:36:24 +00:00
Richard M. Stallman
2512acba30 (debug, debug-on-entry): Doc strings. 1994-02-23 23:17:34 +00:00
Karl Heuer
a2bb8f73f2 (byte-compile-file): Return nil on failure. 1994-02-23 19:17:57 +00:00
Richard M. Stallman
6e2f6f4518 Removed all support for Emacs-18:
Removed autoload for `backquote'.
Removed arglist specifications for `documentation' and `fset'.
(ad-emacs19-p, ad-use-jwz-compiler): Removed these variables.
(ad-lemacs-p, ad-v19-compiled-p, ad-subr-arglist,
ad-make-advised-docstring): Removed reference to `ad-emacs19-p'.
(ad-compiled-p): Renamed from `ad-v19-compiled-p'.  Removed old
definition of `ad-compiled-p'.
(ad-compiled-code): Renamed from `ad-v19-compiled-code'.
(ad-arglists, ad-docstring, ad-interactive-form): Use new names.
(ad-body-forms): Always return nil for compiled definitions.
(ad-compile-function): Simplified, because the v19 incarnation of
`byte-compile' can compile macros.
(ad-real-byte-codify): Removed.
(ad-execute-defadvices): Removed. The `defadvice's it contained
are now at the top level.
(ad-advised-byte-code-definition): Renamed to `ad-advised-byte-code'
and removed the definition of `ad-advised-byte-code' via `fset'.
(ad-advised-byte-code-definition, ad-recover-byte-code,
ad-stop-advice, ad-recover-normality): Removed
`ad-real-byte-codify'-cation of their definitions.
(ad-adjust-stack-sizes): Removed.
(ad-enable-definition-hooks, ad-disable-definition-hooks):
Removed v19 conditionalization.

Fixed the problematic interaction between the
byte-compiler and Advice when `ad-activate-on-definition' was t which
resulted in erroneous compilation of nested `defun/defmacro's:
(byte-compile-from-buffer, byte-compile-top-level): Advised
to temporarily deactivate the advice of `defun/defmacro'.
(ad-advised-definers, ad-advised-byte-compilers): New variables.
(ad-enable-definition-hooks, ad-disable-definition-hooks):
En/disable the advised byte-compiler entry points.

(defadvice): Implement a `freeze' option which expands
the `defadvice' into a redefining and dumpable `defun/defmacro'
whose documentation can be written to the `DOC' file. Frozen
advices cannot be undone, hence, they do not need any Advice
runtime support.
(ad-defadvice-flags): Add `freeze' flag.
(ad-make-advised-docstring, ad-make-single-advice-docstring):
New STYLE option for `plain' and `freeze' styles. Slightly
changed the default formatting of advised docstrings.
(ad-make-plain-docstring, ad-make-freeze-docstring): New functions.

(ad-recover-all, ad-scan-byte-code-for-fsets):
Removed unused condition variable `ignore-errors'.

(ad-save-real-definition): New macro to save real
definitions of functions used by Advice.
Use `ad-save-real-definition' to save definitions of `fset',
`byte-code' and now also `documentation'.
(ad-subr-arglist, ad-docstring, ad-make-advised-docstring):
Use `ad-real-documentation' to avoid interference with the
advised version of `documentation'.

(ad-execute-defadvices): Copy advice infos.

(ad-start-advice-on-load): Default changed to t.
1994-02-23 03:57:07 +00:00
Richard M. Stallman
2eb9adabed (lisp-complete-symbol): Doc fix. 1994-02-18 23:51:41 +00:00
Richard M. Stallman
b041301359 Delete the code to enable menu bars. 1994-02-17 22:01:45 +00:00
Richard M. Stallman
5f65078a26 (defun-prompt-regexp): Now a user variable. 1994-02-17 21:06:52 +00:00
Roland McGrath
9ed4d64fd3 (generate-file-autoloads): Don't frob literal formfeeds into \f; just bind
print-escape-newlines to t around printing (now has same effect).
1994-02-08 23:03:09 +00:00
Karl Heuer
e15068c4db (batch-update-autoloads): Add missing close paren. 1994-02-08 04:53:09 +00:00
Karl Heuer
d5bfe0767b (insert-parentheses): Doc mod. 1994-02-07 22:57:35 +00:00
Roland McGrath
72c19d97c1 (autoload-trim-file-name): New function.
(generate-file-autoloads): Bind print-readably to t for Lucid.
Use autoload-trim-file-name on FILE when inserting the name.
Scan written text and fix up ^L to \f and ( at bol to \(.
(update-file-autoloads): When we find a later file's section, set FOUND to
'new.  If FOUND is 'new after loop, check file for autoload cookies and
don't call generate-file-autoloads if none.
(update-directory-autoloads): Get absolute file names from directory-files.
(batch-update-autoloads): Rewrite from jwz to process later files in a
directory after one file errs.
1994-02-07 22:19:05 +00:00
Roland McGrath
d55e3ff0cc (update-file-autoloads): Never ask the user where to put a new section.
While searching the file, look for an alphabetically later file's section,
and insert the new section before it.
1994-02-07 05:08:36 +00:00
Richard M. Stallman
184c749355 Comment changes and doc fixes.
The C program in the comments was moved into ../lib-src/profile.c.
1994-02-05 05:05:39 +00:00
Karl Heuer
835cd48e6a (ad-execute-defadvices): Don't allocate advice-infos in pure space, in case we
want to preload this file.
1994-02-02 21:35:07 +00:00
Roland McGrath
a1d528953c (update-copyright): Wrap final copyright-matching regexp in parens, so \1
gets all the year tokens, not just the last.  (The old regexp won with
the pre-POSIX defn of subexpressions with +.)
1994-01-16 04:35:38 +00:00
Richard M. Stallman
b2ecc630a3 (debug): Bind unread-command-char to -1, not nil. 1994-01-14 18:19:13 +00:00
Richard M. Stallman
2abcddce3b (byte-compile-condition-case): Disable warning about
symbol not naming a condition.  Allow a list of condition names.
1994-01-11 07:21:47 +00:00
Roland McGrath
1476977314 (debug): Fixed typo. 1994-01-09 23:22:30 +00:00
Richard M. Stallman
35cf010db6 (debug): Bind a bunch of vars, like last-command, to
neutral values.  Save the outer values in debugger-last-command, etc.
Put those saved values back into effect when returning.
(debugger-eval-expression): Put the saved values into effect
while evaluating, and store modified values back into
debugger-outer-... after evaluating.
1994-01-09 23:11:56 +00:00
Richard M. Stallman
b69f3ab1c8 (make-lucid-menu-keymap): Allow multiple identical inactive strings. 1994-01-07 05:37:31 +00:00
Richard M. Stallman
ac8a83413f (make-lucid-menu-keymap): For "----", make blank line. 1994-01-06 04:59:17 +00:00
Richard M. Stallman
e3c72369df [ms-dos] (byte-compile-file): Save as binary. 1994-01-06 04:31:20 +00:00
Richard M. Stallman
d06752db2d (popup-menu): Add loop to handle submenus. 1994-01-04 23:30:37 +00:00
Richard M. Stallman
3785d1c8a8 Comment fix. 1994-01-04 01:41:34 +00:00
Richard M. Stallman
fd752f985a (debug): Bind this-command and last-command. 1994-01-04 01:39:46 +00:00
Richard M. Stallman
1c222bca8f (eval-current-buffer): Old definition deleted.
(eval-buffer): Use current buffer by default.
1993-12-31 12:42:06 +00:00
Richard M. Stallman
3082623d01 (lm-report-bug): lm-maintainer returns a cons; convert it to a string. 1993-12-26 08:02:10 +00:00
Richard M. Stallman
ef92f83b81 (lm-report-bug): Don't crash if version is nil. 1993-12-26 07:56:21 +00:00
Richard M. Stallman
200503bb06 Provide bytecomp as well as byte-compile. 1993-12-25 00:32:37 +00:00
Richard M. Stallman
c20a77cc59 Add side-effect-free props for many functions.
(byte-boolean-vars): Add highlight-nonselected-windows.
1993-12-23 05:00:49 +00:00
Richard M. Stallman
e9681c45f9 (byte-compile-dest-file): If FILENAME is not recognized, append .elc to it.
(byte-recompile-directory): Don't treat symlinks as dirs.

(batch-byte-recompile-directory): Add autoload cookie.
1993-12-23 03:37:27 +00:00
Noah Friedman
1894df21dd (Bogus-Bureaucratic-Cruft): Changed to `X-Bogus-Bureaucratic-Cruft'.
Change comments to indicate that any header starting with `X-' is
not supposed to be implemented.  This gives us the same "out" as
that RFC822 does.
1993-12-22 12:06:54 +00:00
Richard M. Stallman
b7f66977be Comment change. 1993-11-23 20:12:25 +00:00
Richard M. Stallman
4e08e74182 Comment change. 1993-11-23 19:28:39 +00:00
Richard M. Stallman
4897b0a059 Delete periods from error messages.
(edebug-functionp): Recognize compiled functions.
(edebug-display): Supply missing parens in let.
1993-11-23 08:43:48 +00:00
Richard M. Stallman
d4ce6b1875 (edebug-functionp): Recognize compiled functions. 1993-11-23 08:41:03 +00:00
Richard M. Stallman
ef7485ce20 (lisp-eval-defun): Renamed from lisp-send-defun.
(lisp-mode-map): Use new name lisp-eval-defun.
Move run-lisp to C-x C-z.
1993-11-22 00:41:35 +00:00
Richard M. Stallman
54d4b6096c (remove-hook): Function deleted. 1993-11-13 08:21:16 +00:00
Brian Fox
5ed74a2240 Doc fix. 1993-10-05 01:54:20 +00:00
Richard M. Stallman
8dff74b7f6 (disassemble-internal): Allow a call to byte-code as argument. 1993-09-27 01:36:27 +00:00
Brian Fox
9c0415e0b5 (edebug-enter): Don't call the current function being debugged in
pre-command-hook or post-command-hook.
1993-09-21 07:18:36 +00:00
Brian Fox
4de97979a2 (side-effect-free-fns): Add "-" and "1-" to the list. 1993-09-21 06:47:21 +00:00
Roland McGrath
09a0903706 (update-copyright): Handle two-digit years with apostrophes. 1993-08-18 16:48:32 +00:00
Richard M. Stallman
89eb0213a7 Comment fix. 1993-08-11 20:37:21 +00:00
Richard M. Stallman
b0787891e7 (byte-compile-from-buffer): Set float-output-format to
nil, not "%.20e", since nil is guaranteed to not lose info on output.
1993-08-11 06:39:21 +00:00
Richard M. Stallman
aa7ea8bd6e (generate-file-autoloads): Set float-output-format to
nil, not "%.20e", since nil is guaranteed to not lose info on output.
1993-08-11 06:38:38 +00:00
Paul Eggert
46780baeeb mod' is no longer an alias for %'. 1993-08-10 04:14:17 +00:00
Paul Eggert
ebe6b81460 (floor*): Use `floor' instead of doing most the work ourselves. 1993-08-10 04:14:17 +00:00