Annoying escape sequences in manual-entry bffer

Glynn Clements glynn at gclements.plus.com
Wed Jul 23 20:11:24 EDT 2008


Vladimir G. Ivanovic wrote:

> '(manual-entry "ls") produces stuff like this:
> 
> > ^[[1mNAME^[[0m
> >        ls - list directory contents
> > 
> > ^[[1mSYNOPSIS^[[0m
> >        ^[[1mls ^[[22m[^[[4mOPTION^[[24m]... [^[[4mFILE^[[24m]...
> > 
> > ^[[1mDESCRIPTION^[[0m
> >        List  information about the FILEs (the current directory by default).  Sort entries
> >        alphabetically if none of ^[[1m-cftuvSUX ^[[22mnor ^[[1m--sort^[[22m.
> 
> which didn't happen with a non-mule 21.5-b28 build. Merely changing 
> '--with-mule' to '--without-mule' fixes the problem.
> 
> I assume that other mule users don't see this. A gander through the 
> man.el file didn't reveal anything that I should do. Suggestions on 
> how to get rid of those annoying escape sequences in 'manual-entry' 
> output would be appreciated.

I had that, then I read in /etc/man.conf:

	# If you have a new troff (version 1.18.1?) and its colored output
	# causes problems, add the -c option to TROFF, NROFF, JNROFF.

So I changed to:

	NROFF		/usr/bin/nroff -c -mandoc

and it went away.

I have no idea why it would go away with a no-mule build, though.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the XEmacs-Beta mailing list