Gnus development mailing list
 help / color / mirror / Atom feed
* Patch to gnus to use Noah Friedman's upcoming updated vcard.el
@ 2000-02-03 21:53 Hamish Macdonald
  0 siblings, 0 replies; only message in thread
From: Hamish Macdonald @ 2000-02-03 21:53 UTC (permalink / raw)
  Cc: Noah Friedman

After parsing the vcard string, it checks if vcard-pretty-print (a new
function) is available and uses that to format the vcard.  Otherwise
it falls back to vcard-format-string.

This should work fine if the user has either the new or old vcard.el.

Noah hasn't yet released his new version of vcard, but asked me to
check it out since I had some problems with the old package and some
received vcards.

--- gnus-5.8.2/lisp/mm-view.el	Fri Dec  3 14:27:21 1999
+++ /export/users/hamishm/.xemacs/xemacs-packages/lisp/gnus/mm-view.el	Thu Feb  3 16:41:03 2000
@@ -31,7 +31,6 @@
 (eval-and-compile
   (autoload 'gnus-article-prepare-display "gnus-art")
   (autoload 'vcard-parse-string "vcard")
-  (autoload 'vcard-format-string "vcard")
   (autoload 'diff-mode "diff-mode"))
 
 ;;;
@@ -125,9 +124,11 @@
       (mm-insert-inline
        handle
        (concat "\n-- \n"
-	       (vcard-format-string
-		(vcard-parse-string (mm-get-part handle)
-				    'vcard-standard-filter)))))
+	       (let ((str (vcard-parse-string (mm-get-part handle)
+					      'vcard-standard-filter)))
+		 (if (fboundp 'vcard-pretty-print)
+		     (vcard-pretty-print str)
+		   (vcard-format-string str))))))
      (t
       (setq text (mm-get-part handle))
       (let ((b (point))



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-03 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-03 21:53 Patch to gnus to use Noah Friedman's upcoming updated vcard.el Hamish Macdonald

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