emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add `notes' function to store random notes across Emacs rest


From: Juanma Barranquero
Subject: Re: [PATCH] Add `notes' function to store random notes across Emacs restarts.
Date: Mon, 17 Jun 2013 23:06:02 +0200

On Mon, Jun 17, 2013 at 10:39 PM, Michal Nazarewicz <address@hidden> 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 \\<notes-map> to the docstring should work. (elisp) "24.3
Substituting Key Bindings in Documentation":

`\<MAPVAR>'
     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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]