help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] strange auto-fill behavior in html mode


From: Bingham, Jay
Subject: RE: [h-e-w] strange auto-fill behavior in html mode
Date: Mon, 8 Apr 2002 14:48:39 -0500

I Just tried this on emacs 20.4 running on a Unix system.  The behavior is 
similar, thought not exactly like what you describe.  The difference being that 
the second line does not get indented to line up with the -- in the first.  
Hope this helps in getting at the root of the problem.

J_)
C_)ingham
.    COMPAQ NonStop Integrity Systems
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-

 -----Original Message-----
From:   Michael W Daniels [mailto:address@hidden 
Sent:   Saturday, 06 April, 2002 12:54 p
To:     address@hidden
Subject:        [h-e-w] strange auto-fill behavior in html mode

This is 21.2.1 under WinXP, but I've had the same problem in older versions.

I'm editing a file in html mode with auto-fill-mode turned on. When I press 
space at the end of a line containing a fake dash ("--"), emacs inserts a 
"-->" at the end of the line, and on the next line tabs over to the "--" 
and inserts it again as a prefix. I'm guessing that it's doing this because 
it mistakenly thinks "--" is part of a "<!--" comment marker. This does not 
happen with M-q, though. How do I turn this off? I've looked through 
customize for options containing either "html" or "fill", but none of them 
seem relevant.

Steps to reproduce:

runemacs -q
C-x C-f test.html
M-x auto-fill mode
Type "This is a test. This is a -- test. This is another test. This is yet 
more test."

Result:

This is a test. This is a -- test. This is another test. This is yet -->
                          -- more test.

Desired result:

This is a test. This is a -- test. This is another test. This is yet
more test.

Any help would be quite appreciated!
-- 
Michael W. Daniels          | "The thunder was ominous-sounding, much
address@hidden |  like the sound of a thin sheet of metal
Department of Linguistics   |  being shaken backstage during the storm
218 Oxley Hall              |  scene in a play."






reply via email to

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