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