diff options
| author | Andrew Choi | 2002-07-01 20:02:33 +0000 |
|---|---|---|
| committer | Andrew Choi | 2002-07-01 20:02:33 +0000 |
| commit | bc21bf11c1770f87b8e6a2472bfcfbac4209076f (patch) | |
| tree | a4497cc1d17efeae1e154ba691d54787d8c561ae | |
| parent | 7abc9addc7501da288dd0af9fd2bdcf8bcca0c6d (diff) | |
| download | emacs-bc21bf11c1770f87b8e6a2472bfcfbac4209076f.tar.gz emacs-bc21bf11c1770f87b8e6a2472bfcfbac4209076f.zip | |
In mac:
2002-07-01 Andrew Choi <akochoi@shaw.ca>
* Emacs.app/Contents/Resources/Emacs.icns: New file.
* Emacs.app/Contents/Info.plist: Add CFBundleDocumentTypes and
CFBundleIconFile entries.
In src:
2002-07-01 Andrew Choi <akochoi@shaw.ca>
* macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
and FSRefMakePath to convert FSSpec returned with Apple Event to
Posix pathname.
(mac_initialize) [TARGET_API_MAC_CARBON]: Call
init_required_apple_events and disable the `Quit' menu item
provided automatically by the Carbon Toolbox.
| -rw-r--r-- | mac/ChangeLog | 15 | ||||
| -rw-r--r-- | mac/Emacs.app/Contents/Info.plist | 23 | ||||
| -rw-r--r-- | mac/Emacs.app/Contents/Resources/Emacs.icns | bin | 0 -> 51554 bytes | |||
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/macterm.c | 45 |
5 files changed, 74 insertions, 20 deletions
diff --git a/mac/ChangeLog b/mac/ChangeLog index 186a8564289..a07fe67e25c 100644 --- a/mac/ChangeLog +++ b/mac/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2002-07-01 Andrew Choi <akochoi@shaw.ca> | ||
| 2 | |||
| 3 | * Emacs.app/Contents/Resources/Emacs.icns: New file. | ||
| 4 | |||
| 5 | * Emacs.app/Contents/Info.plist: Add CFBundleDocumentTypes and | ||
| 6 | CFBundleIconFile entries. | ||
| 7 | |||
| 1 | 2002-04-13 Andrew Choi <akochoi@shaw.ca> | 8 | 2002-04-13 Andrew Choi <akochoi@shaw.ca> |
| 2 | 9 | ||
| 3 | * Emacs.app/Contents/Info.plist: New file. | 10 | * Emacs.app/Contents/Info.plist: New file. |
| @@ -137,7 +144,7 @@ | |||
| 137 | cursor row is invisible. This can happen if cursor is on top line | 144 | cursor row is invisible. This can happen if cursor is on top line |
| 138 | of a window, and we switch to a buffer with a header line. | 145 | of a window, and we switch to a buffer with a header line. |
| 139 | 146 | ||
| 140 | 2001-12-22 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 147 | 2001-12-22 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 141 | 148 | ||
| 142 | * cw5-mcp.xml, cw6-mcp.xml, makefile.MPW: Remove mocklisp files. | 149 | * cw5-mcp.xml, cw6-mcp.xml, makefile.MPW: Remove mocklisp files. |
| 143 | 150 | ||
| @@ -146,7 +153,7 @@ | |||
| 146 | * src/macfns.c (x_report_frame_params): Make the scroll-bar-width | 153 | * src/macfns.c (x_report_frame_params): Make the scroll-bar-width |
| 147 | frame parameter have a numeric value all the time. | 154 | frame parameter have a numeric value all the time. |
| 148 | 155 | ||
| 149 | 2001-12-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 156 | 2001-12-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 150 | 157 | ||
| 151 | * COPYING: New file. | 158 | * COPYING: New file. |
| 152 | 159 | ||
| @@ -164,7 +171,7 @@ | |||
| 164 | * src/macterm.c: Merged changes from xterm.c. | 171 | * src/macterm.c: Merged changes from xterm.c. |
| 165 | * src/macfns.c: Merged changes from xfns.c. | 172 | * src/macfns.c: Merged changes from xfns.c. |
| 166 | 173 | ||
| 167 | 2001-11-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 174 | 2001-11-16 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 168 | 175 | ||
| 169 | * src/macterm.c (waiting_for_input): Remove unnecessary declaration. | 176 | * src/macterm.c (waiting_for_input): Remove unnecessary declaration. |
| 170 | 177 | ||
| @@ -268,7 +275,7 @@ | |||
| 268 | 275 | ||
| 269 | * inc/macterm.h (x_display_list): Declare extern. | 276 | * inc/macterm.h (x_display_list): Declare extern. |
| 270 | 277 | ||
| 271 | 2001-07-20 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 278 | 2001-07-20 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 272 | 279 | ||
| 273 | * src/macterm.c (xim_open_dpy): Fix typo. | 280 | * src/macterm.c (xim_open_dpy): Fix typo. |
| 274 | 281 | ||
diff --git a/mac/Emacs.app/Contents/Info.plist b/mac/Emacs.app/Contents/Info.plist index 4d51100f66b..774db36af76 100644 --- a/mac/Emacs.app/Contents/Info.plist +++ b/mac/Emacs.app/Contents/Info.plist | |||
| @@ -4,8 +4,29 @@ | |||
| 4 | <dict> | 4 | <dict> |
| 5 | <key>CFBundleDevelopmentRegion</key> | 5 | <key>CFBundleDevelopmentRegion</key> |
| 6 | <string>English</string> | 6 | <string>English</string> |
| 7 | <key>CFBundleDocumentTypes</key> | ||
| 8 | <array> | ||
| 9 | <dict> | ||
| 10 | <key>CFBundleTypeExtensions</key> | ||
| 11 | <array> | ||
| 12 | <string>*</string> | ||
| 13 | </array> | ||
| 14 | <key>CFBundleTypeName</key> | ||
| 15 | <string>All</string> | ||
| 16 | <key>CFBundleTypeOSTypes</key> | ||
| 17 | <array> | ||
| 18 | <string>****</string> | ||
| 19 | </array> | ||
| 20 | <key>CFBundleTypeRole</key> | ||
| 21 | <string>Viewer</string> | ||
| 22 | </dict> | ||
| 23 | </array> | ||
| 7 | <key>CFBundleExecutable</key> | 24 | <key>CFBundleExecutable</key> |
| 8 | <string>Emacs</string> | 25 | <string>Emacs</string> |
| 26 | <key>CFBundleIconFile</key> | ||
| 27 | <string>Emacs.icns</string> | ||
| 28 | <key>CFBundleIdentifier</key> | ||
| 29 | <string>com.gnu.Emacs</string> | ||
| 9 | <key>CFBundleInfoDictionaryVersion</key> | 30 | <key>CFBundleInfoDictionaryVersion</key> |
| 10 | <string>6.0</string> | 31 | <string>6.0</string> |
| 11 | <key>CFBundlePackageType</key> | 32 | <key>CFBundlePackageType</key> |
| @@ -13,6 +34,6 @@ | |||
| 13 | <key>CFBundleSignature</key> | 34 | <key>CFBundleSignature</key> |
| 14 | <string>????</string> | 35 | <string>????</string> |
| 15 | <key>CFBundleVersion</key> | 36 | <key>CFBundleVersion</key> |
| 16 | <string>0.1</string> | 37 | <string>1.1</string> |
| 17 | </dict> | 38 | </dict> |
| 18 | </plist> | 39 | </plist> |
diff --git a/mac/Emacs.app/Contents/Resources/Emacs.icns b/mac/Emacs.app/Contents/Resources/Emacs.icns new file mode 100644 index 00000000000..25cc99fdd0e --- /dev/null +++ b/mac/Emacs.app/Contents/Resources/Emacs.icns | |||
| Binary files differ | |||
diff --git a/src/ChangeLog b/src/ChangeLog index 12a056e92bb..f2ebcdd5b30 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2002-07-01 Andrew Choi <akochoi@shaw.ca> | ||
| 2 | |||
| 3 | * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef | ||
| 4 | and FSRefMakePath to convert FSSpec returned with Apple Event to | ||
| 5 | Posix pathname. | ||
| 6 | (mac_initialize) [TARGET_API_MAC_CARBON]: Call | ||
| 7 | init_required_apple_events and disable the `Quit' menu item | ||
| 8 | provided automatically by the Carbon Toolbox. | ||
| 9 | |||
| 1 | 2002-07-01 Dave Love <fx@gnu.org> | 10 | 2002-07-01 Dave Love <fx@gnu.org> |
| 2 | 11 | ||
| 3 | * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl | 12 | * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl |
| @@ -135,7 +144,7 @@ | |||
| 135 | * w32fns.c (file_dialog_callback): New function. | 144 | * w32fns.c (file_dialog_callback): New function. |
| 136 | (Fx_file_dialog): Allow selecting directories as well as files. | 145 | (Fx_file_dialog): Allow selecting directories as well as files. |
| 137 | 146 | ||
| 138 | 2002-06-21 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 147 | 2002-06-21 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 139 | 148 | ||
| 140 | * m/pmax.h (START_FILES): Define START_FILES for NetBSD and | 149 | * m/pmax.h (START_FILES): Define START_FILES for NetBSD and |
| 141 | OpenBSD. Add support for mipseb-*-netbsd* machines. | 150 | OpenBSD. Add support for mipseb-*-netbsd* machines. |
diff --git a/src/macterm.c b/src/macterm.c index 41dfbc0c0ab..ae1d7389d19 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -12123,20 +12123,31 @@ do_ae_open_documents(AppleEvent *message, AppleEvent *reply, long refcon) | |||
| 12123 | int i; | 12123 | int i; |
| 12124 | 12124 | ||
| 12125 | /* AE file list is one based so just use that for indexing here. */ | 12125 | /* AE file list is one based so just use that for indexing here. */ |
| 12126 | for (i = 1; (err == noErr) && (i <= num_files_to_open); i++) { | 12126 | for (i = 1; (err == noErr) && (i <= num_files_to_open); i++) |
| 12127 | FSSpec fs; | 12127 | { |
| 12128 | Str255 path_name, unix_path_name; | 12128 | FSSpec fs; |
| 12129 | 12129 | Str255 path_name, unix_path_name; | |
| 12130 | err = AEGetNthPtr(&the_desc, i, typeFSS, &keyword, &actual_type, | 12130 | #ifdef MAC_OSX |
| 12131 | (Ptr) &fs, sizeof (fs), &actual_size); | 12131 | FSRef fref; |
| 12132 | if (err != noErr) break; | 12132 | #endif |
| 12133 | 12133 | ||
| 12134 | if (path_from_vol_dir_name (path_name, 255, fs.vRefNum, fs.parID, | 12134 | err = AEGetNthPtr(&the_desc, i, typeFSS, &keyword, &actual_type, |
| 12135 | fs.name) && | 12135 | (Ptr) &fs, sizeof (fs), &actual_size); |
| 12136 | mac_to_posix_pathname (path_name, unix_path_name, 255)) | 12136 | if (err != noErr) break; |
| 12137 | drag_and_drop_file_list = Fcons (build_string (unix_path_name), | 12137 | |
| 12138 | drag_and_drop_file_list); | 12138 | #ifdef MAC_OSX |
| 12139 | } | 12139 | err = FSpMakeFSRef (&fs, &fref); |
| 12140 | if (err != noErr) break; | ||
| 12141 | |||
| 12142 | if (FSRefMakePath (&fref, unix_path_name, 255) == noErr) | ||
| 12143 | #else | ||
| 12144 | if (path_from_vol_dir_name (path_name, 255, fs.vRefNum, fs.parID, | ||
| 12145 | fs.name) && | ||
| 12146 | mac_to_posix_pathname (path_name, unix_path_name, 255)) | ||
| 12147 | #endif | ||
| 12148 | drag_and_drop_file_list = Fcons (build_string (unix_path_name), | ||
| 12149 | drag_and_drop_file_list); | ||
| 12150 | } | ||
| 12140 | } | 12151 | } |
| 12141 | } | 12152 | } |
| 12142 | 12153 | ||
| @@ -13142,6 +13153,12 @@ mac_initialize () | |||
| 13142 | #endif | 13153 | #endif |
| 13143 | 13154 | ||
| 13144 | mac_initialize_display_info (); | 13155 | mac_initialize_display_info (); |
| 13156 | |||
| 13157 | #if TARGET_API_MAC_CARBON | ||
| 13158 | init_required_apple_events (); | ||
| 13159 | |||
| 13160 | DisableMenuCommand (NULL, kHICommandQuit); | ||
| 13161 | #endif | ||
| 13145 | } | 13162 | } |
| 13146 | 13163 | ||
| 13147 | 13164 | ||