diff options
author | Glenn Morris <rgm@gnu.org> | 2008-09-20 20:57:47 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-09-20 20:57:47 +0000 |
commit | ca514f72742ad18007b61882d6ee2db93caba604 (patch) | |
tree | 3073fb24bc3e7626045b9a54c918d24d5675ed97 /lisp/play/fortune.el | |
parent | 15688fceeb6b39830ab6bc761ad32678bf745e9e (diff) | |
download | emacs-ca514f72742ad18007b61882d6ee2db93caba604.tar.gz |
Justin Bogner <mail at justinbogner.com> (tiny change)
(fortune-program-options): Change to a list.
(fortune-in-buffer): Use apply.
Diffstat (limited to 'lisp/play/fortune.el')
-rw-r--r-- | lisp/play/fortune.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/play/fortune.el b/lisp/play/fortune.el index 5e25ebae1fe..5c7d2d21b8e 100644 --- a/lisp/play/fortune.el +++ b/lisp/play/fortune.el @@ -87,9 +87,9 @@ Normally you won't have a reason to change it." "Program to select a fortune cookie." :type 'string :group 'fortune) -(defcustom fortune-program-options "" - "Options to pass to the fortune program (a string)." - :type 'string +(defcustom fortune-program-options () + "Options to pass to the fortune program." + :type '(repeat string) :group 'fortune) (defcustom fortune-strfile "strfile" "Program to compute a new fortune database." @@ -299,11 +299,10 @@ when supplied, specifies the file to choose the fortune from." (if fortune-always-compile (fortune-compile fort-file)) - (call-process - fortune-program ;; programm to call - nil fortune-buffer nil ;; INFILE BUFFER DISPLAYP - (concat fortune-program-options fort-file))))) - + (apply 'call-process + fortune-program ;; program to call + nil fortune-buffer nil ;; INFILE BUFFER DISPLAYP + fort-file fortune-program-options)))) ;;;###autoload (defun fortune (&optional file) |