char *display = NULL;
/* Nonzero means open a new Emacs frame on the current terminal. */
-int here = 0;
+int frame = 0;
/* If non-NULL, the name of an editor to fallback to if the server
is not running. --alternate-editor. */
{ "eval", no_argument, NULL, 'e' },
{ "help", no_argument, NULL, 'H' },
{ "version", no_argument, NULL, 'V' },
- { "here", no_argument, NULL, 'h' },
+ { "frame", no_argument, NULL, 'f' },
{ "alternate-editor", required_argument, NULL, 'a' },
{ "socket-name", required_argument, NULL, 's' },
{ "display", required_argument, NULL, 'd' },
while (1)
{
int opt = getopt_long (argc, argv,
- "VHnea:s:d:h", longopts, 0);
+ "VHnea:s:d:f", longopts, 0);
if (opt == EOF)
break;
exit (0);
break;
- case 'h':
- here = 1;
+ case 'f':
+ frame = 1;
break;
case 'H':
}
}
- if (here) {
+ if (frame) {
nowait = 0;
display = 0;
}
The following OPTIONS are accepted:\n\
-V, --version Just print a version info and return\n\
-H, --help Print this usage information message\n\
--h, --here Open a new Emacs frame on the current terminal\n\
+-f, --frame Open a new Emacs frame on the current terminal\n\
-n, --no-wait Don't wait for the server to return\n\
-e, --eval Evaluate the FILE arguments as ELisp expressions\n\
-d, --display=DISPLAY Visit the file in the given display\n\
/* Process options. */
decode_options (argc, argv);
- if ((argc - optind < 1) && !eval && !here)
+ if ((argc - optind < 1) && !eval && !frame)
{
fprintf (stderr, "%s: file name or argument required\n", progname);
fprintf (stderr, "Try `%s --help' for more information\n", progname);
fprintf (out, " ");
}
- if (here)
+ if (frame)
{
if (! init_signals ())
{
}
else
{
- if (!here)
+ if (!frame)
{
while ((str = fgets (string, BUFSIZ, stdin)))
{
return 0;
}
- if (here)
+ if (frame)
{
if (! pty_conversation (out))
{