diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-10-19 07:54:06 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-10-19 07:54:06 +0000 |
commit | dbf5e234c2ecdf26dd402a3a00b5bbcdca22690c (patch) | |
tree | d2569179f9bd7308a29072f5444ae11a31ec51e4 | |
parent | e2069ab5c732a21135db9f1c22c7d89633a1b3e8 (diff) |
Delete the deprecated emacs-usemeta option.
ok tb@ anton@
-rw-r--r-- | bin/ksh/misc.c | 18 | ||||
-rw-r--r-- | bin/ksh/sh.h | 3 |
2 files changed, 3 insertions, 18 deletions
diff --git a/bin/ksh/misc.c b/bin/ksh/misc.c index b4d57cc31fd..c1a6006b8d0 100644 --- a/bin/ksh/misc.c +++ b/bin/ksh/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.59 2017/08/30 17:15:36 jca Exp $ */ +/* $OpenBSD: misc.c,v 1.60 2017/10/19 07:54:05 jca Exp $ */ /* * Miscellaneous functions @@ -129,7 +129,6 @@ const struct option options[] = { { "csh-history", 0, OF_ANY }, /* non-standard */ #ifdef EMACS { "emacs", 0, OF_ANY }, - { "emacs-usemeta", 0, OF_ANY }, /* XXX delete after 6.2 */ #endif { "errexit", 'e', OF_ANY }, #ifdef EMACS @@ -185,13 +184,8 @@ option(const char *n) int i; for (i = 0; i < NELEM(options); i++) - if (options[i].name && strcmp(options[i].name, n) == 0) { -#ifdef EMACS - if (i == FEMACSUSEMETA) - warningf(true, "%s: deprecated option", n); -#endif + if (options[i].name && strcmp(options[i].name, n) == 0) return i; - } return -1; } @@ -232,10 +226,6 @@ printoptions(int verbose) shprintf("Current option settings\n"); for (i = n = oi.opt_width = 0; i < NELEM(options); i++) { -#ifdef EMACS - if (i == FEMACSUSEMETA) - continue; -#endif if (options[i].name) { len = strlen(options[i].name); oi.opts[n].name = options[i].name; @@ -250,10 +240,6 @@ printoptions(int verbose) /* short version ala ksh93 */ shprintf("set"); for (i = 0; i < NELEM(options); i++) { -#ifdef EMACS - if (i == FEMACSUSEMETA) - continue; -#endif if (options[i].name) shprintf(" %co %s", Flag(i) ? '-' : '+', diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h index a1c42f4b3d3..06e7b0ec938 100644 --- a/bin/ksh/sh.h +++ b/bin/ksh/sh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sh.h,v 1.64 2017/09/03 11:52:01 jca Exp $ */ +/* $OpenBSD: sh.h,v 1.65 2017/10/19 07:54:05 jca Exp $ */ /* * Public Domain Bourne/Korn shell @@ -139,7 +139,6 @@ enum sh_flag { FCSHHISTORY, /* csh-style history enabled */ #ifdef EMACS FEMACS, /* emacs command editing */ - FEMACSUSEMETA, /* XXX delete after 6.2 */ #endif FERREXIT, /* -e: quit on error */ #ifdef EMACS |