unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10683: 23.4; Reverse video doesn't work for -nw
@ 2012-01-31 15:51 lmi
  2012-01-31 18:58 ` Glenn Morris
  0 siblings, 1 reply; 10+ messages in thread
From: lmi @ 2012-01-31 15:51 UTC (permalink / raw)
  To: 10683

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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-01-31 15:51 bug#10683: 23.4; Reverse video doesn't work for -nw lmi
@ 2012-01-31 18:58 ` Glenn Morris
  2012-01-31 20:53   ` Łukasz Michalik
  0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2012-01-31 18:58 UTC (permalink / raw)
  To: lmi; +Cc: 10683


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@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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-01-31 18:58 ` Glenn Morris
@ 2012-01-31 20:53   ` Łukasz Michalik
  2012-01-31 22:23     ` Glenn Morris
  0 siblings, 1 reply; 10+ messages in thread
From: Łukasz Michalik @ 2012-01-31 20:53 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 10683

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

> 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.

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-01-31 20:53   ` Łukasz Michalik
@ 2012-01-31 22:23     ` Glenn Morris
  2012-01-31 22:39       ` Dan Nicolaescu
  0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2012-01-31 22:23 UTC (permalink / raw)
  To: Łukasz Michalik; +Cc: 10683

Ł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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-01-31 22:23     ` Glenn Morris
@ 2012-01-31 22:39       ` Dan Nicolaescu
  2012-02-01 11:33         ` Łukasz Michalik
  0 siblings, 1 reply; 10+ messages in thread
From: Dan Nicolaescu @ 2012-01-31 22:39 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Łukasz Michalik, 10683

Glenn Morris <rgm@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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-01-31 22:39       ` Dan Nicolaescu
@ 2012-02-01 11:33         ` Łukasz Michalik
  2012-02-02  4:58           ` Dan Nicolaescu
  0 siblings, 1 reply; 10+ messages in thread
From: Łukasz Michalik @ 2012-02-01 11:33 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 10683

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

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.

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-02-01 11:33         ` Łukasz Michalik
@ 2012-02-02  4:58           ` Dan Nicolaescu
  2012-02-02 12:32             ` Łukasz Michalik
  2012-02-02 14:34             ` Łukasz Michalik
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Nicolaescu @ 2012-02-02  4:58 UTC (permalink / raw)
  To: Łukasz Michalik; +Cc: 10683

Łukasz Michalik <lmi@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
?





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-02-02  4:58           ` Dan Nicolaescu
@ 2012-02-02 12:32             ` Łukasz Michalik
  2012-02-02 14:34             ` Łukasz Michalik
  1 sibling, 0 replies; 10+ messages in thread
From: Łukasz Michalik @ 2012-02-02 12:32 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 10683

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

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.)

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-02-02  4:58           ` Dan Nicolaescu
  2012-02-02 12:32             ` Łukasz Michalik
@ 2012-02-02 14:34             ` Łukasz Michalik
  2012-02-02 17:15               ` Glenn Morris
  1 sibling, 1 reply; 10+ messages in thread
From: Łukasz Michalik @ 2012-02-02 14:34 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 10683

[-- Attachment #1: Type: text/plain, Size: 478 bytes --]

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.

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#10683: 23.4; Reverse video doesn't work for -nw
  2012-02-02 14:34             ` Łukasz Michalik
@ 2012-02-02 17:15               ` Glenn Morris
  0 siblings, 0 replies; 10+ messages in thread
From: Glenn Morris @ 2012-02-02 17:15 UTC (permalink / raw)
  To: 10683-done

Łukasz Michalik wrote:

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

:)





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-02-02 17:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 15:51 bug#10683: 23.4; Reverse video doesn't work for -nw lmi
2012-01-31 18:58 ` Glenn Morris
2012-01-31 20:53   ` Łukasz Michalik
2012-01-31 22:23     ` Glenn Morris
2012-01-31 22:39       ` Dan Nicolaescu
2012-02-01 11:33         ` Łukasz Michalik
2012-02-02  4:58           ` Dan Nicolaescu
2012-02-02 12:32             ` Łukasz Michalik
2012-02-02 14:34             ` Łukasz Michalik
2012-02-02 17:15               ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).