From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add `notes' function to store random notes across Emacs restarts. Date: Mon, 17 Jun 2013 23:06:02 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1371503214 30645 80.91.229.3 (17 Jun 2013 21:06:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2013 21:06:54 +0000 (UTC) Cc: Ted Zlatanov , Stefan Monnier , Emacs developers To: Michal Nazarewicz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 23:06:54 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UogdZ-0001CU-TF for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2013 23:06:54 +0200 Original-Received: from localhost ([::1]:35906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UogdX-00029S-7n for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2013 17:06:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UogdT-000272-KW for emacs-devel@gnu.org; Mon, 17 Jun 2013 17:06:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UogdR-0004li-St for emacs-devel@gnu.org; Mon, 17 Jun 2013 17:06:47 -0400 Original-Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]:49920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UogdQ-0004gw-7D; Mon, 17 Jun 2013 17:06:44 -0400 Original-Received: by mail-ee0-f53.google.com with SMTP id c41so2104895eek.40 for ; Mon, 17 Jun 2013 14:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=v5LnEfe4Mrr5DZNEWC5VOztUd7J0eAdiaBkcK1ZiaM8=; b=ltK4F2zQgReZrr5sJMqworIuiWrdmIHXBQczpBrG+IUczrWENtdu9HQPT626fpc+JD s+MeAMIkBTbGZXJBF9aAN8rWtv+yoBLy1uLCfos/TkTjLNmi1nreDxV4PlizLcOg2bMx B2iGGO9zWEMPiaSXAIM9OsxTBjZTifCsU6hXe3yQIYuZH1DRv9aww6mfbxmtBn+eInZS xA+RhiNbiVPCK/nT9x2CviXlVgcaXMkct3EeLIYFJ7enbwl+c0ZsRbUHbiIj0XBV3Hzw LzLvGPUnlkuUdwNOkkL2X1YaxOsphOx8J2lmpR3SRtPLcrXbXLTrp10CCqO03zhWcbqo tLCg== X-Received: by 10.14.2.7 with SMTP id 7mr18610031eee.99.1371503203335; Mon, 17 Jun 2013 14:06:43 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Mon, 17 Jun 2013 14:06:02 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160526 Archived-At: On Mon, Jun 17, 2013 at 10:39 PM, Michal Nazarewicz wrote: >> Use \\[notes-save-and-bury] instead of hard-coded C-c C-c > > I'm not certain how that's supposed to work. The binding is not in > global key map after all. Adding \\ to the docstring should work. (elisp) "24.3 Substituting Key Bindings in Documentation": `\' stands for no text itself. It is used only for a side effect: it specifies MAPVAR's value as the keymap for any following `\[COMMAND]' sequences in this documentation string. > Because kill-buffer-hook is called after kill-buffer checks whether file > is modified: Hmm. You're right. Weird to have to resort to an advice. J