1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

585 Commits

Author SHA1 Message Date
Stefan Monnier
0370fe77f1 Rename (and mark as obsolete)
find-file-hooks to find-file-hook,
find-file-not-found-hooks to find-file-not-found-functions,
write-file-hooks to write-file-functions,
write-contents-hooks to write-contents-functions.
Mark local-write-file-hooks as obsolete.
(locate-file-completion): Don't cons uselessly.  Use test-completion.
(basic-save-buffer): Use (point-min) rather than 1.
(basic-save-buffer-2): Obey the `setmodes' returned by backup-buffer.
2002-06-23 21:16:38 +00:00
Andreas Schwab
05a7cb3dca (find-file-read-args): Add new argument `mustmatch' and
pass it down to read-file-name.
(find-file, find-file-other-window, find-file-other-frame)
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Use it and fix prompts.
2002-06-21 08:35:50 +00:00
Andreas Schwab
dfd8bf47b3 (auto-mode-alist): Move entry for ".in" to the end. 2002-06-13 09:32:23 +00:00
Richard M. Stallman
77d18896aa (make-auto-save-file-name): Rename local filename' to file-name'. 2002-06-11 19:25:48 +00:00
Miles Bader
0415fedcd5 (revert-buffer): Correct typo: variable name is `buffer-file-format',
not `buffer-file-formats'.
2002-06-10 06:30:41 +00:00
Richard M. Stallman
f402ba38f5 (find-file-noselect-1): Undo previous change. 2002-06-08 18:28:06 +00:00
Sam Steingold
36236b7232 (auto-mode-alist): Strip trailing ".in" from the file
name when deciding the mode (for config.h.in, Makefile.in etc).
2002-06-01 18:04:35 +00:00
Richard M. Stallman
a49a58f999 (find-file-default): Add defvar for var already used. 2002-05-30 17:13:54 +00:00
Richard M. Stallman
7defe888a5 (find-file-noselect-1): Return the buffer we created
even if it has been killed within `after-find-file'.

(auto-mode-alist): Use ada-mode for .ad[bs].dg files.
2002-05-29 16:34:41 +00:00
Kim F. Storm
5d4d17b823 (read-directory-name): New function.
(cd): Use it instead of read-file-name.
2002-05-28 09:08:42 +00:00
Markus Rost
e31cfca5cb (file-newest-backup): Use file-name-sans-versions. 2002-05-22 23:29:58 +00:00
Miles Bader
257ae3a60a (find-file-read-args): Don't trash existing value of
`minibuffer-setup-hook', just add our hook to it.
2002-05-20 04:40:53 +00:00
Richard M. Stallman
e6f0ff9233 (locate-file): Doc fix. 2002-05-19 15:55:04 +00:00
Richard M. Stallman
ff5c7181b0 (make-auto-save-file-name):
Delete the auto-save file after make-temp-file creates it.
2002-05-14 05:36:44 +00:00
Stefan Monnier
21936ea51e (locate-file): Deprecate integer values for predicate. 2002-05-06 21:11:51 +00:00
Stefan Monnier
38eea7c76f (locate-file): New fun.
(locate-file-completion): Rename from load-completion and generalize.
(load-library): Use it.
(make-auto-save-file-name): Expand caddr.
2002-04-30 01:56:23 +00:00
Richard M. Stallman
bab6eadbfb (small-temporary-file-directory): Fix custom type. 2002-04-29 03:55:57 +00:00
Richard M. Stallman
3c4a7cf326 (make-auto-save-file-name): Specify # as suffix in the non-file-visiting case. 2002-04-28 22:30:22 +00:00
Richard M. Stallman
a74357d4ea (after-find-file): Use %s to output MSG. 2002-04-23 03:45:45 +00:00
Glenn Morris
9211d05383 (auto-mode-alist): .f95 files in f90-mode. 2002-04-21 18:21:47 +00:00
Glenn Morris
a0b60c3317 (auto-save-file-name-transforms): Doc string addition - no effect for
MS-DOS systems without long file names.  Add third element for uniquifying
filenames.
(make-auto-save-file-name): Make a unique filename if indicated by
new element of auto-save-file-name-transforms.
2002-04-20 22:22:57 +00:00
Stefan Monnier
c37adaa5ea (file-name-non-special): Don't mangle the 0'th arg and the
return value of file-name-completion and file-name-all-completions.
2002-04-19 16:27:09 +00:00
Andreas Schwab
7660e38fa5 (file-name-non-special): Handle return value of t from
`file-name-completion'.
2002-04-11 12:13:53 +00:00
Pavel Janík
2bbbe4f6d7 (display-time-string): Fix last change. 2002-04-08 05:01:16 +00:00
Richard M. Stallman
bb230153f2 (display-time-string-forms): Mark as risky. 2002-04-06 22:00:22 +00:00
Richard M. Stallman
ec4ba9e3bc (mode-line-format, mode-line-modified)
(mode-line-mule-info, mode-line-buffer-identification)
(mode-line-modes, mode-line-position): Explicitly mark as risky.
(hack-one-local-variable): Don't recognize "mode-line-..." as risky.
2002-04-04 21:19:32 +00:00
Richard M. Stallman
87a6a5d8d4 (hack-one-local-variable): Clear text props from string value. 2002-04-02 23:14:41 +00:00
Richard M. Stallman
032388f3f7 (file-expand-wildcards): Use save-match-data.
(format-alist): Mark as risky.
2002-04-01 03:45:25 +00:00
Eli Zaretskii
b865c14e76 (auto-save-file-name-transforms): Fix last change. 2002-03-30 07:56:05 +00:00
Eli Zaretskii
747981b0cb (auto-save-file-name-transforms): Don't run "\\2" via expand-file-name. 2002-03-29 14:02:54 +00:00
Richard M. Stallman
7078d9d20f Mark many more variables as risky.
(hack-one-local-variable): Recognize several additional
patterns as risky.
2002-03-28 18:26:07 +00:00
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