From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Getzner Subject: Re: [Bug?] Results of code block printed in wrong place Date: Wed, 24 Sep 2014 13:41:30 +0200 Message-ID: <1411558890.2146.4.camel@gmx.de> References: <871tr3n06a.fsf@nicolasgoaziou.fr> <1411460565.14042.1.camel@gmx.de> <87k34unq6a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWkxB-0002bM-C9 for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 07:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWkx3-000410-SL for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 07:41:49 -0400 Received: from mout.gmx.net ([212.227.15.19]:57423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWkx3-0003zd-Is for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 07:41:41 -0400 In-Reply-To: <87k34unq6a.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Aaron Ecay Cc: emacs-orgmode@gnu.org On Di, 2014-09-23 at 14:32 -0400, Aaron Ecay wrote:=20 > I can reproduce this. > Babel uses yes-or-no-p to confirm evaluation of the code block on export. > yes-or-no-p is implemented in C whereas y-or-n-p is in elisp, so it must > be the case that the lisp code allows some hook to run, which follow-mode > uses to futz with which buffer/window is current, confusing org-mode. > The C implementation I guess doesn=E2=80=99t run the same hook. Thanks for investigating this. That =C2=AByes-or-no-p=C2=BB vs. =C2=ABy-or-= n-p=C2=BB should make such a difference is quite bewildering. > Sounds like the best advice for the moment is =E2=80=9Cdon=E2=80=99t use = follow-mode > with org=E2=80=9D. Maybe it=E2=80=99s worth adding to the section on pac= kage conflicts > in the manual? Aw, that=E2=80=99s a pity. Given the vertically sparse nature of the tree outline, follow-mode was quite naturally suited to complement org-mode, in particular on a wide-screen monitor. Considering you analysis above, should this be considered a bug in follow-mode or Emacs core? If so, I could then pass this on to the appropriate bug tracker. Though I wonder how =C2=AB(TeX-source-correlate-mode)=C2=BB figures into th= is (cf. my cross-link in this thread; hooking that mode into AucTeX will break exporting horribly when both follow-mode and org-mode are active. I thumbed through tex.el, and while it=E2=80=99s mostly Greek to me, I noti= ced that some correlate-related functions also seem to be using y-or-n-p directly. Follow-mode and plain LaTeX-mode appear to work in conjunction, though. Best, T.