[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Please review nvm.man-page
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] Please review nvm.man-page |
Date: |
Mon, 23 Aug 2010 07:37:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) |
Thomas Moschny <address@hidden> writes:
> Stephen Leake <address@hidden>:
>> This almost works (from bash under Emacs), but it loses all the
>> headers:
>>
>> function get_man_page_formatter_command()
>> local term_width = guess_terminal_width() - 2
>> local path = "c:/bin"
>> -- On MinGW, 'popen' runs 'cmd.exe' with the inherited path; run
>> Cygwin bash from there return string.format("bash -c nroff -man
>> -rLL=%dn | less -R", term_width) end
>
> Problem is that you need to pass exactly one argument to the -c option,
> so quoting is to be used:
>
> return string.format(
> "bash -c 'nroff -man -rLL=%dn' | less -R", term_width)
>
> works, at least under Linux. Otherwise, the -man and -r options are
> consumed by bash, not nroff.
Yes, that works; same result as running 'man' under Emacs.
Should we put a note about this in the manual, or an example monotonerc
in contrib?
> But then, me wonders where 'path' is used?
Sorry, that was left over from an earlier experiment; it should be
deleted.
--
-- Stephe
- Re: [Monotone-devel] Please review nvm.man-page, (continued)
- Re: [Monotone-devel] Please review nvm.man-page, Francis Russell, 2010/08/19
- Re: [Monotone-debian] Re: [Monotone-devel] Please review nvm.man-page, Thomas Keller, 2010/08/19
- Re: [Monotone-devel] Please review nvm.man-page, Stephen Leake, 2010/08/19
- Re: [Monotone-devel] Please review nvm.man-page, Thomas Keller, 2010/08/20
- Re: [Monotone-devel] Please review nvm.man-page, Stephen Leake, 2010/08/21
- Message not available
- Message not available
- Re: [Monotone-devel] Please review nvm.man-page, Thomas Keller, 2010/08/21
- Re: [Monotone-devel] Please review nvm.man-page, Stephen Leake, 2010/08/23
- Re: [Monotone-devel] Please review nvm.man-page, Thomas Moschny, 2010/08/23
- Re: [Monotone-devel] Please review nvm.man-page,
Stephen Leake <=
- Re: [Monotone-devel] Please review nvm.man-page, Thomas Keller, 2010/08/23
- Re: [Monotone-devel] Please review nvm.man-page, Stephen Leake, 2010/08/24
- Re: [Monotone-devel] Please review nvm.man-page, Thomas Keller, 2010/08/24
Re: [Monotone-devel] Please review nvm.man-page, Thomas Moschny, 2010/08/20