www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/05/08:33:32

Date: Sun, 5 Apr 1998 15:32:43 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ingo Ruhnke <grumbel AT gmx DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: emacs - three questions
In-Reply-To: <3524bc6e.0@news1.cityweb.de>
Message-ID: <Pine.SUN.3.91.980405153117.5976J-100000@is>
MIME-Version: 1.0

On Fri, 3 Apr 1998, Ingo Ruhnke wrote:

> 1. Is there a way I can save the text files in Unix file format
>    and not in the MS-DOS format?

If the original file is a Unix-style text file, use the command
`find-file-binary' when you load the file.

Alternatively, if you already have the text in an Emacs buffer, press
M-:, answer `y' to the prompt, and then type the following
gobbledygook in the echo area:

	     (setq buffer-file-type t)

Now whenever you save the file, Emacs won't convert the newlines into
DOS-style CRLF pairs.

But the best solution is to upgrade to Emacs 20 which will
automagically leave a Unix-style file with its original EOL format.

> 2. When I want to type an shell command <M-!> and press return
>    before anything is typed, emacs hangs (AFAIK because it is in
>    trapped in COMMAND.COM)

Your analysis is correct.  Don't do that.

> 3. Is there a way I can automaticly refresh the screen after a
>    shell command? For example after executing and Allegro Prg
>    the screen is messed, until I type <M-!> refresh-display

Ctrl-L causes a redisplay.

But as far as I understand your situation, you are running graphics
programs via `M-!'.  If so, this is incorrect usage: M-! is meant to
run programs that don't grab the screen; it is meant for programs
which input and output text via the normal stdio functions.

For graphics programs, shell out to DOS using `C-x C-z' and run the
programs from the inferior shell.  When you are done, type "Exit RET"
to return to Emacs.

> 4. If the programm crashes, how can I ran symify over the
>    programm output? I can ran it as a shell command, but
>    don't know if this is the right way, but it works.

`symify' can work on a file where the traceback was saved.  See
section 9.2 of the DJGPP FAQ list.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019