Gnus development mailing list
 help / color / mirror / Atom feed
From: Wes Hardaker <wes@hardakers.net>
Subject: smiley problems (and a patch to fix them)
Date: Sun, 13 Jan 2002 22:24:28 -0800	[thread overview]
Message-ID: <sdwuyl78mb.fsf@wanderer.hardakers.net> (raw)


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



             reply	other threads:[~2002-01-14  6:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-14  6:24 Wes Hardaker [this message]
2002-01-14  7:23 ` Daniel Pittman
2002-01-14 18:24   ` Wes Hardaker
2002-01-19 22:35 ` Lars Magne Ingebrigtsen
2002-01-25 16:26   ` Wes Hardaker

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=sdwuyl78mb.fsf@wanderer.hardakers.net \
    --to=wes@hardakers.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.
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).