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
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