1. 13 Jul, 2011 1 commit
  2. 12 Jul, 2011 1 commit
  3. 11 Jul, 2011 1 commit
  4. 04 Jul, 2011 1 commit
  5. 03 Jul, 2011 1 commit
  6. 30 Jun, 2011 1 commit
    • Chong Yidong's avatar
      Avoid calling customize-save-variable during startup (Bug#8720). · 658d8eb8
      Chong Yidong authored
      * lisp/cus-edit.el (customize-push-and-save): New function.
      * lisp/files.el (hack-local-variables-confirm): Use it.
      * lisp/custom.el (load-theme): New arg NO-CONFIRM.  Use
      customize-push-and-save (Bug#8720).
      (custom-enabled-themes): Doc fix.
      * lisp/cus-theme.el (customize-create-theme)
      (custom-theme-merge-theme): Callers to load-theme changed.
  7. 29 Jun, 2011 1 commit
  8. 19 Jun, 2011 2 commits
  9. 11 Jun, 2011 1 commit
    • Martin Rudalics's avatar
      Move/add window-buffer-related functions to window.el. · 9397e56f
      Martin Rudalics authored
      * buffer.c: New Lisp objects Qbuffer_list_update_hook and
      Qclone_number.  Remove external declaration of Qdelete_window.
      (Fbuffer_list): Rewrite doc-string.  Minor restructuring of
      (Fget_buffer_create, Fmake_indirect_buffer, Frename_buffer): Run
      Qbuffer_list_update_hook if allowed.
      (Fother_buffer): Rewrite doc-string.  Major rewrite for new
      buffer list implementation.
      (other_buffer_safely): New function.
      (Fkill_buffer): Replace call to replace_buffer_in_all_windows by
      calls to replace_buffer_in_windows and
      replace_buffer_in_windows_safely.  Run Qbuffer_list_update_hook
      if allowed.
      (record_buffer): Inhibit quitting and rewrite using quittable
      functions.  Run Qbuffer_list_update_hook if allowed.
      (Frecord_buffer, Funrecord_buffer): New functions.
      (switch_to_buffer_1, Fswitch_to_buffer): Remove.  Move
      switch-to-buffer to window.el.
      (bury-buffer): Move to window.el.
      (Vbuffer_list_update_hook): New variable.
      * lisp.h (other_buffer_safely): Add prototype in buffer.c
      * window.h (resize_frame_windows): Move up in code.
      (Fwindow_frame): Remove EXFUN.
      (replace_buffer_in_all_windows): Remove prototype.
      (replace_buffer_in_windows_safely): Add prototype.
      * window.c: Declare Qdelete_window static again.  Move down
      declaration of select_count.
      (Fnext_window, Fprevious_window): Rewrite doc-strings.
      (Fother_window): Move to window.el.
      (window_loop): Remove DELETE_BUFFER_WINDOWS and UNSHOW_BUFFER
      (Fdelete_windows_on, Freplace_buffer_in_windows): Move to
      (replace_buffer_in_windows): Implement by calling
      (replace_buffer_in_all_windows): Remove with some functionality
      moved into replace_buffer_in_windows_safely.
      (replace_buffer_in_windows_safely): New function.
      (select_window_norecord, select_frame_norecord): Move in front
      of run_window_configuration_change_hook.  Remove now obsolete
      (Fset_window_buffer): Rewrite doc-string.  Call
      (keys_of_window): Move binding for other-window to window.el.
      * loadup.el (top-level): Load window before files for the sake
      of replace-buffer-in-windows.
      * files.el (read-buffer-to-switch)
      (switch-to-buffer-other-frame, display-buffer-other-frame): Move
      to window.el.
      * simple.el (get-next-valid-buffer, last-buffer, next-buffer)
      (previous-buffer): Move to window.el.
      * bindings.el (unbury-buffer): Move to window.el.
      * window.el (delete-other-windows-vertically): Move after
      definition of delete-other-windows.
      (other-window, delete-windows-on, replace-buffer-in-windows):
      Move here from window.c.
      (record-window-buffer, unrecord-window-buffer)
      (set-window-buffer-start-and-point, switch-to-prev-buffer)
      (switch-to-next-buffer): New functions.
      (get-next-valid-buffer, last-buffer, next-buffer): Move here
      from simple.el.  Call switch-to-next-buffer.
      (previous-buffer): Move here from simple.el.  Call
      (bury-buffer): Move here from buffer.c.  Switch to previous
      buffer when window cannot be deleted.
      (unbury-buffer): Move here from bindings.el.
      (ctl-x-map): Move binding for other-window from window.c to
      (read-buffer-to-switch, switch-to-buffer-other-window)
      (switch-to-buffer-other-frame): Move here from files.el.
      (normalize-buffer-to-switch-to): New functions.
      (switch-to-buffer): Move here from buffer.c.  Use
      read-buffer-to-switch and normalize-buffer-to-switch-to.
  10. 09 Jun, 2011 2 commits
  11. 28 May, 2011 1 commit
  12. 27 May, 2011 2 commits
  13. 26 May, 2011 2 commits
  14. 23 May, 2011 1 commit
  15. 22 May, 2011 3 commits
  16. 21 May, 2011 1 commit
  17. 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.
  18. 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:".
  19. 24 Apr, 2011 1 commit
  20. 19 Apr, 2011 1 commit
  21. 09 Apr, 2011 1 commit
  22. 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'.
  23. 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.
    • 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'.
  24. 02 Apr, 2011 1 commit
  25. 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.
  26. 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
      * 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)
      * 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):
      * 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'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).
    • 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.
    • 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.
  27. 03 Mar, 2011 1 commit
  28. 01 Mar, 2011 3 commits