diff options
| author | Stefan Kangas | 2022-07-14 11:56:56 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-07-14 11:56:56 +0200 |
| commit | ddecd864cfeced3e8a01d1b58ef8dcffd177c0f8 (patch) | |
| tree | d40e8a4527ce5b351d6c858722d1672999d6cd31 | |
| parent | 3b0df8af915c529bc4209863c4e11547c7f49eeb (diff) | |
| parent | 76878ce6a0221ee39fdff1850634a5b001120635 (diff) | |
| download | emacs-ddecd864cfeced3e8a01d1b58ef8dcffd177c0f8.tar.gz emacs-ddecd864cfeced3e8a01d1b58ef8dcffd177c0f8.zip | |
Merge from origin/emacs-28
76878ce6a0 * etc/PROBLEMS: Describe problems with remote files. (Bug...
| -rw-r--r-- | etc/PROBLEMS | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS index e4558d5fc2f..924e1effa71 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS | |||
| @@ -729,6 +729,53 @@ time. Possible reasons for this include: | |||
| 729 | To work around the problem, you could use Git or some other | 729 | To work around the problem, you could use Git or some other |
| 730 | free-software program, instead of ClearCase. | 730 | free-software program, instead of ClearCase. |
| 731 | 731 | ||
| 732 | *** Various commands that visit files on networked filesystems fail. | ||
| 733 | |||
| 734 | This could happen if the filesystem of those files is mounted in a way | ||
| 735 | that causes the files to be accessed via a symlink. One such example | ||
| 736 | is the 'amd' automounter, which unmounts the filesystem after some | ||
| 737 | period of lack of use. Another example is Emacs running on MS-Windows | ||
| 738 | that accesses files on remote server via symlinks whose target is a | ||
| 739 | UNC of the form '\\server\share'. | ||
| 740 | |||
| 741 | The reason for these problems is that some Emacs commands visit files | ||
| 742 | via their truename, resolving the symlink, which causes these files' | ||
| 743 | default-directory to also have the symlink resolved. If the resolved | ||
| 744 | directory has access problems, subsequent commands from that file's | ||
| 745 | buffer could fail. For example, the stock MS-Windows shell 'cmd.exe' | ||
| 746 | is unable to use a UNC-form directory as the current directory, so | ||
| 747 | 'shell-command' and its callers will typically fail. Similarly with | ||
| 748 | using targets of symlinks which no longer mount the remote filesystem | ||
| 749 | will fail. | ||
| 750 | |||
| 751 | You can solve these problems in several ways: | ||
| 752 | |||
| 753 | - Write a 'find-file'hook' function which will change the value of | ||
| 754 | 'default-directory' to reference the symlink instead of its | ||
| 755 | target. | ||
| 756 | |||
| 757 | - Set up 'directory-abbrev-alist' to automatically convert the | ||
| 758 | 'default-directory' of such files in the same manner. | ||
| 759 | |||
| 760 | - On MS-Windows, map a drive letter to the '\\server\share' | ||
| 761 | directory and point your symlinks to a directory name that uses | ||
| 762 | the drive letter. | ||
| 763 | |||
| 764 | *** On MS-Windows, visiting files in OneDrive fails. | ||
| 765 | |||
| 766 | This is known to happen when OneDrive is accessed via the so-called | ||
| 767 | "metered connections", whose use is charged by the volume of | ||
| 768 | transferred data. Those are typically wireless links using a modem or | ||
| 769 | a mobile phone. In these cases, files that are left in the cloud and | ||
| 770 | not downloaded to the local computer can produce various failures in | ||
| 771 | system calls that access the files or their meta-data. | ||
| 772 | |||
| 773 | The solution is to disable the "metered connection" status from the | ||
| 774 | WiFi properties (reachable from the Windows Settings menu). This will | ||
| 775 | cause files to be downloaded to the local computer when they are | ||
| 776 | accessed (which could take some time, and Emacs functions accessing | ||
| 777 | the file will wait for that), avoiding the errors. | ||
| 778 | |||
| 732 | *** ps-print commands fail to find prologue files ps-prin*.ps. | 779 | *** ps-print commands fail to find prologue files ps-prin*.ps. |
| 733 | 780 | ||
| 734 | This can happen if you use an old version of X-Symbol package: it | 781 | This can happen if you use an old version of X-Symbol package: it |