(defun isearch-forward (&optional regexp-p no-recursive-edit)
(interactive "P\np")
(isearch-mode t (not (null regexp-p)) nil (not no-recursive-edit)))
什麼特殊字符p
(字母的小P)作爲做參數傳遞給交互功能?第一個字符P(大寫)是否意味着regexp-p
值來自全局變量定義。ISEARCH`interactive`規範使用特殊字符,用戶輸入
再一次地,用戶輸入的單詞作爲正則表達式-p傳遞,no-recursive-edit
如何得到它的值?
下面是描述'交互式代碼'的文檔的鏈接:http://www.gnu.org/software/emacs/manual/html_node/elisp/Interactive-Codes.html#Interactive-Codes – lawlist 2015-01-31 21:56:19
或'Ch f交互式RET'(它至少爲您提供了足夠的信息,以便使用必要的關鍵字進行搜索)。我注意到,你(Madhavan Kumar)在最近幾周詢問了很多Emacs的問題,並且對elisp中的編程感興趣。通過實際記錄查詢Emacs中內置文檔的基本知識,您將爲自己做出巨大的貢獻。現在你應該知道*'C-h f'給你提供關於函數的信息。 – phils 2015-02-01 11:35:53