From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: indent-region behavior with no region Date: Thu, 28 Mar 2013 11:04:58 +0530 Message-ID: <878v58qe7x.fsf@gmail.com> References: <2393DD07-5F6F-41AB-A64E-B4AF6259FE8C@mit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364448911 21207 80.91.229.3 (28 Mar 2013 05:35:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2013 05:35:11 +0000 (UTC) Cc: "emacs-devel@gnu.org Development" To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 28 06:35:38 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 1UL5Uv-0004aw-89 for ged-emacs-devel@m.gmane.org; Thu, 28 Mar 2013 06:35:37 +0100 Original-Received: from localhost ([::1]:33077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL5UX-00069Q-65 for ged-emacs-devel@m.gmane.org; Thu, 28 Mar 2013 01:35:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL5US-000680-Qr for emacs-devel@gnu.org; Thu, 28 Mar 2013 01:35:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UL5UR-0004k8-I8 for emacs-devel@gnu.org; Thu, 28 Mar 2013 01:35:08 -0400 Original-Received: from mail-da0-x22d.google.com ([2607:f8b0:400e:c00::22d]:45083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL5UR-0004jg-CR for emacs-devel@gnu.org; Thu, 28 Mar 2013 01:35:07 -0400 Original-Received: by mail-da0-f45.google.com with SMTP id v40so4389541dad.32 for ; Wed, 27 Mar 2013 22:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=oh6+I2wQTJFotRrHItMnOCQICJ3nYlYTcOBD7B05qc0=; b=z8WID8uT5O1Gv4CJC0wcT2ERe/5lIylHMhDk5u5/uVO5qMR7V17rTXZH6w9E8Tc3w5 Vana0Azv/qPEd87YyhBZ4W12dclFWwczabp1LGhHU8DWNPJZCkUxDfHZKeGclD2Sa8yR 3fjCwT6wNTJlOFZ5nKpO3mb1Io6xeOwEtXEfyawSz5f5IHv0zCQdUL9Xz0dJJ1sOi4tx MIEoTUzzehPtdu+KJ/l0fRo+edQ/mjm3/WKpGEm7MtLFAqJMFQMudMC9st8aueRbDBrd xpR0RR92ncPwFLliHiXvO5YMoBKTmHOaG8cCQZT/imo+zgLnSUTozhXkwGJKH9ZIHyB6 vCfQ== X-Received: by 10.68.135.168 with SMTP id pt8mr33224134pbb.10.1364448906418; Wed, 27 Mar 2013 22:35:06 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.139.100]) by mx.google.com with ESMTPS id ux10sm5639612pab.1.2013.03.27.22.35.03 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 27 Mar 2013 22:35:05 -0700 (PDT) In-Reply-To: <2393DD07-5F6F-41AB-A64E-B4AF6259FE8C@mit.edu> (chad's message of "Wed, 27 Mar 2013 17:02:16 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c00::22d 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:158338 Archived-At: chad writes: > Is there a functional or historical reason for indent-region's > behavior when no region is set, or is it simply accidental? > > In looking at the newish emacs blog http://emacsredux.com/, I found > a suggestion to make it indent the buffer if called with no region, > which seemed like a reasonable choice. Speaking for myself, I mark the current defun and indent it. Sometimes, indenting the whole buffer introduces whitespace changes in areas that is unrelated to my specific edit. > Thanks in advance, > ~Chad