From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4356: 23.1.50; expand-abbrev changes point erroneously Date: Sun, 06 Sep 2009 12:30:26 +0200 Message-ID: <87ljksuzzx.fsf@gmail.com> Reply-To: Vincent =?UTF-8?Q?Bela=C3=AFche?= , 4356@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1252259512 13131 80.91.229.12 (6 Sep 2009 17:51:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2009 17:51:52 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 06 19:51:45 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MkLtx-0007AK-CC for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 19:51:45 +0200 Original-Received: from localhost ([127.0.0.1]:32951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkLtw-0002a7-RO for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 13:51:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkFH5-0008At-CV for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 06:47:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkFGz-00085E-1Y for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 06:47:10 -0400 Original-Received: from [199.232.76.173] (port=43245 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkFGy-00084b-MM for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 06:47:04 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49004) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkFGv-0000y9-CO for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 06:47:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n86AkwS5019611; Sun, 6 Sep 2009 03:46:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n86AZ4lq017642; Sun, 6 Sep 2009 03:35:04 -0700 Resent-Date: Sun, 6 Sep 2009 03:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 06 Sep 2009 10:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4356 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125223291816689 (code B ref -1); Sun, 06 Sep 2009 10:35:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 6 Sep 2009 10:28:38 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n86ASaLm016678 for ; Sun, 6 Sep 2009 03:28:37 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:35981) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MkEz3-0000GG-Me for emacs-pretest-bug@gnu.org; Sun, 06 Sep 2009 06:28:34 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MkEz1-0005PU-Sk for emacs-pretest-bug@gnu.org; Sun, 06 Sep 2009 06:28:33 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:56433) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkEz1-0005Oi-E5 for emacs-pretest-bug@gnu.org; Sun, 06 Sep 2009 06:28:31 -0400 Original-Received: from smtp2f.orange.fr ([80.12.242.152]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkEyw-0003fm-WD for emacs-pretest-bug@gnu.org; Sun, 06 Sep 2009 06:28:27 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2f21.orange.fr (SMTP Server) with ESMTP id 2EC2C80000BD for ; Sun, 6 Sep 2009 12:28:22 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2f21.orange.fr (SMTP Server) with ESMTP id 230E18000320 for ; Sun, 6 Sep 2009 12:28:22 +0200 (CEST) Original-Received: from COCOTTE (ARennes-256-1-128-203.w90-32.abo.wanadoo.fr [90.32.127.203]) by mwinf2f21.orange.fr (SMTP Server) with ESMTP id A8A0580000BD for ; Sun, 6 Sep 2009 12:28:21 +0200 (CEST) X-ME-UUID: 20090906102821690.A8A0580000BD@mwinf2f21.orange.fr X-Detected-Operating-System: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 06 Sep 2009 06:47:09 -0400 X-Mailman-Approved-At: Sun, 06 Sep 2009 13:51:30 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30834 gmane.emacs.pretest.bugs:25015 Archived-At: Here is the bug description. I found this editing some Visual Basic file with using http://www.emacswiki.org/emacs/visual-basic-mode.el If for instance I type after (--!-- showing point when I type ): MyVar =3D MyFun(1,True)--!-- Then in visual basic mode visual-basic-newline-and-indent is called, which in turn calls (expand-abbrev). After (expand-abbrev) is called, point will be moved as follows:=20 MyVar =3D MyFun(1,True--!--)=20 because `True' is one abbreviation. I have patched visual-basic mode, so that a save-excursion encloses the call of expand-abbrev, otherwise I would get: MyVar =3D MyFun(1,True --!--)=20 which is not wanted. Stefan Monnier (monnier@IRO.UMontreal.CA) confirmed this is a bug of expand-abbrev, and asked me to repport it. The wanted behaviour would be that after expanding `True', point would come back to after the `)' where it originally was. BR, Vincent. ----------------------------------------------------------------------- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/Programme/GNU/Emacs/etc/DEBUG for instructions. In GNU Emacs 23.1.50.1 (i386-mingw-nt5.0.2195) of 2009-07-25 on COCOTTE Windowing system distributor `Microsoft Corp.', version 5.0.2195 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: FRA value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: recentf-mode: t mail-abbrevs-mode: t iswitchb-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 1 C-SPC =20 C-x b * s c ( r e q u i r e SPC '=20 c a l c - e x t ) ( l a t SPC ( =20 e t SPC ( c a l=20 c - c o m m a n d ) C-h f C-g C-h=20 v c a l c - c o =20 =20 C-g (=20 c a l c - r a d i x SPC 1 7 ) =20 ( c a l c - e v a l SPC 1 0 =E0 ) =20 ) " " SPC $ =20 ) M-x e v a l - b u f C-x C-e =20 C-h f C-h i m d =20 c a l C-x 1 =20 C-s=20 c a l c e v m e=20 v a l C-x b =20 =20 C-x C-e =20 C-y C-k C-k =20 C-k C-k C-k C-k =20 ( m e s s a g z e SPC =20 e SPC " 1 0 SPC e n SPC b a s e SPC 7 =3D=20 % s " SPC ) M-x =20 C-SPC M-x r e p o r=20 b e m Recent messages: Composing main Info directory...done Mark set Mark saved where search started Mark set [2 times] Number radix is 7 "7#13" Mark set 10 en base 7=3D7#13 Mark set Making completion list... Load-path shadows: d:/Programme/GNU/emacs-extension/cedet/speedbar/speedbar hides d:/Programme= /GNU/Emacs/lisp/speedbar d:/Programme/GNU/emacs-extension/cedet/speedbar/sb-image hides d:/Programme= /GNU/Emacs/lisp/sb-image d:/Programme/GNU/emacs-extension/cedet/common/ezimage hides d:/Programme/GN= U/Emacs/lisp/ezimage d:/Programme/GNU/emacs-extension/cedet/speedbar/dframe hides d:/Programme/G= NU/Emacs/lisp/dframe c:/Documents and Settings/Vincent/Application Data/.emacs.d/etc/custom hide= s d:/Programme/GNU/Emacs/lisp/custom