comparison lisp/textmodes/artist.el @ 90199:bb71c6cf2009

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-67 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 447-458) - Update from CVS - Update from CVS: lisp/subr.el (add-to-ordered-list): Doc fix. - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 83-85) - Merge from emacs--cvs-trunk--0 - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 30 Jun 2005 00:31:46 +0000
parents 95879cc1ed20 b9819eae04f1
children f9a65d7ebd29
comparison
equal deleted inserted replaced
90198:97f6c3a96df1 90199:bb71c6cf2009
2873 avail-fonts)))) 2873 avail-fonts))))
2874 (if (string= font "") artist-figlet-default-font font))) 2874 (if (string= font "") artist-figlet-default-font font)))
2875 2875
2876 (defun artist-figlet-get-extra-args () 2876 (defun artist-figlet-get-extra-args ()
2877 "Read any extra arguments for figlet." 2877 "Read any extra arguments for figlet."
2878 (let ((extra-args (read-input "Extra args to figlet: "))) 2878 (let ((extra-args (read-string "Extra args to figlet: ")))
2879 (if (string= extra-args "") 2879 (if (string= extra-args "")
2880 nil 2880 nil
2881 extra-args))) 2881 extra-args)))
2882 2882
2883 (defun artist-figlet (text) 2883 (defun artist-figlet (text)
2914 "Prompt for text to render, render it at X,Y. 2914 "Prompt for text to render, render it at X,Y.
2915 This is done by calling the function specified by `artist-text-renderer', 2915 This is done by calling the function specified by `artist-text-renderer',
2916 which must return a list of strings, to be inserted in the buffer. 2916 which must return a list of strings, to be inserted in the buffer.
2917 2917
2918 Text already in the buffer ``shines thru'' blanks in the rendered text." 2918 Text already in the buffer ``shines thru'' blanks in the rendered text."
2919 (let* ((input-text (read-input "Type text to render: ")) 2919 (let* ((input-text (read-string "Type text to render: "))
2920 (rendered-text (artist-funcall artist-text-renderer input-text))) 2920 (rendered-text (artist-funcall artist-text-renderer input-text)))
2921 (artist-text-insert-see-thru x y rendered-text))) 2921 (artist-text-insert-see-thru x y rendered-text)))
2922 2922
2923 2923
2924 (defun artist-text-overwrite (x y) 2924 (defun artist-text-overwrite (x y)
2925 "Prompt for text to render, render it at X,Y. 2925 "Prompt for text to render, render it at X,Y.
2926 This is done by calling the function specified by `artist-text-renderer', 2926 This is done by calling the function specified by `artist-text-renderer',
2927 which must return a list of strings, to be inserted in the buffer. 2927 which must return a list of strings, to be inserted in the buffer.
2928 2928
2929 Blanks in the rendered text overwrites any text in the buffer." 2929 Blanks in the rendered text overwrites any text in the buffer."
2930 (let* ((input-text (read-input "Type text to render: ")) 2930 (let* ((input-text (read-string "Type text to render: "))
2931 (rendered-text (artist-funcall artist-text-renderer input-text))) 2931 (rendered-text (artist-funcall artist-text-renderer input-text)))
2932 (artist-text-insert-overwrite x y rendered-text))) 2932 (artist-text-insert-overwrite x y rendered-text)))
2933 2933
2934 ;; 2934 ;;
2935 ;; Spraying 2935 ;; Spraying