- 03 Mar, 2011 1 commit
-
-
Glenn Morris authored
* lisp/files.el (file-truename): Doc fix. * doc/lispref/files.texi (Truenames): Minor clarification.
-
- 01 Mar, 2011 3 commits
-
-
Glenn Morris authored
-
Glenn Morris authored
-
Glenn Morris authored
* lisp/files.el (dir-locals-collect-variables): Add the ability to exclude subdirectories. * doc/emacs/custom.texi (Directory Variables): Give an example of excluding subdirectories. * doc/lispref/variables.texi (Directory Local Variables): Mention `(subdirs . nil)' alist element. * etc/NEWS: Mention this addition. * lisp/dired-x.el (dired-omit-here-always): Add `(subdirs . nil)' to locals.
-
- 24 Feb, 2011 2 commits
-
-
Glenn Morris authored
* lisp/files.el (hack-local-variables-confirm, hack-local-variables-filter): Doc fix (say _which_ directory `dir-name' is). (hack-dir-local-variables): Fix setting of `dir-name'. Previous value seems clearly wrong. Eg put a risky variable in a dir-locals file, visit a file in a subdirectory, see which directory it says the risky variables come from. It should be the one with the associated directory variables, not the one containing the visited file.
-
Glenn Morris authored
* lisp/files.el (dir-locals-find-file): Doc fix. Fix the check for cache elements that have no associated file, and the mtime check for those that do. Still to do: some places that use dir-locals-find-file assume the result is always a file, which is not true. (The function name is misleading.)
-
- 23 Feb, 2011 1 commit
-
-
Glenn Morris authored
This obsolete form is still supported, and present in some of the files synced from gnulib, for example.
-
- 18 Feb, 2011 2 commits
-
-
Stefan Monnier authored
* lread.c (Qdir_ok): New constant. (syms_of_lread): Initialize it. (openp): Don't ignore directories if the predicate returns dir-ok. Fixes: debbugs:7924
-
Glenn Morris authored
-
- 12 Feb, 2011 2 commits
-
-
Chong Yidong authored
-
Thierry Volpiatto authored
* files.el (copy-directory): New argument COPY-CONTENTS for copying directory contents into another existing directory.
-
- 11 Feb, 2011 1 commit
-
-
Bastien Guerry authored
* files.el (basic-save-buffer): save unmodified buffers when the file pointed by buffer-file-name doesn't exist.
-
- 06 Feb, 2011 1 commit
-
-
Chong Yidong authored
If nil, don't copy as a subdirectory.
-
- 01 Feb, 2011 2 commits
-
-
Sam Steingold authored
-
Sam Steingold authored
* lisp/faces.el (face-x-resources): Use `purecopy-cons'. * lisp/files.el (auto-mode-alist, interpreter-mode-alist): Use `purecopy-car'. * lisp/international/fontset.el (font-encoding-alist): Ditto. * lisp/international/mule-conf.el (file-coding-system-alist): Ditto. * lisp/international/mule.el (auto-coding-alist) (auto-coding-regexp-alist): Ditto. * lisp/mouse.el (mouse-buffer-menu-mode-groups): Use `purecopy-cons'. * lisp/term/x-win.el (x-gtk-stock-map): Ditto.
-
- 31 Jan, 2011 1 commit
-
-
Chong Yidong authored
-
- 29 Jan, 2011 1 commit
-
-
Chong Yidong authored
http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg01007.html * files.el (copy-directory): If destination is an existing directory, copy into a subdirectory there.
-
- 25 Jan, 2011 1 commit
-
-
Glenn Morris authored
-
- 24 Jan, 2011 1 commit
-
-
Stefan Monnier authored
insert-file-contents if it's `visit'ing the file. Fixes: debbugs:7854
-
- 20 Jan, 2011 1 commit
-
-
Chong Yidong authored
See discussion on emacs-devel at http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00388.html * src/fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS. * lisp/subr.el (y-or-n-p): Revert 2011-01-07 change, removing ARGS. * lisp/files.el (find-alternate-file, basic-save-buffer) (basic-save-buffer-2, revert-buffer, recover-file) (kill-buffer-ask, abort-if-file-too-large) (set-visited-file-name, write-file, backup-buffer) (basic-save-buffer, save-some-buffers): * lisp/dired-aux.el (dired-compress-file): Callers changed.
-
- 15 Jan, 2011 1 commit
-
-
Mark Diekhans authored
* lisp/files.el (backup-buffer): Make last-resort backup file in .emacs.d. * lisp/subr.el (locate-user-emacs-file): If .emacs.d does not exist, make it with permission 700. * doc/emacs/files.texi (Backup Names): Document the new location of the last-resort backup file.
-
- 08 Jan, 2011 2 commits
-
-
Chong Yidong authored
* doc/lispref/files.texi: Likewise.
-
Chong Yidong authored
* lisp/subr.el (read-char-choice): New function, factored out from dired-query and hack-local-variables-confirm. * lisp/dired-aux.el (dired-query): * lisp/files.el (hack-local-variables-confirm): Use it.
-
- 07 Jan, 2011 1 commit
-
-
Eli Zaretskii authored
lisp/files.el (directory-abbrev-alist): Doc fix. doc/lispref/files.texi (Directory Names): Explain why FROM in directory-abbrev-alist should begin with \`.
-
- 02 Jan, 2011 1 commit
-
-
Stefan Monnier authored
Fixes: debbugs:7767
-
- 30 Dec, 2010 1 commit
-
-
Tassilo Horn authored
from doc-view-mode. (doc-view-fallback-mode): New function. (doc-view-mode): Use it. (doc-view-mode-maybe): New function that checks if doc-view-mode can be used and falls back to the next best mode otherwise. * files.el (auto-mode-alist): Use doc-view-mode-maybe for PDF, DVI, OpenDocument, and MS Office files.
-
- 11 Dec, 2010 1 commit
-
-
Karel Klíc authored
(This really only affects empty files.) Fixes: debbugs:7606
-
- 10 Dec, 2010 1 commit
-
-
Glenn Morris authored
-
- 08 Dec, 2010 1 commit
-
-
Stefan Monnier authored
Use string-prefix-p. (file-name-version-regexp): New var. (file-name-sans-versions): * lisp/jka-cmpr-hook.el (jka-compr-build-file-regexp): Use it, (jka-compr-get-compression-info): Use dolist. (jka-compr-compression-info-list): Don't bother specifying version/backup regexps.
-
- 04 Dec, 2010 2 commits
-
-
W. Martin Borgert authored
* etc/schema/schemas.xml: Handle *.dbk as DocBook.
-
Eli Zaretskii authored
files.el (file-relative-name): Handle UNC file names on DOS/Windows. Also fixes bug#4673.
-
- 22 Nov, 2010 2 commits
-
-
Stefan Monnier authored
* lisp/vc/diff.el (diff-old-temp-file, diff-new-temp-file): Remove. (diff-sentinel): Get them as arguments instead. (diff-old-file, diff-new-file, diff-extra-args): Remove. (diff-file-local-copy, diff-better-file-name): New funs. (diff-no-select): Rename from diff-into-buffer. Support buffers additionally to files. Move `buf' arg. Don't display buf. Prefer closures to buffer-local variables. (diff): Adjust accordingly. (diff-buffer-with-file): Move from files.el. * lisp/files.el (diff-buffer-with-file): Move to vc/diff.el. (diff-buffer-internal): Remove. (diff-buffer-buffer): Remove. (save-some-buffers-action-alist): Use diff-no-select so as not to guess the buffer name used, and so as not to mess up windows and frames.
-
Bob Rogers authored
(diff-buffer-internal): New function extracted from diff-buffer-with-file (diff-buffer-with-file): Use it. * lisp/vc/diff.el (diff-into-buffer): New fun, extracted from diff. (diff): Use it. Fixes: debbugs:7277
-
- 21 Nov, 2010 1 commit
-
-
Michael Albinus authored
now t. * startup.el (normal-top-level): * net/tramp.el (tramp-handle-insert-file-contents): Do not set `backup-by-copying-when-mismatch'.
-
- 11 Nov, 2010 1 commit
-
-
Stefan Monnier authored
* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Simplify the safety predicate.
-
- 06 Nov, 2010 1 commit
-
-
Michael Albinus authored
variable (permanent-local). * net/tramp.el (tramp-handle-insert-file-contents): Do not set `permanent-local' property for `(backup-by-copying-when-mismatch'.
-
- 29 Oct, 2010 1 commit
-
-
Glenn Morris authored
* lisp/files.el (temporary-file-directory): Remove (already defined in C). * lisp/cus-start.el: Add temporary-file-directory.
-
- 18 Oct, 2010 1 commit
-
-
Stefan Monnier authored
before checking length of list. Fixes: debbugs:7238
-
- 02 Oct, 2010 1 commit
-
-
Michael Albinus authored
* time.el (display-time-file-nonempty-p): Use `remote-file-name-inhibit-cache'. * net/tramp.el (tramp-completion-reread-directory-timeout): Fix docstring. * net/tramp-cache.el (tramp-cache-inhibit-cache): Remove. (tramp-get-file-property): Replace `tramp-cache-inhibit-cache' by `remote-file-name-inhibit-cache'. Check also for an integer value. Add/increase counter when `tramp-verbose' >= 10. (tramp-set-file-property): Add/increase counter when `tramp-verbose' >= 10. * net/tramp-cmds.el (tramp-cleanup-all-connections) (tramp-cleanup-all-buffers): Set tramp-autoload cookie. (tramp-bug): Set tramp-autoload cookie. Report all interned tramp-* variables. Report also `remote-file-name-inhibit-cache'. (tramp-reporter-dump-variable): Fix docstring. Mask non-7bit characters only in strings. * net/tramp-compat.el (remote-file-name-inhibit-cache): Define due to backward compatibility. * net/tramp-sh.el (tramp-handle-verify-visited-file-modtime) (tramp-handle-file-name-all-completions) (tramp-handle-vc-registered): Use `remote-file-name-inhibit-cache'. (tramp-open-connection-setup-interactive-shell): Call `tramp-cleanup-connection' directly.
-
- 01 Oct, 2010 1 commit
-
-
Glenn Morris authored
* lisp/files.el (temporary-file-directory): On darwin, also try DARWIN_USER_TEMP_DIR (see discussion in bug#7135).
-