Gnus development mailing list
 help / color / mirror / Atom feed
From: Raymond Scholz <ray-2002@zonix.de>
Subject: Re: X-Face and depth
Date: Sat, 12 Jan 2002 14:58:54 +0100	[thread overview]
Message-ID: <gd.87n0zj3c2p.fsf@mde1.zonix.de> (raw)
In-Reply-To: <xtzelkzqsut.fsf@dolormin.informatik.uni-bremen.de>

Andreas Büsching <crunchy@tzi.de> writes:

> It works very well for me. :-)

It doesn't for me :-(  Same with the original code from Gnus CVS.

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  logand(nil 1)
  (zerop (logand bits mask))
  (if (zerop (logand bits mask)) "0 " "1 ")
  (insert (if (zerop ...) "0 " "1 "))
  (while --dolist-temp--56627 (setq bits (car --dolist-temp--56627)) (insert (if ... "0 " "1 ")) (setq --dolist-temp--56627 (cdr --dolist-temp--56627)))
  (let ((--dolist-temp--56627 bits-list) bits) (while --dolist-temp--56627 (setq bits ...) (insert ...) (setq --dolist-temp--56627 ...)) nil)
  (catch (quote --cl-block-nil--) (let (... bits) (while --dolist-temp--56627 ... ... ...) nil))
  (cl-block-wrapper (catch (quote --cl-block-nil--) (let ... ... nil)))
  (block nil (let (... bits) (while --dolist-temp--56627 ... ... ...) nil))
  (dolist (bits bits-list) (insert (if ... "0 " "1 ")))
  (save-current-buffer (set-buffer temp-buffer) (insert "P1\n48 48\n") (dolist (bits bits-list) (insert ...)) (shell-command-on-region (point-min) (point-max) "pbmtoicon | sed '/^[ 	]*[*\\\\/]/d; s/[ 	]//g; s/,$//' | tr , '\\012' | tr -d '[:blank:]' | sed 's/^0x//; s/^/0x/' | pr -l1 -t -w22 -3 -s, | sed 's/,*$/,/' | compface" (current-buffer) t) (push (buffer-string) x-faces))
  (with-current-buffer temp-buffer (insert "P1\n48 48\n") (dolist (bits bits-list) (insert ...)) (shell-command-on-region (point-min) (point-max) "pbmtoicon | sed '/^[ 	]*[*\\\\/]/d; s/[ 	]//g; s/,$//' | tr , '\\012' | tr -d '[:blank:]' | sed 's/^0x//; s/^/0x/' | pr -l1 -t -w22 -3 -s, | sed 's/,*$/,/' | compface" (current-buffer) t) (push (buffer-string) x-faces))
  (unwind-protect (with-current-buffer temp-buffer (insert "P1\n48 48\n") (dolist ... ...) (shell-command-on-region ... ... "pbmtoicon | sed '/^[ 	]*[*\\\\/]/d; s/[ 	]//g; s/,$//' | tr , '\\012' | tr -d '[:blank:]' | sed 's/^0x//; s/^/0x/' | pr -l1 -t -w22 -3 -s, | sed 's/,*$/,/' | compface" ... t) (push ... x-faces)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (let ((temp-buffer ...)) (unwind-protect (with-current-buffer temp-buffer ... ... ... ...) (and ... ...)))
  (with-temp-buffer (insert "P1\n48 48\n") (dolist (bits bits-list) (insert ...)) (shell-command-on-region (point-min) (point-max) "pbmtoicon | sed '/^[ 	]*[*\\\\/]/d; s/[ 	]//g; s/,$//' | tr , '\\012' | tr -d '[:blank:]' | sed 's/^0x//; s/^/0x/' | pr -l1 -t -w22 -3 -s, | sed 's/,*$/,/' | compface" (current-buffer) t) (push (buffer-string) x-faces))
  (while (< bit-number --dotimes-temp--56626) (setq mask (expt 2 bit-number)) (with-temp-buffer (insert "P1\n48 48\n") (dolist ... ...) (shell-command-on-region ... ... "pbmtoicon | sed '/^[ 	]*[*\\\\/]/d; s/[ 	]//g; s/,$//' | tr , '\\012' | tr -d '[:blank:]' | sed 's/^0x//; s/^/0x/' | pr -l1 -t -w22 -3 -s, | sed 's/,*$/,/' | compface" ... t) (push ... x-faces)) (incf bit-number))
  (let ((--dotimes-temp--56626 depth) (bit-number 0)) (while (< bit-number --dotimes-temp--56626) (setq mask ...) (with-temp-buffer ... ... ... ...) (incf bit-number)) nil)
  (catch (quote --cl-block-nil--) (let (... ...) (while ... ... ... ...) nil))
  (cl-block-wrapper (catch (quote --cl-block-nil--) (let ... ... nil)))
  (block nil (let (... ...) (while ... ... ... ...) nil))
  (dotimes (bit-number depth) (setq mask (expt 2 bit-number)) (with-temp-buffer (insert "P1\n48 48\n") (dolist ... ...) (shell-command-on-region ... ... "pbmtoicon | sed '/^[ 	]*[*\\\\/]/d; s/[ 	]//g; s/,$//' | tr , '\\012' | tr -d '[:blank:]' | sed 's/^0x//; s/^/0x/' | pr -l1 -t -w22 -3 -s, | sed 's/,*$/,/' | compface" ... t) (push ... x-faces)))
  (save-current-buffer (set-buffer temp-buffer) (insert (shell-command-to-string ...)) (goto-char (point-min)) (forward-line 3) (while (setq pixel ...) (push ... bits-list)) (setq bits-list (nreverse bits-list)) (dotimes (bit-number depth) (setq mask ...) (with-temp-buffer ... ... ... ...)))
  (with-current-buffer temp-buffer (insert (shell-command-to-string ...)) (goto-char (point-min)) (forward-line 3) (while (setq pixel ...) (push ... bits-list)) (setq bits-list (nreverse bits-list)) (dotimes (bit-number depth) (setq mask ...) (with-temp-buffer ... ... ... ...)))
  (unwind-protect (with-current-buffer temp-buffer (insert ...) (goto-char ...) (forward-line 3) (while ... ...) (setq bits-list ...) (dotimes ... ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (let ((temp-buffer ...)) (unwind-protect (with-current-buffer temp-buffer ... ... ... ... ... ...) (and ... ...)))
  (with-temp-buffer (insert (shell-command-to-string ...)) (goto-char (point-min)) (forward-line 3) (while (setq pixel ...) (push ... bits-list)) (setq bits-list (nreverse bits-list)) (dotimes (bit-number depth) (setq mask ...) (with-temp-buffer ... ... ... ...)))
  (progn (with-temp-buffer (insert ...) (goto-char ...) (forward-line 3) (while ... ...) (setq bits-list ...) (dotimes ... ... ...)) (dotimes (i ...) (insert ... ...)))
  (if (file-exists-p file) (progn (with-temp-buffer ... ... ... ... ... ...) (dotimes ... ...)))
  (when (file-exists-p file) (with-temp-buffer (insert ...) (goto-char ...) (forward-line 3) (while ... ...) (setq bits-list ...) (dotimes ... ... ...)) (dotimes (i ...) (insert ... ...)))
  (let* ((mapfile ...) (levels ...) (step ...) color-alist bits bits-list mask pixel x-faces) (with-temp-file mapfile (insert "P3\n") (insert ...) (insert "255\n") (dotimes ... ... ...)) (when (file-exists-p file) (with-temp-buffer ... ... ... ... ... ...) (dotimes ... ...)) (delete-file mapfile))
  gnus-convert-image-to-gray-x-face("~/doomicon.gif" 1)

Cheers, Ray
-- 
It's clear that whoever set up the font colorings for most programming
modes has seen too many Peter Max posters, or did more acid than I did
in the 60's.                     (Charles R. Martin in gnu.emacs.help)



  reply	other threads:[~2002-01-12 13:58 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-02 14:59 Lars Magne Ingebrigtsen
2002-01-02 15:08 ` Didier Verna
2002-01-02 15:13   ` Lars Magne Ingebrigtsen
2002-01-02 15:17     ` Didier Verna
2002-01-02 15:24       ` Lars Magne Ingebrigtsen
2002-01-02 15:31         ` Didier Verna
2002-01-02 15:22 ` luis fernandes
2002-01-02 16:55   ` Lars Magne Ingebrigtsen
2002-01-02 17:02     ` Lars Magne Ingebrigtsen
2002-01-02 17:18       ` Lars Magne Ingebrigtsen
2002-01-02 17:26         ` Lars Magne Ingebrigtsen
2002-01-02 17:43           ` Matt Pharr
2002-01-02 23:42             ` Steve Youngs
2002-01-12 23:25         ` Jason R. Mastaler
2002-01-02 19:06       ` Vincent Bernat
2002-01-03  2:41         ` Lars Magne Ingebrigtsen
2002-01-02 20:53       ` Raymond Scholz
2002-01-03  2:42         ` Lars Magne Ingebrigtsen
2002-01-03 10:02       ` Fabien Penso
2002-01-03 10:22         ` Fabien Penso
2002-01-03 10:37           ` Lars Magne Ingebrigtsen
2002-01-03 11:26             ` Fabien Penso
2002-01-04 17:20               ` Lars Magne Ingebrigtsen
2002-01-04 18:32       ` Zlatko Calusic
2002-01-05  4:34         ` Lars Magne Ingebrigtsen
2002-01-07 21:58           ` John H. Palmieri
2002-01-08  0:46             ` Steve Youngs
2002-01-08 21:17               ` John H. Palmieri
2002-01-08 21:35                 ` John H. Palmieri
2002-01-09 18:31                 ` Andreas Büsching
2002-01-12 13:58                   ` Raymond Scholz [this message]
2002-01-16  2:50                     ` Lars Magne Ingebrigtsen
2002-01-16 21:34                       ` Raymond Scholz
2002-02-17 14:40                     ` Raymond Scholz
2002-01-10  0:48                 ` Lars Magne Ingebrigtsen
2002-01-05 17:25       ` Thomas Kosch
2002-01-05 17:36         ` Lars Magne Ingebrigtsen
2002-01-05 17:44           ` Thomas Kosch
2002-01-05 18:00         ` Lars Magne Ingebrigtsen
2002-01-02 17:41     ` Karl Kleinpaste
2002-01-02 18:56       ` Zlatko Calusic
2002-01-03  2:39         ` Lars Magne Ingebrigtsen
2002-01-03  4:07           ` Karl Kleinpaste
2002-01-03  4:50             ` Lars Magne Ingebrigtsen
2002-01-03  5:40               ` Karl Kleinpaste
2002-01-03  5:44                 ` Lars Magne Ingebrigtsen
2002-01-03 17:33                   ` Karl Kleinpaste
2002-01-03 17:36                     ` Karl Kleinpaste
2002-01-03 18:32                       ` Lars Magne Ingebrigtsen
2002-01-03 19:10                         ` Karl Kleinpaste
2002-01-03 21:56                           ` Steve Youngs
2002-01-04  4:26                           ` Lars Magne Ingebrigtsen
2002-01-03 17:39                     ` Lars Magne Ingebrigtsen
2002-01-03 17:46                       ` Karl Kleinpaste
2002-01-03 17:52                       ` Karl Kleinpaste
2002-01-03 17:58                         ` Simon Josefsson
2002-01-03 18:01                         ` Lars Magne Ingebrigtsen
2002-01-03 18:02                         ` Lars Magne Ingebrigtsen
2002-01-03 18:08                           ` Karl Kleinpaste
2002-01-03 18:12                           ` David S. Goldberg
2002-01-03 18:32                             ` Lars Magne Ingebrigtsen
2002-01-03 23:13                               ` Vincent Bernat
2002-01-04  4:37                                 ` Lars Magne Ingebrigtsen
2002-01-03 19:07                     ` Russ Allbery
2002-01-03 19:47                       ` Karl Kleinpaste
2002-01-04  0:21                       ` Andrew J Cosgriff
2002-01-03 12:55           ` Zlatko Calusic
2002-01-03  2:44       ` Lars Magne Ingebrigtsen
2002-01-02 15:36 ` Simon Josefsson
2002-01-02 16:13 ` Steve Youngs
2002-01-02 17:33 ` Steinar Bang
2002-01-03  0:53   ` Andrew J Cosgriff

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=gd.87n0zj3c2p.fsf@mde1.zonix.de \
    --to=ray-2002@zonix.de \
    --cc=rscholz@zonix.de \
    /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).