ocaml / merlin

Context sensitive completion for OCaml in Vim and Emacs
https://ocaml.github.io/merlin/
MIT License
1.58k stars 233 forks source link

emacs-mode: both `merlin-occurrences` and `merlin-occurences` are defined #297

Closed dbuenzli closed 9 years ago

dbuenzli commented 9 years ago

The right spelling is the first one. This is v2.0.

And what's the name of that awesome rename function that is advertised in the release blog post ? The very first releases of typerex had that and it's an invaluable tool when you are obsessed with finding the right names.

let-def commented 9 years ago

And defined as (define-obsolete-function-alias 'merlin-occurences 'merlin-occurrences). Might be time to remove it though.

For the rename thing, you need iedit, (require 'merlin-iedit) then M-x merlin-iedit-occurences.

  1. Only the identifier in the current scope is renamed, not other paths referring to the same value (e.g in a sub-module M, renaming a to b won't rename M.a to M.b).
  2. Renaming is local to current buffer.