From 5090fc5d447c6b68a12d0d09a0a90ee0f8610d28 Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Thu, 13 Oct 2005 06:20:26 +0000 Subject: add the (emacs) toggle-readonly keybinding (C-x C-q). Also, remove a silly non-emacsism. --- usr.bin/mg/cinfo.c | 5 +---- usr.bin/mg/keymap.c | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/usr.bin/mg/cinfo.c b/usr.bin/mg/cinfo.c index 18c2a21bdf9..fd5a2cff421 100644 --- a/usr.bin/mg/cinfo.c +++ b/usr.bin/mg/cinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cinfo.c,v 1.12 2005/06/14 18:14:40 kjell Exp $ */ +/* $OpenBSD: cinfo.c,v 1.13 2005/10/13 06:20:25 kjell Exp $ */ /* This file is in the public domain. */ @@ -106,9 +106,6 @@ keyname(char *cp, size_t len, int k) case CCHR('I'): np = "TAB"; break; - case CCHR('J'): - np = "LFD"; - break; /* yuck, but that's what GNU calls it */ case CCHR('M'): np = "RET"; break; diff --git a/usr.bin/mg/keymap.c b/usr.bin/mg/keymap.c index 920618606f4..41a82b81d77 100644 --- a/usr.bin/mg/keymap.c +++ b/usr.bin/mg/keymap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keymap.c,v 1.33 2005/10/13 05:47:45 kjell Exp $ */ +/* $OpenBSD: keymap.c,v 1.34 2005/10/13 06:20:25 kjell Exp $ */ /* This file is in the public domain. */ @@ -81,7 +81,7 @@ static PF cXcL[] = { rescan, /* ^N */ deblank, /* ^O */ rescan, /* ^P */ - rescan, /* ^Q */ + togglereadonly, /* ^Q */ filevisitro, /* ^R */ filesave, /* ^S */ rescan, /* ^T */ -- cgit v1.2.3