From: Tomi Ollila Date: Fri, 8 Jul 2016 11:08:41 +0000 (+0300) Subject: Re: [PATCH v3] emacs: postpone/resume support X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60b03840652efb168d56c8f3946bcebfb591a167;p=notmuch-archives.git Re: [PATCH v3] emacs: postpone/resume support --- diff --git a/fb/e640567da4fe55e7339e0c92d6a16cbba17920 b/fb/e640567da4fe55e7339e0c92d6a16cbba17920 new file mode 100644 index 000000000..5e753005c --- /dev/null +++ b/fb/e640567da4fe55e7339e0c92d6a16cbba17920 @@ -0,0 +1,109 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 3FBE36DE02AD + for ; Fri, 8 Jul 2016 04:09:26 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.565 +X-Spam-Level: +X-Spam-Status: No, score=0.565 tagged_above=-999 required=5 tests=[AWL=-0.087, + SPF_NEUTRAL=0.652] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id sPLVI7lyLYZI for ; + Fri, 8 Jul 2016 04:09:17 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 136E96DE02AC + for ; Fri, 8 Jul 2016 04:09:17 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 8DCCE100090; + Fri, 8 Jul 2016 14:08:41 +0300 (EEST) +From: Tomi Ollila +To: Daniel Kahn Gillmor , + David Bremner , Mark Walters , + notmuch@notmuchmail.org +Subject: Re: [PATCH v3] emacs: postpone/resume support +In-Reply-To: <87shvlf185.fsf@alice.fifthhorseman.net> +References: <1465001026-29392-1-git-send-email-markwalters1009@gmail.com> + <87wpm3dgu6.fsf@zancas.localnet> + <87shvlf185.fsf@alice.fifthhorseman.net> +User-Agent: Notmuch/0.22+56~ge2391a7 (https://notmuchmail.org) Emacs/24.5.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 08 Jul 2016 11:09:26 -0000 + +On Fri, Jul 08 2016, Daniel Kahn Gillmor wrote: + +> [ Unknown signature status ] +> On Sun 2016-06-05 07:18:25 -0400, David Bremner wrote: +>> Tomi Ollila writes: +>> +>>> ... but I think I am not biased when I think that if ctrl-x ctrl-s +>>> does something more magical than simple (save-buffer) in buffers that +>>> looks like text editing buffer, that is going to be unexpected disturbing +>>> functionality to someone (else like me)... +>> +>> This is a valid point. On the other hand the binding is copied from +>> Gnus, which also includes at least _some_ magic +>> +>> http://www.gnu.org/software/emacs/manual/html_node/gnus/Drafts.html +> +> gnus isn't the only thing that does something more "magical" than saving +> a raw buffer to a file. +> +> try the following: +> +> echo test | gpg --output test.gpg --armor --default-recipient-self --encrypt +> emacs test.gpg +> +> emacs will prompt you to decrypt the file, then let you edit the +> cleartext buffer. +> +> a subsequent "C-x C-s" will re-save it encrypted. (at least it does for +> me!) +> +> [ i note several weirdnesses here around the round-trip cleanliness and +> safety of this operation which aren't relevant to notmuch, but that's +> a different story, and i've reported them to emacs upstream ] +> +> Of course, this functionality appears to also happen within +> "save-buffer" itself -- so arguably it's not more "magical" than +> save-buffer, since it *is* save-buffer. +> +> +> Tomi, would you object if Mark's patches were somehow integrated into +> save-buffer itself, instead of just re-mapping C-x C-s ? (i don't know +> elisp well enough to know how feasible that would be) + +customizable hook might be tolerable ;) + +(quick reply writing coat on) + +> +> My bottom line: +> +> Mark's series here works well for me, and represents the best draft +> handling i've seen yet for notmuch-emacs. It would be really good to +> incorporate something approximating this functionality in the mainline. +> +> --dkg