unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
@ 2021-03-14  8:23 Jean Louis
  2021-03-18  6:47 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2021-03-14  8:23 UTC (permalink / raw)
  To: 47133


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
⎔ λ 🄯 𝍄 𝌡 𝌚





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

* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
  2021-03-14  8:23 bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not Jean Louis
@ 2021-03-18  6:47 ` Lars Ingebrigtsen
  2021-03-18  9:09   ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-03-18  6:47 UTC (permalink / raw)
  To: Jean Louis; +Cc: 47133

Jean Louis <bugs@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





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

* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
  2021-03-18  6:47 ` Lars Ingebrigtsen
@ 2021-03-18  9:09   ` Eli Zaretskii
  2021-03-18  9:17     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2021-03-18  9:09 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 47133, bugs

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 18 Mar 2021 07:47:41 +0100
> Cc: 47133@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?





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

* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
  2021-03-18  9:09   ` Eli Zaretskii
@ 2021-03-18  9:17     ` Lars Ingebrigtsen
  2021-03-18  9:28       ` Lars Ingebrigtsen
  2021-03-18 10:51       ` Jean Louis
  0 siblings, 2 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-03-18  9:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 47133, bugs

Eli Zaretskii <eliz@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





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

* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
  2021-03-18  9:17     ` Lars Ingebrigtsen
@ 2021-03-18  9:28       ` Lars Ingebrigtsen
  2021-03-18  9:43         ` Eli Zaretskii
  2021-03-18 10:51       ` Jean Louis
  1 sibling, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-03-18  9:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 47133, bugs

Lars Ingebrigtsen <larsi@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





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

* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
  2021-03-18  9:28       ` Lars Ingebrigtsen
@ 2021-03-18  9:43         ` Eli Zaretskii
  2021-03-18 10:17           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2021-03-18  9:43 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 47133, bugs

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: 47133@debbugs.gnu.org,  bugs@gnu.support
> Date: Thu, 18 Mar 2021 10:28:20 +0100
> 
> Lars Ingebrigtsen <larsi@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.





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

* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
  2021-03-18  9:43         ` Eli Zaretskii
@ 2021-03-18 10:17           ` Lars Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-03-18 10:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 47133, bugs

Eli Zaretskii <eliz@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





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

* bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not
  2021-03-18  9:17     ` Lars Ingebrigtsen
  2021-03-18  9:28       ` Lars Ingebrigtsen
@ 2021-03-18 10:51       ` Jean Louis
  1 sibling, 0 replies; 8+ messages in thread
From: Jean Louis @ 2021-03-18 10:51 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 47133

* Lars Ingebrigtsen <larsi@gnus.org> [2021-03-18 12:18]:
> Eli Zaretskii <eliz@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





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

end of thread, other threads:[~2021-03-18 10:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-14  8:23 bug#47133: 28.0.50; Library chart: colors sometimes appear, sometimes not Jean Louis
2021-03-18  6:47 ` Lars Ingebrigtsen
2021-03-18  9:09   ` Eli Zaretskii
2021-03-18  9:17     ` Lars Ingebrigtsen
2021-03-18  9:28       ` Lars Ingebrigtsen
2021-03-18  9:43         ` Eli Zaretskii
2021-03-18 10:17           ` Lars Ingebrigtsen
2021-03-18 10:51       ` Jean Louis

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