From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Change the default binding of C-x C-e ? Date: Sun, 06 Jan 2008 12:45:30 -0700 Message-ID: References: Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199650604 24153 80.91.229.12 (6 Jan 2008 20:16:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2008 20:16:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: bob@rattlesnake.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 06 21:17:05 2008 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 1JBbvU-0001nK-MO for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 21:16:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBbv7-000549-P7 for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 15:16:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBbv4-00051v-1k for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:16:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBbv2-000510-KL for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:16:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBbv2-00050x-CF for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:16:28 -0500 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBbv2-0003Gw-7S for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:16:28 -0500 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m06KGPmt012657; Sun, 6 Jan 2008 15:16:25 -0500 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m06KGOjd026172; Sun, 6 Jan 2008 15:16:25 -0500 Original-Received: from opsy.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m06KGOjE002444; Sun, 6 Jan 2008 15:16:24 -0500 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id B80F5378BB1; Sun, 6 Jan 2008 12:45:30 -0700 (MST) X-Attribution: Tom In-Reply-To: (Robert J. Chassell's message of "Sun\, 6 Jan 2008 17\:21\:17 +0000 \(UTC\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:86381 Archived-At: Robert> I just checked this: I can use C-x C-e (eval-last-sexp) to set the Robert> value of a variable with `defvar' for the first time. As described in Robert> the Introduction, I cannot change the value a second time with Robert> `defvar' and `eval-last-sexp'; for that, I must use `setq'. For interactive elisp hacking I redefine eval-last-sexp to treat a defvar more like a defconst. This is pretty handy since it means I don't have to modify the source or copy/paste/modify sexps in order to do what I (usually) want. Tom