0
mu4e에서 pdf 함수로 뷰를 작업하려고하는데이 문제는 실행 파일의 조회 디렉토리라고 생각합니다 msg2pdf
. 함수 정의에서 은 내가 msg2pdf
가 어디 있는지 경로를 일치하도록 (defvar mu4e-msg2pdf "/usr/bin/msg2pdf" "Path to the msg2pdf toy.")
을 변경 mu4e mu4e-action-view-as-pdf 함수에서 조회 디렉토리를 변경하는 방법
(defvar mu4e-msg2pdf "/usr/bin/msg2pdf" "Path to the msg2pdf toy.")
(defun mu4e-action-view-as-pdf (msg)
"Convert the message to pdf, then show it.
Works for the message view."
(unless (file-executable-p mu4e-msg2pdf)
(mu4e-error "msg2pdf not found; please set `mu4e-msg2pdf'"))
(let* ((pdf
(shell-command-to-string
(concat mu4e-msg2pdf " "
(shell-quote-argument (mu4e-message-field msg :path))
" 2> /dev/null")))
(pdf (and pdf (> (length pdf) 5)
(substring pdf 0 -1)))) ;; chop \n
(unless (and pdf (file-exists-p pdf))
(mu4e-warn "Failed to create PDF file"))
(find-file pdf)))
를 참조하십시오. 문제는 디버거에서 나는 조회 경로는 처음에 지정한 아니라고
Debugger entered--returning value: nil
file-executable-p("/build/buildd/maildir-utils-0.9.9.5/toys/msg2pdf/msg2pdf")
* #[(msg) "\305!\204\n ......
* mu4e-action-view-as-pdf((.....
mu4e-view-action()
call-interactively(mu4e-view-action nil nil)
볼 수 있다는 것입니다. 내가 다른 방식으로 그것을 chage하려고했기 때문에 분명히 mu4e
은 나를 무시하고있다. 아무도 내가 정확한 lookup path를 어떻게 설정 할수 있는지 안다.