unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
  • [parent not found: <<83y54ohh1n.fsf@gnu.org>]
  • [parent not found: <<c18e0f8c-e172-497d-b572-69162d77132b@default>]
    [parent not found: <<6bc49739-fae0-4688-a3cc-8bbbc2fe1c04@default>]
    * bug#15900: 24.3.50; foreground-color-at-point returns wrong results
    @ 2013-11-15  2:04 Michael Heerdegen
      2013-11-15  2:47 ` Michael Heerdegen
                       ` (2 more replies)
      0 siblings, 3 replies; 22+ messages in thread
    From: Michael Heerdegen @ 2013-11-15  2:04 UTC (permalink / raw)
      To: 15900
    
    
    Hello,
    
    `foreground-color-at-point' doesn't return the expected result when
    there are several faces at point present.
    
    For example, on the red subject in a Gnus article buffer, or on a blue
    link in w3m, it returns "black".  Looking at the code, I see that
    `foreground-color-at-point' uses
    
      (face-at-point)
    
    i.e., it looks only at one face and disregards the others.  This is
    especially meaningless when this first face doesn't specify any
    foreground at all.
    
    
    Thanks,
    
    Michael.
    
    P.S. Some background: I'm working on an addition to stripe-buffer.el
    that changes the foreground color continuously, instead of changing the
    background.  This is for better readability.
    
    I want to keep the foreground colors already present, so that e.g. links
    in w3m are still recognizable.  Paragraphs in italic can be colored
    OTOH.
    
    So, what I need is a reliable `foreground-color-at-point'.  Tips and
    alternatives welcome.
    
    
    
    In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.4)
     of 2013-11-13 on drachen
    Windowing system distributor `The X.Org Foundation', version 11.0.11403000
    System Description:	Debian GNU/Linux testing (jessie)
    
    Configured using:
     `configure --prefix=/usr/local/built/'
    
    
    
    
    
    
    ^ permalink raw reply	[flat|nested] 22+ messages in thread

    end of thread, other threads:[~2022-04-22 13:30 UTC | newest]
    
    Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <<87siuyxvw7.fsf@web.de>
         [not found] ` <<83li0qhxyl.fsf@gnu.org>
         [not found]   ` <<878uwpgvh8.fsf@web.de>
         [not found]     ` <<b0006d1c-b470-4297-a6d7-97d7ed118c28@default>
         [not found]       ` <<83vbzshggy.fsf@gnu.org>
    2013-11-16 16:20         ` bug#15900: 24.3.50; foreground-color-at-point returns wrong results Drew Adams
    2013-11-16 16:40           ` Eli Zaretskii
         [not found]     ` <<83y54ohh1n.fsf@gnu.org>
         [not found]       ` <<87siuv21v8.fsf@web.de>
         [not found]         ` <<83eh6fhegu.fsf@gnu.org>
         [not found]           ` <<87eh6flhfc.fsf@web.de>
         [not found]             ` <<83d2lzgd04.fsf@gnu.org>
    2013-11-17 17:29               ` Drew Adams
    2013-11-17 17:47                 ` Eli Zaretskii
    2013-11-17 22:38                   ` Michael Heerdegen
    2013-11-18  3:42                     ` Eli Zaretskii
    2013-11-18  7:50                       ` Michael Heerdegen
         [not found] <<c18e0f8c-e172-497d-b572-69162d77132b@default>
         [not found] ` <<83iovsgqhn.fsf@gnu.org>
    2013-11-16 22:53   ` Drew Adams
         [not found] <<6bc49739-fae0-4688-a3cc-8bbbc2fe1c04@default>
         [not found] ` <<83li0ogv14.fsf@gnu.org>
    2013-11-16 17:47   ` Drew Adams
    2013-11-16 18:18     ` Eli Zaretskii
    2013-11-15  2:04 Michael Heerdegen
    2013-11-15  2:47 ` Michael Heerdegen
    2013-11-15  8:26 ` Eli Zaretskii
    2013-11-15 22:18   ` Michael Heerdegen
    2013-11-16  0:26     ` Drew Adams
    2013-11-16  8:57       ` Eli Zaretskii
    2013-11-16  8:44     ` Eli Zaretskii
    2013-11-17  2:33       ` Michael Heerdegen
    2013-11-17  3:52         ` Eli Zaretskii
    2013-11-17  5:35           ` Michael Heerdegen
    2013-11-17 17:21             ` Eli Zaretskii
    2022-04-22 13:30 ` Lars Ingebrigtsen
    

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