Commit graph

525 commits

Author SHA1 Message Date
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
André Spiegel
ffc0e1caf1 Fix prev change. 2000-10-04 17:16:59 +00:00
André Spiegel
fa5867f6aa (basic-save-buffer): Call vc-before-save before saving. 2000-10-04 09:55:21 +00:00
Gerd Moellmann
a12bfcd8ab (auto-mode-alist): Add pattern for `#*mail*...'. 2000-09-30 12:14:46 +00:00
Sam Steingold
a62fb8a013 (find-file-suppress-same-file-warnings): period in doc string 2000-09-26 16:25:29 +00:00
Gerd Moellmann
8fb3df5935 (find-file-suppress-same-file-warnings): New
user-option.
(find-file-noselect): Use it.
2000-09-19 15:14:42 +00:00
Andreas Schwab
d2473540a7 (insert-directory): Don't lose original file name,
undoing an undocumented change.
2000-08-17 12:08:26 +00:00
Eli Zaretskii
98532b1215 (recover-file): Call insert-directory instead of
invoking `ls' directly.
2000-08-10 10:44:49 +00:00
Eli Zaretskii
17ab9c3980 (insert-directory): Don't call access-file on
directories on DOS and Windows.
2000-08-09 12:01:09 +00:00
Gerd Moellmann
0720b68be2 (auto-mode-interpreter-regexp): New variable.
(set-auto-mode): Use it.
2000-08-08 18:32:10 +00:00
Gerd Moellmann
9facfd265c (shell-quote-wildcard-pattern): Make sure to return
PATTERN, in the Unix case.
2000-08-07 10:06:54 +00:00
Eli Zaretskii
c90596f36f (shell-quote-wildcard-pattern): New function.
(insert-directory): Call it.  Only prepend "\" to command on Unix
and GNU/Linux systems.
2000-07-30 13:27:46 +00:00
Andreas Schwab
f1bba07d31 (normal-backup-enable-predicate): Correct
interpretation of the return value of compare-strings.
2000-07-26 16:56:22 +00:00
Sam Steingold
34342a07bd insert-directory: use split-string 2000-07-18 14:18:03 +00:00
Gerd Moellmann
4ff5372025 (basic-save-buffer-2): When temporarily setting
file modes, set them to current modes plus 0200, not to 0777.
2000-06-23 07:13:30 +00:00
Eli Zaretskii
b79a846b37 (make-backup-file-name-1): On DOS/Windows, run the
backup file name through convert-standard-filename.
2000-06-22 14:58:38 +00:00
Dave Love
d18f678bf0 Rename make-buffer-file-executable-if-script-p. 2000-06-09 09:55:33 +00:00
Dave Love
22ddd29947 (after-save-hook): Customize, with
make-buffer-file-executable-if-script-p as an option.
2000-06-09 09:42:05 +00:00
Dave Love
37193ee632 (convert-standard-filename): Doc fix.
(normal-backup-enable-predicate): New function.
(backup-enable-predicate): Use it to replace the lambda form.
2000-06-02 18:46:19 +00:00
Eli Zaretskii
41ac433f66 (make-backup-file-name-1): Replace slashes with `!'
rather than `|' (which is not allowed on Windows).  Replace the
drive letters with a string "drive_X".
2000-05-23 13:19:38 +00:00
Gerd Moellmann
9e451c4436 (interpreter-mode-alist): Add `bash2'. 2000-05-23 11:22:08 +00:00
Dave Love
74654c6507 (parse-colon-path): Doc fix.
(auto-mode-alist, interpreter-mode-alist): Purecopy the cars.
(set-auto-mode): Use mapc.
2000-05-22 19:29:04 +00:00
Gerd Moellmann
08fb7a1c66 (auto-mode-alist): Add pattern for `.shrc'. 2000-05-19 11:55:50 +00:00
Gerd Moellmann
063381ab4a (auto-mode-alist): Change EBROWSE' to BROWSE'. 2000-05-04 21:50:18 +00:00
Gerd Moellmann
1d18bc3a67 (recover-session): Make directories as necessary
if they don't exist yet.
2000-05-02 20:09:21 +00:00
Gerd Moellmann
d564f5b60b (make-auto-save-file-name):
Apply auto-save-file-name-transforms to visited file name
before generating auto save file name.
(auto-save-file-name-transforms): New variable.

(backup-enable-predicate):
Correctly test for a file under a temporary directory.
2000-04-29 13:17:48 +00:00
Gerd Moellmann
e1603a09df (basic-save-buffer-2): Use a template with `$'
instead of `#' for VMS.
2000-04-17 15:24:06 +00:00
Stefan Monnier
84e4ce49e6 (backup-enable-predicate): Unquote the lambda. 2000-04-17 10:36:52 +00:00
Gerd Moellmann
01fae1df89 (auto-mode-alist): Add `EBROWSE'. 2000-04-10 13:32:07 +00:00
Dave Love
86724078ea (backup-enable-predicate): Use temporary-file-directory,
small-temporary-file-directory.
(make-backup-file-name-function, backup-directory-alist): New
variables.
(make-backup-file-name-1): New function.
(make-backup-file-name): Use it.
(find-backup-file-name): Likewise.  Use format for clarity, not concat.
(file-newest-backup): Use make-backup-file-name.
2000-04-09 17:18:48 +00:00