Commit graph

763 commits

Author SHA1 Message Date
Eli Zaretskii
c7c4bc11b1 (locate-file): Doc fix. 2005-05-06 13:08:15 +00:00
Luc Teirlinck
0776da52f9 (require-final-newline): Make Custom tags consistent
with mode-require-final-newline.
(mode-require-final-newline): Doc fix.
2005-05-01 12:56:42 +00:00
Richard M. Stallman
689accb820 (backup-buffer-copy): Use copy-file instead
of write-region, and put back the 'excl.
2005-04-30 20:14:32 +00:00
Richard M. Stallman
93d1963d73 (mode-require-final-newline): Fix previous change.
(require-final-newline): Fix type label.
2005-04-24 21:29:15 +00:00
Luc Teirlinck
576ceeb302 (mode-require-final-newline): Revert accidental change. 2005-04-24 14:50:42 +00:00
Luc Teirlinck
993746115b (mode-require-final-newline): Minor doc fix. 2005-04-24 14:45:08 +00:00
Eli Zaretskii
1441edfef9 (mode-require-final-newline): Doc fix.
(backup-buffer-copy): Fix last change.
2005-04-24 12:07:15 +00:00
Richard M. Stallman
44dce0fb43 (read-directory-name): Always pass non-nil
DEFAULT-FILENAME arg to read-file-name.
(backup-buffer-copy, basic-save-buffer-2): Take care against
writing thru an unexpected existing symlink.
(revert-buffer): In indirect buffer, revert the base buffer.
(magic-mode-alist): Doc fix.
(buffer-stale-function): Doc fix.
(minibuffer-with-setup-hook): Avoid warning.
(mode-require-final-newline): Doc and custom fix.
2005-04-23 16:53:21 +00:00
Andreas Schwab
a35d9075f9 (auto-mode-alist): Handle /etc/sysconfig/*,
/etc/permissions.d/* and /etc/aliases.d/*.
2005-04-16 09:00:14 +00:00
Stefan Monnier
f587e30b7f (set-auto-mode-1): Use line-end-position. 2005-04-10 20:50:48 +00:00
Luc Teirlinck
5e9961be68 (mode-require-final-newline): Make Custom correctly report a nil value
and allow to set it to nil via Custom.
Doc fix.
2005-04-01 04:48:39 +00:00
Stefan Monnier
a42e7db0c4 (minibuffer-with-setup-hook): New macro.
(find-file-read-args): Use it to avoid let-binding
minibuffer-with-setup-hook (which breaks turning on/off
file-name-shadow-mode while in the prompt).
2005-03-28 19:58:58 +00:00
Eli Zaretskii
e084f8c376 (auto-mode-alist): Add .xpi files. 2005-03-26 16:47:13 +00:00
Thien-Thi Nguyen
126c9dda20 (save-some-buffers): Doc fix. 2005-03-25 13:33:31 +00:00
Juri Linkov
0ee6e7b7c2 (auto-mode-alist): Add comment. Optimize jar/ear/war. 2005-03-19 20:00:36 +00:00
Eli Zaretskii
dc2ab26eb7 (save-buffer): Fix last change. 2005-03-19 15:11:07 +00:00
Eli Zaretskii
9dce96b55a (save-buffer): Doc fix. 2005-03-19 14:18:22 +00:00
Eli Zaretskii
79d2d2796a (backup-buffer): If the file's directory is not writable,
use copy instead of move to backup the file.
2005-03-19 13:30:10 +00:00
David Ponce
5a146628e5 (hack-local-variables): Do a case-insensitive search
for End.
2005-03-18 08:07:55 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Richard M. Stallman
0c2f6ddaa7 (normal-backup-enable-predicate): Return nil for files
in /tmp, regardless of temporary-file-directory.
2005-01-29 17:28:00 +00:00
Luc Teirlinck
9bb99df691 (insert-directory): Take care of empty directory, listed without -a switch. 2005-01-23 20:44:12 +00:00
Andreas Schwab
11bd2f9c9b (insert-directory): Only look for error lines in
inserted text.  Don't move too far after processing --dired
markers.
2005-01-04 15:25:43 +00:00
Richard M. Stallman
969be0336e (basic-save-buffer-1): Fix previous change. 2005-01-03 02:42:25 +00:00
Stefan Monnier
50292b6e31 (hack-local-variables): Fix last change. 2005-01-02 18:08:12 +00:00
Stefan Monnier
e5cb26a84c (hack-local-variables): Cleanup prefix/suffix matching. 2005-01-02 01:20:33 +00:00
Richard M. Stallman
f4206092a2 (require-final-newline): Allow visit' and visit-save'.
(mode-require-final-newline): New option.
(after-find-file): Handle require-final-newline with new values.
(basic-save-buffer): Handle new values of require-final-newline.
2004-12-31 14:48:12 +00:00
Kenichi Handa
47d14b48b3 (revert-buffer): Change
explicit-buffer-file-coding-system to
buffer-file-coding-system-explicit.
(basic-save-buffer-1): Likewise.
2004-12-30 23:56:23 +00:00
Kenichi Handa
004f48da21 (basic-save-buffer-1): Set
explicit-buffer-file-coding-system to last-coding-system-used.
(revert-buffer): Pay attention to
explicit-buffer-file-coding-system (not buffer-file-coding-system)
on bind coding-system-for-read.
2004-12-30 12:42:11 +00:00
Richard M. Stallman
c4cb00d05e (hack-local-variables): If there is no PREFIX, set it to "^".
Redundant variable PREFIXLEN removed.
2004-12-30 01:49:38 +00:00
Richard M. Stallman
fead94d6b8 Fix typo. 2004-12-27 17:29:34 +00:00
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