From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.devel Subject: Re: Improvements to adjust-parens Date: Wed, 27 Nov 2013 15:00:10 -0500 Message-ID: References: <5293C972.2020605@thompsonclan.org> <52944653.9000500@thompsonclan.org> <52954538.50908@thompsonclan.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134ad06618fbe04ec2e0bff X-Trace: ger.gmane.org 1385582417 18722 80.91.229.3 (27 Nov 2013 20:00:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2013 20:00:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Ryan C. Thompson" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 27 21:00:23 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VllHa-0001I2-VK for ged-emacs-devel@m.gmane.org; Wed, 27 Nov 2013 21:00:23 +0100 Original-Received: from localhost ([::1]:37595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VllHa-0006dF-Mn for ged-emacs-devel@m.gmane.org; Wed, 27 Nov 2013 15:00:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VllHU-0006cb-9t for emacs-devel@gnu.org; Wed, 27 Nov 2013 15:00:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VllHP-0006WL-IT for emacs-devel@gnu.org; Wed, 27 Nov 2013 15:00:16 -0500 Original-Received: from mail-oa0-x22c.google.com ([2607:f8b0:4003:c02::22c]:40567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VllHP-0006WC-DZ for emacs-devel@gnu.org; Wed, 27 Nov 2013 15:00:11 -0500 Original-Received: by mail-oa0-f44.google.com with SMTP id m1so8259539oag.3 for ; Wed, 27 Nov 2013 12:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aWfcqYNJBh+E9DD5Sy2TveHSIfroPmJ+dAi02+gOcNI=; b=Toue8RuiNOI12R7KPmJ+rnJlyX4qMzWKQuPu3Htk78J1o9bR4BQI2DgtfIAdeE7wry caW7MpdNloGdAsSjPc5TlF2iNNtNPWMI4FmaVtlk1ASUG7/jq6r74NKGk16Cp6ai6KPi 8NGjM7gvJcHq/qJ1WB5iVgHfKmVE0B0jDpQ81ff4a15SzqADnMds8+PjYOIiAx3p77VP ISQckITCn7d9vCLUoPi8oH68Iwb8wRedJq8glcHHDkBodVQ2iGW1IgfHSKKrspv7KBzJ M+/HePctPfVV88zlMLj7sr4MXBkLxVpC+mXAekcKHY9djpTRRgPanMsTnxzPdPWIyCtM pGew== X-Received: by 10.182.2.42 with SMTP id 10mr1607840obr.73.1385582410434; Wed, 27 Nov 2013 12:00:10 -0800 (PST) Original-Received: by 10.76.156.103 with HTTP; Wed, 27 Nov 2013 12:00:10 -0800 (PST) In-Reply-To: <52954538.50908@thompsonclan.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165813 Archived-At: --001a1134ad06618fbe04ec2e0bff Content-Type: text/plain; charset=ISO-8859-1 > I forget what my logic was here. Feel free to do whatever you think > is appropriate. I think backtab is actually not used in many modes. I made it so as lisp-dedent-adjust-parens returns nil for that case, so you can bind: (lambda (parg) (unless (lisp-dedent-adjust-parens parg) (when (< (current-column) (current-indentation)) (back-to-indentation)))) to . I adapted your updates and bumped the version in ELPA. Thank you. --001a1134ad06618fbe04ec2e0bff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
> I forget what my logic was here. Feel free to do what= ever you think
> is appropriate. I think backtab is actually not used= in many modes.

I made it so as lisp-dedent-adjust-parens returns ni= l for that case,
so you can bind:

=A0 (lambda (parg)
=A0=A0=A0 (unless (lisp-deden= t-adjust-parens parg)
=A0=A0=A0=A0=A0 (when (< (current-column) (curr= ent-indentation))
=A0=A0=A0=A0=A0=A0=A0 (back-to-indentation))))

= to <backtab>.

I adapted your updates and bumped the version in= ELPA. Thank you.

--001a1134ad06618fbe04ec2e0bff--