如何调试Aquamacs

7

我想要调试Aquamacs。对于其他的Emacs,我只需运行emacs --debug-init,但是当我尝试使用aquamacs --debug-init时,我得到了以下提示:

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(在Mac 10.7 Lion上)。
谢谢。

1
如果您熟悉标准的Emacs,为什么要使用Aquamacs呢? - event_jr
在重新安装操作系统之前,我曾经使用过,但是我总是对框架和滚动条变得不响应以及小缓冲区消失感到沮丧。想着也许Aquamacs可以更好地处理这些事情。 - beardc
1个回答

6
< p >您是否尝试过运行?我怀疑它不起作用,因为如果您使用由Aquamacs自身安装的命令(即/usr/local/bin/aquamacs),它只是Perl脚本,调用OS X的open命令时可能会在解析选项时遇到困难。

最好只需创建别名或符号链接到/Applications/Aquamacs.app/Contents/MacOS/Aquamacs

% /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
--%<--------

您可以安全地运行。
% /Applications/Aquamacs.app/Contents/MacOS/Aquamacs -nw --debug-init

要在您喜欢的终端仿真器中运行Aquamacs。有关更多信息,请访问EmacsWiki,自定义Aquamacs


谢谢,无论我使用安装程序还是符号链接,都会出现奇怪的行为,但现在我只想在终端中进行调试。 - beardc

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接