[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] On the nasty "ghost key" problem on NS
From: |
Po Lu |
Subject: |
Re: [PATCH] On the nasty "ghost key" problem on NS |
Date: |
Fri, 04 Nov 2022 19:27:57 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Kai Ma <justksqsf@gmail.com> writes:
> + owfi = waiting_for_input;
> + waiting_for_input = false;
> + if (WINDOWP (echo_area_window) && ! NILP (safe_call_inhibit_quit (0,
> Qns_in_echo_area)))
> win = XWINDOW (echo_area_window);
> else
> win = XWINDOW (FRAME_SELECTED_WINDOW (emacsframe));
> + waiting_for_input = owfi;
Please rename `owfi' to `was_waiting_for_input' or some other more
descriptive name. What happens if you just block input around safe_call
(0, Qns_in_echo_area), instead of making an extra function that passes a
magic flag to safe__call?
> +Lisp_Object
> +safe_call_inhibit_quit (ptrdiff_t nargs, Lisp_Object func, ...)
> +{
> + Lisp_Object retval;
> + va_list ap;
> +
> + va_start (ap, func);
> + retval = safe__call (true, nargs, func, ap);
> + va_end (ap);
> + return retval;
> +}
> +
This seems extraneous to me.
- [PATCH] On the nasty "ghost key" problem on NS, Kai Ma, 2022/11/03
- Re: [PATCH] On the nasty "ghost key" problem on NS, Po Lu, 2022/11/03
- Re: [PATCH] On the nasty "ghost key" problem on NS, Kai Ma, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Po Lu, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Kai Ma, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Po Lu, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Kai Ma, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS,
Po Lu <=
- Re: [PATCH] On the nasty "ghost key" problem on NS, Kai Ma, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Po Lu, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Stefan Monnier, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Po Lu, 2022/11/04
- Re: [PATCH] On the nasty "ghost key" problem on NS, Stefan Monnier, 2022/11/05
- Re: [PATCH] On the nasty "ghost key" problem on NS, Kai Ma, 2022/11/05
- Re: [PATCH] On the nasty "ghost key" problem on NS, Stefan Monnier, 2022/11/05
- Re: [PATCH] On the nasty "ghost key" problem on NS, Po Lu, 2022/11/05
- Re: [PATCH] On the nasty "ghost key" problem on NS, Kai Ma, 2022/11/10
- Re: [PATCH] On the nasty "ghost key" problem on NS, Po Lu, 2022/11/10