[Date Prev] [Date Index] [Date Next]
[Thread Prev] [Thread Index] [Thread Next]

[xyzzy:00862] Re: Shell 選択



木寅さん、こんにちは。

    Thu, 5 Nov 1998 19:34:24 +0900 の
   “[xyzzy:00857] Re: Shell 選択”
    への返事です.

| 近頃、xyzzyでTexを書く機会が多くて、completion機能がとても欲しいです。

こうかな?(^^

(defvar *LaTeX-keywords* nil)

(defun LaTeX-completion ()
  (interactive "*")
  (or *LaTeX-keywords*
      (maphash
       #'(lambda (x y)
	   (push x *LaTeX-keywords*))
       ed::*LaTeX-keyword-hash-table*))
  (let ((opoint (point)))
    (when (skip-syntax-spec-backward "w_")
      (let ((from (1- (point))))
	(when (prog1
		  (looking-back "\\")
		(goto-char opoint))
	  (do-completion from opoint :list *LaTeX-keywords*))))))

--
亀井哲弥(Tetsuya Kamei)
kamei@xxxxxxxxxxxx/JCA00343@xxxxxxxxxxx

Index Home