From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Codifications of rules (was Re: bug#5119: ruby-mode binds TAB) Date: Mon, 7 Dec 2009 15:56:54 -0500 Message-ID: References: Reply-To: Emacs discussions NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-39-591857182" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260222422 7776 80.91.229.12 (7 Dec 2009 21:47:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 21:47:02 +0000 (UTC) Cc: Emacs discussions To: Matthew Dempsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 07 22:46:54 2009 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 1NHlPr-0004k8-0h for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 22:46:47 +0100 Original-Received: from localhost ([127.0.0.1]:59460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHlPq-0006IA-Qv for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 16:46:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHkdq-0002z8-OK for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:57:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHkdm-0002y8-6C for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:57:10 -0500 Original-Received: from [199.232.76.173] (port=57957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHkdm-0002y5-1G for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:57:06 -0500 Original-Received: from mail-yw0-f196.google.com ([209.85.211.196]:45235) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHkdl-0004Cs-I2 for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:57:05 -0500 Original-Received: by ywh34 with SMTP id 34so4614448ywh.1 for ; Mon, 07 Dec 2009 12:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:reply-to :content-transfer-encoding:message-id:references:to:x-pgp-agent :x-mailer; bh=ZvHFMWxrwgvkc86Ch0jEWTYTGVGXleRjvCtT9gAH2AI=; b=h4mLccqEfh0084MLGdWy/cllShrdTj1CNDb571GaHBno3UZSvm+t4Ma69bev+xE/VG mfDEhvv69aSyG2+avDpHPe3HzWbiN3PlPvnPN3+u8O2Xl85oqdCZKUGq6Of+oWTID4Y+ dRzkfY0D2r8x+IuF7G96FlxEL4R4rOx+Mzaws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc:reply-to :content-transfer-encoding:message-id:references:to:x-pgp-agent :x-mailer; b=J6GxkIdcvjvv4c4HTFlJfGFPdrgNe4wgFu8hPA/C2djEFaAfCPsY+hkVgmR1rGaRLx 1lk1OMmcRg+LKSzxXqhcDChFr+C2YXHVe0KBFQWm0Bl9hYHbzPFkquwwfVFZIxFjYiR8 JyLhD7nHWPcMx1xG5Z5Hwcm1E176Pk3CWZEJE= Original-Received: by 10.91.148.11 with SMTP id a11mr267267ago.14.1260219423339; Mon, 07 Dec 2009 12:57:03 -0800 (PST) Original-Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id 20sm2144433ywh.2.2009.12.07.12.57.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 12:57:02 -0800 (PST) In-Reply-To: X-Pgp-Agent: GPGMail 1.2.3 X-Mailer: Apple Mail (2.1077) X-detected-operating-system: by monty-python.gnu.org: GNU/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:118372 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-39-591857182 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Dec 7, 2009, at 2:55 PM, Matthew Dempsky wrote: > On Thu, Dec 3, 2009 at 7:36 PM, Lennart Borgman > wrote: >> It binds TAB to ruby-indent-line. That is against the rules. ;-) >=20 > Out of curiosity, are 'rules' like this codified anywhere? As I've > started using Emacs seriously again, I've started noticing a lot of > little inconsistencies between extensions (e.g., how temporary windows > are displayed/destroyed). I'd be happy to submit patches to help > improve this if someone could point out the correct behavior. I'd like to know that, too. There are many equivalent commands bound to = different keys in different major modes. My pet peeves are - Indentation (left/right, e.g. C-c C-> in python-mode, as well as = re-indenting the current line according to syntax) - Deleting the content of a comint output buffer (e.g. C-c M-o in SLIME, = but different elsewhere) - Executing / evaluating a line or an expression or a region with the = inferior process, e.g. C-x C-e in Elisp and in SLIME's lisp-mode, but = C-j (for the line) in R-mode (ESS). Then, SLIME and Python-mode have = C-c C-r to evaluate the region, but emacs-lisp-mode doesn't have that. - Running the inferior interpreter process. M-x R in ESS, M-x slime in = SLIME (rather than M-x lisp), and M-x run-python (rather than M-x = python) in python-mode. Generally, the point here would not be to just define canonical bindings = for these functions, but define more canonical buffer-local variables = that contain appropriate function names, such as the existing = `indent-line-function', so that the user (or we) can bind whatever = standard keys to the appropriate commands. See also: http://www.opensubscriber.com/message/emacs-devel@gnu.org/3558580.html=20= --Apple-Mail-39-591857182 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.12 (Darwin) iEYEARECAAYFAksdbBsACgkQYotoJUVQB4Ir9ACgpusU8N3Nz5E8VdqHQlX1IJ2n 230AoKhH5qmUSTNlLY/WtOWs0dUH7E1Q =kbwP -----END PGP SIGNATURE----- --Apple-Mail-39-591857182--