Re: bwipeout "%" fails with E94 in vim9script

2024-05-14 Fir de Conversatie Tony Mechelynck
On Tue, May 14, 2024 at 4:10 AM Michael Soyka wrote: > > Chris, > > Thank you for the explanation but I don't think it explains everything. > See below. > > On 05/13/2024 4:15 PM, Christian Brabandt wrote: > > On Mo, 13 Mai 2024, Michael Soyka wrote: > > > >> Yes, your are right- the bwipeout

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
Chris, Thank you for the explanation but I don't think it explains everything.  See below. On 05/13/2024 4:15 PM, Christian Brabandt wrote: On Mo, 13 Mai 2024, Michael Soyka wrote: Yes, your are right- the bwipeout command succeeds without the double quotes in vim9script. Thanks for the

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
Now that I think about it, perhaps the reason ':bwipeout "%"' fails with error E94 is because "%", with the double quotes, is passed to bwipeout which understands % as a buffer name but not "%". I think this explains the behavior.  Thanks for the conversation! On 05/13/2024 4:15 PM, Christian

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Christian Brabandt
On Mo, 13 Mai 2024, Michael Soyka wrote: > Yes, your are right- the bwipeout command succeeds without the double > quotes in vim9script. Thanks for the solution! > > Given that, what feature of vim9script causes the error when double > quotes are used? In legacy vimscript, it doesn't matter

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
Yes, your are right- the bwipeout command succeeds without the double quotes in vim9script. Thanks for the solution! Given that, what feature of vim9script causes the error when double quotes are used? In legacy vimscript, it doesn't matter if double quotes are present or not. Perhaps this

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Christian J. Robinson
Try it without the quotes: bwipeout % On Mon, May 13, 2024 at 10:55 AM Michael Soyka wrote: > In the process of converting a file from vimscript to vim9script, I came > across the following inconsistent behavior with the ex-command bwipeout > "%". I'm running gvim 9.1.136 in Windows 10.

bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
In the process of converting a file from vimscript to vim9script, I came across the following inconsistent behavior with the ex-command bwipeout "%". I'm running gvim 9.1.136 in Windows 10. The problem is demonstrated by the two scripts below. bwipeoutBug.vim: " Source this script, then