help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html-mode indentation clashes with skeleton-mode


From: Jason Dunsmore
Subject: Re: html-mode indentation clashes with skeleton-mode
Date: Tue, 26 Jun 2007 21:37:39 GMT
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"Lennart Borgman (gmail)" <address@hidden> writes:

> Jason Dunsmore wrote:
>> "Lennart Borgman (gmail)" <address@hidden> writes:
>>
>>> Jason Dunsmore wrote:
>>>> Hi,
>>>>
>>>> Since I've upgraded to Emacs 22, html-mode hasn't worked correctly
>>>> with skeleton-mode.  It's the same problem described in this post:
>>>>
>>>> http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/f51d7cc058221c52/85bfbc4da33f3c3c
>>>>
>>>> ..and shown in this screen capture:
>>>> http://script.hu/skel.png
>>>>
>>>> Is there a way to prevent this or disable html-mode indentation
>>>> altogether?  I've tried setting indent-tabs-mode to nil with no luck.
>>>> I'm using Emacs 22.1.1.
>>>>
>>>> Thanks for any suggestions.
>>>
>>> This seems to be a bug skeleton-internal/skeleton-internal-1. It is
>>> caused by skeleton calling (indent-according-to-mode) in a situation
>>> like this
>>>
>>>   <body>
>>>   X
>>>
>>> where X is the cursor position. This will give
>>>
>>>   <body>
>>>      X
>>>
>>> I think skeleton-internal/skeleton-internal-1 must delay calling
>>> (indent-according-to-mode) until the line is finished (ie after
>>> inserting "</body>\n" in this case).
>>
>> Is there a way to disable html-mode indentation in Emacs 22?
>
>
> I do not know what you mean, but it is skeleton that asks html-mode to
> do the indentation here.

I'm thinking of how html-mode indentation was in Emacs 21, ie.,
indent-according-to-mode and the tab key had no effect.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]