diff options
| author | Thien-Thi Nguyen | 2005-03-04 21:59:33 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2005-03-04 21:59:33 +0000 |
| commit | 64eb0083b1aed79acb81301c8ab9d757ab66e209 (patch) | |
| tree | 277eef43180b058fbf41e6042f91614b31826e27 /src | |
| parent | ad204e956ac4821908cbb4a53270ba52523ae2e3 (diff) | |
| download | emacs-64eb0083b1aed79acb81301c8ab9d757ab66e209.tar.gz emacs-64eb0083b1aed79acb81301c8ab9d757ab66e209.zip | |
(munge_doc_file_name) [VMS]: Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
(Fsnarf_documentation): Call munge_doc_file_name.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/doc.c | 32 |
2 files changed, 17 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 174d736b06d..8cd460c026c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org> | 1 | 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org> |
| 2 | 2 | ||
| 3 | * s/vms.h: Define NO_HYPHENS_IN_FILENAMES. | ||
| 4 | * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES. | ||
| 5 | * fileio.c (Fexpand_file_name) [VMS]: | ||
| 6 | Use NO_HYPHENS_IN_FILENAMES, not VMS4_4. | ||
| 7 | * doc.c (munge_doc_file_name) [VMS]: Likewise. | ||
| 8 | (Fsnarf_documentation): Call munge_doc_file_name. | ||
| 9 | |||
| 10 | 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 11 | |||
| 3 | * s/vms.h (FILE_SYSTEM_CASE): New macro. | 12 | * s/vms.h (FILE_SYSTEM_CASE): New macro. |
| 4 | * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name | 13 | * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name |
| 5 | "manually"; this is now handled generally via FILE_SYSTEM_CASE. | 14 | "manually"; this is now handled generally via FILE_SYSTEM_CASE. |
| @@ -58,26 +58,24 @@ static Lisp_Object Vbuild_files; | |||
| 58 | extern Lisp_Object Voverriding_local_map; | 58 | extern Lisp_Object Voverriding_local_map; |
| 59 | 59 | ||
| 60 | /* For VMS versions with limited file name syntax, | 60 | /* For VMS versions with limited file name syntax, |
| 61 | convert the name to something VMS will allow. */ | 61 | convert the name to something VMS will allow. */ |
| 62 | static void | 62 | static void |
| 63 | munge_doc_file_name (name) | 63 | munge_doc_file_name (name) |
| 64 | char *name; | 64 | char *name; |
| 65 | { | 65 | { |
| 66 | #ifdef VMS | 66 | #ifdef VMS |
| 67 | #ifndef VMS4_4 | 67 | #ifndef NO_HYPHENS_IN_FILENAMES |
| 68 | /* For VMS versions with limited file name syntax, | 68 | extern char * sys_translate_unix (char *ufile); |
| 69 | convert the name to something VMS will allow. */ | 69 | strcpy (name, sys_translate_unix (name)); |
| 70 | p = name; | 70 | #else /* NO_HYPHENS_IN_FILENAMES */ |
| 71 | char *p = name; | ||
| 71 | while (*p) | 72 | while (*p) |
| 72 | { | 73 | { |
| 73 | if (*p == '-') | 74 | if (*p == '-') |
| 74 | *p = '_'; | 75 | *p = '_'; |
| 75 | p++; | 76 | p++; |
| 76 | } | 77 | } |
| 77 | #endif /* not VMS4_4 */ | 78 | #endif /* NO_HYPHENS_IN_FILENAMES */ |
| 78 | #ifdef VMS4_4 | ||
| 79 | strcpy (name, sys_translate_unix (name)); | ||
| 80 | #endif /* VMS4_4 */ | ||
| 81 | #endif /* VMS */ | 79 | #endif /* VMS */ |
| 82 | } | 80 | } |
| 83 | 81 | ||
| @@ -607,21 +605,7 @@ the same file name is found in the `doc-directory'. */) | |||
| 607 | strcpy (name, SDATA (Vdoc_directory)); | 605 | strcpy (name, SDATA (Vdoc_directory)); |
| 608 | } | 606 | } |
| 609 | strcat (name, SDATA (filename)); /*** Add this line ***/ | 607 | strcat (name, SDATA (filename)); /*** Add this line ***/ |
| 610 | #ifdef VMS | 608 | munge_doc_file_name (name); |
| 611 | #ifndef VMS4_4 | ||
| 612 | /* For VMS versions with limited file name syntax, | ||
| 613 | convert the name to something VMS will allow. */ | ||
| 614 | p = name; | ||
| 615 | while (*p) | ||
| 616 | { | ||
| 617 | if (*p == '-') | ||
| 618 | *p = '_'; | ||
| 619 | p++; | ||
| 620 | } | ||
| 621 | #else /* VMS4_4 */ | ||
| 622 | strcpy (name, sys_translate_unix (name)); | ||
| 623 | #endif /* VMS4_4 */ | ||
| 624 | #endif /* VMS */ | ||
| 625 | 609 | ||
| 626 | /* Vbuild_files is nil when temacs is run, and non-nil after that. */ | 610 | /* Vbuild_files is nil when temacs is run, and non-nil after that. */ |
| 627 | if (NILP (Vbuild_files)) | 611 | if (NILP (Vbuild_files)) |