14
0
forked from pool/crash
Files
crash/crash-make-emacs-default.diff
David Mair 6f36caa8cf Accepting request 1127773 from home:dmair:branches:Kernel:kdump
- Tidy patches to apply without offsets to crash 8.0.4/gdb 10.2:
 - crash-allow-use-of-sadump-captured-KASLR-kernel.patch
 - crash-debuginfo-compressed.patch
 - crash-make-emacs-default.diff
 - crash-sles9-time.patch
 - crash-stop_read_error_when_intent_is_retry.patch
 - crash-usrmerge.patch

OBS-URL: https://build.opensuse.org/request/show/1127773
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=390
2023-11-20 21:33:04 +00:00

31 lines
743 B
Diff

---
main.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
Index: b/main.c
===================================================================
--- a/main.c
+++ b/main.c
@@ -1183,12 +1183,6 @@ setup_environment(int argc, char **argv)
pc->flags |= READLINE;
pc->editing_mode = "no_mode";
- if ((p1 = getenv("EDITOR"))) {
- if (strstr(p1, "vi"))
- pc->editing_mode = "vi";
- if (strstr(p1, "emacs"))
- pc->editing_mode = "emacs";
- }
/*
* Resolve $HOME .rc file first, then the one in the local directory.
@@ -1238,7 +1232,7 @@ setup_environment(int argc, char **argv)
}
if (STREQ(pc->editing_mode, "no_mode"))
- pc->editing_mode = "vi";
+ pc->editing_mode = "emacs";
machdep_init(SETUP_ENV);
}