|
From: | Jan Djärv |
Subject: | Re: [PATCH] Snarf-documentation was working by accident |
Date: | Sat, 14 Aug 2010 08:47:11 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
Daniel Colascione skrev 2010-08-13 18.31:
That only applies to the C code though, right? There's also quite a bit of logic surrounding delay-loading docstrings from *regular* compiled elisp files. I just can't but wonder whether all that complexity is still needed.
As long as it works nobody seems motivated to change it.
I don't think your fix does the right thing here. The grammar of DOC is roughly: DOC = FILE-ENTRY+ FILE-ENTRY = FILE-HEADER (VAR-ENTRY | FUNCTION-ENTRY)* FILE-HEADER = "^_S" FILE-NAME "\n" VAR-ENTRY = "^_V" SYMBOL-NAME "\n" DOCSTRING FUNCTION-ENTRY = "^_F" SYMBOL-NAME "\n" DOCSTRING Your patch resets skip_file each time we see a "^_", but skip_file is supposed to apply to an entire file-entry. Consequently, if I'm reading your patch correctly, skip_file is always 0 when we encounter a VAR-ENTRY or FUNCTION-ENTRY, which will cause other problems. (Also, the comment on line 643 is wrong and doesn't talk about the FILE-HEADER case.)
You are quite right, I was too fast. I updated the code. Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |