Ticket #829 (closed defect: invalid)

Opened 6 years ago

Last modified 6 years ago

edit() always puts the editor into the background

Reported by: justin Owned by: was
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: user interface Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

The new edit() command in SAGE forces the chosen editor into the background. I'm not sure of the ramifications, but I have a change to the command that does the following: if DISPLAY is set in the user's environment, the assumption is that the editor will work with X (the window system). Since the default 'emacs' in Mac OS X does not work with X, the result is that edit() terminates prematurely, complaining that standard output is not a tty.

My fix is to retain the current behavior only if DISPLAY is set. Otherwise, the editor command is invoked as a "foreground" task, not a background task.

Change History

comment:1 Changed 6 years ago by justin

  • Status changed from new to closed
  • Resolution set to invalid

FIddle. Somehow, I submitted it twice. Somehow, I submitted it twice.

comment:2 Changed 6 years ago by mabshoff

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:3 Changed 6 years ago by mabshoff

  • Status changed from reopened to closed
  • Resolution set to invalid
  • Milestone set to sage-duplicate
Note: See TracTickets for help on using tickets.