diff options
author | Noah Friedman <friedman@splode.com> | 1996-07-14 16:46:25 +0000 |
---|---|---|
committer | Noah Friedman <friedman@splode.com> | 1996-07-14 16:46:25 +0000 |
commit | 2422e3751bb98910928799d376442d73ecfbc5b7 (patch) | |
tree | 2f4073954bd45f265ec4a1b4fb8c3d1f8130ed60 | |
parent | 369fa29e6be3bef944ab5540d15d76e43f3d886b (diff) | |
download | emacs-2422e3751bb98910928799d376442d73ecfbc5b7.tar.gz |
(eldoc-mode): Toggle eldoc-mode if no prefix given.
-rw-r--r-- | lisp/emacs-lisp/eldoc.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 26f6ce751ff..5c4683d4138 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -11,9 +11,9 @@ ;; LCD Archive Entry: ;; eldoc|Noah Friedman|friedman@prep.ai.mit.edu| ;; show function arglist or variable docstring in echo area| -;; $Date: 1995/11/21 15:21:34 $|$Revision: 1.4 $|~/misc/eldoc.el.gz| +;; $Date: 1995/11/25 03:45:25 $|$Revision: 1.5 $|~/misc/eldoc.el.gz| -;; $Id: eldoc.el,v 1.4 1995/11/21 15:21:34 friedman Exp friedman $ +;; $Id: eldoc.el,v 1.5 1995/11/25 03:45:25 friedman Exp friedman $ ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -147,8 +147,10 @@ It is probably best to manipulate this data structure with the commands 'post-command-hook) 'eldoc-mode-print-current-symbol-info) - (setq eldoc-mode - (>= (prefix-numeric-value prefix) 0)) + (setq eldoc-mode (if prefix + (>= (prefix-numeric-value prefix) 0) + (not eldoc-mode))) + (and (interactive-p) (if eldoc-mode (message "eldoc-mode is enabled") |