emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/ibuf-ext.el


From: Romain Francoise
Subject: [Emacs-diffs] Changes to emacs/lisp/ibuf-ext.el
Date: Fri, 07 Oct 2005 08:43:59 -0400

Index: emacs/lisp/ibuf-ext.el
diff -c emacs/lisp/ibuf-ext.el:1.45 emacs/lisp/ibuf-ext.el:1.46
*** emacs/lisp/ibuf-ext.el:1.45 Sun Aug 28 06:50:29 2005
--- emacs/lisp/ibuf-ext.el      Fri Oct  7 12:43:57 2005
***************
*** 329,335 ****
      (ibuffer-backward-filter-group 1))
    (ibuffer-forward-line 0))
  
! ;;;###autoload (autoload 'ibuffer-do-shell-command-pipe "ibuf-ext.el")
  (define-ibuffer-op shell-command-pipe (command)
    "Pipe the contents of each marked buffer to shell command COMMAND."
    (:interactive "sPipe to shell command: "
--- 329,335 ----
      (ibuffer-backward-filter-group 1))
    (ibuffer-forward-line 0))
  
! ;;;###autoload (autoload 'ibuffer-do-shell-command-pipe "ibuf-ext")
  (define-ibuffer-op shell-command-pipe (command)
    "Pipe the contents of each marked buffer to shell command COMMAND."
    (:interactive "sPipe to shell command: "
***************
*** 339,345 ****
     (point-min) (point-max) command
     (get-buffer-create "* ibuffer-shell-output*")))
  
! ;;;###autoload (autoload 'ibuffer-do-shell-command-pipe-replace "ibuf-ext.el")
  (define-ibuffer-op shell-command-pipe-replace (command)
    "Replace the contents of marked buffers with output of pipe to COMMAND."
    (:interactive "sPipe to shell command (replace): "
--- 339,345 ----
     (point-min) (point-max) command
     (get-buffer-create "* ibuffer-shell-output*")))
  
! ;;;###autoload (autoload 'ibuffer-do-shell-command-pipe-replace "ibuf-ext")
  (define-ibuffer-op shell-command-pipe-replace (command)
    "Replace the contents of marked buffers with output of pipe to COMMAND."
    (:interactive "sPipe to shell command (replace): "
***************
*** 351,357 ****
      (shell-command-on-region (point-min) (point-max)
                             command nil t)))
  
! ;;;###autoload (autoload 'ibuffer-do-shell-command-file "ibuf-ext.el")
  (define-ibuffer-op shell-command-file (command)
    "Run shell command COMMAND separately on files of marked buffers."
    (:interactive "sShell command on buffer's file: "
--- 351,357 ----
      (shell-command-on-region (point-min) (point-max)
                             command nil t)))
  
! ;;;###autoload (autoload 'ibuffer-do-shell-command-file "ibuf-ext")
  (define-ibuffer-op shell-command-file (command)
    "Run shell command COMMAND separately on files of marked buffers."
    (:interactive "sShell command on buffer's file: "
***************
*** 364,370 ****
                            (make-temp-file
                             (substring (buffer-name) 0 (min 10 (length 
(buffer-name))))))))))
  
! ;;;###autoload (autoload 'ibuffer-do-eval "ibuf-ext.el")
  (define-ibuffer-op eval (form)
    "Evaluate FORM in each of the buffers.
  Does not display the buffer during evaluation. See
--- 364,370 ----
                            (make-temp-file
                             (substring (buffer-name) 0 (min 10 (length 
(buffer-name))))))))))
  
! ;;;###autoload (autoload 'ibuffer-do-eval "ibuf-ext")
  (define-ibuffer-op eval (form)
    "Evaluate FORM in each of the buffers.
  Does not display the buffer during evaluation. See
***************
*** 374,380 ****
     :modifier-p :maybe)
    (eval form))
  
! ;;;###autoload (autoload 'ibuffer-do-view-and-eval "ibuf-ext.el")
  (define-ibuffer-op view-and-eval (form)
    "Evaluate FORM while displaying each of the marked buffers.
  To evaluate a form without viewing the buffer, see `ibuffer-do-eval'."
--- 374,380 ----
     :modifier-p :maybe)
    (eval form))
  
! ;;;###autoload (autoload 'ibuffer-do-view-and-eval "ibuf-ext")
  (define-ibuffer-op view-and-eval (form)
    "Evaluate FORM while displaying each of the marked buffers.
  To evaluate a form without viewing the buffer, see `ibuffer-do-eval'."
***************
*** 389,402 ****
          (eval form))
        (switch-to-buffer ibuffer-buf))))
  
! ;;;###autoload (autoload 'ibuffer-do-rename-uniquely "ibuf-ext.el")
  (define-ibuffer-op rename-uniquely ()
    "Rename marked buffers as with `rename-uniquely'."
    (:opstring "renamed"
     :modifier-p t)
    (rename-uniquely))
  
! ;;;###autoload (autoload 'ibuffer-do-revert "ibuf-ext.el")
  (define-ibuffer-op revert ()
    "Revert marked buffers as with `revert-buffer'."
    (:dangerous t
--- 389,402 ----
          (eval form))
        (switch-to-buffer ibuffer-buf))))
  
! ;;;###autoload (autoload 'ibuffer-do-rename-uniquely "ibuf-ext")
  (define-ibuffer-op rename-uniquely ()
    "Rename marked buffers as with `rename-uniquely'."
    (:opstring "renamed"
     :modifier-p t)
    (rename-uniquely))
  
! ;;;###autoload (autoload 'ibuffer-do-revert "ibuf-ext")
  (define-ibuffer-op revert ()
    "Revert marked buffers as with `revert-buffer'."
    (:dangerous t
***************
*** 405,411 ****
     :modifier-p :maybe)
    (revert-buffer t t))
  
! ;;;###autoload (autoload 'ibuffer-do-replace-regexp "ibuf-ext.el")
  (define-ibuffer-op replace-regexp (from-str to-str)
    "Perform a `replace-regexp' in marked buffers."
    (:interactive
--- 405,411 ----
     :modifier-p :maybe)
    (revert-buffer t t))
  
! ;;;###autoload (autoload 'ibuffer-do-replace-regexp "ibuf-ext")
  (define-ibuffer-op replace-regexp (from-str to-str)
    "Perform a `replace-regexp' in marked buffers."
    (:interactive
***************
*** 425,431 ****
          (replace-match to-str))))
      t))
  
! ;;;###autoload (autoload 'ibuffer-do-query-replace "ibuf-ext.el")
  (define-ibuffer-op query-replace (&rest args)
    "Perform a `query-replace' in marked buffers."
    (:interactive
--- 425,431 ----
          (replace-match to-str))))
      t))
  
! ;;;###autoload (autoload 'ibuffer-do-query-replace "ibuf-ext")
  (define-ibuffer-op query-replace (&rest args)
    "Perform a `query-replace' in marked buffers."
    (:interactive
***************
*** 441,447 ****
        (apply #'query-replace args)))
      t))
  
! ;;;###autoload (autoload 'ibuffer-do-query-replace-regexp "ibuf-ext.el")
  (define-ibuffer-op query-replace-regexp (&rest args)
    "Perform a `query-replace-regexp' in marked buffers."
    (:interactive
--- 441,447 ----
        (apply #'query-replace args)))
      t))
  
! ;;;###autoload (autoload 'ibuffer-do-query-replace-regexp "ibuf-ext")
  (define-ibuffer-op query-replace-regexp (&rest args)
    "Perform a `query-replace-regexp' in marked buffers."
    (:interactive
***************
*** 457,463 ****
        (apply #'query-replace-regexp args)))
      t))
  
! ;;;###autoload (autoload 'ibuffer-do-print "ibuf-ext.el")
  (define-ibuffer-op print ()
    "Print marked buffers as with `print-buffer'."
    (:opstring "printed"
--- 457,463 ----
        (apply #'query-replace-regexp args)))
      t))
  
! ;;;###autoload (autoload 'ibuffer-do-print "ibuf-ext")
  (define-ibuffer-op print ()
    "Print marked buffers as with `print-buffer'."
    (:opstring "printed"
***************
*** 969,975 ****
  
  ;;; Extra operation definitions
  
! ;;;###autoload (autoload 'ibuffer-filter-by-mode "ibuf-ext.el")
  (define-ibuffer-filter mode
    "Toggle current view to buffers with major mode QUALIFIER."
    (:description "major mode"
--- 969,975 ----
  
  ;;; Extra operation definitions
  
! ;;;###autoload (autoload 'ibuffer-filter-by-mode "ibuf-ext")
  (define-ibuffer-filter mode
    "Toggle current view to buffers with major mode QUALIFIER."
    (:description "major mode"
***************
*** 987,993 ****
                         "")))))
    (eq qualifier (with-current-buffer buf major-mode)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-used-mode "ibuf-ext.el")
  (define-ibuffer-filter used-mode
    "Toggle current view to buffers with major mode QUALIFIER.
  Called interactively, this function allows selection of modes
--- 987,993 ----
                         "")))))
    (eq qualifier (with-current-buffer buf major-mode)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-used-mode "ibuf-ext")
  (define-ibuffer-filter used-mode
    "Toggle current view to buffers with major mode QUALIFIER.
  Called interactively, this function allows selection of modes
***************
*** 1006,1019 ****
                                      "")))))
    (eq qualifier (with-current-buffer buf major-mode)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-name "ibuf-ext.el")
  (define-ibuffer-filter name
    "Toggle current view to buffers with name matching QUALIFIER."
    (:description "buffer name"
     :reader (read-from-minibuffer "Filter by name (regexp): "))
    (string-match qualifier (buffer-name buf)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-filename "ibuf-ext.el")
  (define-ibuffer-filter filename
    "Toggle current view to buffers with filename matching QUALIFIER."
    (:description "filename"
--- 1006,1019 ----
                                      "")))))
    (eq qualifier (with-current-buffer buf major-mode)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-name "ibuf-ext")
  (define-ibuffer-filter name
    "Toggle current view to buffers with name matching QUALIFIER."
    (:description "buffer name"
     :reader (read-from-minibuffer "Filter by name (regexp): "))
    (string-match qualifier (buffer-name buf)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-filename "ibuf-ext")
  (define-ibuffer-filter filename
    "Toggle current view to buffers with filename matching QUALIFIER."
    (:description "filename"
***************
*** 1027,1033 ****
                            (expand-file-name dired-directory))))
      (string-match qualifier it)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-size-gt  "ibuf-ext.el")
  (define-ibuffer-filter size-gt
    "Toggle current view to buffers with size greater than QUALIFIER."
    (:description "size greater than"
--- 1027,1033 ----
                            (expand-file-name dired-directory))))
      (string-match qualifier it)))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-size-gt  "ibuf-ext")
  (define-ibuffer-filter size-gt
    "Toggle current view to buffers with size greater than QUALIFIER."
    (:description "size greater than"
***************
*** 1036,1042 ****
    (> (with-current-buffer buf (buffer-size))
       qualifier))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-size-lt  "ibuf-ext.el")
  (define-ibuffer-filter size-lt
     "Toggle current view to buffers with size less than QUALIFIER."
    (:description "size less than"
--- 1036,1042 ----
    (> (with-current-buffer buf (buffer-size))
       qualifier))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-size-lt  "ibuf-ext")
  (define-ibuffer-filter size-lt
     "Toggle current view to buffers with size less than QUALIFIER."
    (:description "size less than"
***************
*** 1045,1051 ****
    (< (with-current-buffer buf (buffer-size))
       qualifier))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-content "ibuf-ext.el")
  (define-ibuffer-filter content
     "Toggle current view to buffers whose contents match QUALIFIER."
    (:description "content"
--- 1045,1051 ----
    (< (with-current-buffer buf (buffer-size))
       qualifier))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-content "ibuf-ext")
  (define-ibuffer-filter content
     "Toggle current view to buffers whose contents match QUALIFIER."
    (:description "content"
***************
*** 1055,1061 ****
        (goto-char (point-min))
        (re-search-forward qualifier nil t))))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-predicate "ibuf-ext.el")
  (define-ibuffer-filter predicate
     "Toggle current view to buffers for which QUALIFIER returns non-nil."
    (:description "predicate"
--- 1055,1061 ----
        (goto-char (point-min))
        (re-search-forward qualifier nil t))))
  
! ;;;###autoload (autoload 'ibuffer-filter-by-predicate "ibuf-ext")
  (define-ibuffer-filter predicate
     "Toggle current view to buffers for which QUALIFIER returns non-nil."
    (:description "predicate"
***************
*** 1094,1100 ****
             "normal"))
    (ibuffer-redisplay t))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-major-mode "ibuf-ext.el")
  (define-ibuffer-sorter major-mode
    "Sort the buffers by major modes.
  Ordering is lexicographic."
--- 1094,1100 ----
             "normal"))
    (ibuffer-redisplay t))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-major-mode "ibuf-ext")
  (define-ibuffer-sorter major-mode
    "Sort the buffers by major modes.
  Ordering is lexicographic."
***************
*** 1108,1114 ****
                                  (car b)
                                major-mode)))))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-mode-name "ibuf-ext.el")
  (define-ibuffer-sorter mode-name
    "Sort the buffers by their mode name.
  Ordering is lexicographic."
--- 1108,1114 ----
                                  (car b)
                                major-mode)))))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-mode-name "ibuf-ext")
  (define-ibuffer-sorter mode-name
    "Sort the buffers by their mode name.
  Ordering is lexicographic."
***************
*** 1122,1128 ****
                     (car b)
                   mode-name))))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-alphabetic "ibuf-ext.el")
  (define-ibuffer-sorter alphabetic
    "Sort the buffers by their names.
  Ordering is lexicographic."
--- 1122,1128 ----
                     (car b)
                   mode-name))))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-alphabetic "ibuf-ext")
  (define-ibuffer-sorter alphabetic
    "Sort the buffers by their names.
  Ordering is lexicographic."
***************
*** 1131,1137 ****
     (buffer-name (car a))
     (buffer-name (car b))))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-size "ibuf-ext.el")
  (define-ibuffer-sorter size
   "Sort the buffers by their size."
    (:description "size")
--- 1131,1137 ----
     (buffer-name (car a))
     (buffer-name (car b))))
  
! ;;;###autoload (autoload 'ibuffer-do-sort-by-size "ibuf-ext")
  (define-ibuffer-sorter size
   "Sort the buffers by their size."
    (:description "size")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]