emacs.el: info-in-prompt: detect duplication automatically