Path: utzoo!attcan!uunet!samsung!usc!apple!sun-barr!ccut!s.u-tokyo!rkna50!nttlab!icot32!kddlab!trl!rdmei!iegva1!creamy!oucom2!tetra02!bon!sana From: sana@news3.t-asted.tis.co.jp (Kazuhiro Sanada) Newsgroups: comp.emacs Subject: Re: front-end-processor Message-ID: Date: 18 Jul 90 23:46:13 GMT References: Sender: news@bon.t-asted.tis.co.jp Distribution: comp.emacs Organization: Toyo Information Systems Co., Tokyo, Japan. Lines: 40 In-reply-to: sana@news3.t-asted.tis.co.jp's message of 11 Jul 90 23:44:51 GMT Dear Mr.Hahn and Mr.Gesley, Thanks a lot for answering to me. Yesterday I got the "GNU Emacs Lisp Manual", so I'm studying with it now. If I could find the way to make a emacs-front-end-processing-environment, I will post here again. (To Mr.Hahn) I'm going to explain the exact meaning of the last letter. I already found the way to use GNU-emacs as a temporary front-end processor, using some description of Emacs-Lisp. Following is an example. (defun ej (arg) (interactive "sInput the word: ") (setq param (format "-D%s" arg)) (call-process "/usr/sanada/srchdb" nil t nil param)) "interactive" function gets string from keyboard. Using "setq" and "format" functions, I can create any string I like as if using "sprintf" function of C-language. "call-process" creates a synchronous process. It calls "/usr/sanada/srchdb" and waits for it to finish. The second parameter is the input file (in this case, no input file), the third output buffer name(in this case, current buffer), the fourth redisplay buffer name. You can write this lisp function on "~/.emacs" or any other file(if you wrote the other file than "~/.emacs", you have to read that file using "load-file" function, which can be called lisp function in "~/.emacs" or M-x environment). When you need the function, you can easily call it under the M-x environment. If there is "interactive" function, you should input a string and set it into the "arg" variable. I heard that "start-process" function can create a non-synchronic process. I'm on the way to learn how to use this, so wait a few days(or weeks, months?) Kazuhiro Sanada sana@news3.t-asted.tis.co.jp