File: emacsclient-alternate-editor.diff

package info (click to toggle)
emacs21 21.4a%2B1-3etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 59,104 kB
  • ctags: 58,909
  • sloc: lisp: 493,229; ansic: 237,175; xml: 4,262; sh: 4,109; makefile: 2,479; perl: 1,069; cs: 776; asm: 254; csh: 9; sed: 4
file content (31 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
* The emacsclient command now respects ALTERNATE_EDITOR when appropriate.
  Patch: emacsclient-alternate-editor.diff
  Applied-by: Jerome Marant <jerome@debian.org>
  Date: Sun, 25 Jan 2004 21:00:29 +0100
  Status: has been applied upstream

  The emacsclient command will now take the ALTERNATE_EDITOR
  environment variable into account properly when the command is run
  without any parameter.

diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c emacs21/lib-src/emacsclient.c
--- /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c	2004-01-25 19:45:54.000000000 +0100
+++ emacs21/lib-src/emacsclient.c	2004-01-25 19:46:31.000000000 +0100
@@ -75,6 +75,8 @@
      int argc;
      char **argv;
 {
+  alternate_editor = getenv ("ALTERNATE_EDITOR");
+
   while (1)
     {
       int opt = getopt_long (argc, argv,
@@ -82,8 +84,6 @@
 
       if (opt == EOF)
 	break;
-
-      alternate_editor = getenv ("ALTERNATE_EDITOR");
       
       switch (opt)
 	{