unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* GROFF_NO_SGR when calling groff (was: Menu: Help -> Manuals -> Read Man Page... problem)
       [not found]     ` <2914-Thu18Mar2004182628+0200-eliz@elta.co.il>
@ 2004-03-19 18:47       ` Reiner Steib
  2004-03-19 20:02         ` GROFF_NO_SGR when calling groff Werner LEMBERG
  0 siblings, 1 reply; 2+ messages in thread
From: Reiner Steib @ 2004-03-19 18:47 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Thu, Mar 18 2004, Eli Zaretskii wrote:

>> > Current Emacs development sources already set GROFF_NO_SGR=1 when they
>> > run `man'.
[...]
> 	(setenv "GROFF_NO_SGR" "1")
> 	(if (fboundp 'start-process)
> 	    (set-process-sentinel
> 	     (start-process manual-program buffer "sh" "-c"
> 			    (format (Man-build-man-command) man-args))
> 	     'Man-bgproc-sentinel)

Wouldn't it make sense to _use_ the SGR control sequences by applying
`ansi-color-apply-on-region' (from `ansi-color.el') on the output
buffer instead of suppressing them?

I don't have groff >= 1.18 here so I dunno if it would work nicely.

[ Probably this should be discussed on emacs-devel.
  -> Added along with Mail-Followup-To: emacs-devel@gnu.org ]

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GROFF_NO_SGR when calling groff
  2004-03-19 18:47       ` GROFF_NO_SGR when calling groff (was: Menu: Help -> Manuals -> Read Man Page... problem) Reiner Steib
@ 2004-03-19 20:02         ` Werner LEMBERG
  0 siblings, 0 replies; 2+ messages in thread
From: Werner LEMBERG @ 2004-03-19 20:02 UTC (permalink / raw)
  Cc: bug-gnu-emacs, emacs-devel


> Wouldn't it make sense to _use_ the SGR control sequences by
> applying `ansi-color-apply-on-region' (from `ansi-color.el') on the
> output buffer instead of suppressing them?

Yes.  I've suggested this already, but my lisp knowledge (and my
available time) is too limited to do it by myself, and AFAIK nobody
has fixed it yet.  Volunteers welcome.


    Werner

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-19 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200403170956.i2H9uaPf029906@pcl321.mppmu.mpg.de>
     [not found] ` <7704-Wed17Mar2004210116+0200-eliz@elta.co.il>
     [not found]   ` <Pine.LNX.4.58.0403180936040.3919@pcl321.mppmu.mpg.de>
     [not found]     ` <2914-Thu18Mar2004182628+0200-eliz@elta.co.il>
2004-03-19 18:47       ` GROFF_NO_SGR when calling groff (was: Menu: Help -> Manuals -> Read Man Page... problem) Reiner Steib
2004-03-19 20:02         ` GROFF_NO_SGR when calling groff Werner LEMBERG

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).