From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#11266: emacs 23.4 with --batch and (next-line) Date: Tue, 17 Apr 2012 11:11:45 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_B9DACE0D88F57F458EAEB9B2083FFE0D0450C8A021cosusmb12agil_" X-Trace: dough.gmane.org 1334683180 19178 80.91.229.3 (17 Apr 2012 17:19:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 17:19:40 +0000 (UTC) To: 11266@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 19:19:39 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SKC41-00034o-Sv for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 19:19:38 +0200 Original-Received: from localhost ([::1]:40461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKC41-0004BR-2e for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 13:19:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKC0Y-0003VS-KX for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 13:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKC0Q-0004lg-7M for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 13:16:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKC0Q-0004lU-42 for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 13:15:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SKC0Y-0001oc-4N for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 13:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Apr 2012 17:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11266 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.13346829516960 (code B ref -1); Tue, 17 Apr 2012 17:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Apr 2012 17:15:51 +0000 Original-Received: from localhost ([127.0.0.1]:38564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKC0K-0001oA-5a for submit@debbugs.gnu.org; Tue, 17 Apr 2012 13:15:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38209) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKBx1-0001ig-UZ for submit@debbugs.gnu.org; Tue, 17 Apr 2012 13:12:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKBwi-0003Df-Vv for submit@debbugs.gnu.org; Tue, 17 Apr 2012 13:12:09 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:58202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKBwi-0003Da-SK for submit@debbugs.gnu.org; Tue, 17 Apr 2012 13:12:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKBwd-0002Ov-Fm for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 13:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKBwY-0003Bg-0a for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 13:11:58 -0400 Original-Received: from aglcosbs04.cos.agilent.com ([192.25.218.38]:39802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKBwX-0003B8-OD for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 13:11:53 -0400 Original-Received: from 2k7hubs.agilent.com (cos-us-ht02.agilent.com [130.29.152.52]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by aglcosbs04.cos.agilent.com (Postfix) with ESMTP id 3DB35690E2 for ; Tue, 17 Apr 2012 17:11:49 +0000 (GMT) Original-Received: from cos-us-mb12.agilent.com ([130.29.28.44]) by cos-us-ht02.agilent.com ([130.29.152.52]) with mapi; Tue, 17 Apr 2012 11:11:47 -0600 Thread-Topic: emacs 23.4 with --batch and (next-line) Thread-Index: Ac0cvMWu4TNWAxmHS5ebgDxJnYbmWw== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-Virus-Scanned: clamav-milter 0.95.3 at aglcosbs04.cos.agilent.com X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 17 Apr 2012 13:15:46 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Tue, 17 Apr 2012 13:19:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59176 Archived-At: --_000_B9DACE0D88F57F458EAEB9B2083FFE0D0450C8A021cosusmb12agil_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I recently upgraded to emacs 23.4 and found a rather obscure bug. When inv= oked with -batch emacs behaves differently with the command (next-line) com= pared to when it is invoked without batch. I had to switch to using (forwa= rd-line) in my code to work around this. This behavior can be easily seen = by running. emacs -batch config.log --eval "(next-line 1)" And you'll see and End of buffer message. While emacs -Q config.log --eval "(next-line 1)" Produces no such error. Michael Rytting Agilent Technologies michael_rytting@agilent.com 719-590-3708 --_000_B9DACE0D88F57F458EAEB9B2083FFE0D0450C8A021cosusmb12agil_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I recently upgra= ded to emacs 23.4 and found a rather obscure bug.  When invoked with &= #8211;batch emacs behaves differently with the command (next-line) compared= to when it is invoked without batch.  I had to switch to using (forwa= rd-line) in my code to work around this.  This behavior can be easily = seen by running.

 

emacs –batch config.log --eval "(next-line 1)= "

And you’ll see and = End of buffer message.  While

=  

emacs -Q config.log --eval "(next= -line 1)"

 

Produces no such error.

 

 

Michael Rytting

Agilent Techno= logies

michael_rytting@agilent.com

719-590-3708

 

=
= --_000_B9DACE0D88F57F458EAEB9B2083FFE0D0450C8A021cosusmb12agil_--