Commit graph

651 commits

Author SHA1 Message Date
Richard M. Stallman
1aa8fe4665 (ange-ftp-completion-hook-function): Add safe-magic prop. 2002-08-24 02:57:31 +00:00
Richard M. Stallman
64d18e8f14 (recover-this-file): New function.
(after-find-file): Recommend recover-this-file.
2002-08-15 20:08:24 +00:00
Kenichi Handa
01afb4f3ac (revert-buffer): Fix previous change. 2002-07-30 00:44:36 +00:00
Richard M. Stallman
6ee24f1e72 (file-name-sans-extension): Avoid expanding DIRECTORY. 2002-07-27 19:09:54 +00:00
Kenichi Handa
1eb0bebc79 (revert-buffer): Before calling insert-file-contents,
kill the local variable buffer-file-coding-system.
2002-07-26 12:07:26 +00:00
Richard M. Stallman
f3f9e20778 (basic-save-buffer-2): If there's an error writing the file,
unrename the backup file if it was just made.
(backup-buffer, basic-save-buffer-2, basic-save-buffer-1)
(basic-save-buffer): Value now has form (MODES . BACKUPNAME)
when a backup was just made by renaming.  Otherwise it's nil.
2002-07-23 19:23:08 +00:00
Richard M. Stallman
a5dd5f602f (toggle-read-only): Clean up the hint message. 2002-07-20 22:02:57 +00:00
André Spiegel
d758359d9d Bind toggle-read-only to C-x C-q.
(toggle-read-only): Display a warning message if the file is under
version control.
2002-07-16 17:40:37 +00:00
Richard M. Stallman
63fabbb4fe (find-alternate-file): Offer to save a modified buffer.
Handle kill-buffer-query-functions better.
2002-07-14 15:30:54 +00:00
Pavel Janík
c25773c46d *** empty log message *** 2002-07-11 17:32:01 +00:00
Kenichi Handa
82e22b5719 (insert-directory): Be sure to bind
coding-system-for-write to the just decided
coding-system-for-read.
2002-07-09 02:42:06 +00:00
Kim F. Storm
879365c68f (after-find-file): Don't check for read-only status
of files just created (and not yet saved on disk).
2002-07-07 23:15:04 +00:00
Richard M. Stallman
8fd9c1745e (safe-local-eval-forms): New user option.
(hack-one-local-variable-eval-safep): Support it.
Also allow `safe-local-eval-function' property to be a function
or a list of functions.
(c-add-style): Delete `safe-local-eval-function' property.

(after-find-file): Make buffer read-only if file is
marked that way, even for root.

(save-some-buffers): Doc fix.
2002-07-07 09:21:52 +00:00
Francesco Potortì
6e6b84ef01 (auto-mode-alist): Add knowledge of .sx[dmicw] file
suffixes for Open office data files.
2002-07-05 23:15:37 +00:00
Richard M. Stallman
ff7affeb8b (hack-one-local-variable-constantp): New function.
(hack-one-local-variable-eval-safep): New function.
Check for `eval:' calling fn with `safe-local-eval-function' property.
(hack-one-local-variable): Use hack-one-local-variable-eval-safep.
(c-add-style, c-set-style): Add safe-local-eval-function property.

(insert-directory): Handle --dired option to ls.

(file-remote-p): New function.
2002-07-02 18:58:29 +00:00
Andreas Schwab
525fdbc9c8 * files.el (directory-free-space-args): Don't use -P on Darwin.
* term/mac-win.el: Don't set it here.
2002-06-30 14:42:19 +00:00
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