bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#8122: 23.2.94; (prefer-coding-system 'utf-8) changes indentation beh


From: Eli Zaretskii
Subject: bug#8122: 23.2.94; (prefer-coding-system 'utf-8) changes indentation behavior for emacsclient
Date: Sat, 26 Feb 2011 17:37:49 +0200

> Date: Sat, 26 Feb 2011 09:31:16 -0500
> From: Steve Revilak <steve@srevilak.net>
> Cc: 
> 
> (3) In the buffer for a.txt, type the lines that appear below.  Do not
>      press return after typing "ccc"
> 
> aaa
> bbb
> 
>    ccc
> 
> (4) With point at the end of line "ccc", press RETURN.  If "ccc"
>      appeared in line 5 of the buffer, then the cursor will appear at
>      line 6, column 2.  
> 
> Expected behavior: after pressing RETURN, the cursor should have
> appeared line line 6, column 0.

This happens because RET is somehow perceived as C-j, which invokes
newline-and-indent, and not as RET that runs newline.  Try "C-h c RET"
and see what it says.

I have no idea how prefer-coding-system is able to modify the way RET
is interpreted by Emacs.





reply via email to

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