Wilfred / helpful

A better Emacs *help* buffer
1.1k stars 62 forks source link

Bug: doesn't handle filled (word-wrapped) info references #272

Open SamB opened 3 years ago

SamB commented 3 years ago

For example, the docs for completing-read contain this text:

COLLECTION, and PREDICATE.  See also Info node ‘(elisp)Basic Completion’
for the details about completion, and Info node ‘(elisp)Programmed
Completion’ for expectations from COLLECTION when it’s a function.

If I place my cursor within second info reference and invoke describe-char, I get this output:

There are text properties here:
  button               (t)
  category             helpful-info-button-button
  info-node            "(elisp)Programmed\nCompletion"

This is what vanilla help does to prevent this:

https://github.com/emacs-mirror/emacs/blob/869579170b87b06dd802b563417a69564c82f559/lisp/help-mode.el#L543-L544

SamB commented 3 years ago

Oh yeah, obviously pressing the button also fails (Info makes sure the right info file is loaded, but doesn't navigate within it).