From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Mattie Newsgroups: gmane.emacs.devel Subject: Re: Change the default binding of C-x C-e ? Date: Sun, 6 Jan 2008 07:14:54 -0800 Message-ID: <20080106071454.7c0e83c8@reforged> References: <20080106034104.5a17f366@reforged> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1528707722==" X-Trace: ger.gmane.org 1199632690 31061 80.91.229.12 (6 Jan 2008 15:18:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2008 15:18:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 06 16:18:31 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 1JBXGg-0008IR-HB for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 16:18:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBXGJ-0006II-Lw for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 10:18:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBXFu-0005pl-Q8 for emacs-devel@gnu.org; Sun, 06 Jan 2008 10:17:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBXFt-0005nh-2v for emacs-devel@gnu.org; Sun, 06 Jan 2008 10:17:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBXFs-0005nN-RZ for emacs-devel@gnu.org; Sun, 06 Jan 2008 10:17:40 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBXFs-0006sC-Ix for emacs-devel@gnu.org; Sun, 06 Jan 2008 10:17:40 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so11879152wah.10 for ; Sun, 06 Jan 2008 07:17:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; bh=0fkBVQiIzyzU5JROcJXvbSNUKv6c8kwjoLt/xuqAr2g=; b=s68om1O7tvbbY+xoZnsh8h8m8/NoLjsS9WCnZSiJZGsBMutGpgeTIthzmggsj20J5jiTR1IRWwPRZWVlSveDrCdZSDM8fObw+npLEDdPqply7hZi0laPGixQMXTmhkNMGoMO/y7nG9gaHvntqAiKo8mzHDcm6ZcF1KpqHZuSjRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=KEBDalYucdyjPsLkVt12LXzoWig4ZoszihH17PXmC+4Bl45hh4iw1i6rtGU0GUU3dlez+7OYlJstcb9Ym/xlgMzrZ+UPDc2WWz6kTqp3Mo0Bh7Hp/qbA3rTc4WXrBmTrFyCa/irR8utM+IrNwrMjLkyxPufdC5fFDfphszStcjo= Original-Received: by 10.114.53.1 with SMTP id b1mr4474648waa.134.1199632659043; Sun, 06 Jan 2008 07:17:39 -0800 (PST) Original-Received: from reforged ( [71.217.198.62]) by mx.google.com with ESMTPS id m24sm6213516waf.57.2008.01.06.07.17.38 (version=SSLv3 cipher=OTHER); Sun, 06 Jan 2008 07:17:38 -0800 (PST) In-Reply-To: X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i686-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:86333 Archived-At: --===============1528707722== Content-Type: multipart/signed; boundary="Sig_/GASe0lr=4L3rIuQ0J.L5=47"; protocol="application/pgp-signature"; micalg=PGP-SHA1 --Sig_/GASe0lr=4L3rIuQ0J.L5=47 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 06 Jan 2008 14:59:11 +0000 Leo wrote: > On 2008-01-06 11:41 +0000, Mike Mattie wrote: > > Hello, > > > > I think it is a good idea to change the default key-binding of C-x > > C-e to eval-defun. From a reading of the Elisp Intro I became used > > to using the usual binding which is eval-last-sexp. Things worked > > fine until I progressed in elisp to where I wanted to use defvar. > > As the informed have probably surmised I was baffled by the results > > because repeated evaluation did not affect the default value. > > > > While reading through the manuals I stumbled across eval-defun and > > realized what was going on. AFAICT they are effectively the same in > > use, however eval-defun does not have suprising corner cases like > > defvar default values. > > > > FWIW it may help others to change this binding. >=20 > Do you know about "C-M-x"? >=20 I do now. I have eval-defun bound to a key-sequence that works for me. I ad= dressed the mailing list because I thought others might stumble as I did on this pa= rticular issue while learning elisp. A note in the Emacs Lisp Intro would likely only confuse the learning proce= ss at the earliest stage which is precocious. I thought that using eval-defun from the beginning would side-step trouble down the road with defvar altogether. So the issue is resolved for me, my concern was for others travelling the elisp path. Cheers, Mike Mattie --Sig_/GASe0lr=4L3rIuQ0J.L5=47 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHgPBudfRchrkBInkRAq7aAJsGH1QJNrHSkQ+esKhTc52f0VcHawCdF0Bf WGa4oZkBlvtWhQhJX4dNwc4= =Ayjp -----END PGP SIGNATURE----- --Sig_/GASe0lr=4L3rIuQ0J.L5=47-- --===============1528707722== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1528707722==--