summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-05-22 16:13:30 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-05-22 16:13:30 +0800
commitdc9f4aaaf52284e8df2eae4d6a57494ada5c3177 (patch)
treec995c34d362f818b9a11ff86aa97f0c2240e54bb
parent64257dad0e1775b281e6d2086c58ab92256de536 (diff)
downloadpttbbs-dc9f4aaaf52284e8df2eae4d6a57494ada5c3177.tar
pttbbs-dc9f4aaaf52284e8df2eae4d6a57494ada5c3177.tar.gz
pttbbs-dc9f4aaaf52284e8df2eae4d6a57494ada5c3177.tar.bz2
pttbbs-dc9f4aaaf52284e8df2eae4d6a57494ada5c3177.tar.lz
pttbbs-dc9f4aaaf52284e8df2eae4d6a57494ada5c3177.tar.xz
pttbbs-dc9f4aaaf52284e8df2eae4d6a57494ada5c3177.tar.zst
pttbbs-dc9f4aaaf52284e8df2eae4d6a57494ada5c3177.zip
* add comments on the breaking-emacs-compatibility issue
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5049 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/edit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/edit.c b/pttbbs/mbbsd/edit.c
index 6c9d7d8a..c11480e9 100644
--- a/pttbbs/mbbsd/edit.c
+++ b/pttbbs/mbbsd/edit.c
@@ -3842,6 +3842,13 @@ vedit2(const char *fpath, int saveheader, int *islocal, char title[STRLEN], int
}
curr_buf->redraw_everything = YEA;
break;
+
+ // XXX This breaks emacs compatibility. Really bad,
+ // especially when some terminals just cannot send
+ // vt100 arrow keys. However since this key binding
+ // has been changed for a long long time...
+ // We may need to change this back in the future, but
+ // not sure when.
case Ctrl('P'):
phone_mode_switch();
curr_buf->redraw_everything = YEA;
@@ -3893,9 +3900,11 @@ vedit2(const char *fpath, int saveheader, int *islocal, char title[STRLEN], int
}
break;
case KEY_UP:
+ // case Ctrl('P'): // XXX check phone_mode to see why this is not enabled
cursor_to_prev_line();
break;
case KEY_DOWN:
+ // case Ctrl('N'): // XXX check phone_mode to see why this is not enabled
cursor_to_next_line();
break;