From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Dunsmore Newsgroups: gmane.emacs.help Subject: Re: html-mode indentation clashes with skeleton-mode Date: Tue, 26 Jun 2007 21:37:39 GMT Message-ID: <87zm2mflcq.fsf@gmail.com> References: <87bqf6iank.fsf@nospam.gmail.com> <877ipqh9mh.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182894035 21729 80.91.229.12 (26 Jun 2007 21:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2007 21:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 26 23:40:32 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I3Ilz-0007Wr-An for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jun 2007 23:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3Ily-0002Qq-PM for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jun 2007 17:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!out02a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc01.POSTED!066ebd94!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:hz9skD0o2z3a+YsQWYaNvKtXNiw= Original-Lines: 46 Original-NNTP-Posting-Host: 72.67.153.83 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: trnddc01 1182893859 72.67.153.83 (Tue, 26 Jun 2007 17:37:39 EDT) Original-NNTP-Posting-Date: Tue, 26 Jun 2007 17:37:39 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:149711 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45299 Archived-At: "Lennart Borgman (gmail)" writes: > Jason Dunsmore wrote: >> "Lennart Borgman (gmail)" 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 >>> >>> >>> X >>> >>> where X is the cursor position. This will give >>> >>> >>> X >>> >>> I think skeleton-internal/skeleton-internal-1 must delay calling >>> (indent-according-to-mode) until the line is finished (ie after >>> inserting "\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.