From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Strange behavior of `value' Date: Sat, 07 Jul 2007 09:06:48 -0400 Message-ID: References: <87y7htfr4x.fsf@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1183813762 7686 80.91.229.12 (7 Jul 2007 13:09:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2007 13:09:22 +0000 (UTC) Cc: jay.p.belanger@gmail.com, emacs-devel@gnu.org To: jay.p.belanger@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 07 15:09:21 2007 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I7A2E-0001V4-NL for ged-emacs-devel@m.gmane.org; Sat, 07 Jul 2007 15:09:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7A2E-0005ZI-8M for ged-emacs-devel@m.gmane.org; Sat, 07 Jul 2007 09:09:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I79zq-0004fN-IW for emacs-devel@gnu.org; Sat, 07 Jul 2007 09:06:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I79zo-0004eM-NZ for emacs-devel@gnu.org; Sat, 07 Jul 2007 09:06:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I79zo-0004eC-GR for emacs-devel@gnu.org; Sat, 07 Jul 2007 09:06:44 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I79zn-0006kk-Vu for emacs-devel@gnu.org; Sat, 07 Jul 2007 09:06:44 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I79zs-0007SZ-P0; Sat, 07 Jul 2007 09:06:48 -0400 In-reply-to: <87y7htfr4x.fsf@gmail.com> (message from Jay Belanger on Fri, 06 Jul 2007 11:12:14 -0500) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74437 Archived-At: Does this fix it? *** lisp-mode.el 01 Apr 2007 17:40:39 -0400 1.201 --- lisp-mode.el 06 Jul 2007 22:24:55 -0400 *************** *** 628,640 **** (interactive "P") (if (null eval-expression-debug-on-error) (eval-last-sexp-1 eval-last-sexp-arg-internal) ! (let ((old-value eval-last-sexp-fake-value) new-value value) ! (let ((debug-on-error old-value)) ! (setq value (eval-last-sexp-1 eval-last-sexp-arg-internal)) ! (setq new-value debug-on-error)) ! (unless (eq old-value new-value) ! (setq debug-on-error new-value)) ! value))) (defun eval-defun-1 (form) "Treat some expressions specially. --- 628,641 ---- (interactive "P") (if (null eval-expression-debug-on-error) (eval-last-sexp-1 eval-last-sexp-arg-internal) ! (let ((values ! (let ((debug-on-error eval-last-sexp-fake-value)) ! (list (eval-last-sexp-1 eval-last-sexp-arg-internal) ! debug-on-error)))) ! (let ((new-value (cadr values))) ! (unless (eq new-value eval-last-sexp-fake-value) ! (setq debug-on-error new-value))) ! (car values)))) (defun eval-defun-1 (form) "Treat some expressions specially.