Discussion:
[Bug cli/8597] edit command should detect emacs hosting session
sergiodj at redhat dot com
2014-09-14 02:54:13 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=8597

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
CC| |sergiodj at redhat dot com

--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
This bug still happens, even with the new Emacs GDB/MI interface. But I wonder
if it is interesting to tackle this issue from inside GDB, who, IMO, should be
agnostic as to which environment it is running.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-08-07 17:47:49 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=8597

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
What I do in gdbhelpers (https://github.com/tromey/gdb-helpers)
is detect when running in Emacs and then set an environment
variable inside gdb:

os.environ["EDITOR"] = "emacsclient -n"

However this relies on the Emacs user invoking (server-start).

Doing anything fancier would need a change to MI and a corresponding
change to Emacs. Not impossible but the above was a lot simpler.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...