Commit graph

554 commits

Author SHA1 Message Date
Richard M. Stallman
849051903e (list-directory): Set default-directory at the end. 2002-03-18 04:30:45 +00:00
Kim F. Storm
48a4a1fbe0 (save-buffers-kill-emacs): Also check for active server
processes.  Use process-query-on-exit-flag.  Only list processes
which has the query-on-exit flag set in connection with user query.
2002-03-17 20:30:19 +00:00
Stefan Monnier
2c3d8820e2 (load-completion): New function.
(load-library): Use it.
2002-03-16 02:25:56 +00:00
Eli Zaretskii
1e57a69675 (make-auto-save-file-name): Make sure the produced file
name does not contain characters that are invalid for DOS/Windows
filesystems.
2002-03-06 18:19:43 +00:00
Richard M. Stallman
75244a672a (make-auto-save-file-name): Use make-temp-file. 2002-03-03 21:57:59 +00:00
Richard M. Stallman
c736f678a2 (file-name-non-special): Add special handling for
file-name-sans-versions, file-name-completion, and
file-name-all-completions.
2002-02-06 15:29:29 +00:00
Richard M. Stallman
c9783dfe4f (basic-save-buffer-2): Ignore file-error in delete-file. 2002-01-24 18:55:53 +00:00
Eli Zaretskii
ef59dd3bb8 (find-file-noselect): Don't consider a buffer as
visiting a file literally if it is in hexl-mode.
2002-01-12 13:28:48 +00:00
Richard M. Stallman
0ba5894bf1 (basic-save-buffer): Undo previous change. 2002-01-04 02:13:37 +00:00
Richard M. Stallman
14be1bc202 (basic-save-buffer): If a before-write hook displays
an echo area message, pause before calling basic-save-buffer-1.
2001-12-30 02:39:12 +00:00
Eli Zaretskii
01b26b9070 (directory-free-space-program): Mention
file-system-info in the doc string.
(get-free-disk-space): New function; code moved from insert-directory.
(insert-directory): Call get-free-disk-space to get the amount of free space.
2001-12-21 15:20:42 +00:00
Richard M. Stallman
f4d0467268 (directory-free-space-program): New variable.
(directory-free-space-args): New variable.
(insert-directory): Use those two variables for getting free space.
Use file-system-info instead, if that is defined.

(font-lock-defaults): Add risky-local-variables prop.
(hack-one-local-variable): Treat various font-lock variables as risky.
2001-12-18 19:35:09 +00:00
Richard M. Stallman
2d2ab9da1b (set-auto-mode): Fix previous change. 2001-12-14 03:21:49 +00:00
Richard M. Stallman
e3f9b9c0c5 (set-auto-mode-1): New subroutine, broken out of set-auto-mode.
(set-auto-mode, hack-local-variables-prop-line): Use that.
2001-12-12 00:10:17 +00:00
Eli Zaretskii
02c6a1ccf0 (save-abbrevs, save-some-buffers): Don't ask the user
before saving abbrevs if `save-abbrevs' has the value `silently'.
2001-12-04 18:27:06 +00:00
Richard M. Stallman
ebad92dc85 (insert-directory): If the df output does not look right,
don't try to use it.  Other cleanups in overall code structure.
2001-12-03 00:02:52 +00:00
Richard M. Stallman
388d6ab529 (temporary-file-directory): Use defcustom.
(small-temporary-file-directory): Likewise.
(normal-backup-enable-predicate): Move down in file
after definition of temporary-file-directory.
2001-11-24 23:59:28 +00:00
Richard M. Stallman
eb61b61b26 (temporary-file-directory)
(small-temporary-file-directory): Definitions moved up.
2001-11-21 12:04:17 +00:00
Kai Großjohann
a2899d6cc6 * files.el (auto-save-file-name-transforms): Put remote files in
temporary-file-directory rather than /tmp.
2001-11-21 08:32:57 +00:00
Richard M. Stallman
88b3677644 (save-abbrevs): Default value is t. 2001-11-11 01:53:50 +00:00
Richard M. Stallman
4803e625de (file-newest-backup): Don't pass backup file name
thru file-name-sans-versions, because it never has version numbers.
2001-11-01 20:44:11 +00:00
Richard M. Stallman
e554eeb7ee (find-file-noselect): Offer to change buffer-read-only
only when the file's read-only status has changed from before
as well as disagreeing with the buffer's current status.
(buffer-file-read-only): New var, local in all buffers.
2001-11-01 19:33:52 +00:00
Richard M. Stallman
8767d8666a (find-backup-file-name): Use make-backup-file-name. 2001-10-30 00:23:32 +00:00
Eli Zaretskii
2531b0c39c (file-name-sans-extension, file-name-extension): Don't
count the leading dots in file names as signaling an extension.
2001-10-22 16:11:12 +00:00
Eli Zaretskii
8f9495e70e (auto-mode-alist): Associate .indent.pro with
Fundamental mode.  Suggested by Samuel Padgett
<spadgett1@nc.rr.com>.
2001-10-19 16:32:49 +00:00
Gerd Moellmann
a8d002d2a6 (find-file-noselect): If file's read-only status has
changed on disk, ask if buffer's read-only status should be
changed, unless NOWARN is set.
2001-10-05 12:10:57 +00:00
Eli Zaretskii
15233548ee (make-auto-save-file-name): If long file names are not
supported, truncate the file name to DOS 8+3 limits before
generating an auto-save file name from it.
2001-09-13 12:41:41 +00:00
Gerd Moellmann
e043664a1d (auto-mode-alist): Use nroff-mode for files ending
in `.9'.  From Assar Westerlund  <assar@stacken.kth.se>.
2001-07-25 09:48:04 +00:00
Eli Zaretskii
e55c48639b (auto-mode-alist): Add configure.ac (autoconf). 2001-06-23 19:44:13 +00:00
Eli Zaretskii
4c6a473947 (switch-to-buffer-other-window, switch-to-buffer-other-frame): Add an xref
to display-buffer in the doc string.
2001-05-17 10:59:18 +00:00
Stefan Monnier
5c6d31a48f (auto-mode-alist): Add *.perl and fix the *.<rev> case. 2001-05-11 20:22:46 +00:00
Andreas Schwab
dca5e71d8f (backup-directory-alist): Fix typo. 2001-03-30 11:04:05 +00:00
Dave Love
7e36528557 (insert-file-contents-literally): Bind
inhibit-file-name-handlers and inhibit-file-name-operation, not
jka-compr-compression-info-list.
2001-03-02 23:51:19 +00:00
Gerd Moellmann
b4990dde78 (save-buffer): Don't give message if (buffer-file-name)
returns nil.
2001-01-31 13:53:37 +00:00
Eli Zaretskii
9c2ba08f6e (confirm-kill-emacs): Doc fix. 2001-01-29 17:06:56 +00:00
Gerd Moellmann
11f1530569 (confirm-kill-emacs): New user-option.
(save-buffers-kill-emacs): Ask for final confirmation before
killing Emacs.
2001-01-10 20:19:16 +00:00
Eli Zaretskii
bc22fd184a (insert-directory-safely): New function.
(recover-file): Use it instead of insert-directory.
2000-12-21 14:44:35 +00:00
Dave Love
9ab80679a3 (load-file): Fix last change. 2000-12-08 14:19:00 +00:00
Dave Love
58195faaf8 (load-file): Fix change of 2000-03-12. 2000-12-06 18:38:47 +00:00
Eli Zaretskii
68875f0e7b (revert-buffer, recover-file): Bind
coding-system-for-read to emacs-mule-unix, not to no-conversion.
2000-12-01 15:30:43 +00:00
Gerd Moellmann
7423978df5 (auto-mode-alist): Add an entry for antlr-mode. 2000-11-29 16:49:08 +00:00
Stefan Monnier
d5798fa707 (find-buffer-visiting): Compare all attributes before
declaring two files identical (rather than just their inode-no).
(auto-mode-alist): Use \' rather than $.
2000-11-21 21:12:49 +00:00
Gerd Moellmann
407b432881 (basic-save-buffer): Don't add a newline if
find-file-literally is non-nil.
(find-file-literally): Extend doc string.
2000-11-16 17:04:27 +00:00
Gerd Moellmann
648ec2ff27 (find-file-noselect): When we expand a wildcard, return
a list of buffers, as we should do according to the doc string.
2000-10-31 16:55:23 +00:00
Gerd Moellmann
fe50b6abd8 (after-find-file): Don't print any warnings if
WARN is nil.
2000-10-24 15:18:19 +00:00
Gerd Moellmann
53bb90cad6 (after-find-file): Don't print a message ``New file''
if WARN is nil.
2000-10-24 15:06:14 +00:00
Andrew Innes
446c097e30 (make-backup-file-name-1) [windowsnt, ms-dos]: Remove
superfluous calls to subst-char-in-string; instead apply
expand-file-name after convert-standard-filename to ensure
expected directory separators are used.
2000-10-23 17:40:16 +00:00
Eli Zaretskii
e854cc22eb (auto-mode-alist): Add .dif and .pat as diff-mode extensions, for MS-DOS. 2000-10-17 12:36:26 +00:00
Eli Zaretskii
f26d858e50 (find-backup-file-name) [ms-dos]: If support for long
file names is not available, behave as if version-control were set
to never.
2000-10-07 18:49:14 +00:00
Stefan Monnier
9ee45b2cc1 (set-auto-mode): Ignore unknown -*- mode -*- rather than
raise an error.  This way it can still defaults to a sane value.
2000-10-07 03:05:14 +00:00