From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylor R Campbell Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3824: 23.1.50; too much effort is put into handling Scheme S-expression comments, causing problems Date: Tue, 3 May 2011 17:20:52 +0000 Message-ID: <20110503172138.03F3C982B7@pluto.mumble.net> References: <20090711163545.1FF939828B@pluto.mumble.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1304444223 32745 80.91.229.12 (3 May 2011 17:37:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 May 2011 17:37:03 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, 3824@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 03 19:36:59 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 1QHJWt-0003MP-4M for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2011 19:36:59 +0200 Original-Received: from localhost ([::1]:48313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHJWs-0003gF-L8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2011 13:36:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHJWp-0003g5-Ic for bug-gnu-emacs@gnu.org; Tue, 03 May 2011 13:36:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHJWo-0008Rx-MG for bug-gnu-emacs@gnu.org; Tue, 03 May 2011 13:36:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHJWo-0008Rs-JW for bug-gnu-emacs@gnu.org; Tue, 03 May 2011 13:36:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QHJMI-0000dQ-5x; Tue, 03 May 2011 13:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Taylor R Campbell Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 May 2011 17:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3824 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 3824-submit@debbugs.gnu.org id=B3824.13044435102367 (code B ref 3824); Tue, 03 May 2011 17:26:02 +0000 Original-Received: (at 3824) by debbugs.gnu.org; 3 May 2011 17:25:10 +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 1QHJLR-0000c7-QB for submit@debbugs.gnu.org; Tue, 03 May 2011 13:25:10 -0400 Original-Received: from pluto.mumble.net ([206.123.75.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHJHX-0000VO-0B for 3824@emacsbugs.donarmstrong.com; Tue, 03 May 2011 13:21:11 -0400 Original-Received: by pluto.mumble.net (Postfix, from userid 1014) id 03F3C982B7; Tue, 3 May 2011 17:21:38 +0000 (UTC) In-reply-to: User-Agent: IMAIL/1.21; Edwin/3.116; MIT-Scheme/9.1 X-Mailman-Approved-At: Tue, 03 May 2011 13:25:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 03 May 2011 13:26:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46166 gmane.emacs.pretest.bugs:25418 Archived-At: Gosh, this must have gotten buried in my inbox a long time ago, and I completely forgot about it... Sorry about that! Date: Tue, 14 Jul 2009 15:52:52 -0400 From: Stefan Monnier > Emacs should treat `#;' as whitespace, nothing more. Of course, that's also incorrect with its own set of problems (mostly indentation), but admittedly, those problems are easier for the user to understand/predict. What problems? I think it would be perfectly reasonable for #; not to affect indentation except inasmuch as it moves code following it on the same line by two columns just like two spaces would. For example, I think the following is reasonable indentation: (cond ((foo? bar) baz) #; ((quux? zot) mumble) #; ((grog? swat) zoogle) #;((blort? gronk) (frobnozzle)) #; (else (frotz))) I wouldn't use the second two examples myself, because it takes zero effort to make an editor treat #; as the start of a line comment (e.g., Edwin does this) and that works perfectly well as long as you don't put anything interesting on the line. Can you try the patch below? I tried it. Seems to work on a couple simple cases I threw at it, but I haven't tried it in anger yet.