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

782 Commits

Author SHA1 Message Date
Richard M. Stallman
a1b0c2a764 (buffer-save-without-query): New var (buffer-local).
(save-some-buffers): Save those buffers first, w/o asking.

(insert-directory-ls-version): New variable.
(insert-directory): When ls returns an error, test the version
number to decide what the return code means.
With --dired output format, detect and distinguish lines
that are really error messages.
(insert-directory-adj-pos): New function.
2004-12-27 17:18:28 +00:00
Juri Linkov
a9d6a617af (find-file-other-window, find-file-other-frame):
Add the first buffer to the returned value to return the complete
list of all visited buffers.
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Use nil for `mustmatch' arg of
`find-file-read-args'.  Signal an error about non-existent file
only if file name doesn't contain wildcards.  Toggle read-only in
all visited buffers.
(find-alternate-file, find-alternate-file-other-window):
Add optional arg `wildcards'.  Doc fix.  Set `wildcards' to t when
called interactively.  Pass arg `wildcards' to other functions.
(find-file-noselect): Doc fix.
2004-12-13 05:08:00 +00:00
Thien-Thi Nguyen
00daa381bc (auto-mode-alist): Map .com to DCL mode. 2004-12-10 16:40:44 +00:00
Daniel Pfeiffer
9607552590 acpid files under /etc 2004-12-01 09:47:18 +00:00
Daniel Pfeiffer
08adf84e8b (auto-mode-alist): Add conf-ppd-mode and inittab. 2004-11-30 23:31:49 +00:00
Luc Teirlinck
a576d8e299 (convert-standard-filename): Doc fix. 2004-11-14 23:24:14 +00:00
Daniel Pfeiffer
b14f1885d1 (auto-mode-alist): handle .gtkrc, and under /etc passwd, group, shadow, default/* and pam.d/*. 2004-11-14 18:11:57 +00:00
Juri Linkov
811cab8651 (magic-mode-alist): Use optimization for SGML mode too.
(set-auto-mode): Doc fix.  Remove unused variable `xml'.
2004-11-11 21:42:32 +00:00
Stefan Monnier
32a0479a9d (magic-mode-alist): Reduce backtracking in the HTML regexp. 2004-11-11 04:52:27 +00:00
Daniel Pfeiffer
55e19d0876 Also do /etc/magic, hosts.allow, hosts.deny etc. 2004-11-10 09:53:24 +00:00
Daniel Pfeiffer
80174d35b9 (auto-mode-alist, magic-mode-alist): Use conf-mode 2004-11-10 00:39:54 +00:00
Daniel Pfeiffer
df4d061346 (set-auto-mode): Don't get error after setting -*-mode-*-. 2004-11-04 20:25:08 +00:00
Richard M. Stallman
89bf74f828 Comment change. 2004-11-04 10:04:16 +00:00
Daniel Pfeiffer
4ac1d37a80 (xml-based-modes): Delete var.
(magic-mode-alist): New var.
(set-auto-mode): Use it.
2004-11-03 21:44:49 +00:00
Jan Djärv
46bfc73bed * files.el (find-file-existing): New function.
* menu-bar.el (menu-bar-files-menu): Make "Open File..." call
find-file-existing.  Add "New File..." that calls find-file.

* dired.el (dired-read-dir-and-switches): Call read-driectory-name
instead of read-file-name.
2004-11-02 07:57:53 +00:00
Kim F. Storm
3467488ee7 (set-auto-mode-0): Don't rely on dynamic binding of
keep-mode-if-same variable.  Add it as optional arg instead.
(set-auto-mode): Call set-auto-mode-0 with keep-mode-if-same.
2004-11-01 23:16:42 +00:00
John Paul Wallington
bb8eaf6705 (large-file-warning-threshold): Add :version keyword.
(kill-some-buffers): Doc fix.
2004-11-01 07:56:17 +00:00
John Paul Wallington
8a9cdb8db4 (set-auto-mode): Call `throw' correctly. 2004-10-28 10:29:50 +00:00
Daniel Pfeiffer
521cf174c3 (set-auto-mode-0): New function.
(set-auto-mode): Use it to handle aliased modes and to be consistent between C-x C-f and C-x C-w.
2004-10-28 06:09:55 +00:00
Daniel Pfeiffer
9e6f54198a Tack language suffix onto html, and make C-x C-w find the mode in the same way as C-x C-f. 2004-10-27 21:44:35 +00:00
Daniel Pfeiffer
396b39cf4f Set xml-mode also if no mode found from file name. 2004-10-27 10:27:46 +00:00
Daniel Pfeiffer
bbc6751622 (auto-mode-alist): Add pod, js, xbm and xpm and group trivial variants to shorten the list.
(xml-based-modes): New var.
(set-auto-mode): Give interpreter-mode-alist or <?xml or <!DOCTYPE declaration higher priority than auto-mode-alist.
2004-10-26 21:44:20 +00:00
Stefan Monnier
52e281e87a (insert-directory): Obey --dired even with symlinks. 2004-09-25 15:29:35 +00:00
Richard M. Stallman
e0b2a2d9af (enable-local-eval): Doc fix.
(hack-local-variables): Copy the variables list
to another buffer, strip prefixes and suffixes there, then read.

(enable-local-eval): Doc fix.
(ignored-local-variables): Initialize to nil.
(risky-local-variable-p): Don't check ignored-local-variables here.
(hack-one-local-variable): Ignore var if in ignored-local-variables.
2004-09-20 16:12:57 +00:00
Simon Josefsson
0904599e09 files.el (auto-mode-alist): Map .soa and .zone to dns-mode.
textmodes/dns-mode.el: Add.
2004-09-14 11:09:35 +00:00
Luc Teirlinck
839857c7bd (switch-to-buffer-other-window): Doc fix. 2004-07-11 02:18:15 +00:00
Kai Großjohann
3f78877397 * net/ange-ftp.el (ange-ftp-file-remote-p): New return value,
according to new documentation of `file-remote-p'.

* files.el (file-remote-p): Fix doc to say that return value is
identification of remote system, if not nil.
(file-relative-name): Use new return value of `file-remote-p'.
2004-06-26 14:41:13 +00:00
Lars Hansen
7dd11b370c (write-contents-functions): Doc fix. 2004-06-23 14:38:19 +00:00
Juanma Barranquero
c5994cfa0d (parse-colon-path, cd): Mention in docstring that the path separator is
colon in GNU-like systems.
2004-06-16 23:56:46 +00:00
Luc Teirlinck
c90dcdd560 (buffer-stale-function): Add hyperlink to emacs-xtra manual to docstring. 2004-06-16 01:34:15 +00:00
Luc Teirlinck
25f6295eb3 (before-save-hook): Add `time-stamp' to the options. 2004-06-13 21:32:14 +00:00
Juanma Barranquero
ae135939c9 (parse-colon-path, cd): Doc fixes (refer to `path-separator', not colon). 2004-06-11 01:02:51 +00:00
Juanma Barranquero
915b0bf0ab Rework docstring (wording by Eli Zaretskii and Kai Grossjohann). 2004-05-30 21:21:42 +00:00
Richard M. Stallman
91174d63b4 (find-file): Doc fix. 2004-05-30 13:34:19 +00:00
Michael Albinus
04621aaa0c (file-remote-p): Apply file name handler for operation
`file-remote-p'.  It isn' a property any longer.
(file-relative-name): `fh' and `fd' get the required value via
`find-file-name-handler' already.
2004-05-29 22:42:06 +00:00
Luc Teirlinck
0a11c70bb2 (find-file-noselect-1): Do not bind `inhibit-read-only' to t during
execution of `find-file-not-found-functions'.
2004-05-29 01:54:11 +00:00
Michael Albinus
ae3b29834c * files.el (file-name-non-special): There are more operations
which need handling: `find-backup-file-name',
`insert-file-contents', `verify-visited-file-modtime',
`write-region'.  Rename t value of method to `add'.  Add new
methods `quote' and `unquote-then-quote' to file-arg-indices.
2004-05-27 20:23:31 +00:00
Luc Teirlinck
74dca654a3 (find-file-noselect-1): Fix bug introduced by Revision 1.694.
As a side effect, `inhibit-read-only' is again, by default, t during
execution of `find-file-not-found-functions'.
(insert-directory): Check that lines were really inserted by
the --dired switch, before erasing them.
2004-05-25 18:51:07 +00:00
Richard M. Stallman
6750c85288 (file-name-non-special): Allow t in file-arg-indices
to mean requote the return value.  Use `identity' as an element
rather than as the whole value.
2004-05-22 07:40:41 +00:00
Luc Teirlinck
4edcfd1772 (find-file-noselect-1): Limit the scope of the
`inhibit-read-only' binding.  Make sure that `inhibit-read-only'
is, by default, nil during the execution of
`find-file-not-found-functions' and `find-file-hook'.
2004-05-20 23:32:27 +00:00
Stefan Monnier
b1e5937ca1 (auto-save-file-name-transforms): Make sure ange-ftp temp
files files don't contain an accidental additional /.
2004-05-19 00:30:43 +00:00
Juanma Barranquero
b9963e32a2 (file-truename): Don't mention COUNTER and PREV-DIRS arguments in the
docstring, they're used only in recursive calls.
2004-05-13 19:51:57 +00:00
Juanma Barranquero
814af837a2 (set-visited-file-name, file-expand-wildcards): Fix docstring. 2004-05-11 17:32:44 +00:00
Juri Linkov
bdd9ab6e68 (confirm-kill-emacs): Change group from top-level emacs' to convenience'. 2004-05-01 03:51:49 +00:00
Richard M. Stallman
f2440e42fa (locate-file-completion): Handle nil in path-and-suffixes.
(file-truename): Expand all ~ constructs directly.
(insert-directory): Delete any error msg output by the
`insert-directory-program'.
2004-04-17 19:58:19 +00:00
Luc Teirlinck
60ce7e3e04 (insert-directory): Minor whitespace fix in docstring. 2004-04-17 01:46:53 +00:00
Luc Teirlinck
8b0b693286 (buffer-stale-function): Doc change. 2004-04-01 01:20:20 +00:00
Luc Teirlinck
4f8453aeb3 (buffer-stale-function): Minor doc fix. 2004-03-27 04:05:23 +00:00
Luc Teirlinck
0e3dc638b7 (buffer-stale-function): Doc fix. 2004-03-27 03:54:41 +00:00
Luc Teirlinck
b0dc9757a5 (buffer-stale-function): Moved here from autorevert.el. 2004-03-27 01:08:15 +00:00
Stefan Monnier
3f7d6528a2 (file-relative-name): Fix last change. 2004-03-26 16:21:03 +00:00
Stefan Monnier
7c64272b8c (file-relative-name): Use compare-strings. 2004-03-26 15:04:35 +00:00
Luc Teirlinck
8f8607bebf (insert-directory): Fix bug if SWITCHES is a list. 2004-03-21 04:40:38 +00:00
Richard M. Stallman
cf44b9b797 (switch-to-buffer-other-window): Bind
same-window-buffer-names and same-window-regexps to nil.
(switch-to-buffer-other-frame): Likewise.
2004-03-04 16:49:23 +00:00
John Paul Wallington
21575d922f (auto-mode-alist): Fix .scm, .stk, .ss, .sch entry. 2004-02-04 08:21:48 +00:00
Luc Teirlinck
25802eac0d (read-directory-name): Adapt the docstring to recent change in Fread_file_name. 2004-01-31 04:38:32 +00:00
Stefan Monnier
074eb6acbe Docstring fix. 2004-01-14 14:20:45 +00:00
Luc Teirlinck
0eb0202fe2 (write-file-functions, write-contents-functions): Clarify docstrings. 2004-01-07 20:51:14 +00:00
Simon Josefsson
3c3b81d190 (before-save-hook): Add.
(basic-save-buffer): Use before-save-hook.
2004-01-05 18:17:41 +00:00
Eli Zaretskii
1550204223 * progmodes/idlwave.el (idlwave-make-tags):
* textmodes/flyspell.el (flyspell-large-region):.
* progmodes/make-mode.el (makefile-query-by-make-minus-q):
* emulation/viper-util.el (viper-glob-unix-files):
* emacs-lisp/shadow.el (shadow-same-file-or-nonexistent):
* man.el (Man-init-defvars):
* jka-compr.el (jka-compr-call-process):
* files.el (get-free-disk-space,insert-directory):
* ediff-ptch.el (ediff-test-patch-utility):
* ediff-diff.el (ediff-test-utility):
* dired-aux.el (dired-check-process):
* mail/sendmail.el (sendmail-send-it): Don't use = or zerop to
test the return value of call-process, because it can be a string.
2004-01-03 12:12:01 +00:00
Richard M. Stallman
147fbf703d (backup-buffer-copy): If MODES is nil, don't set modes. 2003-12-29 19:14:03 +00:00
Eli Zaretskii
243a3ae080 (kill-some-buffers): Doc fix. 2003-12-29 14:04:31 +00:00
Luc Teirlinck
40ebe9bdd7 (risky-local-variable-p): Make second argument optional. 2003-11-05 04:06:27 +00:00
Dave Love
564af25832 (find-file-hook): Customize.
(auto-mode-alist): Add .stk, .ss, .sch, .orig.
2003-10-06 16:29:50 +00:00
Lute Kamstra
cfdd394e98 Fix typo. 2003-10-02 09:44:01 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Glenn Morris
783bf21001 (file-newest-backup): Use `expand-file-name'. 2003-08-24 15:19:42 +00:00
Markus Rost
b1f1ceb8aa (set-visited-file-name): Use truename for buffer-file-name. 2003-07-27 19:54:09 +00:00
Martin Stjernholm
f209c999c0 (auto-mode-alist, interpreter-mode-alist): Added comments about where
the CC Mode mode entries have gone.
2003-07-09 20:28:23 +00:00
Martin Stjernholm
3aae776cfe (auto-mode-alist, interpreter-mode-alist): Removed entries to CC Mode
modes to avoid duplicates; they are now added with autoload directives
in cc-mode.el.
2003-07-05 20:02:18 +00:00
Juanma Barranquero
259be4e69d (recover-session-finish): Don't give up when there are two consecutive empty
lines in the auto-save-list file.
2003-06-16 21:24:07 +00:00
Juanma Barranquero
e09f3bff95 (after-find-file): Fix arguments of call to `sit-for'. 2003-06-03 23:23:06 +00:00
Richard M. Stallman
0770343057 (after-find-file): Simplify msg if nonexistent directory.
(make-directory): Doc fix.
2003-06-03 11:08:25 +00:00
John Paul Wallington
5d648479ea (large-file-warning-threshold): Add type, groups. 2003-05-31 07:59:33 +00:00
Kenichi Handa
77619f8e69 (recover-file): Bind coding-system-for-read to
auto-save-coding.
2003-05-31 02:00:26 +00:00
Andreas Schwab
0bded0655a (insert-directory): Preserve CR in a file name. 2003-05-24 20:16:33 +00:00
Stefan Monnier
67b6fd1cf0 (file-relative-name): Remove dead code.
Make sure \n in a filename does not confuse us.
2003-05-13 18:39:39 +00:00
Juanma Barranquero
cdec2ad721 (insert-file-contents-literally): Allow it to be called within a magic file name
handler.
2003-05-07 21:58:24 +00:00
Kenichi Handa
e9cc41c898 (revert-buffer): Comment fixed. 2003-05-06 05:08:57 +00:00
Kai Großjohann
c8df97026c (file-relative-name): Recognize "c:/foo" as absolute
file name.  Tiny change from David PONCE <david.ponce@wanadoo.fr>.
2003-04-25 14:14:31 +00:00
Richard M. Stallman
4c91443d07 (view-read-only): Doc fix. 2003-04-24 01:58:49 +00:00
Stefan Monnier
cb211eb2f6 (view-read-only): Move from view.el to files.el. 2003-04-18 13:53:18 +00:00
Stefan Monnier
818286f457 (view-read-only): Don't declare a second time.
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Check that file does exist.
(large-file-warning-threshold): New custom.
(find-file-noselect): Use it.
(report-errors): New macro.
(normal-mode): Use it.
(toggle-read-only): Really toggle, even if view-mode is on.
(parse-colon-path): Remove unused `cd-prefix' var.
(make-backup-file-name-1): Remove unused `failed' var.
(basic-save-buffer): Remove unused `tempsetmodes' var.
(basic-save-buffer-2): Remove unused `temp' var.
(insert-directory): Remove unused `available' var.
2003-04-17 21:15:04 +00:00
Stefan Monnier
4e16371510 *** empty log message *** 2003-04-14 20:48:44 +00:00
Richard M. Stallman
92464ae63f (file-chase-links): Fix previous change. 2003-04-09 19:06:19 +00:00
Richard M. Stallman
302fcc98cc (file-chase-links): New arg LIMIT.
After that many iterations, just return what we've got.
2003-04-09 01:34:38 +00:00
Richard M. Stallman
a0e74e7261 (hack-local-variables-prop-line): New arg MODE-ONLY.
(hack-local-variables): When MODE-ONLY is set, pass it along to
hack-local-variables-prop-line.
2003-04-03 23:00:22 +00:00
Kai Großjohann
493c98af4a (file-relative-name): Remove superfluous `and'.
Clarify docstring.  From Lars Hansen.
2003-03-31 16:05:50 +00:00
Kai Großjohann
753ad98890 (file-relative-name): If FILENAME and DIRECTORY are on
different drives (on DOS/Windows) or use different handlers, do
like `expand-file-name' on FILENAME and return an absolute name.
From Lars Hansen <larsh@math.ku.dk>.
2003-03-29 15:31:07 +00:00
Kenichi Handa
9bdbd98e40 (recode-file-name): New function. 2003-03-26 04:42:29 +00:00
John Paul Wallington
194600a8fa * files.el (recover-session): Error if there are no previous
sessions to recover.

* subr.el (posn-col-row): Simplify.

* arc-mode.el (archive-subtype, archive-file-list-start)
(archive-file-list-end, archive-proper-file-start)
(archive-read-only, archive-local-name, archive-mode-map)
(archive-file-name-indent, archive-remote)
(archive-alternate-display, archive-superior-buffer)
(archive-subfile-mode): Doc fixes.
2003-03-14 22:38:46 +00:00
Kenichi Handa
b6647390d9 (insert-directory): Decode by what specified. 2003-03-12 08:02:32 +00:00
Jason Rumney
3f5c8d98d2 (auto-mode-alist): Add .xsl for sgml-mode. 2003-03-11 22:17:21 +00:00
Richard M. Stallman
e3bfcda9ac (revert-buffer): Different error message for reverting a nonexistent file. 2003-02-23 15:04:11 +00:00
Kai Großjohann
5baabf7b78 (abbreviate-file-name): Shorten docstring: variables
are now hyperlinks and `C-h v' need not be mentioned explicitly.
2003-02-22 20:27:51 +00:00
Kai Großjohann
b69a0de98a (abbreviate-file-name): Document removal of
automounter prefixes.  Reported by Lars Hansen.
2003-02-21 16:33:24 +00:00
Kenichi Handa
7702ccc529 (insert-directory): Add workaround for the case that we
can't trust ls's output as to byte positions of filenames.
2003-02-17 06:18:58 +00:00
Markus Rost
37c58ca655 (find-alternate-file): Undo last change. 2003-02-13 19:38:19 +00:00
Juanma Barranquero
5b373bd3f7 (file-truename): Revert change from 2002-11-27. 2003-02-12 14:14:15 +00:00
Juanma Barranquero
c45bc75309 (find-alternate-file): Check whether `dired-directory' is bound. 2003-02-12 09:26:17 +00:00