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

727 Commits

Author SHA1 Message Date
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
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
Gerd Moellmann
18f183760f (insert-directory): List the total free space
along with the used space.
2000-04-03 19:26:43 +00:00
Dave Love
3957c98213 Doc fixes.
(file-truename): Include `[' in wildcard characters.
(automount-dir-prefix): Customize.
(find-file-wildcards): Add :version.
(find-file-noselect): Simplify a mapcar call.
2000-03-26 17:07:06 +00:00
Stefan Monnier
bfb857d81e (find-file-run-dired): Update docstring.
(find-directory-functions): New hook.
(find-file-noselect): Run find-directory-functions rather than
calling dired directly.
2000-03-22 03:10:07 +00:00
Dave Love
a1fe6488ec (load-file): Allow completion to .elc. 2000-03-12 14:42:35 +00:00
Dave Love
ae3d47c61a (auto-mode-alist): Add configure.in. 2000-03-07 12:17:34 +00:00
Dave Love
fc25634a20 (user-init-file): Don't declare here -- is primitive. 2000-01-19 15:33:54 +00:00
Carsten Dominik
2c56e4a415 (auto-mode-alist) default mode for extension ".pro" set to `idlwave-mode' 1999-12-20 14:24:13 +00:00
Gerd Moellmann
a390d6c6c8 (after-find-file): Fix previous change. 1999-12-12 12:26:53 +00:00
Gerd Moellmann
365e9bce08 (after-find-file): Use auto-save-visited-file-name if set. 1999-12-09 15:23:31 +00:00
Stefan Monnier
707ad06002 (save-some-buffers): Turn EXITING into the more general
PRED argument to allow specifying a subset of buffers.
1999-12-07 06:31:32 +00:00
Richard M. Stallman
f3a4b82fe0 (write-file-hooks): Doc fix. 1999-11-26 17:31:26 +00:00
Stefan Monnier
a9fb0b79ab (auto-mode-alist): add patterns for diff-mode. 1999-11-19 20:14:12 +00:00
Gerd Moellmann
e178969580 (file-local-copy): Remove optional BUFFER argument
because that's not used by anything.
1999-11-10 12:11:55 +00:00
Gerd Moellmann
6fdc7533ac (auto-mode-alist): Add ps-mode for .eps and .ps, case insensitive. 1999-10-12 14:53:08 +00:00
Dave Love
3c0abb26d3 Recognize temporary crontab files. 1999-10-05 11:41:48 +00:00
Richard M. Stallman
8120f98902 (after-find-file): When visiting a backup file, make it read-only. 1999-09-17 20:57:37 +00:00
Richard M. Stallman
4adcd90506 (find-file-noselect): Catch errors in file-expand-wildcards,
and use the initial argument as file name directly.
Likewise if nothing matches.
1999-09-11 21:29:11 +00:00
Richard M. Stallman
2cb28a6046 (backup-by-copying-when-privileged-mismatch): New variable.
(backup-buffer): Use it.
1999-09-08 07:37:56 +00:00
Eli Zaretskii
128d940d04 (small-temporary-file-directory): Make it nil except on ms-dos. 1999-09-06 11:47:56 +00:00
Eli Zaretskii
9531ab86d9 (small-temporary-file-directory): New variable. 1999-09-02 12:24:54 +00:00
Dave Love
f8b7c3516f (find-file): Doc fix. 1999-08-26 17:54:28 +00:00
Dave Love
67271658b3 (interpreter-mode-alist): Add make, guile, clisp.
(find-file): Doc fix.
1999-08-16 11:41:29 +00:00
Karl Heuer
114d3e869f Fix typo in copyright date. 1999-08-10 16:43:08 +00:00
Karl Heuer
c741ccc5c1 (after-find-file): Disable View mode if buffer is no
longer read-only.
1999-08-10 16:40:14 +00:00
Dave Love
11cfb745a2 (abbreviated-home-dir): Doc fix. 1999-07-29 21:50:47 +00:00
Karl Heuer
a7aa942a03 Comment fix. 1999-07-13 03:39:33 +00:00
Richard M. Stallman
2df32500ab (revert-buffer): Don't preserve point here.
(revert-buffer-insert-file-contents-function): Doc fix.
1999-07-05 22:49:45 +00:00
Karl Heuer
3078f066a2 (auto-mode-alist): Add pike-mode. 1999-06-22 22:43:36 +00:00
Karl Heuer
7f99999ab4 (write-file): When buffer is not already visiting a file,
don't put buffer name in the minibuffer, just make it the default.
Also handle just directory as arg usefully in that case.
1999-06-12 03:57:37 +00:00
Kenichi Handa
1e87edf5ef (recover-file): Recover buffer-file-coding-system. 1999-05-24 02:09:27 +00:00
Dave Love
9ab1910545 [from rms]
(find-file-noselect-1): Use abbreviate-file-name when setting
buffer-file-truename.
1999-05-14 09:46:38 +00:00
Karl Heuer
b120e7136d (find-file-noselect-1): If buffer-file-name has changed
after find-file-not-found-hooks runs, recompute the truename.
And don't use FILENAME after that point.
1999-04-29 20:28:43 +00:00
Andreas Schwab
18b0f8cf6e (file-expand-wildcards): Never consider .' and ..' a
wildcard match.  Fix regexp that tests if dirpart contains
wildcard characters.
1999-01-29 11:31:33 +00:00
Richard M. Stallman
5b8ed07bb4 (find-file): If find-file-noselect returns a list,
do switch-to-buffer on each element.
(find-file-other-window): Likewise for all but the first element.
(find-file-other-frame): Same.
(find-file-noselect): When we expand a wildcard, return a list of buffers.
1999-01-24 20:12:25 +00:00
Richard M. Stallman
243ce842ce (find-file-noselect): Do wildcard processing only
if new arg WILDCARDS is non-nil.
(find-file, find-file-other-window): New arg WILDCARDS.
Default it to non-nil if interactive.
(find-file-other-frame): Likewise.
(find-file-read-only): Likewise.
(find-file-read-only-other-window): Likewise.
(find-file-read-only-other-frame): Likewise.
1999-01-24 20:10:30 +00:00
Karl Heuer
481f215b5e (auto-save-hook): Defvar this. 1999-01-12 22:20:25 +00:00
Richard M. Stallman
c9afd87f08 (auto-mode-alist): Add sql-mode. 1999-01-11 13:55:15 +00:00
Richard M. Stallman
71a3bb4b1e (save-buffers-kill-emacs): Show the list of current
processes before prompting to kill them and exit.
1999-01-06 23:58:41 +00:00
Andreas Schwab
05e076c7ea (recover-session): Preserve point when inserting
explanation.
1999-01-04 11:57:27 +00:00
Richard M. Stallman
f91fe6045d (find-file-noselect): Let /: suppress wildcard matching.
Error if wildcard matches no files.
1999-01-03 15:03:32 +00:00
Richard M. Stallman
4db2a7dec9 (file-expand-wildcards): Handle wildcards in directory name.
Be careful about whether to return a relative file name,
and if so, relative to what directory.
1998-12-26 05:14:48 +00:00
Karl Heuer
c04e38a32f (after-find-file): Message fix. 1998-12-10 02:30:03 +00:00
Richard M. Stallman
abf16d5ee9 (hack-one-local-variable): Cope with non-file buffers. 1998-11-29 15:41:38 +00:00
Karl Heuer
aa5fcebf0d (hack-local-variables): Test local-enable-local-variables.
(hack-local-variables-prop-line): Likewise.
(set-auto-mode): Don't test local-enable-local-variables here.
(enable-local-variables): Doc fix.
(local-enable-local-variables): Doc fix.
(normal-mode): Doc fix.
1998-11-07 02:01:59 +00:00
Richard M. Stallman
d1f04130e0 (revert-buffer): Doc fix. 1998-11-01 08:46:04 +00:00
Richard M. Stallman
1554c03bdd (auto-mode-alist): Recognize .rpm files.
Also .spec and .mspec files.

(revert-buffer-internal-hook): Add defvar.
1998-10-20 18:48:06 +00:00
Richard M. Stallman
5de148a204 (find-file-wildcards): New option.
(find-file-noselect): Handle wild cards, if enabled.
(file-expand-wildcards): New function.
1998-10-16 19:20:55 +00:00
Richard M. Stallman
749d2ee6dd (save-buffer): Doc fix. 1998-10-08 02:20:26 +00:00
Karl Heuer
64e6dfad6b (find-file-noselect): Switch to the correct buffer
before checking find-file-literally, and allow non-nil non-t
rawfile params.
1998-10-06 23:27:28 +00:00
Karl Heuer
4e0c86509d Comment fix. 1998-10-06 23:22:48 +00:00
Karl Heuer
a2236dc611 (auto-mode-alist): Add snmp-mode patterns. 1998-08-27 15:26:46 +00:00
Andreas Schwab
edfc7f2558 (file-name-invalid-regexp): Fix regex for ms-dos without long file names. 1998-08-24 10:21:51 +00:00
Richard M. Stallman
d6046e457f (recover-session): Add leading space on added text lines. 1998-08-12 02:58:02 +00:00
Richard M. Stallman
d5637fa549 (auto-mode-alist): Escape dots in some regexps.
(auto-mode-alist): Fix previous change in sh-script regexps.
1998-08-01 19:02:22 +00:00
Kenichi Handa
d45da3e19c (auto-mode-alist): Fix regular expression error for sh-mode. 1998-07-26 14:04:41 +00:00
Dan Nicolaescu
823a266d9a *** empty log message *** 1998-07-25 00:19:51 +00:00
Richard M. Stallman
d5fe94cca8 (basic-save-buffer-2): New function.
(basic-save-buffer-1): Use basic-save-buffer-2,
after perhaps binding coding-system-for-write.
(save-buffer-coding-system): Make it a permanent local.
1998-07-24 10:43:29 +00:00
Dan Nicolaescu
271e0f2c6a *** empty log message *** 1998-07-24 04:36:09 +00:00
Richard M. Stallman
7af59a4c18 (auto-mode-alist): Recognize shell profiles without dirname. 1998-07-23 07:23:08 +00:00
Richard M. Stallman
7c35fb48ed (auto-mode-alist): Match .emacs with no directory. 1998-07-20 21:23:28 +00:00
Eli Zaretskii
9959c16e4f (file-name-invalid-regexp): Fix the part which handles colons in file names. 1998-07-15 10:21:04 +00:00
Richard M. Stallman
e73ec04be6 (find-file-noselect-1): Use kill-local-variable on
buffer-file-coding-system, instead of setting it.
(save-buffer): Doc fix.
(basic-save-buffer): Doc fix.
1998-07-12 03:14:44 +00:00
Andreas Schwab
e48807d140 (version-control, delete-old-versions,
require-final-newline, enable-local-variables, enable-local-eval):
Use `other' widget type.
1998-06-24 09:08:57 +00:00
Dave Love
86e0d95639 (auto-mode-alist): Map .xml to sgml-mode. 1998-06-23 17:45:10 +00:00
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
Richard M. Stallman
7c24fbd234 (find-file-literally): Temporarily remove tar-mode and
archive-mode from auto-mode-alist.
1997-07-21 06:16:33 +00:00
Richard M. Stallman
24813e1335 (auto-mode-alist): Recognize .emacs in MSDOG syntax. 1997-07-19 05:39:06 +00:00
Richard M. Stallman
83c6f44650 (set-auto-mode): If -*- line specifies a mode,
then even if we don't use it because of just-from-file-name,
still let it prevent taking the mode from a file name.

(basic-save-buffer-1): Clarify error message.
(cd-absolute): Likewise.
1997-07-16 05:30:34 +00:00
Richard M. Stallman
5fc196afb0 (find-file-literally): New function. 1997-07-08 09:57:37 +00:00
Richard M. Stallman
9695aac625 (file-chase-links): When handling .., make newname absolute.
Simplify several places.
(file-relative-name): Handle directory names as well as file names.
Don't get fooled by empty directory names, etc.
1997-06-27 09:04:14 +00:00
Richard M. Stallman
ad37509224 (require-final-newline): Fix custom :type. 1997-06-20 02:59:38 +00:00
Richard M. Stallman
b36c3da622 (ctl-x-map): Delete the C-x C-q binding for toggle-read-only. 1997-06-18 20:19:32 +00:00
Richard M. Stallman
2a9fe1e256 (backup, find-file): Make `files' their parent.
(view-read-only): New option variable.  If
non-nil then buffers visiting files read-only, do it in view mode.
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Call toggle-read-only
instead of setting buffer-read-only explicitly.
(toggle-read-only, after-find-file): Handle view-read-only.
(save-some-buffers): Use second argument of view-buffer
instead of setting view-exit-action.
1997-06-18 17:24:59 +00:00
Richard M. Stallman
feaec97dd4 (file-name-non-special): Handle
file-name-completion and file-name-all-completions.
1997-06-08 03:26:07 +00:00
Richard M. Stallman
18b9dced5b (file-name-non-special): Special handling for
substitute-in-file-name operation.
1997-05-30 06:38:56 +00:00
Kenichi Handa
912192d19a (find-file): Delete the facility of handling a prefix
argument.
(find-file-other-window, find-file-read-only): Likewise.
(find-file-read-only-other-window): Likewise.
(find-file-read-only-other-frame): Likewise.
(find-alternate-file-other-window, find-alternate-file): Likewise.
(write-file, insert-file, append-to-file): Likewise.
1997-05-28 03:35:36 +00:00
Richard M. Stallman
db8c4866b4 (path-separator, parse-colon-path): Doc fixes.
(revert-without-query): Renamed from
find-file-revert-without-query.
(find-file-noselect): Use new option.
(revert-buffer): Check the option here too.
1997-05-20 05:27:50 +00:00
Richard M. Stallman
e2b307720f (backup-extract-version-start): New variable.
(find-backup-file-namem, backup-extract-version):
Rename bv-length to backup-extract-version-start.

(file-relative-name): Bind the variable fname.
1997-05-10 05:44:56 +00:00
Richard M. Stallman
f89cbd61d3 (auto-mode-alist): Shuffle a few elements, 1997-05-10 05:36:01 +00:00
Richard M. Stallman
2154059726 Use defgroup and defcustom. 1997-05-05 22:04:00 +00:00
Richard M. Stallman
8609911b97 Doc fix. 1997-05-05 17:06:10 +00:00
Richard M. Stallman
9de9b6a200 (set-auto-mode): New arg JUST-FROM-FILE-NAME.
(hack-local-variables): New arg MODE-ONLY.
(set-visited-file-name): Alter the major mode based on new file name.
(change-major-mode-with-file-name): New variable.
1997-05-05 04:38:26 +00:00
Richard M. Stallman
ffa7ab703c (recover-file): Fix error message. 1997-04-21 04:48:47 +00:00
Richard M. Stallman
c2c84cd793 (auto-mode-alist): Add .dsl and .dsssl for dsssl-mode. 1997-04-12 19:20:07 +00:00
Richard M. Stallman
2d6562a572 (file-relative-name): Expand both args before
checking for device mismatch.

(file-relative-name): Handle differing drive letters on Microsoft systems.
1997-04-11 01:47:41 +00:00
Richard M. Stallman
c3348e101b (make-auto-save-file-name): Replace both / and \
with sequences starting with %.
1997-03-29 00:32:54 +00:00
Richard M. Stallman
7b3478a5e8 (recover-session): Add `t' to switches. 1997-03-22 03:42:32 +00:00
Karl Heuer
82d0954a23 (find-file, find-file-other-window,
find-file-read-only, find-file-read-only-other-window,
find-file-read-only-other-frame, find-alternate-file-other-window,
find-alternate-file): With a prefix argument, enable users to
specify a coding system interactively.
(find-file-noselect): Describe optional arguments NOWARN and
RAWFILE in the doc-string.
(write-file, insert-file, append-to-file): Accept a prefix
argument to enable users to specify a coding system interactively.
(revert-buffer): Read an auto-saved file without any code
conversion.
1997-02-20 05:44:24 +00:00
Erik Naggum
96c188b08c (file-relative-name): Protect the match-data. 1997-02-05 01:32:44 +00:00
Richard M. Stallman
f36012a669 (set-visited-file-name): New arg ALONG-WITH-FILE. 1997-02-03 09:42:56 +00:00
Richard M. Stallman
467ff69234 (switch-to-buffer-other-frame)
(switch-to-buffer-other-window): New arg NORECORD.
1997-01-05 02:55:09 +00:00
Richard M. Stallman
a8bf610ec0 (insert-directory): Use -- as arg
so that a file name or pattern is never taken as an option.
1996-12-31 04:50:27 +00:00
Richard M. Stallman
d7fa5aa239 Change defconsts to defvars. 1996-12-16 01:33:02 +00:00
Richard M. Stallman
ebeb898f46 (find-file-revert-without-query): New variable.
(find-file-noselect): Revert certain files without query
if the file has changed and the buffer has not.
1996-12-15 20:52:40 +00:00
Karl Heuer
27ab694409 (backup-buffer): Doc fix. 1996-12-06 23:29:47 +00:00
Karl Heuer
659ebcc6fb (write-contents-hooks): Doc fix. 1996-11-17 19:41:48 +00:00
Richard M. Stallman
7e7c9c4eed (revert-buffer): Doc fix.
(wildcard-to-regexp): Don't treat [] as special.
1996-11-09 09:04:52 +00:00
Simon Marshall
1fbd6d0fa0 more auto-mode-alist modes. 1996-10-28 10:01:55 +00:00
Richard M. Stallman
5f65549e3f (set-visited-file-name): Doc fix.
(write-file): Use CONFIRM when calling set-visited-file-name.
1996-10-26 18:12:01 +00:00
Richard M. Stallman
93a2702d0e (hack-local-variables-prop-line):
Ignore case when checking for `mode'.
1996-10-13 14:00:48 +00:00
Richard M. Stallman
bfc6cac943 (auto-mode-alist): .hpp files get C++ mode. 1996-10-10 21:39:13 +00:00
Richard M. Stallman
47afc068c0 (file-name-non-special): New function.
Add it to file-name-handler-alist.
1996-10-04 05:10:54 +00:00
Richard M. Stallman
363a5030a6 (recover-session): Error if session files turned off. 1996-10-02 10:26:51 +00:00
Richard M. Stallman
6e6f5d9e7b (auto-mode-alist): Add lower-case varieties of
ChangeLog filenames, for case-insensitive MSDOS and MS-Windows.

(insert-file-contents-literally): Doc fix.
1996-09-25 22:37:27 +00:00
Richard M. Stallman
a7305f6e9f (file-locked-p): Alias to `ignore' if no file locking. 1996-09-16 09:43:42 +00:00
Richard M. Stallman
a220751d75 (find-file-existing-other-name): Default value now t. 1996-09-14 21:07:32 +00:00
Richard M. Stallman
66f4a663db (inhibit-first-line-modes-regexps): Add .tgz. 1996-09-13 21:56:53 +00:00
Richard M. Stallman
b7fa904ccb (insert-directory): If ls fails, get an error. 1996-09-01 21:38:48 +00:00
Richard M. Stallman
a8abaf83a4 (make-auto-save-file-name): Try a few directories
to get one we can write in.
1996-09-01 00:20:33 +00:00
Richard M. Stallman
73ba610ac4 (kill-some-buffers): New arg LIST says buffers to maybe kill. 1996-08-29 01:27:18 +00:00
Richard M. Stallman
5b2b26d52a (revert-buffer): Doc fix. 1996-08-20 21:22:41 +00:00
Richard M. Stallman
eba1c87adc (dabbrev-case-fold-search, dabbrev-case-replace): Set
`risky-local-variable' property, since these get eval'ed.
1996-07-22 02:13:28 +00:00
Erik Naggum
e810675add (insert-directory): Fix previous change. 1996-07-07 01:07:32 +00:00
Miles Bader
51a2264fb5 (insert-directory): When converting SWITCHES string to a list, put back
in original order.
1996-07-04 05:45:38 +00:00
Richard M. Stallman
6a6b62f802 (set-visited-file-name): New optional arg NO-QUERY. 1996-06-29 19:50:56 +00:00
Richard M. Stallman
a8f34fc083 (abbreviate-file-name): Ignore automount-dir-prefix if nil. 1996-06-28 08:28:51 +00:00
Richard M. Stallman
353941298b (auto-mode-alist): Treat .pm like .pl. 1996-06-28 08:21:49 +00:00
Richard M. Stallman
668d9a3ec9 (set-auto-mode): Run multiple mode: specs in left-to-right order. 1996-06-24 06:44:15 +00:00
Richard M. Stallman
12a8a23945 (auto-mode-alist): Add uppercase version of archive
mode file name extensions ARC, ZIP, LXH, ZOO.
1996-06-18 15:55:20 +00:00
Richard M. Stallman
a4ad4d9602 (find-alternate-file): Don't clear buffer-file-truename
and friends until after calling unlock-buffer.
1996-06-12 14:43:51 +00:00
Richard M. Stallman
2837b9df2e (hack-local-variables-prop-line): Bind enable-local-eval. 1996-06-09 19:11:53 +00:00
Richard M. Stallman
de88363f85 (buffer-file-numbers-unique): New variable;
initialize to nil for windows-nt.
(find-buffer-visiting): Skip search for buffer based
on buffer-file-number if these are not unique.
1996-06-04 16:17:22 +00:00
Karl Heuer
28ee503c5a (make-backup-file-name): Check msdos-long-file-names.
(basic-save-buffer-1, make-auto-save-file-name): Likewise.
1996-05-21 17:21:25 +00:00
Richard M. Stallman
0254679b3a (auto-mode-alist): .F gets fortran mode. 1996-04-21 02:01:31 +00:00
Richard M. Stallman
6a6a0b8bf3 (after-find-file): Mention file name in "auto save is newer" message. 1996-04-19 09:32:55 +00:00
Richard M. Stallman
e049945bc0 (interpreter-mode-alist): Recognize perl5. 1996-04-12 18:42:22 +00:00
Richard M. Stallman
95b5322579 (auto-mode-alist): Handle `.java'. 1996-04-11 14:45:09 +00:00
Richard M. Stallman
cf7e94a0df (file-newest-backup): Return the newest backup for the
exact file name specified, not the newest backup of all files
whose names start with that substring.
1996-04-03 05:55:12 +00:00
Richard M. Stallman
11e314fa73 (set-visited-file-name): Don't call find-buffer-visiting if filename is nil. 1996-03-26 23:57:49 +00:00
Richard M. Stallman
9596811a3d Comment change. 1996-03-02 06:37:35 +00:00
Richard M. Stallman
7b89d38e9a (set-visited-file-name): Query if there's already another
buffer visiting this file.
1996-03-01 20:29:32 +00:00
Karl Heuer
fa66096961 (find-file-noselect): If after-find-file switches buffers,
return the buffer that it leaves current.
1996-02-21 21:32:35 +00:00
Karl Heuer
dfeadd842f (interpreter-mode-alist): Add mawk.
(set-auto-mode): Allow either space or tab in #! line.
1996-02-19 08:13:10 +00:00
Karl Heuer
5da565f812 (auto-mode-alist): Recognize GNUmakefile. 1996-02-16 00:55:11 +00:00
Karl Heuer
c87c4cda2a (auto-mode-alist): Recognize .itcl and .itk suffixes. 1996-02-16 00:50:22 +00:00
Richard M. Stallman
7458cc352f (auto-mode-alist): .ksh suffix means sh-mode.
(write-file): Interactively, prefix arg means don't confirm.
1996-02-02 18:47:34 +00:00
Richard M. Stallman
5a8a160eb6 (list-directory): Set default-directory better if the
argument is a directory's file name.
1996-01-28 19:27:44 +00:00
Karl Heuer
ba369f54e0 (find-file-noselect): Fix error message style. 1996-01-24 23:25:44 +00:00
Karl Heuer
e1ec01c2f1 (auto-mode-alist): Recognize ".exp" suffix. 1996-01-19 22:50:21 +00:00
Karl Heuer
628b603552 (auto-mode-alist): Use "\\`" instead of "^". 1996-01-17 19:14:20 +00:00
Richard M. Stallman
693f800dd6 (auto-mode-alist): Add sgml-mode and html-mode.
(write-contents-hooks): Doc fix.
1996-01-15 05:08:57 +00:00
Karl Heuer
f82966e4c0 (write-contents-hooks): Call make-variable-buffer-local.
Doc fix.
(local-write-file-hooks, write-file-hooks): Doc fixes.
1996-01-09 23:17:37 +00:00
Richard M. Stallman
d1194c856c (interpreter-mode-alist): Add most shells, with sh-mode.
Add tail, more, less, pg with text-mode.
(auto-mode-alist): Recognize extensions that indicate
shell scripts, as well as common init file names.
1996-01-05 02:34:37 +00:00
Karl Heuer
0225ae5eef (make-directory): Doc fix. 1996-01-04 23:34:55 +00:00
Richard M. Stallman
567c1ca939 (abbrev-file-name): Drive letter can go beyond `Z' under MS-DOS/Novell.
(auto-mode-alist): Support txt and txi like text and texi.
(backup-buffer): Use convert-standard-filename.
(basic-save-buffer-1): Make the name of the temporary file (where
precious files are saved) conform to MS-DOS 8+3 constraints.

(convert-standard-filename): New function.
1996-01-01 22:51:51 +00:00
Richard M. Stallman
4503dacb37 (make-auto-save-file-name): Make name always end in #,
i.e. overwrite third char in extension if required.
1995-12-29 03:36:35 +00:00
Richard M. Stallman
6f4983e6e6 (wildcard-to-regexp): New function.
(recover-session): Bind ls-lisp-support-shell-wildcards to t.
1995-12-28 19:24:16 +00:00
Richard M. Stallman
9a30563f92 (revert-buffer): New arg preserve-modes.
(after-find-file): New arg nomodes.
1995-12-25 21:05:31 +00:00
Roland McGrath
76d5492ba7 (save-some-buffers): Don't give message if we queried. 1995-12-24 09:25:19 +00:00