Free Global/Local/All Marks in Buffer/Line/Range
CodeWright® - API Macro - Royalty Free -
Free Global/Local/All Marks in Buffer/Line/Range.
This function deletes marks (bookmarks) from the current buffer, current line, or range of selected lines.
Delete all the marks of a certain type in the current buffer. You can choose to delete just the local marks, just the global marks, or both the local and global marks. To operate, set the cursor anywhere in the buffer of interest and issue the appropriate tlaMarkFree( "buffer" ) request.
Delete all the marks of a certain type on the current line. You can choose to delete just the local marks, just the global marks, or both the local and global marks. To operate, set the cursor anywhere on the line of interest and issue the appropriate tlaMarkFree( "line" ) request.
Delete all the marks of a certain type in the current selection. You can choose to delete just the local marks, just the global marks, or both the local and global marks. To operate, select a range of lines (single line, range of lines using line select, or range of lines using column select) and issue the appropriate tlaMarkFree( "range" ) request.
The ideal use for this function is to assign each of its three subsections to the Bookmark pop-up menu.
We recommend that you add three entries at the fourth location of the bookmarks pop-up menu. This results in:
This function calls tlaError.
Current version verified under:
CodeWright for .NET Restriction
If the cursor is on the line containg a mark that mark, taht mark will not be deleted under CodeWright for .NET. The workaround is to simply not leave the cursor on a line containg a mark befor issuing this function call.
There are three primary methods for installing this macro on your system. Method A uses the tlaMDE tool available for purchase from this website. Method B manipulates the macro repository directly. Method C uses the API Macro... tool provided in every copy of CodeWright (but not CodeWright for .NET).
Method A - tlaMDE - CodeWright or CodeWright for .NET
Method B - Copy to Repository - CodeWright or CodeWright for .NET
Method C - API Macro ... - CodeWright Only
tlaTools is a Dynamic Link Library that contains most of the API macros on this website in a single easy to install package. The tlaTools DLL can be purchased by selecting the Buy button on this page.
tlaMarkFree is included as a function in tlaTools.
Copyright © 1993-2005 Thom Little Associates, Ltd. revised
One Central Square, Keene, NH 03431-3787 phone 603-357-7567