From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Vincent_Bela=EFche?= Newsgroups: gmane.emacs.devel Subject: RE: Is that OK the way expand-abbrev moves point ? Date: Wed, 26 Aug 2009 02:12:56 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_bcdeba4d-97e1-4475-9947-844e7468df19_" X-Trace: ger.gmane.org 1251245602 11189 80.91.229.12 (26 Aug 2009 00:13:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 00:13:22 +0000 (UTC) Cc: emacs-devel To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 26 02:13:15 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mg68X-0007nK-7l for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2009 02:13:13 +0200 Original-Received: from localhost ([127.0.0.1]:59720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mg68W-0004aj-Jp for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2009 20:13:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mg68Q-0004YI-3W for emacs-devel@gnu.org; Tue, 25 Aug 2009 20:13:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mg68K-0004Qy-HW for emacs-devel@gnu.org; Tue, 25 Aug 2009 20:13:05 -0400 Original-Received: from [199.232.76.173] (port=47105 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mg68K-0004Qv-DY for emacs-devel@gnu.org; Tue, 25 Aug 2009 20:13:00 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:48563) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mg68J-0005On-Ts for emacs-devel@gnu.org; Tue, 25 Aug 2009 20:13:00 -0400 Original-Received: from blu0-omc3-s25.blu0.hotmail.com ([65.55.116.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mg68I-00066c-Bq for emacs-devel@gnu.org; Tue, 25 Aug 2009 20:12:58 -0400 Original-Received: from BLU104-W21 ([65.55.116.74]) by blu0-omc3-s25.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Aug 2009 17:12:57 -0700 X-Originating-IP: [116.6.19.245] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 26 Aug 2009 00:12:57.0314 (UTC) FILETIME=[F6DEB420:01CA25E1] X-Detected-Operating-System: by mx20.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114600 Archived-At: --_bcdeba4d-97e1-4475-9947-844e7468df19_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Stefan=2C By the way=2C as I already wrote: I tried with GNU Emacs 23.1.50.1 (i386-mi= ngw-nt5.0.2195) of 2009-07-25 and the problem is still there. Sorry if I missed your answer: what shall I do ? Do you want me to fill in = a bug report ? Vincent. From: vincent.b.1@hotmail.fr To: monnier@iro.umontreal.ca Date: Mon=2C 27 Jul 2009 08:23:55 +0200 CC: emacs-devel@gnu.org Subject: RE: Is that OK the way expand-abbrev moves point ? FYI I have patched the visual-basic-mode.el that is on EmacsWiki to hide th= e problem (well I did not know whether it was a problem)=2C to reproduce it= you have to use this function: (defun visual-basic-newline-and-indent (&optional count) "Insert a newline=2C updating indentation." (interactive) (expand-abbrev) (save-excursion (visual-basic-indent-line)) (call-interactively 'newline-and-indent)) From: vincent.b.1@hotmail.fr To: monnier@iro.umontreal.ca Date: Mon=2C 27 Jul 2009 08:20:27 +0200 CC: emacs-devel@gnu.org Subject: RE: Is that OK the way expand-abbrev moves point ? I tried with GNU Emacs 23.1.50.1 (i386-mingw-nt5.0.2195) of 2009-07-25 and it is still there. Vincent. PS: thanks again to Eli for assistance in building. =20 > From: monnier@iro.umontreal.ca > To: vincent.b.1@hotmail.fr > Date: Sun=2C 26 Jul 2009 10:09:20 -0400 > CC: emacs-devel@gnu.org > Subject: Re: Is that OK the way expand-abbrev moves point ? >=20 > > If for instance I type after (--!-- showing point when I type ): > > MyVar =3D MyFun(1=2CTrue)--!-- > > Then just after (expand-abbrev)=2C point will be moved as follows: > > MyVar =3D MyFun(1=2CTrue--!--) > > because `True' is one abbreviation=2C so as a result I get this: >=20 > This looks like a bug I fixed. >=20 > > My emacs version 23.0.60.1 (i386-mingw-nt5.0.2195) >=20 > This is ancient=2C please try the latest pretest to confirm it's fixed th= ere=2C >=20 >=20 > Stefan >=20 >=20 Votre correspondant a choisi Hotmail et profite d'un stockage quasiment ill= imit=E9. Cr=E9ez un compte Hotmail gratuitement ! Votre correspondant a choisi Hotmail et profite d'un stockage quasiment ill= imit=E9. Cr=E9ez un compte Hotmail gratuitement ! _________________________________________________________________ T=E9l=E9phonez gratuitement =E0 tous vos proches avec Windows Live Messenge= r=A0 !=A0 T=E9l=E9chargez-le maintenant ! http://www.windowslive.fr/messenger/1.asp= --_bcdeba4d-97e1-4475-9947-844e7468df19_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Stefan=2C

By the way=2C as I already wrote: I tried with GNU E= macs 23.1.50.1 (i386-mingw-nt5.0.2195) of 2009-07-25
and the problem is = still there.

Sorry if I missed your answer: what shall I do ? Do you= want me to fill in a bug report ?

 =3B =3B Vincent.

=

From: vincent.b.1@hotmail.fr
To: monnier@iro= .umontreal.ca
Date: Mon=2C 27 Jul 2009 08:23:55 +0200
CC: emacs-devel= @gnu.org
Subject: RE: Is that OK the way expand-abbrev moves point ?
=
FYI I have patched the visual-basic-mode.el that is on EmacsWiki to hide th= e problem (well I did not know whether it was a problem)=2C to reproduce it= you have to use this function:

(defun visual-basic-newline-and-inde= nt (&=3Boptional count)
 =3B "Insert a newline=2C updating indent= ation."
 =3B (interactive)
 =3B (expand-abbrev)
 =3B= (save-excursion
 =3B (visual-basic-indent-line))
 =3B (cal= l-interactively 'newline-and-indent))





From: vincent.b.1@hotmail.fr
To: monnier@iro.umontreal.ca
Da= te: Mon=2C 27 Jul 2009 08:20:27 +0200
CC: emacs-devel@gnu.org
Subject= : RE: Is that OK the way expand-abbrev moves point ?

I tried with GNU Emacs 23.1.50.1 (i386-mingw-nt5.0.2195) of 2009-07-25
a= nd it is still there.

 =3B  =3BVincent.
PS: thanks again = to Eli for assistance in building.
 =3B  =3B

>=3B From:= monnier@iro.umontreal.ca
>=3B To: vincent.b.1@hotmail.fr
>=3B Da= te: Sun=2C 26 Jul 2009 10:09:20 -0400
>=3B CC: emacs-devel@gnu.org
= >=3B Subject: Re: Is that OK the way expand-abbrev moves point ?
>= =3B
>=3B >=3B If for instance I type <=3BRET>=3B after (--!-- s= howing point when I type <=3BRET>=3B):
>=3B >=3B MyVar =3D MyFu= n(1=2CTrue)--!--
>=3B >=3B Then just after (expand-abbrev)=2C point = will be moved as follows:
>=3B >=3B MyVar =3D MyFun(1=2CTrue--!--)<= br>>=3B >=3B because `True' is one abbreviation=2C so as a result I get= this:
>=3B
>=3B This looks like a bug I fixed.
>=3B
&g= t=3B >=3B My emacs version 23.0.60.1 (i386-mingw-nt5.0.2195)
>=3B <= br>>=3B This is ancient=2C please try the latest pretest to confirm it's = fixed there=2C
>=3B
>=3B
>=3B Stefan
>=3B >=3B


Votre correspondant a choisi Hotmail et profite d'un st= ockage quasiment illimit=E9. Cr=E9ez un compte Hotmail gratuitement !

Votre corr= espondant a choisi Hotmail et profite d'un stockage quasiment illimit=E9. <= a href=3D"http://www.windowslive.fr/hotmail/default.asp"> Cr=E9ez un compte= Hotmail gratuitement !

Discutez sur Messenger o=F9 que vous= soyez ! Mettez Messenger sur votre mobile ! = --_bcdeba4d-97e1-4475-9947-844e7468df19_--