GNU bug report logs - #7974
lisp-do-defun on defuns with trailing comments

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ken Olum <kdo@HIDDEN>; Keywords: easy; dated Thu, 3 Feb 2011 16:44:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) easy. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Feb 2011 16:43:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 03 11:43:03 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pl2Gs-0002zl-M0
	for submit <at> debbugs.gnu.org; Thu, 03 Feb 2011 11:43:02 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <kdo@HIDDEN>) id 1Pl257-0002gg-9n
	for submit <at> debbugs.gnu.org; Thu, 03 Feb 2011 11:30:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kdo@HIDDEN>) id 1Pl2DJ-0001ZJ-Ev
	for submit <at> debbugs.gnu.org; Thu, 03 Feb 2011 11:39:22 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:44803)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kdo@HIDDEN>) id 1Pl2DJ-0001YS-3S
	for submit <at> debbugs.gnu.org; Thu, 03 Feb 2011 11:39:21 -0500
Received: from [140.186.70.92] (port=52662 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pl2DG-0003Ur-QG
	for bug-gnu-emacs@HIDDEN; Thu, 03 Feb 2011 11:39:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kdo@HIDDEN>) id 1Pl2DE-0001WR-N0
	for bug-gnu-emacs@HIDDEN; Thu, 03 Feb 2011 11:39:17 -0500
Received: from cosmos.phy.tufts.edu ([130.64.83.16]:58209)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kdo@HIDDEN>) id 1Pl2DE-0001Ud-Le
	for bug-gnu-emacs@HIDDEN; Thu, 03 Feb 2011 11:39:16 -0500
Received: from kdo by cosmos.phy.tufts.edu ([local]:local)
	with local id 1Pl2D9-0000ni-5P - Using Exim-4.72 (MandrivaLinux) MTA 
	(return-path <kdo@HIDDEN>);
	Thu, 03 Feb 2011 11:39:11 -0500
Date: Thu, 03 Feb 2011 11:39:11 -0500
Message-Id: <E1Pl2D9-0000ni-5P@HIDDEN>
From: Ken Olum <kdo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: lisp-do-defun on defuns with trailing comments
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 130.64.83.16
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 03 Feb 2011 11:43:00 -0500
Cc: kdo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

If you say lisp-compile-defun on a defun which has a comment on the
line with the final closing parenthesis, then your defun does not get
compiled, because emacs sends lisp a form with some close parens added
at the end of the comment, and naturally lisp does not read them.

One cure for this would be to remove the line

(skip-chars-backward " \t\n\r\f") ;  Makes allegro happy

from lisp-do-defun.  Then emacs would keep the new line
that terminates the comment at the end of the defun and put the
close parens after that.

                                        Ken




Acknowledgement sent to Ken Olum <kdo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7974; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 12 Jun 2017 00:30:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.