all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#5829: 23.1.94; variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt"
@ 2010-04-03 16:33 MON KEY
  2010-04-03 17:41 ` Jason Rumney
  0 siblings, 1 reply; 4+ messages in thread
From: MON KEY @ 2010-04-03 16:33 UTC (permalink / raw)
  To: 5829

Variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt"
This may be needed on w32 systems.

`hfy-rgb-load-path' should also add etc/rgb.txt to its loadpath
e.g. with something such as:

(expand-file-name "etc"
  (file-name-directory (directory-file-name exec-directory)))

;;; ==============================

In GNU Emacs 23.1.94.1 (i386-mingw-nt5.1.2600)
 of 2010-03-23 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/imagesupport/include'

In GNU Emacs 23.1.94.1 (i386-mingw-nt5.1.2600)
 of 2010-03-23 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/imagesupport/include'







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

* bug#5829: 23.1.94; variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt"
  2010-04-03 16:33 bug#5829: 23.1.94; variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt" MON KEY
@ 2010-04-03 17:41 ` Jason Rumney
  2010-04-03 19:41   ` MON KEY
  2011-07-10  0:38   ` Glenn Morris
  0 siblings, 2 replies; 4+ messages in thread
From: Jason Rumney @ 2010-04-03 17:41 UTC (permalink / raw)
  To: MON KEY; +Cc: 5829

MON KEY <monkey@sandpframing.com> writes:

> Variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt"
> This may be needed on w32 systems.

Why does hfy-cmap need to use rbg.txt instead of color-name-rgb-alist?







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

* bug#5829: 23.1.94; variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt"
  2010-04-03 17:41 ` Jason Rumney
@ 2010-04-03 19:41   ` MON KEY
  2011-07-10  0:38   ` Glenn Morris
  1 sibling, 0 replies; 4+ messages in thread
From: MON KEY @ 2010-04-03 19:41 UTC (permalink / raw)
  To: Jason Rumney; +Cc: 5829

On Sat, Apr 3, 2010 at 1:41 PM, Jason Rumney <jasonr@gnu.org> wrote:
>
> Why does hfy-cmap need to use rbg.txt instead of color-name-rgb-alist?
>

Indeed. I don't disagree.
There is also that nice big list of rgb values in :FILE src/w32fns.c

Maybe a better question is to ask why:

(length color-name-rgb-alist)
 ;=>657

(length hfy-fallback-colour-map)
 ;=>752

(length w32-color-map)
 ;=> 783

(assoc-string "deepskyblue" color-name-rgb-alist)
 ;=> ("deepskyblue" 0 49087 65535)

(assoc-string "deep sky blue" color-name-rgb-alist)
 ;=> nil

(assoc-string "deepskyblue" hfy-fallback-colour-map)
 ;=> nil

(assoc-string "deep sky blue" hfy-fallback-colour-map)
 ;=> ("deep sky blue" 0 49087 65535)

(assoc-string "deepskyblue" w32-color-map)
 ;=>nil

(assoc-string "deep sky blue" w32-color-map)
;=> ("deep sky blue" . 16760576)

(xw-color-values "deep sky blue")
;=> (0 49087 65535)

(xw-color-values "deep sky blue")
;=> (0 49087 65535)


FWIW I have no opinion whatsoever as to whether this is good or bad w/re to
hfy-cmap/htmlfontify.el/W32 compatibility.

I do however find it frustrating that there are so may _different_ disparate
`color specs' (re)provided throughout various Emacs packages (as distributed and
otherwise) -- i don't believe this is necessarily a W32 specific problem.
I'm sure we're all guilty of duplicating pre-existing code already provided, but
this one just seems to continually resurface. Come to think of it hasn't color
spec code duplication been discussed recently on emacs-devel?

/s_P\






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

* bug#5829: 23.1.94; variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt"
  2010-04-03 17:41 ` Jason Rumney
  2010-04-03 19:41   ` MON KEY
@ 2011-07-10  0:38   ` Glenn Morris
  1 sibling, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2011-07-10  0:38 UTC (permalink / raw)
  To: 5829-done


Never answered, AFAICS.

Jason Rumney wrote:

> Why does hfy-cmap need to use rbg.txt instead of color-name-rgb-alist?





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

end of thread, other threads:[~2011-07-10  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-03 16:33 bug#5829: 23.1.94; variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt" MON KEY
2010-04-03 17:41 ` Jason Rumney
2010-04-03 19:41   ` MON KEY
2011-07-10  0:38   ` Glenn Morris

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.