From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs Subject: bug#810: 23.0.60; atomic-change-group narrowing problem Date: Thu, 28 Aug 2008 23:37:26 +0200 Message-ID: <48B71A96.4040700@gmail.com> References: <48B6F562.9060006@gmail.com> <48B71820.7040108@gmx.at> Reply-To: "Lennart Borgman \(gmail\)" , 810@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219960072 11207 80.91.229.12 (28 Aug 2008 21:47:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 21:47:52 +0000 (UTC) Cc: 810@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 28 23:48:46 2008 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 1KYpMA-0000nk-RO for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 23:48:43 +0200 Original-Received: from localhost ([127.0.0.1]:59231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYpLB-0004u8-A3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 17:47:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYpL7-0004tU-R3 for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYpL5-0004rC-8J for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:37 -0400 Original-Received: from [199.232.76.173] (port=59793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYpL4-0004r3-Sy for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47692) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYpL3-00072K-Ix for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 17:47:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SLlTA3030534; Thu, 28 Aug 2008 14:47:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7SLj4kA029266; Thu, 28 Aug 2008 14:45:04 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 28 Aug 2008 21:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 810 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 810-submit@emacsbugs.donarmstrong.com id=B810.121995945827405 (code B ref 810); Thu, 28 Aug 2008 21:45:03 +0000 Original-Received: (at 810) by emacsbugs.donarmstrong.com; 28 Aug 2008 21:37:38 +0000 Original-Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SLbYQR027399 for <810@emacsbugs.donarmstrong.com>; Thu, 28 Aug 2008 14:37:35 -0700 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64639 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KYpBN-0005IV-77; Thu, 28 Aug 2008 23:37:33 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <48B71820.7040108@gmx.at> X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080828-0, 2008-08-28), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KYpBN-0005IV-77. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KYpBN-0005IV-77 f9cbfd40da20da335f2836d77bd4af99 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 28 Aug 2008 17:47:37 -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:19837 Archived-At: martin rudalics wrote: >> When using atomic-change-group I got the message >> >> undo-more: Changes to be undone are outside visible portion of buffer > > This message is usually a consequence of narrowing the buffer within the > body of `atomic-change-group' or afterwards. > >> The changes are also not undone. This seems wrong to me. > > If you did narrow the buffer this is normal and not specific to > `atomic-change-group'. Maybe, but what is specific to atomic-change-group is that the doc string says Perform body as an atomic change group. This means that if body exits abnormally, all of its changes to the current buffer are undone. AFAICS there is something wrong either in the doc string or in the function. I would suggest that this is a bug in the function. Think for example of the case that you want to test something during narrowing and be sure that the buffer is not changed.