From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Functionality to check current indentation status Date: Wed, 13 Jan 2010 15:59:37 +0100 Message-ID: References: <7b501d5c1001130455l2615882bg339c4e41d1596102@mail.gmail.com> <7b501d5c1001130655o2e157131ucc34f592154bdeba@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1263394818 6314 80.91.229.12 (13 Jan 2010 15:00:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 15:00:18 +0000 (UTC) Cc: Emacs-Devel devel To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 13 16:00:10 2010 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 1NV4hd-0000kX-NG for ged-emacs-devel@m.gmane.org; Wed, 13 Jan 2010 16:00:10 +0100 Original-Received: from localhost ([127.0.0.1]:47436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV4hd-0000Aa-W1 for ged-emacs-devel@m.gmane.org; Wed, 13 Jan 2010 10:00:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV4hZ-0000AS-9J for emacs-devel@gnu.org; Wed, 13 Jan 2010 10:00:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV4hU-0000A7-Th for emacs-devel@gnu.org; Wed, 13 Jan 2010 10:00:05 -0500 Original-Received: from [199.232.76.173] (port=33004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV4hU-0000A4-Nr for emacs-devel@gnu.org; Wed, 13 Jan 2010 10:00:00 -0500 Original-Received: from mail-bw0-f215.google.com ([209.85.218.215]:55975) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV4hU-0007kh-8n for emacs-devel@gnu.org; Wed, 13 Jan 2010 10:00:00 -0500 Original-Received: by bwz7 with SMTP id 7so16658910bwz.26 for ; Wed, 13 Jan 2010 06:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=1471OBH/7OfrB4sFdZxpxQxIT6Ir29Gl5SU2wqkFqQo=; b=ROjznnCK6f6f/ix1FBxHiHdCDPhQ5aZq9qcNPjKe8REo3njdNKAGkM6Dsd3TIuffR9 j13ws0cncRZJqF8eEP605hqgoqG8x+S65KEX+NXHJ51UOFK1bWWvNubk2s9Vy2AIEa90 UTv7ytg/s3g7KVXF+q91QLr9Ge5YvMV5JRupw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=b9VStpCFR/U4axUFucf39xSO+J4k06yXeNbvDgzpuhzfd55ig1ybkZsNG0+uPWZHoD qwpYg+zoVvxp0MD/ovl6ZbE/6SXVAib5qZTl/c5pVhz53VF2usx6rcRZD3sgtJIc87JZ 7bN4TuxccE4kNhrPWO0t1j45EO1Dn+kRdUjI4= Original-Received: by 10.239.188.201 with SMTP id q9mr1535246hbh.189.1263394797253; Wed, 13 Jan 2010 06:59:57 -0800 (PST) In-Reply-To: <7b501d5c1001130655o2e157131ucc34f592154bdeba@mail.gmail.com> 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:119917 Archived-At: On Wed, Jan 13, 2010 at 3:55 PM, Deniz Dogan wrote: > 2010/1/13 Lennart Borgman : >> On Wed, Jan 13, 2010 at 1:55 PM, Deniz Dogan wrote: >>> Is there any generic functionality for checking whether a specific >>> line is indented appropriately according to major-mode? I mean other >>> than indenting it and seeing whether anything was modified. >> >> current-indentation >> > > Thanks, but that only returns the current indentation with no > indication of whether indenting again will change anything. I'm > looking for something which will "automagically" understand the > language and return e.g. nil if and only if the current indentation is > incorrect. Having looked into indent.el I'm guessing something like > this doesn't exist today. You can do it by indenting and then undoing. See mumamo.el for an example.