emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lib-src/emacsclient.c


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/lib-src/emacsclient.c
Date: Wed, 12 Mar 2003 16:36:29 -0500

Index: emacs/lib-src/emacsclient.c
diff -c emacs/lib-src/emacsclient.c:1.56 emacs/lib-src/emacsclient.c:1.57
*** emacs/lib-src/emacsclient.c:1.56    Mon Dec  2 15:57:42 2002
--- emacs/lib-src/emacsclient.c Wed Mar 12 16:36:29 2003
***************
*** 1,5 ****
  /* Client process that communicates with GNU Emacs acting as server.
!    Copyright (C) 1986, 1987, 1994, 1999, 2000, 2001
     Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
--- 1,5 ----
  /* Client process that communicates with GNU Emacs acting as server.
!    Copyright (C) 1986, 1987, 1994, 1999, 2000, 2001, 2003
     Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
***************
*** 122,134 ****
          break;
  
        case 'V':
!         fprintf (stderr, "emacsclient %s\n", VERSION);
!         exit (1);
          break;
  
        case 'H':
-       default:
          print_help_and_exit ();
        }
      }
  }
--- 122,139 ----
          break;
  
        case 'V':
!         printf ("emacsclient %s\n", VERSION);
!         exit (0);
          break;
  
        case 'H':
          print_help_and_exit ();
+         break;
+ 
+       default:
+         fprintf (stderr, "Try `%s --help' for more information\n", progname);
+         exit (1);
+         break;
        }
      }
  }
***************
*** 136,145 ****
  void
  print_help_and_exit ()
  {
!   fprintf (stderr,
!          "Usage: %s [OPTIONS] FILE...\n\
  Tell the Emacs server to visit the specified files.\n\
  Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.\n\
  The following OPTIONS are accepted:\n\
  -V, --version           Just print a version info and return\n\
  -H, --help              Print this usage information message\n\
--- 141,151 ----
  void
  print_help_and_exit ()
  {
!   printf (
!         "Usage: %s [OPTIONS] FILE...\n\
  Tell the Emacs server to visit the specified files.\n\
  Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.\n\
+ \n\
  The following OPTIONS are accepted:\n\
  -V, --version           Just print a version info and return\n\
  -H, --help              Print this usage information message\n\
***************
*** 148,155 ****
  -d, --display=DISPLAY   Visit the file in the given display\n\
  -a, --alternate-editor=EDITOR\n\
                          Editor to fallback to if the server is not running\n\
  Report bugs to address@hidden", progname);
!   exit (1);
  }
  
  /* Return a copy of NAME, inserting a &
--- 154,162 ----
  -d, --display=DISPLAY   Visit the file in the given display\n\
  -a, --alternate-editor=EDITOR\n\
                          Editor to fallback to if the server is not running\n\
+ \n\
  Report bugs to address@hidden", progname);
!   exit (0);
  }
  
  /* Return a copy of NAME, inserting a &
***************
*** 294,300 ****
    decode_options (argc, argv);
  
    if (argc - optind < 1)
!     print_help_and_exit ();
  
    /*
     * Open up an AF_UNIX socket in this person's home directory
--- 301,311 ----
    decode_options (argc, argv);
  
    if (argc - optind < 1)
!     {
!       fprintf (stderr, "%s: file name or argument required\n", progname);
!       fprintf (stderr, "Try `%s --help' for more information\n", progname);
!       exit (1);
!     }
  
    /*
     * Open up an AF_UNIX socket in this person's home directory




reply via email to

[Prev in Thread] Current Thread [Next in Thread]