From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: BUG: indenting lisp code marks buffer as dirty when it shouldn't Date: Mon, 25 Nov 2002 09:28:19 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200211251428.gAPESJ102373@rum.cs.yale.edu> References: <15840.45513.721157.204137@quack.quarl.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038235033 2878 80.91.224.249 (25 Nov 2002 14:37:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2002 14:37:13 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18GKIu-0000Pd-00 for ; Mon, 25 Nov 2002 15:33:40 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18GKOY-0004GY-00 for ; Mon, 25 Nov 2002 15:39:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GKEt-0003Ky-00; Mon, 25 Nov 2002 09:29:31 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18GKDn-00014Y-00 for emacs-devel@gnu.org; Mon, 25 Nov 2002 09:28:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18GKDl-00013J-00 for emacs-devel@gnu.org; Mon, 25 Nov 2002 09:28:22 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GKDl-00012W-00 for emacs-devel@gnu.org; Mon, 25 Nov 2002 09:28:21 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id gAPESJ102373; Mon, 25 Nov 2002 09:28:19 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Karl Chen Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9668 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9668 > This bug exists in Emacs 21.2 as well as CVS HEAD 2002-11-23. as well as in Emacs-20.7. > Synopsis: > > emacs -q > > C-space > > insert "t ;; blah\n" [ in scratch or any lisp buffer ] Does it really ? That's odd. It doesn't for me. The reason why it doesn't is that the ;; is inside a string, so it doesn't try to reindent it (Emacs-20.7 behaves as you describe because I doesn't pay attention to the string quotes). But the problem would appear if you removed the quotes, because the reindentation would try to reindent the comment and that code is not careful to modify the text "only if needed". I'll see how hard it would be to fix it. Stefan