changeset 98269:c4f6098c0914

Justin Bogner <mail at justinbogner.com> (tiny change) (fortune-program-options): Change to a list. (fortune-in-buffer): Use apply.
author Glenn Morris <rgm@gnu.org>
date Sat, 20 Sep 2008 20:57:36 +0000
parents 2e2d18ca9e6f
children 8bd02489da8d
files lisp/play/fortune.el
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/play/fortune.el	Sat Sep 20 20:25:05 2008 +0000
+++ b/lisp/play/fortune.el	Sat Sep 20 20:57:36 2008 +0000
@@ -87,9 +87,9 @@
   "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 @@
       (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)