Stefan Monnier
14fd09e56e
(find-file-confirm-inexistent-file): New var.
...
(find-file, find-file-other-window, find-file-other-frame)
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Use it.
2007-07-01 01:57:31 +00:00
Chong Yidong
406568498c
(auto-mode-alist): Separate "ChangeLog.1" and "ChangeLog.a" entries,
...
giving the latter lower priority.
2007-06-05 15:46:43 +00:00
Sam Steingold
a151f82c43
New command kill-matching-buffers kills buffers whose name matches a regexp.
2007-06-03 18:51:42 +00:00
Miles Bader
274cb4e46d
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 24)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-767
2007-05-24 06:25:50 +00:00
Richard M. Stallman
c022c4c47e
(set-auto-mode): Doc fix.
2007-05-22 11:42:31 +00:00
Glenn Morris
ebbcece31c
(auto-mode-alist): Open `.asd' files in lisp-mode.
...
Suggested by twb@cyber.com.au .
2007-05-22 06:24:53 +00:00
Chong Yidong
1a5bfb0ed7
(magic-mode-alist): Remove image-type-auto-detected-p.
...
(magic-fallback-mode-alist): Add image-type-auto-detected-p.
2007-05-21 16:43:27 +00:00
Dan Nicolaescu
8a1389c7ef
(auto-mode-alist): Change the regexp so that
...
ChangeLog.unicode and ChangeLog.multi-tty use change-log-mode.
2007-05-19 23:44:44 +00:00
Stefan Monnier
c11781dedc
(magic-mode-alist, magic-fallback-mode-alist):
...
Move the *ml, Postscript, and XmCD entries to the fallback part.
2007-05-16 16:13:12 +00:00
Stefan Monnier
92228a10a2
(magic-fallback-mode-alist): Rename from file-start-mode-alist.
2007-05-16 16:07:15 +00:00
Juanma Barranquero
756c496fd0
(mode-require-final-newline, require-final-newline, enable-local-variables,
...
enable-local-eval): Doc fixes.
2007-05-14 10:28:06 +00:00
Richard M. Stallman
1477487565
(file-start-mode-alist): New variable.
...
(magic-mode-regexp-match-limit): Doc fix.
(set-auto-mode): Handle file-start-mode-alist.
A little cleanup of structure.
2007-05-10 14:48:46 +00:00
Glenn Morris
815fde3466
(magic-mode-alist): `<!DOCTYPE HTML' in html-mode.
2007-04-23 07:17:08 +00:00
Glenn Morris
e7d313a0ad
(magic-mode-alist): Allow for carriage-returns in sgml-mode entries.
2007-04-23 01:23:12 +00:00
Glenn Morris
efaa82ff8d
(magic-mode-alist): Allow for carriage-returns in html-mode entry.
2007-04-23 01:21:11 +00:00
Chong Yidong
4b025f4758
Revert 2007-03-25 change.
2007-04-13 15:09:37 +00:00
Chong Yidong
0c8e847f89
Don't mark default-directory as a safe local var.
2007-03-25 17:54:35 +00:00
David Kastrup
12333e2ba5
(magic-mode-alist): Require literal "%!PS" string for
...
magic postscript file detection.
2007-03-20 18:36:15 +00:00
Martin Rudalics
8400146f67
(basic-save-buffer): Do not set visited filename when
...
the corresponding directory does not exist or the specified
filename is that of an existing directory.
2007-03-20 09:37:57 +00:00
Chong Yidong
c412f81ab8
Revert 2006-12-08 change by Kevin Rodgers due to lack of legal papers.
2007-03-19 18:29:56 +00:00
Richard M. Stallman
87c6026097
(default-directory): Mark safe.
...
(basic-save-buffer-2): Put proper dir name in error message.
2007-03-19 05:40:20 +00:00
Richard M. Stallman
2c5b1db7f5
(find-file-noselect): No error if file no longer exists.
...
Display a message and avoid other questions.
2007-03-05 18:46:36 +00:00
Chong Yidong
0c7c413c04
(set-auto-mode-0): Use `indirect-function'.
...
(hack-one-local-variable): Don't reapply current major mode.
2007-03-01 17:06:40 +00:00
Andreas Schwab
f215a02f44
(hack-one-local-variable-eval-safep): Correct handling
...
of edebug-form-spec property value. Reported by Johan Bockgård
<bojohan+mail@dd.chalmers.se>.
2007-02-25 09:24:29 +00:00
Juanma Barranquero
96e777e169
(change-major-mode-with-file-name): Fix typo in docstring.
2007-02-11 02:28:57 +00:00
Chong Yidong
a3f83992c5
(magic-mode-alist): Call image-mode instead of image-mode-maybe for
...
autodetected images.
2007-02-09 16:50:00 +00:00
Jason Rumney
e8a84e5ba2
(magic-mode-alist): Use image-mode-maybe rather than
...
image-mode.
2007-01-31 12:37:29 +00:00
Michael Albinus
06531fc3fc
* files.el (get-free-disk-space): Return nil for remote
...
directories.
* net/ange-ftp.el (ange-ftp-ls): In case of wildcards, use "ls"
instead of "dir".
2007-01-30 20:23:38 +00:00
Chong Yidong
5340648dac
(hack-local-variables-confirm): Don't keep trying to read an event
...
from an empty kbd macro.
2007-01-27 19:27:53 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Chong Yidong
38fde45ded
(find-alternate-file): Revert query message to Emacs 21 version.
2007-01-20 19:00:10 +00:00
Eli Zaretskii
fe4e58ec6f
(abbreviate-file-name): Doc fix.
2007-01-06 21:51:04 +00:00
Richard M. Stallman
b98a8e06e6
(find-file-noselect-1, set-visited-file-name):
...
Allow backup-enable-predicate to be nil.
2007-01-04 22:14:32 +00:00
Juanma Barranquero
93e7eeb4d8
(version-control): Doc fix.
2007-01-02 01:26:20 +00:00
Kim F. Storm
bb178aaa96
(auto-mode-case-fold): Doc fix.
2006-12-31 00:34:49 +00:00
Kim F. Storm
94495713bd
(auto-mode-case-fold): New defcustom.
...
(set-auto-mode): If non-nil, perform second case-sensitive pass
through auto-mode-alist if first pass failed.
2006-12-31 00:29:49 +00:00
Richard M. Stallman
6ba7756e5f
(backup-buffer): Show entire backup file name in message.
...
(make-backup-file-name-1): Precompute abs name
but don't lose the relative name.
2006-12-30 06:28:57 +00:00
Juanma Barranquero
305018c684
(magic-mode-alist): Detect image files with `image-type-auto-detected-p'
...
instead of `image-type-from-buffer'.
2006-12-30 01:53:11 +00:00
Kim F. Storm
10ffa2a1ce
(magic-mode-alist): Allow matching file type by
...
calling a function at bob. Check for image types by calling
image-type-from-buffer. Suggested by Juanma Barranquero.
(set-auto-mode): Do it.
2006-12-19 09:04:30 +00:00
Richard M. Stallman
eb0455abe8
(magic-mode-alist): Mark as risky.
...
(make-backup-file-name-1): Expand backup-directory explicitly.
2006-12-17 18:03:26 +00:00
Richard M. Stallman
f368450536
Whitespace change.
2006-12-11 04:40:41 +00:00
Eli Zaretskii
1dd46c2862
(insert-file-1): Compare file size to large-file-warning-threshold and request
...
confirmation when warranted.
2006-12-08 18:05:12 +00:00
Richard M. Stallman
b2d239c1ba
(revert-buffer): Special error message if file is now not readable.
2006-11-28 02:20:32 +00:00
Juanma Barranquero
674b7bae63
(set-visited-file-name): Use format', not
message', in `y-or-n-p' call.
2006-11-13 10:24:55 +00:00
Kenichi Handa
52f9b7513f
(revert-buffer): Fix previous change.
2006-11-10 01:16:26 +00:00
Kenichi Handa
e1ee3b548b
(revert-buffer): If a unibyte buffer is being reverted
...
with a coding system for multibyte, set buffer multibyte before
calling insert-file-contents.
2006-10-30 07:40:14 +00:00
Richard M. Stallman
5c471b12bc
(file-name-history): Add defvar.
...
(save-some-buffers-action-alist): Improve description strings.
2006-10-12 23:00:44 +00:00
Andreas Schwab
c595fad9d8
(auto-mode-alist): Match change log file name also with
...
a dash before a numeric extension.
2006-10-12 12:11:48 +00:00
Reiner Steib
1eb1a906aa
Mark `buffer-read-only' as safe-local-variable.
2006-10-08 11:34:29 +00:00
Eli Zaretskii
63c8abc42a
(find-file-existing): Modified to not allow wildcards.
2006-09-30 10:02:22 +00:00