Commit graph

223 commits

Author SHA1 Message Date
Richard M. Stallman
2bb659660e (eval-last-sexp-1): Return the value of the evaluated form. 2001-11-06 04:44:51 +00:00
Richard M. Stallman
48461f7cde (last-sexp-toggle-display): Cope if previous-single-property-change or
next-single-char-property-change returns nil.
2001-11-05 02:35:44 +00:00
Richard M. Stallman
46f90d0ff3 (eval-defun): Doc fix. 2001-10-28 14:15:14 +00:00
Gerd Moellmann
d7f519edc1 (lisp-imenu-generic-expression): Use regexp-opt.
(doc-string-elt): Set symbol's prop.  Copied from autoload.el.
(lisp-font-lock-syntactic-face-function): New function.
(lisp-mode-variables): Use it.  Make arg optional.
(emacs-lisp-mode): Don't pass an arg to lisp-mode-variables.
(lisp-mode): Don't pass an arg to lisp-mode-variables.
Set comment-start-skip.
2001-10-05 09:31:27 +00:00
Gerd Moellmann
cb79ea6486 (last-sexp-setup-props): New function.
(last-sexp-toggle-display): Renamed from last-sexp-print.
(last-sexp-toggle-display, eval-last-sexp-1): Use
last-sexp-setup-props.
2001-07-27 15:26:53 +00:00
Gerd Moellmann
8f4f953c20 (eval-last-sexp-1): Don't search for
`...', compare with unabbreviated printed representation instead.
(last-sexp-print): Bind print-length and print-level to nil.
2001-07-26 13:41:32 +00:00
Gerd Moellmann
be4a68f92a (eval-last-sexp-1): Look for a `...'
before assigning text properties.  Make properties rear-nonsticky.
2001-07-26 13:34:32 +00:00
Gerd Moellmann
5f0962558d (last-sexp-print): New function.
(eval-last-sexp-1): Give printed text a `keymap' property and bind
<mouse-2> and <RET> in that map to a function printing the
unabbreviated value.
2001-07-26 12:31:38 +00:00
Gerd Moellmann
6849e6d5ee (eval-last-sexp-1): If standard-output
is a buffer, put a text property `printed-value' on the printed
representation, with the Lisp object printed as value.
2001-07-26 09:28:58 +00:00
Eli Zaretskii
343462edc9 (eval-print-last-sexp, eval-defun):
Mention the effect of eval-expression-print-length and
eval-expression-print-level.  Suggested by Kevin Gallagher
<kevingal@onramp.net>.
2001-07-25 16:24:58 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Gerd Moellmann
a25e82a815 (lisp-mode-shared-map): Bind TAB
to lisp-indent-line.
2001-07-06 15:33:36 +00:00
Richard M. Stallman
0202508f43 (eval-last-sexp): Doc fix. 2001-06-23 19:36:23 +00:00
Eli Zaretskii
cada28bb17 (lisp-indent-offset): Add a doc string. 2001-06-05 08:50:20 +00:00
Gerd Moellmann
5408c14970 (lisp-mode): Make
font-lock-keywords-case-fold-search a buffer-local variable
with make-local-variable before setting it.
2001-05-15 11:52:10 +00:00
Gerd Moellmann
94f8f5d38e (lisp-interaction-mode): Doc fix. 2001-05-09 15:44:18 +00:00
Eli Zaretskii
c1acacc417 (lisp-mode-shared-map): Undo the change from 2001-01-12. It is not needed,
since backspace is now mapped into DEL.
2001-01-27 12:20:18 +00:00
Sam Steingold
ca2ddd8ed5 (lisp-mode-shared-map): Bind backspace' to backward-delete-char-untabify'. 2001-01-12 18:07:31 +00:00
Dave Love
01b9100905 (lisp-mode): Set
font-lock-keywords-case-fold-search.
2000-12-08 12:14:26 +00:00
Stefan Monnier
1594a23a93 (lisp-mode-variables):
Set font-lock-defaults.
(lisp-mode-shared-map): Init inside the defvar.
(emacs-lisp-mode, lisp-mode, lisp-interaction-mode):
Use define-derived-mode.
2000-11-14 09:52:24 +00:00
Dave Love
b0d9985339 (lisp-imenu-generic-expression): Match
defun*.
2000-11-06 12:28:33 +00:00
Dave Love
99ec65b3b5 (lisp-imenu-generic-expression): Don't
insist on symbols starting with word syntax.
(lisp-mode-shared-map): Renamed from shared-lisp-mode-map.
(eval-defun-1): Doc fix.
(indent-sexp): Use nconc to build up indent-stack.
2000-10-08 17:23:50 +00:00
Gerd Moellmann
07ca56eb35 (eval-last-sexp-1): Handle `#N=' labels. 2000-08-08 12:16:11 +00:00
Gerd Moellmann
105d6be118 (eval-defun-2): Remove parameter
EVAL-DEFUN-ARG-INTERNAL; always print to minibuffer.
(eval-defun): If called with prefix arg, instrument code for
Edebug.
2000-07-05 15:16:15 +00:00
Stefan Monnier
3f0c3d8b96 (lisp-mode-variables): Set comment-add. 2000-05-19 21:36:14 +00:00
Dave Love
5e871da0a6 (lisp-eval-defun): Make arglist compatible with inf-lisp version.
(eval-defun-1): Fix custom-declare-variable case.
2000-03-26 16:36:17 +00:00
Dave Love
e5f597f0bf (lisp-mode-syntax-table): Fix syntax of |. 2000-03-01 21:02:37 +00:00
Kenichi Handa
1d3529b69f Don't change syntax of multibyte
characters.
(lisp-mode-variables): Set multibyte-syntax-as-symbol to t
locally.
2000-02-23 00:11:44 +00:00
Dave Love
535eadacb1 (emacs-lisp-mode-syntax-table)
(lisp-mode-map, lisp-interaction-mode-map): Define all inside
defvar.
(lisp-mode-syntax-table): Set up for #|...|# comments.
(lisp-imenu-generic-expression): Purecopy strings.  Use syntax
classes.  Match `defface'.
(emacs-lisp-mode-hook): Add checkdoc-minor-mode to options.
(eval-defun-1): Fix for defcustom.
(lisp-indent-region): Doc fix.
2000-02-22 20:13:31 +00:00
Dave Love
05c7103660 Add indent specs for dolist, dotimes, when, unless. 2000-01-28 22:14:30 +00:00
Gerd Moellmann
99c6d63bb2 (eval-last-sexp-1): Renamed from
eval-last-sexp.  Don't bind debug-on-error here.
(eval-last-sexp): New function.  Bind debug-on-error if
eval-expression-debug-on-error is non-nil.
(eval-defun-2, eval-defun): Likewise.
2000-01-12 13:14:48 +00:00
Richard M. Stallman
83c8f4616a (with-syntax-table): Moved to subr.el. 2000-01-12 03:08:29 +00:00
Gerd Moellmann
a8050bff07 (lisp-mode-variables): Change
outline-regexp, add outline-level.
(lisp-outline-level): New.
1999-12-02 10:20:22 +00:00
Gerd Moellmann
2e0a943f5b (eval-last-sexp): Use prin1 instead of print. 1999-09-14 20:12:00 +00:00
Richard M. Stallman
efb195f0ca (eval-defun, eval-last-sexp):
Bind print-level, print-length and debug-on-error.
1999-09-14 07:00:36 +00:00
Richard M. Stallman
19b014e465 (eval-last-sexp): If after ?\LETTER, use all of that as the sexp. 1999-09-12 02:17:20 +00:00
Dave Love
e596094db5 (lisp-imenu-generic-expression): Recognize define-widget.
(emacs-lisp-mode-hook, lisp-mode-hook, lisp-interaction-mode-hook):
Customize.
1999-09-10 18:08:06 +00:00
Richard M. Stallman
151a410a5c (eval-defun): Expand macros,
and specially handle defvar inside their expansions.
(eval-defun-1): New subroutine.
1999-08-29 19:53:27 +00:00
Dave Love
700c3b7c33 Fix previous change. 1999-07-30 00:50:59 +00:00
Dave Love
713c3fb16e (eval-defun): Re-written to avoid
capturing variables.
1999-07-29 22:04:13 +00:00
Karl Heuer
ebc03d28d7 (eval-defun): Doc fix. 1999-06-27 21:45:34 +00:00
Richard M. Stallman
bacd83a703 (lisp-interaction-mode-map): Doc fix.
(with-temp-message): Add lisp-indent-function property.
1998-11-19 18:45:47 +00:00
Kenichi Handa
bbbc0af028 Set syntaxes all non-word multibyte
characters to symbol.
1998-11-16 06:26:27 +00:00
Karl Heuer
2298f9f7d8 (eval-defun): Return the evaluation result. 1998-10-06 23:33:04 +00:00
Karl Heuer
00a90f4253 (lisp-imenu-generic-expression):
Recognize define-skeleton as a function definer.
1998-09-04 20:49:12 +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
Richard M. Stallman
2d75b39535 (eval-defun): Pass proper beg to eval-region. 1998-05-25 22:40:45 +00:00
Karl Heuer
7dbce55e8f (eval-defun): Arrange to use eval-region
even if we have to alter the form.
1998-04-13 06:55:34 +00:00
Dave Love
fe3188ecbd (lisp-fill-paragraph): Adjust
paragraph-start in default filling case so that filling doc
strings works.
1998-03-18 16:02:37 +00:00
Richard M. Stallman
b8bc6df2ee (lisp-interaction-mode-map)
(emacs-lisp-mode-map, lisp-mode-map): Use set-keymap-parent.
1998-03-08 23:40:28 +00:00