diff options
| author | Jim Blandy | 1992-07-22 16:15:36 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-07-22 16:15:36 +0000 |
| commit | 434e6714820315c7e27ec615b0c9b8ab32435e7f (patch) | |
| tree | 0e20c82e2a82d6813c59a1df57559769057a0f8a /src | |
| parent | 3a801d0c71755fad1c33585e7ed54d9dc240999c (diff) | |
| download | emacs-434e6714820315c7e27ec615b0c9b8ab32435e7f.tar.gz emacs-434e6714820315c7e27ec615b0c9b8ab32435e7f.zip | |
entered into RCS
Diffstat (limited to 'src')
| -rw-r--r-- | src/dired.c | 8 | ||||
| -rw-r--r-- | src/xselect.c.old | 24 |
2 files changed, 25 insertions, 7 deletions
diff --git a/src/dired.c b/src/dired.c index e43620fe0fe..3beb9d1d055 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -68,6 +68,7 @@ Lisp_Object Qcompletion_ignore_case; | |||
| 68 | Lisp_Object Qdirectory_files; | 68 | Lisp_Object Qdirectory_files; |
| 69 | Lisp_Object Qfile_name_completion; | 69 | Lisp_Object Qfile_name_completion; |
| 70 | Lisp_Object Qfile_name_all_completions; | 70 | Lisp_Object Qfile_name_all_completions; |
| 71 | Lisp_Object Qfile_attributes; | ||
| 71 | 72 | ||
| 72 | DEFUN ("directory-files", Fdirectory_files, Sdirectory_files, 1, 4, 0, | 73 | DEFUN ("directory-files", Fdirectory_files, Sdirectory_files, 1, 4, 0, |
| 73 | "Return a list of names of files in DIRECTORY.\n\ | 74 | "Return a list of names of files in DIRECTORY.\n\ |
| @@ -86,7 +87,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.\n\ | |||
| 86 | 87 | ||
| 87 | /* If the file name has special constructs in it, | 88 | /* If the file name has special constructs in it, |
| 88 | call the corresponding file handler. */ | 89 | call the corresponding file handler. */ |
| 89 | handler = find_file_handler (filename); | 90 | handler = find_file_handler (dirname); |
| 90 | if (!NILP (handler)) | 91 | if (!NILP (handler)) |
| 91 | { | 92 | { |
| 92 | Lisp_Object args[6]; | 93 | Lisp_Object args[6]; |
| @@ -190,7 +191,7 @@ Returns nil if DIR contains no name starting with FILE.") | |||
| 190 | 191 | ||
| 191 | /* If the file name has special constructs in it, | 192 | /* If the file name has special constructs in it, |
| 192 | call the corresponding file handler. */ | 193 | call the corresponding file handler. */ |
| 193 | handler = find_file_handler (filename); | 194 | handler = find_file_handler (dirname); |
| 194 | if (!NILP (handler)) | 195 | if (!NILP (handler)) |
| 195 | return call3 (handler, Qfile_name_completion, file, dirname); | 196 | return call3 (handler, Qfile_name_completion, file, dirname); |
| 196 | 197 | ||
| @@ -208,7 +209,7 @@ These are all file names in directory DIR which begin with FILE.") | |||
| 208 | 209 | ||
| 209 | /* If the file name has special constructs in it, | 210 | /* If the file name has special constructs in it, |
| 210 | call the corresponding file handler. */ | 211 | call the corresponding file handler. */ |
| 211 | handler = find_file_handler (filename); | 212 | handler = find_file_handler (dirname); |
| 212 | if (!NILP (handler)) | 213 | if (!NILP (handler)) |
| 213 | return call3 (handler, Qfile_name_all_completions, file, dirname); | 214 | return call3 (handler, Qfile_name_all_completions, file, dirname); |
| 214 | 215 | ||
| @@ -505,6 +506,7 @@ syms_of_dired () | |||
| 505 | Qdirectory_files = intern ("directory-files"); | 506 | Qdirectory_files = intern ("directory-files"); |
| 506 | Qfile_name_completion = intern ("file-name-completion"); | 507 | Qfile_name_completion = intern ("file-name-completion"); |
| 507 | Qfile_name_all_completions = intern ("file-name-all-completions"); | 508 | Qfile_name_all_completions = intern ("file-name-all-completions"); |
| 509 | Qfile_attributes = intern ("file-attributes"); | ||
| 508 | 510 | ||
| 509 | defsubr (&Sdirectory_files); | 511 | defsubr (&Sdirectory_files); |
| 510 | defsubr (&Sfile_name_completion); | 512 | defsubr (&Sfile_name_completion); |
diff --git a/src/xselect.c.old b/src/xselect.c.old index cb7697270c2..7123759433e 100644 --- a/src/xselect.c.old +++ b/src/xselect.c.old | |||
| @@ -193,11 +193,27 @@ use X selections.") | |||
| 193 | } | 193 | } |
| 194 | else if (EQ (type, Qcut_buffer0)) | 194 | else if (EQ (type, Qcut_buffer0)) |
| 195 | { | 195 | { |
| 196 | /* DECwindows and some other servers don't seem to like setting | ||
| 197 | properties to values larger than about 20k. For very large | ||
| 198 | values, they signal an error, but for intermediate values | ||
| 199 | they just seem to hang. | ||
| 200 | |||
| 201 | We could just truncate the request, but it's better to let | ||
| 202 | the user know that the strategy he/she's using isn't going to | ||
| 203 | work than to have it work partially, but incorrectly. */ | ||
| 196 | BLOCK_INPUT; | 204 | BLOCK_INPUT; |
| 197 | XStoreBytes (x_current_display, | 205 | if (XSTRING (string)->size > MAX_SELECTION (x_current_display)) |
| 198 | (char *) XSTRING (string)->data, | 206 | { |
| 199 | XSTRING (string)->size); | 207 | XStoreBytes (x_current_display, (char *) 0, 0); |
| 200 | val = string; | 208 | val = Qnil; |
| 209 | } | ||
| 210 | else | ||
| 211 | { | ||
| 212 | XStoreBytes (x_current_display, | ||
| 213 | (char *) XSTRING (string)->data, | ||
| 214 | XSTRING (string)->size); | ||
| 215 | val = string; | ||
| 216 | } | ||
| 201 | UNBLOCK_INPUT; | 217 | UNBLOCK_INPUT; |
| 202 | } | 218 | } |
| 203 | else | 219 | else |