From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#35113: 27.0.50; key handling bug Date: Mon, 26 Aug 2019 19:16:15 -0400 Message-ID: References: <87blwc5u8m.fsf@gnus.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="127642"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35113@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 27 01:17:14 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 1i2OEb-000X62-W1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2019 01:17:14 +0200 Original-Received: from localhost ([::1]:58306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2OEa-0006Fp-Te for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Aug 2019 19:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56053) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2OER-0006DG-M7 for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2019 19:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2OEQ-0003gf-JD for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2019 19:17:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2OEQ-0003gX-Gk for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2019 19:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i2OEQ-0008Bi-AC for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2019 19:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Aug 2019 23:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35113 X-GNU-PR-Package: emacs Original-Received: via spool by 35113-submit@debbugs.gnu.org id=B35113.156686138431414 (code B ref 35113); Mon, 26 Aug 2019 23:17:02 +0000 Original-Received: (at 35113) by debbugs.gnu.org; 26 Aug 2019 23:16:24 +0000 Original-Received: from localhost ([127.0.0.1]:47314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2ODm-0008AZ-RT for submit@debbugs.gnu.org; Mon, 26 Aug 2019 19:16:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2ODl-0008AM-Ex for 35113@debbugs.gnu.org; Mon, 26 Aug 2019 19:16:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i2ODg-0003Ja-Bo; Mon, 26 Aug 2019 19:16:16 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1i2ODf-0002cJ-DR; Mon, 26 Aug 2019 19:16:15 -0400 In-Reply-To: <87blwc5u8m.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 26 Aug 2019 08:14:01 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:165926 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] I run this command, which is in my .emacs and invokes standard parts of Emacs, (defun epenc (&optional arg) (interactive "P") (unless arg (mail-cc-me)) (mail-text) ;; Record the plaintext so we can save it when message is sent. (make-local-variable 'buffer-plaintext) (setq buffer-plaintext (buffer-string)) (let (message) (when (looking-at "[[]+ To any") (let ((beg (point))) (while (looking-at "[[]+ \\|$") (forward-line 1)) (setq message (buffer-substring beg (point))) (delete-region beg (point)))) (epa-mail-encrypt) (when message (mail-text) (insert message)))) -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)