[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Indenting text bugs.
From: |
Defacta |
Subject: |
Indenting text bugs. |
Date: |
Tue, 2 Mar 2010 02:07:46 -0800 (PST) |
User-agent: |
G2/1.0 |
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.
- Indenting text bugs.,
Defacta <=
- Re: Indenting text bugs., Andrea Crotti, 2010/03/02
- Message not available
- Re: Indenting text bugs., Defacta, 2010/03/02
- RE: Indenting text bugs., Drew Adams, 2010/03/02
- Re: Indenting text bugs., Suvayu Ali, 2010/03/02
- Re: Indenting text bugs., Lennart Borgman, 2010/03/02
- Re: Indenting text bugs., Suvayu Ali, 2010/03/02
- RE: Indenting text bugs., Drew Adams, 2010/03/02
- Re: Indenting text bugs., Lennart Borgman, 2010/03/02
- RE: Indenting text bugs., Drew Adams, 2010/03/02
- Re: Indenting text bugs., Andrea Crotti, 2010/03/02