Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1835

Using includes in Emacs

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject Using includes in Emacs
Organization Decebal Computing
Date 2014-03-27 11:36 +0100
Message-ID <87y4zwvsh4.fsf@Equus.Decebal.nl> (permalink)

Show all headers | View raw


I am happily trying ‘some’ things with postscript again. It was a
little bit getting used to it after a while, but I am getting used to
it again.

The code I am writing is almost 1400 lines. That is a bit long. In
principal it are different modules. I am using Emacs and with
    C-c C-c

I get a view in Emacs. Is there a way to split the source in several
files and include them? I know about ‘run’, but that only works
without ‘-dSafer’. I could also use ‘gs’ with ‘-f filename’, but that
would be an external command.

At the moment I am using the following:
    (progn
      (shell-command (concat "cd " postscript-dir "; "
                             "gs -sDEVICE=pdfwrite"
                             "   -dNOPAUSE"
                             "   -dBATCH"
                             "   -dSAFER"
                             "   -dQUIET"
                             "   -sOUTPUTFILE=" output-file
                             "   -f meander.eps"
                             " " input-file))
      (find-file (concat postscript-dir output-file)))

It works, but it is not really perfect.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.postscript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Using includes in Emacs Cecil Westerhof <Cecil@decebal.nl> - 2014-03-27 11:36 +0100
  Re: Using includes in Emacs Cecil Westerhof <Cecil@decebal.nl> - 2014-03-27 18:27 +0100

csiph-web