Dan Nicolaescu
ca0a881a35
* puresize.h (BASE_PURESIZE): Increase to 1470000.
...
* lread.c (Fload): Purecopy the file name when building Vpreloaded_file_list.
* textmodes/ispell.el (ispell-skip-region-alist):
* international/mule-conf.el (eight-bit):
* international/fontset.el (font-encoding-alist):
* startup.el (pure-space-overflow-message):
* simple.el (overwrite-mode-textual, overwrite-mode-binary):
* paths.el (gnus-nntp-service, rmail-spool-directory)
(term-file-prefix):
* files.el (save-some-buffers-action-alist):
* cmuscheme.el (same-window-buffer-names):
* ielm.el (same-window-buffer-names):
* shell.el (same-window-buffer-names):
* mail/sendmail.el (same-window-buffer-names):
* progmodes/inf-lisp.el (same-window-buffer-names):
* bindings.el (mode-line-client)
(mode-line-column-line-number-mode-map):
* language/tibetan.el (tibetan-precomposition-rule-regexp)
(tibetan-precomposed-regexp): Purecopy string arguments.
2009-10-30 02:00:11 +00:00
Dan Nicolaescu
a7610c523c
* textmodes/tex-mode.el (tex-dvi-view-command)
...
(tex-show-queue-command, tex-open-quote):
* progmodes/ruby-mode.el (auto-mode-alist)
(interpreter-mode-alist): Purecopy strings.
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Purecopy item names.
* emacs-lisp/derived.el (define-derived-mode): Purecopy the doc
string for the hook, keymap and abbrev table.
* emacs-lisp/byte-run.el (make-obsolete): Purecopy the current name.
* x-dnd.el (x-dnd-xdnd-to-action):
* startup.el (fancy-startup-text, fancy-about-text): Change to
defconst from defvar.
* ps-print.el (ps-page-dimensions-database): Purecopy initial value.
* mouse.el (mouse-buffer-menu-mode-groups, x-fixed-font-alist):
Purecopy initialization strings.
* mail/sendmail.el (mail-header-separator)
(mail-personal-alias-file):
* mail/rmail.el (rmail-default-dont-reply-to-names)
(rmail-ignored-headers, rmail-retry-ignored-headers)
(rmail-highlighted-headers, rmail-secondary-file-directory)
(rmail-secondary-file-regexp):
* files.el (null-device, file-name-invalid-regexp)
(locate-dominating-stop-dir-regexp)
(inhibit-first-line-modes-regexps): Purecopy initialization
strings.
(interpreter-mode-alist): Use mapcar instead of mapc.
* buff-menu.el (Buffer-menu-mode-map): Purecopy name.
* bindings.el (mode-line-major-mode-keymap): Purecopy name.
(completion-ignored-extensions):
(debug-ignored-errors): Purecopy strings.
2009-10-26 06:43:36 +00:00
Chong Yidong
ab27682008
* files.el (delete-directory): Delete symlinks to directories with
...
delete-file (Bug#4739).
2009-10-24 20:30:44 +00:00
Stefan Monnier
528c56e2d1
* minibuffer.el (completion-table-with-terminator): Properly implement
...
boundaries, in case `terminator' appears in the suffix.
(completion--embedded-envvar-table): Don't return boundaries if
there's no valid completion. Simplify.
(completion-file-name-table): New completion table extracted from
completion--file-name-table.
(completion--file-name-table): Use it.
(read-file-name-predicate): Declare obsolete.
(read-file-name): Use the pred arg i.s.o read-file-name-predicate.
* vc-bzr.el (vc-bzr-revision-completion-table): Use the new
completion-file-name-table, and use the `pred' argument.
* files.el (locate-file-completion-table): Use the `pred' arg rather
than read-file-name-predicate.
(abbreviate-file-name): Use \` rather than ^ for BOS.
2009-10-21 20:03:57 +00:00
Michael Albinus
0e1f2ee62a
* files.el (directory-files-no-dot-files-regexp): New defconst.
...
(delete-directory): Use it.
(copy-directory): Use it. Remove parameter PRESERVE-UID-GID.
2009-10-05 07:44:01 +00:00
Michael Albinus
8e692050bd
* files.el (copy-directory): New defun.
2009-10-04 12:14:05 +00:00
Chong Yidong
e6e267fcba
* cedet/srecode/srt-mode.el (srecode-template-mode): Doc fix.
...
* files.el (auto-mode-alist): Add .srt and Project.ede.
* cedet/semantic.el (semantic-mode): Handle
srecode-template-mode-hook as well.
* cedet/srecode/template.el: Remove hook variable.
* cedet/ede/proj-comp.el: Require ede/pmake when compiling.
* cedet/ede.el (ede-target-forms-menu): Don't enable if no
projects exist.
* cedet/srecode/map.el (srecode-map-base-template-dir): Look for
templates in data-directory.
* cedet/ede/srecode.el (ede-srecode-setup): Use default templates
directory.
* cedet/semantic/util-modes.el (semantic-highlight-func-mode): Doc
fix.
* cedet/ede/proj-comp.el (ede-proj-makefile-insert-variables):
Only insert each variable once.
* cedet/ede/pmake.el (ede-pmake-insert-variable-once): New macro.
(ede-pmake-insert-variable-shared): Use it.
* cedet/ede/cpp-root.el (ede-preprocessor-map): Do not deref table
for lexical table iff table is nil.
2009-10-03 19:28:05 +00:00
Juanma Barranquero
32226619c5
Use called-interactively-p' instead of
interactive-p'.
2009-10-02 03:48:36 +00:00
Michael Albinus
96ad4c3575
* files.el (delete-directory): New defun. The original function
...
in fileio.c has been renamed to `delete-directory-internal'.
2009-10-01 15:04:22 +00:00
Stefan Monnier
7201bfbb31
(cd-absolute): Don't abbreviate-file-name (bug#4599).
2009-10-01 03:34:04 +00:00
Chong Yidong
561580e91b
* files.el (safe-local-eval-forms): Fix typo.
2009-09-29 23:57:17 +00:00
Chong Yidong
182b3bec08
* files.el (safe-local-eval-forms): Allow time-stamp in
...
before-save-hook (Bug#4554).
2009-09-25 22:04:07 +00:00
Juanma Barranquero
11ee8d90b2
* menu-bar.el (list-buffers-directory): Add docstring.
...
Make automatically buffer-local.
* dired.el (dired-mode):
* files.el (cd-absolute):
* pcvs.el (cvs-temp-buffer):
* pcvs-util.el (cvs-get-buffer-create):
* shell.el (shell-mode):
* vc-dir.el (vc-dir-mode):
Don't make `list-buffers-directory' buffer local.
2009-09-25 04:35:14 +00:00
Chong Yidong
e477ca8496
* nxml/nxml-mode.el: Alias xml-mode to nxml-mode.
...
* textmodes/sgml-mode.el: Remove xml-mode alias.
* files.el (auto-mode-alist, conf-mode-maybe)
(magic-fallback-mode-alist): Revert 2009-09-18 and 2009-09-21
changes.
2009-09-24 23:22:17 +00:00
Chong Yidong
91fdbd6fdc
* files.el (conf-mode-maybe, magic-fallback-mode-alist): Use
...
nxml-mode instead of xml-mode.
2009-09-21 22:12:28 +00:00
Chong Yidong
9a1337f9c5
* files.el (auto-mode-alist): Change default for XML files to nXML
...
mode (Bug#4169).
2009-09-18 18:42:16 +00:00
Stefan Monnier
adba8116c3
* mail/sendmail.el (send-mail-function):
...
* tooltip.el (tooltip-mode):
* simple.el (transient-mark-mode):
* rfn-eshadow.el (file-name-shadow-mode):
* frame.el (blink-cursor-mode):
* font-core.el (global-font-lock-mode):
* files.el (temporary-file-directory)
(small-temporary-file-directory, auto-save-file-name-transforms):
* epa-hook.el (auto-encryption-mode):
* composite.el (global-auto-composition-mode):
Use custom-initialize-delay.
* startup.el (command-line): Don't explicitly call
custom-reevaluate-setting for all the above vars.
* custom.el (custom-initialize-safe-set)
(custom-initialize-safe-default): Delete.
2009-09-13 00:52:55 +00:00
Juanma Barranquero
79f01fa76c
* files.el (top-level): Require `cl' when compiling.
2009-09-07 15:23:09 +00:00
Glenn Morris
448ecec304
(auto-mode-alist): Use delphi-mode for .dpr files.
2009-09-07 02:26:37 +00:00
Karl Fogel
049a231b91
* lisp/files.el (find-alternate-file): Run `kill-buffer-hook' manually
...
before killing the old buffer, since by the time `kill-buffer' is
run so many buffer variables have been set to nil that it may not
behave as expected. (Bug#4061)
2009-09-05 16:25:27 +00:00
Karl Fogel
ef7ef2a016
* lisp/files.el (find-alternate-file): If the old buffer is modified
...
and visiting a file, behave similarly to `kill-buffer' when killing
it, thus reverting to the pre-1.878 behavior; see
http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00101.html
for discussion. Also, consult `buffer-file-name' as a variable not
as a function, for consistency with the rest of the code.
2009-09-05 15:16:49 +00:00
Stefan Monnier
df1204818a
(locate-file-completion-table): Make it provide boundary
...
information, so partial-completion works better.
2009-09-04 03:18:08 +00:00
Stefan Monnier
53be4cdb51
(get-free-disk-space): Fix paren-typo in last change.
2009-08-29 15:33:27 +00:00
Stefan Monnier
51da8fe209
(get-free-disk-space): Use / for default-directory.
2009-08-29 14:58:15 +00:00
Juri Linkov
e15f58f871
(magic-fallback-mode-alist): Add ZIP magic number
...
associated with `archive-mode'.
2009-08-28 23:48:46 +00:00
Stefan Monnier
14acf2f55e
* gnus/nnheader.el (nnheader-find-file-noselect):
...
* gnus/mm-util.el (mm-insert-file-contents):
* org/org-html.el (org-export-as-html):
* org/org-docbook.el (org-export-as-docbook):
* textmodes/reftex.el (reftex-get-file-buffer-force):
* progmodes/verilog-mode.el (verilog-batch-execute-func):
* emulation/viper.el (viper-go-away, viper-set-hooks):
* emacs-lisp/re-builder.el (re-builder-unload-function):
* emacs-lisp/bytecomp.el (byte-compile-file):
* ses.el (ses-unload-function):
* hexl.el (hexl-find-file):
* files.el (normal-mode):
* ehelp.el (with-electric-help):
* autoinsert.el (auto-insert-alist):
* arc-mode.el (archive-mode):
Use (default-value 'major-mode) instead of default-major-mode.
2009-08-28 17:02:53 +00:00
Glenn Morris
3029e594ae
(enable-local-variables, enable-local-eval)
...
(safe-local-variable-values, safe-local-eval-forms): Mark as risky in
the defcustoms.
(auto-mode-alist, ignored-local-variables)
(save-some-buffers-action-alist): Move risky declarations to the
definitions.
(dabbrev-case-fold-search, dabbrev-case-replace, display-time-string)
(font-lock-defaults, format-alist, imenu--index-alist)
(imenu-generic-expression, input-method-alist, minor-mode-alist)
(mode-line-buffer-identification, mode-line-client, mode-line-modes)
(mode-line-modified, mode-line-mule-info, mode-line-position)
(mode-line-process, mode-line-remote, outline-level)
(parse-time-rules, rmail-output-file-alist)
(special-display-buffer-names, vc-mode):
Move risky declarations to the relevant files.
2009-08-26 03:08:33 +00:00
Glenn Morris
2ddf2ea67c
(auto-mode-alist): Remove code for defunct system-type next-mach.
2009-08-23 00:45:17 +00:00
Chong Yidong
645b932677
* files.el (hack-one-local-variable): If the mode function is for
...
a minor mode, pass it an argument (Bug#4148).
2009-08-17 23:40:19 +00:00
Chong Yidong
e1bdde7818
* files.el (get-free-disk-space): Change fallback default
...
directory to /. Expand DIR argument before switching to fallback.
Suggested by Kevin Ryde (Bug#2631, Bug#3911).
2009-08-16 00:31:28 +00:00
Chong Yidong
9d73a99e31
* files.el (load-library): Doc fix.
2009-08-15 17:51:37 +00:00
Chong Yidong
ba2d889487
* files.el (auto-mode-alist): Use js-mode for .js files.
2009-08-14 23:40:20 +00:00
Juri Linkov
0d1b48e9ff
Move code that deals with adding/deleting
...
file/directory-local variables to files-x.el.
2009-08-12 20:30:31 +00:00
Juri Linkov
b4d84ecfec
Commands to add/delete file/directory-local variables.
...
(read-file-local-variable, read-file-local-variable-value)
(read-file-local-variable-mode, modify-file-local-variable)
(modify-file-local-variable-prop-line)
(modify-dir-local-variable): New functions.
(add-file-local-variable, delete-file-local-variable)
(add-file-local-variable-prop-line, delete-file-local-variable-prop-line)
(add-dir-local-variable, delete-dir-local-variable)
(copy-file-locals-to-dir-locals, copy-dir-locals-to-file-locals)
(copy-dir-locals-to-file-locals-prop-line): New commands.
2009-08-04 23:52:06 +00:00
Chong Yidong
a4f6970146
* mail/rmailedit.el (rmail-edit-mode): Use auto-save-include-big-deletions.
...
* mail/rmail.el (rmail-variables): Use auto-save-include-big-deletions.
* files.el (auto-save-mode): Revert 2009-07-21 and 2009-07-16 changes.
2009-07-21 23:34:33 +00:00
Richard M. Stallman
b41b097623
* files.el (auto-save-mode): Handle buffer-save-size = -2
...
for toggling mode.
2009-07-21 14:40:33 +00:00
Glenn Morris
26ede5d3de
(abort-if-file-too-large): Explicitly pass `filename' as an argument.
...
(find-file-noselect, insert-file-1): Update for above change.
2009-07-21 04:37:53 +00:00
Chong Yidong
42e0a72551
* files.el (hack-local-variables-filter): Fix last change.
2009-07-20 14:21:27 +00:00
Juri Linkov
8c8b01853d
(ignored-local-variables): Add `dir-local-variables-alist'.
...
(dir-local-variables-alist): New buffer-local variable.
(hack-local-variables-filter): If variable is not dir-local,
i.e. `dir-name' is nil, then remove it from `dir-local-variables-alist',
because file-local overrides dir-local.
(c-postprocess-file-styles)<declare-function>:
Remove obsolete declaration.
(hack-dir-local-variables): Add dir-local variable/value pair to
`dir-local-variables-alist' and remove duplicates. Doc fix.
2009-07-19 16:55:16 +00:00
Chong Yidong
89bf83cdc3
* files.el (hack-local-variables-filter): Rewrite.
2009-07-19 01:05:17 +00:00
Alan Mackenzie
982cbcabc0
(hack-local-variables-filter): Remove entries with duplicate keys from
...
`file-local-variables-alist'.
2009-07-18 20:41:32 +00:00
Richard M. Stallman
7a907299a2
* files.el (auto-save-mode): If buffer-saved-size is -2, don't clobber it.
...
* mail/rmail.el (rmail-variables): Set buffer-saved-size to -2.
(rmail-retry-ignored-headers): Add more uninteresting fields.
2009-07-16 01:52:32 +00:00
Stefan Monnier
4b8b1ec5b0
(find-alternate-file-other-window, find-alternate-file):
...
Obey confirm-nonexistent-file-or-buffer.
2009-07-05 22:15:34 +00:00
Chong Yidong
f7c0d93167
* files.el (trash-directory): Fix defcustom type.
2009-06-28 16:09:46 +00:00
Chong Yidong
d63a01efdb
* files.el (trash-directory): Change default to nil.
...
(move-file-to-trash): If trash-directory is nil and
system-move-file-to-trash is unbound, perform freedesktop-style
trashing.
* NEWS: Document change.
2009-06-28 04:54:06 +00:00
Glenn Morris
46253b3440
(dir-locals-collect-mode-variables): Allow for any number of `mode'
...
and `eval' entries. (Bug#3430)
2009-06-22 07:02:04 +00:00
Glenn Morris
c1a7089259
(dir-locals-set-directory-class): Make mtime argument
...
optional, since it is always unneeded in the non-file case. (Bug#3577)
2009-06-18 06:54:47 +00:00
Chong Yidong
b933010836
* files.el (save-some-buffers-action-alist): Fix last change (Bug#3578).
2009-06-17 15:06:25 +00:00
Glenn Morris
cf66a343c3
(dir-locals-set-directory-class): Fix doc typo.
2009-06-17 02:54:49 +00:00
Jason Rumney
41c4018353
(locate-dominating-stop-dir-regexp): Add terminal
...
directory separator to UNC path case (Bug#3252).
2009-05-20 12:53:54 +00:00