From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.devel Subject: Re: The netsec thread Date: Mon, 23 Jul 2018 15:43:31 +0100 Message-ID: References: <83bmb214ez.fsf@gnu.org> <837elq13me.fsf@gnu.org> <83h8kqwukq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1532356921 4533 195.159.176.226 (23 Jul 2018 14:42:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2018 14:42:01 +0000 (UTC) Cc: Emacs-Devel devel To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 23 16:41:57 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhc29-00013N-An for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2018 16:41:57 +0200 Original-Received: from localhost ([::1]:34982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhc4G-0000Ri-4f for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2018 10:44:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhc42-0000PT-3B for emacs-devel@gnu.org; Mon, 23 Jul 2018 10:43:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhc41-0000ar-93 for emacs-devel@gnu.org; Mon, 23 Jul 2018 10:43:54 -0400 Original-Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]:40129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhc41-0000aa-1Y for emacs-devel@gnu.org; Mon, 23 Jul 2018 10:43:53 -0400 Original-Received: by mail-io0-x22b.google.com with SMTP id l14-v6so734288iob.7 for ; Mon, 23 Jul 2018 07:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O6fz5NTzrBX4Nq4fFP7kuJVhnQBYK9+nQekJ6f6rsbI=; b=FBI8o5oINDJMKggs8ho4T61jnor+KV54CWdFB7/WOaBWOP0C7hA4z9O4TppW0Kfegw XRKO3pLILDbt4xU/iW3KpdtM3yKFnOSSsDdzycB+4aW45Ua/9McIX8Nhik91XsUaqEGl kj0eEDaV6QEkeNRmlPgfDHjCaw4p14xZ7+A1THRtYYDwJQH5IFW4RurmuleoSU3b5iNJ SXiTDG+cKguYiDGYRqcxSc0iR/Ofnfuqkkre9vdmttVgt8xo4tgXAdaRfV532dLUhJL3 ghMF5CSl622EP8JGAV7MFvUJ6fsChIwZUJheTsHl9Eaf0Ghh3+2B5NmB/NuTekDraJwA iwkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O6fz5NTzrBX4Nq4fFP7kuJVhnQBYK9+nQekJ6f6rsbI=; b=JJ3B4ikr0HOHHxF9ybAf+HN4Znesqo+fWvJrk1HfA4r0GeLzVVlymohAPQ5zCKM9Pd 7lxp9wYA05jmRWH/LqTwME8N5z3n6B5dmKN99BV9+CNdJ6o3ORNccyem05pdmN/esYMv tGrg/00SeTjm4yX/T2CF8qh9Sg45nhq6615d/00Y/h3iBD6E9eleBnYv2Nlo6ou/vbtP oFFdWYf8FVsGbplnuK2PGLfDesPR+eYyRzk1kb1AM+AgG+RG2wLnwPBpefKW5ch1zAnd zDbZZmSv5WpB4jp2web7PSfD5POm9J1uDEri1KUGzqwYeWrQOObo/xZAlfYXNTVaCjTG +A4Q== X-Gm-Message-State: AOUpUlFCg5jbJCCmPVD/TV8R0fRZmVHcdrPYTIwfGQhTIvmHojxgz9UI ZPu1UEupq7wX+Mfdh+WxM7MIKXa3TpIdZEwfmZM= X-Google-Smtp-Source: AAOMgpfBlzd+2hUbbZwXnh19oK8tWl5+FQz3jsJDNetAMyQQRDyqB1IE/8yyvlR1QitRhp4ZdxiQ4deS+kW2KQtaCsQ= X-Received: by 2002:a6b:e00f:: with SMTP id z15-v6mr10073707iog.296.1532357032269; Mon, 23 Jul 2018 07:43:52 -0700 (PDT) Original-Received: by 2002:a02:985d:0:0:0:0:0 with HTTP; Mon, 23 Jul 2018 07:43:31 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227710 Archived-At: On Mon, Jul 23, 2018 at 2:31 PM, Andy Moreton wrote: > On Mon 23 Jul 2018, Lars Ingebrigtsen wrote: > >> Eli Zaretskii writes: >> >>>> From: Jimmy Yuen Ho Wong >>>> Date: Mon, 23 Jul 2018 02:52:23 +0100 >>>> Cc: Eli Zaretskii , Emacs-Devel devel >>>> >>>> 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 > > That sounds like a lot of trouble just to deal with ^G