Bug#284240: (no subject)

2006-04-15 Thread Tommy Pettersson
Hrm, the sensible-editor patch (sorry for the faulty one) should be:


diff -rN -u old-tmp/DarcsArguments.lhs new-tmp/DarcsArguments.lhs
--- old-tmp/DarcsArguments.lhs  2006-04-15 11:47:23.384903652 +0200
+++ new-tmp/DarcsArguments.lhs  2006-04-15 11:47:23.488878363 +0200
@@ -892,6 +892,7 @@
 edit_file f = do
   ed - get_editor
   exec_interactive ed [f]
+ `ortryrunning` exec_interactive vi [f]
  `ortryrunning` exec_interactive emacs [f]
  `ortryrunning` exec_interactive emacs [-nw,f]
  `ortryrunning` exec_interactive nano [f]
@@ -899,7 +900,7 @@
 get_editor = getEnv DARCS_EDITOR `catchall`
  getEnv DARCSEDITOR `catchall`
  getEnv VISUAL `catchall`
- getEnv EDITOR `catchall` return vi
+ getEnv EDITOR `catchall` return sensible-editor
 \end{code}
 
 \begin{code}




But since debian's sensible-editor does most of this anyway, it
could even be:


diff -rN -u old-tmp/DarcsArguments.lhs new-tmp/DarcsArguments.lhs
--- old-tmp/DarcsArguments.lhs  2006-04-15 12:11:40.321590965 +0200
+++ new-tmp/DarcsArguments.lhs  2006-04-15 12:11:40.414568309 +0200
@@ -892,14 +892,9 @@
 edit_file f = do
   ed - get_editor
   exec_interactive ed [f]
- `ortryrunning` exec_interactive emacs [f]
- `ortryrunning` exec_interactive emacs [-nw,f]
- `ortryrunning` exec_interactive nano [f]
+
 get_editor :: IO String
-get_editor = getEnv DARCS_EDITOR `catchall`
- getEnv DARCSEDITOR `catchall`
- getEnv VISUAL `catchall`
- getEnv EDITOR `catchall` return vi
+get_editor = getEnv DARCS_EDITOR `catchall` return sensible-editor
 \end{code}
 
 \begin{code}



-- 
Tommy Pettersson [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#284240: (no subject)

2006-04-15 Thread Isaac Jones
Tommy Pettersson [EMAIL PROTECTED] writes:

 Hrm, the sensible-editor patch (sorry for the faulty one) should be:

I used the first one since it's a smaller change.  I have thesame
question as last time, will this live upstream?

peace,

  isaac


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#284240: (no subject)

2006-04-14 Thread Tommy Pettersson
It would be a trivial thing for debian to patch the darcs code:


diff -rN -u old-tmp/DarcsArguments.lhs new-tmp/DarcsArguments.lhs
--- old-tmp/DarcsArguments.lhs  2006-04-14 17:56:10.855797163 +0200
+++ new-tmp/DarcsArguments.lhs  2006-04-14 17:56:10.980766783 +0200
@@ -867,6 +867,7 @@
 edit_file f = do
   ed - get_editor
   exec_interactive ed [f]
+ `ortryrunning` exec_interactive sensible-editor [f]
  `ortryrunning` exec_interactive emacs [f]
  `ortryrunning` exec_interactive emacs [-nw,f]
  `ortryrunning` exec_interactive nano [f]


-- 
Tommy Pettersson [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]