Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How do I disable emacs indent warnings ?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave Gibson  
View profile  
 More options Oct 18 2012, 6:55 am
Newsgroups: comp.os.linux.misc
From: dave.gma+news...@googlemail.com.invalid (Dave Gibson)
Date: Thu, 18 Oct 2012 11:52:25 +0100
Local: Thurs, Oct 18 2012 6:52 am
Subject: Re: How do I disable emacs indent warnings ?

JohnT <j...@example.com> wrote:
> On Wed, 17 Oct 2012 14:40:01 +0000, JohnT wrote:

>> On Wed, 17 Oct 2012 12:12:24 +0100, Dave Gibson wrote:

>>> JohnT <j...@example.com> wrote:

>>>> I've been using emacs for long enough to know all about the indenting
>>>> issues, so I don't need this warning and emacs keeps replacing on of
>>>> my frames with the warning, which is very irritating. So, how do I get
>>>> rid of it ?

>>> Edit php-mode.el.  Look for (defvar php-warned-bad-indent nil).
>>> Replace nil with t.

>> That seems to have done the job - thanks. Been quite a few years since
>> I've dirtied my hands with elisp!

> Nope - sorry - didn't test it enough.

Uggreb.

> Still get the irritating error sometimes. Seems to be when I open a new
> <?php tag

> I'll see if I can rip the message out completely.

It should be possible to side-step the entire check -- both the php-indent
functions drop through to the c-indent equivalents so replace (somewhere
near line 379)

  (setq indent-line-function 'php-cautious-indent-line)
  (setq indent-region-function 'php-cautious-indent-region)

with

  (setq indent-line-function 'c-indent-line)
  (setq indent-region-function 'c-indent-region)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.