Wednesday, August 19, 2020

Re: How to quiet the message when filtering...


So, having worked with it a bit, I'm now content with using "silent" to solve this issue. Although a little convoluted, it seems pretty straightforward to put all the commands into a function, and then create a command to call that function with silent. I.e..:

command! MyCommand silent call MyFunction()

Then everything works as expected with MyCommand.

But I am curious as to why you say that the Vim Developers are trying to avoid adding options. Is there any intrinsic reason why adding options is undesirable?

Is it just "feature creep" - i.e., if you do it for me, then you have to do it for the next guy and the next guy and so on?
On Tuesday, August 18, 2020, 10:14:50 AM EDT, Christian Brabandt <cblists@256bit.org> wrote:



On Di, 18 Aug 2020, 'J S' via vim_use wrote:

>  Actually, I figured out from the help file a workaround, which is to put all the commands into a function and then do: silent call Function()
>
> It is funny how often functions are the workaround for a lot of the quirks in the Vim ecosystem.
>
> Anyway, I think I will go with that - at least for now - but I will look into the '-s-ex' option at some later time (I did read about it; just haven't tested it yet). Thanks.
>
> P.S. It still seems to me like there should be an option, like "set silent/set nosilent' to just turn it on/off globally. That sounds like something that should be included in a future version.

If possible we want to avoid adding yet another Option.

Best,
Christian
--
Ist die Bundesregierung "das Böse"?  Natürlich nicht!  Das Böse müssen
wir uns als etwas Großes vorstellen - da kann es die Bundesregierung schon
mal nicht sein.  Da würden wir dem Bösen nicht gerecht.
        -- Georg Schramm


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200818141429.GD17606%40256bit.org.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/847320844.3414086.1597864276900%40mail.yahoo.com.

No comments: