I experience this or a similar problem with emacs-26 on Ubuntu 20.04
(the standard Gnome DE).

Somehow having the "region" face set to having gtk_selection_bg_color
makes the selected region not noticeable (or hardly noticeable?..). I
have delete-selection-mode enabled.

After changing it, it is OK; to yellow in my case:

(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(region ((t (:background "yellow" :distant-foreground 
"gtk_selection_fg_color")))))

I wonder why the selection in Firefox is noticeable and has the standard
orange-brown color whereas Emacs doesn't get it.

ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.20
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Oct  6 20:08:01 2021
Dependencies:
 adduser 3.118ubuntu2
 adwaita-icon-theme 3.36.1-2ubuntu0.20.04.2
 alsa-topology-conf 1.2.2-1
 alsa-ucm-conf 1.2.2-1ubuntu0.10
 apt 2.0.6
 apt-utils 2.0.6
 at-spi2-core 2.36.0-2
 ca-certificates 20210119~20.04.2
 coreutils 8.30-3ubuntu2
 dbus 1.12.16-2ubuntu2.1
 dconf-gsettings-backend 0.36.0-1
 dconf-service 0.36.0-1
 debconf 1.5.73
 debconf-i18n 1.5.73
 dpkg 1.19.7ubuntu3
 emacs-bin-common 1:26.3+1-1ubuntu2
 emacs-common 1:26.3+1-1ubuntu2
 emacs-el 1:26.3+1-1ubuntu2
 emacs-gtk 1:26.3+1-1ubuntu2
 emacsen-common 3.0.4
 fontconfig 2.13.1-2ubuntu3
 fontconfig-config 2.13.1-2ubuntu3
 fonts-dejavu-core 2.37-1
 fonts-droid-fallback 1:6.0.1r16-1.1
 fonts-noto-mono 20200323-1build1~ubuntu20.04.1
 fonts-urw-base35 20170801.1-3
 gcc-10-base 10.3.0-1ubuntu1~20.04
 ghostscript 9.50~dfsg-5ubuntu4.3
 glib-networking 2.64.2-1ubuntu0.1
 glib-networking-common 2.64.2-1ubuntu0.1
 glib-networking-services 2.64.2-1ubuntu0.1
 gpgv 2.2.19-3ubuntu2.1
 gsettings-desktop-schemas 3.36.0-1ubuntu1
 gsfonts 1:8.11+urwcyr1.0.7~pre44-4.4
 gtk-update-icon-cache 3.24.20-0ubuntu1
 hicolor-icon-theme 0.17-2
 humanity-icon-theme 0.6.15
 imagemagick-6-common 8:6.9.10.23+dfsg-2.1ubuntu11.4
 install-info 6.7.0.dfsg.2-5
 krb5-locales 1.17-6ubuntu4.1
 libacl1 2.2.53-6
 libapparmor1 2.13.3-7ubuntu5.1
 libapt-pkg6.0 2.0.6
 libasound2 1.2.2-2.1ubuntu2.4
 libasound2-data 1.2.2-2.1ubuntu2.4
 libatk-bridge2.0-0 2.34.2-0ubuntu2~20.04.1
 libatk1.0-0 2.35.1-1ubuntu2
 libatk1.0-data 2.35.1-1ubuntu2
 libatspi2.0-0 2.36.0-2
 libattr1 1:2.4.48-5
 libaudit-common 1:2.8.5-2ubuntu6
 libaudit1 1:2.8.5-2ubuntu6
 libavahi-client3 0.7-4ubuntu7.1
 libavahi-common-data 0.7-4ubuntu7.1
 libavahi-common3 0.7-4ubuntu7.1
 libblkid1 2.34-0.1ubuntu9.1
 libbrotli1 1.0.7-6ubuntu0.1
 libbsd0 0.10.0-1
 libbz2-1.0 1.0.8-2
 libc6 2.31-0ubuntu9.2
 libcairo-gobject2 1.16.0-4ubuntu1
 libcairo2 1.16.0-4ubuntu1
 libcap-ng0 0.7.9-2.1build1
 libcolord2 1.4.4-2
 libcom-err2 1.45.5-2ubuntu1
 libcrypt1 1:4.4.10-10ubuntu4
 libcups2 2.3.1-9ubuntu1.1
 libdatrie1 0.2.12-3
 libdb5.3 5.3.28+dfsg1-0.6ubuntu2
 libdbus-1-3 1.12.16-2ubuntu2.1
 libdconf1 0.36.0-1
 libepoxy0 1.5.4-1
 libexpat1 2.2.9-1build1
 libffi7 3.3-4
 libfftw3-double3 3.3.8-2ubuntu1
 libfontconfig1 2.13.1-2ubuntu3
 libfreetype6 2.10.1-2ubuntu0.1
 libfribidi0 1.0.8-2
 libgcc-s1 10.3.0-1ubuntu1~20.04
 libgcrypt20 1.8.5-5ubuntu1.1
 libgd3 2.2.5-5.2ubuntu2.1
 libgdk-pixbuf2.0-0 2.40.0+dfsg-3ubuntu0.2
 libgdk-pixbuf2.0-bin 2.40.0+dfsg-3ubuntu0.2
 libgdk-pixbuf2.0-common 2.40.0+dfsg-3ubuntu0.2
 libgif7 5.1.9-1
 libglib2.0-0 2.64.6-1~ubuntu20.04.4
 libglib2.0-data 2.64.6-1~ubuntu20.04.4
 libgmp10 2:6.2.0+dfsg-4
 libgnutls30 3.6.13-2ubuntu1.6
 libgomp1 10.3.0-1ubuntu1~20.04
 libgpg-error0 1.37-1
 libgpm2 1.20.7-5
 libgraphite2-3 1.3.13-11build1
 libgs9 9.50~dfsg-5ubuntu4.3
 libgs9-common 9.50~dfsg-5ubuntu4.3
 libgssapi-krb5-2 1.17-6ubuntu4.1
 libgtk-3-0 3.24.20-0ubuntu1
 libgtk-3-bin 3.24.20-0ubuntu1
 libgtk-3-common 3.24.20-0ubuntu1
 libharfbuzz0b 2.6.4-1ubuntu4
 libhogweed5 3.5.1+really3.5.1-2ubuntu0.2
 libice6 2:1.0.10-0ubuntu1
 libicu66 66.1-2ubuntu2
 libidn11 1.33-2.2ubuntu2
 libidn2-0 2.2.0-2
 libijs-0.35 0.35-15
 libjbig0 2.1-3.1build1
 libjbig2dec0 0.18-1ubuntu1
 libjpeg-turbo8 2.0.3-0ubuntu1.20.04.1
 libjpeg8 8c-2ubuntu8
 libjson-glib-1.0-0 1.4.4-2ubuntu2
 libjson-glib-1.0-common 1.4.4-2ubuntu2
 libk5crypto3 1.17-6ubuntu4.1
 libkeyutils1 1.6-6ubuntu1
 libkrb5-3 1.17-6ubuntu4.1
 libkrb5support0 1.17-6ubuntu4.1
 liblcms2-2 2.9-4
 liblocale-gettext-perl 1.07-4
 liblqr-1-0 0.4.2-2.1
 libltdl7 2.4.6-14
 liblz4-1 1.9.2-2ubuntu0.20.04.1
 liblzma5 5.2.4-1ubuntu1
 libm17n-0 1.8.0-2
 libmagickcore-6.q16-6 8:6.9.10.23+dfsg-2.1ubuntu11.4
 libmagickwand-6.q16-6 8:6.9.10.23+dfsg-2.1ubuntu11.4
 libmount1 2.34-0.1ubuntu9.1
 libnettle7 3.5.1+really3.5.1-2ubuntu0.2
 libopenjp2-7 2.3.1-1ubuntu4.20.04.1
 libotf0 0.9.13-7
 libp11-kit0 0.23.20-1ubuntu0.1
 libpam-modules 1.3.1-5ubuntu4.2
 libpam-modules-bin 1.3.1-5ubuntu4.2
 libpam0g 1.3.1-5ubuntu4.2
 libpango-1.0-0 1.44.7-2ubuntu4
 libpangocairo-1.0-0 1.44.7-2ubuntu4
 libpangoft2-1.0-0 1.44.7-2ubuntu4
 libpaper-utils 1.1.28
 libpaper1 1.1.28
 libpcre2-8-0 10.34-7
 libpcre3 2:8.39-12build1
 libpixman-1-0 0.38.4-0ubuntu1
 libpng16-16 1.6.37-2
 libproxy1v5 0.4.15-10ubuntu1.2
 libpsl5 0.21.0-1ubuntu1
 librest-0.7-0 0.8.1-1
 librsvg2-2 2.48.9-1ubuntu0.20.04.1
 librsvg2-common 2.48.9-1ubuntu0.20.04.1
 libseccomp2 2.5.1-1ubuntu1~20.04.1
 libselinux1 3.0-1build2
 libsemanage-common 3.0-1build2
 libsemanage1 3.0-1build2
 libsepol1 3.0-1
 libsm6 2:1.2.3-1
 libsmartcols1 2.34-0.1ubuntu9.1
 libsoup-gnome2.4-1 2.70.0-1
 libsoup2.4-1 2.70.0-1
 libsqlite3-0 3.31.1-4ubuntu0.2
 libssl1.1 1.1.1f-1ubuntu2.8
 libstdc++6 10.3.0-1ubuntu1~20.04
 libsystemd0 245.4-4ubuntu3.13
 libtasn1-6 4.16.0-2
 libtext-charwidth-perl 0.04-10
 libtext-iconv-perl 1.7-7
 libtext-wrapi18n-perl 0.06-9
 libthai-data 0.1.28-3
 libthai0 0.1.28-3
 libtiff5 4.1.0+git191117-2ubuntu0.20.04.2
 libtinfo6 6.2-0ubuntu2
 libudev1 245.4-4ubuntu3.13
 libunistring2 0.9.10-2
 libuuid1 2.34-0.1ubuntu9.1
 libwayland-client0 1.18.0-1
 libwayland-cursor0 1.18.0-1
 libwayland-egl1 1.18.0-1
 libwebp6 0.6.1-2ubuntu0.20.04.1
 libwebpmux3 0.6.1-2ubuntu0.20.04.1
 libx11-6 2:1.6.9-2ubuntu1.2
 libx11-data 2:1.6.9-2ubuntu1.2
 libxau6 1:1.0.9-0ubuntu1
 libxcb-render0 1.14-2
 libxcb-shm0 1.14-2
 libxcb1 1.14-2
 libxcomposite1 1:0.4.5-1
 libxcursor1 1:1.2.0-2
 libxdamage1 1:1.1.5-2
 libxdmcp6 1:1.1.3-0ubuntu1
 libxext6 2:1.3.4-0ubuntu1
 libxfixes3 1:5.0.3-2
 libxft2 2.3.3-0ubuntu1
 libxi6 2:1.7.10-0ubuntu1
 libxinerama1 2:1.1.4-2
 libxkbcommon0 0.10.0-1
 libxml2 2.9.10+dfsg-5ubuntu0.20.04.1
 libxpm4 1:3.5.12-1
 libxrandr2 2:1.5.2-0ubuntu1
 libxrender1 1:0.9.10-1
 libxt6 1:1.1.5-1
 libxtst6 2:1.2.3-1
 libzstd1 1.4.4+dfsg-3ubuntu0.1
 lsb-base 11.1.0ubuntu2
 m17n-db 1.8.0-3
 openssl 1.1.1f-1ubuntu2.8
 passwd 1:4.8.1-1ubuntu5.20.04.1
 perl-base 5.30.0-9ubuntu0.2
 poppler-data 0.4.9-2
 publicsuffix 20200303.0012-1
 sensible-utils 0.0.12+nmu1
 shared-mime-info 1.15-1
 tar 1.30+dfsg-7ubuntu0.20.04.1
 tzdata 2021a-0ubuntu0.20.04
 ubuntu-keyring 2020.02.11.4
 ubuntu-mono 19.04-0ubuntu3
 ucf 3.0038+nmu1
 uuid-runtime 2.34-0.1ubuntu9.1
 x11-common 1:7.7+19ubuntu14
 xdg-user-dirs 0.17-2ubuntu1
 xkb-data 2.29-2
 zlib1g 1:1.2.11.dfsg-2ubuntu1.2
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-02-06 (608 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
Package: emacs 1:26.3+1-1ubuntu2
PackageArchitecture: all
ProcCpuinfoMinimal:
 processor      : 3
 vendor_id      : GenuineIntel
 cpu family     : 6
 model          : 42
 model name     : Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
 stepping       : 7
 microcode      : 0x2f
 cpu MHz                : 1298.794
 cache size     : 3072 KB
 physical id    : 0
 siblings       : 4
 core id                : 1
 cpu cores      : 2
 apicid         : 3
 initial apicid : 3
 fpu            : yes
 fpu_exception  : yes
 cpuid level    : 13
 wp             : yes
 flags          : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid 
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm 
pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm epb pti 
ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat 
pln pts md_clear flush_l1d
 bugs           : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds 
swapgs itlb_multihit
 bogomips       : 4390.39
 clflush size   : 64
 cache_alignment        : 64
 address sizes  : 36 bits physical, 48 bits virtual
 power management:
ProcEnviron:
 TERM=rxvt-unicode-256color
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.4.0-86.97-generic 5.4.133
SourcePackage: emacs
Tags:  focal gtk_selection_bg_color-in-emacs
Uname: Linux 5.4.0-86-generic x86_64
UpgradeStatus: Upgraded to focal on 2021-09-19 (16 days ago)
_MarkForUpload: True

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1628707

Title:
  Highlighting a region in emacs is invisible because region color
  equals window color

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs/+bug/1628707/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to