Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#904 closed bug (fixed)

":e test.hs" overwrites "test.hs" with emacs tags

Reported by: guest Owned by: simonmar
Priority: normal Milestone: 6.6
Component: GHCi Version: 6.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

This is not really a bug but it can be confusing (and lead to loss of work) for programmers that use both Hugs and GHCi. In Hugs, :e filename opens filename in an editor. In GHCi 6.5 :e filename (short for :etags filename) creates an Emacs tags file, overwriting filename.

Some solutions:

  • Use a different command to create emacs tags
  • Make the command fail if the file already exists

-Iavor

Change History (5)

comment:1 Changed 11 years ago by simonpj

Milestone: 6.6
Owner: set to simonmar

Fair enough. We'll make ":e" invoke "edit" (not implemented yet), and ":etags" invoke etags. Abbrebiations as usual, so ":et" will do etags as well, and ":ed" would do edit.

comment:2 Changed 11 years ago by simonmar

See also #95

comment:3 Changed 11 years ago by simonmar

Resolution: fixed
Status: newclosed

Fixed: :e now pops up the editor, just like Hugs.

I didn't implement all of Hugs' :edit functionality, in particular we don't attempt to jump to a particular line in the file, but I've done enough to close this bug :-)

comment:4 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:5 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.