From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.help Subject: Re: Insert appropriate line-end character (like ';' for C*) Date: Thu, 12 Jun 2008 11:30:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: <83af0c69-4c59-4b9f-96c2-b59fe6b0c048@2g2000hsn.googlegroups.com> References: <333b2bc9-8ad4-4f0e-b508-eb143fd9d2fe@c58g2000hsc.googlegroups.com> <10218ac7-1ba3-4ae7-9a19-3b199f78c80f@w7g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213296106 25491 80.91.229.12 (12 Jun 2008 18:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2008 18:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 12 20:42:29 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K6rkI-0007R0-78 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2008 20:42:02 +0200 Original-Received: from localhost ([127.0.0.1]:48887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6rjU-00021l-JR for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2008 14:41:12 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!2g2000hsn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 72.85.252.29 Original-X-Trace: posting.google.com 1213295406 31403 127.0.0.1 (12 Jun 2008 18:30:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 12 Jun 2008 18:30:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000hsn.googlegroups.com; posting-host=72.85.252.29; posting-account=altyoAkAAACZyvWAdscIIqznbtG0RJDD User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9) Gecko/2008060517 (Gentoo) Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159418 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54773 Archived-At: So the various modes don' t include that information? It seems like they must, otherwise how would Emacs be able to indent things appropriately? In python-mode it's aware that a line ending in ':' is special, and so it automatically indents the following line(s), similarly it un-indents the lines following a 'return' statement. It's not doing this solely based on the presence of key terms such as 'if' and 'def' either (I tested); it's aware of ':' as an important character in python-mode at least. All I'm trying to figure out is if there's an easy way to determine, even if it's just for python-mode, what that special character is.