From: Wolfgang Jenkner <wjenkner@inode.at>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
Yoni Rabkin <yoni@rabkins.net>,
emacs-devel@gnu.org
Subject: Re: Colour selection in shr
Date: Wed, 05 Nov 2014 12:40:40 +0100 [thread overview]
Message-ID: <85d291kgbr.fsf@iznogoud.viz> (raw)
In-Reply-To: jwva946ygnj.fsf-monnier+emacs@gnu.org
On Tue, Nov 04 2014, Stefan Monnier wrote:
>> Again, I have no idea what you mean by that. How would you use
>> `font-lock-mode' to put colours on an HTML document based on CSS?
>
> I'm not suggesting to use font-lock-keywords to put the colors.
> I'm suggesting to use the `font-lock-mode' setting (a boolean variable)
> to decide whether to do highlighting or not.
>
> You could even do it dynamically/automatically by using the
> `font-lock-face' instead of the `face' property.
The thread was about turning off colours while preserving other face
attributes, I think. But using `font-lock-face' for colour settings and
`face' for the rest doesn't work for this, viz. with the following code
snippet, "bar" appears underlined but not coloured.
(with-current-buffer (generate-new-buffer "*test*")
(insert "foobarquux")
(put-text-property 1 7 'face '(:underline t))
(put-text-property 4 11 'font-lock-face '(:foreground "red"))
(font-lock-mode)
(pop-to-buffer (current-buffer)))
Wolfgang
next prev parent reply other threads:[~2014-11-05 11:40 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 0:41 "Readability" feature in eww Lars Magne Ingebrigtsen
2014-11-03 2:30 ` Yoni Rabkin
2014-11-03 10:32 ` Colour selection in shr (was: "Readability" feature in eww) Lars Magne Ingebrigtsen
2014-11-03 13:30 ` Colour selection in shr Yoni Rabkin
2014-11-03 17:26 ` Lars Magne Ingebrigtsen
2014-11-03 17:36 ` Eli Zaretskii
2014-11-03 18:20 ` Achim Gratz
2014-11-03 19:00 ` Eli Zaretskii
2014-11-03 19:23 ` Lars Magne Ingebrigtsen
2014-11-03 19:36 ` Eli Zaretskii
2014-11-03 19:42 ` Lars Magne Ingebrigtsen
2014-11-03 19:54 ` Eli Zaretskii
2014-11-03 20:34 ` Lars Magne Ingebrigtsen
2014-11-03 20:43 ` Eli Zaretskii
2014-11-03 19:55 ` Yoni Rabkin
2014-11-03 21:10 ` Lars Magne Ingebrigtsen
2014-11-03 21:21 ` Yoni Rabkin
2014-11-03 21:29 ` Lars Magne Ingebrigtsen
2014-11-04 2:10 ` Yoni Rabkin
2014-11-04 15:40 ` Stefan Monnier
2014-11-04 15:53 ` Lars Magne Ingebrigtsen
2014-11-04 18:18 ` Stefan Monnier
2014-11-05 0:15 ` Lars Magne Ingebrigtsen
2014-11-05 0:53 ` Yoni Rabkin
2014-11-05 2:03 ` Stefan Monnier
2014-11-05 11:40 ` Wolfgang Jenkner [this message]
2014-11-03 20:11 ` Stefan Monnier
2014-11-03 20:36 ` Lars Magne Ingebrigtsen
2014-11-13 20:00 ` Yoni Rabkin
2014-11-13 20:06 ` Lars Magne Ingebrigtsen
2014-11-03 9:37 ` "Readability" feature in eww Rüdiger Sonderfeld
2014-11-03 11:15 ` Rasmus
2014-11-04 15:51 ` Lars Magne Ingebrigtsen
2014-11-03 11:10 ` Rasmus
2014-11-03 11:22 ` Lars Magne Ingebrigtsen
2014-11-03 12:28 ` Rasmus
2014-11-03 12:11 ` Óscar Fuentes
2014-11-03 16:25 ` raman
2014-11-03 21:37 ` David Engster
2014-11-03 22:51 ` Lars Magne Ingebrigtsen
2014-11-04 7:44 ` David Engster
2014-11-04 15:49 ` Lars Magne Ingebrigtsen
2014-11-04 18:00 ` David Engster
2014-11-05 2:04 ` raman
2014-11-05 2:57 ` Yuri Khan
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=85d291kgbr.fsf@iznogoud.viz \
--to=wjenkner@inode.at \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=monnier@iro.umontreal.ca \
--cc=yoni@rabkins.net \
/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.