[PATCH] Choose syntax

Leonard den Ottolander leonard at den.ottolander.nl
Sun Jul 10 10:36:45 UTC 2005


Hi,

Another approach to overriding the automatic syntax type detection.
Using a WList instead of a dialog with a quick_input. Patch is against
MC_4_6_1_PRE.

A few comments on the code:
- The syntax list is refilled on every invokation of the dialog. Another
approach would be to save the list of syntaxes to a file and only update
it when either the Syntax file is updated (either by testing the date or
by explicit user command).

- The syntax list is currently of static length (I hope 1024 entries
will suffice ;) ). Creating and growing it dynamically as the list gets
build would be nicer but I couldn't get that to work yet.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MC_4_6_1_PRE.syntax.patch
Type: text/x-patch
Size: 8974 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050710/2001e94b/attachment.bin>


More information about the mc-devel mailing list