GNU bug report logs - #47133
28.0.50; Library chart: colors sometimes appear, sometimes not

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Sun, 14 Mar 2021 08:26:01 UTC

Severity: minor

Tags: fixed

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 47133 in the body.
You can then email your comments to 47133 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#47133; Package emacs. (Sun, 14 Mar 2021 08:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean Louis <bugs <at> gnu.support>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 14 Mar 2021 08:26:02 GMT) Full text and rfc822 format available.

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

From: Jean Louis <bugs <at> gnu.support>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Library chart: colors sometimes appear, sometimes not
Date: Sun, 14 Mar 2021 11:23:30 +0300
Here is one example chart:

M-x load-library RET chart RET

(chart-bar-quickie 'vertical "People's Acknowledgments"
		   '("Joe" "Jane" "Jean" "Jenny")
		   "Acknowledged people"
		   '(6.0 4.0 4.0 4.0)
		   "Person")

Colors sometimes appear, sometimes not. Sometimes I get just drawings
instead of colors. I am using extensively chart library and I used in
last months, somewhere last month or short time before, I have seen that
sometimes I do not see any colors.

Because I have not changed anything on my side I think that developers
changed something and now there is problem with colors.

I have tried already everything to determine what is wrong. I cannot
find where is problem, and I have nothing in my configuration that
changes the chart library.

I have tried invoking the above chart function after any loading of any
librari in my init, and it worked well.

The above chart function sits in my indestructible *scratch* and I run
Emacs as server, then comes the client and I evaluate that
function. Sometimes on the first invokation of emacsclient after
initialization I will see colors. Sometimes I will not see colors. That
says to me that it is most probably not related to my configuration.

It appear to be random.



In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars)
 of 2021-03-07 built on protected.rcdrun.com
Repository revision: 468bb5ab7f949441f68c4133fcd5292dfbbfd83d
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11907000
System Description: Hyperbola GNU/Linux-libre

Configured using:
 'configure --with-x-toolkit=lucid
 PKG_CONFIG_PATH=/home/data1/protected/GNUstep/Library/Libraries/pkgconfig:/usr/lib/pkgconfig'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG
RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID
ZLIB

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: @im=exwm-xim
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort hashcash mail-extr emacsbug message rmc puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util
rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame minibuffer
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese composite
charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev
obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote threads
dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo x-toolkit x multi-tty make-network-process
emacs)

Memory information:
((conses 16 52571 9150)
 (symbols 48 7179 1)
 (strings 32 20106 1997)
 (string-bytes 1 640908)
 (vectors 16 12149)
 (vector-slots 8 169140 9988)
 (floats 8 26 42)
 (intervals 56 228 0)
 (buffers 992 11))

-- 
Thanks,
Jean Louis
⎔ λ 🄯 𝍄 𝌡 𝌚




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47133; Package emacs. (Thu, 18 Mar 2021 06:48:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jean Louis <bugs <at> gnu.support>
Cc: 47133 <at> debbugs.gnu.org
Subject: Re: bug#47133: 28.0.50; Library chart: colors sometimes appear,
 sometimes not
Date: Thu, 18 Mar 2021 07:47:41 +0100
Jean Louis <bugs <at> gnu.support> writes:

> The above chart function sits in my indestructible *scratch* and I run
> Emacs as server, then comes the client and I evaluate that
> function. Sometimes on the first invokation of emacsclient after
> initialization I will see colors. Sometimes I will not see colors. That
> says to me that it is most probably not related to my configuration.
>
> It appear to be random.

Perhaps it's a case of what display that's active when you're loading
chart.el?  What's the value of `chart-face-list' when you don't see any
colours?  It's defined as:

(defvar chart-face-list
  (if (display-color-p)
      ...

so if the display in question doesn't support colours when loading,
you'll get no colours on any display, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47133; Package emacs. (Thu, 18 Mar 2021 09:10:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 47133 <at> debbugs.gnu.org, bugs <at> gnu.support
Subject: Re: bug#47133: 28.0.50;
 Library chart: colors sometimes appear, sometimes not
Date: Thu, 18 Mar 2021 11:09:44 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 18 Mar 2021 07:47:41 +0100
> Cc: 47133 <at> debbugs.gnu.org
> 
> Perhaps it's a case of what display that's active when you're loading
> chart.el?  What's the value of `chart-face-list' when you don't see any
> colours?  It's defined as:
> 
> (defvar chart-face-list
>   (if (display-color-p)
>       ...
> 
> so if the display in question doesn't support colours when loading,
> you'll get no colours on any display, I think.

Which displays nowadays don't support colors in Emacs?  Does anyone
still use such displays?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47133; Package emacs. (Thu, 18 Mar 2021 09:18:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 47133 <at> debbugs.gnu.org, bugs <at> gnu.support
Subject: Re: bug#47133: 28.0.50; Library chart: colors sometimes appear,
 sometimes not
Date: Thu, 18 Mar 2021 10:17:36 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> Which displays nowadays don't support colors in Emacs?  Does anyone
> still use such displays?

It's more about not having a display, I suspect.

./src/emacs -geometry -0+0 -Q --daemon=server -l chart

will make chart-face-list nil.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47133; Package emacs. (Thu, 18 Mar 2021 09:29:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 47133 <at> debbugs.gnu.org, bugs <at> gnu.support
Subject: Re: bug#47133: 28.0.50; Library chart: colors sometimes appear,
 sometimes not
Date: Thu, 18 Mar 2021 10:28:20 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> It's more about not having a display, I suspect.
>
> ./src/emacs -geometry -0+0 -Q --daemon=server -l chart
>
> will make chart-face-list nil.

(I.e., initialising a variable based on `display-color-p' or
`display-graphic-p' is almost always the wrong thing to do -- things
depending on these should be computed dynamically at use time.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47133; Package emacs. (Thu, 18 Mar 2021 09:44:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 47133 <at> debbugs.gnu.org, bugs <at> gnu.support
Subject: Re: bug#47133: 28.0.50; Library chart: colors sometimes appear,
 sometimes not
Date: Thu, 18 Mar 2021 11:43:47 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: 47133 <at> debbugs.gnu.org,  bugs <at> gnu.support
> Date: Thu, 18 Mar 2021 10:28:20 +0100
> 
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> 
> > It's more about not having a display, I suspect.
> >
> > ./src/emacs -geometry -0+0 -Q --daemon=server -l chart
> >
> > will make chart-face-list nil.
> 
> (I.e., initialising a variable based on `display-color-p' or
> `display-graphic-p' is almost always the wrong thing to do -- things
> depending on these should be computed dynamically at use time.)

We have custom-reevaluate-setting for that: could it help?  At least
for defcustoms which are initialized using those APIs?

In general, stuff that depends on having a GUI frame needs to be done
in server-after-make-frame-hook to work in sessions that start as
daemon.  maybe we should have some infrastructure for doing some of
that automatically, so that users won't need to put so many things
into that hook.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47133; Package emacs. (Thu, 18 Mar 2021 10:18:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 47133 <at> debbugs.gnu.org, bugs <at> gnu.support
Subject: Re: bug#47133: 28.0.50; Library chart: colors sometimes appear,
 sometimes not
Date: Thu, 18 Mar 2021 11:17:44 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> We have custom-reevaluate-setting for that: could it help?  At least
> for defcustoms which are initialized using those APIs?
>
> In general, stuff that depends on having a GUI frame needs to be done
> in server-after-make-frame-hook to work in sessions that start as
> daemon.  maybe we should have some infrastructure for doing some of
> that automatically, so that users won't need to put so many things
> into that hook.

Sure, that would be a possibility, but I think functionality like this
should hold on computing stuff until it's needed -- then it'll work no
matter how it's loaded.  So I've made it do that in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 18 Mar 2021 10:19:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 47133 <at> debbugs.gnu.org and Jean Louis <bugs <at> gnu.support> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 18 Mar 2021 10:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47133; Package emacs. (Thu, 18 Mar 2021 10:54:02 GMT) Full text and rfc822 format available.

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

From: Jean Louis <bugs <at> gnu.support>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 47133 <at> debbugs.gnu.org
Subject: Re: bug#47133: 28.0.50; Library chart: colors sometimes appear,
 sometimes not
Date: Thu, 18 Mar 2021 13:51:27 +0300
* Lars Ingebrigtsen <larsi <at> gnus.org> [2021-03-18 12:18]:
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Which displays nowadays don't support colors in Emacs?  Does anyone
> > still use such displays?
> 
> It's more about not having a display, I suspect.
> 
> ./src/emacs -geometry -0+0 -Q --daemon=server -l chart
> 
> will make chart-face-list nil.

Maybe, it could be related.

I am usually using Emacs as with `emacs --bg-daemon'. I have been
using chart library before months and I never had problem, the problem
came recently before about one month or more.

So I have started now as daemon and client, and I cannot get colors.

The instance that is started now as emacsclient does show colors.

I guess that would be it. It worked before, it should be brought back
to where it was. Thank you.

Jean




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 15 Apr 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 121 days ago.

Previous Next


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