emacs-devel
[Top][All Lists]
Advanced

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

Re: The netsec thread


From: Andy Moreton
Subject: Re: The netsec thread
Date: Mon, 23 Jul 2018 14:31:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt)

On Mon 23 Jul 2018, Lars Ingebrigtsen wrote:

> 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

... except if you do press a different key, NSM gets stuck and does not
accept new valid keys (other than ^G to quit).

    AndyM




reply via email to

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