1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
Commit Graph

1213 Commits

Author SHA1 Message Date
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
Chong Yidong
91f68422d6 * files.el (hack-local-variables-prop-line)
(hack-local-variables, dir-locals-read-from-file): Bind
read-circle to nil before reading.
* lread.c (Vread_circle): New variable.
(read1): Disable recursive read if Vread_circle is nil.
2009-04-29 03:02:54 +00:00
Stefan Monnier
0a56bf8c52 (load-library): Improve docstring. 2009-04-28 19:00:38 +00:00
Chong Yidong
25760acbb9 * files.el (dir-locals-directory-cache): Change format to include
the mtime of the directory-local variables file (Bug#2833).
(dir-locals-set-directory-class): New arg mtime.  Store it in
dir-locals-directory-cache.
(dir-locals-find-file): Check cache validity using the mtime.
(dir-locals-read-from-file): Save the file mtime in the cache.
(hack-dir-local-variables): Adapt to new
dir-locals-directory-cache entry format.
2009-04-11 15:26:26 +00:00
Eli Zaretskii
d8c0d4196f (append-to-file): Doc fix. 2009-04-08 14:06:45 +00:00
Jason Rumney
48981b8b81 (locate-dominating-stop-dir-regexp): Stop searching
when a UNC mount point is reached.
2009-03-30 13:48:06 +00:00
Eli Zaretskii
7f94baf012 (shell-quote-wildcard-pattern): Doc fix. 2009-03-28 12:27:52 +00:00
Chong Yidong
ca66f00dcd (file-modes-rights-to-number): Doc fix.
(file-modes-symbolic-to-number): Handle empty permissions arg (Bug#2729).
2009-03-21 15:53:29 +00:00
Chong Yidong
86c7144b37 (get-free-disk-space): Ensure that default-directory is
usable before calling call-process.  Suggested by Kevin
Ryde (Bug#2631).
2009-03-15 02:31:45 +00:00