GNU bug report logs - #7709
[PATCH] emacs-lisp/eldoc.el (turn-off-eldoc-mode): New function

Previous Next

Package: emacs;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Wed, 22 Dec 2010 13:37:01 UTC

Severity: normal

Tags: patch

Found in version 23.2+1-5.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7709 in the body.
You can then email your comments to 7709 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7709; Package emacs. (Wed, 22 Dec 2010 13:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jari Aalto <jari.aalto <at> cante.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 22 Dec 2010 13:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jari Aalto <jari.aalto <at> cante.net>
To: submit <at> debbugs.gnu.org
Subject: [PATCH] emacs-lisp/eldoc.el (turn-off-eldoc-mode): New function
Date: Wed, 22 Dec 2010 15:42:57 +0200
[Message part 1 (text/plain, inline)]
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 <at> 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 

[0001-eldoc.el-turn-off-eldoc-mode-New-function.patch (text/x-diff, inline)]
From 02fc915eb33a9fa52a9eac06b2f4bc2b2e9866cc Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto <at> 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 <at> 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))
+
 
 (defun eldoc-schedule-timer ()
   (or (and eldoc-timer
-- 
1.7.2.3


Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7709; Package emacs. (Thu, 23 Dec 2010 14:56:01 GMT) Full text and rfc822 format available.

Message #8 received at 7709 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jari Aalto <jari.aalto <at> cante.net>
Cc: 7709 <at> debbugs.gnu.org
Subject: Re: bug#7709: [PATCH] emacs-lisp/eldoc.el (turn-off-eldoc-mode): New
	function
Date: Thu, 23 Dec 2010 10:02:07 -0500
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




bug closed, send any further explanations to Jari Aalto <jari.aalto <at> cante.net> Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Thu, 23 Dec 2010 14:56:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 21 Jan 2011 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.