Aquamacs를 디버깅하는 방법
문제
Aquamacs를 디버깅하려고합니다.다른 Emacsen과 함께, 나는 방금 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 사자)입니다.
감사합니다
해결책
aquamacs --help
가 작동합니까?Aquamacs 자체가 설치 한 명령을 사용하는 경우 (/usr/local/bin/aquamacs
)가 설치 한 명령을 사용하는 경우에는 옵션을 구문 분석 할 때 어려울 수있는 OS X open
명령을 호출하는 Perl 스크립트입니다.
/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 사용자 정의 에서 더 많은 정보를 찾을 수 있습니다.
제휴하지 않습니다 StackOverflow