From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Bizarre gnuplot file creation error Date: Thu, 09 Nov 2017 18:07:11 +0000 Message-ID: <87zi7ve374.fsf@delle7240.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCrEW-0007Wj-RS for emacs-orgmode@gnu.org; Thu, 09 Nov 2017 13:07:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCrET-0006NS-GO for emacs-orgmode@gnu.org; Thu, 09 Nov 2017 13:07:20 -0500 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:55038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCrET-0006M8-8q for emacs-orgmode@gnu.org; Thu, 09 Nov 2017 13:07:17 -0500 Received: by mail-wm0-x234.google.com with SMTP id r68so19535731wmr.3 for ; Thu, 09 Nov 2017 10:07:17 -0800 (PST) In-Reply-To: (Lawrence Bottorff's message of "Tue, 7 Nov 2017 09:42:36 -0500") 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" To: Lawrence Bottorff Cc: emacs-orgmode Mailinglist --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tuesday, 7 Nov 2017 at 09:42, Lawrence Bottorff wrote: > Still haven't tracked down the exact steps to reproduce this problem, but > it happened again recently -- and starting a new emacs from the command > line solved it, i.e., my usual daemon-run emacs seems to be "crudding up" > somehow. The issue is that gnuplot mode uses a gnuplot session (in the *gnuplot* buffer). If you start gnuplot by executing a src block somewhere in your file system and then move to another org file elsewhere in the file system, the same *gnuplot* buffer will be used, placing the file in the wrong place as far as the second file is concerned. The working directory of the gnuplot buffer is not updated. The immediate solution is to kill the *gnuplot* buffer... messy but works. The proper solution would be to update ob-gnuplot to change the working directory at every invocation of gnuplot to be the directory where the org file is found. (gnuplot has a "cd" command for this purpose) =2D-=20 : Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-117-g5b2b8f --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWgSZTwAKCRDIkZPY//z2 fSIIAJ0aPIegPRrw0nh522t3PFxRqf6GdACeLDOZisFODWqEUoslVDmUAK/8400= =MHga -----END PGP SIGNATURE----- --=-=-=--