Commit graph

400 commits

Author SHA1 Message Date
Richard M. Stallman
93fe0a356f (ange-ftp-completion-hook-function): New function. 1993-07-20 07:12:30 +00:00
Jim Blandy
a18b7c814d * files.el (insert-directory): Doc fix.
* files.el (insert-directory): If FULL-DIRECTORY-P is non-nil,
	add "." component to the end of the path, so that if file is a
	symlink, we get the contents of the directory, not the symlink
	itself.
1993-07-18 06:40:09 +00:00
Richard M. Stallman
1bf3d47551 (basic-save-buffer): Use after-save-hook. 1993-07-08 20:51:51 +00:00
Richard M. Stallman
77fb6aed82 (file-relative-name): If we use default-directory,
call expand-file-name anyway.
1993-07-08 03:04:52 +00:00
Roland McGrath
1e377362be (basic-save-buffer): Invoke after-save-buffer-hook, not after-save-hook. 1993-07-07 20:25:48 +00:00
Roland McGrath
b3c4423b20 (cd-absolute): Use abbreviate-file-name on expansion of DIR. 1993-07-07 06:26:31 +00:00
Roland McGrath
b4e5a3c7c4 (basic-save-buffer): Invoke after-save-hook, not after-save-hooks. 1993-07-07 05:12:29 +00:00
Richard M. Stallman
e6f0e76cd0 (set-visited-file-name): Rename auto-save file only if it exists. 1993-07-01 20:33:56 +00:00
Richard M. Stallman
c77a81cf65 (set-visited-file-name): Rename the old auto save file. 1993-07-01 18:39:58 +00:00
Richard M. Stallman
3be6243a7d (insert-file): Report error if file is directory. 1993-06-19 19:07:19 +00:00
Richard M. Stallman
3a8a836d28 (abbreviate-file-name): Match home dir with no / if nothing else follows. 1993-06-13 01:57:02 +00:00
Richard M. Stallman
5ce8bb89cf (make-directory): By default create dir default-dir. 1993-06-12 06:54:14 +00:00
Richard M. Stallman
c3bf10c278 (file-truename): Don't use expand-file-name to merge
a link target into the previous dir.  Handle .. and . explicitly.
1993-06-12 01:44:48 +00:00
Richard M. Stallman
30c5ce9c10 (cd): Use file-name-absolute-p.
(cd-absolute): No longer interactive.
1993-06-11 16:02:27 +00:00
Richard M. Stallman
4ea836c185 (make-backup-files): Doc fix. 1993-06-11 05:59:16 +00:00
Richard M. Stallman
fec33c0b30 (basic-save-buffer): Cal auto-save-mode with t as arg
if and only if auto save was off and default is on.
(set-visited-file-name): Likewise.
1993-06-10 23:35:18 +00:00
Richard M. Stallman
7d3221d7e3 (hack-one-local-variable): Treat ...-hook(s) and ..-function(s)
like setting the `eval' variable.
1993-06-10 21:31:56 +00:00
Richard M. Stallman
e98dda8986 (abbreviate-file-name): Make abbreviated-home-dir
from `~/', not from just `~'.
1993-06-10 20:44:12 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
a0c9f21b2d (inhibit-local-variables-regexps): New variable.
(set-auto-mode): Handle inhibit-local-variables-regexps.
1993-05-31 21:50:52 +00:00
Richard M. Stallman
320b423388 (find-file-run-dired): Doc fix.
(find-file-read-only): Return the buffer.
(find-file-read-only-other-window): Likewise.
(find-file-read-only-other-frame): Likewise.
1993-05-29 22:28:56 +00:00
Richard M. Stallman
cf65b42953 (file-chase-links): Handle leading .. in symlink target. 1993-05-29 20:13:58 +00:00
Richard M. Stallman
5dadeb297b (file-chase-links): New function.
(backup-buffer): Use file-chase-links.
1993-05-29 20:00:45 +00:00
Richard M. Stallman
278584fb62 (auto-mode-alist): Fix syntax for sgml mode. 1993-05-29 05:22:49 +00:00
Richard M. Stallman
8bb272853d (find-alternate-file): Hide truename and inode number
temporarily, like the visited file name.
1993-05-28 01:22:00 +00:00
Richard M. Stallman
27d0420cd5 (find-file-noselect): Expand buffer-file-truename
before copying it to anything else.
1993-05-26 23:19:07 +00:00
Richard M. Stallman
03b3ba121e (auto-mode-alist): Recognize .sgm, .sgml, .dtd. 1993-05-26 18:21:26 +00:00
Richard M. Stallman
2b845a8c70 (auto-mode-alist): Treat .H and .hh as C++ files. 1993-05-26 18:12:00 +00:00
Richard M. Stallman
9466a1f687 (find-file-read-only-other-window): Use find-file-other-window. 1993-05-25 03:56:02 +00:00
Richard M. Stallman
9daefb36fa (cd): Set cd-path to a list. 1993-05-24 21:45:20 +00:00
Jim Blandy
dd573bc0e5 * files.el (set-auto-mode): If the buffer's file name is nil,
don't try to compare it against the entries in auto-mode-alist.
1993-05-19 06:03:04 +00:00
Richard M. Stallman
a3666e4719 (auto-mode-alist): Delete the entries for makefile-mode. 1993-05-06 01:33:13 +00:00
Jim Blandy
28dbf5014a * files.el (insert-directory): Undo change of March 23;
dereferencing links is inappropriate for dired.

	* files.el (abbreviate-file-name): If abbreviated-home-dir ends
	with a slash, don't remove the corresponding slash from filename
	when we collapse the home directory to ~.
1993-05-03 03:37:22 +00:00
Richard M. Stallman
1770543d43 (find-file-noselect): On VMS, maybe set buffer-file-name
to the truename.  Depends on find-file-not-true-dirname-list
1993-05-02 12:46:26 +00:00
Richard M. Stallman
1cc2fbeb29 (find-file-noselect): Do set buffer-file-name
to the truename, when find-file-visit-truename.

(file-truename): Redo esr's change.
1993-04-30 11:54:04 +00:00
Roland McGrath
59c6a78e58 (file-truename): Undo last change. 1993-04-28 17:33:42 +00:00
Eric S. Raymond
8a5066940a (file-truename): Do the right thing when /home/gp2/eric = "". 1993-04-27 21:59:41 +00:00
Eric S. Raymond
a91b2e223a (cd): Handle leading "~" like an absolute filename. 1993-04-26 05:01:41 +00:00
Eric S. Raymond
231c4e102b (cd): Changed to use to resolve relative cd calls.
(cd-absolute): Added.  This is actually the old cd code with a changed
doc string.
(parse-colon-path): Added. Path-to-string exploder --- may be useful elsewhere.
1993-04-25 06:14:06 +00:00
Roland McGrath
4269ed64c8 (find-file-noselect): Never set SAME-TRUENAME to a buffer whose
buffer-file-name is nil.
1993-04-19 20:36:23 +00:00
Roland McGrath
a292c99fb5 (set-auto-mode): If the buffer begins with "#!", look for -*- in the first
two lines, not just the first one.
1993-04-19 20:27:50 +00:00
Richard M. Stallman
4e7afa864d (find-file-noselect): Verify other buffers' file numbers are still valid. 1993-04-11 21:22:35 +00:00
Noah Friedman
9115e9389c (find-backup-file-name): delete nothing if overflow in number of files to keep. 1993-03-30 22:21:03 +00:00
Eric S. Raymond
d87f0d7f53 Fixed typo introduced by last patch. 1993-03-28 06:36:19 +00:00
Eric S. Raymond
c80d2575c0 (auto-mode-alist): added pairs for .ms, .man, .mk, [Mm]akefile, .lex. 1993-03-28 06:24:44 +00:00
Richard M. Stallman
c9dca4e092 (local-write-file-hooks): New variable.
(set-visited-file-name): Kill local-write-file-hooks as local var.
(basic-save-buffer): Use local-write-file-hooks.
1993-03-26 07:28:20 +00:00
Jim Blandy
632c2579f7 * files.el (insert-directory): Do chase symlinks before passing
the directory name to ls.
1993-03-23 07:41:49 +00:00
Eric S. Raymond
e41b2db1da Added or corrected Commentary sections 1993-03-22 03:27:18 +00:00
Jim Blandy
b411d947d8 * files.el (basic-save-buffer): If file-precious-flag is set, and
we write the buffer to a temp file and then rename it, don't
	neglect to set the new file's modes properly.
1993-03-11 07:04:44 +00:00
Richard M. Stallman
41f48cb1bd (write-file): Handle directory name as arg. 1993-03-03 05:12:05 +00:00