From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Kahn Gillmor Newsgroups: gmane.emacs.bugs Subject: bug#18513: 24.3; message-mode sends unencrypted on error Date: Tue, 24 Sep 2019 12:49:50 +0200 Message-ID: <87lfuem0j5.fsf@fifthhorseman.net> References: <878ulebz1x.fsf@maritornes.cs.unb.ca> <87zjdid6ny.fsf-ueno@gnu.org> <87k34mei9j.fsf@maritornes.cs.unb.ca> <87muev8cc3.fsf@gnus.org> <877e5zjjdh.fsf@tethera.net> <87ftkn6rv5.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="135626"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 18513@debbugs.gnu.org, Daiki Ueno To: Lars Ingebrigtsen , David Bremner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 24 19:45:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCosH-000ZAL-P6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Sep 2019 19:45:17 +0200 Original-Received: from localhost ([::1]:49466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCosG-00032A-28 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Sep 2019 13:45:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44613) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCos5-0002zh-FA for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 13:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCos3-00005u-GR for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 13:45:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59504) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCos2-0008W0-2l for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 13:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iCos1-0006Mk-Sd for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 13:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Kahn Gillmor Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Sep 2019 17:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18513 X-GNU-PR-Package: emacs Original-Received: via spool by 18513-submit@debbugs.gnu.org id=B18513.156934704324376 (code B ref 18513); Tue, 24 Sep 2019 17:45:01 +0000 Original-Received: (at 18513) by debbugs.gnu.org; 24 Sep 2019 17:44:03 +0000 Original-Received: from localhost ([127.0.0.1]:40092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCor4-0006L6-Ny for submit@debbugs.gnu.org; Tue, 24 Sep 2019 13:44:03 -0400 Original-Received: from che.mayfirst.org ([162.247.75.118]:43393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCor1-0006KY-1S for 18513@debbugs.gnu.org; Tue, 24 Sep 2019 13:43:59 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1569347037; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=fniKLm6IME78s6LGGV8fLWxkOxNbBR7E8LmBfziJetY=; b=CmR607mPK9THyOaKtObzt9zTF3daZV+G7B11j9qBwKgVMaGUy9Js0pny XQR9ctmhzU+Of1wBMc1gBOAwrix2Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1569347037; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=fniKLm6IME78s6LGGV8fLWxkOxNbBR7E8LmBfziJetY=; b=WwPHjtnbaPu7HViC5QMuKKGXQblVUgroAyQ5EKRwLhZRdvHRIbbwUzC0 UThEr99Kb9UaFXgM7vc1/iBaESTHx++BV9+5Qq0xKuTHqjE99tliLNCfeK rQ0/fN7BRpI2xqqae+xbV7U6Sy2NldjmMAMbAZnsli0UfvGjRSe49O3A5h Tw1iljZzA93FANx6XJfeI00/Hof5Bv1WRBtv6TtlUWP6Q8OyPxkJaP/1KS Cj2vakXtwC5J+ggz+C3cp0kkCVyBz9es/uTQmKiRGC82/3zjKUXxB9TGHi drFreeDd103dnk5x/rTZXKSH9kWG4w/zh7wM2JJOhBFEkqOfHXIzog== Original-Received: from fifthhorseman.net (dh207-27-210.xnet.hr [88.207.27.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 454D1F9A5; Tue, 24 Sep 2019 13:43:57 -0400 (EDT) Original-Received: by fifthhorseman.net (Postfix, from userid 1000) id 676D2205C9; Tue, 24 Sep 2019 06:49:51 -0400 (EDT) In-Reply-To: <87ftkn6rv5.fsf@gnus.org> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQUJA8Jn AAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJcQsbzAhkB AAoJEPIGkReQOOXG4fkBAO1joRxqAZY57PjdzGieXLpluk9RkWa3ufkt3YUVEpH/AP9c+pgIxtyW +FwMQRjlqljuj8amdN4zuEqaCy4hhz/1DbgzBFxCv4sWCSsGAQQB2kcPAQEHQERSZxSPmgtdw6nN u7uxY7bzb9TnPrGAOp9kClBLRwGfiPUEGBYIACYWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUCXEK/ iwIbAgUJAeEzgACBCRDyBpEXkDjlxnYgBBkWCAAdFiEEyQ5tNiAKG5IqFQnndhgZZSmuX/gFAlxC v4sACgkQdhgZZSmuX/iVWgD/fCU4ONzgy8w8UCHGmrmIZfDvdhg512NIBfx+Mz9ls5kA/Rq97vz4 z48MFuBdCuu0W/fVqVjnY7LN5n+CQJwGC0MIA7QA/RyY7Sz2gFIOcrns0RpoHr+3WI+won3xCD8+ sVXSHZvCAP98HCjDnw/b0lGuCR7coTXKLIM44/LFWgXAdZjm1wjODbg4BFxCv50SCisGAQQBl1UB BQEBB0BG4iXnHX/fs35NWKMWQTQoRI7oiAUt0wJHFFJbomxX X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167113 Archived-At: --=-=-= Content-Type: text/plain On Mon 2019-09-23 15:53:50 +0200, Lars Ingebrigtsen wrote: > David Bremner writes: > >> I don't think the fact that we can't do a perfect job is a reason not to >> improve the error checking. There are many errors that can be detected >> that currently are not. Is erroring on an unknown mml tag (which >> nonethless actually looks like a tag) actually difficult? > > It's not difficult to bug out on <#unknown>, but since Message mode > buffers mostly free text, doing so would lead to people having their > emails fail if they were to type such a thing by hand. MML is only > recognised if it's one of the keywords it er recognises. It seems to me that there's a sensible balance to be struck, where MML can carve out a recognizable, predictable space, while still not causing unncessary failures. For example, it could try to interpret every sequence that starts with the two characters U+003C LESS-THAN SIGN, U+0023 NUMBER, and ends with U+003E GREATER-THAN SIGN, if those characters are all on a single line. (does mml handle tags split across multiple lines?) But since the goal of this bug report, afaict, is to reduce user error when composing and sending mail in mml-mode, UI/UX feedback choices are pretty critical to making this work right. I do note that mml-mode itself offers some help, because it seems to apply a different textual style to strings that mml will act on. As long as the user can visually distinguish between these textual styles, and assuming that the matching rules in mml-mode are precisely aligned with the mml-based transformation that happens just before a buffer is sent, then the user has some amount of feedback -- but i'm not sure that both of those assumptions holds in a buffer during arbitrary editing. Does it? Even better UX would be a distinct textual style between a valid/actionable mml-tag and an mml-tag that has an error in it, so that the user oomposing the buffer has immediate feedback about potentially problematic strings. Thanks for maintaining MML! --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQTJDm02IAobkioVCed2GBllKa5f+AUCXYn0zwAKCRB2GBllKa5f +H6OAP90xmw05nFACSa7OLhdsEonVSmZWmpS0xR4KQXT5zHhuAD/cIaQD8Wck5UI fFlIPemGKq8DTPU4SMgzuRPae4aXYQ4= =2S1I -----END PGP SIGNATURE----- --=-=-=--