unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 'make-comint' question
@ 2013-07-31 11:42 Thorsten Jolitz
  2013-07-31 12:44 ` Tassilo Horn
  2013-07-31 14:44 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Thorsten Jolitz @ 2013-07-31 11:42 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

I erase and save the buffer of an config-file for an external program
before applying 'make-comint on that program, and restore the file to
its old state afterwards:

#+begin_src emacs-lisp
  [...]
  (erase-config-file-for-external-process)
  (set-buffer
   (apply 'make-comint name (car cmd) nil (cdr cmd)))
  (rename-buffer "buffer-name")
  (restore-config-file-for-external-process)
  [...]
#+end_src

When I edebug my code, it does exactly what it should, and the new
inferior subprocess starts without the (unnecessary) configurations
of the erased config file, as it should.

However, when I simply run my code without debugging, the new
inferior subprocess starts _with_ the (unnecessary) configurations,
what seems quite strange to me. 

Is there anything in the code example above that implies that the
execution order of the statements could be different from their
sequential ordering in the source-code?

-- 
cheers,
Thorsten




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-08-01  7:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31 11:42 'make-comint' question Thorsten Jolitz
2013-07-31 12:44 ` Tassilo Horn
2013-07-31 13:51   ` Thorsten Jolitz
2013-07-31 14:44 ` Stefan Monnier
2013-07-31 15:23   ` Thorsten Jolitz
2013-08-01  3:43     ` Stefan Monnier
2013-08-01  7:58       ` Thorsten Jolitz
2013-07-31 17:37   ` Thorsten Jolitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).