Commit graph

818 commits

Author SHA1 Message Date
Richard M. Stallman
ab9b3866b8 (display-buffer-other-frame): New command.
(ctl-x-4-map): Bind C-x 5 C-o to it.
2006-03-20 15:05:41 +00:00
Eli Zaretskii
d504040421 (auto-mode-alist): Add .odt (OpenOffice's open document) files. Mention in
the doc string the need to sync with auto-coding-alist.
2006-03-11 11:42:58 +00:00
Chong Yidong
af467e285e * files.el (hack-local-variables-confirm): Don't prompt for ! if
enable-local-variables is set to always query, or there is no
	savable variable.
2006-03-10 23:22:30 +00:00
Chong Yidong
4299d849d8 * files.el (hack-local-variables-confirm): Set
coding-system-for-read to nil before writing to .emacs.
2006-03-08 02:24:47 +00:00
Luc Teirlinck
9f6fdbf0a2 (load-library): Use get-load-suffixes' instead of load-suffixes'. 2006-02-27 01:53:28 +00:00
Richard M. Stallman
a251756ea6 (enable-local-variables): Doc fix. 2006-02-21 19:49:55 +00:00
Chong Yidong
b9e1451a3d * files.el: Rearrange functions and variables in the file local
variables section.
2006-02-17 15:33:22 +00:00
Reiner Steib
8086a70c32 Add truncate-lines, ispell-check-comments and
ispell-local-dictionary as safe local variables.
2006-02-17 13:42:17 +00:00
Chong Yidong
0a158521c5 * files.el (hack-local-variables-confirm): Kill temp buffer after use. 2006-02-15 01:32:50 +00:00
Chong Yidong
42078bb225 * files.el (hack-local-variables-confirm): Allow scrolling if the
file variable list is too long.
2006-02-15 01:21:31 +00:00
Chong Yidong
d450f2a250 * files.el (hack-local-variables): Remove ignored variables before
checking if any variables need setting.
2006-02-14 19:54:25 +00:00
Chong Yidong
dd60bebe07 * files.el (hack-local-variables): Only set results if they
exist.
2006-02-14 03:47:00 +00:00
Chong Yidong
5a6c1d871e * files.el (safe-local-variable-values): New option.
(hack-local-variables-prop-line): Return a list of variable-value
	pairs if MODE-ONLY is non-nil.
	(hack-local-variables): Construct list of variable-value pairs,
	and apply or reject them in one go.  Ask for confirmation if
	variables are not known safe.
	(hack-local-variables-confirm): Complete rewrite.  Support
	`safe-local-variable-values'.
	(enable-local-variables): Update docstring to reflect new
	behavior.
	(ignored-local-variables): Ignore ignored-local-variables and
	safe-local-variable-values.
	(safe-local-variable-p): New function.
	(risky-local-variable-p): `safe-local-variable' property check
	moved to safe-local-variable-p.
	(hack-one-local-variable): Checks moved to hack-local-variables.

	(byte-compile-dynamic, c-basic-offset, c-file-style,
	c-indent-level, comment-column, fill-column, fill-prefix,
	indent-tabs-mode, kept-new-versions, no-byte-compile,
	no-update-autoloads, outline-regexp, page-delimiter,
	paragraph-start, paragraph-separate, sentence-end,
	sentence-end-double-space tab-width, version-control): Add
	`safe-local-variable' property.

	* find-lisp.el: Delete nonexistent `autocompile' file variable.

	* icomplete.el, play/landmark.el: Change nonexistent
	`outline-layout' file variable to `allout-layout'.
2006-02-14 01:21:31 +00:00
Richard M. Stallman
a52152f859 (magic-mode-alist): Don't use `\\s ' in regexps. 2006-02-12 20:30:28 +00:00
Eli Zaretskii
518dc5be4e (revert-buffer, recover-file): Replace buffer-read-only with inhibit-read-only. Suggested by Stefan Monnier.
(revert-buffer): Let insert-file-contents discard buffer-undo-list.  Simplify
code.
(find-file, find-file-existing, revert-buffer): Doc-string fixes.
2006-02-11 18:42:56 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Kim F. Storm
5cce080e95 (magic-mode-regexp-match-limit): New defvar.
(set-auto-mode): Use it to limit magic-mode-alist matching.
2006-02-04 23:33:53 +00:00
Richard M. Stallman
f36d46caff (risky-local-variable-p): Follow var aliases. 2006-01-26 17:55:04 +00:00
Masatake YAMATO
3968c89ffe Added makefile-imake-mode. 2006-01-17 18:11:53 +00:00
Eli Zaretskii
0133dab9be (basic-save-buffer-2): If backing-up failed, reset buffer-backed-up to nil. 2006-01-06 11:55:35 +00:00
Richard M. Stallman
1af5710156 (set-visited-file-name): Doc fix. 2005-12-27 22:54:13 +00:00
Eli Zaretskii
ec6328a24a (set-auto-mode): If search for mode specification failed, look for an
interpreter specified on the first line.
2005-12-16 15:44:39 +00:00
Reiner Steib
e8f4db18e2 * files.el (save-buffer):
* international/ucs-tables.el (ucs-set-table-for-input):
* mail/mail-extr.el (mail-extract-address-components):
* mail/sendmail.el (mail-mode): Reformat doc string.
2005-12-09 16:44:18 +00:00
Bill Wohler
4af6c01113 (auto-mode-alist): Remove mh-letter-mode. Unnecessary, and causes
problems with non-MH users (such as Gnus users).
2005-12-08 01:26:14 +00:00
Thien-Thi Nguyen
1be0210d3a (file-relative-name): Doc fix. 2005-11-26 15:52:10 +00:00
Stefan Monnier
8e5c7b90ee (write-file): Refresh VC status. 2005-11-14 22:19:28 +00:00
Richard M. Stallman
879bae91ca (find-file-noselect): Use %d to format large file size. 2005-10-28 16:20:12 +00:00
Michael Albinus
9bc260cfb7 * files.el (directory-listing-before-filename-regexp): New
defvar.  Replaces `dired-move-to-filename-regexp' from dired.el.

* dired.el (dired-move-to-filename-regexp): Removed.  All
occurences replaced by `directory-listing-before-filename-regexp'.

* dired-x.el, locate.el, vc.el: Replace
`dired-move-to-filename-regexp' by
`directory-listing-before-filename-regexp'.  In vc.el it is
overwritten locally; maybe this can be handled in files.el too.

* net/ange-ftp.el (ange-ftp-date-regexp): Removed.  All occurences
replaced by `directory-listing-before-filename-regexp'.

* faq.texi (Bugs and problems): Replace
`dired-move-to-filename-regexp' by
`directory-listing-before-filename-regexp'.
2005-10-23 12:17:28 +00:00
Richard M. Stallman
9e8bb7f72f (make-temp-file): Moved from subr.el. 2005-10-22 15:34:37 +00:00
Deepak Goel
8a26c16552 Message format spec fixes (1) 2005-09-18 12:25:02 +00:00
Stefan Monnier
344f111150 (normal-mode): Check boundness of font-lock-keywords. 2005-09-12 15:05:24 +00:00
Juanma Barranquero
26138670c2 (font-lock-keywords): Add defvar. 2005-08-31 13:49:25 +00:00
Michael Albinus
c1105d052e Make `make-auto-save-file-name' a magic operation. 2005-08-30 22:41:02 +00:00
Richard M. Stallman
9e01e6da53 (risky-local-variable-p): Match -predicates' and -commands. 2005-08-30 10:36:17 +00:00
Richard M. Stallman
6e86be0b47 (normal-mode): If font lock is on, turn it off and on. 2005-08-20 21:50:48 +00:00
Richard M. Stallman
9f01a773d0 (interpreter-mode-alist): Doc fix. 2005-08-15 02:05:01 +00:00
Richard M. Stallman
e8f30180f4 (find-file-noselect): Don't call set-buffer-major-mode.
(find-file-noselect-1): Call it here, only if RAWFILE.
(normal-mode): Always set some major mode.
(save-some-buffers-action-alist): Change some explanation strings.
(file-name-non-special): In the `quote' method, use unwind-protect.
2005-08-09 13:35:12 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
26b9ecbcb9 (find-file-noselect, recode-file-name): Doc fixes.
(insert-directory, kill-some-buffers): "?\ " -> "?\s".
(magic-mode-alist, buffer-file-numbers-unique, write-file-functions,
get-free-disk-space): Fix typos in docstrings.
(find-file-not-found-hooks, find-file-hooks, write-file-hooks,
write-contents-hooks, write-file-hooks): Declare with
`define-obsolete-variable-alias'.
2005-07-20 01:57:49 +00:00
Juri Linkov
222cf3817c (basic-save-buffer): Delete duplicate words. 2005-07-18 15:23:04 +00:00
Luc Teirlinck
e6d0b67a70 (set-visited-file-name): Avoid calling file-name-nondirectory with a
nil argument.
2005-07-10 14:42:02 +00:00
Richard M. Stallman
cbca0a4b37 (set-visited-file-name): Report the error for "empty filename" earlier.
(kill-some-buffers): Ignore buffers already dead.
2005-07-08 22:53:47 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Daniel Pfeiffer
47d4e70988 Switch [Mm]akefile to gmake mode. 2005-06-14 07:33:01 +00:00
Juanma Barranquero
643c985df4 (make-backup-file-name-function): Fix spellings in docstrings. 2005-06-10 14:02:21 +00:00
Richard M. Stallman
e6ca43c89e (hack-local-variables-confirm): New arg FLAG-TO-CHECK.
(hack-one-local-variable, hack-local-variables)
(hack-local-variables-prop-line): Pass that arg.

(locate-file-completion): Doc fix.
2005-06-06 12:31:48 +00:00
Stefan Monnier
f2430a0de4 (convert-standard-filename): Docstring fix. 2005-05-31 13:26:21 +00:00
Daniel Pfeiffer
813731b3dc (auto-mode-alist): Check GNUmakefile before makefile. Default to makefile-bsdmake-mode on BSD systems. 2005-05-21 02:42:00 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Luc Teirlinck
56b19636f3 (hack-local-variables-confirm): Add STRING argument.
Make the function handle non file visiting buffers correctly.
(hack-local-variables-prop-line, hack-local-variables)
(hack-one-local-variable): Use STRING arg of `hack-local-variables-confirm'.
2005-05-14 16:39:49 +00:00