2012-07-26 12 views
7

Ich versuche, Aquamacs zu debuggen. Mit anderen emacsen habe ich nur emacs --debug-init getan, aber wenn ich es versuchen, mit aquamacs --debug-init, ichWie Debugging Aquamacs

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 

Meine Version erhalten ist 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 (Unter Mac 10.7 Lion).

Dank

+1

Wenn Sie mit Standard-Emacs vertraut sind, warum Aquamacs verwenden? –

+0

Ich verwendete, bevor ich das Betriebssystem neu installiere, aber ich war immer frustriert, wenn Bilder und Bildlaufleisten nicht mehr reagierten und der Minipuffer verschwand. Vielleicht hat Aquamacs diese Dinge besser gehandhabt. – beardc

Antwort

6

Hat aquamacs --help Arbeit? Ich vermute, dass es nicht, weil wenn Sie den Befehl verwenden, der von Aquamacs selbst installiert wurde (/usr/local/bin/aquamacs) ist es einfach ein Perl-Skript, das OS X open Befehl aufrufen, die beim Analysieren von Optionen möglicherweise Schwierigkeiten haben.

Es ist besser, einfach einen Alias ​​oder eine symbolische Verbindung zu /Applications/Aquamacs.app/Contents/MacOS/Aquamacs zu erstellen.

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

Sie können auch laufen sicher

% /Applications/Aquamacs.app/Contents/MacOS/Aquamacs -nw --debug-init 

Aquamacs in Ihrem bevorzugten Terminal-Emulator zum Laufen zu bekommen. Weitere Informationen finden Sie unter EmacsWiki, Customize Aquamacs.

+0

Danke, ich bekomme seltsames Verhalten, ob ich das Installationsprogramm benutze oder Symlinking, aber für den Moment werde ich nur im Terminal debuggen. – beardc