all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Defacta <boxfly@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Indenting text bugs.
Date: Tue, 2 Mar 2010 02:07:46 -0800 (PST)	[thread overview]
Message-ID: <73384c13-4532-43a8-ac2d-6205161cf1a8@e1g2000yqh.googlegroups.com> (raw)

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.


             reply	other threads:[~2010-03-02 10:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-02 10:07 Defacta [this message]
2010-03-02 16:05 ` Indenting text bugs 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=73384c13-4532-43a8-ac2d-6205161cf1a8@e1g2000yqh.googlegroups.com \
    --to=boxfly@free.fr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.