unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* multi-occur-in-matching-buffers
@ 2010-01-15 18:19 Lennart Borgman
  2010-01-15 20:12 ` multi-occur-in-matching-buffers Juri Linkov
  0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman @ 2010-01-15 18:19 UTC (permalink / raw)
  To: Emacs-Devel devel

multi-occur-in-matching-buffers said to me that it wanted a place in
the menus (and since this does not seem to be regarded a feature at
all that it can't be to late). It also wanted a bit better argument
guessing.

Greatings from moimb
through her friend L




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: multi-occur-in-matching-buffers
  2010-01-15 18:19 multi-occur-in-matching-buffers Lennart Borgman
@ 2010-01-15 20:12 ` Juri Linkov
  2010-01-15 20:28   ` multi-occur-in-matching-buffers Lennart Borgman
  0 siblings, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2010-01-15 20:12 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Emacs-Devel devel

> multi-occur-in-matching-buffers said to me that it wanted a place in
> the menus (and since this does not seem to be regarded a feature at
> all that it can't be to late).

Did it say to you where it wants to be placed in the menu?
In the same submenu with `occur'?

> It also wanted a bit better argument guessing.

Does it want a better default like a buffer name in `multi-occur'?

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: multi-occur-in-matching-buffers
  2010-01-15 20:12 ` multi-occur-in-matching-buffers Juri Linkov
@ 2010-01-15 20:28   ` Lennart Borgman
  2010-01-15 21:38     ` multi-occur-in-matching-buffers Juri Linkov
  2010-03-04  6:15     ` multi-occur-in-matching-buffers Davis Herring
  0 siblings, 2 replies; 7+ messages in thread
From: Lennart Borgman @ 2010-01-15 20:28 UTC (permalink / raw)
  To: Juri Linkov; +Cc: Emacs-Devel devel

On Fri, Jan 15, 2010 at 9:12 PM, Juri Linkov <juri@jurta.org> wrote:
>> multi-occur-in-matching-buffers said to me that it wanted a place in
>> the menus (and since this does not seem to be regarded a feature at
>> all that it can't be to late).
>
> Did it say to you where it wants to be placed in the menu?
> In the same submenu with `occur'?

Yes, it is very fond of occur.

>> It also wanted a bit better argument guessing.
>
> Does it want a better default like a buffer name in `multi-occur'?

It asked if it is too much to hope for ".*\.el". Eh, no wait, (concat
".*" (file-name-extension (buffer-file-name)).

If that is too much then buffer name is the best.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: multi-occur-in-matching-buffers
  2010-01-15 20:28   ` multi-occur-in-matching-buffers Lennart Borgman
@ 2010-01-15 21:38     ` Juri Linkov
  2010-01-15 22:36       ` multi-occur-in-matching-buffers Lennart Borgman
  2010-03-04  6:15     ` multi-occur-in-matching-buffers Davis Herring
  1 sibling, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2010-01-15 21:38 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Emacs-Devel devel

>>> multi-occur-in-matching-buffers said to me that it wanted a place in
>>> the menus (and since this does not seem to be regarded a feature at
>>> all that it can't be to late).
>>
>> Did it say to you where it wants to be placed in the menu?
>> In the same submenu with `occur'?
>
> Yes, it is very fond of occur.

But where does occur want to be?  In the same place with grep?

>>> It also wanted a bit better argument guessing.
>>
>> Does it want a better default like a buffer name in `multi-occur'?
>
> It asked if it is too much to hope for ".*\.el". Eh, no wait,
> (concat ".*" (file-name-extension (buffer-file-name)).

I see, this is like rgrep using grep-read-files.

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: multi-occur-in-matching-buffers
  2010-01-15 21:38     ` multi-occur-in-matching-buffers Juri Linkov
@ 2010-01-15 22:36       ` Lennart Borgman
  0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman @ 2010-01-15 22:36 UTC (permalink / raw)
  To: Juri Linkov; +Cc: Emacs-Devel devel

On Fri, Jan 15, 2010 at 10:38 PM, Juri Linkov <juri@jurta.org> wrote:
>>>> multi-occur-in-matching-buffers said to me that it wanted a place in
>>>> the menus (and since this does not seem to be regarded a feature at
>>>> all that it can't be to late).
>>>
>>> Did it say to you where it wants to be placed in the menu?
>>> In the same submenu with `occur'?
>>
>> Yes, it is very fond of occur.
>
> But where does occur want to be?  In the same place with grep?


Yes, but remember that occur is married to query-replace. She will
feel quite lonely and useless without him. I think they all feel they
are a big family.

And I know they have a couple of friends that perhaps want to move in
this spring:

  ldir-query-replace
  rdir-query-replace
  grep-query-replace


>>>> It also wanted a bit better argument guessing.
>>>
>>> Does it want a better default like a buffer name in `multi-occur'?
>>
>> It asked if it is too much to hope for ".*\.el". Eh, no wait,
>> (concat ".*" (file-name-extension (buffer-file-name)).
>
> I see, this is like rgrep using grep-read-files.


Yes, that is how I feel too.


> --
> Juri Linkov
> http://www.jurta.org/emacs/
>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: multi-occur-in-matching-buffers
  2010-01-15 20:28   ` multi-occur-in-matching-buffers Lennart Borgman
  2010-01-15 21:38     ` multi-occur-in-matching-buffers Juri Linkov
@ 2010-03-04  6:15     ` Davis Herring
  2010-03-04 21:12       ` multi-occur-in-matching-buffers Juri Linkov
  1 sibling, 1 reply; 7+ messages in thread
From: Davis Herring @ 2010-03-04  6:15 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Juri Linkov, Emacs-Devel devel

> It asked if it is too much to hope for ".*\.el". Eh, no wait, (concat
> ".*" (file-name-extension (buffer-file-name)).

Surely it merely misspoke and meant to say

(concat (regexp-quote (file-name-extension buffer-file-name t)) "\\'")

Surely a function that searches with regexps wouldn't make a mistake
composing one, after all.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: multi-occur-in-matching-buffers
  2010-03-04  6:15     ` multi-occur-in-matching-buffers Davis Herring
@ 2010-03-04 21:12       ` Juri Linkov
  0 siblings, 0 replies; 7+ messages in thread
From: Juri Linkov @ 2010-03-04 21:12 UTC (permalink / raw)
  To: herring; +Cc: Lennart Borgman, Emacs-Devel devel

>> It asked if it is too much to hope for ".*\.el". Eh, no wait, (concat
>> ".*" (file-name-extension (buffer-file-name)).
>
> Surely it merely misspoke and meant to say
>
> (concat (regexp-quote (file-name-extension buffer-file-name t)) "\\'")
>
> Surely a function that searches with regexps wouldn't make a mistake
> composing one, after all.

It is like its cousin in `dired-mark-files-regexp' I wanted to present
after the feature freeze:

=== modified file 'lisp/dired.el'
--- lisp/dired.el	2010-02-04 23:25:57 +0000
+++ lisp/dired.el	2010-03-04 21:11:09 +0000
@@ -2957,7 +2957,11 @@ (defun dired-mark-files-regexp (regexp &
 object files--just `.o' will mark more than you might think."
   (interactive
    (list (dired-read-regexp (concat (if current-prefix-arg "Unmark" "Mark")
-				    " files (regexp): "))
+				    " files (regexp): ")
+			    nil nil
+			    (concat (regexp-quote (file-name-extension
+						   (dired-get-filename nil t) t))
+				    "\\'"))
 	 (if current-prefix-arg ?\040)))
   (let ((dired-marker-char (or marker-char dired-marker-char)))
     (dired-mark-if

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-04 21:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-15 18:19 multi-occur-in-matching-buffers Lennart Borgman
2010-01-15 20:12 ` multi-occur-in-matching-buffers Juri Linkov
2010-01-15 20:28   ` multi-occur-in-matching-buffers Lennart Borgman
2010-01-15 21:38     ` multi-occur-in-matching-buffers Juri Linkov
2010-01-15 22:36       ` multi-occur-in-matching-buffers Lennart Borgman
2010-03-04  6:15     ` multi-occur-in-matching-buffers Davis Herring
2010-03-04 21:12       ` multi-occur-in-matching-buffers Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).