unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ken Manheimer" <ken.manheimer@gmail.com>
Cc: emacs-devel@gnu.org, "Kim F. Storm" <storm@cua.dk>
Subject: Re: cursor doesn't show through transparent images in emacs 22, unlike emacs 21
Date: Sun, 27 Aug 2006 16:37:30 -0400	[thread overview]
Message-ID: <2cd46e7f0608271337t74b62411g1b98e7fecfb7c03b@mail.gmail.com> (raw)
In-Reply-To: <E1GHLiz-0000CI-DG@fencepost.gnu.org>

On 8/27/06, Richard Stallman <rms@gnu.org> wrote:
>     > I think this means that if the image blocks out the background color,
>     > then the cursor won't appear.  Is that correct?  I think that is a problem.
>
>     Maybe -- but it's not a new problem.  It's the same as it was in 21.x, and
>     I don't recall any reports of that behaviour being a problem.
>
> How could it possibly not be a problem?  Is it that nobody uses
> non-transparent images?  Nobody cares about seeing the cursor in buffers
> that use non-transparent images?

i just experimented, filling in the transparent part of one of my
icons with a solid color.  the cursor still shows in that region,
instead of that color.

naturally figuring i made a mistake (as those of you reading this
probably do), i looked at the image with something else, and the solid
color showed where i put it.  i started twiddling with the image and,
doing an (clear-image-cache) after each change, discovered that if i
made the top-left and bottom-right corner pixels transparent, the
solid color showed as it should.  putting the solid color in one or
the other of those corners, however, causes emacs to treat it as
transparent, at least as far as showing the cursor in it.

(a bit more experimenting shows that the combinations of corners to
qualify a solid corner for treatment as transparent is a bit more
elaborate.  i'd like to see the algorithm, but satisfying that
curiousity is not sufficient reason to get acquainted with the display
system.  this behavior certainly doesn't satisfy the principle of
least surprise, and deserves some documentation, if it doesn't already
have it.)

the upshot is that the small glyphs will benefit from  kim's change,
even if they lack transparency, with the cursor color showing instead
of the color that occupies some combination of the corners -  or maybe
some other criteria, who knows.

-- 
ken
ken.manheimer@gmail.com
http://myriadicity.net

  reply	other threads:[~2006-08-27 20:37 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-18 23:22 cursor doesn't show through transparent images in emacs 22, unlike emacs 21 Ken Manheimer
2006-08-18 23:33 ` Drew Adams
2006-08-19 17:49   ` Ken Manheimer
2006-08-19 23:09 ` Kim F. Storm
2006-08-20  1:49   ` Ken Manheimer
2006-08-20  5:00     ` Ken Manheimer
2006-08-20  6:42       ` David Kastrup
2006-08-20 12:05     ` Richard Stallman
2006-08-20 15:10       ` Ken Manheimer
2006-08-20 17:27         ` David Kastrup
2006-08-22  3:09         ` Richard Stallman
2006-08-22  8:03           ` David Kastrup
2006-08-22 13:45             ` Ken Manheimer
2006-08-24 11:31               ` Kim F. Storm
2006-08-24 11:49                 ` David Kastrup
2006-08-25 13:48                   ` Kim F. Storm
2006-08-24 14:20                 ` Ken Manheimer
2006-08-24 14:26                   ` Kim F. Storm
2006-08-24 15:53                     ` Ken Manheimer
2006-08-24 19:56                       ` Kim F. Storm
2006-08-24 21:41                         ` Ken Manheimer
2006-08-25 14:28                         ` Kim F. Storm
2006-08-25 15:24                           ` Ken Manheimer
2006-08-26 10:08                             ` Richard Stallman
2006-08-25 20:23                 ` Richard Stallman
2006-08-25 22:35                   ` Kim F. Storm
2006-08-26 12:22                     ` Richard Stallman
2006-08-26 21:37                       ` Kim F. Storm
2006-08-27 14:34                         ` Richard Stallman
2006-08-27 20:37                           ` Ken Manheimer [this message]
2006-08-27 21:45                             ` Kim F. Storm
2006-08-28 22:10                               ` Richard Stallman
2006-08-28 22:27                                 ` Ken Manheimer
2006-08-29 17:18                                   ` Richard Stallman
2006-08-28 22:33                                 ` Kim F. Storm
2006-08-27 20:42                           ` Juri Linkov
2006-08-27 22:24                             ` Kim F. Storm
2006-08-28 21:27                               ` Juri Linkov
2006-08-28 22:09                             ` Richard Stallman
2006-08-28 22:44                               ` Juri Linkov
2006-08-28 23:02                                 ` Kim F. Storm
2006-08-29 21:31                                   ` Ken Manheimer
2006-08-29 21:36                                     ` David Kastrup
2006-08-29 22:12                                       ` Ken Manheimer
2006-08-30 17:58                                         ` Richard Stallman
2006-08-30 18:20                                           ` Ken Manheimer
2006-08-31 18:16                                             ` Richard Stallman
2006-09-01 15:46                                               ` Ken Manheimer
2006-08-29 17:18                                 ` Richard Stallman
2006-08-29 20:27                                   ` Juri Linkov
2006-08-30  8:09                                     ` Kim F. Storm
2006-08-31  7:33                                       ` Richard Stallman
2006-08-27 22:23                           ` Kim F. Storm
2006-08-28 22:10                             ` Richard Stallman
2006-08-25 23:01                   ` Ken Manheimer
2006-08-26 12:22                     ` Richard Stallman
2006-08-22 13:19           ` Ken Manheimer
2006-08-20  9:03   ` Jason Rumney
2006-08-20  9:09     ` David Kastrup
2006-08-20 12:05   ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2006-09-02 18:08 (no subject) Richard Stallman
2006-09-03 21:30 ` cursor doesn't show through transparent images in emacs 22, unlike emacs 21 Kim F. Storm
2006-09-04 17:17   ` Richard Stallman
2006-09-04 22:42     ` Kim F. Storm
2006-09-06  8:49       ` Richard Stallman
2006-09-06  9:15         ` David Kastrup
2006-09-06 10:00           ` Kim F. Storm
2006-09-06 16:12             ` Ken Manheimer
2006-09-07  6:54           ` Richard Stallman
2006-09-07  7:47             ` David Kastrup
2006-09-09 20:45               ` Richard Stallman
2006-09-09 22:55                 ` David Kastrup
2006-09-10  0:21                 ` Kim F. Storm
2006-09-10 13:04                   ` Richard Stallman
2006-09-10 20:25                     ` Kim F. Storm
2006-09-10 23:00                       ` Robert J. Chassell
2006-09-11  5:32                         ` tomas
2006-09-11  8:08                         ` Kim F. Storm
2006-09-11  8:16                           ` David Kastrup
2006-09-11 11:56                           ` Robert J. Chassell
2006-09-11 12:51                             ` Kim F. Storm
2006-09-11 14:40                               ` Robert J. Chassell
2006-09-11 14:11                       ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=2cd46e7f0608271337t74b62411g1b98e7fecfb7c03b@mail.gmail.com \
    --to=ken.manheimer@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=storm@cua.dk \
    /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 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).