defering indent upon newline

Tim Connors tconnors+xemacs
Tue Oct 31 01:07:17 EST 2006


In perl-mode with font-lock on, when you have whitespace at the end of 
line, including when you have just indented, you end up with an ugly 
underline.  This is of course intentional, to encourage you to get rid of 
wasted whitespace.

But, if you have newline-and-indent turned on, you get whitespace 
automatically, and this only gets removed if you put in more newlines.  
If you want to seperate a block by newlines either side, you have to 
juggle the cursor all over the place before you end up with two blank 
lines, and a line in the middle indented correctly.  And you can't just 
kill the whitespace on an otherwise blank line with ctrl-k, because it 
kills the entire line including the newline.

So, in light of this, does it make sense to defer the indenting of the 
current line until a character is actually input on that line?  Anyone 
with with any elisp skills got an idea of how to do that?

-- 
Tim Connors



More information about the XEmacs-Beta mailing list