From: nico <nicolas.marsgui@libertysurf.fr>
Subject: Re: \typefile with a file in \usepath fails
Date: Sun, 30 Apr 2006 21:02:18 +0200 [thread overview]
Message-ID: <ops8t4h4c99niby6@localhost> (raw)
In-Reply-To: <4454ED09.6090004@wxs.nl>
On Sun, 30 Apr 2006 18:59:53 +0200, Hans Hagen <pragma@wxs.nl> wrote:
> nico wrote:
>> On Sun, 30 Apr 2006 15:22:49 +0200, Hans Hagen <pragma@wxs.nl> wrote:
>>
>>
>>>>> what version of context do you run? i though that i added support for
>>>>> that some time ago
>>>>>
>>>> Version 2006.04.27.
>>>>
>>>> \dodotypefile checks where the file is, but a following call to
>>>> \makelocreadfilename seems to set improperly \readfilename, but I'm
>>>> not
>>>> sure to understand correctly the code.
> it's
>
> \makelocreadfilename{#3}%
>
> that does the search
With the following patch it works: the \filepath found is used to expand
the filename. \makelocreadfilename is still used, but i don't understand
its role.
\def\dodotypefile[#1][#2]#3%
{\bgroup
\let\currenttypingclass\??tp
\edef\currenttyping{#1}%
\typingparameter\c!before
\doiflocfileelse{#3}
\donetrue % sets \readfilename
{\doifinputfileelse{#3}
{\donetrue\def\readfilename{\pathplusfile{\filepath}{#3}}} % here
the filename is absolute
\donefalse}%
\ifdone
\startpacked % includes \bgroup
\dosetuptypelinenumbering{#2}%
\doifinset{\typingparameter\c!option}{\v!commands,\v!slanted,\v!normal}
{\setuptyping[#1][\c!option=\v!none]}%
\doif{\typingparameter\c!option}\v!color
{\expandafter\aftersplitstring#3\at.\to\prettyidentifier
\settypingparameter\c!option{\prettyidentifier}}%
\initializetyping
\startverbatimcolor
% still use this macro, but applied to \readfilename instead of #3
\makelocreadfilename{\readfilename}%
\doifundefinedelse{\currenttypingclass#3\v!global\c!start}
...
Now it can wait a real fix :-)
Regards,
BG
prev parent reply other threads:[~2006-04-30 19:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-28 20:30 nico
2006-04-30 10:33 ` Hans Hagen
2006-04-30 12:23 ` nico
2006-04-30 13:22 ` Hans Hagen
2006-04-30 15:04 ` nico
2006-04-30 16:59 ` Hans Hagen
2006-04-30 18:28 ` nico
2006-04-30 19:02 ` nico [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ops8t4h4c99niby6@localhost \
--to=nicolas.marsgui@libertysurf.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).