all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.