erc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Erc-commit] [commit][emacs22] Make disabling header-line easier


From: mwolson
Subject: [Erc-commit] [commit][emacs22] Make disabling header-line easier
Date: Sun, 14 Oct 2007 00:48:43 -0400

commit 3317db7e910610cdca33779a99e2325660cad3c3
Author: Michael Olson <address@hidden>
Date:   Sun Jan 21 19:17:46 2007 +0000

    Make disabling header-line easier
    
    2007-01-21  Michael Olson  <address@hidden>
    
        * erc.el (erc-header-line-format): Document how to disable the
        header line, and add a customization type for it.  Also, make the
        changes take effect immediately.
    git-archimport-id: address@hidden/erc--main--0--patch-95

diff --git a/ChangeLog b/ChangeLog
index 2e0a22d..25b8e58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-21  Michael Olson  <address@hidden>
+
+       * erc.el (erc-header-line-format): Document how to disable the
+       header line, and add a customization type for it.  Also, make the
+       changes take effect immediately.
+
 2007-01-19  Michael Olson  <address@hidden>
 
        * erc.texi (Modules): Document new menu module.  Thanks to Leo
diff --git a/erc.el b/erc.el
index bdbb9ff..9ff164d 100644
--- a/erc.el
+++ b/erc.el
@@ -5715,9 +5715,16 @@ The following characters are replaced:
   "A string to be formatted and shown in the header-line in `erc-mode'.
 Only used starting in Emacs 21.
 
+Set this to nil if you do not want the header line to be
+displayed.
+
 See `erc-mode-line-format' for which characters are can be used."
   :group 'erc-mode-line-and-header
-  :type 'string)
+  :set #'(lambda (sym val)
+          (set sym val)
+          (erc-update-mode-line nil))
+  :type '(choice (const :tag "Disabled" nil)
+                string))
 
 (defcustom erc-header-line-uses-help-echo-p t
   "Show the contents of the header line in the echo area or as a tooltip




reply via email to

[Prev in Thread] Current Thread [Next in Thread]