unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Indenting text bugs.
@ 2010-03-02 10:07 Defacta
  2010-03-02 16:05 ` Andrea Crotti
       [not found] ` <mailman.2167.1267546021.14305.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 12+ messages in thread
From: Defacta @ 2010-03-02 10:07 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-03-04 10:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 10:07 Indenting text bugs Defacta
2010-03-02 16:05 ` Andrea Crotti
     [not found] ` <mailman.2167.1267546021.14305.help-gnu-emacs@gnu.org>
2010-03-02 18:14   ` Defacta
2010-03-02 18:45     ` Drew Adams
2010-03-02 22:11       ` Suvayu Ali
2010-03-02 23:44         ` Lennart Borgman
2010-03-02 23:56           ` Suvayu Ali
2010-03-03  0:19           ` Drew Adams
2010-03-03  0:26             ` Lennart Borgman
2010-03-03  1:15               ` Drew Adams
     [not found]       ` <mailman.2189.1267567845.14305.help-gnu-emacs@gnu.org>
     [not found]         ` <jwvd3zlfk7j.fsf-monnier+gnu.emacs.help@gnu.org>
2010-03-04 10:27           ` Defacta
2010-03-02 22:45     ` Andrea Crotti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).