Emacs 打印:错误 - 未知选项 "J"
Emacs printing: Error - unknown option "J"
我使用的是 arch 系统 (3.17.6-1-ARCH),使用的是 emacs 24.4.1
当我在 emacs 中 运行 一个打印命令时,我得到这个错误:
Spooling... Done: /usr/bin/lp: Error - unknown option "J"
似乎在某处将“-J”传递给了 lp,但我似乎无法弄清楚
哪里.
该命令在终端中运行,例如:
# lp fu.txt
向其传递 J 标志会重现错误:
# lp -J
lp: Error - unknown option "J".
google/ddg 没有吐出任何关于 emacs 和 lp 的有用信息
关于此事。
我在我的 .emacs 配置中像这样设置打印机命令:
(setq lpr-command "lp")
我试着给它一个空的 lpr-switches
变量,但我接受了
从文档中,它只附加开关。
如果您对解决方案或来源有一些线索
的问题,如果你放弃它,我将不胜感激。
lpr-add-switches
的文档如下:
Non-nil means construct -T
and -J
options for the printer program.
These are made assuming that the program is lpr
;
if you are using some other incompatible printer program,
this variable should be nil.
所以(setq lpr-add-switches nil)
应该可以解决您的问题。
我使用的是 arch 系统 (3.17.6-1-ARCH),使用的是 emacs 24.4.1
当我在 emacs 中 运行 一个打印命令时,我得到这个错误:
Spooling... Done: /usr/bin/lp: Error - unknown option "J"
似乎在某处将“-J”传递给了 lp,但我似乎无法弄清楚 哪里.
该命令在终端中运行,例如:
# lp fu.txt
向其传递 J 标志会重现错误:
# lp -J
lp: Error - unknown option "J".
google/ddg 没有吐出任何关于 emacs 和 lp 的有用信息 关于此事。
我在我的 .emacs 配置中像这样设置打印机命令:
(setq lpr-command "lp")
我试着给它一个空的 lpr-switches
变量,但我接受了
从文档中,它只附加开关。
如果您对解决方案或来源有一些线索 的问题,如果你放弃它,我将不胜感激。
lpr-add-switches
的文档如下:
Non-nil means construct
-T
and-J
options for the printer program. These are made assuming that the program islpr
; if you are using some other incompatible printer program, this variable should be nil.
所以(setq lpr-add-switches nil)
应该可以解决您的问题。