From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#636: Please fix before the release of 23.1 Date: Mon, 11 Aug 2008 12:30:04 -0400 Message-ID: <87fxpb5xbn.fsf__18865.3030818843$1218473320$gmane$org@stupidchicken.com> References: <877ibp4hh3.fsf@vorlon.ganneff.de> <871w1xfmsb.fsf@grepfind.mwolson.org> <87ljzj3oad.fsf_-_@grepfind.mwolson.org> <18590.45488.891078.545308@a1ihome1.kph.uni-mainz.de> <18590.47471.82980.734389@a1ihome1.kph.uni-mainz.de> <87ljz45xfj.fsf@stupidchicken.com> <18591.59359.40969.641357@a1ihome1.kph.uni-mainz.de> Reply-To: Chong Yidong , 636@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218473262 21961 80.91.229.12 (11 Aug 2008 16:47:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 16:47:42 +0000 (UTC) Cc: Michael Olson , 636@emacsbugs.donarmstrong.com, Alan Mackenzie , emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 18:48:33 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 1KSaZN-0003PW-3G for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 18:48:33 +0200 Original-Received: from localhost ([127.0.0.1]:43302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSaYR-0007Yu-0c for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 12:47:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSaYM-0007WA-7B for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 12:47:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSaYK-0007T2-92 for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 12:47:29 -0400 Original-Received: from [199.232.76.173] (port=43665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSaYJ-0007Sb-T9 for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 12:47:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55484) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSaYJ-0003lk-D4 for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 12:47:27 -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 m7BGlO12023870; Mon, 11 Aug 2008 09:47:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7BGZ4xC019768; Mon, 11 Aug 2008 09:35:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 11 Aug 2008 16:35:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 636 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 636-submit@emacsbugs.donarmstrong.com id=B636.121847218318131 (code B ref 636); Mon, 11 Aug 2008 16:35:04 +0000 Original-Received: (at 636) by emacsbugs.donarmstrong.com; 11 Aug 2008 16:29:43 +0000 Original-Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7BGTdwR018125 for <636@emacsbugs.donarmstrong.com>; Mon, 11 Aug 2008 09:29:41 -0700 Original-Received: by cyd (Postfix, from userid 1000) id 1E76E57E1CA; Mon, 11 Aug 2008 12:30:04 -0400 (EDT) In-Reply-To: <18591.59359.40969.641357@a1ihome1.kph.uni-mainz.de> (Ulrich Mueller's message of "Mon, 11 Aug 2008 09:18:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 11 Aug 2008 12:47:29 -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:19295 Archived-At: Ulrich Mueller writes: >> (defconst foo >> (let ((beginning-of-defun-function >> (lambda (&optional arg) >> (not (eq arg nil))))) >> (progn >> (beginning-of-defun 1)))) > >> (provide 'foo) > > Calling beginning-of-defun will move point, right? > > And since beginning-of-defun-function is essentially defined as a > no-op, point will just be moved to the beginning-of-line. (In fact, > eval-buffer on foo.el results in an infinite loop.) Aha, I see. So the question is, should we make the change to cc-defs.el, or (as suggested by Michael Olson) make the byte-compiler wrap around each variable definition with `save-excursion'? Even with the latter solution, incorrectly written elisp in variable definitions can still create problems. For example, `save-excursion' won't save us if the elisp runs `kill-buffer'. This indicates that we fix cc-defs.el, and leave the rest of Emacs alone.