~lucymcphail

Scotland

https://www.lucymcphail.com/

Recent activity

Re: [PATCH] Add new map for repeat-mode 2 months ago

From Lucy McPhail to ~protesilaos/logos

> Thanks for the explanation!  I expected it to be tricky...

I'm sure it can be done but it seems like overkill, and besides,
everywhere I looked in Emacs it's done the same way. I suppose a user
could just change the map if they wanted to.

> I installed your patch and included your name in the manual's
> "Acknowledgements" section.

Thank you!

> Since this is a small change, it does not require copyright assignment
> to the Free Software Foundation.  Though note that larger changes do

Re: [PATCH] Add new map for repeat-mode 2 months ago

From Lucy McPhail to ~protesilaos/logos

Hi Prot, and you're welcome!

> Can we use the remap mechanism here?

I don't think we can. When either command is called, repeat-mode
activates the keymap so that you can press [ or ] to repeat the command.
If we used the remap mechanism instead, you would have to repeat the
whole sequence, which defeats the purpose of repeat-mode. That said, if
one were to use some other key binding, it wouldn't get in the way, but
you would be able to press [ and ] next anyway to repeat the command.

Lucy

[PATCH] Add new map for repeat-mode 2 months ago

From Lucy McPhail to ~protesilaos/logos

---
 logos.el | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/logos.el b/logos.el
index 33b2240..9b17964 100644
--- a/logos.el
+++ b/logos.el
@@ -360,6 +360,16 @@ alternate, thus toggling MODE."
(defvar logos-focus-mode-map (make-sparse-keymap)
  "The keymap of `logos-focus-mode'.")

(defvar logos-repeat-map
  (let ((map (make-sparse-keymap)))
[message trimmed]