diff options
Diffstat (limited to 'src/mac.c')
| -rw-r--r-- | src/mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -5318,8 +5318,8 @@ init_mac_osx_environment () | |||
| 5318 | /* P should have sufficient room for the pathname of the bundle plus | 5318 | /* P should have sufficient room for the pathname of the bundle plus |
| 5319 | the subpath in it leading to the respective directories. Q | 5319 | the subpath in it leading to the respective directories. Q |
| 5320 | should have three times that much room because EMACSLOADPATH can | 5320 | should have three times that much room because EMACSLOADPATH can |
| 5321 | have the value "<path to lisp dir>:<path to leim dir>:<path to | 5321 | have the value "<path to site-lisp dir>:<path to lisp dir>:<path |
| 5322 | site-lisp dir>". */ | 5322 | to leim dir>". */ |
| 5323 | p = (char *) alloca (app_bundle_pathname_len + 50); | 5323 | p = (char *) alloca (app_bundle_pathname_len + 50); |
| 5324 | q = (char *) alloca (3 * app_bundle_pathname_len + 150); | 5324 | q = (char *) alloca (3 * app_bundle_pathname_len + 150); |
| 5325 | if (!getenv ("EMACSLOADPATH")) | 5325 | if (!getenv ("EMACSLOADPATH")) |
| @@ -5327,12 +5327,12 @@ init_mac_osx_environment () | |||
| 5327 | q[0] = '\0'; | 5327 | q[0] = '\0'; |
| 5328 | 5328 | ||
| 5329 | strcpy (p, app_bundle_pathname); | 5329 | strcpy (p, app_bundle_pathname); |
| 5330 | strcat (p, "/Contents/Resources/lisp"); | 5330 | strcat (p, "/Contents/Resources/site-lisp"); |
| 5331 | if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) | 5331 | if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) |
| 5332 | strcat (q, p); | 5332 | strcat (q, p); |
| 5333 | 5333 | ||
| 5334 | strcpy (p, app_bundle_pathname); | 5334 | strcpy (p, app_bundle_pathname); |
| 5335 | strcat (p, "/Contents/Resources/leim"); | 5335 | strcat (p, "/Contents/Resources/lisp"); |
| 5336 | if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) | 5336 | if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) |
| 5337 | { | 5337 | { |
| 5338 | if (q[0] != '\0') | 5338 | if (q[0] != '\0') |
| @@ -5341,7 +5341,7 @@ init_mac_osx_environment () | |||
| 5341 | } | 5341 | } |
| 5342 | 5342 | ||
| 5343 | strcpy (p, app_bundle_pathname); | 5343 | strcpy (p, app_bundle_pathname); |
| 5344 | strcat (p, "/Contents/Resources/site-lisp"); | 5344 | strcat (p, "/Contents/Resources/leim"); |
| 5345 | if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) | 5345 | if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) |
| 5346 | { | 5346 | { |
| 5347 | if (q[0] != '\0') | 5347 | if (q[0] != '\0') |