Monday, March 16, 2026

Re: Does popup_menu() functions asynchronous?



пн, 16 мар. 2026 г., 18:54 Piotr Kolasiński <ptkola@gmail.com>:

Thanks for the response, but I'm afraid that I don't understand what you suggest. Could you be so kind and show me simple example.
Piotr
czwartek, 5 marca 2026 o 15:10:21 UTC+1 M napisał(a):


вт, 3 мар. 2026 г., 11:41 Piotr Kolasiński <ptk...@gmail.com>:
I try to use popup_menu() in linear code like:

——

func PopupResult(id, sel)
    let g:popup_sel = a:result
    echo "In popup: " .. g:result
endfunc

call popup_menu(["A","B","C"], #{ callback: 'PopupResult' })

echo 'After popup'

——-

but 'After popup' is displayed immediately, not waiting for finish the call. 
Does popup_menu works asynchronous? How can I execute such code in linear way?

Piotr

--
--
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+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/78474f86-0bd6-401c-bdc3-fc85b4ca7b45n%40googlegroups.com.

Hello,

No you can't. The good news is that you hardly ever need it. Just return and continue execution from the callback function. The way typical for _modeless_ dialogs.

Regards,
Matvey

--
--
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 visit https://groups.google.com/d/msgid/vim_use/86113ba2-911b-4ce2-ad3d-cecfa9f368b2n%40googlegroups.com.

Hello,


Regards,
Matvey

--
--
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 visit https://groups.google.com/d/msgid/vim_use/CAFsTB%2BJi3kYZHDdW6vw9nLBdkqK90z8Xdt-qabFzsimWpiXrMg%40mail.gmail.com.

Re: Does popup_menu() functions asynchronous?


Thanks for the response, but I'm afraid that I don't understand what you suggest. Could you be so kind and show me simple example.
Piotr
czwartek, 5 marca 2026 o 15:10:21 UTC+1 M napisał(a):


вт, 3 мар. 2026 г., 11:41 Piotr Kolasiński <ptk...@gmail.com>:
I try to use popup_menu() in linear code like:

——

func PopupResult(id, sel)
    let g:popup_sel = a:result
    echo "In popup: " .. g:result
endfunc

call popup_menu(["A","B","C"], #{ callback: 'PopupResult' })

echo 'After popup'

——-

but 'After popup' is displayed immediately, not waiting for finish the call. 
Does popup_menu works asynchronous? How can I execute such code in linear way?

Piotr

--
--
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+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/78474f86-0bd6-401c-bdc3-fc85b4ca7b45n%40googlegroups.com.

Hello,

No you can't. The good news is that you hardly ever need it. Just return and continue execution from the callback function. The way typical for _modeless_ dialogs.

Regards,
Matvey

--
--
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 visit https://groups.google.com/d/msgid/vim_use/86113ba2-911b-4ce2-ad3d-cecfa9f368b2n%40googlegroups.com.

Sunday, March 15, 2026

Re: Current Position



On Sunday, March 15, 2026 at 8:13:17 PM UTC-4 Christopher wrote:
On Wednesday, March 11, 2026 at 2:56:40 PM UTC-4 Christian Brabandt wrote:

On Mi, 11 Mär 2026, Christopher wrote:

> I tried vim --clean I don't see anything happen ?

Please do not top poste.

Does this work?
:exe ":norm! g\<c-g>"


Thanks,
Christian
--
District of Columbia pedestrians who leap over passing autos to escape
injury, and then strike the car as they come down, are liable for any
damage inflicted on the vehicle.

I think my versions of vim just won't work with g - ctrl+g. I searched into other programs using this short-cut, there is nothing. Strangest issue.   

The issue is resolved; it's because :messages is hidden.  

--
--
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 visit https://groups.google.com/d/msgid/vim_use/686b1c04-55a8-4330-9f26-9d8c6804ec1cn%40googlegroups.com.

Re: Current Position



On Wednesday, March 11, 2026 at 2:56:40 PM UTC-4 Christian Brabandt wrote:

On Mi, 11 Mär 2026, Christopher wrote:

> I tried vim --clean I don't see anything happen ?

Please do not top poste.

Does this work?
:exe ":norm! g\<c-g>"


Thanks,
Christian
--
District of Columbia pedestrians who leap over passing autos to escape
injury, and then strike the car as they come down, are liable for any
damage inflicted on the vehicle.

I think my versions of vim just won't work with g - ctrl+g. I searched into other programs using this short-cut, there is nothing. Strangest issue.   

--
--
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 visit https://groups.google.com/d/msgid/vim_use/4e5abd7e-5870-48c7-859a-53f802c4dd80n%40googlegroups.com.

Re: Current Position



On Sunday, March 15, 2026 at 10:18:40 AM UTC-4 Yongwei Wu wrote:
On Sunday, March 15, 2026 at 9:17:41 PM UTC+8 Christopher wrote:

 I understand it works for you; although as I posted. It doesn't work in my case. I see the `g` in the bottom of the screen but when doing CTRL+G nothing happens ? 

You need to provide more information about your environment: OS, remote or local, terminal app if you are doing remote, :version output, etc.

Does any Ctrl key work, like Ctrl-F for Page down, Ctrl-B for Page up, and Ctrl-G for Print current file name? Could it be that some app intercepted Ctrl-G for some purposes?
 
The method of using the `...` to post below using Google Groups web interface exposes my email address; do I want that ? 

I am replying now in the Google Groups web UI, and you can see the result yourself. Also, your e-mail address is never a secret for subscribers of this mailing list. 

CTRL+F, CTRL+G work, so yes; some of the CTRL keys do work. I'm looking into another program currently; although it seems nothing exists which would block this combination of keys.  

--
--
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 visit https://groups.google.com/d/msgid/vim_use/d370d68a-6dc8-4e05-b4f0-118906985f74n%40googlegroups.com.

Re: Current Position

On Sunday, March 15, 2026 at 9:17:41 PM UTC+8 Christopher wrote:

 I understand it works for you; although as I posted. It doesn't work in my case. I see the `g` in the bottom of the screen but when doing CTRL+G nothing happens ? 

You need to provide more information about your environment: OS, remote or local, terminal app if you are doing remote, :version output, etc.

Does any Ctrl key work, like Ctrl-F for Page down, Ctrl-B for Page up, and Ctrl-G for Print current file name? Could it be that some app intercepted Ctrl-G for some purposes?
 
The method of using the `...` to post below using Google Groups web interface exposes my email address; do I want that ? 

I am replying now in the Google Groups web UI, and you can see the result yourself. Also, your e-mail address is never a secret for subscribers of this mailing list. 

--
--
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 visit https://groups.google.com/d/msgid/vim_use/79eaac72-26e4-4ed2-a6d8-f02b01eec7bdn%40googlegroups.com.

Re: Current Position

hi,

On Sun, 15 Mar 2026 at 13:17, Christopher <crestchristopher@gmail.com> wrote:
> ... exposes my email address; do I want that ?

if your questions are rhetorical, then no. ;-)

--
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

--
--
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 visit https://groups.google.com/d/msgid/vim_use/CAM-dBgrXsGtU7EAoeLr4XQuXT6qe8v9eMPfUqmq1bphwmqow3w%40mail.gmail.com.