From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Defacta Newsgroups: gmane.emacs.help Subject: Indenting text bugs. Date: Tue, 2 Mar 2010 02:07:46 -0800 (PST) Organization: http://groups.google.com Message-ID: <73384c13-4532-43a8-ac2d-6205161cf1a8@e1g2000yqh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1267539532 13113 80.91.229.12 (2 Mar 2010 14:18:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2010 14:18:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 02 15:18:48 2010 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.69) (envelope-from ) id 1NmSvv-0003NT-OC for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Mar 2010 15:18:48 +0100 Original-Received: from localhost ([127.0.0.1]:48395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmSvv-0006Jt-5p for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Mar 2010 09:18:47 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!e1g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 79.93.10.152 Original-X-Trace: posting.google.com 1267524467 9285 127.0.0.1 (2 Mar 2010 10:07:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 2 Mar 2010 10:07:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e1g2000yqh.googlegroups.com; posting-host=79.93.10.152; posting-account=uOpIEQoAAABQV8VXB3Hr-t8WjKE0lAE1 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:177254 X-Mailman-Approved-At: Tue, 02 Mar 2010 09:16:12 -0500 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:72308 Archived-At: Hello, I have bugs with indentation of php files. I use php-mode and sometimes instead of proposing to complete a name a of function or of a variable there is the message: Indenting region... done. A way of making it bug at all times is to do TAB when I search something in the page thanks to ctrl+s, if not just having a lot of php fils opened make emacs indenting fails. So what can I do to relaunch indenting mode, the only way I have found to use indenting when it has bugged is to restart emacs, that's annoying... I am under Mac OS X 10.6 with Emacs 22.3 and in my ~/emacs/.emacs fil I have: --- (set-foreground-color "wheat") (set-background-color "DarkSlateGray") (set-cursor-color "white") (global-set-key [(tab)] 'smart- tab) (defun smart-tab () "This smart tab is minibuffer compliant: it acts as usual in the minibuffer. Else, if mark is active, indents region. Else if point is at the end of a symbol, expands it. Else indents the current line." (interactive) (if (minibufferp) (unless (minibuffer- complete) (dabbrev-expand nil)) (if mark- active (indent-region (region- beginning) (region- end)) (if (looking-at "\ \_>") (dabbrev-expand nil) (indent-for-tab-command))))) --- Thanks, Vincent.