unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c-electric-paren c-electric-brace in PHP Mode locks up
@ 2009-01-06 22:35 John Rushworth
  2009-01-07  6:41 ` Lennart Borgman
  0 siblings, 1 reply; 2+ messages in thread
From: John Rushworth @ 2009-01-06 22:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Don't know whether this is any help or not. (and I really hope that I'm 
not posting it to the wrong place... my apologies if I am in error)

I am using GNU Emacs 22.1.1 under XP SP2.

Using PHP Mode I started getting  emacs freezing, using 50% or more of 
CPU every time I typed a ( or a {

Took a few minutes to realise what the problem was....

I had cut and pasted some PHP into a new buffer.... saved it.... but had 
no <?PHP or ?> tags

Or, at least, adding these tags fixed my problem.

Funny thing was that once I had added them, tested that everything was 
OK, saved the file.... everything still worked fine, even if I then 
deleted these tags again.

Uninitialized variable?

Sorry, my lisp skills are close to non-existent (and this is a bad week 
for diversions) or I would follow this up.

Thanks for a great editor.

Cheers
John Rushworth
New Zealand

PS I realise that I am using an old version. Downloading the latest 
now.... over a slow dial-up connection.... yes, such links still exist...





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

* Re: c-electric-paren c-electric-brace in PHP Mode locks up
  2009-01-06 22:35 c-electric-paren c-electric-brace in PHP Mode locks up John Rushworth
@ 2009-01-07  6:41 ` Lennart Borgman
  0 siblings, 0 replies; 2+ messages in thread
From: Lennart Borgman @ 2009-01-07  6:41 UTC (permalink / raw)
  To: John Rushworth; +Cc: help-gnu-emacs

On Tue, Jan 6, 2009 at 11:35 PM, John Rushworth
<johnr@silver-bullet.co.nz> wrote:
> Hi,
>
> Don't know whether this is any help or not. (and I really hope that I'm not
> posting it to the wrong place... my apologies if I am in error)
>
> I am using GNU Emacs 22.1.1 under XP SP2.
>
> Using PHP Mode I started getting  emacs freezing, using 50% or more of CPU
> every time I typed a ( or a {
>
> Took a few minutes to realise what the problem was....
>
> I had cut and pasted some PHP into a new buffer.... saved it.... but had no
> <?PHP or ?> tags
>
> Or, at least, adding these tags fixed my problem.
>
> Funny thing was that once I had added them, tested that everything was OK,
> saved the file.... everything still worked fine, even if I then deleted
> these tags again.
>
> Uninitialized variable?
>
> Sorry, my lisp skills are close to non-existent (and this is a bad week for
> diversions) or I would follow this up.
>
> Thanks for a great editor.
>
> Cheers
> John Rushworth
> New Zealand
>
> PS I realise that I am using an old version. Downloading the latest now....
> over a slow dial-up connection.... yes, such links still exist...

There are several versions of php-mode.el too, see EmacsWiki.




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

end of thread, other threads:[~2009-01-07  6:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 22:35 c-electric-paren c-electric-brace in PHP Mode locks up John Rushworth
2009-01-07  6:41 ` Lennart Borgman

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).