You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Kevin Blaisdell <bl...@yahoo.com> on 2003/03/29 20:46:02 UTC

emacs as editor

I know I am doing something stupid, but can't figure
out what it is.  I have been playing around with svn
and just  using the cli to add log msgs.  Now I am
getting more into it and decided to set my editor as
emacs.  I am running this client (.19) on w2k against
a SPARC-Solaris server.

I set the editor in the subversion config file to run
my copy of runemacs.exe.

I also tried setting it to notepad.

In both cases the editor starts properly and I make my
comment, however the message appears to never actually
get stored.  I am going to continue looking into it,
but if someone has a quick tip that would be great.

Thanks,
Kevin

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Sun, Mar 30, 2003 at 01:41:43PM -0600, kfogel@collab.net wrote:
> Kevin Blaisdell <bl...@yahoo.com> writes:
> > > > -at this point I have the svn prompt to
> > > > abort/edit/continue, so I continue since I just
> > > > completed my log message
> 
> Is this the prompt you're seeing?
>  
>    Log message unchanged or not specified
>    a)bort, c)ontinue, e)dit
[snip]
> Anyway, if you're seeing that prompt, it means somehow the message did
> not get saved.  I don't know what went wrong.  It could be a problem
[snip]

Or else, the editor is starting in the background, control passes back
to Subversion, Subversion checks the message file and finds it unaltered
and displays the prompt.  Then the edited message is saved and
emacs/notepad closes and you notice the prompt.  (This is just a guess.)

Could you check when the prompt actually displays?  Is it before you've
saved the message and closed the editor?

-- 
Michael Wood <mw...@its.uct.ac.za>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by kf...@collab.net.
Kevin Blaisdell <bl...@yahoo.com> writes:
> > > -at this point I have the svn prompt to
> > > abort/edit/continue, so I continue since I just
> > > completed my log message

Is this the prompt you're seeing?
 
   Log message unchanged or not specified
   a)bort, c)ontinue, e)dit

Please don't be offended, but I'd like to clarify what I meant when I
said "Transcript, transcript, transcript":

If you had cut-and-pasted the actual prompt, instead of summarizing it
as "the svn prompt to abort/edit/continue" (no significant substring
of which appears in the Subversion source code), I wouldn't have had
to search around the sources and guess which prompt you were talking
about.  I could have found it immediately.

A transcript means, literally, a transcript of your session with
Subversion -- the actual, character-by-character record of input and
output, not a summary :-).  With a real transcript, we can often spot
the bug in one second.  Without it, we may waste an arbitrary amount
of time guessing and flailing around.

Anyway, if you're seeing that prompt, it means somehow the message did
not get saved.  I don't know what went wrong.  It could be a problem
invoking the editor, or a bug in the editor, or a bug in Subversion's
path handling.  It could also be that you're leaving this line:

   --This line, and those below, will be ignored--

near the top of the file, which would result in an empty log message,
of course.

Unfortunately, I don't have a better guess than that right now, sorry.

If we knew the *exact* contents of the leftover log message, the exact
name of tmpfile the editor gets invoked on (and which is left over
after the commit), the exact question your editor asks you when it
prompts you to save, etc, we might be able to help.

In other words, concrete details, no more summaries :-).

Thanks,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by Kevin Blaisdell <bl...@yahoo.com>.
--- kfogel@collab.net wrote:
> Kevin Blaisdell <bl...@yahoo.com> writes:
> > -C-x C-c in emacs getting prompted to save and
> then
> > exiting
> 
> I assume you say yes when prompted?
Yes
> 
> > -at this point I have the svn prompt to
> > abort/edit/continue, so I continue since I just
> > completed my log message
> > -commit completes
> > -svn log now shows the commit but doesn't have my
> > comment
> 
> What does svn have, then?  Is the comment empty?
Empty comment.  Just has the basic svn info.
> 
> > -there is also a the tempfile created by svn in
> the
> > current directory
> 
> What is in the tempfile?
My comment along with the list of files committed. 
Just like it was in the editor when saved.
> 
> > I will play around with it some more as soon as I
> get
> > a chance.
> 
> Okay -- the more data, the better.
> 
> Good luck,
> -K
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail:
> dev-help@subversion.tigris.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by kf...@collab.net.
Kevin Blaisdell <bl...@yahoo.com> writes:
> -C-x C-c in emacs getting prompted to save and then
> exiting

I assume you say yes when prompted?

> -at this point I have the svn prompt to
> abort/edit/continue, so I continue since I just
> completed my log message
> -commit completes
> -svn log now shows the commit but doesn't have my
> comment

What does svn have, then?  Is the comment empty?

> -there is also a the tempfile created by svn in the
> current directory

What is in the tempfile?

> I will play around with it some more as soon as I get
> a chance.

Okay -- the more data, the better.

Good luck,
-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by Kevin Blaisdell <bl...@yahoo.com>.
Sorry,
Basically it is like this
-svn commit
-editor starts
-create my comments in the editor (emacs or notepad)
-C-x C-c in emacs getting prompted to save and then
exiting
-at this point I have the svn prompt to
abort/edit/continue, so I continue since I just
completed my log message
-commit completes
-svn log now shows the commit but doesn't have my
comment
-there is also a the tempfile created by svn in the
current directory

I will play around with it some more as soon as I get
a chance.

--- kfogel@collab.net wrote:
> Kevin Blaisdell <bl...@yahoo.com> writes:
> > In both cases the editor starts properly and I
> make my
> > comment, however the message appears to never
> actually
> > get stored.  I am going to continue looking into
> it,
> > but if someone has a quick tip that would be
> great.
> 
> We'll need more details.  Do you get prompted to
> save your message
> before you exit the editor?  When you say "stored",
> do you mean never
> gets stored in a local tmpfile, or never gets stored
> in the repository
> (i.e., you end up with a blank log message for that
> revision?)
> 
> Transcript, transcript, transcript :-).
> 
> Thanks,
> -Karl
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail:
> dev-help@subversion.tigris.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by kf...@collab.net.
Kevin Blaisdell <bl...@yahoo.com> writes:
> In both cases the editor starts properly and I make my
> comment, however the message appears to never actually
> get stored.  I am going to continue looking into it,
> but if someone has a quick tip that would be great.

We'll need more details.  Do you get prompted to save your message
before you exit the editor?  When you say "stored", do you mean never
gets stored in a local tmpfile, or never gets stored in the repository
(i.e., you end up with a blank log message for that revision?)

Transcript, transcript, transcript :-).

Thanks,
-Karl


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by Alan Shutko <at...@acm.org>.
Paul Lussier <pl...@lanminds.com> writes:

> This should be part of the standard Emacs distro, shouldn't it?

It isn't yet.  You're thinking XEmacs.  Although I believe people are
working at getting it built-in on Emacs too....

-- 
Alan Shutko <at...@acm.org> - I am the rocks.
Looking for a developer in St. Louis? http://web.springies.com/~ats/
Kokanee? Never heard of it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by Stefan Monnier <mo...@rum.cs.yale.edu>.
>> ftp://ftp.gnu.org/gnu/windows/emacs/contrib/gnuserv.zip
> This should be part of the standard Emacs distro, shouldn't it?

Emacs comes with emacsclient/emacsserver which provide a similar
functionality.  But I seem to remember that emacsclient/emacsserver
don't work under w32 (or rather I seem to remember someone applying
patches recently to try and make it work there ;-)


        Stefan


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by Paul Lussier <pl...@lanminds.com>.
In a message dated: Mon, 31 Mar 2003 12:58:01 +0200
Stefan =?iso-8859-1?q?Reich=F6r?= said:

>>  I set the editor in the subversion config file to run
>>  my copy of runemacs.exe.
>
>Just a tip:
>If you already have a running emacs instance, you should
>use gnuserv to open files:
>ftp://ftp.gnu.org/gnu/windows/emacs/contrib/gnuserv.zip

This should be part of the standard Emacs distro, shouldn't it?
I set my EDITOR/VISUAL envariables to 'gnuclient' and everything 
'just works'.

(of course, I'm running exclusively on UNIX/Linux, not Windows,
though I'd expect the same to apply if you're using CygWin).

>Stefan.
>
>P.S.: You could also try to use psvn.el (an emacs interface for
>      subversion written by me)

I could never get this to work for me.  Though I imagine it has 
something to do with the fact that I'm running XEmacs not GNU/FSF 
Emacs.
-- 

Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

	It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

	 If you're not having fun, you're not doing it right!



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: emacs as editor

Posted by Stefan Reichör <xs...@riic.at>.
On Sat, 29 Mar 2003, Kevin Blaisdell uttered the following:

>  I know I am doing something stupid, but can't figure
>  out what it is.  I have been playing around with svn
>  and just  using the cli to add log msgs.  Now I am
>  getting more into it and decided to set my editor as
>  emacs.  I am running this client (.19) on w2k against
>  a SPARC-Solaris server.
>
>  I set the editor in the subversion config file to run
>  my copy of runemacs.exe.

Just a tip:
If you already have a running emacs instance, you should
use gnuserv to open files:
ftp://ftp.gnu.org/gnu/windows/emacs/contrib/gnuserv.zip

>
>  I also tried setting it to notepad.
>
>  In both cases the editor starts properly and I make my
>  comment, however the message appears to never actually
>  get stored.  I am going to continue looking into it,
>  but if someone has a quick tip that would be great.
>
>  Thanks,
>  Kevin
>

Stefan.

P.S.: You could also try to use psvn.el (an emacs interface for
      subversion written by me)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org