Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(defun search-for-what-is-just-killed () (interactive) (search-forward latestkillringvariable? nil t) )
emacs lisp関数で「yank」を使用するにはどうすればよいですか?
リストに直接kill-ringアクセスして、最新のキルにアクセスできます。
kill-ring
(substring-no-properties (car kill-ring))
substring-no-propertiesテキストは追加のプロパティ(特定のモードに固有のフォント化など)とともにキルリングに保持されるため、このビットは重要です。おそらくそれらを削除する必要があります。
substring-no-properties