In emacs finden Sie die Dokumentation einer Funktion in info

310
justinhj

Wenn Sie chf nach der Hilfe für eine Funktion in emacs suchen, können Sie durch Klicken auf den Link im Hilfefeld zur Quelle gehen.

Gibt es eine Möglichkeit, aus dem Funktionshilfefenster zu Info zu gelangen und gezielt nach dem Kapitel zu suchen, in dem die Funktion dokumentiert ist.

Oder, wenn nicht, um schnell Informationen nach dem ausgewählten Funktionsnamen zu suchen.

1

1 Antwort auf die Frage

1
camdez

The command you're looking for is Info-goto-emacs-command-node, bound to C-h F. Unfortunately there doesn't seem to be any integration between the two different forms of documentation.

This is a bit rough, but drop this in your .emacs file and from the C-h f documentation for a function you'll be able to hit i ("info") to jump to the corresponding C-h F documentation.

(defun Info-goto-from-command-help () "Go to the Info node in the Emacs manual for the command currently being viewed in `help-mode'." (interactive) (when (eq 'describe-function (car help-xref-stack-item)) (Info-goto-emacs-command-node (cadr help-xref-stack-item)))) (define-key help-mode-map "i" 'Info-goto-from-command-help) 
Das ist ordentlich danke! Ich füge diese Bedingung zu dem when ... hinzu (commandp (cadr help-xref-stack-item))), weil es für mich anfangs nicht funktionierte und ich nicht wusste, dass es nur für interaktive Befehle funktioniert. justinhj vor 11 Jahren 0
Ursprüngliche Frage nach * Funktion * Definition. Der Info-goto-emacs-Befehlsknoten funktioniert nur für Befehle, die Sie erraten haben. Jürgen A. Erhard vor 11 Jahren 0