From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Thien-Thi Nguyen <ttn@gnu.org>
Newsgroups: gmane.emacs.help
Subject: Re: Emacs as a distraction free environment
Date: Thu, 23 Jan 2014 09:54:13 +0100
Message-ID: <87vbxbdqoa.fsf@zigzag.favinet>
References: <87fvofp3h2.fsf@bzg.ath.cx>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-Trace: ger.gmane.org 1390467054 1931 80.91.229.3 (23 Jan 2014 08:50:54 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 23 Jan 2014 08:50:54 +0000 (UTC)
Cc: help-gnu-emacs@gnu.org
To: Bastien <bzg@altern.org>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 23 09:51:01 2014
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1W6G04-0002zx-Lz
	for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 09:51:00 +0100
Original-Received: from localhost ([::1]:39560 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1W6G04-0003CX-9R
	for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 03:51:00 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49125)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ttn@gnu.org>)
	id 1W6Fzn-0003C9-Rd
	for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 03:50:49 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ttn@gnu.org>) id 1W6Fzd-0006GL-6o
	for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 03:50:43 -0500
Original-Received: from smtp208.alice.it ([82.57.200.104]:1746)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ttn@gnu.org>)
	id 1W6Fzc-0006GC-Rw
	for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 03:50:33 -0500
Original-Received: from zigzag.favinet (87.0.69.83) by smtp208.alice.it (8.6.060.28)
	id 52443B821922A954; Thu, 23 Jan 2014 09:50:31 +0100
Original-Received: from ttn by zigzag.favinet with local (Exim 4.80)
	(envelope-from <ttn@gnu.org>)
	id 1W6G3N-0005mL-AJ; Thu, 23 Jan 2014 09:54:25 +0100
In-Reply-To: <87fvofp3h2.fsf@bzg.ath.cx> (Bastien's message of "Thu, 23 Jan
	2014 08:22:17 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 82.57.200.104
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:95557
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/95557>

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

() Bastien <bzg@altern.org>
() Thu, 23 Jan 2014 08:22:17 +0100

   http://bzg.fr/emacs-strip-tease.html

You can use =E2=80=98rotatef=E2=80=99 to swap the values of two variables.

(defvar stashed-mode-line-format nil
  "Storage for `toggle-mode-line'.")

(defun toggle-mode-line ()
  "Toggle visibility of mode line."
  (interactive)
  (rotatef mode-line-format
           stashed-mode-line-format))
=20=20
I don't know if this works w/ =E2=80=98defvar-local=E2=80=99 vars, however.

=2D-=20
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     =3D> nil

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlLg2LkACgkQZwMiJEyAdQJUEwCgxUiQB+Wboh7gZMfueYWYvus5
N/cAn0e/oEEcoeWBNIlCBf3hQ1apR48d
=gy6q
-----END PGP SIGNATURE-----
--=-=-=--