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: Lennart Borgman (gmail)
Subject: Re: html-mode indentation clashes with skeleton-mode
Date: Tue, 26 Jun 2007 20:53:28 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666

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.




reply via email to

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