all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7709: [PATCH] emacs-lisp/eldoc.el (turn-off-eldoc-mode): New function
@ 2010-12-22 13:42 Jari Aalto
  2010-12-23 15:02 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Jari Aalto @ 2010-12-22 13:42 UTC (permalink / raw)
  To: 7709

[-- Attachment #1: Type: text/plain, Size: 853 bytes --]

Package: emacs
Version: 23.2+1-5.1
Severity: normal

There is interactive function M-x turn-on-eldoc-mode; this patch
complements it with respective user callable "off" function.

2010-12-22  Jari Aalto  <jari.aalto@cante.net>

       * emacs-lisp/eldoc.el (turn-on-eldoc-mode): New function.

-- System Information
Debian Release: squeeze/sid
  APT Prefers testing
  APT policy: (990, testing) (500, unstable) (1, experimental)
Architecture: amd64
Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux
Locale: LANG=en_DK.UTF-8

-- Versions of packages `emacs depends on'.
Depends:
emacs23         23.2+1-5.1      GNU Emacs is the extensible self-documenting 
emacs23-lucid   23.2+1-5.1      GNU Emacs is the extensible self-documenting 
emacs23-nox     23.2+1-5.1      GNU Emacs is the extensible self-documenting 


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-eldoc.el-turn-off-eldoc-mode-New-function.patch --]
[-- Type: text/x-diff, Size: 950 bytes --]

From 02fc915eb33a9fa52a9eac06b2f4bc2b2e9866cc Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Wed, 22 Dec 2010 15:37:37 +0200
Subject: [PATCH] eldoc.el: (turn-off-eldoc-mode): New function
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit


Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 lisp/emacs-lisp/eldoc.el |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index b484549..0d8d6b4 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -173,6 +173,12 @@ With prefix ARG, turn ElDoc mode on if and only if ARG is positive."
   (interactive)
   (eldoc-mode 1))
 
+;;;###autoload
+(defun turn-off-eldoc-mode ()
+  "Turn off ElDoc mode (see command `eldoc-mode')."
+  (interactive)
+  (eldoc-mode -1))
+
 \f
 (defun eldoc-schedule-timer ()
   (or (and eldoc-timer
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#7709: [PATCH] emacs-lisp/eldoc.el (turn-off-eldoc-mode): New function
  2010-12-22 13:42 bug#7709: [PATCH] emacs-lisp/eldoc.el (turn-off-eldoc-mode): New function Jari Aalto
@ 2010-12-23 15:02 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2010-12-23 15:02 UTC (permalink / raw)
  To: Jari Aalto; +Cc: 7709

close 7709
thanks

> There is interactive function M-x turn-on-eldoc-mode; this patch
> complements it with respective user callable "off" function.

There is no need for it (and neither is there a need for
turn-on-eldoc-mode).  There is M-x eldoc-mode.


        Stefan





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-23 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 13:42 bug#7709: [PATCH] emacs-lisp/eldoc.el (turn-off-eldoc-mode): New function Jari Aalto
2010-12-23 15:02 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.