From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41959 Path: main.gmane.org!not-for-mail From: Wes Hardaker Newsgroups: gmane.emacs.gnus.general Subject: smiley problems (and a patch to fix them) Date: Sun, 13 Jan 2002 22:24:28 -0800 Organization: Network Associates - NAI Labs Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035177272 8846 80.91.224.250 (21 Oct 2002 05:14:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:14:32 +0000 (UTC) Return-Path: Original-Received: (qmail 6534 invoked from network); 14 Jan 2002 06:25:06 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 14 Jan 2002 06:25:06 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16Q0Y3-0007qE-00; Mon, 14 Jan 2002 00:24:47 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 14 Jan 2002 00:24:39 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id AAA13637 for ; Mon, 14 Jan 2002 00:24:29 -0600 (CST) Original-Received: (qmail 6515 invoked by alias); 14 Jan 2002 06:24:32 -0000 Original-Received: (qmail 6510 invoked from network); 14 Jan 2002 06:24:31 -0000 Original-Received: from dns2.hardaker.davis.ca.us (HELO wanderer.hardakers.net) (root@168.150.190.2) by gnus.org with SMTP; 14 Jan 2002 06:24:31 -0000 Original-Received: (from hardaker@localhost) by wanderer.hardakers.net (8.11.6/8.11.6) id g0E6OTP01658; Sun, 13 Jan 2002 22:24:29 -0800 Original-To: ding@gnus.org X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/ IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4 Original-Lines: 35 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Civil Service, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:41959 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:41959 If you have smileys turned on, but the files aren't where they're supposed to be you end up getting the smiley replaced by a glyph with no symbol. To fix this, I wrote the following hack which at least puts in a textual glyph of the smiley instead. I was going to have it not put in anything, but the tty display is putting in a glyph (though why is a good question), so... it's sort of up for debate as to what the best thing to do is. =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/smiley.el,v retrieving revision 6.8 diff -u -r6.8 smiley.el --- smiley.el 2001/12/18 16:14:19 6.8 +++ smiley.el 2002/01/14 06:22:28 @@ -185,12 +185,12 @@ ("features" ,smiley-features-color) ("tongue" ,smiley-tongue-color)) xpm-color-symbols))) + (smileypath (expand-file-name pixmap smiley-data-directory)) + (graphicsmiley (if (file-exists-p smileypath) smileypath smiley)) (glyph (make-glyph (list - (cons (if (featurep 'gtk) 'gtk 'x) - (expand-file-name pixmap smiley-data-directory)) - (cons 'mswindows - (expand-file-name pixmap smiley-data-directory)) + (cons (if (featurep 'gtk) 'gtk 'x) graphicsmiley) + (cons 'mswindows graphicsmiley) (cons 'tty smiley))))) (setq smiley-glyph-cache (cons (cons pixmap glyph) smiley-glyph-cache)) (set-glyph-face glyph 'default) -- "Ninjas aren't dangerous. They're more afraid of you than you are of them."