[ale] Make emacs show "invisible" characters

Greg Sabino Mullane greg at turnstep.com
Wed Nov 22 12:22:58 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


JK wrote:
> I'm editing a source file that has line-ending issues --
> it's got a mix of DOS and Unix line endings.  I know
> there is a way to provoke emacs to explicitly display
> the line-ending characters (^M, ^J, etc) and other
> normally "invisible" whitespace, but I can't find it.

The canonical way around this is to simply convert the
entire file to a single line ending. If you don't have
dos2unix installed, you can do it with perl:

perl -pi -e 's/\r\n/\n/g' list_of_files_to_fix

If you want to view it in emacs, you can install the
blank-mode package:

http://www.emacswiki.org/cgi-bin/emacs/blank-mode_package


William Bagwell replied:
> ... Recently needed to do something similar, and resorted
> to using a hex editor.

You mean you entered hexl-mode inside of emacs, right? :)

- --
Greg Sabino Mullane greg at turnstep.com
PGP Key: 0x14964AC8 200611221216
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iD8DBQFFZIahvJuQZxSWSsgRArSpAJ0X1ZOi0zaSsqpdNuwnkqtVdL4t7ACg6CkG
w84nwNF6Pyu19DJp+pIfn8U=
=1rSq
-----END PGP SIGNATURE-----





More information about the Ale mailing list