Support Requests item #3509849, was opened at 2012-03-21 12:06
Message generated for change (Settings changed) made by broeker
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=204664&aid=3509849&group_id=4664

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Closing cscope kills editor

Initial Comment:
I am attempting to use gedit as my editor when running cscope.  To do so, I set 
my 'editor' to be a bash script which contains the following:

    #!/bin/bash
    gedit $2 +$1 2> /dev/null &

When I close cscope, gedit also closes.  How can I prevent this?  I've tried 
other editors besides gedit but get the same result.

----------------------------------------------------------------------

Comment By: Hans-Bernhard Broeker (broeker)
Date: 2012-03-22 09:39

Message:
> When I close cscope, gedit also closes. How can I prevent this?

You can't, because that's exactly how cscope calling an external editor is
supposed to work.  The $EDITOR is supposed to behave like a traditonal vi,
i.e. run in the foreground, blocking cscope until you're done editing that
file, then get you back to cscope.

You would need something like (X)Emacs' server-mode + gnuclient/emacsclient
method, where the big editor is run independently as an "editing server",
and a small program ({gnu|emacs}client) hands editing requests to it.  The
difference to what you're doing is that {gnu|emacs}client blocks and waits
until you close that particular file in (X)Emacs using C-x # instead of the
usual C-x 0.  This informs emacsclient that you're done editing that
buffer, so emacsclient terminates itself and gives control back to the
terminal.  I have no idea whether gedit offers a feature like emacs' server
mode --- but most likely it doesn't.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=204664&aid=3509849&group_id=4664

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Cscope-devel mailing list
Cscope-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cscope-devel

Reply via email to