unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Re: html-mode indentation clashes with skeleton-mode
       [not found] <87bqf6iank.fsf@nospam.gmail.com>
@ 2007-06-24 10:24 ` Lennart Borgman (gmail)
  0 siblings, 0 replies; only message in thread
From: Lennart Borgman (gmail) @ 2007-06-24 10:24 UTC (permalink / raw)
  To: Jason Dunsmore, bug-gnu-emacs; +Cc: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-24 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87bqf6iank.fsf@nospam.gmail.com>
2007-06-24 10:24 ` html-mode indentation clashes with skeleton-mode Lennart Borgman (gmail)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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