On 1/12/25 11:27 PM, Matthew Tromp wrote:
I'm working on emacs support for export-completions and I've
encountered an issue.  Directories in 'export-completions' output do
not include trailing slashes.

OK.

And have to manually append a / before continuing. Emacs can't figure
out whether a given completion is a directory or not becuase it
doesn't know the value of 'rl_filename_completion_desired'.

Emacs can bind a key sequence to rl_dump_variables (`dump-variables') and
parse the output, but your solution is cleaner.


 From looking through the completions display code, it seems like
'print_filename' is what adds these slashes when displaying
completions.

Is this all that emacs needs, or should we add a call to printable_part()
as with other uses of print_filename()?

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to