make
현재 디렉토리에서 실행되는 emacs 함수를 작성하고 다른 디렉토리로 변경 make link
하고 텍스트를 make-output (original, eh?) 이라는 새 버퍼로 출력하는 동안 모두 실행 하려고합니다 . 완료되면, 나는 이동하고 싶은 말 의 메이크업 출력 내가 컴파일 성공 여부를 볼 수 있도록 버퍼입니다. 현재 내가 가지고있는 것은 다음과 같습니다.
(defun remake-libefp-interface()
"Will run make in the current directory, change to the NWChem src directory and relink the binary."
(interactive)
(defvar T_pwd (getenv "PWD"))
(defvar T_top (concat (getenv "NWCHEM_TOP") "/src"))
(defvar cmd (concat "make; cd " T_top "; make link;cd " T_pwd))
(with-output-to-temp-buffer "*make-output*"
(shell-command cmd "*make-output*")
(pop-to-buffer "*make-output*")
(end-of-buffer)))
이것은 올바르게 다시 컴파일되지만 make-output 의 시작 부분 에 나를 덤프합니다 . 나는 또한 교체 시도 와 함께 ,하지만이 또한 처음에 나를 떠났다.(end-of-buffer)
(goto-char (point-max))
이동 pop-to-buffer
및 (goto-char (point-max))
외부를 with-output-to-temp-buffer
.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다