1. 22 May, 2011 3 commits
  2. 21 May, 2011 1 commit
  3. 20 May, 2011 1 commit
    • Nix's avatar
      Small break-hardlink-on-save fix. · 35fd0881
      Nix authored
      * files.el (basic-save-buffer-2):
      Fix handling of break-hardlink-on-save with non-existent files.
      35fd0881
  4. 10 May, 2011 1 commit
    • Glenn Morris's avatar
      Deprecate using "mode:" to enable minor modes (bug#8613) · b8f82dc1
      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:".
      b8f82dc1
  5. 24 Apr, 2011 1 commit
  6. 19 Apr, 2011 1 commit
  7. 09 Apr, 2011 1 commit
  8. 08 Apr, 2011 1 commit
    • Eli Zaretskii's avatar
      New function file-size-human-readable. · e3971c44
      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'.
      e3971c44
  9. 06 Apr, 2011 2 commits
    • Chong Yidong's avatar
      Reimplement list-processes in Lisp. · 7d668f2c
      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.
      7d668f2c
    • Juanma Barranquero's avatar
      New variable `revert-buffer-in-progress-p'. · 3e214b50
      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'.
      3e214b50
  10. 02 Apr, 2011 1 commit
  11. 11 Mar, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix comparisons of file ownership on MS-Windows for the Administrator user. · 2920e68d
      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.
      2920e68d
  12. 05 Mar, 2011 4 commits
    • Antoine Levitt's avatar
      Replace many instances of read-file-name with read-directory-name. · 7e27ce9c
      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.
      7e27ce9c
    • Reuben Thomas's avatar
      Handle git-style backup names in file-name-version-regexp (Bug#8159). · 2de9cc1a
      Reuben Thomas authored
      * files.el (file-name-version-regexp): Handle backup files of the
      form `foo.js.~HEAD~1~' (Bug#8159).
      2de9cc1a
    • David Engster's avatar
      Make save-some-buffers message more informative (Bug#8134). · c5f09daf
      David Engster authored
      * files.el (save-some-buffers): Report the names of buffers saved
      automatically due to buffer-save-without-query.
      c5f09daf
    • Eli Zaretskii's avatar
      Fix bug #8177 with re-visiting image files. · 3ae59fff
      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.
      3ae59fff
  13. 03 Mar, 2011 1 commit
  14. 01 Mar, 2011 3 commits
  15. 24 Feb, 2011 2 commits
    • Glenn Morris's avatar
      More dir-locals fixes for files.el. · 07915ed9
      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.
      07915ed9
    • Glenn Morris's avatar
      Partial fix for bug#8095. · ebe401f6
      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.)
      ebe401f6
  16. 23 Feb, 2011 1 commit
  17. 18 Feb, 2011 2 commits
  18. 17 Feb, 2011 1 commit
    • Stefan Monnier's avatar
      Various compiler bug-fixes. MPC seems to run correctly now. · b38b1ec0
      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.
      b38b1ec0
  19. 12 Feb, 2011 2 commits
  20. 11 Feb, 2011 1 commit
  21. 06 Feb, 2011 1 commit
  22. 01 Feb, 2011 2 commits
  23. 31 Jan, 2011 1 commit
  24. 29 Jan, 2011 1 commit
  25. 25 Jan, 2011 1 commit
  26. 24 Jan, 2011 1 commit
  27. 20 Jan, 2011 1 commit
  28. 15 Jan, 2011 1 commit
    • Mark Diekhans's avatar
      Make last-resort backup file in .emacs.d (Bug#6953). · b024d9f0
      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.
      b024d9f0