From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Certain numbers of special forms cause changing behaviour on function calls in --batch Date: Fri, 01 Jul 2016 10:21:09 +0300 Message-ID: <8360spvn6i.fsf@gnu.org> References: <8760stvwzp.fsf@web.de> <834m8cvu9p.fsf@gnu.org> <87h9cbpw61.fsf@web.de> <83wpl7v1sg.fsf@gnu.org> <87a8i2dfe3.fsf@web.de> <83poqyvh58.fsf@gnu.org> <87shvu1ixp.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467357711 20403 80.91.229.3 (1 Jul 2016 07:21:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2016 07:21:51 +0000 (UTC) Cc: me@wilfred.me.uk, emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 01 09:21:46 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bIslg-0006OC-9E for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2016 09:21:40 +0200 Original-Received: from localhost ([::1]:54230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIslf-0001bs-Hi for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2016 03:21:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIslZ-0001bj-9C for emacs-devel@gnu.org; Fri, 01 Jul 2016 03:21:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIslV-0002hx-5S for emacs-devel@gnu.org; Fri, 01 Jul 2016 03:21:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIslV-0002ha-23; Fri, 01 Jul 2016 03:21:29 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1294 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bIslS-00028B-K0; Fri, 01 Jul 2016 03:21:27 -0400 In-reply-to: <87shvu1ixp.fsf@web.de> (message from Michael Heerdegen on Thu, 30 Jun 2016 23:10:58 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205017 Archived-At: > From: Michael Heerdegen > Cc: me@wilfred.me.uk, emacs-devel@gnu.org > Date: Thu, 30 Jun 2016 23:10:58 +0200 > > Eli Zaretskii writes: > > > Maybe. But that doesn't help me debug the issue, does it? Perhaps > > someone else can, it's not that hard to dig into these things. > > If you are sure it's a bug (I wasn't) I don't know yet if it is a bug or not. Debugging can reveal what it is. > I can give it a quick try (I'm on vacation). How would you do > proceed? Insert 'message' in strategic places that print values that are important for the code flow, and see what is different in the batch session. In the interactive session, you can step through the code with Edebug to compare the findings (you will have to manually load simple.el into a running session). Just looking at the code, my first suspect would be line-move: it has a special code for non-interactive sessions, so maybe the issue hides there somewhere. Or maybe it's in line-move-1 or the functions it calls (like vertical-motion). Thanks.