From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 13:15:51 2012 Received: (at submit) by debbugs.gnu.org; 17 Apr 2012 17:15:51 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 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 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 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 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 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) 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 From: To: Date: Tue, 17 Apr 2012 11:11:45 -0600 Subject: emacs 23.4 with --batch and (next-line) Thread-Topic: emacs 23.4 with --batch and (next-line) Thread-Index: Ac0cvMWu4TNWAxmHS5ebgDxJnYbmWw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_B9DACE0D88F57F458EAEB9B2083FFE0D0450C8A021cosusmb12agil_" MIME-Version: 1.0 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --_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_-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 13:39:29 2012 Received: (at control) by debbugs.gnu.org; 17 Apr 2012 17:39:29 +0000 Received: from localhost ([127.0.0.1]:38621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKCNF-0002Mo-53 for submit@debbugs.gnu.org; Tue, 17 Apr 2012 13:39:29 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50266 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKCNC-0002Me-FD for control@debbugs.gnu.org; Tue, 17 Apr 2012 13:39:26 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SKCN3-0006Es-5l for control@debbugs.gnu.org; Tue, 17 Apr 2012 13:39:17 -0400 Date: Tue, 17 Apr 2012 13:39:17 -0400 Message-Id: Subject: control message for bug 11266 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) merge 11053 11266 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 23:12:36 2012 Received: (at submit) by debbugs.gnu.org; 18 Apr 2012 03:12:36 +0000 Received: from localhost ([127.0.0.1]:39076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKLJo-0000DF-Bf for submit@debbugs.gnu.org; Tue, 17 Apr 2012 23:12:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49400) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKLJi-0000Cx-Ax for submit@debbugs.gnu.org; Tue, 17 Apr 2012 23:12:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKLJO-0005EM-5Z for submit@debbugs.gnu.org; Tue, 17 Apr 2012 23:12:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKLJO-0005E9-1u for submit@debbugs.gnu.org; Tue, 17 Apr 2012 23:12:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKLC3-0002fl-MC for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 23:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKLBz-0002rI-7O for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 23:04:31 -0400 Received: from plane.gmane.org ([80.91.229.3]:47538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKLBz-0002r9-0v for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 23:04:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SKLBs-0000Oy-IU for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 05:04:20 +0200 Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Apr 2012 05:04:20 +0200 Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Apr 2012 05:04:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Subject: Re: bug#11266: emacs 23.4 with --batch and (next-line) Date: Tue, 17 Apr 2012 21:05:04 -0600 Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On 4/17/12 11:11 AM, michael_rytting@agilent.com wrote: > I recently upgraded to emacs 23.4 and found a rather obscure bug. When invoked > with –batch emacs behaves differently with the command (next-line) compared to > when it is invoked without batch. I had to switch to using (forward-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. `C-h f next-line' says: If you are thinking of using this in a Lisp program, consider using `forward-line' instead. It is usually easier to use and more reliable (no dependence on goal column, etc.). And `M-: (info "(emacs)Initial Options")' reminds: `--batch' implies `-q' (do not load an initialization file), but `site-start.el' is loaded nonetheless. It also causes Emacs to exit after processing all the command options. In addition, it disables auto-saving except in buffers for which it has been explicitly requested. -- Kevin Rodgers Denver, Colorado, USA From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 18 03:05:06 2012 Received: (at control) by debbugs.gnu.org; 18 Apr 2012 07:05:06 +0000 Received: from localhost ([127.0.0.1]:39200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKOwr-0007D9-9y for submit@debbugs.gnu.org; Wed, 18 Apr 2012 03:05:06 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:35360 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKOwq-0007D3-1u for control@debbugs.gnu.org; Wed, 18 Apr 2012 03:05:04 -0400 Received: from [155.69.17.204] (port=56126 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SKOwd-0002J5-7w for control@debbugs.gnu.org; Wed, 18 Apr 2012 03:04:51 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11053 Date: Wed, 18 Apr 2012 15:04:45 +0800 Message-ID: <877gxdzfjm.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11053 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 18 17:46:52 2012 Received: (at 11266) by debbugs.gnu.org; 18 Apr 2012 21:46:52 +0000 Received: from localhost ([127.0.0.1]:40388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKciC-0007Wp-El for submit@debbugs.gnu.org; Wed, 18 Apr 2012 17:46:52 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:41198) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKci9-0007Wc-Pt; Wed, 18 Apr 2012 17:46:50 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3ILkVdR006106; Wed, 18 Apr 2012 17:46:31 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 70526AE177; Wed, 18 Apr 2012 17:46:29 -0400 (EDT) From: Stefan Monnier To: Subject: Re: bug#11266: emacs 23.4 with --batch and (next-line) Message-ID: References: Date: Wed, 18 Apr 2012 17:46:29 -0400 In-Reply-To: (michael rytting's message of "Tue, 17 Apr 2012 11:11:45 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4196=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4196> : streams <747996> : uri <1100698> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11266 Cc: 11266@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) tags 11266 notabug thanks > 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. `next-line' in Emacs-23 was changed to use visual lines rather than logical lines, so its behavior depends on the shape of the selected window. And indeed, the selected-window depends on the terminal (-batch uses a dummy terminal). Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 18 17:48:23 2012 Received: (at 11266) by debbugs.gnu.org; 18 Apr 2012 21:48:23 +0000 Received: from localhost ([127.0.0.1]:40394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKcja-0007ZS-VD for submit@debbugs.gnu.org; Wed, 18 Apr 2012 17:48:23 -0400 Received: from aglcosbs04.cos.agilent.com ([192.25.218.38]:44070) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKcjV-0007ZC-5i for 11266@debbugs.gnu.org; Wed, 18 Apr 2012 17:48:17 -0400 Received: from 2k7hubs.agilent.com (cos-us-ht03.agilent.com [130.29.152.190]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by aglcosbs04.cos.agilent.com (Postfix) with ESMTP id F254268678; Wed, 18 Apr 2012 21:47:51 +0000 (GMT) Received: from cos-us-mb12.agilent.com ([130.29.28.44]) by cos-us-ht03.agilent.com ([130.29.152.190]) with mapi; Wed, 18 Apr 2012 15:47:51 -0600 From: To: Date: Wed, 18 Apr 2012 15:47:49 -0600 Subject: RE: bug#11266: emacs 23.4 with --batch and (next-line) Thread-Topic: bug#11266: emacs 23.4 with --batch and (next-line) Thread-Index: Ac0drLk8mAZLWpH0QCiyygZgnF00+AAAB5Mw Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.95.3 at aglcosbs04.cos.agilent.com X-Virus-Status: Clean X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11266 Cc: 11266@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Good to know, I've already corrected my scripts to use forward-line instead= . -----Original Message----- From: Stefan Monnier [mailto:monnier@IRO.UMontreal.CA]=20 Sent: Wednesday, April 18, 2012 3:46 PM To: RYTTING,MICHAEL (A-ColSprings,ex1) Cc: 11266@debbugs.gnu.org Subject: Re: bug#11266: emacs 23.4 with --batch and (next-line) tags 11266 notabug thanks > emacs -batch config.log --eval "(next-line 1)" > And you'll see and End of buffer message. While emacs -Q config.log=20 > --eval "(next-line 1)" > Produces no such error. `next-line' in Emacs-23 was changed to use visual lines rather than logical= lines, so its behavior depends on the shape of the selected window. And i= ndeed, the selected-window depends on the terminal (-batch uses a dummy ter= minal). Stefan From unknown Tue Jun 17 22:08:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 17 May 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator