From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#4356: 23.1.50; expand-abbrev changes point erroneously Date: Wed, 05 Oct 2011 23:52:54 -0400 Message-ID: References: <87ljksuzzx.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1317873245 25137 80.91.229.12 (6 Oct 2011 03:54:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 03:54:05 +0000 (UTC) To: 4356-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 05:54:02 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBf21-0005YM-Ph for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 05:54:01 +0200 Original-Received: from localhost ([::1]:59792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBf21-0004DJ-DQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 23:54:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBf1x-00047z-Kp for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 23:53:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBf1w-00036A-Jq for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 23:53:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBf1w-00035z-G3 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 23:53:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBf22-0004bk-LT for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 23:54:02 -0400 Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 03:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 4356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Mail-Followup-To: 4356@debbugs.gnu.org, rgm@gnu.org Original-Received: via spool by 4356-done@debbugs.gnu.org id=D4356.131787318717615 (code D ref 4356); Thu, 06 Oct 2011 03:54:02 +0000 Original-Received: (at 4356-done) by debbugs.gnu.org; 6 Oct 2011 03:53:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBf16-0004Zy-Nj for submit@debbugs.gnu.org; Wed, 05 Oct 2011 23:53:07 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBf13-0004Zd-NU; Wed, 05 Oct 2011 23:53:02 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBf0w-0008IS-Mg; Wed, 05 Oct 2011 23:52:54 -0400 X-Spook: AUTODIN military pre-emptive halcon Arnett e-cash Janet X-Ran: Q~ma}.BF}e"W@f?N&l(A-*PZGzf!LqI[nAv|2SV1OF^>/uP&y7*u:|Ym:?[$lCK]o7)6X4 X-Hue: white X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Tue, 15 Sep 2009 22:46:00 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 05 Oct 2011 23:54:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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:52249 Archived-At: tags 4356 wontfix stop Closing based on this: > Having looked into it some more, I'm not 100% convinced it's a bug > any more. Here's why: > > `expand-abbrev' may run arbitrary code, and some abbrevs don't just > replace text with something else but also prompt and/or move point > (e.g. skeletons). So running expand-abbrev from > visual-basic-newline-and-indent just doesn't sound right since it may > conflict with user-defined abbreviations. > > I.e. the problem you're seeing can also happen in Emacs-22 depending on > the user's own abbreviations. So the VBM code either needs > a save-excursion, or needs to refrain from calling expand-abbrev from > visual-basic-newline-and-indent.