Xref: utzoo comp.unix.questions:26367 gnu.emacs.help:85 Path: utzoo!attcan!uunet!aplcen!haven!umbc3!math9.math.umbc.edu!rouben From: rouben@math9.math.umbc.edu Newsgroups: comp.unix.questions,gnu.emacs.help Subject: You are already running an emacs on this machine... Keywords: emacs, C programming, unix Message-ID: <4198@umbc3.UMBC.EDU> Date: 21 Oct 90 01:39:19 GMT Sender: newspost@umbc3.UMBC.EDU Reply-To: rouben@math9.math.umbc.edu Organization: Mathematics Department University of Maryland, Baltimore County Lines: 27 I need help from emacs users/C programmers/unix experts in the netland. I am not an emacs user myself (sorry, vi is good enough for me) but I need to solve the following problem to provide an optional emacs editing interface in a C program that I am writing. The program issues the call: system("emacs filespec") to temporarily transfer control to the shell, to let emacs edit a file, and then return control to the program. The problem is that when emacs is called this way, it comes up with a blank screen and the message: YOU ARE ALREADY RUNNING AN EMACS ON THIS MACHINE USE THAT INSTEAD and it refuses to do anything else! When I replace 'emacs' with 'vi' in the system call, things work as they should. I do not know about emacs to figure out what this message means and how to get around the problem. I would appreciate any hints and suggestions. -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc Baltimore, MD 21228, U.S.A. internet: rostamian@umbc3.umbc.edu