首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何调试Aquamacs

如何调试Aquamacs
EN

Stack Overflow用户
提问于 2012-07-26 22:37:36
回答 1查看 2K关注 0票数 7

我在试着调试Aquamacs。对于其他aquamacs --debug-init,我刚刚做了emacs --debug-init,但是当我用emacsen尝试它时,我得到

代码语言:javascript
复制
touch: illegal option -- -
usage:
touch [-A [-][[hh]mm]SS] [-acfhm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file ...
open: unrecognized option `--debug-init'
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
Help: Open opens files from a shell.
      By default, opens each file using the default application for that file.  
      If the file is in the form of a URL, the file will be opened as a URL.
Options: 
      -a                Opens with the specified application.
      -b                Opens with the specified application bundle identifier.
      -e                Opens with TextEdit.
      -t                Opens with default text editor.
      -f                Reads input from standard input and opens with TextEdit.
      -F  --fresh       Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents.
      -R, --reveal      Selects in the Finder instead of opening.
      -W, --wait-apps   Blocks until the used applications are closed (even if they were already running).
          --args        All remaining arguments are passed in argv to the application's main() function instead of opened.
      -n, --new         Open a new instance of the application even if one is already running.
      -j, --hide       

 Launches the app hidden.
      -g, --background  Does not bring the application to the foreground.
      -h, --header      Searches header file locations for headers matching the given filenames, and opens them.
rm: illegal option -- -
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file

我的版本是GNU Emacs 24.1.50.3 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2012-06-24 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev (在Mac10.7Lion上)。

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-07-27 01:57:55

aquamacs --help能工作吗?我怀疑它不会,因为如果您使用的是由Aquamacs本身安装的命令(即/usr/local/bin/aquamacs),那么它只是一个调用OS X open命令的Perl脚本,在解析选项时可能会有困难。

最好只创建一个别名或指向/Applications/Aquamacs.app/Contents/MacOS/Aquamacs的符号链接。

代码语言:javascript
复制
% /Applications/Aquamacs.app/Contents/MacOS/Aquamacs --help
Usage: /Applications/Aquamacs.app/Contents/MacOS/Aquamacs [OPTION-OR-FILENAME]...

Run Emacs, the extensible, customizable, self-documenting real-time
display editor.  The recommended way to start Emacs for normal editing
is with no options at all.

Run M-x info RET m emacs RET m emacs invocation RET inside Emacs to
read the main documentation for these command-line arguments.

Initialization options:

--batch                     do not do interactive display; implies -q
--chdir DIR                 change to directory DIR
--daemon                    start a server in the background
--debug-init                enable Emacs Lisp debugger for init file
--%<--------

您还可以安全地运行

代码语言:javascript
复制
% /Applications/Aquamacs.app/Contents/MacOS/Aquamacs -nw --debug-init

使Aquamacs在您首选的终端仿真器中运行。更多信息可以在EmacsWiki,Customize Aquamacs上找到。

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11671734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档