1. 23 Oct, 2011 1 commit
    • Chong Yidong's avatar
      Make vc-toggle-read-only an alias for toggle-read-only. · 86c60681
      Chong Yidong authored
      It hasn't worked in a VC sense since 2008-05-02T07:12:59Z!esr@snark.thyrsus.com, though this was
      not documented at the time (grr).
      * lisp/vc/vc-hooks.el (vc-toggle-read-only): Make it an obsolete alias
      for toggle-read-only.  Note that this hasn't called vc-next-action
      since 2008-05-02, though it wasn't documented at the time.
      * lisp/files.el (toggle-read-only): Remove obsolete comment about
      version control.
      * doc/emacs/buffers.texi (Misc Buffer): Don't mention vc-toggle-read-only.
      * lisp/cedet/ede.el (ede-maybe-checkout): Function deleted;
      vc-toggle-read-only does not do version control now.
      * lisp/cedet/ede/project-am.el (project-remove-file, project-add-file)
      (project-new-target): Don't call ede-maybe-checkout.
      * lisp/cedet/ede/util.el (ede-make-buffer-writable): Don't use
      * lisp/vc/ediff-init.el (ediff-toggle-read-only-function): Use
  2. 12 Oct, 2011 1 commit
    • Michael Albinus's avatar
      Fix Bug#6019, Bug#9315. · 28dbc92f
      Michael Albinus authored
      * files.el (set-auto-mode): Call `file-name-sans-versions' for the
      complete `buffer-file-name', the local file name part could look
      remotely (for example on VMS).
      * net/ange-ftp.el (ange-ftp-run-real-handler): Make it an alias of
      (ange-ftp-fix-name-for-vms): Handle the case, where `name' is
      already quoted by '"'.
      * net/tramp.el (tramp-rfn-eshadow-update-overlay): Ignore errors.
      Let `file-name-handler-alist' be nil, the local file name part
      could look remotely (for example on VMS).
  3. 22 Sep, 2011 1 commit
  4. 18 Sep, 2011 1 commit
  5. 12 Sep, 2011 1 commit
  6. 03 Sep, 2011 1 commit
  7. 02 Sep, 2011 1 commit
    • Chong Yidong's avatar
      Remove pop-to-buffer-same-window. · c3313451
      Chong Yidong authored
      * lisp/window.el (pop-to-buffer-1, pop-to-buffer-same-window): Deleted.
      (pop-to-buffer): Change interactive spec.  Pass second argument
      directly to display-buffer.
      (display-buffer): Fix interactive spec.  Use functionp to
      distinguish between a function and a list of functions.
      * lisp/abbrev.el (edit-abbrevs):
      * lisp/arc-mode.el (archive-extract):
      * lisp/autoinsert.el (auto-insert):
      * lisp/bookmark.el (bookmark-bmenu-list):
      * lisp/files.el (find-file):
      * lisp/view.el (view-buffer):
      * lisp/progmodes/compile.el (compilation-goto-locus):
      * lisp/textmodes/bibtex.el (bibtex-initialize): Use switch-to-buffer.
      * lisp/org/ob-ref.el (org-babel-ref-goto-headline-id):
      * lisp/org/org.el (org-get-location, org-tree-to-indirect-buffer)
      (org-mark-ring-goto, org-refile, org-add-log-note)
      (org-revert-all-org-buffers, org-switchb)
      (org-cycle-agenda-files, org-submit-bug-report)
      * lisp/org/org-agenda.el (org-prepare-agenda, org-agenda-switch-to):
      * lisp/org/org-capture.el (org-capture-goto-target)
      * lisp/org/org-clock.el (org-clock-goto):
      * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file):
      * lisp/org/org-exp.el (org-export-as-org):
      * lisp/org/org-feed.el (org-feed-show-raw-feed):
      * lisp/org/org-html.el (org-export-htmlize-generate-css):
      * lisp/org/org-id.el (org-id-goto):
      * lisp/org/org-irc.el (org-irc-visit-erc):
      * lisp/org/org-mobile.el (org-mobile-apply):
      * lisp/org/org-publish.el (org-publish-org-to, org-publish-find-date):
      * lisp/org/org-remember.el (org-go-to-remember-target):
      * lisp/org/org-src.el (org-src-switch-to-buffer)
      (org-edit-fixed-width-region): Use switch-to-buffer.
      * lisp/org/org-compat.el (org-pop-to-buffer-same-window): Deleted.
  8. 20 Aug, 2011 1 commit
  9. 19 Aug, 2011 1 commit
  10. 16 Jul, 2011 1 commit
  11. 13 Jul, 2011 1 commit
  12. 12 Jul, 2011 1 commit
  13. 11 Jul, 2011 1 commit
  14. 04 Jul, 2011 1 commit
  15. 03 Jul, 2011 1 commit
  16. 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.
  17. 29 Jun, 2011 1 commit
  18. 19 Jun, 2011 2 commits
  19. 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.
  20. 09 Jun, 2011 2 commits
  21. 28 May, 2011 1 commit
  22. 27 May, 2011 2 commits
  23. 26 May, 2011 2 commits
  24. 23 May, 2011 1 commit
  25. 22 May, 2011 3 commits
  26. 21 May, 2011 1 commit
  27. 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.
  28. 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:".
  29. 24 Apr, 2011 1 commit
  30. 19 Apr, 2011 1 commit
  31. 09 Apr, 2011 1 commit
  32. 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'.
  33. 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'.