Skip to content

Commit

Permalink
racket-xp-rename: Supply old name as default; closes #696
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Jan 11, 2024
1 parent 8ea73be commit e36d434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion racket-xp.el
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ If point is instead on a definition, then go to its first use."
(user-error "Can only rename local definitions, not imports")))
(def-loc uses-prop)
(locs (cons def-loc uses-locs))
(new-id (read-from-minibuffer (format "Rename %s to: " old-id)))
(new-id (read-string (format "Rename %s to: " old-id) nil nil old-id))
(marker-pairs (mapcar (lambda (loc)
(let ((beg (make-marker))
(end (make-marker)))
Expand Down

0 comments on commit e36d434

Please sign in to comment.