Mercurial > emacs
comparison lisp/fast-lock.el @ 49241:05e79d32e0c7
(fast-lock-cache-name): Doc fix.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 14 Jan 2003 22:36:40 +0000 |
parents | 45db352a0971 |
children | 99be3a1e2589 |
comparison
equal
deleted
inserted
replaced
49240:57542068b855 | 49241:05e79d32e0c7 |
---|---|
532 ;; than if `file-name-absolute-p', it is because if we just appended ".flc" for | 532 ;; than if `file-name-absolute-p', it is because if we just appended ".flc" for |
533 ;; relative cache directories (that are not ".") then it is possible that more | 533 ;; relative cache directories (that are not ".") then it is possible that more |
534 ;; than one file would have the same cache name in that directory, if the luser | 534 ;; than one file would have the same cache name in that directory, if the luser |
535 ;; made a link from one relative cache directory to another. (Phew!) | 535 ;; made a link from one relative cache directory to another. (Phew!) |
536 (defun fast-lock-cache-name (directory) | 536 (defun fast-lock-cache-name (directory) |
537 "Return full cache path name using caching DIRECTORY. | 537 "Return full cache file name using caching DIRECTORY. |
538 If DIRECTORY is `.', the path is the buffer file name appended with `.flc'. | 538 If DIRECTORY is `.', the file name is the buffer file name appended with `.flc'. |
539 Otherwise, the path name is constructed from DIRECTORY and the buffer's true | 539 Otherwise, the file name is constructed from DIRECTORY and the buffer's true |
540 abbreviated file name, with all `/' characters in the name replaced with `#' | 540 abbreviated file name, with all `/' characters in the name replaced with `#' |
541 characters, and appended with `.flc'. | 541 characters, and appended with `.flc'. |
542 | 542 |
543 If the same file has different cache path names when edited on different | 543 If the same file has different cache file names when edited on different |
544 machines, e.g., on one machine the cache file name has the prefix `#home', | 544 machines, e.g., on one machine the cache file name has the prefix `#home', |
545 perhaps due to automount, try putting in your `~/.emacs' something like: | 545 perhaps due to automount, try putting in your `~/.emacs' something like: |
546 | 546 |
547 (setq directory-abbrev-alist (cons '(\"^/home/\" . \"/\") directory-abbrev-alist)) | 547 (setq directory-abbrev-alist (cons '(\"^/home/\" . \"/\") directory-abbrev-alist)) |
548 | 548 |