Gnus development mailing list
 help / color / mirror / Atom feed
From: Julien Danjou <julien@danjou.info>
To: ding@gnus.org
Subject: Re: Development splash smoothing
Date: Mon, 28 Mar 2011 10:01:18 +0200	[thread overview]
Message-ID: <sa3tyen8yi9.fsf@cigue.easter-eggs.fr> (raw)
In-Reply-To: <87vcz53eb4.fsf@topper.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Sat, 26 Mar 2011 19:51:59 +0100")

[-- Attachment #1: Type: text/plain, Size: 1128 bytes --]

On Sat, Mar 26 2011, Adam Sjøgren wrote:

> Let me know what you think, and please don't hesitate to tear my elisp
> apart. I have no idea what I am doing.

I like it.

> +(defun gnus-splash-svg-color-symbols (list)
> +  "Do color-symbol search-and-replace in svg file"
> +  (let ((type (plist-get (cdr list) :type))
> +        (file (plist-get (cdr list) :file))
> +        (color-symbols (plist-get (cdr list) :color-symbols)))
> +    (if (and (string= type "svg"))

(and) what ? seems the and is useless here. :)

> +        (let ((data (with-temp-buffer (insert-file file) (buffer-string))))
> +          (mapc (lambda (rule)
> +                  (setq data (replace-regexp-in-string
> +                              (concat "fill:" (car rule))
> +                              (concat "fill:" (cdr rule)) data))) color-symbols)
> +          (cons (car list) (list :type type :data data)))
> +       list)))
> +
>  (eval-when (load)
>    (let ((command (format "%s" this-command)))
>      (when (string-match "gnus" command)
> -- 
> 1.7.4.1

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2011-03-28  8:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26 18:51 Adam Sjøgren
2011-03-28  8:01 ` Julien Danjou [this message]
2011-03-28 12:08   ` Adam Sjøgren
2011-03-29 17:56   ` Lars Magne Ingebrigtsen
2011-03-29 17:56 ` Lars Magne Ingebrigtsen
2011-03-29 21:16   ` Adam Sjøgren
2011-03-29 22:15     ` Lars Magne Ingebrigtsen

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=sa3tyen8yi9.fsf@cigue.easter-eggs.fr \
    --to=julien@danjou.info \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).