| | 1 | [[PageOutline]] |
| | 2 | |
| | 3 | = 12 System Interface = |
| | 4 | |
| | 5 | Hemlock provides a number of commands that access operating system |
| | 6 | resources such as the filesystem and print servers. These commands |
| | 7 | offer an alternative to leaving the editor and using the normal |
| | 8 | operating system command language (such as the Unix shell), but they |
| | 9 | are implementation dependent. Therefore, they might not even exist in |
| | 10 | some implementations. |
| | 11 | |
| | 12 | == 12.1 File Utility Commands == |
| | 13 | |
| | 14 | This section describes some general file operation commands and quick |
| | 15 | directory commands. |
| | 16 | |
| | 17 | See section 6.1 for a description Hemlock's directory editing |
| | 18 | mechanism, Dired mode. |
| | 19 | |
| | 20 | Copy File [Command] |
| | 21 | |
| | 22 | This command copies a file, allowing one wildcard in the filename. It |
| | 23 | prompts for source and destination specifications. |
| | 24 | |
| | 25 | If these are both directories, then the copying process is recursive |
| | 26 | on the source, and if the destination is in the subdirectory structure |
| | 27 | of the source, the recursion excludes this portion of the directory |
| | 28 | tree. Use dir-spec-1/* to copy only the files in a source directory |
| | 29 | without recursively descending into subdirectories. |
| | 30 | |
| | 31 | If the destination specification is a directory, and the source is a |
| | 32 | file, then it is copied into the destination with the same filename. |
| | 33 | |
| | 34 | The copying process copies files maintaining the source's write date. |
| | 35 | |
| | 36 | See the description of Dired Copy File Confirm, page 6.1.5, for |
| | 37 | controlling user interaction when the destination exists. |
| | 38 | |
| | 39 | |
| | 40 | |
| | 41 | Rename File [Command] |
| | 42 | |
| | 43 | This command renames a file, allowing one wildcard in the filename. It |
| | 44 | prompts for source and destination specifications. |
| | 45 | |
| | 46 | If the destination is a directory, then the renaming process moves |
| | 47 | file(s) indicated by the source into the directory with their original |
| | 48 | filenames. |
| | 49 | |
| | 50 | For Unix-based implementations, if you want to rename a directory, do |
| | 51 | not specify the trailing slash in the source specification. |
| | 52 | |
| | 53 | |
| | 54 | |
| | 55 | Delete File [Command] |
| | 56 | |
| | 57 | This command prompts for the name of a file and deletes it. |
| | 58 | |
| | 59 | |
| | 60 | |
| | 61 | Directory (bound to C-x C-d) [Command] |
| | 62 | |
| | 63 | Verbose Directory (bound to C-x C-D) [Command] |
| | 64 | |
| | 65 | These commands prompt for a pathname (which may contain wildcards), |
| | 66 | and display a directory listing in a pop-up window. If a prefix |
| | 67 | argument is supplied, then normally hidden files such as Unix |
| | 68 | dot-files will also be displayed. Directory uses a compact, |
| | 69 | multiple-column format; Verbose Directory displays one file on a line, |
| | 70 | with information about protection, size, etc. |
| | 71 | |
| | 72 | |
| | 73 | |
| | 74 | == 12.2 Printing == |
| | 75 | |
| | 76 | Print Region [Command] |
| | 77 | |
| | 78 | Print Buffer [Command] |
| | 79 | |
| | 80 | Print File [Command] |
| | 81 | |
| | 82 | Print Region and Print Buffer print the contents of the current region |
| | 83 | and the current buffer, respectively. Print File prompts for a the |
| | 84 | name of a file and prints that file. Any error messages will be |
| | 85 | displayed in the echo area. |
| | 86 | |
| | 87 | |
| | 88 | |
| | 89 | Print Utility (initial value "/usr/cs/bin/lpr") [Variable] |
| | 90 | |
| | 91 | Print Utility Switches (initial value ()) [Variable] |
| | 92 | |
| | 93 | Print Utility is the program the print commands use to send files to |
| | 94 | the printer. The program should act like lpr: if a filename is given |
| | 95 | as an argument, it should print that file, and if no name appears, |
| | 96 | standard input should be assumed. Print Utility Switches is a list of |
| | 97 | strings specifying the options to pass to the program. |
| | 98 | |
| | 99 | |
| | 100 | |
| | 101 | == 12.3 Scribe == |
| | 102 | |
| | 103 | Scribe Buffer File [Command] |
| | 104 | |
| | 105 | Scribe Buffer File Confirm (initial value t) [Variable] |
| | 106 | |
| | 107 | Scribe File [Command] |
| | 108 | |
| | 109 | Scribe Buffer File invokes Scribe Utility on the file associated with |
| | 110 | the current buffer. That process's default directory is the directory |
| | 111 | of the file. The process sends its output to the Scribe Warnings |
| | 112 | buffer. Before doing anything, this asks the user to confirm saving |
| | 113 | and formatting the file. This prompting can be inhibited with "Scribe |
| | 114 | Buffer File Confirm". |
| | 115 | |
| | 116 | Scribe File invokes Scribe Utility on a file supplied by the user in |
| | 117 | the same manner as describe above. |
| | 118 | |
| | 119 | |
| | 120 | |
| | 121 | Scribe Utility (initial value "/usr/misc/bin/scribe") [Variable] |
| | 122 | |
| | 123 | Scribe Utility Switches (initial value ) [Variable] |
| | 124 | |
| | 125 | Scribe Utility is the program the Scribe commands use to compile the |
| | 126 | text formatting. Scribe Utility Switches is a list of strings whose |
| | 127 | contents would be contiguous characters, other than space, had the |
| | 128 | user invoked this program on a command line outside of Hemlock. Do not |
| | 129 | include the name of the file to compile in this variable; the Scribe |
| | 130 | commands supply this. |
| | 131 | |
| | 132 | |
| | 133 | |
| | 134 | Select Scribe Warnings (bound to Scribe: C-M-C) [Command] |
| | 135 | |
| | 136 | This command makes the Scribe Warnings buffer current if it exists. |
| | 137 | |
| | 138 | |
| | 139 | |
| | 140 | == 12.4 Miscellaneous == |
| | 141 | |
| | 142 | Manual Page [Command] |
| | 143 | |
| | 144 | This command displays a Unix manual page in a buffer which is in View |
| | 145 | mode. When given an argument, this puts the manual page in a pop-up |
| | 146 | display. |
| | 147 | |
| | 148 | |
| | 149 | |
| | 150 | Unix Filter Region [Command] |
| | 151 | |
| | 152 | This command prompts for a UNIX program and then passes the current |
| | 153 | region to the program as standard input. The standard output from the |
| | 154 | program is used to replace the region. This command is undoable. |
| | 155 | |