- 22 May, 2011 3 commits
-
-
Glenn Morris authored
* lisp/files.el (hack-local-variables): In the MODE-ONLY case, try to ignore minor modes.
-
Glenn Morris authored
* lisp/files.el (hack-local-variables-prop-line) (hack-local-variables): In the MODE-ONLY case, return the full mode symbol, including "-mode".
-
Glenn Morris authored
* lisp/files.el (hack-local-variables-prop-line): Small simplifications. (hack-local-variables, hack-local-variables-prop-line): If MODE-ONLY, return the mode, rather than just `t'.
-
- 21 May, 2011 1 commit
-
-
Glenn Morris authored
* lisp/files.el (hack-local-variables-prop-line, hack-local-variables): If only interested in the mode, don't bother doing the other stuff.
-
- 20 May, 2011 1 commit
-
-
Nix authored
* files.el (basic-save-buffer-2): Fix handling of break-hardlink-on-save with non-existent files.
-
- 10 May, 2011 1 commit
-
-
Glenn Morris authored
* lisp/files.el (hack-one-local-variable-eval-safep): Consider "eval: (foo-mode)" to be safe. * doc/emacs/custom.texi (Specifying File Variables): Deprecate using mode: for minor modes. * etc/NEWS: Mention this. * lisp/doc-view.el, lisp/net/soap-client.el: Change "mode:" minor-mode file local variables to use "eval:".
-
- 24 Apr, 2011 1 commit
-
-
Chong Yidong authored
-
- 19 Apr, 2011 1 commit
-
-
Juanma Barranquero authored
-
- 09 Apr, 2011 1 commit
-
-
Eli Zaretskii authored
lisp/files.el (file-size-human-readable): Produce one digit after decimal, like "ls -lh" does. lisp/ls-lisp.el (ls-lisp-format-file-size): Allow for 7 characters in the file size representation.
-
- 08 Apr, 2011 1 commit
-
-
Eli Zaretskii authored
lisp/files.el (file-size-human-readable): New function. lisp/ls-lisp.el (ls-lisp-format-file-size): Use it, instead of computing the representation inline. Don't require `cl'.
-
- 06 Apr, 2011 2 commits
-
-
Chong Yidong authored
* lisp/simple.el: Lisp reimplement of list-processes. Based on an earlier reimplementation by Leo Liu, but using tabulated-list.el. (process-menu-mode): New major mode. (list-processes--refresh, list-processes): (process-menu-visit-buffer): New functions. * lisp/files.el (save-buffers-kill-emacs): Don't assume any return value of list-processes, which is undocumented anyway.
-
Juanma Barranquero authored
* lisp/files.el (after-find-file-from-revert-buffer): Remove variable. (after-find-file): Dont' bind it. (revert-buffer-in-progress-p): New variable. (revert-buffer): Bind it. Pass nil for `after-find-file-from-revert-buffer'. * lisp/saveplace.el (save-place-find-file-hook): Use new variable `rever-buffer-in-progress-p', not `after-find-file-from-revert-buffer'. * etc/NEWS: New variable `revert-buffer-in-progress-p'.
-
- 02 Apr, 2011 1 commit
-
-
Glenn Morris authored
-
- 11 Mar, 2011 1 commit
-
-
Eli Zaretskii authored
lisp/files.el (file-ownership-preserved-p): Pass `integer' as an explicit 2nd argument to `file-attributes'. If the file's owner is the Administrators group on Windows, and the current user is Administrator, consider that a match. lisp/server.el (server-ensure-safe-dir): Consider server directory safe on MS-Windows if its owner is the Administrators group while the current Emacs user is Administrator. Use `=' to compare numerical UIDs, since they could be integers or floats.
-
- 05 Mar, 2011 4 commits
-
-
Antoine Levitt authored
* lisp/files.el (delete-directory, copy-directory, list-directory): Use read-directory-name. * lisp/find-file.el (ff-find-the-other-file): * lisp/net/ange-ftp.el (ange-ftp-make-directory): * lisp/printing.el (pr-interactive-dir): * lisp/progmodes/ada-prj.el (ada-prj-load-directory): * lisp/progmodes/ebnf2ps.el (ebnf-print-directory) (ebnf-spool-directory, ebnf-eps-directory) (ebnf-syntax-directory): * lisp/shell.el (shell): * lisp/speedbar.el (speedbar-create-directory): * lisp/vc/emerge.el (emerge-merge-directories): * lisp/vc/vc-dir.el (vc-dir): * lisp/vc/vc.el (vc-create-tag, vc-retrieve-tag): Likewise. * lisp/gnus.el (gnus-interactive): Use read-directory-name. * lisp/gnus-uu.el (gnus-uu-decode-uu-and-save) (gnus-uu-decode-unshar-and-save, gnus-uu-decode-save) (gnus-uu-decode-binhex, gnus-uu-decode-yenc) (gnus-uu-decode-save-view, gnus-uu-decode-postscript-and-save): Likewise. * lisp/mh-funcs.el (mh-store-msg, mh-store-buffer): * lisp/mh-mime.el (mh-mime-save-parts): Use read-directory-name. * lisp/dired.el: Clarify comment.
-
Reuben Thomas authored
* files.el (file-name-version-regexp): Handle backup files of the form `foo.js.~HEAD~1~' (Bug#8159).
-
David Engster authored
* files.el (save-some-buffers): Report the names of buffers saved automatically due to buffer-save-without-query.
-
Eli Zaretskii authored
files.el (find-file-noselect): Don't ask about re-visiting non-literally if the file is already visited in image-mode.
-
- 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
-
- 17 Feb, 2011 1 commit
-
-
Stefan Monnier authored
* lisp/files.el (lexical-binding): Add a safe-local-variable property. * lisp/emacs-lisp/byte-opt.el (byte-inline-lapcode): Check how many elements are added to the stack. (byte-compile-splice-in-already-compiled-code): Don't touch lexical nor byte-compile-depth now that byte-inline-lapcode does it for us. (byte-compile-inline-expand): Don't inline dynbind byte code into lexbind code, since it has to be done differently. * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn): Correctly extract arglist from `closure's. (byte-compile-cl-warn): Compiler-macros are run earlier now. (byte-compile-top-level): Bind byte-compile-lexical-environment to nil, except for lambdas. (byte-compile-form): Don't run the compiler-macro expander here. (byte-compile-let): Merge with byte-compile-let*. Don't preserve-body-value if the body's value was discarded. * lisp/emacs-lisp/cconv.el (cconv--set-diff, cconv--set-diff-map) (cconv--map-diff, cconv--map-diff-elem, cconv--map-diff-set): New funs. (cconv--env-var): New constant. (cconv-closure-convert-rec): Use it and use them. Fix a typo that ended up forgetting to remove entries from lmenvs in `let'. For `lambda' use the outer `fvrs' when building the closure and don't forget to remove `vars' from the `emvrs' and `lmenvs' of the body. * lisp/emacs-lisp/cl-macs.el (cl-byte-compile-block): Disable optimization in lexbind, because it needs a different implementation. * src/bytecode.c (exec_byte_code): Fix handling of &rest. * src/eval.c (Vinternal_interpreter_environment): Remove. (syms_of_eval): Do declare Vinternal_interpreter_environment as a global lisp var, but unintern it to hide it. (Fcommandp): * src/data.c (Finteractive_form): Understand `closure's.
-
- 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.
-