From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [BUG] Marker points into wrong buffer Date: Tue, 12 Nov 2013 00:55:29 +0100 Message-ID: <87eh6mcx3i.fsf@pank.iue.private> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg1Ke-0005F7-Vh for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 18:55:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vg1Ka-0005ty-09 for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 18:55:48 -0500 Received: from plane.gmane.org ([80.91.229.3]:42347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg1KZ-0005th-LH for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 18:55:43 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vg1KW-0006RW-M2 for emacs-orgmode@gnu.org; Tue, 12 Nov 2013 00:55:40 +0100 Received: from dynamic-adsl-94-34-191-249.clienti.tiscali.it ([94.34.191.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Nov 2013 00:55:40 +0100 Received: from rasmus by dynamic-adsl-94-34-191-249.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Nov 2013 00:55:40 +0100 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: emacs-orgmode@gnu.org Cc: dmantipov@yandex.ru, schulte.eric@gmail.com --=-=-= Content-Type: text/plain Hi all, This is a follow-up to Eric F's previous bug-report about getting "Marker points into wrong buffer" when having Babel #+CALL statements in Emacs Org-mode. Here's (one of) the previous messages about the issue: http://permalink.gmane.org/gmane.emacs.orgmode/77515 I bisected emacs-bzr to find the revision where it breaks for me (cf. attached test case). It's this one: committer: Dmitry Antipov branch nick: trunk timestamp: Thu 2013-08-29 20:36:54 +0400 message: * intervals.c (set_point_from_marker): New function. * editfns.c (Fgoto_char): * process.c (Finternal_default_process_filter): * window.c (select_window_1): Use it. * buffer.h (set_point_from_marker): Add prototype. The test file is test.sh which returns 0 if everything is good. After running test one switches revision, which is the job of bzr bisect, though I was unable to get it working. If anyone can figure out what is wrong on the Org side or what "broke" in Emacs-Core it would be great! "Luckily" it's an all-C commit so I don't know how to proceed from here. . . Thanks in advance, Rasmus -- You people at the NSA are becoming my new best friends! --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=r114069.patch Content-Transfer-Encoding: base64 LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tCnJldm5vOiAxMTQwNjkKY29tbWl0dGVyOiBEbWl0cnkgQW50aXBvdiA8ZG1hbnRpcG92QHlh bmRleC5ydT4KYnJhbmNoIG5pY2s6IHRydW5rCnRpbWVzdGFtcDogVGh1IDIwMTMtMDgtMjkgMjA6 MzY6NTQgKzA0MDAKbWVzc2FnZToKICAqIGludGVydmFscy5jIChzZXRfcG9pbnRfZnJvbV9tYXJr ZXIpOiBOZXcgZnVuY3Rpb24uCiAgKiBlZGl0Zm5zLmMgKEZnb3RvX2NoYXIpOgogICogcHJvY2Vz cy5jIChGaW50ZXJuYWxfZGVmYXVsdF9wcm9jZXNzX2ZpbHRlcik6CiAgKiB3aW5kb3cuYyAoc2Vs ZWN0X3dpbmRvd18xKTogVXNlIGl0LgogICogYnVmZmVyLmggKHNldF9wb2ludF9mcm9tX21hcmtl cik6IEFkZCBwcm90b3R5cGUuCmRpZmY6Cj09PSBtb2RpZmllZCBmaWxlICdz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zZWxlY3Qtd2luZG93 IiwgRnNlbGVjdF93aW5kb3csIFNzZWxlY3Rfd2luZG93LCAxLCAyLCAwLAo= --=-=-= Content-Type: text/x-sh Content-Disposition: attachment; filename=test.sh #!/bin/bash make maintainer-clean > /dev/null 2>&1 ./autogen.sh > /dev/null 2>&1 ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \ --localstatedir=/var --without-x --without-sound > /dev/null 2>&1 make > /dev/null 2>&1 ./src/emacs -l ./test.el --batch | grep 0 --=-=-= Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename=test.org Content-Transfer-Encoding: base64 KiBiYWJlbCB0ZXN0CiMrbmFtZTogdGVzdAojK2JlZ2luX3NyYyBlbWFjcy1saXNwIDp2YXIgeD01 CiAgKGxpc3QgeCkKIytlbmRfc3JjCgoKIytjYWxsOiB0ZXN0KCcoYSBiIGMpKQo= --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=test.el Content-Transfer-Encoding: quoted-printable #!/usr/bin/emacs --script (defun yes-or-no-p (&rest body) t) (defun message (&rest body )) (progn (require 'ox) (with-temp-buffer (insert-file "test.org") (org-latex-export-as-latex)) (print 0)) --=-=-=--