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: Mon, 27 Jul 2009 08:23:55 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_e4dc8fae-0bf6-4716-bb53-4f2c86c7f688_" X-Trace: ger.gmane.org 1248675857 9782 80.91.229.12 (27 Jul 2009 06:24:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 06:24:17 +0000 (UTC) Cc: emacs-devel To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 08:24:10 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 1MVJd3-0006mL-UZ for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 08:24:10 +0200 Original-Received: from localhost ([127.0.0.1]:32924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVJd3-0001DU-8d for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 02:24:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVJcw-0001DF-TH for emacs-devel@gnu.org; Mon, 27 Jul 2009 02:24:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVJcr-0001D3-Ar for emacs-devel@gnu.org; Mon, 27 Jul 2009 02:24:01 -0400 Original-Received: from [199.232.76.173] (port=49053 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVJcr-0001D0-4B for emacs-devel@gnu.org; Mon, 27 Jul 2009 02:23:57 -0400 Original-Received: from blu0-omc3-s34.blu0.hotmail.com ([65.55.116.109]:13744) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVJcq-0001Ic-0u for emacs-devel@gnu.org; Mon, 27 Jul 2009 02:23:56 -0400 Original-Received: from BLU104-W19 ([65.55.116.72]) by blu0-omc3-s34.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 26 Jul 2009 23:23:56 -0700 X-Originating-IP: [90.32.159.15] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 27 Jul 2009 06:23:56.0243 (UTC) FILETIME=[D1D53A30:01CA0E82] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:113206 Archived-At: --_e4dc8fae-0bf6-4716-bb53-4f2c86c7f688_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ! _________________________________________________________________ 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= --_e4dc8fae-0bf6-4716-bb53-4f2c86c7f688_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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)
=A0 "Insert a newline=2C updating indentation= ."
=A0 (interactive)
=A0 (expand-abbrev)
=A0 (save-excursion
= =A0 (visual-basic-indent-line))
=A0 (call-interactively 'newline-and-i= ndent))





From: vincent.b.1@hotmai= l.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-a= bbrev 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.

=A0 =A0Vincent.
PS: thanks again to Eli for= assistance in building.
=A0 =A0

>=3B From: monnier@iro.umontre= al.ca
>=3B To: vincent.b.1@hotmail.fr
>=3B Date: Sun=2C 26 Jul 20= 09 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 (--!-- showing point when I ty= pe <=3BRET>=3B):
>=3B >=3B MyVar =3D MyFun(1=2CTrue)--!--
&g= t=3B >=3B Then just after (expand-abbrev)=2C point will be moved as follo= ws:
>=3B >=3B MyVar =3D MyFun(1=2CTrue--!--)
>=3B >=3B becau= se `True' is one abbreviation=2C so as a result I get this:
>=3B
&= gt=3B This looks like a bug I fixed.
>=3B
>=3B >=3B My emacs v= ersion 23.0.60.1 (i386-mingw-nt5.0.2195)
>=3B
>=3B This is anci= ent=2C please try the latest pretest to confirm it's fixed there=2C
>= =3B
>=3B
>=3B Stefan
>=3B
>=3B


V= otre correspondant a choisi Hotmail et profite d'un stockage quasiment illi= mit=E9. Cr=E9ez = un compte Hotmail gratuitement !

Votre correspondant a chois= i Hotmail et profite d'un stockage quasiment illimit=E9. Cr=E9ez un compte = Hotmail gratuitement ! = --_e4dc8fae-0bf6-4716-bb53-4f2c86c7f688_--