From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Idea: unify *newline(-and-indent) Date: Sun, 31 Aug 2008 13:59:20 +0200 Message-ID: <48BA8798.6070601@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1220183983 25275 80.91.229.12 (31 Aug 2008 11:59:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Aug 2008 11:59:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 31 14:00:37 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 1KZlbg-0001rI-Ig for ged-emacs-devel@m.gmane.org; Sun, 31 Aug 2008 14:00:36 +0200 Original-Received: from localhost ([127.0.0.1]:55775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZlah-0004S0-K6 for ged-emacs-devel@m.gmane.org; Sun, 31 Aug 2008 07:59:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZlab-0004Nj-Gp for emacs-devel@gnu.org; Sun, 31 Aug 2008 07:59:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZlaZ-0004KI-N3 for emacs-devel@gnu.org; Sun, 31 Aug 2008 07:59:28 -0400 Original-Received: from [199.232.76.173] (port=39206 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZlaZ-0004Jz-Ds for emacs-devel@gnu.org; Sun, 31 Aug 2008 07:59:27 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:53270) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KZlaY-0007cq-Uk for emacs-devel@gnu.org; Sun, 31 Aug 2008 07:59:27 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:59995 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KZlaX-0007Ky-3h; Sun, 31 Aug 2008 13:59:25 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080830-0, 2008-08-30), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KZlaX-0007Ky-3h. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KZlaX-0007Ky-3h 7e991ef289f1865e6ee2da622d1cf5ac X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:103309 Archived-At: Daniel Colascione wrote: > Then, take all the functions above and convert them to functions that > can be plugged into interactive-newline-function. The situation we end > up with something like indent-for-tab-command and indent-line-function. > > Is it worth writing the patch? > > Thanks, > Dan I think this would be very good. Users that normally use several different major could benefit. This is of course often the case in web development. > (Also – any objections to making cc-mode and lisp-mode use > indent-for-tab-command? The lisp tab command > has an indent-whole-sexp feature, but that be handled by passing the > prefix argument to indent-line-function. The cc-mode indent function has > some tab-or-indent DWIM feature, but isn't it better to put that in > indent-for-tab-command by extending tab-always-indent?) In my opinion, yes.