GNU bug report logs - #10683
23.4; Reverse video doesn't work for -nw

Previous Next

Package: emacs;

Reported by: lmi <at> ift.uni.wroc.pl

Date: Tue, 31 Jan 2012 17:28:02 UTC

Severity: normal

Tags: notabug

Found in version 23.4

Done: Glenn Morris <rgm <at> gnu.org>

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 10683 in the body.
You can then email your comments to 10683 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 bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Tue, 31 Jan 2012 17:28:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to lmi <at> ift.uni.wroc.pl:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 31 Jan 2012 17:28:03 GMT) Full text and rfc822 format available.

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

From: lmi <at> ift.uni.wroc.pl
To: bug-gnu-emacs <at> gnu.org
Subject: 23.4; Reverse video doesn't work for -nw
Date: Tue, 31 Jan 2012 16:51:10 +0100
I just upgraded to 23.4 and suddently background is white and text is
black.  On IRC I've been told to set-background-color to whatever I
like, which is awesome (after you realise that you stop seeing anything,
because letters are black now too, and you don't know where the cursor
is, because it's black as well).  However, I'm not using X, only -nw, which used
to support transparent background just like that, now it seems it is
doesn't anymoar, because apparently one cannot unset background colour.

In GNU Emacs 23.4.1 (x86_64-pc-linux-gnu)
 of 2012-01-31 on havoc
configured using `configure  '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--docdir=/usr/share/doc/emacs-23.4' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--enable-fast-install' '--libdir=/usr/lib64' '--infodir=/usr/share/info/emacs' '--without-kerberos' '--without-kerberos5' '--without-hesiod' '--without-m17n-flt' '--without-xim' '--without-x' '--with-sound' '--without-xft' '--without-x-toolkit' '--without-toolkit-scroll-bars' '--without-libotf' '--without-rsvg' '--with-dbus' '--without-gconf' '--without-gif' '--with-gpm' '--without-jpeg' '--without-png' '--without-tiff' '--without-xpm' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-march=native -pipe -O2' 'CPP=cpp''

Important settings:
  value of $LC_ALL: en_US.utf8
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  desktop-save-mode: t
  diff-auto-refine-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
ESC x r e b DEL p o TAB r TAB RET

Recent messages:
("emacs" "-r")
Loading start-po...done
Loading desktop...done
No desktop file.
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
kill-region: The mark is not set now, so there is no region [2 times]
call-interactively: Text is read-only

Load-path shadows:
~/.emacs.d/git-blame hides /usr/share/emacs/site-lisp/git/git-blame
~/.emacs.d/git hides /usr/share/emacs/site-lisp/git/git
~/.emacs.d/css-mode hides /usr/share/emacs/23.4/lisp/textmodes/css-mode

Features:
(shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1
hex-util hashcash mail-utils emacsbug help-mode paren uniquify advice
help-fns advice-preload desktop cus-start cus-load edmacro kmacro
ruby-mode php-mode derived etags speedbar sb-image ezimage image dframe
assoc cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs regexp-opt site-exherbo mq mercurial view vc
vc-dispatcher diff-mode git log-edit easymenu easy-mmode ring pcvs-util
add-log ewoc eclectic-mode exheres-mode exheres-mode-keywords skeleton
sh-script executable cmake-mode thingatpt ediff-hook vc-hooks
lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer
select mldrag mouse jit-lock font-lock syntax facemenu font-core frame
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
multi-tty emacs)

-- 
Pozdrawiam,
Łukasz P. Michalik




Forcibly Merged 4238 5421 8152 10683. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 31 Jan 2012 17:32:02 GMT) Full text and rfc822 format available.

Disconnected #10683 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 31 Jan 2012 17:34:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 31 Jan 2012 17:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Tue, 31 Jan 2012 18:59:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: lmi <at> ift.uni.wroc.pl
Cc: 10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Tue, 31 Jan 2012 13:58:37 -0500
Your subject made me think you were talking about --reverse-video -nw,
which is http://debbugs.gnu.org/4238, but I guess you aren't.

lmi <at> ift.uni.wroc.pl wrote:

> I just upgraded to 23.4 and suddently background is white and text is
> black.  On IRC I've been told to set-background-color to whatever I
> like, which is awesome (after you realise that you stop seeing anything,
> because letters are black now too, and you don't know where the cursor
> is, because it's black as well). 

So set the foreground colour too, or use eg

emacs -nw -fg white -bg black

> However, I'm not using X, only -nw, which used to support transparent
> background just like that, now it seems it is doesn't anymoar, because
> apparently one cannot unset background colour.

Oh I see. You are using emacs -nw inside a transparent terminal
emulator, and Emacs detected the background mode as dark when it should
have been light (or vice versa), and manually specifying colours loses
the transparency effect.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Tue, 31 Jan 2012 20:55:02 GMT) Full text and rfc822 format available.

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

From: Łukasz Michalik <lmi <at> ift.uni.wroc.pl>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Tue, 31 Jan 2012 21:53:43 +0100
[Message part 1 (text/plain, inline)]
> Your subject made me think you were talking about --reverse-video -nw,
> which is http://debbugs.gnu.org/4238, but I guess you aren't.
You are correct, apologies.

> Oh I see. You are using emacs -nw inside a transparent terminal
> emulator, 
That is as well correct.

> and Emacs detected the background mode as dark when it should
> have been light (or vice versa)
I don't really understand that, but whatever you say.  I used to get
transparent background with white fg, now it's reversed.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Tue, 31 Jan 2012 22:25:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Łukasz Michalik <lmi <at> ift.uni.wroc.pl>
Cc: 10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Tue, 31 Jan 2012 17:23:40 -0500
Łukasz Michalik wrote:

>> and Emacs detected the background mode as dark when it should
>> have been light (or vice versa)
> I don't really understand that, but whatever you say.  I used to get
> transparent background with white fg, now it's reversed.

Could you say what terminal emulator you are using and what the value of
$TERM is?

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2501

suggests setting COLORFGBG, but I don't know what that does.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Tue, 31 Jan 2012 22:41:01 GMT) Full text and rfc822 format available.

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

From: Dan Nicolaescu <dann <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Łukasz Michalik <lmi <at> ift.uni.wroc.pl>,
	10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Tue, 31 Jan 2012 17:39:43 -0500
Glenn Morris <rgm <at> gnu.org> writes:

> Łukasz Michalik wrote:
>
>>> and Emacs detected the background mode as dark when it should
>>> have been light (or vice versa)
>> I don't really understand that, but whatever you say.  I used to get
>> transparent background with white fg, now it's reversed.
>
> Could you say what terminal emulator you are using and what the value of
> $TERM is?
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2501
>
> suggests setting COLORFGBG, but I don't know what that does.

In rxvt COLORFGBG can be used to determine the fg and bg color used by
the terminal.  Emacs can use that to set the `background-mode', and
all the faces are defined based on `background-mode'.

It might be interesting to evaluate this:

M-: (frame-parameter (selected-frame) 'background-mode)) RET

in the old and new emacs and see if that changed.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Wed, 01 Feb 2012 11:35:01 GMT) Full text and rfc822 format available.

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

From: Łukasz Michalik <lmi <at> ift.uni.wroc.pl>
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Wed, 1 Feb 2012 12:33:40 +0100
[Message part 1 (text/plain, inline)]
On 17:39 2012-01-31 -0500, Dan Nicolaescu wrote:
> Could you say what terminal emulator you are using and what the value of
> $TERM is?

TERM is rxvt-unicode-256color

> In rxvt COLORFGBG can be used to determine the fg and bg color used by
> the terminal.  Emacs can use that to set the `background-mode', and
> all the faces are defined based on `background-mode'.

COLORFGBG is 15;0

> It might be interesting to evaluate this:
> 
> M-: (frame-parameter (selected-frame) 'background-mode)) RET

It prints 'dark' for both.

Another note: frames started for emacsclient aren't affected by this.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Thu, 02 Feb 2012 05:00:02 GMT) Full text and rfc822 format available.

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

From: Dan Nicolaescu <dann <at> gnu.org>
To: Łukasz Michalik <lmi <at> ift.uni.wroc.pl>
Cc: Glenn Morris <rgm <at> gnu.org>, 10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Wed, 01 Feb 2012 23:58:41 -0500
Łukasz Michalik <lmi <at> ift.uni.wroc.pl> writes:

> On 17:39 2012-01-31 -0500, Dan Nicolaescu wrote:
>> Could you say what terminal emulator you are using and what the value of
>> $TERM is?
>
> TERM is rxvt-unicode-256color
>
>> In rxvt COLORFGBG can be used to determine the fg and bg color used by
>> the terminal.  Emacs can use that to set the `background-mode', and
>> all the faces are defined based on `background-mode'.
>
> COLORFGBG is 15;0
>
>> It might be interesting to evaluate this:
>> 
>> M-: (frame-parameter (selected-frame) 'background-mode)) RET
>
> It prints 'dark' for both.
>
> Another note: frames started for emacsclient aren't affected by this.

Do you see the problem if you start emacs with:

emacs -Q -nw
?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Thu, 02 Feb 2012 12:34:01 GMT) Full text and rfc822 format available.

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

From: Łukasz Michalik <lmi <at> ift.uni.wroc.pl>
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Thu, 2 Feb 2012 13:32:41 +0100
[Message part 1 (text/plain, inline)]
On 23:58 2012-02-01 -0500, Dan Nicolaescu wrote:
> Do you see the problem if you start emacs with:
> 
> emacs -Q -nw
> ?

Yes.  (It might be piece of valuable information that I'm not
literally starting emacs with -nw as it's compiled without X support
at all.)
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10683; Package emacs. (Thu, 02 Feb 2012 14:35:01 GMT) Full text and rfc822 format available.

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

From: Łukasz Michalik <lmi <at> ift.uni.wroc.pl>
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 10683 <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Thu, 2 Feb 2012 15:34:13 +0100
[Message part 1 (text/plain, inline)]
OK, I feel really stupid now.  I've spent last hour figuring out how
emacs figures out how to use colours.  I used different terminals,
played with TERM and COLORFGBG and Xdefaults.  I even created a new
user just to test with clean environment.  And, it comes to be that
years ago (possibly trying to mitigate different problem) I've set
alias emacs="emacs -r" in my bashrc and it just started working with
23.4.  I apologize for wasting your time and thanks for all the help.
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 02 Feb 2012 17:16:02 GMT) Full text and rfc822 format available.

Notification sent to lmi <at> ift.uni.wroc.pl:
bug acknowledged by developer. (Thu, 02 Feb 2012 17:16:02 GMT) Full text and rfc822 format available.

Message #40 received at 10683-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 10683-done <at> debbugs.gnu.org
Subject: Re: bug#10683: 23.4; Reverse video doesn't work for -nw
Date: Thu, 02 Feb 2012 12:15:20 -0500
Łukasz Michalik wrote:

> alias emacs="emacs -r" in my bashrc and it just started working with
> 23.4.

:)




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

This bug report was last modified 13 years and 163 days ago.

Previous Next


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