From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#9560: An exact recipe Date: Thu, 20 Oct 2011 21:42:30 -0400 Message-ID: <87hb332k8p.fsf@maru.md5i.com> References: <87zkh54o3x.fsf@maru.md5i.com> <20111019101617.GA2445@acm.acm> <87zkgx2iye.fsf@maru.md5i.com> <20111020114229.GA3617@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319161381 25060 80.91.229.12 (21 Oct 2011 01:43:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 01:43:01 +0000 (UTC) Cc: 9560@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 21 03:42:57 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 1RH48O-0006aG-Qm for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2011 03:42:56 +0200 Original-Received: from localhost ([::1]:50732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH48O-0003IL-Ec for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2011 21:42:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH48L-0003IF-So for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 21:42:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RH48K-00068e-NR for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 21:42:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH48J-00068Q-2j; Thu, 20 Oct 2011 21:42:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RH49S-0004gd-A9; Thu, 20 Oct 2011 21:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 21 Oct 2011 01:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9560 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 9560-submit@debbugs.gnu.org id=B9560.131916143117992 (code B ref 9560); Fri, 21 Oct 2011 01:44:02 +0000 Original-Received: (at 9560) by debbugs.gnu.org; 21 Oct 2011 01:43:51 +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 1RH49G-0004g9-N3 for submit@debbugs.gnu.org; Thu, 20 Oct 2011 21:43:51 -0400 Original-Received: from md5i.com ([75.151.244.229] helo=maru.md5i.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH49E-0004fw-BO for 9560@debbugs.gnu.org; Thu, 20 Oct 2011 21:43:49 -0400 Original-Received: from md5i by maru.md5i.com with local (Exim 4.76) (envelope-from ) id 1RH47y-00050y-Lm; Thu, 20 Oct 2011 21:42:30 -0400 In-Reply-To: <20111020114229.GA3617@acm.acm> (Alan Mackenzie's message of "Thu, 20 Oct 2011 11:42:29 +0000") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 20 Oct 2011 21:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:52965 Archived-At: Alan Mackenzie writes: > Hi, Michael. > > On Wed, Oct 19, 2011 at 09:45:45AM -0400, Michael Welsh Duggan wrote: >> Alan Mackenzie writes: > >> Okay, I've done some experimenting, and unfortunately, I have been >> unable to recreate this problem using this recipe using emacs -Q -nw. >> I've only encountered it using an X window. > > That still perplexes me. I've got a fix, but the problem should have > appeared on a tty and a -nw too. Indeed. Could font-locking interfere at any point? >> In this environment, I was able to recreate the problem consistently. >> I was able to replace the initial "3*C-v 7*C-n" in the macro with >> "100*C-n C-l" and this allowed it to work with larger frame sizes. >> Don't ask me why the C-l is necessary, as I do not know. > >> >> When you have solved this bug, please let me know if the solution has a >> >> reasonable chance of having solved the other problem that I have not >> >> been able to recreate reliably, which is getting "topmost-intro indent >> >> 0" instead of "statement indent 4" when in the middle of editing a >> >> function. If these have little chance of being connected, I'll do my >> >> best to try to create that scenario again (no promises). > > I think there's a good chance of that bug being fixed by the following > patch (no promises ;-). We can always hope! > The bug was a bit of carelessness on my part. I'd done > (unless (and T1 T2 T3) ...) > , and in the body tested > (and T1 (not T3)) > , which is rubbish, since that says nothing about the state of T2. T2 > being the wrong way round was what caused the bug to show up. > > Anyhow, here's the patch. Only the first chunk is for the bug; the rest > of it is the superior instrumentation. Let me know how this goes! Well, it certainly fixes things in my initial tests. After checking in, I would consider this bug closed. I'll open up a new one if I notice something weird in the future. -- Michael Welsh Duggan (md5i@md5i.com)