emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The netsec thread


From: Lars Ingebrigtsen
Subject: Re: The netsec thread
Date: Mon, 23 Jul 2018 14:46:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Jimmy Yuen Ho Wong <address@hidden>
>> Date: Mon, 23 Jul 2018 02:52:23 +0100
>> Cc: Eli Zaretskii <address@hidden>, Emacs-Devel devel <address@hidden>
>> 
>> That sound great, but what is this select-safe-coding-system and how
>> do I look at its UI?
>
> lisp/international/mule-cmds.el, look at
> select-safe-coding-system-interactively, a subroutine of
> select-safe-coding-system.  In a nutshell, it prepares and pops up a
> buffer with special content, then prompts the user to select one of
> several alternatives.

Hm...  I ran:

(select-safe-coding-system-interactively 1 3 (find-coding-systems-region 1 3) 
nil)

and it just popped up a buffer with some text and then called
`read-coding-system', which is kinda close to what the NSM prompt is
doing already.  Only the NSM prompt calls a y-or-n-p-equivalent, so that
you can't enter any other keys then the required ones, while
`read-coding-system' uses the more freeform minibuffer read...

So it's still modal, and not the more "just drop us into a buffer with a
special mode and continue execution after the user hits a keystroke",
isn't it?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]