all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@stupidchicken.com>, <emacs-devel@gnu.org>
Subject: RE: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal.
Date: Tue, 23 Nov 2010 16:05:03 -0800	[thread overview]
Message-ID: <4F815C192A5E4E98AC8DDA0CD05249C4@us.oracle.com> (raw)
In-Reply-To: <874ob71y6v.fsf@stupidchicken.com>

> I see.  Why not just use hexrgb.el (or build on it)?  It's been around
> long enough that such teething problems should have been eliminated.
> 
> Drew Adams has an assignment on file; if he is willing to include
> hexrgb.el under that assignment, we could simply add that to Emacs.
> Whatever additional functionality you need that isn't already present,
> you could then simply add.

Almost missed this mail - haven't been following this thread.

Yes, you can include hexrgb.el in Emacs if you want.

There is no doubt some overlap between `hexrgb-read-color' in hexrgb.el and
`read-color' in Emacs (originally from hexrgb.el, but modified since).

Someone should take a look, to see if you need to merge/adapt some things (e.g.
in facemenu.el).  Some things like extra defcustom :group's will need to be
removed from the hexrgb.el code.

Some of the hexrgb.el code uses functions and vars from eyedropper.el, but not
in any essential way.  This part lets you use colors that you pick up from under
the cursor or the pointer, as with an eyedrop.

These parts can be cut out of the hexrgb.el code, or you can also include
eyedropper.el in Emacs (it is small).  Some of the eyedropper.el functions have
already been added to Emacs (`face-at-point' is `eyedropper-face-at-point'
etc.).  That's another possibility: add the eyedropper.el code but drop the
prefix `eyedrop-'.

There are two places where the hexgrb.el code is conditional for Emacs 20:

- work around an Emacs 20 bug: (= N N) returns t for a Nan
- use of `try-completion' if `test-completion' is not defined

These are short enough and benign enough that I'd hope they could stay in the
code.

I'm willing to make changes that you request.  If there are no incompatible
changes, so I can also use it for my local needs, then I won't need to also
maintain it separately (locally).  Otherwise (incompatible changes, stuff
removed that I need), then I will either need to also maintain a local version
or move the differences to another local file.  Depends on what changes you
require.

The code is here:
http://www.emacswiki.org/emacs/hexrgb.el
http://www.emacswiki.org/emacs/eyedropper.el




  parent reply	other threads:[~2010-11-24  0:05 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1PKgZg-0005td-8L@internal.in.savannah.gnu.org>
2010-11-23 19:50 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal Glenn Morris
2010-11-23 20:24   ` Chong Yidong
2010-11-23 21:14     ` Julien Danjou
2010-11-23 21:31       ` Chong Yidong
2010-11-23 21:38         ` Lars Magne Ingebrigtsen
2010-11-23 22:18           ` Chong Yidong
2010-11-23 22:34             ` Lars Magne Ingebrigtsen
2010-11-24  0:12               ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert " Drew Adams
2010-11-24  9:08                 ` Julien Danjou
2010-11-24 11:35                   ` Eli Zaretskii
2010-11-24 14:46                     ` Stefan Monnier
2010-11-24 15:30                       ` Lennart Borgman
2010-11-24 18:15                         ` Ted Zlatanov
2010-11-24 21:37                           ` Lennart Borgman
2010-11-24 22:19                       ` Lars Magne Ingebrigtsen
2010-11-24 22:41                         ` Use color-tweaking code to improve face defaults? [was: /srv/bzr/emacs/trunk r1...] Drew Adams
2010-11-25  4:53                         ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal Stefan Monnier
2010-12-10 19:19                           ` Ted Zlatanov
2010-11-24 16:15                   ` Drew Adams
2010-11-24 18:11                     ` Ted Zlatanov
2010-11-24 21:00                       ` /srv/bzr/emacs/trunk r102478: shr.el(shr-tag-color-check):Convert colors to hexadecimal withshr-color->hexadecimal Drew Adams
2010-11-24 21:33                         ` Julien Danjou
2010-11-24 21:51                           ` Drew Adams
2010-11-24 16:29                   ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal Chong Yidong
2010-11-24  0:05             ` Drew Adams [this message]
2010-11-24  8:36         ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert " Richard Stallman
2010-11-24 14:42           ` Stefan Monnier
2010-11-23 21:16     ` Lars Magne Ingebrigtsen
2010-11-23 22:19       ` Ted Zlatanov
2010-11-23 21:14   ` Julien Danjou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F815C192A5E4E98AC8DDA0CD05249C4@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.