> I can see a point to your proposition to save the whole buffer content, tho
> I'd do it generically in help-setup-xref:
> [...]
> and then update all uses of help-xref-stack-item.

I think this would be a good generic solution.

> But I also like the current behavior which recomputed the contents, because
> I use it specifically for this purpose: to update the help based on the
> new state (I typically use this for describe-variable).
>
> But maybe the two should be separated: provide a refresh command (which
> could be used in revert-buffer-function as well) which uses the
> help-xref-stack-item info, while the help-xref-go-back would reproduce the
> original buffer contents.

One standard key to revert the buffer contents is `g'.  Since the help buffer
is in view mode, it is currently bound in the help buffer to `View-goto-line'.
But we already have a key sequence exactly for this: `M-g M-g'.  So we
could bind `M-g M-g' to `View-goto-line' in view mode, and bind `g' in
help mode to a refresh command.

-- 
Juri Linkov
http://www.jurta.org/emacs/



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to