Commit graph

932 commits

Author SHA1 Message Date
Luc Teirlinck
7f385e4721 Balance parentheses. 2006-05-12 00:14:21 +00:00
Reiner Steib
631c8020a5 Move `safe-local-variable' declarations to the respective files. 2006-05-11 15:01:41 +00:00
Juri Linkov
0a51c121e4 Remove eval' and let' binding for now unused lambda `string-or-null'. 2006-05-09 22:55:30 +00:00
Eli Zaretskii
b3a5935014 (buffer-stale-function): Point Info links to the main manual, not to emacs-xtra. 2006-05-06 14:37:04 +00:00
Reiner Steib
31cf286fdb (byte-compile-dynamic)
(byte-compile-dynamic-docstrings, byte-compile-warnings)
(find-file-visit-truename, indent-tabs-mode, left-margin)
(no-byte-compile no-update-autoloads, truncate-lines)
(version-control): Don't use `t' for safe-local-variable
declarations.
2006-05-02 12:24:55 +00:00
Stefan Monnier
80aa469540 (safe-local-variable-p): Remove support for the special value t. 2006-04-29 13:59:52 +00:00
Richard M. Stallman
e58cec15eb (enable-local-variables): Allow :all as value.
(hack-local-variables): Implement that value.
(safe-local-variable-values, safe-local-eval-forms)
(enable-local-variables): Mark as risky.
(find-file-visit-truename, kept-old-versions): Mark safe.
2006-04-18 21:20:03 +00:00
Eli Zaretskii
bc5d1dfb83 (hack-one-local-variable-eval-safep): Recognize edebug-form-spec' for put',
but only if it passes `edebug-basic-spec'.  Generalize `put' handling.
2006-04-13 10:54:38 +00:00
Richard M. Stallman
a5ce12c36a (enable-local-variables): Allow value :safe.
(normal-mode): Doc fix.
(hack-local-variables): Implement enable-local-variables = :safe.
(hack-local-variables-confirm): Don't prevent quitting.
2006-04-11 17:57:34 +00:00
Eli Zaretskii
dbcd3ce074 (hack-local-variables-confirm) <offer-save>: Clarify message text. Suggested
by Ralf Angeli.
2006-04-08 10:41:12 +00:00
Reiner Steib
3e45722587 * subr.el (string-or-null-p): New function.
* textmodes/paragraphs.el (sentence-end): Use string-or-null-p.

* textmodes/ispell.el (ispell-local-dictionary): Use
string-or-null-p.

* files.el: Update comment about safe-local-variable declarations.
2006-04-06 19:20:38 +00:00
Reiner Steib
6c07f4d42a * files.el: Move some `safe-local-variable' declarations to the
respective files.

* textmodes/ispell.el (ispell-check-comments)
(ispell-local-dictionary): Mark as safe.

* abbrev.el (abbrev-mode): Mark as safe.

* add-log.el (change-log-default-name): Mark as safe.

* textmodes/reftex-vars.el (reftex-vref-is-default)
(reftex-fref-is-default, reftex-level-indent)
(reftex-guess-label-type): Mark as safe.

* textmodes/fill.el (colon-double-space): Mark as safe.

* textmodes/paragraphs.el (paragraph-start, paragraph-separate)
(sentence-end-double-space, sentence-end-without-period)
(sentence-end-without-space, sentence-end, sentence-end-base)
(page-delimiter, paragraph-ignore-fill-prefix): Mark as safe.
2006-04-06 15:36:24 +00:00
Andreas Schwab
704d70172a Mark left-margin', byte-compile-dynamic-docstrings'
and `byte-compile-warnings' as `safe-local-variable'.
2006-04-04 18:59:01 +00:00
Romain Francoise
3095ccf511 (ctl-x-5-map): Really bind C-x 5 C-o to `display-buffer-other-frame'. 2006-03-24 13:59:22 +00:00
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