* html-mode indentation clashes with skeleton-mode
@ 2007-06-23 22:11 Jason Dunsmore
2007-06-24 10:24 ` Lennart Borgman (gmail)
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jason Dunsmore @ 2007-06-23 22:11 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html-mode indentation clashes with skeleton-mode
2007-06-23 22:11 html-mode indentation clashes with skeleton-mode Jason Dunsmore
@ 2007-06-24 10:24 ` Lennart Borgman (gmail)
[not found] ` <mailman.2561.1182680672.32220.help-gnu-emacs@gnu.org>
2007-06-29 14:27 ` Stefan Monnier
2 siblings, 0 replies; 7+ messages 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] 7+ messages in thread
* Re: html-mode indentation clashes with skeleton-mode
[not found] ` <mailman.2561.1182680672.32220.help-gnu-emacs@gnu.org>
@ 2007-06-26 18:08 ` Jason Dunsmore
2007-06-26 18:53 ` Lennart Borgman (gmail)
[not found] ` <mailman.2649.1182884025.32220.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 7+ messages in thread
From: Jason Dunsmore @ 2007-06-26 18:08 UTC (permalink / raw)
To: help-gnu-emacs
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> 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?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html-mode indentation clashes with skeleton-mode
2007-06-26 18:08 ` Jason Dunsmore
@ 2007-06-26 18:53 ` Lennart Borgman (gmail)
[not found] ` <mailman.2649.1182884025.32220.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2007-06-26 18:53 UTC (permalink / raw)
To: Jason Dunsmore; +Cc: help-gnu-emacs
Jason Dunsmore wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html-mode indentation clashes with skeleton-mode
[not found] ` <mailman.2649.1182884025.32220.help-gnu-emacs@gnu.org>
@ 2007-06-26 21:37 ` Jason Dunsmore
2007-06-27 0:08 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 7+ messages in thread
From: Jason Dunsmore @ 2007-06-26 21:37 UTC (permalink / raw)
To: help-gnu-emacs
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> Jason Dunsmore wrote:
>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html-mode indentation clashes with skeleton-mode
2007-06-26 21:37 ` Jason Dunsmore
@ 2007-06-27 0:08 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2007-06-27 0:08 UTC (permalink / raw)
To: Jason Dunsmore; +Cc: help-gnu-emacs
Jason Dunsmore wrote:
> I'm thinking of how html-mode indentation was in Emacs 21, ie.,
> indent-according-to-mode and the tab key had no effect.
I do not know very much about 21, but it seems to me then that it is
much better in 22.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html-mode indentation clashes with skeleton-mode
2007-06-23 22:11 html-mode indentation clashes with skeleton-mode Jason Dunsmore
2007-06-24 10:24 ` Lennart Borgman (gmail)
[not found] ` <mailman.2561.1182680672.32220.help-gnu-emacs@gnu.org>
@ 2007-06-29 14:27 ` Stefan Monnier
2 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2007-06-29 14:27 UTC (permalink / raw)
To: help-gnu-emacs
> 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.
Fix your skeleton. As the doc indicates, \n inserts a newline and then
indents the new line. In your case you want to indent the current line
before inserting the \n, so you want to add > before \n.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-06-29 14:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-23 22:11 html-mode indentation clashes with skeleton-mode Jason Dunsmore
2007-06-24 10:24 ` Lennart Borgman (gmail)
[not found] ` <mailman.2561.1182680672.32220.help-gnu-emacs@gnu.org>
2007-06-26 18:08 ` Jason Dunsmore
2007-06-26 18:53 ` Lennart Borgman (gmail)
[not found] ` <mailman.2649.1182884025.32220.help-gnu-emacs@gnu.org>
2007-06-26 21:37 ` Jason Dunsmore
2007-06-27 0:08 ` Lennart Borgman (gmail)
2007-06-29 14:27 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.