Opened 9 years ago

Closed 9 years ago

Last modified 7 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: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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


Change History (5)

comment:1 Changed 9 years ago by simonpj

  • Milestone set to 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 9 years ago by simonmar

See also #95

comment:3 Changed 9 years ago by simonmar

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

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 7 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:5 Changed 7 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.