call of `occur-read-primary-args' to interactive spec.
* lisp/ibuffer.el (ibuffer-mode-map): Bind "M-s a C-o" to
`ibuffer-do-occur' like in buff-menu.el.
Fixes: debbugs:14673
*** Battery information via the BSD `apm' utility is now supported.
+** Buffer Menu
+
+*** `M-s a C-o' shows lines matching a regexp in marked buffers using Occur.
+
** Calendar and Diary
+++
+2013-07-03 Juri Linkov <juri@jurta.org>
+
+ * buff-menu.el (Buffer-menu-multi-occur): Add args and move the
+ call of `occur-read-primary-args' to interactive spec.
+
+ * ibuffer.el (ibuffer-mode-map): Bind "M-s a C-o" to
+ `ibuffer-do-occur' like in buff-menu.el. (Bug#14673)
+
2013-07-03 Matthias Meulien <orontee@gmail.com>
* buff-menu.el (Buffer-menu-mode-map): Bind "M-s a C-o" to
(interactive)
(multi-isearch-buffers-regexp (Buffer-menu-marked-buffers)))
-(defun Buffer-menu-multi-occur ()
+(defun Buffer-menu-multi-occur (regexp &optional nlines)
"Show all lines in marked buffers containing a match for a regexp."
- (interactive)
- (let ((regexp (occur-read-primary-args)))
- (multi-occur (Buffer-menu-marked-buffers) (car regexp))))
+ (interactive (occur-read-primary-args))
+ (multi-occur (Buffer-menu-marked-buffers) regexp nlines))
\f
(defun Buffer-menu-visit-tags-table ()
(define-key map (kbd "M-g") 'ibuffer-jump-to-buffer)
(define-key map (kbd "M-s a C-s") 'ibuffer-do-isearch)
(define-key map (kbd "M-s a M-C-s") 'ibuffer-do-isearch-regexp)
+ (define-key map (kbd "M-s a C-o") 'ibuffer-do-occur)
(define-key map (kbd "DEL") 'ibuffer-unmark-backward)
(define-key map (kbd "M-DEL") 'ibuffer-unmark-all)
(define-key map (kbd "* *") 'ibuffer-unmark-all)