Commit graph

511 commits

Author SHA1 Message Date
Richard M. Stallman
b296cbd4ab (find-file-noselect-1): Init buffer-file-coding-system
from default-buffer-file-coding-system.

(find-file-noselect-1): Return the buffer that is current
after after-find-file.
(find-file-noselect): Return whatever find-file-noselect-1 returns.
1998-06-23 15:49:54 +00:00
Eli Zaretskii
106a57a4cc (file-name-invalid-regexp): Add control characters for DOS/Windows
as they are disallowed by the filesystem there.
1998-06-14 15:34:02 +00:00
Richard M. Stallman
da09b92be7 (user-init-file): Default value now nil.
(local-enable-local-variables): New variable.
(set-auto-mode): Test it.
1998-06-13 06:17:13 +00:00
Richard M. Stallman
666c1d8bab (find-file-noselect): Delete unused local var `error'.
(find-file-noselect-1): Add local var `error'.
1998-06-13 04:44:32 +00:00
Richard M. Stallman
4dd9d86d22 (find-file-noselect): Use find-file-noselect-1
after "Save file and revisit literally? ".
1998-06-13 04:34:52 +00:00
Richard M. Stallman
03511cfdaa (null-device): New variable. 1998-06-09 02:52:41 +00:00
Richard M. Stallman
ddd64da9df (find-file-noselect-1): New function.
(find-file-noselect): If want to visit literally and buffer is
visited the ordinary way, or vice versa, ask user whether
to re-visit, or save and revisit.  Use find-file-noselect-1.
1998-06-09 02:49:43 +00:00
Karl Heuer
ca597f41ea (toggle-read-only): When exiting View mode, locally
set view-read-only to t so another toggle will re-enable View mode.
1998-06-03 14:37:00 +00:00
Richard M. Stallman
6a97049b56 (insert-directory): When WILDCARD is nil, expand ~ if necessary. 1998-05-22 03:24:28 +00:00
Eli Zaretskii
3096684711 (file-name-invalid-regexp): New variable, moved here from arc-mode.el 1998-05-21 14:26:10 +00:00
Richard M. Stallman
cdda8f47be (temporary-file-directory): Renamed from system-tmp-directory.
Value is now a directory name, not a file name.
1998-05-19 05:21:42 +00:00
Richard M. Stallman
c11032b95f (system-tmp-directory): New variable.
(recover-session-finish): Unmark the current line
so that the file being used for recovery will not get deleted.
1998-05-16 03:38:20 +00:00
Richard M. Stallman
0516edee5f (save-buffer-coding-system): New variable.
(basic-save-buffer-1): Obey it.
(basic-save-buffer): Set save-buffer-coding-system instead of
buffer-file-coding-system, if save-buffer-coding-system is already non-nil.
1998-05-11 01:33:54 +00:00
Richard M. Stallman
3b9ffb776b (set-auto-mode): When just-from-file-name is set, don't
actually switch modes if the new mode is the same as the current one.
1998-04-26 04:19:28 +00:00
Geoff Voelker
0627db9cd2 (path-separator): Delete variable. 1998-04-17 05:24:27 +00:00
Karl Heuer
26dd83e682 (find-file-noselect): Set buffer-file-coding-system
if RAWFILE.
1998-04-14 18:42:32 +00:00
Richard M. Stallman
04d807e6ce (hack-one-local-variable): Variables named ...-predicate are treated as risky.
(write-file): Omit directory part when making default file name.
1998-04-01 03:44:50 +00:00
Karl Heuer
2fa149b63f (find-file-noselect): Use set-buffer-multibyte
instead of setting enable-multibyte-characters.
1998-03-23 00:14:06 +00:00
Richard M. Stallman
b0d2a9e796 Delete junk accidentally left in buffer on 4 March. 1998-03-12 22:44:12 +00:00
Richard M. Stallman
19618231c3 (basic-save-buffer): Use save-current-buffer not save-excursion. 1998-03-05 04:00:53 +00:00
Richard M. Stallman
e13322a0d9 (auto-mode-alist): Recognize zone-mode. 1998-03-05 02:17:48 +00:00
Kenichi Handa
a91733595d (insert-directory): Bind coding-system-for-write.
Don't encode filename here because call-process encodes the
arguments by codign-system-for-write.
1998-03-03 07:17:56 +00:00
Kenichi Handa
73ba53dc85 (insert-directory): Bind coding-system-for-read to
file-name-coding-system or default-file-name-coding-system if
enable-multibyte-characters is non-nil
1998-03-03 01:35:39 +00:00
Karl Heuer
4d49551aee (set-visited-file-name): Don't call backup-enable-predicate
when buffer-file-name is nil.
1998-02-27 22:13:26 +00:00
Karl Heuer
798f4b0a3e (auto-mode-alist): Add vhdl-mode. 1998-01-18 03:21:25 +00:00
Eli Zaretskii
9263121691 (delete-auto-save-files): Say in the doc string that
auto-save file will not be deleted if the buffer has unsaved
changes.
1998-01-07 09:41:30 +00:00
Richard M. Stallman
7b3d6b9c1a (find-file-noselect): Fix previous change. 1997-12-21 02:34:59 +00:00
Richard M. Stallman
944ef99444 (find-file-noselect): Signal error if file is unreadable. 1997-12-21 02:10:01 +00:00
Karl Heuer
3ad08c112c (auto-mode-alist): Add .am as makefile-mode. 1997-12-11 07:07:42 +00:00
Karl Heuer
ebff6b7d68 (auto-mode-alist): Add more extensions for perl-mode.
(interpreter-mode-alist): Add miniperl.
1997-11-23 02:13:26 +00:00
Karl Heuer
6492b55df7 (write-file): Make buffer writable if the new file is. 1997-11-20 22:00:57 +00:00
Karl Heuer
e0df3aef1f (rename-uniquely): Simplify. 1997-11-07 21:44:16 +00:00
Karl Heuer
5cb1f7280a (file-name-non-special): For insert-directory operation,
ensure that default-directory is an ordinary file name
before turning off file-name-handler-alist.
1997-10-19 21:02:27 +00:00
Karl Heuer
fe4d985204 (file-name-non-special): If "/:" is the entire file
name, make it "/" after stripping.
1997-10-19 20:34:22 +00:00
Karl Heuer
d6e8ea6f54 (basic-save-buffer): Set buffer-file-coding-system to
the coding system actually used for saving.
1997-10-19 20:20:15 +00:00
Karl Heuer
a0d809f20e (revert-without-query): Fix customize type. 1997-10-02 02:57:16 +00:00
Richard M. Stallman
ab85f1b124 (insert-directory): Encode the file name. 1997-09-08 09:56:52 +00:00
Richard M. Stallman
6c4fd4363d (auto-mode-alist): Handle .m4 and .mc files. 1997-09-06 22:18:47 +00:00
Geoff Voelker
b1667e6c86 (file-truename) [windows-nt]: Use the canonicalized
long file name as the truename.
(auto-mode-alist): Use archive-mode for Java JAR files.
(recover-file) [windows-nt]: Don't try to list directory.
1997-09-02 19:38:31 +00:00
Richard M. Stallman
5b4dd2e27e Fix indentation. 1997-09-01 21:29:44 +00:00
Kenichi Handa
3fa0a9aafd (hack-local-variables-prop-line): Ignore coding: tag.
(hack-one-local-variable): Likewise.
1997-09-01 07:17:07 +00:00
Richard M. Stallman
b9aa953735 (find-file-literally): Doc fix. 1997-08-27 17:25:46 +00:00
Kenichi Handa
b77d82114f (revert-buffer): Read a file without any code
conversion if we are reverting from an auto-saved file.
1997-08-26 11:45:49 +00:00
Kenichi Handa
da30bf98df (append-to-file): Doc-string fixed. 1997-08-19 10:59:47 +00:00
Richard M. Stallman
9b8ef27ded (insert-file-literally): New command. 1997-08-11 22:32:01 +00:00
Richard M. Stallman
3e06294d6d (insert-file-contents-literally): Doc fix. 1997-08-07 02:43:11 +00:00
Richard M. Stallman
31c691c1a1 (cd-absolute): Add missing arg to `error'. 1997-08-05 05:49:10 +00:00
Richard M. Stallman
cb2fdcfa49 (basic-save-buffer-1): Add missing argument for error. 1997-08-04 18:56:42 +00:00
Richard M. Stallman
e65db7b8cf (insert-file-contents-literally):
Bind coding-system-for-read and coding-system-for-write,
and bind jka-compr-compression-info-list instead of
file-name-handler-alist.
(find-file-literally): Simplify and use insert-file-contents-literally.
1997-08-04 03:07:28 +00:00
Richard M. Stallman
16cb44ddb3 (auto-mode-alist): Add ".mf" and ".mp" for meta-mode.el.
Add ".clo" for latex-mode.
1997-07-23 20:56:12 +00:00