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


Groups > comp.lang.postscript > #1834

Using includes in Emacs

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder01.ams.xsnews.nl!frontend-F09-16.ams.news.kpn.nl
From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject Using includes in Emacs
Organization Decebal Computing
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
X-Face "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E
X-Homepage http://www.decebal.nl/
Date Thu, 27 Mar 2014 11:37:13 +0100
Message-ID <87ppl8vsfa.fsf@Equus.Decebal.nl> (permalink)
Cancel-Lock sha1:+FVFdiGW1blkFhU4vx7q1Ty+f9k=
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Lines 32
NNTP-Posting-Host 77.171.42.144
X-Trace 1395917103 news.kpn.nl 15827 77.171.42.144@kpn/77.171.42.144:49119
Xref csiph.com comp.lang.postscript:1834

Show key headers only | 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:37 +0100
  Re: Using includes in Emacs luser- -droog <mijoryx@yahoo.com> - 2014-03-27 11:14 -0700

csiph-web