Ticket #904 (closed bug: fixed)

Opened 7 years ago

Last modified 5 years ago

":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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

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

Changed 7 years ago by simonpj

  • owner set to simonmar
  • milestone set to 6.6

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.

Changed 7 years ago by simonmar

See also #95

Changed 7 years ago by simonmar

  • status changed from new to closed
  • resolution set to fixed

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 :-)

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

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