From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vincent.marguerit@gmail.com Newsgroups: gmane.emacs.help Subject: Re: PHP/HTML indentation Date: Mon, 30 Jul 2007 05:38:23 -0700 Organization: http://groups.google.com Message-ID: <1185799103.065883.34670@19g2000hsx.googlegroups.com> References: <1185793679.975121.95720@k79g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1185799359 18993 80.91.229.12 (30 Jul 2007 12:42:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 12:42:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 14:42:33 2007 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 1IFUZv-0007hJ-VN for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 14:42:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFUZv-00047m-JE for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 08:42:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!19g2000hsx.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 83.245.56.210 Original-X-Trace: posting.google.com 1185799103 16839 127.0.0.1 (30 Jul 2007 12:38:23 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 30 Jul 2007 12:38:23 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 19g2000hsx.googlegroups.com; posting-host=83.245.56.210; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:150613 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:46191 Archived-At: On 30 juil, 12:46, "Lennart Borgman (gmail)" wrote: > vincent.margue...@gmail.com wrote: > > Hello, > > > I have a big PHP file with some HTML inside ans sometimes the auto > > indentation with the TAB key does not work ! > > And I have no specific message in the buffer *Message* > > > Does anyone what I should do to make it work again ? > > Please give more information. What version of Emacs are you using? Are > you using a php-mode? Which? My version of Emacs is 22.1, I use php-mode version 1.2.0 with this is in .emacs file: (add-hook 'text-mode-hook 'iso-accents-mode) (set-terminal-coding-system 'latin-1) (set-keyboard-coding-system 'latin-1) (set-language-environment 'latin-1) (set-foreground-color "wheat") (set-background-color "DarkSlateGray") (set-cursor-color "white") (menu-bar-mode -1) (scroll-bar-mode -1) (global-font-lock-mode 1) (require 'php-mode) (add-hook 'php-mode-user-hook 'turn-on-font-lock) (add-hook 'php-mode-user-hook '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends"))) The file for which the indentation does not work anymore is global_display.inc.php, I have put it here: http://boxfly.free.fr/test/php/global_display.inc.phps If I go to line 5 and press TAB key, it will auto indent. But if I go to line 522 in the function dis_end_main(), the indentation does not work anymore. I work under Mac OS X. Thanks for your help, Vincent.