From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Toggling the reverse frame parameter Date: Sat, 26 Mar 2011 10:51:58 +0200 Message-ID: <83y642s1qp.fsf@gnu.org> References: <83zkois2lx.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1301129631 3938 80.91.229.12 (26 Mar 2011 08:53:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2011 08:53:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 26 09:53:47 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3PFh-0005Es-N1 for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Mar 2011 09:53:46 +0100 Original-Received: from localhost ([127.0.0.1]:36500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3PFg-0000k1-SF for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Mar 2011 04:53:44 -0400 Original-Received: from [140.186.70.92] (port=54648 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3PFA-0000j2-Hb for help-gnu-emacs@gnu.org; Sat, 26 Mar 2011 04:53:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3PF9-0006U6-AE for help-gnu-emacs@gnu.org; Sat, 26 Mar 2011 04:53:12 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:54311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3PF9-0006Te-3u for help-gnu-emacs@gnu.org; Sat, 26 Mar 2011 04:53:11 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LIN00800PX3EK00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Sat, 26 Mar 2011 10:51:56 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.47.180]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LIN008LBPYG8V20@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Sat, 26 Mar 2011 10:51:54 +0200 (IST) In-reply-to: <83zkois2lx.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80440 Archived-At: > Date: Sat, 26 Mar 2011 10:33:14 +0200 > From: Eli Zaretskii > > > From: Ben Key > > Date: Sat, 19 Mar 2011 15:09:55 -0400 > > > > I like the reverse video mode of Emacs sometimes, but not always. I would > > like to have a way of toggling this property without having to restart Emacs > > (right now the only way of setting this property is to start Emacs with or > > without the -rv command line argument). I have tried M-: > > (set-frame-parameter (selected-frame) 'reverse t) to turn it on and > > (set-frame-parameter > > (selected-frame) 'reverse nil) and M-: (set-frame-parameter (selected-frame) > > 'reverse nil) to turn it off, but this does not work. > > > > Does anyone have any suggestions or is the reverse video effect something > > that can only be specified at start up? > > It can only be specified at startup. I don't think it was ever > possible to do this from inside a running Emacs session. That's why > you won't find the 'reverse frame parameter documented, neither in the > Emacs User Manual nor in the ELisp Manual. > > (Note that currently, i.e. in Emacs 23, even the -rv command-line > argument is broken. I guess not many people actually use it.) While the above is mostly true, there _is_ a way of toggling the reverse video mode from a running Emacs session: M-: (x-handle-reverse-video (selected-frame) '((reverse . t))) RET in GUI sessions and M-: (tty-handle-reverse-video (selected-frame) '((reverse . t))) RET on a TTY. Please note that (a) these are internal functions that can change their interfaces or even disappear from Emacs without prior notice, and (b) they might not always work (in particular, the tty variety is currently broken on many builds, the only exception known to me being the MS-DOS build). The official way of setting the reverse video is only when a frame is created, e.g. M-: (make-frame '((reverse . t))) RET