Topic: VEDIT 6.12 (beta) dated 20-May-2004 (1 of 6), Read 56 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Thursday, May 20, 2004 11:28 PM

A new VEDIT 6.12 beta dated 20-May-2004 is now available at:

http://www.vedit.com/download/vp64-beta.exe

It addresses many issues (minor bug fixes and suggestions) that have recently been discussed in this conference.

It includes new versions of various macros that have been updated since 01-Apr-2004: wildfwiz.vdm, webxref.vdm, color.vdm, compdir.vdm, print.vdm, opencurs.vdm, linefilt.vdm, box-draw.vdm, compile.vdm, projsave.vdm and clipcatch.vdm.

Many thanks to Christian Ziemski for working on most of these macros.

If no major problems are found, it will soon be the release version.

The veditlog.txt entries since the last beta of 04-May-2004 include:

Fix - Sorting could get confused by blank lines
Fix - New projects didn't properly save unnamed buffers
Fix - Cursor positioning mode 4 problems with Screen display mode 4
Fix - {HELP, Text registers} crashed from COMMAND: prompt
Technical - Improved Get_Filename() command has new options
Technical - New Code_Page return user's language "code page"
Technical - New Config(F_A_SCAN_SIZE,"Auto file-type scan size")
Technical - Reg_Save(...,APPEND) now implemented
Technical - Block_SaveAs(...,APPEND) now implemented

The full veditlog.txt entries since version 6.11 are:

VEDIT LOG (veditlog.txt)
---------

05/20/04 6.12.1
Minor - Improved installation is more stable
Minor - Improved {USER, Color scheme}
Minor - Improved {FILE, More, Open URL/file at cursor}
Minor - Can disable "newline" chars in "word wrap display" mode
Minor - Must now double-click on status line to select functions
Minor - Obscure Config() parameters documented in on-line help
Fix - Misc problem related to "-s" invocation (instance control)
Fix - Misc problems Reloading files modified outside VEDIT
Fix - Opening a file in "browse-only" mode attempted to lock it
Fix - Opening a file in read-only directory gave "READ ERROR"
Fix - Browser functions didn't support Netscape 7.1
Fix - Sorting could get confused by blank lines
Fix - New projects didn't properly save unnamed buffers
Fix - Block indenting didn't go past column 128
Fix - Cursor positioning mode 4 problems with Screen display mode 4
Fix - {GOTO, Column #} didn't work well in hex and octal modes
Fix - {CONFIG, Word, Display lines with word wrap} didn't save
Fix - {MISC, ASCII table} didn't immediately display inserted chars
Fix - {HELP, Text registers} crashed from COMMAND: prompt
Fix - Ruler didn't display correctly in hex mode
Fix - Cursor could be moved to partial char on right window edge
Fix - {HELP, Text register} didn't always display full contents
Fix - Didn't print properly in Landscape mode
Fix - Ruler printed by PRINT.VDM didn't reach right paper edge
Fix - Macros could display unwanted "Cannot Undo" confirm prompt
Technical - Improved Get_Filename() command has new options
Technical - New Dir_Date() command displays full file info
Technical - Date() supports country-specific and other formats
Technical - New Code_Page return user's language "code page"
Technical - New File_Size("file") returns size of file
Technical - New File_Stamp_String(r,"file") returns date/time string
Technical - New File_Stamp_Date("file.ext") returns file's date
Technical - New File_Stamp_Time("file.ext") returns file's time
Technical - New File_Stamp_String(r,"file") returns date/time string
Technical - Goto_Col() and Cursor_Col() changed for hex/octal mode
Technical - New Config(F_CHK_MOD,"Check for modified files")
Technical - New Config(F_A_SCAN_SIZE,"Auto file-type scan size")
Technical - Reg_Save(...,APPEND) now implemented
Technical - Block_SaveAs(...,APPEND) now implemented
Technical - Invocation handles multiple directories in standard way
Technical Fix - Trace mode "$" command didn't always work properly
DOS only:
Fix - Disk sector editing often crashed (since 5.20.1)

Ted.

 


Topic: Re: VEDIT 6.12 (beta) dated 20-May-2004 (2 of 6), Read 51 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Thursday, May 20, 2004 11:44 PM


>The veditlog.txt entries since the last beta of 04-May-2004 include:
>
> Technical - Improved Get_Filename() command has new options
> Technical - New Code_Page return user's language "code page"
> Technical - New Config(F_A_SCAN_SIZE,"Auto file-type scan size")
> Technical - Reg_Save(...,APPEND) now implemented
> Technical - Block_SaveAs(...,APPEND) now implemented

In detail, the Get_Filename() command has a new "SET" option, and an optional 2nd parameter which sets the title.

Get_Filename(...) New SET option uses the specified T-Reg as the
default filename; 'fspec' sets only the filter.
Optional 2nd parameter sets the title. New FORCE
option displays the file selection dialog box even if
'fspec' does not contain wildcards.

See the new color.vdm macro for examples.

Code_Page Return Window's current "code page"; this typically
indicates the user's language, and how some fonts will
display special characters. The default code page for
the US version of Windows is 437.

Config() Several new Config() parameters have been added and
will be included in the VEDIT.CFG file:

F_CHK_MOD - Prompt user if open file is modified
outside VEDIT. Default = 1 (Yes - 1 sec).
F_A_SCAN_SIZE - Sets number of bytes that are scanned
in newly opened files to determine
their file type.


==> NOTE: Config(F_CHK_MOD,n) now both enables checking for externally modified files and sets how often VEDIT checks. We noticed that checking remote files (e.g. over a WAN) caused sluggish operation if files were checked every second. Therefore, you can now set a longer delay, such as 10 or 20 seconds. Currently this Config() parameter can only be changed by editing the vedit.cfg file.

The Reg_Save() and Block_SaveAs() commands now support the APPEND option - you can append the text register/block to any existing contents of a file.

Enjoy. And thank you for everyone's feedback in this conference.

Ted.

 


Topic: Re: VEDIT 6.12 (beta) dated 20-May-2004 (3 of 6), Read 32 times
Conf: VEDIT Macro Language Support
From: Pauli Lindgren
Date: Monday, May 31, 2004 09:57 AM

On Vedit 6.12, the pathname returned by Get_Filename() is no more enclosed in double-quotes.
This causes compatibility problems in some macros.

For example, my HTML Insert Image macro (html_img.vdm) did not work on V6.12. I just fixed that (the macro now checks if there are quotes, and adds them if not), but have not yet updated it on my web page.

There are probably other macros with the same problem.

--
Pauli

 


Topic: Re: VEDIT 6.12 (beta) dated 20-May-2004 (4 of 6), Read 33 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Monday, May 31, 2004 12:34 PM

At 09:57 AM 5/31/2004, you wrote:
>On Vedit 6.12, the pathname returned by Get_Filename() is no more enclosed in double-quotes. This causes compatibility problems in some macros.

Yes, we made this change on purpose; we think it is more consistent this new way. Since it is now possible to pass a default filename to the Get_Filename() command, the returned filename should have the same format.

I checked all macros supplied with VEDIT and did not see any compatibility problems.
A properly written macro shouldn't need the double-quotes in the filename itself - the macro command should supply the double-quotes. For example:

Get_Filename(10,"c:\data\*.dat")
File_Open("|@(10)") //DO NOT USE File_Open(@(10)) !!!

Unfortunately File_Open() and Dir() must explicitly specify the double-quotes. The reason is that these commands have options such as "-a" and "-s" which are not part of the filename. For example:

Get_Filename(10,"c:\vedit\*.vdm","Select Input File")
Get_Filename(11,"c:\vedit\*.vdm","Select Output File")
File_Open(`"|@(10)" -a "|@(11)"`)

Other commands do not need to explicitly include the double-quotes. For example:

Get_Filename(10,"c:\data\*.dat")
File_Delete(@(10)) //This works fine

Ted.

 


Topic: Re: VEDIT 6.12 (beta) dated 20-May-2004 (5 of 6), Read 36 times
Conf: VEDIT Macro Language Support
From: Pauli Lindgren
Date: Wednesday, June 02, 2004 10:54 AM

On 5/31/2004 12:34:47 PM, Ted Green wrote:
>
>A properly written macro shouldn't need the
>double-quotes in the filename itself - the macro command
>should supply the double-quotes.

The problem is that Vedit 6.11 and older *do* give the filename enclosed in quotes. If you just add the quotes, you will have double double quotes. For example, in the case of the html_img.vdm macro, you would have a image link such as
  IMG SRC=""logo.gif""
which is an error in HTML.

In fact, in this macro, it caused even more severe problem. The macro converts absolute path into relative path by comparing the html file path into the image file path. When the double quote character disappeared, the path was sifted by one character, and the compare failed.
I added a test for quote character, so that the macro now works both with old version and new version of Vedit.

I still have to check my other macros. At least the Insert Link macro (HREF.vdm) had the same problem. In this case, I only needed to add NOERR in one command:
  Replace('"','',ALL+NOERR) // remove quotes

My point is that if other users have compatibility problems with their macros, this may be the cause.

--
Pauli

 


Topic: Re: VEDIT 6.12 (beta) dated 20-May-2004 (6 of 6), Read 38 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Wednesday, June 02, 2004 11:20 PM

At 10:54 AM 6/2/2004, you wrote:
>The problem is that Vedit 6.11 and older *do* give the filename enclosed in quotes.
>...
>My point is that if other users have compatibility problems with their macros, this may be the cause.

Only macros that created code (e.g. your HTML code) would be affected. These are very rare. I have spent many, many hours dealing with how Windows and therefore VEDIT handles double-quotes.

You can be assured that Get_Filename() will never again add double-quotes to the filename. This was a very carefully thought out and intentional change.

Ted.