diff options
| author | Roland Winkler | 2006-05-21 19:10:12 +0000 |
|---|---|---|
| committer | Roland Winkler | 2006-05-21 19:10:12 +0000 |
| commit | f904adbb72473d9c0665e3d65943d86e051d6a3a (patch) | |
| tree | c3fc73b75041142d06158436d3af2d671fa4283e | |
| parent | 9e2d84ccc8e567108ec35c8eef9cbf2eddeaccb6 (diff) | |
| download | emacs-f904adbb72473d9c0665e3d65943d86e051d6a3a.tar.gz emacs-f904adbb72473d9c0665e3d65943d86e051d6a3a.zip | |
(artist-text-renderer): Make this the alias for the following variable.
(artist-text-renderer-function): Make this the real name.
| -rw-r--r-- | lisp/textmodes/artist.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index 9305bdbf9bc..d5dcdd0d9ef 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el | |||
| @@ -365,10 +365,11 @@ Example: | |||
| 365 | "*If in X Windows, use this pointer shape while drawing with the mouse.") | 365 | "*If in X Windows, use this pointer shape while drawing with the mouse.") |
| 366 | 366 | ||
| 367 | 367 | ||
| 368 | (defcustom artist-text-renderer 'artist-figlet | 368 | (defcustom artist-text-renderer-function 'artist-figlet |
| 369 | "Function for doing text rendering." | 369 | "Function for doing text rendering." |
| 370 | :group 'artist-text | 370 | :group 'artist-text |
| 371 | :type 'symbol) | 371 | :type 'symbol) |
| 372 | (defvaralias 'artist-text-renderer 'artist-text-renderer-function) | ||
| 372 | 373 | ||
| 373 | 374 | ||
| 374 | (defcustom artist-figlet-program "figlet" | 375 | (defcustom artist-figlet-program "figlet" |
| @@ -2910,23 +2911,25 @@ Let blanks in TEXT overwrite any text already in the buffer." | |||
| 2910 | 2911 | ||
| 2911 | (defun artist-text-see-thru (x y) | 2912 | (defun artist-text-see-thru (x y) |
| 2912 | "Prompt for text to render, render it at X,Y. | 2913 | "Prompt for text to render, render it at X,Y. |
| 2913 | This is done by calling the function specified by `artist-text-renderer', | 2914 | This is done by calling the function specified by |
| 2914 | which must return a list of strings, to be inserted in the buffer. | 2915 | `artist-text-renderer-function', which must return a list of strings, |
| 2916 | to be inserted in the buffer. | ||
| 2915 | 2917 | ||
| 2916 | 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." |
| 2917 | (let* ((input-text (read-string "Type text to render: ")) | 2919 | (let* ((input-text (read-string "Type text to render: ")) |
| 2918 | (rendered-text (artist-funcall artist-text-renderer input-text))) | 2920 | (rendered-text (artist-funcall artist-text-renderer-function input-text))) |
| 2919 | (artist-text-insert-see-thru x y rendered-text))) | 2921 | (artist-text-insert-see-thru x y rendered-text))) |
| 2920 | 2922 | ||
| 2921 | 2923 | ||
| 2922 | (defun artist-text-overwrite (x y) | 2924 | (defun artist-text-overwrite (x y) |
| 2923 | "Prompt for text to render, render it at X,Y. | 2925 | "Prompt for text to render, render it at X,Y. |
| 2924 | This is done by calling the function specified by `artist-text-renderer', | 2926 | This is done by calling the function specified by |
| 2925 | which must return a list of strings, to be inserted in the buffer. | 2927 | `artist-text-renderer-function', which must return a list of strings, |
| 2928 | to be inserted in the buffer. | ||
| 2926 | 2929 | ||
| 2927 | Blanks in the rendered text overwrites any text in the buffer." | 2930 | Blanks in the rendered text overwrites any text in the buffer." |
| 2928 | (let* ((input-text (read-string "Type text to render: ")) | 2931 | (let* ((input-text (read-string "Type text to render: ")) |
| 2929 | (rendered-text (artist-funcall artist-text-renderer input-text))) | 2932 | (rendered-text (artist-funcall artist-text-renderer-function input-text))) |
| 2930 | (artist-text-insert-overwrite x y rendered-text))) | 2933 | (artist-text-insert-overwrite x y rendered-text))) |
| 2931 | 2934 | ||
| 2932 | ;; | 2935 | ;; |